/* ==========================================================================
   Libapay — Navy + Yellow remittance theme
   ========================================================================== */
:root {
  --navy:          #0b2d5b;
  --navy-2:        #0d3468;
  --navy-deep:     #07224a;
  --yellow:        #ffb800;
  --yellow-2:      #ffa200;
  --yellow-soft:   #ffd978;
  --accent-red:    #e63946;
  --accent-green:  #17b46a;
  --danger:        #ef4444;

  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
}

body[data-theme="light"] {
  --bg-0:      #ffffff;
  --bg-1:      #f4f6fb;
  --surface:   #ffffff;
  --surface-2: #f1f4fa;
  --surface-3: #e7ecf5;
  --border:    rgba(11,45,91,0.10);
  --border-2:  rgba(11,45,91,0.20);
  --text:      #0b2d5b;
  --text-2:    #1f3f70;
  --muted:     #6b7a95;
  --muted-2:   #a4aec2;
  --chip-bg:   #eef2f9;

  --shadow-sm:  0 1px 2px rgba(11,45,91,0.06), 0 2px 8px rgba(11,45,91,0.06);
  --shadow-md:  0 8px 20px -6px rgba(11,45,91,0.18);
  --shadow-lg:  0 24px 60px -20px rgba(11,45,91,0.28);
  --shadow-card: 0 30px 60px -22px rgba(11,45,91,0.55);
}

body[data-theme="dark"] {
  --bg-0:      #08142c;
  --bg-1:      #0b1a38;
  --surface:   #0f2247;
  --surface-2: #132a55;
  --surface-3: #1a3567;
  --border:    rgba(255,255,255,0.09);
  --border-2:  rgba(255,255,255,0.18);
  --text:      #f2f5fb;
  --text-2:    #cfd6e6;
  --muted:     rgba(242,245,251,0.7);
  --muted-2:   rgba(242,245,251,0.45);
  --chip-bg:   rgba(255,255,255,0.06);

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.35);
  --shadow-md:  0 8px 22px -6px rgba(0,0,0,0.55);
  --shadow-lg:  0 24px 60px -20px rgba(0,0,0,0.7);
  --shadow-card: 0 30px 70px -20px rgba(0,0,0,0.8);
}

/* reset — do NOT globally touch select; only input */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg-0);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input  { font: inherit; color: inherit; background: none; border: 0; outline: none; width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.muted  { color: var(--muted); }
.tiny   { font-size: 11px; }
.up     { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.hidden { display: none !important; }

/* ambient */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); transition: opacity 0.5s, background 0.5s; }
.g1 { width: 620px; height: 620px; background: #ffb800; top: -220px; left: -220px; }
.g2 { width: 600px; height: 600px; background: #0b2d5b; bottom: -220px; right: -220px; }
body[data-theme="light"] .g1 { opacity: 0.25; }
body[data-theme="light"] .g2 { opacity: 0.12; }
body[data-theme="dark"]  .g1 { opacity: 0.18; }
body[data-theme="dark"]  .g2 { opacity: 0.45; }

/* theme toggle */
.theme-toggle {
  position: fixed; top: 22px; right: 22px; z-index: 50;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  color: var(--text);
  transition: transform 0.25s var(--ease-spring), background 0.25s, box-shadow 0.25s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(8deg); box-shadow: var(--shadow-md); }
.theme-toggle .ico-moon { display: none; }
body[data-theme="dark"] .theme-toggle .ico-sun  { display: none; }
body[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

/* stage + phone */
.stage {
  position: relative; z-index: 1;
  min-height: 100%; display: grid; place-items: center;
  padding: 24px; perspective: 2000px;
}
.phone {
  width: min(420px, 100%); height: min(840px, 94vh);
  background: var(--bg-1); border-radius: 48px; padding: 6px;
  position: relative;
  box-shadow:
    0 50px 120px -30px rgba(11,45,91,0.35),
    0 20px 50px -20px rgba(11,45,91,0.25),
    inset 0 0 0 1px var(--border);
  transform: rotateX(2deg) rotateY(-3deg);
  transition: transform 0.8s var(--ease-spring), background 0.4s, box-shadow 0.4s;
}
body[data-theme="dark"] .phone {
  box-shadow:
    0 50px 120px -30px rgba(0,0,0,0.8),
    0 24px 50px -20px rgba(0,0,0,0.5),
    inset 0 0 0 1px var(--border-2);
}
.notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #07224a;
  border-radius: 20px; z-index: 10;
}
.home-indicator {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 4px;
  background: var(--muted-2); border-radius: 4px; z-index: 10; opacity: 0.4;
}
.screen {
  position: relative; width: 100%; height: 100%;
  background: var(--bg-0); border-radius: 44px;
  overflow: hidden; isolation: isolate;
  transition: background 0.4s;
}

/* views */
.view {
  position: absolute; inset: 0;
  padding: 52px 22px 26px;
  overflow-y: auto; overflow-x: hidden;
  opacity: 0; visibility: hidden;
  transform: translate3d(14px, 0, 0);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-spring), visibility 0.5s;
  z-index: 1; scrollbar-width: none;
}
.view::-webkit-scrollbar { width: 0; }
.view.is-active  { opacity: 1; visibility: visible; transform: none; z-index: 2; }
.view.is-leaving { transform: translate3d(-14px, 0, 0); }
.view--send     { padding: 0 0 20px; }
.view--review   { padding-top: 52px; }
.view--signup   { padding-top: 14px; }
.view--pin-setup { padding-top: 52px; }

/* ========== Sign-in ========== */
.auth-hero { padding: 6px 4px 22px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: var(--yellow);
  display: grid; place-items: center;
  box-shadow: 0 8px 16px -6px rgba(11,45,91,0.45); font-weight: 900;
}
.brand-mark__inner { font-weight: 900; font-size: 20px; letter-spacing: -0.05em; }
.brand-text h1 { font-size: 22px; }
.brand-text h1::first-letter { color: var(--yellow-2); }
.brand-chip {
  display: inline-block; margin-top: 3px;
  font-size: 11px; color: var(--muted);
  background: var(--chip-bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 10px; font-weight: 500;
}
.auth-title { font-size: 32px; line-height: 1.05; margin-bottom: 6px; font-weight: 800; }
.auth-sub { color: var(--muted); font-size: 14px; }
.auth-card {
  padding: 22px; margin-top: 16px; display: grid; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
}
.auth-alt { text-align: center; color: var(--muted); font-size: 13px; }
.auth-alt a { color: var(--navy); font-weight: 700; border-bottom: 1.5px solid var(--yellow); }
body[data-theme="dark"] .auth-alt a { color: var(--yellow); }
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted-2); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 700; margin: 2px 0;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-socials { display: flex; gap: 8px; justify-content: center; }
.chip-btn {
  width: 56px; height: 46px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease-spring), background 0.2s, border-color 0.2s;
}
.chip-btn:hover { transform: translateY(-2px); border-color: var(--yellow); }

/* ========== Field (input + select wrapper) ========== */
.field {
  display: grid; gap: 3px; position: relative;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1.5px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.field:focus-within { border-color: var(--yellow); background: var(--surface); }
.field__label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}
.field input { font-size: 15px; font-weight: 500; }
.field input::placeholder { color: var(--muted-2); }

/* Select inside field — styled to look like input, keeps native functionality */
.field-select {
  font: inherit; font-size: 15px; font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  cursor: pointer;
  padding-right: 20px;
  /* Custom dropdown arrow */
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a95' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 16px;
}
/* Fix select option background in dark mode */
.field-select option { background: var(--bg-0); color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 20px; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.02em; font-size: 14px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.25s, background 0.2s, color 0.2s;
}
.btn.wide { width: 100%; margin-top: 10px; }
.btn--primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(11,45,91,0.55);
}
.btn--primary:hover { transform: translateY(-1px); background: var(--navy-2); }
.btn--primary:active { transform: scale(0.985); }
.btn--ghost {
  background: transparent; color: var(--text); border: 1.5px solid var(--border-2);
}
.btn--ghost:hover { background: var(--surface-2); }

/* ========== SIGN-UP ========== */
.signup-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.stepper { display: flex; align-items: center; }
.st-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--border);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}
.st-dot.is-active { background: var(--yellow); border-color: var(--yellow-2); color: var(--navy-deep); }
.st-dot.is-done   { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.st-line {
  width: 28px; height: 2px; background: var(--border);
  transition: background 0.3s; flex-shrink: 0;
}
.st-line.is-done { background: var(--accent-green); }

.su-title { margin-bottom: 14px; }
.su-title h2 { font-size: 24px; margin-bottom: 4px; }

/* signup form uses the auth-card style for consistency */
.su-card {
  padding: 20px; display: grid; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
  margin-top: 4px;
}

/* opt tag */
.opt-tag {
  font-size: 9px; font-weight: 600;
  background: var(--chip-bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 6px;
  color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 4px;
}

/* dial row (phone number prefix) */
.dial-row { display: flex; align-items: center; gap: 8px; }
.dial-code {
  font-size: 13px; font-weight: 800; color: var(--navy);
  white-space: nowrap; flex-shrink: 0;
  background: var(--chip-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 2px 8px;
}
body[data-theme="dark"] .dial-code { color: var(--yellow); }
.dial-row input { font-size: 15px; font-weight: 500; }
.dial-row input::placeholder { color: var(--muted-2); }

/* upload area */
.upload-area {
  border: 2px dashed var(--border-2); border-radius: var(--r-lg);
  padding: 26px 20px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface-2);
}
.upload-area:hover { border-color: var(--yellow); background: var(--surface); }
.upload-ico   { font-size: 32px; display: block; margin-bottom: 8px; }
.upload-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.upload-hint  { font-size: 12px; color: var(--muted); }
.upload-done-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: rgba(23,180,106,0.1);
  border: 1px solid rgba(23,180,106,0.3); border-radius: var(--r-sm); font-size: 13px;
}
.upload-check { font-size: 16px; color: var(--accent-green); font-weight: 800; }
.upload-done-row span:nth-child(2) { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* selfie verification */
.selfie-box {
  padding: 22px 18px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  text-align: center; margin-bottom: 4px;
}
.selfie-oval {
  width: 130px; height: 162px; border-radius: 50%;
  border: 3px solid var(--border-2); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: var(--surface);
  transition: border-color 0.4s;
}
.selfie-oval.scanning { border-color: var(--yellow); border-width: 3px; }
.selfie-oval.verified { border-color: var(--accent-green); }
.selfie-person { font-size: 50px; line-height: 1; position: relative; z-index: 1; }
.scan-bar {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  top: 0; animation: scanMove 1.4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--yellow);
}
@keyframes scanMove { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
.selfie-status { font-size: 13px; color: var(--muted); font-weight: 500; }

/* wallet ID card */
.wallet-id-card {
  padding: 18px 20px; margin: 6px 0;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 18px; text-align: center; color: #fff;
  box-shadow: var(--shadow-md); display: grid; gap: 6px;
}
.wallet-id-card .muted  { color: rgba(255,255,255,0.7); }
.wallet-id-card strong  { font-size: 20px; letter-spacing: 0.1em; color: var(--yellow); font-family: monospace; }

/* ========== PIN ========== */
.pin-head { text-align: center; padding: 4px 0 10px; position: relative; }
.pin-head .back { position: absolute; left: 0; top: -8px; }
.pin-avatar {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--yellow); color: var(--navy-deep);
  font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
  margin: 6px auto 14px;
  box-shadow: 0 10px 24px -8px rgba(255,184,0,0.65);
}
.pin-avatar.small { width: 36px; height: 36px; font-size: 13px; margin: 0; }
.pin-avatar.xl    { width: 84px; height: 84px; font-size: 30px; margin: 8px auto 14px; }
.pin-head h3 { font-size: 20px; margin-bottom: 2px; }
.pin-label { margin-top: 22px; margin-bottom: 16px; font-size: 13px; color: var(--muted); font-weight: 500; }
.pin-dots { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; }
.pin-dots i {
  width: 12px; height: 12px; border-radius: 50%;
  background: transparent; border: 2px solid var(--border-2);
  transition: transform 0.25s var(--ease-spring), background 0.2s, border-color 0.2s;
}
.pin-dots i.filled { background: var(--navy); border-color: var(--navy); transform: scale(1.2); }
body[data-theme="dark"] .pin-dots i.filled { background: var(--yellow); border-color: var(--yellow); }
.pin-error { color: var(--danger); font-size: 13px; animation: shake 0.35s var(--ease-spring); }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 4px 0; }
.keypad button {
  height: 58px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid transparent;
  color: var(--text); font-size: 22px; font-weight: 700;
  transition: transform 0.15s var(--ease-spring), background 0.2s, border-color 0.2s;
}
.keypad button:hover  { background: var(--surface-3); }
.keypad button:active { transform: scale(0.94); background: var(--yellow); color: var(--navy-deep); border-color: var(--yellow-2); }
.keypad button.ghost, .keypad button:disabled { background: transparent; cursor: default; }

/* ========== Topbar ========== */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.topbar h4 { font-size: 17px; }
.greet { display: flex; align-items: center; gap: 12px; }
.greet h4 { font-size: 16px; }
.greet .pin-avatar.small { background: var(--navy); color: var(--yellow); box-shadow: none; }
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease-spring), background 0.2s; position: relative;
}
.icon-btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.icon-btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.icon-btn.light { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: #fff; }
.icon-btn.light:hover { background: rgba(255,255,255,0.25); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 3px var(--surface);
}

/* ========== Wallet card ========== */
.wallet-card {
  position: relative; padding: 26px 24px 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-2) 100%);
  color: #fff; box-shadow: var(--shadow-card); overflow: hidden;
}
.wallet-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,184,0,0.45), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(255,184,0,0.12), transparent 50%);
  pointer-events: none;
}
.wallet-card__shine {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.12) 50%, transparent 65%);
  transform: translateX(-100%); animation: shine 7s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes shine { 0%,25% { transform: translateX(-100%); } 65%,100% { transform: translateX(120%); } }
.wallet-card__label { font-size: 11px; color: rgba(255,255,255,0.75); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.wallet-card__amount {
  font-size: 44px; letter-spacing: -0.04em; line-height: 1; font-weight: 800;
  display: flex; align-items: baseline; gap: 4px; margin: 6px 0 18px; color: #fff;
}
.wallet-card__amount .ccy { font-size: 22px; color: var(--yellow); font-weight: 700; }
.wallet-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.75);
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12);
}

/* ========== Quick actions ========== */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 16px; }
.quick__item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 6px 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; font-weight: 700;
  transition: transform 0.2s var(--ease-spring), background 0.2s, border-color 0.2s;
}
.quick__item:hover { transform: translateY(-3px); border-color: var(--yellow); background: var(--surface-2); }
.quick__ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; }
.quick__ico.up    { background: var(--yellow); color: var(--navy-deep); }
.quick__ico.down  { background: var(--navy); color: var(--yellow); }
.quick__ico.swap  { background: #ffe9a6; color: var(--navy-deep); }
.quick__ico.more  { background: var(--surface-3); color: var(--navy); }
body[data-theme="dark"] .quick__ico.swap { background: rgba(255,184,0,0.25); color: var(--yellow); }
body[data-theme="dark"] .quick__ico.more { background: rgba(255,255,255,0.08); color: var(--yellow); }

/* ========== Banner ========== */
.banner {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(120deg, #fff4d4 0%, #ffe08a 100%);
  border: 1px solid rgba(255,184,0,0.35); overflow: hidden; margin-bottom: 20px;
  color: var(--navy-deep);
}
body[data-theme="dark"] .banner { background: linear-gradient(120deg, rgba(255,184,0,0.18), rgba(255,184,0,0.08)); border-color: rgba(255,184,0,0.3); color: var(--text); }
.banner__eyebrow { font-size: 10px; letter-spacing: 0.18em; color: var(--navy); text-transform: uppercase; font-weight: 800; }
body[data-theme="dark"] .banner__eyebrow { color: var(--yellow); }
.banner__title { font-weight: 800; font-size: 15px; margin: 2px 0; letter-spacing: -0.015em; }
.banner__sub { font-size: 12px; opacity: 0.75; }
.banner__cta {
  margin-left: auto; padding: 10px 16px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  transition: transform 0.2s var(--ease-spring);
}
.banner__cta:hover { transform: translateY(-1px); background: var(--navy-2); }

/* ========== Sections + txn list ========== */
.section__head { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 0 12px; }
.section__head h5 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.linkish { color: var(--muted); font-size: 12px; font-weight: 600; transition: color 0.2s; }
.linkish:hover { color: var(--navy); }
body[data-theme="dark"] .linkish:hover { color: var(--yellow); }
.txn-list { display: grid; gap: 4px; }
.txn-list.full { gap: 3px; }
.txn {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s var(--ease-spring), border-color 0.2s; cursor: pointer;
}
.txn:hover { background: var(--surface-2); transform: translateX(2px); border-color: var(--border); }
.txn__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; font-weight: 700; background: var(--chip-bg); }
.txn__ico.in   { background: #d6f5e4; color: #0a7b44; }
.txn__ico.out  { background: var(--navy); color: var(--yellow); }
.txn__ico.bill { background: #ffe9a6; color: #6b4a00; }
body[data-theme="dark"] .txn__ico.in   { background: rgba(23,180,106,0.18); color: #5fe3a0; }
body[data-theme="dark"] .txn__ico.bill { background: rgba(255,184,0,0.18); color: var(--yellow); }
.txn__body { flex: 1; min-width: 0; }
.txn__body p    { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn__body span { font-size: 12px; color: var(--muted); }
.txn__amt { font-weight: 800; font-size: 14px; color: var(--text); }
.txn__amt.in { color: var(--accent-green); }

/* ========== SEND HERO ========== */
.send-hero {
  padding: 48px 22px 24px;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff; border-radius: 0 0 32px 32px; position: relative; overflow: hidden;
}
.send-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 110% 0%, rgba(255,184,0,0.3), transparent 45%),
    radial-gradient(circle at -10% 100%, rgba(255,184,0,0.1), transparent 50%);
  pointer-events: none;
}
.send-hero .icon-btn.back { position: absolute; left: 18px; top: 46px; z-index: 2; }
.send-hero h3 { text-align: center; color: #fff; font-size: 15px; letter-spacing: 0.08em; font-weight: 800; padding-top: 6px; }
.send-hero > p { text-align: center; font-size: 13px; color: rgba(255,255,255,0.75); margin: 4px 0 20px; }
.fx {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 12px 16px; backdrop-filter: blur(8px);
}
.fx-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.fx-col { flex: 1; min-width: 0; }
.fx-col label { display: block; font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; font-weight: 500; }
.fx-col input { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.fx-col input:focus { border-color: var(--yellow); }
.fx-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 2px 0; }
.flag-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: #fff; color: var(--navy-deep); border-radius: 999px;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.25);
  transition: transform 0.2s var(--ease-spring);
}
.flag-chip:hover { transform: translateY(-1px); }
.flag-chip .flag { font-size: 16px; line-height: 1; }

.send-body { padding: 20px 22px 0; }
.payout-label { text-align: center; font-weight: 800; font-size: 15px; color: var(--text); margin: 4px 0 12px; }
.payout-toggle {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface-2); border-radius: 999px; padding: 5px;
  box-shadow: inset 0 1px 3px rgba(11,45,91,0.08); margin-bottom: 18px;
}
.payout {
  position: relative; z-index: 1; padding: 10px 4px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--muted); transition: color 0.3s;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.payout.is-active { color: var(--navy-deep); }
.payout-indicator {
  position: absolute; top: 5px; left: 5px; bottom: 5px;
  width: calc((100% - 10px) / 4);
  background: var(--yellow); border-radius: 999px;
  transition: transform 0.4s var(--ease-spring);
  box-shadow: 0 4px 10px -2px rgba(255,184,0,0.5);
}
.info-list { display: grid; gap: 6px; margin-bottom: 16px; }
.info-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: 14px; font-size: 13px; }
.info-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 13px; }
.info-label { color: var(--muted); font-weight: 600; }
.info-value { margin-left: auto; color: var(--text); font-weight: 700; }
.secured-label { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; margin: 10px 0 8px; }
.secured-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.sec-badge { padding: 6px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; color: var(--navy); }
body[data-theme="dark"] .sec-badge { color: var(--yellow); }

/* ========== TRANSFER DETAIL VIEWS ========== */
.transfer-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--yellow); font-weight: 800; font-size: 13px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px; letter-spacing: 0.02em;
}
.step-hint { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.form-section-label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; margin-top: 2px;
}

/* Step progress indicator */
.step-prog { display: flex; align-items: center; gap: 0; margin: 12px 0 20px; position: relative; }
.sp-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--border-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--muted); flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.sp-dot.active { background: var(--yellow); border-color: var(--yellow-2); color: var(--navy-deep); }
.sp-dot.done   { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.sp-ln { flex: 0 0 24px; height: 2px; background: var(--border); transition: background 0.3s; }
.sp-ln.done { background: var(--accent-green); }
.sp-label { position: absolute; left: 0; bottom: -18px; font-size: 11px; color: var(--muted); font-weight: 600; }

/* Wallet choice (mobile money provider) */
.wallet-choice-row { display: grid; gap: 8px; margin-bottom: 8px; }
.wallet-choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px;
  border-radius: 16px; background: var(--surface-2); border: 2px solid transparent;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}
.wallet-choice:hover { transform: translateY(-1px); border-color: var(--border-2); }
.wallet-choice.is-active { border-color: var(--yellow); background: var(--surface); }
.wc-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; letter-spacing: 0.04em; flex-shrink: 0;
}
.wc-logo.mtn    { background: #ffcc00; color: #1a1a1a; font-size: 10px; }
.wc-logo.airtel { background: #e4002b; color: #fff; font-size: 18px; }
.wc-info { flex: 1; }
.wc-info p    { font-weight: 700; font-size: 14px; }
.wc-info span { font-size: 12px; color: var(--muted); }
.wc-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-3); display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--muted-2);
  transition: background 0.2s, color 0.2s;
}
.wallet-choice.is-active .wc-check { background: var(--yellow); color: var(--navy-deep); }

/* Pay method list */
.pay-method-list { display: grid; gap: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px;
  border-radius: 16px; background: var(--surface-2); border: 2px solid transparent;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}
.pay-method:hover { transform: translateY(-1px); border-color: var(--border-2); }
.pay-method.is-active { border-color: var(--yellow); background: var(--surface); }
.pay-ico  { font-size: 20px; width: 36px; flex-shrink: 0; text-align: center; }
.pay-info { flex: 1; }
.pay-info p    { font-weight: 700; font-size: 14px; }
.pay-info span { font-size: 12px; color: var(--muted); }
.pay-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-3); display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: var(--muted-2);
  transition: background 0.2s, color 0.2s;
}
.pay-method.is-active .pay-check { background: var(--yellow); color: var(--navy-deep); }

/* ========== REVIEW ========== */
.review-summary {
  padding: 20px; border-radius: 22px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; margin-bottom: 16px; box-shadow: var(--shadow-md);
}
.review-summary .muted { color: rgba(255,255,255,0.7); }
.review-amounts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.review-amounts > div { flex: 1; }
.review-amounts .big { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.review-amounts .big.accent { color: var(--yellow); }
.review-amounts span { color: rgba(255,255,255,0.65); }
.review-amounts .arrow { font-size: 20px; color: var(--yellow); }
.review-list {
  display: grid; gap: 6px; margin-bottom: 16px;
  padding: 14px 16px; background: var(--surface-2); border-radius: 18px;
}
.review-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; color: var(--muted); }
.review-list li span:last-child { color: var(--text); font-weight: 700; }
.review-list li.total { border-top: 1px dashed var(--border-2); padding-top: 12px; margin-top: 4px; font-size: 14px; }
.review-list li.total span { color: var(--text); font-weight: 800; }
.review-list .accent-val { color: var(--navy) !important; font-weight: 800 !important; }
body[data-theme="dark"] .review-list .accent-val { color: var(--yellow) !important; }
.steps { display: grid; gap: 4px; margin-bottom: 18px; }
.step {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease-spring);
}
.step:hover { background: var(--surface-2); transform: translateX(2px); }
.step.done .step-ico { background: var(--yellow); color: var(--navy-deep); }
.step-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--chip-bg); display: grid; place-items: center; font-size: 14px; }
.step .chev { margin-left: auto; color: var(--muted-2); font-size: 18px; }
.review-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.review-actions .btn { margin: 0; }

/* ========== CONFIRMATION ========== */
.confirm-wrap { text-align: center; padding: 40px 8px 20px; display: grid; gap: 10px; }
.check-badge {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  color: var(--navy-deep); display: grid; place-items: center; margin: 0 auto 10px;
  box-shadow: 0 18px 40px -10px rgba(255,184,0,0.55);
  animation: popIn 0.6s var(--ease-spring);
}
@keyframes popIn { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.confirm-wrap h2 { font-size: 24px; letter-spacing: -0.02em; }
.confirm-code { display: inline-grid; gap: 2px; padding: 12px 22px; margin: 4px auto; background: var(--surface-2); border-radius: 14px; }
.confirm-code strong { font-size: 18px; letter-spacing: 0.08em; font-family: monospace; }
.confirm-wrap .btn.wide { margin-top: 4px; }

/* ========== RECEIVE ========== */
.qr-wrap { padding: 26px; text-align: center; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.qr {
  width: 180px; height: 180px; margin: 0 auto 14px; border-radius: 22px;
  background: repeating-conic-gradient(var(--navy-deep) 0% 25%, #fff 0% 50%) 0 0 / 24px 24px, var(--navy-deep);
  border: 8px solid var(--surface); box-shadow: var(--shadow-md), 0 0 0 1px var(--border); position: relative;
}
.qr::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 12px; background: var(--yellow); box-shadow: 0 0 0 5px var(--surface); }
.qr-handle { font-weight: 800; font-size: 20px; margin: 4px 0; letter-spacing: -0.02em; }
.qr-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.pill-btn { padding: 11px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; transition: transform 0.2s var(--ease-spring), background 0.2s; }
.pill-btn:hover { transform: translateY(-2px); background: var(--navy-2); }
.pill-btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.feature-list { display: grid; gap: 6px; }
.feature-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.f-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; background: var(--chip-bg); }
.feature-list li:nth-child(1) .f-ico { background: #d6f5e4; }
.feature-list li:nth-child(2) .f-ico { background: var(--yellow); color: var(--navy-deep); }
.feature-list li:nth-child(3) .f-ico { background: var(--navy); color: var(--yellow); }
.feature-list p { font-size: 13px; font-weight: 700; }

/* ========== Filters ========== */
.filters { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid transparent; color: var(--muted); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring); }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--navy); color: #fff; }
body[data-theme="dark"] .filter.is-active { background: var(--yellow); color: var(--navy-deep); }

/* ========== MORE hub ========== */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.more-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 18px 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); text-align: left;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, background 0.2s;
}
.more-card:hover { transform: translateY(-3px); border-color: var(--yellow); background: var(--surface-2); }
.mc-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 4px;
}
.mc-ico.bills   { background: #ffe9a6; }
.mc-ico.profile { background: var(--navy); }
.mc-ico.receive { background: #d6f5e4; }
.mc-ico.help    { background: var(--surface-3); }
.more-card p    { font-weight: 800; font-size: 14px; letter-spacing: -0.015em; }
.more-card span { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ========== BILLS ========== */
.bill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 8px; }
.bill-tile {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 6px; border-radius: 14px;
  background: var(--surface); border: 2px solid transparent;
  font-size: 11px; font-weight: 700; color: var(--text);
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, background 0.2s;
}
.bill-tile span { font-size: 20px; line-height: 1; }
.bill-tile p    { font-size: 10px; font-weight: 700; text-align: center; }
.bill-tile:hover  { transform: translateY(-2px); border-color: var(--border-2); }
.bill-tile.is-active { border-color: var(--yellow); background: var(--surface-2); }

.selected-service-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--navy-deep);
  font-weight: 800; font-size: 13px;
  box-shadow: 0 4px 12px -4px rgba(255,184,0,0.5); margin-bottom: 8px;
}
.bill-details-card {
  padding: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; display: grid; gap: 10px; margin-top: 8px;
}

/* ========== PROFILE ========== */
.profile-hero { padding: 24px 18px 20px; text-align: center; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.profile-hero h3 { font-size: 22px; margin-bottom: 2px; letter-spacing: -0.025em; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.stat-row > div { padding: 14px 6px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 2px; }
.stat-row strong { font-size: 15px; letter-spacing: -0.02em; }
.stat-row span   { font-size: 11px; color: var(--muted); font-weight: 600; }
.list-card { display: grid; gap: 2px; border-radius: 18px; overflow: hidden; }
.list-card li { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; transition: background 0.2s; cursor: pointer; }
.list-card li:hover { background: var(--surface-2); }
.list-card li.danger { color: var(--danger); }
.chev { color: var(--muted-2); font-size: 18px; }

/* ========== Toast ========== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 999px;
  background: var(--navy-deep); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; z-index: 100;
  transition: opacity 0.25s, transform 0.35s var(--ease-spring);
  border: 1px solid rgba(255,184,0,0.3);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.section { margin-top: 4px; }

/* ========== Responsive ========== */
@media (max-width: 480px) {
  .stage { padding: 0; }
  .phone {
    width: 100%; height: 100vh; height: 100dvh;
    border-radius: 0; padding: 0; transform: none;
  }
  .screen {
    border-radius: 0;
    /* Respect iPhone notch / Dynamic Island / home indicator */
    padding-top:    env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left:   env(safe-area-inset-left);
    padding-right:  env(safe-area-inset-right);
  }
  .notch, .home-indicator { display: none; }
  .theme-toggle { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .glow, .wallet-card__shine { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* PWA standalone mode (when installed to home screen) */
@media (display-mode: standalone) {
  /* Always full-screen, regardless of viewport size */
  .stage   { padding: 0; }
  .phone   { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; padding: 0; transform: none; }
  .screen  { border-radius: 0;
             padding-top:    env(safe-area-inset-top);
             padding-bottom: env(safe-area-inset-bottom); }
  .notch, .home-indicator, .theme-toggle { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   BK-INSPIRED HOME DASHBOARD
   ════════════════════════════════════════════════════════════════════ */

.home-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.greet-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--text);
  padding: 0;
}
.greet-name strong { font-weight: 800; }
.brand-btn {
  background: var(--navy); border-color: var(--navy);
  color: var(--yellow);
}
.brand-btn:hover { background: var(--navy-2); }
.brand-mini { font-weight: 900; font-size: 18px; letter-spacing: -0.05em; }

/* Account card */
.acct-card {
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-2) 100%);
  border: 1px solid rgba(255,184,0,0.25);
  color: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 14px;
}
.acct-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255,184,0,0.25), transparent 50%);
  pointer-events: none;
}
.acct-card__head { position: relative; z-index: 1; margin-bottom: 14px; }
.acct-card__label { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 600; }
.acct-card__num   { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.04em; margin-top: 2px; font-family: monospace; }

.acct-balance-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}
.acct-balance {
  display: flex; align-items: baseline; gap: 4px;
  font-weight: 800; color: #fff;
}
.acct-ccy    { font-size: 16px; color: var(--yellow); font-weight: 700; }
.acct-amount { font-size: 22px; letter-spacing: -0.02em; }
.acct-amount-mask {
  font-size: 22px; letter-spacing: 0.15em; color: #fff;
  display: none;
}
.acct-card.is-hidden .acct-ccy,
.acct-card.is-hidden .acct-amount { display: none; }
.acct-card.is-hidden .acct-amount-mask { display: inline; }
.acct-eye-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--yellow);
  display: grid; place-items: center;
  transition: background 0.2s;
}
.acct-eye-btn:hover { background: rgba(255,255,255,0.15); }
.acct-eye-btn .eye-hide { display: none; }
.acct-card.is-hidden .acct-eye-btn .eye-show { display: none; }
.acct-card.is-hidden .acct-eye-btn .eye-hide { display: block; }

/* Quick links card */
.ql-card {
  padding: 16px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.ql-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding: 0 4px;
}
.ql-title {
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.12em;
}
.ql-customize {
  padding: 5px 12px; border-radius: 999px;
  background: var(--chip-bg);
  font-size: 11px; font-weight: 700; color: var(--navy);
  border: 1px solid var(--border);
}
body[data-theme="dark"] .ql-customize { color: var(--yellow); }
.ql-customize:hover { background: var(--surface-2); }

.ql-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.ql-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  transition: background 0.2s, transform 0.2s var(--ease-spring);
}
.ql-item:hover { background: var(--surface-2); transform: translateY(-2px); }
.ql-ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--chip-bg);
  color: var(--navy);
}
body[data-theme="dark"] .ql-ico { color: var(--yellow); background: rgba(255,184,0,0.12); }
.ql-item p { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; }

/* Promo card */
.promo-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  overflow: hidden;
  margin-bottom: 18px;
  cursor: pointer;
  border: 1px solid rgba(255,184,0,0.2);
  transition: transform 0.2s var(--ease-spring);
}
.promo-card:hover { transform: translateY(-2px); }
.promo-card__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(255,184,0,0.25), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(255,184,0,0.1), transparent 50%);
  pointer-events: none;
}
.promo-card__content { flex: 1; position: relative; z-index: 1; }
.promo-card__eyebrow {
  font-size: 10px; font-weight: 800; color: var(--yellow);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.promo-card__title {
  font-size: 14px; font-weight: 700; margin-top: 4px; line-height: 1.3;
}
.promo-card__visual {
  width: 64px; height: 64px; border-radius: 14px;
  background: rgba(255,184,0,0.15);
  border: 1px solid rgba(255,184,0,0.3);
  display: grid; place-items: center;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.promo-globe { font-size: 32px; }

/* Help row (3 buttons) */
.help-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.help-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px; font-weight: 700;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, background 0.2s;
}
.help-tile:hover { transform: translateY(-2px); border-color: var(--yellow); }
.help-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px;
}
.help-ico.chat  { background: var(--yellow); color: var(--navy-deep); }
.help-ico.email { background: var(--navy);   color: var(--yellow); }
.help-ico.call  { background: #d6f5e4; color: #0a7b44; }
body[data-theme="dark"] .help-ico.call { background: rgba(23,180,106,0.18); color: #5fe3a0; }

/* ════════════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ════════════════════════════════════════════════════════════════════ */
.notif-list { display: grid; gap: 6px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread {
  background: var(--surface-2);
  border-color: var(--yellow);
}
.notif-item.unread::before {
  content: ""; position: absolute; top: 16px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--yellow);
}
.notif-ico {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 16px;
  flex-shrink: 0;
}
.notif-ico.alert   { background: rgba(239,68,68,0.15); color: var(--danger); }
.notif-ico.txn     { background: var(--navy); color: var(--yellow); }
.notif-ico.login   { background: rgba(23,180,106,0.18); color: #0a7b44; }
.notif-ico.message { background: var(--yellow); color: var(--navy-deep); }
body[data-theme="dark"] .notif-ico.login { color: #5fe3a0; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.notif-text  { font-size: 12px; color: var(--muted); line-height: 1.4; }
.notif-time  { font-size: 11px; color: var(--muted-2); margin-top: 4px; font-weight: 600; }

.notif-empty {
  text-align: center; padding: 40px 20px;
  display: grid; gap: 8px;
}
.notif-empty-ico { font-size: 48px; }
.notif-empty p { font-weight: 700; font-size: 16px; }
.notif-empty span { font-size: 13px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════
   PAYMENT METHODS
   ════════════════════════════════════════════════════════════════════ */
.pm-list { display: grid; gap: 8px; }
.pm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.pm-ico {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.pm-ico.bank { background: var(--navy); color: var(--yellow); }
.pm-ico.card { background: var(--yellow); color: var(--navy-deep); }
.pm-ico.momo { background: #ffcc00; color: #1a1a1a; }
.pm-ico.airtel { background: #e4002b; color: #fff; }
.pm-info { flex: 1; min-width: 0; }
.pm-info p { font-weight: 700; font-size: 14px; }
.pm-info span { font-size: 12px; color: var(--muted); }
.pm-default-tag {
  font-size: 9px; font-weight: 700;
  background: var(--accent-green); color: #fff;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-left: 6px;
}
.pm-remove {
  color: var(--danger); font-size: 12px; font-weight: 700;
  padding: 6px 8px;
}
.pm-remove:hover { text-decoration: underline; }

.pm-empty {
  padding: 24px 20px; text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  border-radius: 16px;
}
.pm-empty p { font-size: 13px; color: var(--muted); }

.pm-add-grid { display: grid; gap: 8px; }
.pm-add-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s;
}
.pm-add-tile:hover { transform: translateX(2px); border-color: var(--yellow); }
.pm-add-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--chip-bg);
  display: grid; place-items: center; font-size: 20px;
  flex-shrink: 0;
}
.pm-add-tile p { font-weight: 700; font-size: 14px; }
.pm-add-tile span { font-size: 12px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════
   WITHDRAW
   ════════════════════════════════════════════════════════════════════ */
.withdraw-balance {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; text-align: center;
  box-shadow: var(--shadow-md); margin-bottom: 4px;
}
.withdraw-balance .muted { color: rgba(255,255,255,0.7); }
.withdraw-amount {
  font-size: 32px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  color: #fff; margin-top: 4px;
}
.withdraw-amount .ccy { font-size: 18px; color: var(--yellow); font-weight: 700; }

.wd-method-list { display: grid; gap: 8px; }
.wd-method {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 2px solid transparent;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}
.wd-method:hover { transform: translateY(-1px); border-color: var(--border-2); }
.wd-method.is-active { border-color: var(--yellow); background: var(--surface); }
.wd-ico { font-size: 24px; width: 40px; flex-shrink: 0; text-align: center; }
.wd-info { flex: 1; }
.wd-info p { font-weight: 700; font-size: 14px; }
.wd-info span { font-size: 12px; color: var(--muted); }
.wd-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: var(--muted-2);
  transition: background 0.2s, color 0.2s;
}
.wd-method.is-active .wd-check { background: var(--yellow); color: var(--navy-deep); }

/* ════════════════════════════════════════════════════════════════════
   SUPPORT
   ════════════════════════════════════════════════════════════════════ */
.support-list, .support-faq { display: grid; gap: 6px; }
.support-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease-spring), border-color 0.2s;
}
.support-item:hover { background: var(--surface-2); transform: translateX(2px); border-color: var(--yellow); }
.support-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  flex-shrink: 0;
}
.support-info { flex: 1; min-width: 0; }
.support-info p { font-weight: 700; font-size: 14px; }
.support-info span { font-size: 12px; color: var(--muted); }
.support-faq li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 12px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.support-faq li:hover { background: var(--surface-3); }

/* ════════════════════════════════════════════════════════════════════
   MORE GRID — extra icons
   ════════════════════════════════════════════════════════════════════ */
.mc-ico.withdraw   { background: var(--yellow); color: var(--navy-deep); }
.mc-ico.paymethods { background: rgba(23,180,106,0.18); color: #0a7b44; }
.mc-ico.notif      { background: rgba(239,68,68,0.15); color: var(--danger); }
.mc-ico.signout    { background: var(--surface-3); color: var(--danger); }
body[data-theme="dark"] .mc-ico.paymethods { color: #5fe3a0; }
.more-grid { grid-template-columns: 1fr 1fr; }


/* Verified KYC badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px var(--bg-elev-1);
}
.verified-badge svg { width: 14px; height: 14px; }


/* ════════════════════════════════════════════════════════════════════
   v2 features: verify-code, fund-wallet, send-liba, hint-card
   ════════════════════════════════════════════════════════════════════ */

/* Verify-code 5-digit input */
.verify-code {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 12px;
}
.verify-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  font-family: 'SF Mono', Menlo, monospace;
  background: var(--bg-elev-1);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  caret-color: var(--accent-yellow);
}
.verify-input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.15);
}
.verify-input.has-value {
  border-color: var(--accent-yellow);
  background: rgba(255, 184, 0, 0.08);
}

/* Hint card — explanatory copy at top of a flow */
.hint-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.hint-card--warn {
  background: rgba(255, 184, 0, 0.08);
  border-color: rgba(255, 184, 0, 0.4);
  color: var(--text-primary);
}
.hint-card strong { color: var(--text-primary); }

/* Quick amounts (Fund Wallet) */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.quick-amt {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
}
.quick-amt:hover {
  background: var(--bg-elev-2);
  border-color: var(--accent-yellow);
}
.quick-amt:active { transform: scale(0.96); }

/* Small muted helper text */
.muted.small { font-size: 12px; }


/* Fund Wallet source picker — 3 tappable cards with proper spacing */
.wallet-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.wallet-row .wallet-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}
.wallet-row .wallet-choice:hover {
  transform: translateY(-1px);
  border-color: var(--border-2);
}
.wallet-row .wallet-choice.is-active {
  border-color: var(--yellow);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.12);
}
.wallet-row .wallet-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.wallet-row .wallet-choice span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}


/* ════════════════════════════════════════════════════════════════════
   BOTTOM TAB BAR — fixed nav at bottom of phone screen
   Only shows on authenticated views (toggled via body[data-authed])
   ════════════════════════════════════════════════════════════════════ */

.tab-bar {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 12px;
  right: 12px;
  z-index: 10;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 8px 6px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

body[data-authed="true"] .tab-bar {
  display: grid;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.tab-btn svg {
  opacity: 0.7;
  transition: opacity 0.18s, transform 0.18s;
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn:hover svg {
  opacity: 1;
}
.tab-btn.is-active {
  color: var(--yellow);
  background: rgba(255, 184, 0, 0.10);
}
.tab-btn.is-active svg {
  opacity: 1;
  transform: translateY(-1px);
}

/* When tab bar is visible, give the home view extra bottom padding so
   content doesn't get hidden behind it. */
body[data-authed="true"] .view.is-active {
  padding-bottom: 90px;
}

/* Hide the home indicator when tab bar is visible (the bar replaces it) */
body[data-authed="true"] .home-indicator {
  display: none;
}
