/* =====================================================================
   Ghana Vouchers — design system
   Navy + royal blue, neutral slate greys, restrained amber accent.
   Light + dark themes.
   ===================================================================== */
:root {
  --brand: #1d4ed8;
  --brand-600: #1e40af;
  --brand-700: #1e3a8a;
  --brand-50: #eef3ff;
  --brand-100: #dbe5fe;
  --accent: #d97706;
  --accent-50: #fff7ea;
  --gold: var(--accent);
  --gold-50: var(--accent-50);

  /* dark "panel" surfaces (hero card header, USSD band, sign-in side) */
  --panel: #0b1a3a;
  --panel-2: #12295a;
  --panel-ink: #f1f5fd;
  --panel-ink-2: #a8b6d3;
  --panel-line: rgba(255, 255, 255, .12);

  --bg: #f6f7f9;
  --bg-elev: #ffffff;
  --bg-sunken: #f0f2f5;
  --ink: #0b1220;
  --ink-2: #3a4556;
  --ink-3: #687385;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --focus: #2563eb;

  --ok: #067647;   --ok-bg: #ecfdf3;
  --warn: #b54708; --warn-bg: #fffaeb;
  --err: #b42318;  --err-bg: #fef3f2;
  --info: #175cd3; --info-bg: #eff8ff;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .18), 0 4px 8px -4px rgba(16, 24, 40, .06);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #5b8cff; --brand-600: #7aa2ff; --brand-700: #9bb9ff; --brand-50: #131d36; --brand-100: #1a2747;
    --accent: #f5b14c; --accent-50: #2a2012;
    --panel: #0c1630; --panel-2: #14234a;
    --bg: #0a0f1c; --bg-elev: #111827; --bg-sunken: #0d1424;
    --ink: #e6eaf2; --ink-2: #b4bdcc; --ink-3: #8691a4;
    --line: #1f2937; --line-2: #2c3747; --focus: #7aa2ff;
    --ok: #47cd89; --ok-bg: #0d2a1d; --warn: #fdb022; --warn-bg: #2b2010;
    --err: #f97066; --err-bg: #2c1513; --info: #84adff; --info-bg: #121f38;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 3px rgba(0,0,0,.5);
    --shadow-lg: 0 12px 32px -8px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #5b8cff; --brand-600: #7aa2ff; --brand-700: #9bb9ff; --brand-50: #131d36; --brand-100: #1a2747;
  --accent: #f5b14c; --accent-50: #2a2012;
  --panel: #0c1630; --panel-2: #14234a;
  --bg: #0a0f1c; --bg-elev: #111827; --bg-sunken: #0d1424;
  --ink: #e6eaf2; --ink-2: #b4bdcc; --ink-3: #8691a4;
  --line: #1f2937; --line-2: #2c3747; --focus: #7aa2ff;
  --ok: #47cd89; --ok-bg: #0d2a1d; --warn: #fdb022; --warn-bg: #2b2010;
  --err: #f97066; --err-bg: #2c1513; --info: #84adff; --info-bg: #121f38;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 3px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 32px -8px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); letter-spacing: .01em; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--bg-elev); --b-ink: var(--ink); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius);
  background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none !important;
}
.btn:hover { background: var(--bg-sunken); }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn-primary { --b-bg: var(--brand); --b-ink: #fff; --b-line: var(--brand); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
:root[data-theme="dark"] .btn-primary { --b-ink: #0a0f1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { --b-ink: #0a0f1c; } }
.btn-ghost { --b-bg: transparent; --b-line: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-danger { --b-bg: var(--bg-elev); --b-ink: var(--err); --b-line: var(--line-2); }
.btn-danger:hover { background: var(--err-bg); }
.btn-light { --b-bg: #fff; --b-ink: #0b1a3a; --b-line: #fff; }
.btn-light:hover { background: #e9eefb; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; min-height: 36px; padding: 0; }
.btn .spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: 18px; }
.label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.label .opt { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 13px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line-2); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.input::placeholder { color: var(--ink-3); opacity: .8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 16%, transparent); }
.input.is-invalid { border-color: var(--err); box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 12%, transparent); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23687385' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.input-sm, .select.input-sm { min-height: 36px; padding: 6px 11px; font-size: 13.5px; }
.select.input-sm { padding-right: 32px; background-position: right 9px center; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.error-text { font-size: 13px; color: var(--err); margin-top: 6px; }
.input-group { position: relative; }
.input-group .input { padding-left: 40px; }
.input-group > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- surfaces ---------- */
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-body { padding: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-sunken); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge-err { background: var(--err-bg); color: var(--err); border-color: color-mix(in srgb, var(--err) 25%, transparent); }
.badge-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; background: var(--info-bg); color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 22%, transparent); }
.alert-err { background: var(--err-bg); color: var(--err); border-color: color-mix(in srgb, var(--err) 22%, transparent); }
.alert p { color: var(--ink-2); }
.alert strong { color: inherit; font-weight: 600; }
.test-banner { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); font-size: 13px; font-weight: 500; text-align: center; padding: 7px 16px; }

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg-elev) 88%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none !important; }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); margin-top: -1px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: var(--radius); color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav-links a:hover { background: var(--bg-sunken); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-hide-sm { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.eyebrow .tag { padding: 1px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: 12px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 22px 0 18px; letter-spacing: -.035em; font-weight: 700; line-height: 1.08; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 540px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--ink-3); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 44px 0 56px; } }

/* voucher visual */
.voucher-stage { position: relative; display: grid; place-items: center; }
.voucher { position: relative; width: 100%; max-width: 420px; border-radius: var(--radius-xl); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.voucher-top { padding: 20px 22px; background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%); color: var(--panel-ink); position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.voucher-top .v-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--panel-ink-2); font-weight: 600; }
.voucher-top .v-title { font-size: 20px; font-weight: 650; margin-top: 4px; letter-spacing: -.01em; }
.voucher-top .v-star { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid var(--panel-line); display: grid; place-items: center; color: #fff; }
.voucher-perf { position: relative; height: 0; border-top: 1px dashed var(--line-2); margin: 0 18px; }
.voucher-perf::before, .voucher-perf::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--line); }
.voucher-perf::before { left: -30px; } .voucher-perf::after { right: -30px; }
.voucher-body { padding: 14px 22px 18px; }
.v-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; }
.v-row + .v-row { border-top: 1px solid var(--line); }
.v-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.v-value { font-family: var(--mono); font-size: 16.5px; font-weight: 600; letter-spacing: .04em; }
.v-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.v-status { display: flex; align-items: center; gap: 10px; padding: 12px 22px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; font-weight: 600; border-top: 1px solid color-mix(in srgb, var(--ok) 18%, transparent); }
.delivery { display: flex; gap: 8px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.delivery span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.delivery svg { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* sections */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .ic { width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.trust-item h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.trust-item p { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); } }

/* products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.product:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-ic { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.product h3 { font-size: 18px; margin-top: 18px; font-weight: 650; }
.product .desc { color: var(--ink-3); font-size: 14px; margin-top: 4px; min-height: 44px; }
.product .price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.product .price strong { font-size: 32px; letter-spacing: -.03em; font-weight: 700; }
.product .price span { color: var(--ink-3); font-size: 14px; }
.tiers { margin: 18px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tiers-row { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 13.5px; }
.tiers-row + .tiers-row { border-top: 1px solid var(--line); }
.tiers-row span:first-child { color: var(--ink-3); }
.tiers-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.tiers-row.best { background: var(--brand-50); }
.tiers-row.best strong { color: var(--brand); }
.product .btn { margin-top: auto; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.step { position: relative; padding: 28px; }
.step + .step { border-left: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius); background: var(--panel); color: #fff; font-weight: 600; font-size: 14px; }
.step h3 { font-size: 16.5px; margin-top: 18px; font-weight: 600; }
.step p { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; border-top: 1px solid var(--line); } }

/* ussd band */
.ussd { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 44px 48px; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%); color: var(--panel-ink); position: relative; overflow: hidden; }
.ussd::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.ussd > * { position: relative; }
.ussd h2 { font-size: clamp(24px, 2.8vw, 32px); color: #fff; font-weight: 700; }
.ussd p { color: var(--panel-ink-2); margin-top: 12px; font-size: 16px; max-width: 520px; }
.ussd-code { justify-self: end; text-align: center; padding: 24px 32px; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid var(--panel-line); }
.ussd-code .code { font-family: var(--mono); font-size: clamp(30px, 4vw, 42px); font-weight: 600; color: #fff; letter-spacing: .02em; }
.ussd-code small { display: block; color: var(--panel-ink-2); margin-top: 4px; font-size: 13px; }
@media (max-width: 820px) { .ussd { grid-template-columns: 1fr; padding: 30px 24px; } .ussd-code { justify-self: stretch; } }

/* faq */
.faq { max-width: 800px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); max-width: 700px; font-size: 14.5px; }

/* contact + footer */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
a.contact-card:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow); }
.contact-card .ic { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.contact-card h3 { font-size: 14.5px; font-weight: 600; }
.contact-card p { color: var(--ink-3); font-size: 14px; margin-top: 2px; word-break: break-word; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); margin-top: 48px; background: var(--bg-elev); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }

/* ---------- checkout / buy ---------- */
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.03em; font-weight: 700; }
.page-head p { color: var(--ink-2); margin-top: 8px; font-size: 16px; max-width: 620px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 500; font-size: 14px; margin-bottom: 16px; }
.checkout { display: grid; grid-template-columns: 1fr 370px; gap: 24px; align-items: start; padding-bottom: 56px; }
@media (max-width: 920px) { .checkout { grid-template-columns: 1fr; } }
.step-card { padding: 24px; }
.step-card + .step-card { margin-top: 16px; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-title .n { width: 26px; height: 26px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--panel); color: #fff; font-weight: 600; font-size: 13px; }
.step-title h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.type-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.type-opt { position: relative; display: block; cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt .box { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-elev); transition: border-color .15s, box-shadow .15s, background .15s; height: 100%; }
.type-opt .box strong { font-size: 15px; font-weight: 600; padding-right: 26px; }
.type-opt .box span { font-size: 13.5px; color: var(--ink-3); }
.type-opt .box .tick { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: all .15s; }
.type-opt input:checked + .box { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); }
.type-opt input:checked + .box .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.type-opt input:focus-visible + .box { outline: 2px solid var(--focus); outline-offset: 2px; }
.type-opt input:disabled + .box { opacity: .5; cursor: not-allowed; background: var(--bg-sunken); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow-sm); overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { background: var(--bg-sunken); }
.qty input { width: 72px; height: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; text-align: center; font-size: 17px; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--brand-50); }
.quick-qty { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-width: 40px; padding: 5px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-elev); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand-50); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.tier-hint { margin-top: 14px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); font-size: 13.5px; color: var(--ink-2); }
.tier-hint svg { color: var(--brand); }
.summary { position: sticky; top: 84px; padding: 22px; }
.summary h2 { font-size: 15px; font-weight: 600; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.sum-row span:first-child { color: var(--ink-3); }
.sum-row strong { text-align: right; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 20px; border-top: 1px solid var(--line); margin-top: 8px; }
.sum-total strong { font-size: 28px; letter-spacing: -.03em; font-weight: 700; }
.pay-logos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.pay-logos span { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink-3); background: var(--bg-sunken); }
.secure-note { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* retrieve results */
.narrow { max-width: 620px; }
.results { margin-top: 28px; }
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.result-head h2 { font-size: 19px; font-weight: 650; }
.voucher-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.v-mini { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); overflow: hidden; break-inside: avoid; box-shadow: var(--shadow-sm); }
.v-mini-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; background: var(--panel); color: var(--panel-ink); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.v-mini-body { padding: 4px 16px 12px; }
.v-mini .v-row { padding: 9px 0; }
.v-mini .v-value { font-size: 15px; }
.copy-btn { border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-3); width: 30px; height: 30px; border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer; }
.copy-btn:hover { color: var(--brand); border-color: var(--line-2); }
.copy-btn.done { color: var(--ok); background: var(--ok-bg); }
.v-mini-foot { padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; background: var(--bg-sunken); }

/* status page */
.status-wrap { max-width: 560px; margin: 0 auto; padding: 64px 0 40px; text-align: center; }
.status-ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; }
.status-ic.ok { background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-bg) 60%, transparent); }
.status-ic.wait { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 8px color-mix(in srgb, var(--warn-bg) 60%, transparent); }
.status-ic.err { background: var(--err-bg); color: var(--err); box-shadow: 0 0 0 8px color-mix(in srgb, var(--err-bg) 60%, transparent); }
.status-wrap h1 { font-size: clamp(26px, 3.4vw, 32px); font-weight: 700; }
.status-wrap .lead { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.status-card { margin-top: 28px; text-align: left; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- toasts & modal ---------- */
.toasts { position: fixed; z-index: 100; top: 16px; right: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; width: 100%; max-width: 380px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .2s ease-out; }
.toast .t-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.toast.ok .t-ic { background: var(--ok-bg); color: var(--ok); }
.toast.err .t-ic { background: var(--err-bg); color: var(--err); }
.toast.info .t-ic { background: var(--info-bg); color: var(--info); }
.toast strong { display: block; font-size: 14px; font-weight: 600; }
.toast p { color: var(--ink-2); font-size: 13.5px; }
.toast.out { animation: toast-out .2s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(11, 18, 32, .5); backdrop-filter: blur(2px); animation: fade .15s; }
.modal-box { width: 100%; max-width: 440px; background: var(--bg-elev); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 24px; }
.modal-box h3 { font-size: 17px; font-weight: 600; }
.modal-box p { color: var(--ink-2); margin-top: 8px; font-size: 14.5px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
@keyframes fade { from { opacity: 0; } }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; background: var(--panel); color: var(--panel-ink); padding: 18px 12px; }
.sidebar .brand { padding: 4px 10px 18px; color: #fff; }
.sidebar .brand small { color: var(--panel-ink-2); }
.side-section { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-ink-2); opacity: .8; padding: 18px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: var(--radius); color: var(--panel-ink-2); font-weight: 500; font-size: 14px; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side-link.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 2px 0 0 #7aa2ff; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--panel-line); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.who-meta { min-width: 0; }
.who-meta strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.who-meta span { font-size: 12px; color: var(--panel-ink-2); text-transform: capitalize; }
.sidebar .btn-ghost { color: var(--panel-ink-2); }
.sidebar .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px; background: color-mix(in srgb, var(--bg-elev) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.menu-btn { display: none; }
.content { padding: 28px; max-width: 1320px; width: 100%; }
.side-scrim { display: none; }
@media (max-width: 980px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .side-scrim.open { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(11,18,32,.45); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 20px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.stat-ic { width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.stat-ic.gold { background: var(--accent-50); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.stat-ic.info { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 20%, transparent); }
.stat-ic.warn { background: var(--bg-sunken); color: var(--ink-2); border-color: var(--line); }
.stat-value { font-size: 28px; font-weight: 650; letter-spacing: -.03em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.segmented { display: inline-flex; padding: 3px; border-radius: var(--radius); background: var(--bg-sunken); border: 1px solid var(--line); }
.segmented a { padding: 6px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.segmented a:hover { color: var(--ink); text-decoration: none; }
.segmented a.on { background: var(--bg-elev); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--err); }
.delta.flat { color: var(--ink-3); }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.chart { width: 100%; height: 220px; }
.chart .bar { fill: var(--brand); transition: opacity .15s; }
.chart .bar:hover { opacity: .8; }
.chart .grid { stroke: var(--line); }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }

.stock-item + .stock-item { margin-top: 18px; }
.stock-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.stock-top strong { font-weight: 600; }
.meter { height: 6px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.meter.low > span { background: var(--accent); }
.meter.out > span { background: var(--err); }

/* tables */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .input-group { flex: 1 1 240px; min-width: 200px; }
.toolbar .input-group .input { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; padding-left: 36px; }
.toolbar .input-group > svg { left: 11px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 10px 16px; background: var(--bg-sunken); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--bg-sunken) 55%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable::after { content: " ↕"; opacity: .4; }
.table th.sort-asc::after { content: " ↑"; opacity: 1; }
.table th.sort-desc::after { content: " ↓"; opacity: 1; }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.empty svg { margin: 0 auto 12px; opacity: .6; }
.pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.pager .pages { display: flex; gap: 4px; }
.pager a, .pager span.cur { min-width: 32px; height: 32px; padding: 0 10px; border-radius: var(--radius-sm); display: inline-grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; background: var(--bg-elev); }
.pager a:hover { text-decoration: none; background: var(--bg-sunken); }
.pager span.cur { background: var(--brand-50); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.pager .gap { padding: 0 4px; align-self: center; }

.form-card { max-width: 760px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.prefix { position: relative; display: block; }
.prefix .input { padding-left: 50px; }
.prefix::before { content: "GHS"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 600; color: var(--ink-3); z-index: 1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }
.dropzone { display: grid; place-items: center; text-align: center; gap: 6px; padding: 36px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--bg-sunken); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone svg { color: var(--brand); }
.dropzone strong { font-size: 15px; font-weight: 600; }
.dropzone .file-name { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.split { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(150deg, var(--panel) 0%, var(--panel-2) 100%); color: var(--panel-ink); }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; }
.auth-side .brand small { color: var(--panel-ink-2); }
.auth-side h2 { font-size: 32px; color: #fff; max-width: 440px; font-weight: 700; letter-spacing: -.03em; }
.auth-side p { color: var(--panel-ink-2); margin-top: 14px; max-width: 420px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; background: var(--bg-elev); }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 26px; font-weight: 700; }
.auth-box > p { color: var(--ink-3); margin-top: 6px; margin-bottom: 28px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }

/* print */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .wa-float, .no-print, .toasts, .sidebar, .topbar, .test-banner, form { display: none !important; }
  .voucher-list { grid-template-columns: repeat(2, 1fr); }
  .v-mini { border: 1px solid #000; box-shadow: none; }
  .v-mini-head { background: #fff !important; color: #000 !important; border-bottom: 1px solid #000; }
  .results { margin: 0; }
}

/* =====================================================================
   HOMEPAGE v2
   ===================================================================== */
.hero-v2 { padding: 64px 0 72px; }
.hero-v2 .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
.hero-v2 h1 { margin-top: 20px; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 15px; }
.checks svg { color: var(--ok); background: var(--ok-bg); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.ussd-inline { color: var(--ink-3); font-size: 14px; align-self: center; }
.ussd-inline strong { color: var(--ink); }

.quick-buy { box-shadow: var(--shadow-lg); overflow: hidden; }
.qb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
.qb-head h2 { font-size: 17px; font-weight: 650; }
.qb-body { padding: 22px; }
.qb-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.qb-type { position: relative; cursor: pointer; }
.qb-type input { position: absolute; opacity: 0; pointer-events: none; }
.qb-type span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-elev); transition: all .15s; height: 100%; }
.qb-type strong { font-size: 14.5px; font-weight: 600; }
.qb-type small { font-size: 12.5px; color: var(--ink-3); }
.qb-type input:checked + span { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand); }
.qb-type input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.qb-type input:disabled + span { opacity: .5; cursor: not-allowed; background: var(--bg-sunken); }
.qb-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.qb-total { text-align: right; }
.qb-total span { display: block; font-size: 13px; }
.qb-total strong { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.qb-hint { margin: 14px 0 0; padding: 9px 12px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-2); font-size: 13.5px; }
.quick-buy .btn-block { margin-top: 20px; }
.qb-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.qb-pay span { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink-3); background: var(--bg-sunken); }
@media (max-width: 420px) { .qb-types { grid-template-columns: 1fr; } .qb-row { flex-wrap: wrap; } }

.logos-band { border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.logos-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 34px; padding-top: 18px; padding-bottom: 18px; color: var(--ink-3); font-size: 14px; }
.logos-inner > span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.logos-inner .lg { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.logos-inner .lg svg { color: var(--brand); }

.split-head { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.split-head > div { max-width: 560px; }
.split-head > p { max-width: 380px; margin: 0; font-size: 15px; color: var(--ink-3); }
.price-table .table td { padding-top: 16px; padding-bottom: 16px; }
.price-table .table th { font-size: 12.5px; }
.price-cell { font-weight: 600; font-size: 15px; }
.price-cell.best { color: var(--brand); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 18px; right: 18px; top: 18px; height: 1px; background: var(--line-2); }
.timeline li { position: relative; }
.t-num { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--panel); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 0 0 6px var(--bg-elev); }
.timeline h3 { font-size: 16px; font-weight: 600; margin-top: 18px; }
.timeline p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before { display: none; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

.help-band { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 24px; align-items: center; padding: 28px 32px; border-radius: var(--radius-xl); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hb-ic { width: 52px; height: 52px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.help-band h2 { font-size: 20px; font-weight: 650; }
.help-band p { color: var(--ink-2); margin-top: 4px; font-size: 15px; }
@media (max-width: 760px) { .help-band { grid-template-columns: 1fr; padding: 24px; } }

.faq-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.faq-grid .faq { margin: 0; max-width: none; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }

.final-cta { text-align: center; padding: 56px 24px; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%); color: var(--panel-ink); position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.final-cta > * { position: relative; }
.final-cta h2 { font-size: clamp(26px, 3.2vw, 34px); color: #fff; font-weight: 700; letter-spacing: -.03em; }
.final-cta p { color: var(--panel-ink-2); margin: 10px 0 26px; font-size: 16px; }

/* grid children may shrink below their content width (prevents phone overflow) */
.hero-grid > *, .checkout > *, .split > *, .dash-grid > *, .faq-grid > * { min-width: 0; }
.qb-head { flex-wrap: wrap; }
@media (max-width: 920px) { .hero-v2 .hero-grid { grid-template-columns: 1fr; } }

/* integrations */
.int-grid { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.int-nav { padding: 8px; }
.int-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); color: var(--ink); }
.int-nav a:hover { background: var(--bg-sunken); text-decoration: none; }
.int-nav a.on { background: var(--brand-50); }
.int-ic { width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center; background: var(--bg-sunken); color: var(--ink-2); flex-shrink: 0; }
.int-nav a.on .int-ic { background: var(--brand); color: #fff; }
.int-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.int-name small { font-size: 12px; font-weight: 500; }
.tone-ok { color: var(--ok); } .tone-warn { color: var(--warn); } .tone-info { color: var(--ink-3); }
.int-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .int-grid { grid-template-columns: 1fr; } .int-nav { display: flex; overflow-x: auto; } .int-nav a { flex-shrink: 0; } }
@media (max-width: 640px) { .int-fields { grid-template-columns: 1fr; } }

/* homepage editor (CMS) */
.cms-sec > summary { list-style: none; cursor: pointer; border-bottom: 0; }
.cms-sec > summary::-webkit-details-marker { display: none; }
.cms-sec > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin-left: 8px; transition: transform .2s; flex-shrink: 0; }
.cms-sec[open] > summary { border-bottom: 1px solid var(--line); }
.cms-sec[open] > summary::after { transform: rotate(-135deg); }
.cms-sub { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.cms-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cms-box { padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-sunken); min-width: 0; }
@media (max-width: 900px) { .cms-grid3 { grid-template-columns: 1fr; } }
.cms-bar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 16px; box-shadow: var(--shadow-lg); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .sw { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .sw { background: var(--brand); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--focus); outline-offset: 2px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.logo-preview { display: grid; gap: 8px; }
.lp { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); min-width: 240px; }
.lp strong { font-size: 16px; font-weight: 700; }
.lp.light { background: #fff; color: #0b1220; }
.lp.dark { background: #071a4a; color: #fff; border-color: #071a4a; }

/* broadcasts */
.bc-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .bc-grid { grid-template-columns: 1fr; } }
.bc-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.bc-count strong { display: block; font-size: 20px; font-weight: 700; }
.bc-count span { font-size: 13px; color: var(--ink-2); }
.bc-history { max-height: 560px; overflow-y: auto; }
.bc-item { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bc-item:last-child { border-bottom: 0; }

/* =====================================================================
   Page loader
   ===================================================================== */
#gv-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--bg);
  opacity: 0; visibility: hidden;
  /* appears only if the page is slow; always gone after 8s even if scripts fail */
  animation: gv-loader-in .25s ease-out .25s forwards, gv-loader-out .3s ease 8s forwards;
}
#gv-loader.done { animation: none; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
#gv-loader.done.was-shown { opacity: 0; }
@keyframes gv-loader-in { to { opacity: 1; visibility: visible; } }
@keyframes gv-loader-out { to { opacity: 0; visibility: hidden; } }
.gv-loader-inner { display: grid; justify-items: center; gap: 18px; }
.gv-loader-mark { animation: gv-pulse 1.1s ease-in-out infinite; }
.gv-loader-mark svg, .gv-loader-mark img { filter: drop-shadow(0 10px 24px rgba(29, 78, 216, .35)); }
@keyframes gv-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.gv-loader-bar { width: 120px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gv-loader-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f6bff, #ffc53d); animation: gv-slide 1s ease-in-out infinite; }
@keyframes gv-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

#gv-topbar {
  position: fixed; top: 0; left: 0; z-index: 10000; height: 3px; width: 0;
  background: linear-gradient(90deg, #2f6bff, #ffc53d);
  box-shadow: 0 0 10px rgba(47, 107, 255, .6);
  opacity: 0; transition: width .4s ease, opacity .3s ease;
  pointer-events: none;
}
#gv-topbar.go { opacity: 1; width: 70%; transition: width 8s cubic-bezier(.08,.82,.17,1), opacity .2s; }
#gv-topbar.finish { opacity: 0; width: 100%; transition: width .2s ease, opacity .3s ease .2s; }
@media (prefers-reduced-motion: reduce) {
  .gv-loader-mark, .gv-loader-bar span { animation: none; }
  #gv-topbar.go { transition: none; width: 70%; }
}
@media print { #gv-loader, #gv-topbar { display: none !important; } }

/* SAB-TECH HUB logo colours: navy frame on light, white frame + orange keys on dark */
.gv-logo { display: inline-flex; align-items: center; flex: none; }
.gv-logo img { display: block; }
.gv-logo .gv-logo-d { display: none; }
.has-dark-header .site-header .gv-logo .gv-logo-l, .sidebar .gv-logo .gv-logo-l, .auth-side .gv-logo .gv-logo-l, .lp.dark .gv-logo .gv-logo-l { display: none; }
.has-dark-header .site-header .gv-logo .gv-logo-d, .sidebar .gv-logo .gv-logo-d, .auth-side .gv-logo .gv-logo-d, .lp.dark .gv-logo .gv-logo-d { display: block; }
:root[data-theme="dark"] .gv-logo .gv-logo-l { display: none; } :root[data-theme="dark"] .gv-logo .gv-logo-d { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gv-logo .gv-logo-l { display: none; } :root:not([data-theme="light"]) .gv-logo .gv-logo-d { display: block; } }
.b-sms-head .gv-logo .gv-logo-l, .lp.light .gv-logo .gv-logo-l { display: block !important; } .b-sms-head .gv-logo .gv-logo-d, .lp.light .gv-logo .gv-logo-d { display: none !important; }

/* PIN / code boxes (see pinBoxes in app.js) */
.pin-boxes { display: flex; gap: 10px; justify-content: center; }
.pin-box { width: 56px; height: 60px; padding: 0; text-align: center; font: 700 24px/1 var(--mono); color: var(--ink); background: var(--bg-elev); border: 1.5px solid var(--line-2); border-radius: 12px; outline: none; transition: border-color .12s, box-shadow .12s; }
.pin-box:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.pin-boxes-6 { gap: 8px; }
.pin-boxes-6 .pin-box { width: 46px; height: 56px; font-size: 22px; }
@media (max-width: 380px) { .pin-box { width: 50px; height: 56px; } .pin-boxes-6 .pin-box { width: 40px; height: 52px; } }

/* 3-column grid (reseller page); stacks on phones */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }

/* Maintenance mode: top bar switch + banner */
.mt-toggle{gap:8px;font-weight:600;border-radius:99px}
.mt-toggle strong{font-weight:800;color:var(--ink-3,#687385)}
.mt-switch{width:30px;height:18px;border-radius:99px;background:var(--line,#e4e7ec);position:relative;transition:background .2s;flex:none}
.mt-switch i{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .2s}
.mt-toggle.is-on{border-color:#f5b4ab;background:#fef3f2;color:#b42318}
.mt-toggle.is-on strong{color:#b42318}
.mt-toggle.is-on .mt-switch{background:#d92d20}
.mt-toggle.is-on .mt-switch i{left:14px}
.mt-banner{display:flex;align-items:center;gap:8px;justify-content:center;padding:9px 16px;background:#d92d20;color:#fff;font-size:13.5px;font-weight:600;text-align:center}
[data-theme="dark"] .mt-toggle.is-on{background:rgba(217,45,32,.15);border-color:rgba(217,45,32,.5);color:#ff8a80}
[data-theme="dark"] .mt-toggle.is-on strong{color:#ff8a80}
@media (max-width:640px){.mt-toggle{padding-inline:10px}.mt-toggle strong{display:none}}
