/* =====================================================================
   SPLUG by Nifelux — design system (dark default + [data-theme="light"])
   ===================================================================== */
:root {
  --bg: #060912;
  --bg-2: #0a0f1c;
  --surface: #0f1626;
  --surface-2: #141c30;
  --surface-3: #1b2540;
  --line: rgba(148, 163, 184, 0.12);
  --line-2: rgba(148, 163, 184, 0.22);
  --text: #eaf0fa;
  --muted: #9aa6bd;
  --dim: #66728c;
  --brand: #22c55e;
  --brand-2: #10b981;
  --brand-soft: rgba(34, 197, 94, 0.12);
  --brand-ink: #03130a;
  --accent: #38bdf8;
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.13);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.13);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sidebar: 252px;
  --topbar: 64px;
  /* theme-dependent tokens (overridden in [data-theme="light"]) */
  --brand-fill: #22c55e;            /* solid green fills behind dark ink */
  --hover: rgba(255, 255, 255, .04);
  --hover-2: rgba(255, 255, 255, .06);
  --hover-3: rgba(255, 255, 255, .1);
  --neutral-soft: rgba(148, 163, 184, .12);
  --danger-ink: #fecdd3;
  --warn-ink: #fde68a;
  --doc-text: #cdd5e4;
  --glass: rgba(6, 9, 18, .72);
  --glass-2: rgba(6, 9, 18, .78);
  --glass-solid: rgba(6, 9, 18, .96);
  --tabbar-bg: rgba(10, 15, 28, .94);
  --backdrop: rgba(3, 6, 12, .72);
  --card-end: rgba(15, 22, 38, .85);
  --brand-glow: drop-shadow(0 6px 18px rgba(34, 197, 94, 0.35));
  --grad-text: linear-gradient(100deg, #4ade80, #22d3ee 60%, #a78bfa);
  --hero-glow: radial-gradient(600px 380px at 15% 25%, rgba(34,197,94,.18), transparent 70%), radial-gradient(520px 360px at 85% 10%, rgba(56,189,248,.14), transparent 70%), radial-gradient(500px 300px at 60% 70%, rgba(167,139,250,.10), transparent 70%);
  --mock-bg: linear-gradient(180deg, #111a2e, #0b1120);
  --letter-bg: linear-gradient(135deg, #1b2540, #24304f);
  --logo-ring: none;
  --ticket-top: radial-gradient(400px 180px at 0% 0%, rgba(34,197,94,.16), transparent), linear-gradient(180deg, #121c33, #0e1628);
  --ticket-top-off: linear-gradient(180deg, #151b2b, #10172a);
  --balance-bg: radial-gradient(400px 220px at 100% 0%, rgba(56,189,248,.22), transparent), radial-gradient(420px 260px at 0% 100%, rgba(34,197,94,.28), transparent), linear-gradient(135deg, #0f2a1f, #0b1426);
  --balance-sub: #b7c7d6;
  --pill-bg: rgba(0, 0, 0, .25);
  --pill-line: rgba(255, 255, 255, .12);
  --pill-ink: #d6e2ee;
  --tab-sel-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
  color-scheme: dark;
}

/* ---------- light theme ---------- */
[data-theme='light'] {
  --bg: #f5f7fb;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --surface-3: #e6ebf2;
  --line: rgba(15, 23, 42, 0.09);
  --line-2: rgba(15, 23, 42, 0.16);
  --text: #0b1220;
  --muted: #4a5468;
  --dim: #626c80;
  --brand: #15803d;
  --brand-2: #047857;
  --brand-soft: rgba(22, 163, 74, 0.11);
  --accent: #0369a1;
  --violet: #6d28d9;
  --violet-soft: rgba(124, 58, 237, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --danger: #be123c;
  --danger-soft: rgba(225, 29, 72, 0.09);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -16px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .04), 0 30px 70px -30px rgba(15, 23, 42, 0.3);
  --brand-fill: #22c55e;
  --hover: rgba(15, 23, 42, .045);
  --hover-2: rgba(15, 23, 42, .035);
  --hover-3: rgba(15, 23, 42, .07);
  --neutral-soft: rgba(100, 116, 139, .13);
  --danger-ink: #9f1239;
  --warn-ink: #78350f;
  --doc-text: #2b3446;
  --glass: rgba(255, 255, 255, .78);
  --glass-2: rgba(255, 255, 255, .82);
  --glass-solid: rgba(255, 255, 255, .98);
  --tabbar-bg: rgba(255, 255, 255, .94);
  --backdrop: rgba(15, 23, 42, .42);
  --card-end: #ffffff;
  --brand-glow: drop-shadow(0 6px 14px rgba(22, 163, 74, 0.22));
  --grad-text: linear-gradient(100deg, #16a34a, #0891b2 55%, #7c3aed);
  --hero-glow: radial-gradient(600px 380px at 15% 25%, rgba(34,197,94,.16), transparent 70%), radial-gradient(520px 360px at 85% 10%, rgba(56,189,248,.14), transparent 70%), radial-gradient(500px 300px at 60% 70%, rgba(167,139,250,.12), transparent 70%);
  --mock-bg: linear-gradient(180deg, #ffffff, #f6f8fc);
  --letter-bg: linear-gradient(135deg, #475569, #334155);
  --logo-ring: inset 0 0 0 1px rgba(15, 23, 42, .1);
  --ticket-top: radial-gradient(400px 180px at 0% 0%, rgba(34,197,94,.16), transparent), linear-gradient(180deg, #f3faf6, #ffffff);
  --ticket-top-off: linear-gradient(180deg, #f3f5f9, #ffffff);
  --balance-bg: radial-gradient(400px 220px at 100% 0%, rgba(56,189,248,.2), transparent), radial-gradient(420px 260px at 0% 100%, rgba(34,197,94,.24), transparent), linear-gradient(135deg, #e9f8ef, #eef6fd);
  --balance-sub: #3d4a5c;
  --pill-bg: rgba(255, 255, 255, .7);
  --pill-line: rgba(15, 23, 42, .1);
  --pill-ink: #1f2a3a;
  --tab-sel-shadow: 0 1px 3px rgba(15, 23, 42, .1);
  color-scheme: light;
}
[data-theme='light'] .tabs [role='tab'][aria-selected='true'] { background: var(--surface); }
[data-theme='light'] .tabs { background: var(--surface-2); }
[data-theme='light'] .toast { background: var(--surface); }
[data-theme='light'] .input { background: var(--surface); }
[data-theme='light'] .card { box-shadow: var(--shadow); }
[data-theme='light'] .bg-grid { opacity: .55; }
[data-theme='light'] .btn-primary { box-shadow: 0 8px 22px -10px rgba(22, 163, 74, 0.55), inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------- theme toggle ---------- */
.theme-toggle .i-moon { display: none; }
[data-theme='light'] .theme-toggle .i-sun { display: none; }
[data-theme='light'] .theme-toggle .i-moon { display: block; }
.lbl-s { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand-fill); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; color: var(--brand); filter: var(--brand-glow); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font: 600 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-text small b { color: var(--brand); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #34d399, var(--brand-fill) 55%, #16a34a); color: var(--brand-ink); box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 34px -10px rgba(34, 197, 94, 0.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-secondary { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); background: var(--hover); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(251, 113, 133, .3); }
.btn-danger:hover:not(:disabled) { background: rgba(251, 113, 133, .2); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--brand-ink) transparent var(--brand-ink) transparent; animation: spin .8s linear infinite; }
.btn-secondary.is-loading::after, .btn-danger.is-loading::after { border-color: var(--text) transparent var(--text) transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--hover-2); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 600; }
.chip-btn:hover:not(:disabled) { background: var(--hover-3); }
.chip-btn:disabled { opacity: .4; cursor: not-allowed; }
.chip-btn.primary { background: var(--brand-fill); color: var(--brand-ink); border-color: transparent; }
.chip-btn.danger { color: var(--danger); border-color: rgba(251,113,133,.35); background: var(--danger-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- form ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text); transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .suffix { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 9px; }
.input-money { position: relative; }
.input-money::before { content: '₦'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-money .input { padding-left: 32px; font-weight: 600; }
.hint { font-size: 13px; color: var(--dim); margin: 7px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check a { color: var(--brand); font-weight: 600; }
.form-error { display: flex; gap: 10px; align-items: flex-start; background: var(--danger-soft); border: 1px solid rgba(251,113,133,.3); color: var(--danger-ink); padding: 11px 13px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.form-error svg { margin-top: 2px; color: var(--danger); }
.search { position: relative; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search .input { padding-left: 42px; }

/* ---------- surfaces ---------- */
.card { background: linear-gradient(180deg, var(--surface), var(--card-end)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 18px; }
.card-sub { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; background: var(--neutral-soft); color: var(--muted); white-space: nowrap; }
.badge .dot, .badge i.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pending, .badge.processing, .badge.init { background: var(--warn-soft); color: var(--warn); }
.badge.pending .dot { animation: pulse 1.4s ease-in-out infinite; }
.badge.received, .badge.success, .badge.completed, .badge.successful, .badge.paid { background: var(--brand-soft); color: var(--brand); }
.badge.cancelled, .badge.canceled, .badge.neutral { background: var(--neutral-soft); color: var(--muted); }
.badge.expired, .badge.failed, .badge.error { background: var(--danger-soft); color: var(--danger); }
.badge.budget { background: var(--brand-soft); color: var(--brand); }
.badge.priority { background: var(--violet-soft); color: var(--violet); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- chips / tabs ---------- */
.chips, .filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 14px; }
.chip:hover { color: var(--text); }
.chip[aria-pressed='true'] { background: var(--brand-soft); border-color: rgba(34,197,94,.45); color: var(--brand); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.tabs [role='tab'] { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; }
.tabs [role='tab'][aria-selected='true'] { background: var(--surface-3); color: var(--text); box-shadow: var(--tab-sel-shadow); }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row.txn { grid-template-columns: auto 1fr auto; }
.row-title { font-weight: 600; }
.row-title .sep { color: var(--dim); }
.row-sub { font-size: 13px; color: var(--dim); }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.amount { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.amount.pos { color: var(--brand); }
.amount.neg { color: var(--text); }
.txn-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--neutral-soft); color: var(--muted); }
.txn-ico.in { background: var(--brand-soft); color: var(--brand); }
.otp-pill { font-family: var(--mono); font-size: 14px; letter-spacing: .12em; padding: 6px 10px; border-radius: 10px; background: var(--bg-2); border: 1px dashed var(--line-2); color: var(--dim); }
.otp-pill.has-code { color: var(--brand); border-style: solid; border-color: rgba(34,197,94,.4); background: var(--brand-soft); }
.copy-inline { border: 0; background: none; padding: 0; color: var(--muted); font-family: var(--mono); font-size: 13px; text-decoration: underline dotted; text-underline-offset: 3px; }
.copy-inline:hover { color: var(--text); }
button.otp-pill { text-decoration: none; }
.empty { text-align: center; padding: 36px 16px; }
.empty-ico { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2); color: var(--muted); }
.empty h3 { font-size: 17px; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 14px; }
.skeleton { display: grid; gap: 10px; }
.skeleton i { display: block; height: 54px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- toast + dialog ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 90; width: max-content; max-width: min(92vw, 480px); padding: 12px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { border-color: rgba(34,197,94,.45); }
.toast.error { border-color: rgba(251,113,133,.5); color: var(--danger-ink); }
body.has-tabbar .toast { bottom: 92px; }
.dlg { border: 1px solid var(--line-2); border-radius: 22px; padding: 0; background: var(--surface); color: var(--text); width: min(92vw, 440px); box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
.dlg-body { padding: 22px 22px 8px; }
.dlg h2 { font-size: 20px; }
.dlg-rows { margin: 14px 0; padding: 4px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.dlg-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dlg-rows div:last-child { border-bottom: 0; font-weight: 700; }
.dlg-rows dt { color: var(--muted); }
.dlg-rows dd { margin: 0; text-align: right; }
.dlg-warn { font-size: 13px; color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: 12px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 22px; }
.dlg-actions .btn { flex: 1; }

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.bg-glow { position: relative; isolation: isolate; overflow-x: clip; }
.bg-glow::before { content: ''; position: absolute; inset: -200px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background: var(--hero-glow); }
.bg-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); background: var(--hover); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 20px 18px; background: var(--glass-solid); }
.mobile-menu a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.mobile-menu .btn { margin-top: 14px; }
.mobile-menu a.btn { display: flex; padding: 0 18px; border-bottom: 0; color: var(--brand-ink); font-weight: 600; }
.site-header.open .mobile-menu { display: block; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--hover); font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.eyebrow b { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero { padding-top: 72px; padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 18px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--brand); }

.mock { position: relative; max-width: 380px; margin-left: auto; }
.mock::before { content: ''; position: absolute; inset: 10% -10% -6% -10%; background: radial-gradient(closest-side, rgba(34,197,94,.3), transparent); filter: blur(30px); z-index: -1; }
.mock-card { border-radius: 26px; background: var(--mock-bg); border: 1px solid var(--line-2); padding: 18px; box-shadow: var(--shadow-lg); }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.mock-svc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 12px; }
.mock-svc .svc-logo { width: 40px; height: 40px; }
.mock-svc strong { display: block; }
.mock-svc small { color: var(--dim); }
.mock-num { font-family: var(--mono); font-size: 22px; letter-spacing: .02em; margin: 6px 0 14px; }
.mock-float { position: absolute; right: -18px; bottom: -22px; padding: 10px 14px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.mock-float b { color: var(--brand); }
.example-tag { font-size: 12px; color: var(--dim); text-align: center; margin-top: 34px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stats-strip > div { background: var(--surface); padding: 20px 22px; }
.stats-strip strong { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.stats-strip span { font-size: 13px; color: var(--muted); }

.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }

.svc-logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.95); box-shadow: var(--logo-ring); overflow: hidden; }
.svc-logo img { width: 58%; height: 58%; object-fit: contain; }
.svc-logo.letter { background: var(--letter-bg); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; }
.svc-showcase { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.svc-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-weight: 600; font-size: 14px; transition: transform .2s, border-color .2s, background .2s; }
.svc-tile:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.svc-tile .svc-logo { width: 52px; height: 52px; border-radius: 15px; }
.svc-more { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step-card { position: relative; padding: 24px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-card::before { counter-increment: step; content: '0' counter(step); display: block; font-family: var(--mono); font-size: 13px; color: var(--brand); margin-bottom: 16px; }
.step-card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.step-card h3 { font-size: 17px; }
.step-card p { color: var(--muted); font-size: 14px; margin: 0; }

.routes-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.route-card { padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.route-card::after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34,197,94,.16), transparent); }
.route-card.alt::after { background: radial-gradient(closest-side, rgba(167,139,250,.18), transparent); }
.route-card h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.route-card > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checks svg { color: var(--brand); margin-top: 3px; }
.route-card.alt .checks svg { color: var(--violet); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(56,189,248,.12); color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }
.faq-group { margin-bottom: 36px; }
.faq-group h2 { font-size: 20px; max-width: 820px; margin: 0 auto 14px; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px; border-radius: var(--r-xl); border: 1px solid rgba(34,197,94,.3);
  background: radial-gradient(500px 200px at 0% 0%, rgba(34,197,94,.22), transparent), radial-gradient(500px 240px at 100% 100%, rgba(56,189,248,.16), transparent), var(--surface); }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 6px; }
.cta-band p { color: var(--muted); margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--muted); margin: 14px 0; max-width: 340px; }
.footer-nifelux { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 13px; }
.footer-nifelux:hover { border-color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* legal / content pages */
.page-hero { padding: 64px 0 28px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 680px; }
.doc-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 90px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--muted); }
.toc a:hover { color: var(--text); }
.doc { max-width: 760px; color: var(--doc-text); }
.doc h2 { font-size: 22px; margin: 36px 0 12px; color: var(--text); scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.doc .meta { color: var(--dim); font-size: 14px; }
.callout { padding: 16px 18px; border-radius: 16px; background: var(--brand-soft); border: 1px solid rgba(34,197,94,.3); color: var(--text); margin: 0 0 20px; }
.callout.warn { background: var(--warn-soft); border-color: rgba(251,191,36,.3); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.info-card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.info-card .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.info-card h3 { font-size: 16px; margin-bottom: 4px; }
.info-card p { color: var(--muted); font-size: 14px; margin: 0; }
.info-card a { color: var(--brand); font-weight: 600; }

/* auth */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-form-side { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 32px; font-weight: 800; }
.auth-card .lead { color: var(--muted); margin-bottom: 26px; }
.auth-switch { text-align: center; color: var(--muted); margin-top: 22px; font-size: 14px; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.auth-legal { text-align: center; font-size: 12px; color: var(--dim); margin-top: 18px; }
.auth-legal a { color: var(--muted); text-decoration: underline; }
.auth-aside { position: relative; overflow: hidden; border-left: 1px solid var(--line); display: grid; place-items: center; padding: 40px;
  background: radial-gradient(500px 300px at 30% 20%, rgba(34,197,94,.18), transparent), radial-gradient(400px 300px at 80% 90%, rgba(56,189,248,.14), transparent), var(--bg-2); }
.auth-aside-inner { max-width: 400px; }
.auth-aside h2 { font-size: 32px; font-weight: 800; }
.auth-aside p { color: var(--muted); margin-bottom: 26px; }
.auth-aside .mock { margin: 0; }

/* =====================================================================
   APP SHELL (logged-in pages)
   ===================================================================== */
body.app { background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 60; display: flex; flex-direction: column; padding: 18px 14px; background: var(--bg-2); border-right: 1px solid var(--line); transition: transform .25s; }
.sidebar .brand { padding: 4px 8px 22px; }
.side-nav { display: grid; gap: 4px; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 16px 12px 8px; }
.side-nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 15px; }
.side-nav a:hover { background: var(--hover); color: var(--text); }
.side-nav a[aria-current='page'] { background: var(--brand-soft); color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-promo { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(56,189,248,.08)); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-promo strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.side-promo .btn { margin-top: 10px; }
.side-by { font-size: 12px; color: var(--dim); padding: 0 6px; }
.side-by a { color: var(--muted); }
.side-backdrop { display: none; }

.app-topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar); margin-left: var(--sidebar); display: flex; align-items: center; gap: 12px; padding: 0 28px; background: var(--glass-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-topbar .brand { display: none; }
.app-topbar h1 { font-size: 18px; margin: 0; font-weight: 700; }
.app-topbar .header-actions { gap: 10px; }
.balance-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 500; font-size: 14px; }
.balance-chip .icon-sm { color: var(--brand); }
.balance-chip .plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-fill); color: var(--brand-ink); font-family: var(--font); font-weight: 800; font-size: 16px; }
.user-chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #16a34a, #0ea5e9); color: #fff; font-weight: 800; font-family: var(--display); }
.app-main { margin-left: var(--sidebar); padding: 28px 28px 40px; max-width: calc(1240px + var(--sidebar)); }
.app-footer { margin-left: var(--sidebar); padding: 18px 28px 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.app-footer a { color: var(--muted); }
.app-footer a:hover { color: var(--text); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; min-width: 0; }
.stat .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.stat .ico.blue { background: rgba(56,189,248,.12); color: var(--accent); }
.stat .ico.violet { background: var(--violet-soft); color: var(--violet); }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-family: var(--display); font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.side { position: sticky; top: calc(var(--topbar) + 20px); display: grid; gap: 14px; }
.step { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-family: var(--font); font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.step-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 13px; font-family: var(--mono); }
.step.is-done .step-n { background: var(--brand-fill); color: var(--brand-ink); }
.step-value { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step.is-locked .step-body { opacity: .5; pointer-events: none; }

.route-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.route-opt { text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; transition: border-color .15s, background .15s; }
.route-opt .ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.route-opt strong { font-size: 15px; }
.route-opt small { color: var(--dim); font-size: 12.5px; }
.route-opt[aria-checked='true'] { border-color: rgba(34,197,94,.6); background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(34,197,94,.03)); }
.route-opt[aria-checked='true'] .ico { background: var(--brand-fill); color: var(--brand-ink); }
.route-opt[data-provider='premium'][aria-checked='true'] { border-color: rgba(167,139,250,.6); background: linear-gradient(135deg, rgba(167,139,250,.14), rgba(167,139,250,.03)); }
.route-opt[data-provider='premium'][aria-checked='true'] .ico { background: #a78bfa; color: #1b1035; }

.svc-tools { display: flex; gap: 10px; margin-bottom: 12px; }
.svc-tools .search { flex: 1; }
.svc-sub { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 4px 0 10px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; scrollbar-width: thin; }
.svc-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; text-align: center; min-height: 112px; transition: border-color .15s, background .15s, transform .15s; }
.svc-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.svc-btn[aria-pressed='true'] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.svc-btn .svc-logo { width: 40px; height: 40px; border-radius: 12px; }
.svc-btn .nm { line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.svc-btn .pr { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 500; }
.grid-note { grid-column: 1 / -1; text-align: center; color: var(--dim); font-size: 13px; padding: 18px 8px; }

.picker { border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.picker.is-disabled { opacity: .6; }
.picker-search { position: relative; border-bottom: 1px solid var(--line); }
.picker-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.picker-search input { width: 100%; height: 48px; border: 0; background: transparent; padding: 0 14px 0 42px; font-size: 16px; }
.picker-search input:focus { outline: none; }
.picker-list { list-style: none; margin: 0; padding: 6px; max-height: 300px; overflow: auto; scrollbar-width: thin; }
.picker-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--text); font-size: 15px; }
.picker-opt:hover, .picker-opt:focus { background: var(--hover-3); outline: none; }
.picker-opt[aria-selected='true'] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.picker-opt .flag { font-size: 22px; line-height: 1; width: 28px; text-align: center; }
.picker-opt .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-opt .icon-sm { color: var(--brand); }
.picker-note, .picker-more { padding: 18px 12px; text-align: center; color: var(--dim); font-size: 14px; }

.quote { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(34,197,94,.35); background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(56,189,248,.06)); }
.quote.is-empty { border-color: var(--line-2); background: var(--bg-2); }
.quote-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.quote-price { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0; }
.quote-note { font-size: 13px; color: var(--muted); }
.quote .btn { min-width: 170px; }

/* active order ticket */
.ticket { border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg); }
.ticket-top { padding: 20px; background: var(--ticket-top); position: relative; }
.ticket-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; border-bottom: 2px dashed var(--line-2); }
.ticket[data-state='cancelled'] .ticket-top, .ticket[data-state='expired'] .ticket-top { background: var(--ticket-top-off); }
.ticket-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ticket-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ticket-service { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; min-width: 0; }
.ticket-service .svc-logo { width: 34px; height: 34px; border-radius: 10px; }
.ticket-service span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-number { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-number .num { font-family: var(--mono); font-size: 22px; letter-spacing: .02em; word-break: break-all; }
.ticket-bottom { padding: 20px; }
.timer { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.timer-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width 1s linear; }
.timer.low .timer-bar i { background: linear-gradient(90deg, var(--warn), var(--danger)); }
.timer b { font-family: var(--mono); color: var(--text); font-weight: 500; min-width: 48px; text-align: right; }
.otp { display: flex; gap: 6px; margin: 10px 0 12px; flex-wrap: wrap; }
.otp span { width: 40px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 24px; color: var(--dim); }
.ticket[data-state='received'] .otp span, .mock .otp span { color: var(--brand); border-color: rgba(34,197,94,.45); background: var(--brand-soft); }
.ticket-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.ticket-sms { font-size: 13px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; word-break: break-word; }
.ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket-actions .chip-btn { flex: 1; justify-content: center; height: 40px; }
.side-note { font-size: 13px; color: var(--dim); text-align: center; margin: 0; }
.tips { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.tips h3 { font-size: 14px; font-family: var(--font); color: var(--text); margin-bottom: 8px; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }

/* wallet */
.wallet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.balance-card { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r-xl); margin-bottom: 18px; border: 1px solid rgba(34,197,94,.35);
  background: var(--balance-bg); }
.balance-amount { font-family: var(--display); font-size: clamp(34px, 6vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 4px; }
.balance-card p { color: var(--balance-sub); font-size: 14px; margin: 0; }
.balance-card .pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--pill-ink); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); border: 1px solid rgba(251,191,36,.28); font-size: 13.5px; color: var(--warn-ink); margin-top: 16px; }
.notice svg { color: var(--warn); margin-top: 2px; }
.notice a { color: var(--text); text-decoration: underline; }

/* mobile tab bar */
.tabbar { display: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .svc-showcase { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .nav-links, .header-actions .hide-m { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock { margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .doc-wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .info-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }

  /* app */
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: var(--backdrop); }
  .app-topbar, .app-main, .app-footer { margin-left: 0; }
  .app-topbar { padding: 0 14px; }
  .app-topbar .brand { display: inline-flex; font-size: 18px; }
  .app-topbar .brand .brand-mark { width: 30px; height: 30px; }
  .app-topbar .brand small { display: none; }
  .app-topbar h1 { display: none; }
  .app-main { padding: 20px 16px 28px; }
  .app-footer { padding: 16px 16px 24px; }
  .dash-grid, .wallet-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .stat-cards .stat:last-child { grid-column: 1 / -1; }

  body.has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--tabbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 12px; color: var(--dim); font-size: 11.5px; font-weight: 600; }
  .tabbar a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .hero { padding-top: 44px; padding-bottom: 36px; }
  .hero .lead { font-size: 16px; }
  .cta-row .btn { flex: 1; }
  .section { padding: 56px 0; }
  .svc-showcase { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .svc-tile { padding: 16px 6px; font-size: 13px; }
  .svc-tile .svc-logo { width: 44px; height: 44px; }
  .steps, .features, .routes-compare { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .mock-float { right: 6px; }
  .card { padding: 18px; border-radius: 18px; }
  .route-toggle { grid-template-columns: 1fr 1fr; }
  .route-opt { grid-template-columns: 1fr; padding: 12px; }
  .route-opt .ico { grid-row: auto; width: 32px; height: 32px; margin-bottom: 6px; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); max-height: 380px; gap: 8px; }
  .svc-btn { min-height: 100px; padding: 12px 4px 10px; font-size: 12px; }
  .quote { flex-direction: column; align-items: stretch; }
  .quote .btn { width: 100%; }
  .row { grid-template-columns: 1fr auto; }
  .row > .otp-pill { grid-row: 2; justify-self: start; }
  .row-end { grid-row: span 2; }
  .page-head h1 { font-size: 24px; }
  .balance-chip { padding-left: 10px; font-size: 13px; }
  .user-chip { display: none; }
  .otp span { width: 36px; height: 48px; font-size: 21px; }
  .tabs { display: flex; }
  .tabs [role='tab'] { flex: 1; }
}
@media (max-width: 420px) {
  .lbl-l { display: none; }
  .lbl-s { display: inline; }
  .site-header-inner { gap: 12px; }
  .header-actions { gap: 6px; }
  .app-topbar { gap: 8px; padding: 0 10px; }
  .app-topbar .header-actions { gap: 6px; }
  .app-topbar .icon-btn { width: 38px; height: 38px; }
  .app-topbar .brand-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* about page split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .about-split { grid-template-columns: 1fr; } }
