/* =====================================================================
   Pure Gold - design system  (Royal Navy + 24K Gold)
   Tokens -> base -> components -> public site -> auth -> app shell
   ===================================================================== */
:root {
  /* Purple family. The token names below are historical - "navy" is the dark
     brand shade and "gold" is the action shade. Both are purple now; renaming
     them across two stylesheets would be a large edit for no visual gain. */
  --navy-900: #3A1461;
  --navy-800: #4A1C7D;
  --navy-700: #5F259F;
  --navy-600: #6E2FB3;
  --navy-500: #8B54C9;
  --gold-700: #5F259F;
  --gold-600: #6E2FB3;
  --gold-500: #7B3FBF;
  --gold-300: #B692E3;
  --gold-100: #F1E9FA;
  /* Real gold, used only where the screen is showing actual metal. */
  --metal-700: #B8892B;
  --metal-500: #E2B33C;
  --metal-300: #F6D77A;
  --cream: #F7F5FA;
  --cream-2: #EFEBF6;
  --paper: #FFFFFF;
  --ink: #1A1033;
  --ink-2: #3F3358;
  --muted: #6B6382;
  --muted-2: #9A93AD;
  --line: #E6DFF2;
  --line-2: #EFEAF8;
  --gain: #16A34A;
  --gain-bg: #ECFDF3;
  --loss: #DC2626;
  --loss-bg: #FEF2F2;
  --warn: #F59E0B;
  --warn-bg: #FFFBEB;
  --info: #2563EB;
  --info-bg: #EFF6FF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(58, 20, 97, .10);
  --shadow-sm: 0 2px 8px rgba(58, 20, 97, .07);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sidebar-w: 264px;
  --topbar-h: 64px;
  --bottomnav-h: 68px;
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-link-color: var(--navy-700);
  --bs-link-hover-color: var(--navy-900);
  --bs-border-color: var(--line);
  --bs-primary: var(--navy-700);
  --bs-primary-rgb: 95, 37, 159;
}


/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
h1, .h1 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(1.4rem, 1.4vw + .8rem, 2rem); line-height: 1.2; }
h3, .h3 { font-size: 1.25rem; }
a { text-decoration: none; }
a:hover { color: var(--gold-700); }
p { margin-bottom: .75rem; }
.text-muted { color: var(--muted) !important; }
.text-gold { color: var(--gold-700) !important; }
.text-navy { color: var(--navy-900) !important; }
.text-gain { color: var(--gain) !important; }
.text-loss { color: var(--loss) !important; }
.bg-navy { background: var(--navy-900) !important; color: #fff; }
.bg-gold { background: var(--gold-500) !important; }
.bg-cream { background: var(--cream) !important; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.fw-800 { font-weight: 800; }
.fs-7 { font-size: .8125rem; }
.small-caps { font-size: .75rem; color: var(--muted); font-weight: 600; }
.lh-1 { line-height: 1; }
::selection { background: var(--gold-300); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .65rem 1.15rem; font-size: .95rem; transition: transform .12s ease, box-shadow .12s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: .4rem .8rem; font-size: .82rem; border-radius: 10px; }
.btn-gold { background: var(--gold-500); color: #fff; border: 1px solid var(--gold-500); box-shadow: 0 6px 18px rgba(123, 63, 191, .30); }
.btn-gold:hover, .btn-gold:focus { background: var(--navy-700); border-color: var(--navy-700); color: #fff; box-shadow: 0 8px 22px rgba(123, 63, 191, .40); }
.btn-navy { background: var(--navy-900); color: #fff; border: 1px solid var(--navy-900); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-outline-navy { background: transparent; color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; }
.btn-outline-light { border-width: 1.5px; }
.btn-soft { background: var(--cream-2); color: var(--navy-900); border: 1px solid var(--line); }
.btn-soft:hover { background: var(--gold-100); border-color: var(--gold-300); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--cream-2); color: var(--navy-900); }
.btn-danger-soft { background: var(--loss-bg); color: var(--loss); border: 1px solid #FECACA; }
.btn-danger-soft:hover { background: var(--loss); color: #fff; }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.btn[disabled], .btn.disabled { opacity: .55; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .875rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-control, .form-select { border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; font-size: .95rem; background: #fff; color: var(--ink); min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(123, 63, 191, .2); }
.form-control-lg { min-height: 54px; font-size: 1.05rem; }
.form-text { color: var(--muted); font-size: .8rem; }
.input-group-text { background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--navy-900); }
.input-group > .form-control { border-radius: 12px; }
.input-group > :first-child:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > :last-child:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.is-invalid { border-color: var(--loss) !important; }
.invalid-feedback { display: block; font-size: .8rem; }
.form-check-input { width: 1.15em; height: 1.15em; border: 1.5px solid var(--line); }
.form-check-input:checked { background-color: var(--navy-900); border-color: var(--navy-900); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }
.form-switch .form-check-input:checked { background-color: var(--gold-500); border-color: var(--gold-500); }
.form-switch .form-check-input:focus { box-shadow: 0 0 0 4px rgba(123, 63, 191, .2); }

/* ---------- Cards, badges, tables ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: none; }
.card-header { background: transparent; border-bottom: 1px solid var(--line-2); font-weight: 700; padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.pg-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.pg-card.lift { box-shadow: var(--shadow); border-color: transparent; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 1.5rem 0 .75rem; }
.section-title h2, .section-title h3 { margin: 0; font-size: 1.05rem; }
.section-title a { font-size: .85rem; font-weight: 600; }
.badge { font-weight: 600; border-radius: 999px; padding: .38em .7em; font-size: .72rem; letter-spacing: .01em; white-space: nowrap; }
.badge-soft-success { background: var(--gain-bg); color: var(--gain); }
.badge-soft-danger { background: var(--loss-bg); color: var(--loss); }
.badge-soft-warning { background: var(--warn-bg); color: #B45309; }
.badge-soft-info { background: var(--info-bg); color: var(--info); }
.badge-soft-secondary { background: var(--cream-2); color: var(--muted); }
.badge-soft-gold { background: var(--gold-100); color: var(--gold-700); }
.badge-soft-navy { background: #EDE5F8; color: var(--navy-900); }
.table { --bs-table-bg: transparent; font-size: .9rem; }
.table > :not(caption) > * > * { padding: .75rem .9rem; border-bottom-color: var(--line-2); }
.table thead th { font-size: .75rem; text-transform: none; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-hover > tbody > tr:hover > * { background: var(--cream); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; background: var(--cream-2); color: var(--navy-900); font-weight: 600; font-size: .8rem; border: 1px solid var(--line); }
.chip.gold { background: var(--gold-100); border-color: var(--gold-300); color: var(--gold-700); }
.chip.gain { background: var(--gain-bg); border-color: #BBF7D0; color: var(--gain); }
.chip.loss { background: var(--loss-bg); border-color: #FECACA; color: var(--loss); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 1.8rem; }
.divider { height: 1px; background: var(--line-2); margin: 1rem 0; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem 0; }
.list-plain li i { color: var(--gold-700); margin-top: .15rem; }
.alert { border-radius: 12px; border: 1px solid transparent; font-size: .9rem; }
.alert-success { background: var(--gain-bg); border-color: #BBF7D0; color: #166534; }
.alert-danger { background: var(--loss-bg); border-color: #FECACA; color: #991B1B; }
.alert-warning { background: var(--warn-bg); border-color: #FDE68A; color: #92400E; }
.alert-info { background: var(--info-bg); border-color: #BFDBFE; color: #1E40AF; }
.icon-tile { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; background: var(--gold-100); color: var(--gold-700); flex: 0 0 auto; }
.icon-tile.navy { background: #EDE5F8; color: var(--navy-900); }
.icon-tile.lg { width: 60px; height: 60px; font-size: 1.6rem; border-radius: 16px; }
.progress { height: 8px; border-radius: 999px; background: var(--cream-2); }
.progress-bar { background: linear-gradient(90deg, var(--gold-700), var(--gold-500)); border-radius: 999px; }
.stat-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.empty-state { text-align: center; padding: 2rem 1rem; }
.empty-state .icon-tile { margin: 0 auto .75rem; }
.empty-state p { color: var(--muted); max-width: 34ch; margin: .25rem auto .9rem; }
.pagination .page-link { border-radius: 10px !important; margin: 0 2px; border: 1px solid var(--line); color: var(--navy-900); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--navy-900); border-color: var(--navy-900); }
.nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; padding: .6rem .9rem; border-radius: 0; }
.nav-tabs .nav-link.active { color: var(--navy-900); border-bottom-color: var(--gold-500); background: transparent; }
.nav-pills .nav-link { border-radius: 999px; color: var(--navy-900); font-weight: 600; font-size: .85rem; }
.nav-pills .nav-link.active { background: var(--navy-900); }
.modal-content { border-radius: 18px; border: 0; }
.dropdown-menu { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem; }
.dropdown-item { border-radius: 10px; font-weight: 500; padding: .55rem .8rem; }
.dropdown-item:hover { background: var(--cream-2); color: var(--navy-900); }
.tooltip-inner { font-family: var(--font); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.toast-container { z-index: 1090; }
.toast { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 500; }

/* ---------- Page loader ---------- */
.pg-loader { position: fixed; inset: 0; background: var(--cream); z-index: 2000; display: flex; align-items: center; justify-content: center; transition: opacity .35s ease, visibility .35s ease; }
.pg-loader.hide { opacity: 0; visibility: hidden; }
.pg-loader .coin { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-300), var(--gold-500) 55%, var(--gold-700)); box-shadow: 0 10px 30px rgba(123, 63, 191, .45); animation: coin-spin 1.1s ease-in-out infinite; position: relative; }
.pg-loader .coin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid rgba(58, 20, 97, .25); }
@keyframes coin-spin { 0% { transform: rotateY(0deg); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .pg-loader .coin { animation: none; } * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 14px; right: 14px; left: 14px; z-index: 1080; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.flash-stack .alert { pointer-events: auto; box-shadow: var(--shadow); margin: 0; display: flex; align-items: flex-start; gap: .6rem; animation: flash-in .25s ease; }
.flash-stack .alert .btn-close { margin-left: auto; font-size: .7rem; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 576px) { .flash-stack { left: auto; width: 380px; } }

/* =====================================================================
   PUBLIC WEBSITE
   Rhythm: dark hero -> alternating cream / white bands -> navy trust ->
   gold call to action. Every band changes background so the page never
   reads as one long list of identical cards.
   ===================================================================== */
.public-body { background: var(--paper); }

/* ---------- Top utility bar ---------- */
.site-topbar { background: var(--navy-900); color: rgba(255, 255, 255, .68); font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-topbar > .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.35rem; min-width: 0; }
.topbar-link { display: inline-flex; align-items: center; gap: .45rem; color: rgba(255, 255, 255, .68); font-weight: 500; white-space: nowrap; }
.topbar-link i { color: var(--gold-300); font-size: .95rem; }
.topbar-link:hover { color: #fff; }
.topbar-rate { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.topbar-rate:hover { color: #fff; }
.topbar-rate .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .22); flex: 0 0 auto; }
.topbar-rate .lbl { font-weight: 600; letter-spacing: .02em; }
.topbar-rate strong { color: var(--gold-300); font-weight: 800; }
.topbar-rate strong span { font-weight: 600; color: rgba(255, 255, 255, .55); font-size: .78em; }
.topbar-divider { width: 1px; height: 18px; background: rgba(255, 255, 255, .16); }
.topbar-social { display: inline-flex; align-items: center; gap: .3rem; }
.topbar-social a { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .7); font-size: .95rem; transition: background .15s ease, color .15s ease; }
.topbar-social a:hover { background: var(--gold-500); color: var(--navy-900); }
@media (max-width: 575.98px) {
  .site-topbar { font-size: .78rem; }
  .topbar-left, .topbar-right { gap: .75rem; }
  .topbar-social a { width: 28px; height: 28px; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1020; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-2); transition: box-shadow .2s ease; }
.site-header.is-stuck { box-shadow: 0 8px 28px rgba(58, 20, 97, .09); }
.site-header .navbar { padding: 0; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy-900); font-weight: 800; font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.1; }
.brand img { height: 46px; width: auto; }
.brand > span { display: flex; flex-direction: column; }
.brand small { font-weight: 600; font-size: .68rem; letter-spacing: .01em; color: var(--muted); margin-top: .15rem; }
.brand:hover { color: var(--navy-900); }
.navbar-toggler { font-size: 1.6rem; color: var(--navy-900); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }
.site-nav { gap: .15rem; }
.site-nav .nav-link { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: .65rem .95rem !important; border-radius: 10px; position: relative; white-space: nowrap; }
.site-nav .nav-link:hover { color: var(--navy-900); background: var(--cream-2); }
.site-nav .nav-link.active { color: var(--navy-900); background: transparent; }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .1rem; height: 2.5px; border-radius: 2px; background: var(--gold-500); }
.site-nav .nav-login { color: var(--navy-900); }
.site-nav .nav-cta { margin-left: .85rem; }
.site-nav .nav-cta .btn { padding: .7rem 1.35rem; font-size: .95rem; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .nav-link { padding: .6rem .7rem !important; font-size: .9rem; }
  .brand small { display: none; }
}
@media (max-width: 991.98px) {
  .site-header .navbar { min-height: 70px; }
  .brand img { height: 40px; }
  .brand { font-size: 1.15rem; }
  .site-nav { gap: .2rem; padding-bottom: 1rem; }
  .site-nav .nav-link.active::after { display: none; }
  .site-nav .nav-link.active { background: var(--cream-2); }
  .site-nav .nav-cta { margin-left: 0; margin-top: .5rem; }
  .site-nav .nav-cta .btn { width: 100%; }
}

/* ---------- Section bands ---------- */
.section { padding: 4rem 0; position: relative; }
.section.tight { padding: 2.75rem 0; }
.band-cream { background: var(--cream); }
.band-white { background: var(--paper); }
.band-navy { background: var(--navy-900); color: rgba(255, 255, 255, .78); }
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4, .band-navy strong { color: #fff; }
.band-pattern { background: var(--cream) url("../img/art/pattern-arcs.svg") repeat; background-size: 220px; }
.section-head { max-width: 54ch; margin-bottom: 2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 1.4vw + 1.05rem, 2.05rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }
.band-navy .section-head p { color: rgba(255, 255, 255, .68); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: var(--gold-100); color: var(--gold-700); border: 1px solid var(--gold-300); font-weight: 700; font-size: .76rem; letter-spacing: .02em; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.eyebrow.on-dark { background: rgba(182, 146, 227, .12); border-color: rgba(182, 146, 227, .35); color: var(--gold-300); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 3rem; background: linear-gradient(160deg, #3A1461 0%, #4A1C7D 52%, #5F259F 100%); color: rgba(255, 255, 255, .8); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/art/hero-backdrop.svg") no-repeat center/cover; opacity: .9; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(2rem, 3vw + 1rem, 3.15rem); line-height: 1.08; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero .lead { color: rgba(255, 255, 255, .74); font-size: 1.06rem; max-width: 48ch; margin-top: .9rem; }
.hero .btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero .btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats div strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--gold-300); letter-spacing: -.02em; }
.hero-stats div span { font-size: .8rem; color: rgba(255, 255, 255, .6); font-weight: 600; }

/* Phone frame holding the live preview */
.device { width: 300px; max-width: 100%; margin: 0 auto; background: #2C0F4B; border: 9px solid #2C0F4B; border-radius: 40px; box-shadow: 0 34px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .09) inset; position: relative; }
.device::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 96px; height: 20px; border-radius: 0 0 14px 14px; background: #2C0F4B; z-index: 3; }
.device__screen { background: var(--cream); color: var(--ink); border-radius: 32px; overflow: hidden; padding: 2rem .75rem .9rem; }
.device__screen .gold-card { border-radius: 18px; min-height: 0; padding: 1.1rem 1.15rem; box-shadow: 0 10px 24px rgba(58, 20, 97, .25); }
.device__screen .gold-card .grams { font-size: 1.9rem; }
.device__screen .gold-card .coin-mark { width: 34px; height: 34px; right: 14px; top: 14px; }
.device-note { color: rgba(255, 255, 255, .45); font-size: .76rem; text-align: center; margin: .85rem 0 0; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .15rem; border-bottom: 1px solid var(--line-2); font-size: .82rem; }
.mini-row:last-child { border-bottom: 0; }
.mini-row strong { font-weight: 700; color: var(--navy-900); white-space: nowrap; }

/* ---------- Live rate strip ---------- */
.rate-strip { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.75rem; }
.rate-strip .live { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; color: var(--gold-300); letter-spacing: .06em; text-transform: uppercase; }
.rate-strip .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.rate-strip .rate { font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -.02em; }
.rate-strip .rate.is-lead { font-size: 1.5rem; color: var(--gold-300); }
.rate-strip .rate small { display: block; font-weight: 600; font-size: .7rem; color: rgba(255, 255, 255, .55); letter-spacing: .01em; }
.rate-strip .rate-meta { font-size: .78rem; color: rgba(255, 255, 255, .55); }
.rate-strip .rate-meta a { color: var(--gold-300); font-weight: 600; }

/* ---------- Steps ---------- */
.steps-grid { counter-reset: stepcard; position: relative; }
.step-card { position: relative; padding: 1.5rem 1.25rem 1.35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-card .num { counter-increment: step; width: 38px; height: 38px; border-radius: 12px; background: var(--navy-900); color: var(--gold-300); font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.step-card .num::before { counter-increment: stepcard; content: counter(stepcard, decimal-leading-zero); }
.step-card h4 { font-size: 1.02rem; margin: 0 0 .35rem; }
.step-card p { color: var(--muted); font-size: .91rem; margin: 0; }

/* ---------- Split rows (illustration + copy) ---------- */
.split { align-items: center; }
.split + .split { margin-top: 3.5rem; }
.split__media { position: relative; border-radius: 26px; background: var(--cream); border: 1px solid var(--line); padding: 1.75rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.band-cream .split__media { background: var(--paper); }
.split__media img { width: 100%; max-width: 420px; height: auto; display: block; }
.split__media.is-photo { padding: 0; }
.split__media.is-photo img { max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }
.split h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.75rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.split p { color: var(--muted); font-size: 1rem; }
.split .list-plain li { font-size: .95rem; }
@media (min-width: 992px) {
  .split.reverse > .split-media-col { order: 2; }
}

/* ---------- Cards ---------- */
.save-mode { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.save-mode:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.save-mode strong { display: block; color: var(--navy-900); margin-bottom: .15rem; }
.save-mode span { color: var(--muted); font-size: .88rem; display: block; }
.save-mode .go { margin-left: auto; color: var(--gold-700); opacity: 0; transform: translateX(-4px); transition: all .15s ease; }
.save-mode:hover .go { opacity: 1; transform: none; }
.feature-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.feature-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-tile h3 { font-size: 1.05rem; margin: 1rem 0 .35rem; }
.feature-tile p { color: var(--muted); font-size: .92rem; margin: 0; }
.min-w-0 { min-width: 0; }

/* ---------- Trust ---------- */
.trust-band .list-plain li { padding: .5rem 0; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.trust-band .list-plain li i { color: var(--gold-300); font-size: 1.05rem; }
.trust-art { max-width: 320px; width: 100%; }

/* ---------- FAQ ---------- */
.accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .6rem; overflow: hidden; background: var(--paper); }
.accordion-button { font-weight: 600; background: var(--paper); color: var(--ink); padding: 1.05rem 1.2rem; font-size: .98rem; }
.accordion-button:not(.collapsed) { background: var(--gold-100); color: var(--navy-900); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(123, 63, 191, .2); }
.accordion-body { color: var(--ink-2); font-size: .93rem; }

/* ---------- CMS content ---------- */
.cms-page { max-width: 780px; }
.cms-page .content { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.cms-page .content h2 { font-size: 1.3rem; margin: 1.75rem 0 .7rem; }
.cms-page .content h3 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; }
.cms-page .content p { color: var(--ink-2); }
.cms-page .content ul, .cms-page .content ol { color: var(--ink-2); padding-left: 1.15rem; }
.cms-page .content li { margin-bottom: .35rem; }
.cms-page .content > :first-child { margin-top: 0; }

/* ---------- Disclaimer ---------- */
.disclaimer { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; font-size: .85rem; color: var(--ink-2); }
.band-navy .disclaimer { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }

/* ---------- Trust strip (sits above the footer) ---------- */
.trust-strip { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.trust-strip > .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.trust-strip__items { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.trust-strip__items span { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.trust-strip__items i { color: var(--gold-700); font-size: 1rem; }
.trust-strip__pay { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.trust-strip__pay .lbl { font-size: .78rem; color: var(--muted); font-weight: 600; margin-right: .2rem; }
.pay-chip { display: inline-flex; align-items: center; padding: .3rem .65rem; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: .76rem; font-weight: 700; color: var(--navy-900); letter-spacing: .01em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 0 0 1.5rem; }
.site-footer a { color: rgba(255, 255, 255, .78); font-size: .9rem; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer .footer-top { padding: 2.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .footer-top h3 { color: #fff; font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); letter-spacing: -.02em; margin-bottom: .4rem; }
.site-footer .footer-top p { color: rgba(255, 255, 255, .66); max-width: 52ch; }
.site-footer .footer-top .btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.site-footer .footer-top .btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.site-footer .footer-main { padding: 2.75rem 0 1.5rem; }
.site-footer h5 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer .brand { color: #fff; font-size: 1.25rem; }
.site-footer .brand img { height: 42px; }
.site-footer .foot-links { display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.site-footer .foot-address { display: flex; gap: .5rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.site-footer .foot-address i { color: var(--gold-300); margin-top: .15rem; }
.site-footer .social-row { display: flex; gap: .5rem; margin-top: 1.25rem; }
.site-footer .social-row a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.site-footer .social-row a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.site-footer .foot-note { font-size: .8rem; color: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.35rem; }
.site-footer .foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .foot-version { color: rgba(255, 255, 255, .35); }


/* ---------- Numbered steps used inside the app (KYC, onboarding) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -12px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: var(--gold-300); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.step h4 { font-size: 1rem; margin: .35rem 0 .3rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* =====================================================================
   THE GOLD CARD (shared by dashboard + home preview)
   ===================================================================== */
.gold-card { position: relative; overflow: hidden; border-radius: 22px; padding: 1.35rem 1.4rem; color: #fff; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 70%, #6E2FB3 100%); box-shadow: 0 18px 40px rgba(58, 20, 97, .28); min-height: 196px; }
.gold-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -110px; background: radial-gradient(circle, rgba(226, 179, 60, .20), rgba(226, 179, 60, 0) 62%); }
.gold-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-18deg); animation: shimmer 2.4s ease-out .5s 1; pointer-events: none; }
@keyframes shimmer { from { left: -60%; } to { left: 130%; } }
.gold-card .label { font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: .4rem; }
.gold-card .grams { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: .3rem 0 .15rem; color: var(--metal-300); }
.gold-card .grams small { font-size: .5em; font-weight: 700; color: rgba(255, 255, 255, .8); margin-left: .15rem; }
.gold-card .value { font-size: 1.1rem; font-weight: 700; }
.gold-card .value .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); color: #fff; margin-left: .5rem; }
.gold-card .value .chip.gain { color: #86EFAC; }
.gold-card .value .chip.loss { color: #FCA5A5; }
.gold-card .rates { display: flex; gap: 1.2rem; margin-top: .9rem; font-size: .8rem; color: rgba(255, 255, 255, .75); }
.gold-card .rates strong { color: #fff; }
.gold-card .coin-mark { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; }
.gold-card .actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.gold-card .actions .btn { flex: 1 1 140px; }
/* On a purple card a purple button disappears, so the main action goes white. */
.gold-card .btn-gold { background: #fff; color: var(--navy-700); border-color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.gold-card .btn-gold:hover, .gold-card .btn-gold:focus { background: var(--gold-100); border-color: var(--gold-100); color: var(--navy-900); }
.gold-card .btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.gold-card .btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* =====================================================================
   AUTH LAYOUT (login / OTP / onboarding / admin login)
   ===================================================================== */
.auth-body { min-height: 100vh; background: var(--navy-900); background-image: radial-gradient(circle at 15% 20%, rgba(123, 63, 191, .22), transparent 40%), radial-gradient(circle at 85% 90%, rgba(139, 84, 201, .55), transparent 45%); display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.auth-top .brand { color: #fff; }
.auth-top a.back { color: rgba(255, 255, 255, .75); font-weight: 600; font-size: .9rem; }
.auth-top a.back:hover { color: var(--gold-300); }
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem 1rem 2.5rem; }
.auth-card { width: 100%; max-width: 460px; margin-inline: auto; background: var(--paper); border-radius: 24px; padding: 1.75rem 1.5rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.auth-card.wide { max-width: 720px; }
.auth-card h1 { font-size: 1.55rem; margin-bottom: .25rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.25rem; }
.auth-side { display: none; }
.auth-split { width: 100%; max-width: 1060px; align-items: center; }
@media (min-width: 992px) {
  .auth-side { display: block; color: #fff; }
  .auth-side h2 { color: #fff; font-size: 2.2rem; max-width: 16ch; letter-spacing: -.02em; }
  .auth-side p { color: rgba(255, 255, 255, .72); max-width: 44ch; font-size: 1.02rem; }
  .auth-side .list-plain li { color: rgba(255, 255, 255, .85); }
  .auth-side .list-plain li i { color: var(--gold-300); }
}
.auth-foot { text-align: center; color: rgba(255, 255, 255, .55); font-size: .78rem; padding: 0 1rem 1.25rem; }
.otp-boxes { display: flex; gap: .55rem; justify-content: space-between; }
.otp-boxes input { width: 100%; max-width: 58px; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 700; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy-900); }
.otp-boxes input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(123, 63, 191, .2); outline: 0; }
.test-otp { background: var(--warn-bg); border: 1px dashed #FCD34D; border-radius: 12px; padding: .75rem .9rem; font-size: .85rem; color: #92400E; }
.test-otp strong { font-size: 1.2rem; letter-spacing: .25em; color: var(--navy-900); }
.countdown { font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.stepper { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.stepper span { flex: 1; height: 5px; border-radius: 999px; background: var(--cream-2); }
.stepper span.done { background: var(--gold-500); }
.stepper span.current { background: var(--navy-900); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
@media (min-width: 576px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice .box { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem .6rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: center; font-weight: 600; font-size: .88rem; color: var(--ink-2); transition: all .15s ease; }
.choice .box i { font-size: 1.4rem; color: var(--gold-700); }
.choice input:checked + .box { border-color: var(--navy-900); background: var(--gold-100); color: var(--navy-900); box-shadow: 0 0 0 3px rgba(123, 63, 191, .25); }
.choice input:focus-visible + .box { outline: 3px solid var(--gold-300); }
.amount-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.amount-chips .choice .box { flex-direction: row; padding: .55rem 1rem; font-size: 1rem; font-weight: 700; }
.freq-list .choice .box { flex-direction: row; justify-content: flex-start; text-align: left; padding: .9rem 1rem; gap: .8rem; }
.freq-list .choice .box small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.summary-box { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.summary-box .row-item { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .92rem; }
.summary-box .row-item span:first-child { color: var(--muted); }

/* =====================================================================
   APP SHELL (logged-in users)
   ===================================================================== */
.app-body { background: var(--cream); }
.app-sidebar { display: none; }
.app-topbar { position: sticky; top: 0; z-index: 1030; height: var(--topbar-h); background: var(--navy-900); color: #fff; display: flex; align-items: center; padding: 0 1rem; gap: .75rem; }
.app-topbar .brand { color: #fff; font-size: 1.05rem; }
.app-topbar .brand img { height: 30px; }
.app-topbar .page-title { display: none; }
.app-topbar .spacer { flex: 1; }
.topbar-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .1); border: 0; font-size: 1.15rem; }
.topbar-btn:hover { background: rgba(255, 255, 255, .18); color: var(--gold-300); }
.topbar-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--gold-500); color: var(--navy-900); font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.app-topbar .avatar { width: 36px; height: 36px; font-size: .8rem; border: 2px solid rgba(255, 255, 255, .25); }
.app-content { padding: 1.1rem 1rem calc(var(--bottomnav-h) + 1.25rem); max-width: 1140px; margin: 0 auto; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottomnav-h); background: var(--paper); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: flex-end; z-index: 1030; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; color: var(--muted); font-size: .68rem; font-weight: 600; }
.bottom-nav a i { font-size: 1.35rem; line-height: 1; }
.bottom-nav a.active { color: var(--navy-900); }
.bottom-nav a.active i { color: var(--gold-700); }
.bottom-nav a.center span.ring { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-top: -26px; box-shadow: 0 8px 20px rgba(123, 63, 191, .5); border: 4px solid var(--cream); }
.greeting h1 { font-size: 1.35rem; margin: 0; }
.greeting p { color: var(--muted); margin: 0; font-size: .9rem; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .8rem .3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); font-size: .74rem; font-weight: 600; text-align: center; }
.quick-actions a i { font-size: 1.35rem; color: var(--navy-900); width: 40px; height: 40px; border-radius: 12px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; }
.quick-actions a:hover { border-color: var(--gold-300); color: var(--navy-900); }
.quick-actions a:hover i { background: var(--gold-100); color: var(--gold-700); }
@media (min-width: 576px) { .quick-actions { grid-template-columns: repeat(8, 1fr); } }
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.stat-tile .stat-value { font-size: 1.2rem; }
.goal-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.goal-row:last-child { border-bottom: 0; }
.goal-row .goal-body { flex: 1; min-width: 0; }
.goal-row .goal-body strong { display: block; font-size: .93rem; }
.goal-row .goal-body small { color: var(--muted); }
.txn-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.txn-row:last-child { border-bottom: 0; }
.txn-row .icon-tile { width: 40px; height: 40px; font-size: 1.05rem; }
.txn-row .txn-body { flex: 1; min-width: 0; }
.txn-row .txn-body strong { display: block; font-size: .9rem; }
.txn-row .txn-body small { color: var(--muted); }
.txn-row .txn-amt { text-align: right; font-weight: 700; }
.txn-row .txn-amt small { display: block; color: var(--muted); font-weight: 500; }
.notif { display: flex; gap: .85rem; padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .6rem; color: var(--ink); }
.notif.unread { border-left: 3px solid var(--gold-500); background: #FCFAFF; }
.notif strong { display: block; font-size: .93rem; }
.notif p { margin: 0; color: var(--muted); font-size: .86rem; }
.notif time { font-size: .75rem; color: var(--muted-2); white-space: nowrap; }
.device-row { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
.device-row:last-child { border-bottom: 0; }
.device-row .device-body { flex: 1; min-width: 0; }
.device-row .device-body strong { display: block; font-size: .92rem; }
.device-row .device-body small { color: var(--muted); display: block; }
.profile-head { display: flex; align-items: center; gap: 1rem; }
.profile-head .avatar-upload { position: relative; }
.profile-head .avatar-upload label { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #fff; font-size: .85rem; }
.kyc-banner { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 14px; background: var(--warn-bg); border: 1px solid #FDE68A; }
.kyc-banner strong { display: block; font-size: .9rem; }
.kyc-banner small { color: #92400E; }
.referral-code { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: var(--navy-900); color: #fff; border-radius: 14px; padding: .9rem 1rem; }
.referral-code strong { font-size: 1.35rem; letter-spacing: .12em; color: var(--gold-300); }
.coming-soon-hero { text-align: center; padding: 2rem 1rem; }
.coming-soon-hero .icon-tile { margin: 0 auto 1rem; }
.coming-soon-hero p { color: var(--muted); max-width: 44ch; margin: .5rem auto 1rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: .45rem 0 .45rem 1.5rem; font-size: .88rem; border-left: 2px solid var(--line); margin-left: .5rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .9rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); border: 2px solid #fff; }
.timeline li small { display: block; color: var(--muted); }

@media (min-width: 992px) {
  .app-sidebar { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w); background: var(--navy-900); color: #fff; padding: 1.1rem 1rem; z-index: 1040; overflow-y: auto; }
  .app-sidebar .brand { color: #fff; padding: .25rem .5rem 1.25rem; }
  .app-sidebar .menu-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .4); padding: .9rem .75rem .35rem; }
  .app-sidebar a.item { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 12px; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
  .app-sidebar a.item i { font-size: 1.1rem; width: 22px; text-align: center; }
  .app-sidebar a.item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .app-sidebar a.item.active { background: var(--gold-500); color: var(--navy-900); }
  .app-sidebar a.item .soon { margin-left: auto; font-size: .62rem; font-weight: 700; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); padding: .15rem .45rem; border-radius: 999px; }
  .app-sidebar a.item.active .soon { background: rgba(58, 20, 97, .18); color: var(--navy-900); }
  .app-sidebar .side-foot { margin-top: auto; padding-top: 1rem; }
  .app-sidebar .side-foot .user-chip { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; background: rgba(255, 255, 255, .06); border-radius: 14px; }
  .app-sidebar .side-foot .user-chip strong { display: block; font-size: .88rem; }
  .app-sidebar .side-foot .user-chip small { color: rgba(255, 255, 255, .55); font-size: .75rem; }
  .app-main { margin-left: var(--sidebar-w); }
  .app-topbar { background: rgba(251, 248, 241, .92); color: var(--ink); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(10px); padding: 0 1.5rem; }
  .app-topbar .brand { display: none; }
  .app-topbar .page-title { display: block; font-weight: 700; font-size: 1.05rem; }
  .topbar-btn { color: var(--navy-900); background: var(--paper); border: 1px solid var(--line); }
  .topbar-btn:hover { background: var(--gold-100); color: var(--gold-700); }
  .app-topbar .avatar { border-color: var(--line); }
  .app-content { padding: 1.5rem 1.5rem 3rem; }
  .bottom-nav { display: none; }
  .greeting h1 { font-size: 1.6rem; }
}
@media (min-width: 1200px) { .app-content { padding: 1.75rem 2rem 3rem; } }

/* ---------- Error / maintenance ---------- */
.error-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--cream); }
.error-card { max-width: 520px; width: 100%; text-align: center; }
.error-card .code { font-size: 4rem; font-weight: 800; color: var(--gold-500); letter-spacing: -.04em; line-height: 1; }
.error-card h1 { font-size: 1.5rem; margin: .5rem 0; }
.error-card p { color: var(--muted); }
.error-card pre { text-align: left; font-size: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; max-height: 320px; overflow: auto; white-space: pre-wrap; }

@media print { .app-sidebar, .app-topbar, .bottom-nav, .site-header, .site-footer, .pg-loader, .flash-stack { display: none !important; } .app-main { margin: 0; } }

/* =====================================================================
   PHASE 2 - website pages, blog, calculators, offers
   ===================================================================== */
.page-hero { padding: 3rem 0 2.75rem; background: var(--cream) url("../img/art/pattern-arcs.svg") repeat; background-size: 240px; border-bottom: 1px solid var(--line-2); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -150px; top: -220px; background: radial-gradient(circle, rgba(226,179,60,.26), rgba(226,179,60,0) 65%); pointer-events: none; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .icon-tile.lg { margin-bottom: .85rem; }
.page-hero h1 { max-width: 20ch; margin-bottom: .55rem; font-size: clamp(1.75rem, 2vw + 1.1rem, 2.6rem); letter-spacing: -.025em; }
.page-hero .lead { color: var(--ink-2); max-width: 62ch; font-size: 1.05rem; margin: 0; }
.page-hero__art { max-width: 300px; width: 100%; margin-left: auto; display: block; }
@media (max-width: 991.98px) { .page-hero__art { display: none; } }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .9rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--navy-900); }
.crumbs i { font-size: .7rem; }

.prose { color: var(--ink-2); line-height: 1.7; }
.prose h2 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.prose p { margin-bottom: .9rem; }
.prose ul, .prose ol { padding-left: 1.15rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold-700); }
.prose strong { color: var(--ink); }
.prose .note { background: var(--warn-bg); border: 1px solid #FDE68A; border-radius: 12px; padding: .85rem 1rem; font-size: .9rem; color: #92400E; }
.prose blockquote { border-left: 3px solid var(--gold-500); padding-left: 1rem; color: var(--muted); margin: 1rem 0; }
.prose img { border-radius: 12px; max-width: 100%; height: auto; }
.prose table { width: 100%; margin-bottom: 1rem; font-size: .9rem; }
.prose table th, .prose table td { border-bottom: 1px solid var(--line-2); padding: .55rem .6rem; text-align: left; }

.sticky-side { position: static; }
@media (min-width: 992px) { .sticky-side { position: sticky; top: calc(var(--topbar-h) + 12px); } }
.side-link { display: block; padding: .5rem .7rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.side-link:hover { background: var(--cream-2); color: var(--navy-900); }
.side-link.active { background: var(--navy-900); color: #fff; }
.link-row { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.link-row:last-child { border-bottom: 0; }
.link-row:hover { color: var(--navy-900); }
.link-row .icon-tile { width: 40px; height: 40px; font-size: 1.05rem; }
.link-row strong { display: block; font-size: .92rem; }
.link-row small { color: var(--muted); }
.link-row > span:last-child { min-width: 0; }

.compare-table th { vertical-align: middle; }
.compare-table thead th { background: var(--cream); font-size: .8rem; color: var(--ink); font-weight: 700; white-space: normal; min-width: 150px; }
.compare-table tbody th { background: var(--cream); font-weight: 700; font-size: .85rem; width: 190px; min-width: 170px; }
.compare-table td { font-size: .85rem; color: var(--ink-2); min-width: 160px; }

.calc-card .summary-box .row-item { font-size: .95rem; }
.calc-card .summary-box .row-item strong { font-size: 1.05rem; color: var(--navy-900); }
.calc-card .nav-pills .nav-link { border: 1px solid var(--line); background: #fff; }
.calc-card .nav-pills .nav-link.active { border-color: var(--navy-900); color: #fff; }

.quote-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; height: 100%; display: flex; flex-direction: column; position: relative; }
.quote-card::before { content: "\201C"; position: absolute; top: .35rem; right: 1.1rem; font-family: Georgia, serif; font-size: 3.6rem; line-height: 1; color: var(--gold-100); }
.quote-card .stars { color: var(--gold-500); font-size: .85rem; letter-spacing: .08em; margin-bottom: .7rem; }
.quote-card p { color: var(--ink-2); font-size: .94rem; flex: 1; position: relative; }
.quote-card .who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-2); }
.quote-card .who strong { display: block; font-size: .88rem; }
.quote-card .who small { color: var(--muted); font-size: .78rem; }

.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: 2.5rem; background: linear-gradient(120deg, var(--gold-500) 0%, var(--gold-300) 100%); color: var(--navy-900); display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -90px; bottom: -170px; background: rgba(255, 255, 255, .28); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--navy-900); font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); margin: 0 0 .35rem; max-width: 24ch; letter-spacing: -.02em; }
.cta-band p { color: rgba(58, 20, 97, .74); max-width: 48ch; margin: 0; }
.cta-band .btn-navy { box-shadow: 0 10px 26px rgba(58, 20, 97, .28); }
.cta-band .btn-gold { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 10px 26px rgba(58, 20, 97, .28); }
.cta-band .btn-gold:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.offer-strip { display: flex; align-items: center; gap: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; color: var(--ink); height: 100%; }
.offer-strip:hover { border-color: var(--gold-300); color: var(--navy-900); }
.offer-strip strong { display: block; font-size: .92rem; }
.offer-strip small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-card .offer-img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; margin-bottom: .9rem; }
.coupon-row { display: flex; align-items: center; gap: .6rem; background: var(--gold-100); border: 1px dashed var(--gold-300); border-radius: 12px; padding: .5rem .75rem; margin: .75rem 0; }
.coupon-row span { font-size: .75rem; color: var(--gold-700); font-weight: 700; }
.coupon-row strong { letter-spacing: .1em; color: var(--navy-900); }
.terms-details summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); }
.terms-details summary:hover { color: var(--navy-900); }

.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.post-card:hover { border-color: var(--gold-300); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-900), var(--navy-600)); display: flex; align-items: center; justify-content: center; color: var(--gold-300); font-size: 2rem; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.02rem; margin: 0 0 .4rem; line-height: 1.35; }
.post-body p { color: var(--muted); font-size: .88rem; flex: 1; margin-bottom: .6rem; }
.post-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.post-hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 18px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }
.social-row { display: flex; gap: .5rem; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--gold-500); color: var(--navy-900); }
.min-w-0 { min-width: 0; }

/* =====================================================================
   PHASE 3 - KYC, checkout, payments
   ===================================================================== */
.kyc-steps { display: flex; gap: .5rem; flex-wrap: wrap; }
.kyc-step { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); background: #fff; }
.kyc-step:hover { border-color: var(--gold-300); color: var(--navy-900); }
.kyc-step.active { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.kyc-step.done { color: var(--navy-900); border-color: var(--gold-300); }
.kyc-step.done.active { color: #fff; }
.kyc-step .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
.kyc-step.done .dot { background: var(--gold-500); color: var(--navy-900); }
.kyc-step.active .dot { background: rgba(255,255,255,.2); color: #fff; }

.doc-tile { border: 1px dashed var(--line); border-radius: 14px; padding: .9rem; height: 100%; background: var(--cream); }
.doc-tile.has-file { border-style: solid; background: #fff; }
.doc-preview { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }

.upi-qr { width: 220px; height: 220px; margin: 0 auto; display: block; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.upi-qr canvas, .upi-qr img { width: 100%; height: 100%; display: block; }
.summary-box .row-item.total { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .55rem; }
.summary-box .row-item.total strong { font-size: 1.15rem; color: var(--navy-900); }

/* Phase 4 - the portfolio chart needs a bounded box or Chart.js grows without limit */
.chart-box { position: relative; height: 260px; width: 100%; }
.chart-box-sm { height: 190px; }
@media (max-width: 575.98px) { .chart-box { height: 210px; } }

/* =====================================================================
   Older Android WebViews (before flexbox gap). Spacing falls back to
   margins so the header, hero stats and rate strip never run together.
   ===================================================================== */
@supports not (row-gap: 1px) {
  .eyebrow > i { margin-right: .45rem; }
  .hero-stats > div { margin-right: 2rem; }
  .hero-stats > div:last-child { margin-right: 0; }
  .rate-strip > * { margin-right: 1.75rem; }
  .rate-strip > *:last-child { margin-right: 0; }
  .list-plain li i { margin-right: .6rem; }
  .save-mode .icon-tile { margin-right: 1rem; }
  .quote-card .who .avatar { margin-right: .7rem; }
  .cta-band > * { margin-right: 1.5rem; }
  .cta-band > *:last-child { margin-right: 0; }
  .site-footer .social a { margin-right: .5rem; }
  .crumbs > * { margin-right: .45rem; }
  .topbar-left > *, .topbar-right > * { margin-right: 1.35rem; }
  .topbar-left > *:last-child, .topbar-right > *:last-child { margin-right: 0; }
  .topbar-link i, .topbar-rate .dot, .topbar-rate .lbl { margin-right: .45rem; }
  .topbar-social a { margin-right: .3rem; }
  .trust-strip__items span { margin-right: 1.75rem; }
  .trust-strip__items i { margin-right: .5rem; }
  .pay-chip { margin-right: .45rem; }
  .site-footer .foot-links li { margin-bottom: .6rem; }
  .site-footer .social-row a { margin-right: .5rem; }
  .brand img { margin-right: .7rem; }
}

/* ---------- Saving plans ---------- */
.plan-card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-300); color: inherit; }
.plan-card .divider { margin: .85rem 0 .7rem; }
.mt--1 { margin-top: -.35rem; }

/* ---------- Goal type picker ---------- */
.goal-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.goal-types .choice .box { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .5rem; text-align: center; font-size: .78rem; font-weight: 600; line-height: 1.2; }
.goal-types .choice .box i { font-size: 1.35rem; color: var(--gold-700); }
.goal-types .choice input:checked + .box i { color: var(--navy-900); }

/* ---------- Reward milestones ---------- */
.milestone { padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.milestone:last-child { border-bottom: 0; }
.milestone.is-earned strong { color: var(--gold-700); }
.milestone.is-earned .progress-bar { background: var(--gain); }

/* ---------- Support thread ---------- */
.chat-thread { display: flex; flex-direction: column; gap: .9rem; }
.chat-msg { max-width: 88%; }
.chat-msg .who { font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.chat-msg .body { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: .8rem 1rem; font-size: .92rem; color: var(--ink-2); }
.chat-msg.is-mine { align-self: flex-end; }
.chat-msg.is-mine .who { text-align: right; }
.chat-msg.is-mine .body { background: var(--gold-100); border-color: var(--gold-300); border-radius: 14px 14px 4px 14px; color: var(--ink); }

/* ---------- Order fulfilment flow ---------- */
.order-flow { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .35rem; }
.order-flow .step-dot { flex: 1 1 0; min-width: 78px; text-align: center; }
.order-flow .step-dot > span { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: .45rem; }
.order-flow .step-dot.is-done > span { background: linear-gradient(90deg, var(--gold-700), var(--gold-500)); }
.order-flow .step-dot small { font-size: .68rem; color: var(--muted); font-weight: 600; line-height: 1.15; display: block; }
.order-flow .step-dot.is-done small { color: var(--navy-900); }

/* ---------- Dashboard action strip ---------- */
.action-strip { display: grid; gap: .6rem; }
.action-item { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.action-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.action-item strong { display: block; font-size: .94rem; line-height: 1.25; }
.action-item small { display: block; color: var(--muted); font-size: .82rem; }
.action-item .go { margin-left: auto; flex: 0 0 auto; background: var(--navy-900); color: #fff; font-weight: 600; }
.action-item.tone-gold { border-color: var(--gold-300); background: linear-gradient(90deg, var(--gold-100), var(--paper) 60%); }
.action-item.tone-gold .icon-tile { background: var(--gold-500); color: var(--navy-900); }
.action-item.tone-warn { border-color: #FDE68A; background: linear-gradient(90deg, var(--warn-bg), var(--paper) 60%); }
.action-item.tone-warn .icon-tile { background: #FDE68A; color: #92400E; }
.action-item.tone-info { border-color: #BFDBFE; background: linear-gradient(90deg, var(--info-bg), var(--paper) 60%); }
.action-item.tone-info .icon-tile { background: #BFDBFE; color: #1E40AF; }
@media (max-width: 575.98px) {
  .action-item { align-items: flex-start; }
  .action-item .go { align-self: center; }
}

/* ---------- Auth polish (Round B) ---------- */
.auth-side .eyebrow { margin-bottom: 1.25rem; }
.auth-rate { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.25rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .78); font-size: .86rem; }
.auth-rate .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .22); }
.auth-rate .lbl { font-weight: 600; }
.auth-rate strong { color: var(--metal-300); font-weight: 800; }
.auth-rate strong span { font-weight: 600; color: rgba(255, 255, 255, .55); font-size: .8em; }
.auth-art { display: none; }
@media (min-width: 1200px) { .auth-art { display: block; width: 220px; margin-top: 1.75rem; opacity: .95; } }
.auth-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--cream-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .75rem; }
.auth-trust { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; margin: 1.1rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.auth-trust span { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.auth-trust i { color: var(--gold-700); font-size: .95rem; }
@supports not (row-gap: 1px) {
  .auth-rate > * { margin-right: .55rem; }
  .auth-trust span { margin-right: 1.1rem; }
  .auth-trust i { margin-right: .4rem; }
  .action-item > * { margin-right: .85rem; }
  .action-item > *:last-child { margin-right: 0; }
}

/* ---------- App topbar live rate ---------- */
.app-topbar .rate-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .75rem; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 600; white-space: nowrap; margin-right: .5rem; }
.app-topbar .rate-chip:hover { border-color: var(--gold-300); color: var(--navy-900); }
.app-topbar .rate-chip strong { color: var(--navy-900); font-weight: 800; }
.app-topbar .rate-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }

/* ---------------------------------------------------------------------
   Bill payments (BBPS)
   --------------------------------------------------------------------- */
.bill-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 1.25rem 1.35rem; color: #fff; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 75%, #7A3FC4 100%); box-shadow: 0 14px 34px rgba(58, 20, 97, .22); }
.bill-hero h1 { font-size: 1.35rem; margin: 0 0 .25rem; color: #fff; }
.bill-hero p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .9rem; max-width: 46ch; }
.bill-hero .bbps-mark { position: absolute; right: 1.1rem; top: 1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.bill-hero .hero-links { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.bill-hero .hero-links a { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .8rem; font-weight: 600; }
.bill-hero .hero-links a:hover { background: rgba(255, 255, 255, .24); }
.bill-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
@media (min-width: 576px) { .bill-cats { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 992px) { .bill-cats { grid-template-columns: repeat(7, 1fr); } }
.bill-cat { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .85rem .35rem .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.2; transition: border-color .15s, transform .15s, box-shadow .15s; }
.bill-cat i { font-size: 1.3rem; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-100); color: var(--gold-700); display: flex; align-items: center; justify-content: center; }
.bill-cat:hover { border-color: var(--gold-300); color: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.biller-list { display: flex; flex-direction: column; }
.biller-row { display: flex; align-items: center; gap: .85rem; padding: .8rem .2rem; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.biller-row:last-child { border-bottom: 0; }
.biller-row:hover { color: var(--navy-900); }
.biller-row:hover .bi-chevron-right { transform: translateX(3px); }
.biller-row .bi-chevron-right { color: var(--muted-2); transition: transform .15s; }
.biller-row .meta { font-size: .78rem; color: var(--muted); }
.biller-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); color: var(--navy-900); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex: 0 0 auto; }
.bill-sheet { border-radius: 18px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.bill-sheet .sheet-head { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; background: var(--cream); border-bottom: 1px dashed var(--line); }
.bill-sheet .sheet-body { padding: 1.1rem 1.15rem; }
.bill-amount { font-size: 2rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; }
.bill-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; font-size: .88rem; border-bottom: 1px solid var(--line-2); }
.bill-kv:last-child { border-bottom: 0; }
.bill-kv span { color: var(--muted); }
.bill-kv strong { text-align: right; word-break: break-all; }
.receipt-stamp { width: 74px; height: 74px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto .5rem; }
.receipt-stamp.success { background: #DCFCE7; color: #15803D; }
.receipt-stamp.danger { background: #FEE2E2; color: #B91C1C; }
.receipt-stamp.warning { background: #FEF3C7; color: #B45309; }
.receipt-stamp.secondary { background: var(--cream-2); color: var(--muted); }
.bbps-foot { display: flex; align-items: center; gap: .5rem; justify-content: center; font-size: .75rem; color: var(--muted); margin-top: .75rem; }
.bbps-foot .b-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--navy-900); color: #fff; font-weight: 800; font-size: .7rem; }
.saved-bill { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); height: 100%; }
.saved-bill:hover { border-color: var(--gold-300); color: var(--navy-900); }
.saved-bill small { color: var(--muted); display: block; font-size: .74rem; }
@media print {
  .app-sidebar, .app-topbar, .bottom-nav, .no-print, .page-head .actions { display: none !important; }
  .bill-sheet { border: 0; }
}

/* ---------------------------------------------------------------------
   Mobile and DTH recharge
   --------------------------------------------------------------------- */
.rc-tabs { display: inline-flex; gap: .25rem; padding: .25rem; background: rgba(255, 255, 255, .14); border-radius: 999px; margin-top: .9rem; }
.rc-tabs a { padding: .4rem 1rem; border-radius: 999px; color: #fff; font-weight: 600; font-size: .85rem; }
.rc-tabs a.active { background: #fff; color: var(--navy-900); }
.rc-detect { font-size: .8rem; color: var(--muted); min-height: 1.2rem; }
.rc-detect.ok { color: #15803D; }
.rc-detect.err { color: #B91C1C; }
.plan-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.plan-chips button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .3rem .75rem; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.plan-chips button.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.plan-list { max-height: 460px; overflow: auto; margin: 0 -.25rem; padding: 0 .25rem; }
.plan-item { display: flex; gap: .85rem; align-items: flex-start; width: 100%; text-align: left; padding: .8rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-bottom: .5rem; transition: border-color .15s, box-shadow .15s; }
.plan-item:hover, .plan-item.selected { border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100); }
.plan-item .price { font-weight: 800; font-size: 1.1rem; color: var(--navy-900); min-width: 64px; }
.plan-item .validity { font-size: .75rem; font-weight: 700; color: var(--gold-700); background: var(--gold-100); border-radius: 999px; padding: .1rem .5rem; display: inline-block; margin-bottom: .2rem; }
.plan-item .desc { font-size: .82rem; color: var(--ink-2); line-height: 1.35; }
.plan-empty { text-align: center; color: var(--muted); font-size: .88rem; padding: 2rem .5rem; }
.rc-number { font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; }
