:root {
  --bg: #f4f8ff;
  --panel: #ffffff;
  --panel-soft: #eef4ff;
  --primary: #163a8d;
  --primary-dark: #0d285f;
  --accent: #2ec5a3;
  --accent-soft: #e3fbf5;
  --text: #162033;
  --muted: #5c6886;
  --line: rgba(22, 58, 141, 0.12);
  --shadow: 0 24px 60px rgba(18, 38, 82, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f5f8ff 0%, #edf4ff 100%);
  color: var(--text);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(244, 248, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0 0;
}

.quick-links button,
.quick-links a,
.nav-link-btn {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  transition: all 0.2s ease;
  font: inherit;
}

.quick-links button:hover,
.quick-links button.active,
.quick-links a:hover,
.nav-link-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.bank-link.transfer-link {
  background: rgba(22, 58, 141, 0.06);
  border-color: rgba(22, 58, 141, 0.18);
  color: var(--primary);
}

.bank-link.cards-link {
  background: rgba(46, 197, 163, 0.08);
  border-color: rgba(46, 197, 163, 0.2);
  color: #0d7a61;
}

.bank-link.savings-link {
  background: rgba(95, 121, 255, 0.08);
  border-color: rgba(95, 121, 255, 0.2);
  color: #3247b3;
}

.bank-link.statements-link {
  background: rgba(145, 95, 255, 0.08);
  border-color: rgba(145, 95, 255, 0.2);
  color: #5b38b5;
}

.transfer-panel .bank-header .eyebrow {
  background: rgba(22, 58, 141, 0.08);
  color: var(--primary);
}

.cards-panel .bank-header .eyebrow {
  background: rgba(46, 197, 163, 0.12);
  color: #0d7a61;
}

.savings-panel .bank-header .eyebrow {
  background: rgba(95, 121, 255, 0.12);
  color: #3247b3;
}

.statements-panel .bank-header .eyebrow {
  background: rgba(145, 95, 255, 0.12);
  color: #5b38b5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #4b77da);
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 16px 28px rgba(22, 58, 141, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 600;
}

.nav-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2b5bd6);
  color: white;
  box-shadow: 0 16px 30px rgba(21, 70, 179, 0.22);
}

.btn-secondary {
  background: var(--panel);
  color: var(--primary);
  border: 1px solid var(--line);
}

.hero {
  padding: 88px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0a7d60;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  color: var(--muted);
  font-weight: 600;
}

.mini-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.card-stack {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  min-height: 470px;
}

.dashboard-card {
  position: absolute;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow);
  border-radius: 28px;
  overflow: hidden;
}

.main-card {
  inset: 0 26px 36px 0;
  padding: 24px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.chip {
  width: 42px;
  height: 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff3ff, #d9e6ff);
}

.status {
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0b7b63;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.balance-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.balance {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  margin: 10px 0 20px;
  letter-spacing: -0.06em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.metric {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  padding: 16px 14px;
  border-radius: 18px;
}

.metric small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 1.2rem;
}

.floating-card {
  width: 200px;
  right: 0;
  bottom: 24px;
  padding: 18px 18px 16px;
}

.floating-card h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.floating-card .score {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.spark {
  height: 100px;
  border-radius: 18px;
  background: linear-gradient(180deg, #e6f7f1 0%, #d4fff5 100%);
  position: relative;
  margin-top: 12px;
}

.spark::before {
  content: "";
  position: absolute;
  inset: 20px 10px 12px 12px;
  background: linear-gradient(180deg, rgba(46,197,163,0.24), rgba(46,197,163,0));
  clip-path: polygon(0 75%, 20% 68%, 34% 58%, 50% 62%, 66% 30%, 82% 38%, 100% 0, 100% 100%, 0 100%);
}

.section {
  padding: 40px 0 20px;
}

.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  padding: 22px 10px;
}

.features {
  padding-top: 60px;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.section-head h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px 24px;
  box-shadow: 0 12px 32px rgba(18, 38, 82, 0.03);
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #ecf4ff, #dfeaff);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.plans {
  padding-top: 72px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 26px;
  position: relative;
}

.plan.highlight {
  background: linear-gradient(180deg, #173d9a 0%, #102e6f 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-10px);
}

.plan .tag {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
  background: rgba(46, 197, 163, 0.15);
  color: #82f0da;
}

.plan.highlight .tag {
  background: rgba(255,255,255,0.08);
  color: white;
}

.plan h3 {
  font-size: 1.5rem;
  margin: 18px 0 8px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price strong {
  font-size: 2.5rem;
  letter-spacing: -0.06em;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.plan.highlight ul {
  color: rgba(255,255,255,0.82);
}

.plan li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  margin-right: 10px;
}

.plan.highlight li::before {
  color: #9ef1d5;
}

.steps {
  padding-top: 72px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf4ff, #dfeaff);
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--primary);
}

.step h3 {
  margin: 0 0 10px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta {
  padding: 92px 0 60px;
}

.cta-box {
  background: linear-gradient(135deg, #0f2e67 0%, #1d4bb4 100%);
  border-radius: 32px;
  padding: 38px 32px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 26px 52px rgba(15, 46, 103, 0.28);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.cta-box p {
  margin: 0;
  color: rgba(255,255,255,0.75);
}

.cta-box .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: none;
}

.account-summary {
  padding: 36px 0 20px;
}

.summary-box {
  background: linear-gradient(135deg, #0f2e67 0%, #1d4bb4 100%);
  color: white;
  border-radius: 30px;
  padding: 28px 24px;
  box-shadow: 0 24px 48px rgba(15, 46, 103, 0.2);
}

.bank-section {
  padding: 30px 0 10px;
}

.transfer-page {
  min-height: 100vh;
  padding: 26px 0 42px;
  background: linear-gradient(180deg, #edf4ff 0%, #f7faff 100%);
}

.transfer-portal {
  padding-top: 18px;
}

.transfer-panel-shell {
  border: 1px solid rgba(22, 58, 141, 0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,245,255,0.95));
  border-radius: 30px;
  box-shadow: 0 28px 54px rgba(18, 38, 82, 0.08);
  padding: 22px;
}

.transfer-header {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(22, 58, 141, 0.08);
}

.transfer-form-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  border-color: rgba(22, 58, 141, 0.14);
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(18, 38, 82, 0.06);
  padding: 22px;
}

.transfer-portal .bank-content {
  display: block;
}

.transfer-summary-card {
  background: rgba(22, 58, 141, 0.03);
  border-color: rgba(22, 58, 141, 0.12);
}

.transfer-submit-btn {
  margin-top: 18px;
  width: 100%;
  min-height: 50px;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 18, 35, 0.52);
  z-index: 1000;
  padding: 20px;
}

.confirm-modal-card {
  width: min(100%, 480px);
  background: white;
  border-radius: 26px;
  border: 1px solid rgba(22, 58, 141, 0.08);
  box-shadow: 0 30px 60px rgba(18, 38, 82, 0.18);
  padding: 22px;
}

.confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.confirm-header h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 58, 141, 0.08);
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
}

.confirm-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.confirm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.confirm-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(22, 58, 141, 0.08);
  color: var(--muted);
}

.confirm-list strong {
  color: var(--text);
  text-align: right;
  font-weight: 700;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.support-card {
  gap: 18px;
}

.support-overview {
  display: grid;
  gap: 10px;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.success-pill {
  background: rgba(15, 138, 91, 0.12);
  color: #0d8f67;
  border: 1px solid rgba(15, 138, 91, 0.2);
}

.support-overview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-item,
.support-message-box {
  background: rgba(22, 58, 141, 0.03);
  border: 1px solid rgba(22, 58, 141, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.support-item h4,
.support-message-box h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.support-item p,
.support-message-box li {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-message-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.confirm-actions .btn {
  min-width: 120px;
}

.tax-warning-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 18, 35, 0.52);
  z-index: 1010;
  padding: 20px;
}

.tax-warning-card {
  width: min(100%, 440px);
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(198, 46, 46, 0.2);
  box-shadow: 0 24px 50px rgba(123, 18, 18, 0.2);
  padding: 22px;
}

.tax-warning-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tax-warning-header h3 {
  margin: 0;
  color: #c62828;
  font-size: 1.4rem;
}

.tax-warning-message {
  margin: 0;
  color: #c62828;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.bank-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(18, 38, 82, 0.06);
  padding: 26px 22px;
}

.bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.bank-header h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.bank-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.bank-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.bank-card.compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bank-card h4 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.bank-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.bank-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(22, 58, 141, 0.02);
  border: 1px solid rgba(22, 58, 141, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
}

.bank-form input,
.bank-form select {
  width: 100%;
  border: 1px solid rgba(22, 58, 141, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  color: var(--text);
  font-size: 1rem;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.bank-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.bank-form + .btn {
  margin-top: 18px;
}

.transfer-form label:nth-child(5),
.transfer-form label:nth-child(6) {
  grid-column: span 1;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.detail-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list strong {
  color: var(--text);
}

.card-visual {
  background: linear-gradient(135deg, #0f2e67 0%, #1d4bb4 100%);
  color: white;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-chip {
  width: 52px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f6d369, #d89d2a);
}

.card-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.card-number {
  font-size: 1.6rem;
  letter-spacing: 0.12em;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  opacity: 0.9;
  font-size: 0.82rem;
}

.savings-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.muted-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.savings-top h4 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.trend {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46, 197, 163, 0.14);
  color: #0d7a61;
  font-weight: 800;
}

.progress {
  height: 12px;
  background: rgba(22, 58, 141, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 22px 0 18px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), #6ad9c0);
}

.goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.goal-row strong {
  color: var(--text);
}

.statement-card {
  padding: 0;
  overflow: hidden;
}

.statement-table {
  width: 100%;
  border-collapse: collapse;
}

.statement-table th,
.statement-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.statement-table th {
  background: rgba(22, 58, 141, 0.04);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.statement-table td {
  color: var(--text);
}

.transaction-type {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.transaction-type.credit-label {
  color: #0f8a5b;
  background: rgba(15, 138, 91, 0.12);
  border: 1px solid rgba(15, 138, 91, 0.18);
}

.transaction-type.debit-label {
  color: #b53131;
  background: rgba(181, 49, 49, 0.10);
  border: 1px solid rgba(181, 49, 49, 0.18);
}

.transaction-type.pending-label {
  color: #a66a00;
  background: rgba(255, 181, 62, 0.16);
  border: 1px solid rgba(166, 106, 0, 0.2);
}

.transaction-action {
  text-align: center;
  width: 90px;
}

.delete-transaction-btn {
  border: none;
  background: rgba(181, 49, 49, 0.12);
  color: #b53131;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.delete-transaction-btn:hover {
  background: rgba(181, 49, 49, 0.2);
  transform: translateY(-1px);
}

.credit {
  color: #0d8f67;
  font-weight: 800;
}

.debit {
  color: #b53131;
  font-weight: 800;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-block,
.balance-block {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 18px 18px 16px;
}

.info-block span,
.balance-block span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.info-block h2,
.balance-block h2 {
  margin: 10px 0 0;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  letter-spacing: -0.04em;
}

.balance-block {
  margin-top: 18px;
}

.balance-block .balance {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.small-btn {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf4ff 0%, #dfeaff 100%);
  padding: 24px;
}

.login-box {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(22, 58, 141, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.login-brand {
  justify-content: center;
  margin-bottom: 8px;
}

.login-box h2 {
  text-align: center;
  margin: 18px 0 8px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.login-box p {
  margin: 0 0 22px;
  text-align: center;
  color: var(--muted);
}

#loginForm {
  display: grid;
  gap: 12px;
}

#loginForm label {
  font-weight: 700;
  color: var(--text);
}

#loginForm input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f7faff;
  font-size: 1rem;
  outline: none;
}

#loginForm input:focus {
  border-color: rgba(22, 58, 141, 0.45);
  box-shadow: 0 0 0 4px rgba(22, 58, 141, 0.08);
}

.login-btn {
  margin-top: 10px;
}

.login-error {
  min-height: 20px;
  color: #c62828;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
}

footer {
  padding: 22px 0 44px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .hero-grid,
  .feature-grid,
  .plan-grid,
  .steps-grid,
  .cta-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .cta-box {
    text-align: center;
    justify-content: center;
  }

  .bank-content {
    grid-template-columns: 1fr;
  }

  .bank-form {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .nav {
    padding: 14px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-actions {
    gap: 8px;
    width: 100%;
    justify-content: center;
  }

  .quick-links {
    overflow-x: auto;
    white-space: nowrap;
    padding: 16px 0 0;
    scrollbar-width: none;
  }

  .quick-links::-webkit-scrollbar {
    display: none;
  }

  .quick-links a {
    flex: 0 0 auto;
  }

  .summary-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .summary-box {
    padding: 18px 14px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .info-block,
  .balance-block {
    padding: 14px 12px;
  }

  .info-block h2,
  .balance-block h2 {
    font-size: 1.25rem;
  }

  .balance-block .balance {
    font-size: 2.2rem;
  }

  .mini-actions {
    flex-direction: column;
    width: 100%;
  }

  .mini-actions .btn {
    width: 100%;
  }

  .quick-links {
    justify-content: flex-start;
    gap: 10px;
  }

  .quick-links button {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .transfer-portal .bank-content,
  .bank-content {
    grid-template-columns: 1fr;
  }

  .transfer-panel-shell,
  .bank-panel {
    padding: 18px 14px;
  }

  .transfer-header,
  .bank-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .transfer-form-card {
    width: 100%;
    padding: 16px;
  }

  .bank-form input,
  .bank-form select {
    font-size: 16px;
  }

  .transfer-submit-btn {
    width: 100%;
  }

  .statement-card {
    overflow: visible;
  }

  .statement-table {
    width: 100%;
    table-layout: fixed;
    min-width: 0;
  }

  .statement-table th,
  .statement-table td {
    padding: 10px 7px;
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .statement-table th:nth-child(1),
  .statement-table td:nth-child(1) {
    display: none;
  }

  .statement-table .transaction-type {
    font-size: 0.58rem;
    min-width: 0;
    width: auto;
    padding: 5px 7px;
    display: inline-flex;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-item,
  .support-message-box {
    padding: 12px;
  }

  .bank-form label {
    font-size: 0.82rem;
  }

  .btn {
    padding: 12px 16px;
    min-height: 44px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .mini-stats {
    gap: 18px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .confirm-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .confirm-list strong {
    text-align: left;
  }

  .card-stack {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .dashboard-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .main-card {
    inset: auto;
    padding: 18px;
  }

  .balance {
    font-size: 2.4rem;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 0;
    width: 100%;
  }

  .login-box {
    padding: 24px 18px;
  }

  .login-box h2 {
    font-size: 1.7rem;
  }

  .cta-box {
    padding: 24px 18px;
  }

  .cta-box .btn {
    width: 100%;
  }
}
