/* VoxoPay design system — tokens, base, components. Self-hosted Geist font (SIL OFL, see assets/fonts). */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --brand: #3f7a28;
  --brand-strong: #326320;
  --brand-bright: #63a443;
  --brand-soft: #eef6e8;
  --accent: #0f6f74;
  --accent-soft: #e6f9f9;
  --orange-soft: #fff5e6;
  --lime-soft: #f7fbeb;
  --ink: #020618;
  --bg: #fcfcfc;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --border: #ebebeb;
  --border-strong: #dcdcdc;
  --text: #0a1823;
  --text-2: #314158;
  --text-3: #576579;
  --success: #0b7a4c;
  --success-soft: #e3f6ec;
  --warning: #8a5a0c;
  --warning-soft: #fdf3e1;
  --danger: #b42d2d;
  --danger-soft: #fdeaea;
  --info: #2257b8;
  --info-soft: #e7effd;
  --shadow-sm: 0 1px 2px rgba(10, 24, 35, .05);
  --shadow: 0 10px 40px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .03);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 24px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --hero-grad: linear-gradient(100deg, #e3efd8 0%, #edf5e2 42%, #fbfbe4 100%);
  --soft-grad: linear-gradient(180deg, #f2f8ed 0%, #fcfcfc 100%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8bd06a; --brand-strong: #a3dd86; --brand-bright: #7cc35a; --brand-soft: #1a2a14;
    --accent: #5fd3d9; --accent-soft: #0f2a2c; --orange-soft: #2c2312; --lime-soft: #1d2512; --ink: #020618;
    --bg: #0b0d10; --surface: #121519; --surface-2: #1a1e24;
    --border: #262b33; --border-strong: #343a44;
    --text: #eef1f4; --text-2: #b9c1cc; --text-3: #8b94a1;
    --success: #3fcf8e; --success-soft: #11291f; --warning: #f0b44c; --warning-soft: #2c2412;
    --danger: #ff6b6b; --danger-soft: #2f1517; --info: #6ea2ff; --info-soft: #14213b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 40px rgba(0,0,0,.4); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
    --hero-grad: linear-gradient(100deg, #142010 0%, #121a0f 45%, #1b1c10 100%);
    --soft-grad: linear-gradient(180deg, #121a0f 0%, #0b0d10 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #8bd06a; --brand-strong: #a3dd86; --brand-bright: #7cc35a; --brand-soft: #1a2a14;
  --accent: #5fd3d9; --accent-soft: #0f2a2c; --orange-soft: #2c2312; --lime-soft: #1d2512; --ink: #020618;
  --bg: #0b0d10; --surface: #121519; --surface-2: #1a1e24;
  --border: #262b33; --border-strong: #343a44;
  --text: #eef1f4; --text-2: #b9c1cc; --text-3: #8b94a1;
  --success: #3fcf8e; --success-soft: #11291f; --warning: #f0b44c; --warning-soft: #2c2412;
  --danger: #ff6b6b; --danger-soft: #2f1517; --info: #6ea2ff; --info-soft: #14213b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 40px rgba(0,0,0,.4); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  --hero-grad: linear-gradient(100deg, #142010 0%, #121a0f 45%, #1b1c10 100%);
  --soft-grad: linear-gradient(180deg, #121a0f 0%, #0b0d10 100%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); font-size: .875rem; }
.mono { font-family: var(--mono); }
.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 24px; height: 24px; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 12px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; font-weight: 600; }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-lg { padding: 28px; border-radius: var(--radius-lg); }
.card h3 { margin-bottom: .35em; }
.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: 1.05rem; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.feature-icon.teal { background: var(--accent-soft); color: var(--accent); }

/* ---------- Alerts / flash ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: .92rem; }
.alert + .alert { margin-top: 8px; }
.alert-success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.alert-error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.alert-info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.alert p { margin: 0; color: var(--text); }
.flash-stack { margin-bottom: 18px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label, .label { display: block; font-size: .87rem; font-weight: 650; margin-bottom: 6px; color: var(--text); }
.field .hint { font-size: .8rem; color: var(--text-3); margin-top: 6px; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.input[readonly], .input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--text-2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); }
.otp-input { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .5em; text-align: center; padding-left: .5em; }
.hp { position: absolute; left: -5000px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Empty / planned states ---------- */
.empty { text-align: center; padding: 48px 20px; }
.empty .feature-icon { margin: 0 auto 16px; width: 56px; height: 56px; border-radius: 16px; }
.empty h2 { font-size: 1.25rem; }
.empty p { max-width: 520px; margin: 0 auto 1em; color: var(--text-2); }

/* ---------- Site header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 850; font-size: 1.28rem; letter-spacing: -.03em; text-decoration: none !important; }
.logo svg { width: 32px; height: 32px; }
.logo .dot { color: var(--brand); }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.header-actions { display: none; align-items: center; gap: 8px; }
.menu-toggle { display: inline-flex; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 12px 0 18px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 11px 4px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav .row { margin-top: 14px; }
@media (min-width: 980px) { .nav, .header-actions { display: flex; } .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; } }
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text-2); width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-grad); padding: 72px 0 56px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 104px 0 84px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
.hero .row { gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; font-size: .85rem; color: var(--text-3); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero visual: illustrative API + checkout mock */
.mock { position: relative; }
.mock-code { background: #0d1122; color: #d7dcf2; border-radius: var(--radius-lg); padding: 20px 22px; font-family: var(--mono); font-size: .8rem; line-height: 1.7; box-shadow: var(--shadow-lg); border: 1px solid #222a47; overflow-x: auto; }
.mock-code .k { color: #9d93ff; } .mock-code .s { color: #6fe3cf; } .mock-code .c { color: #6f7898; } .mock-code .n { color: #ffcf7a; }
.mock-dots { display: flex; gap: 6px; margin-bottom: 14px; } .mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c3354; }
.mock-phone { position: absolute; right: -6px; bottom: -34px; width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 16px; box-shadow: var(--shadow-lg); display: none; }
@media (min-width: 1100px) { .mock-phone { display: block; } }
.mock-phone .amt { font-size: 1.4rem; font-weight: 800; margin: 4px 0 10px; }
.mock-phone .opt { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: .8rem; margin-bottom: 6px; }
.mock-phone .opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.mock-label { position: absolute; top: -12px; left: 18px; font-size: .7rem; font-weight: 700; background: var(--warning-soft); color: var(--warning); padding: 2px 8px; border-radius: 999px; }

/* ---------- Content blocks ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 22px; padding-top: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 18px; left: 22px; font-weight: 800; color: var(--brand); font-family: var(--mono); }
.flow { display: grid; gap: 12px; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.flow .node { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.flow .node.voxo { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.flow .arrow { display: grid; place-items: center; color: var(--text-3); }
@media (max-width: 899px) { .flow .arrow { transform: rotate(90deg); } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li .icon { color: var(--success); margin-top: 3px; }
.check-list li.no .icon { color: var(--text-3); }
.callout { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.warn { border-color: var(--warning); background: var(--warning-soft); }
.callout p:last-child { margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.code-block { background: #0d1122; color: #d7dcf2; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: .82rem; line-height: 1.7; border: 1px solid #222a47; position: relative; }
.code-block pre { margin: 0; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: #1d2440; color: #c9cff0; border: 1px solid #2c3561; border-radius: 6px; font-size: .72rem; padding: 3px 8px; cursor: pointer; }
.page-hero { background: var(--hero-grad); padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero .lead { font-size: 1.1rem; color: var(--text-2); max-width: 680px; }
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 1.9rem; font-weight: 800; margin: 8px 0; letter-spacing: -.02em; }
.price-card .check-list { margin: 16px 0 22px; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.market-card .methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cta-band { background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; border-radius: var(--radius-lg); padding: 40px 28px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px; } }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn-secondary { background: #fff; color: #1d1650; border: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 52px 0 28px; margin-top: 40px; font-size: .9rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-legal { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 20px; color: var(--text-3); font-size: .82rem; display: grid; gap: 8px; }

/* ---------- Auth layout ---------- */
.auth-shell { min-height: 100vh; display: grid; }
@media (min-width: 980px) { .auth-shell { grid-template-columns: 1fr 1fr; } }
.auth-aside { display: none; background: linear-gradient(150deg, #1b1550, #3a2fb8 55%, #0f7f76); color: #fff; padding: 48px; position: relative; overflow: hidden; }
@media (min-width: 980px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside .logo { color: #fff; }
.auth-aside h2 { color: #fff; font-size: 2rem; max-width: 460px; }
.auth-aside p, .auth-aside li { color: rgba(255,255,255,.82); }
.auth-aside .check-list li .icon { color: #7ef0dc; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .lead { color: var(--text-2); margin-bottom: 24px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; max-width: 440px; width: 100%; margin: 0 auto 32px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--text-2); font-size: .9rem; }
.auth-card.wide { max-width: 560px; }

/* ---------- App shell (dashboard + admin) ---------- */
.app { min-height: 100vh; display: flex; }
.sidebar { width: 260px; flex: none; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
.sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 0; height: 100vh; transform: none; } }
.sidebar-head { padding: 18px 18px 10px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-scroll { overflow-y: auto; padding: 6px 12px 16px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-group-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; padding: 0 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { background: var(--brand-soft); color: var(--brand); }
.nav-link .soon { margin-left: auto; font-size: .65rem; font-weight: 700; color: var(--text-3); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; }
.sidebar-foot { border-top: 1px solid var(--border); padding: 12px; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .topbar { padding: 0 28px; } }
.topbar .menu-toggle { width: 38px; height: 38px; }
@media (min-width: 1024px) { .topbar .menu-toggle { display: none; } }
.topbar-title { font-weight: 700; font-size: 1rem; }
.content { padding: 22px 16px 48px; max-width: 1240px; width: 100%; margin: 0 auto; }
@media (min-width: 768px) { .content { padding: 28px 28px 56px; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.mode-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); }
.mode-pill.live { background: var(--success-soft); color: var(--success); }
.scrim { display: none; position: fixed; inset: 0; background: rgba(5, 8, 20, .45); z-index: 45; }
.scrim.is-open { display: block; }
@media (min-width: 1024px) { .scrim, .scrim.is-open { display: none; } }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.user-chip .meta { min-width: 0; }
.user-chip .meta strong, .user-chip .meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.user-chip .meta span { color: var(--text-3); }
.merchant-switch { width: 100%; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .label { font-size: .8rem; color: var(--text-3); font-weight: 650; margin: 0; }
.stat .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .foot { font-size: .8rem; color: var(--text-3); margin-top: 2px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.checklist li.done .tick { background: var(--success); border-color: var(--success); color: #fff; }
.checklist li.done .text { color: var(--text-3); text-decoration: line-through; }
.checklist .action { margin-left: auto; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px 16px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-word; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--text-2); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.banner { padding: 10px 16px; font-size: .85rem; text-align: center; background: var(--warning-soft); color: var(--warning); font-weight: 600; }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters .input, .filters .select { width: auto; min-width: 180px; min-height: 38px; }

/* ---------- Minimal / error ---------- */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.center-page .code { font-size: 4rem; font-weight: 900; color: var(--brand); letter-spacing: -.04em; line-height: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Utilities (CSP forbids inline style attributes) ---------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 22px; }
.pt-2 { padding-top: 18px; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-sm { font-size: .85rem; }
.max-sm { max-width: 340px; } .max-md { max-width: 560px; }
.w-full { width: 100%; }
.inline-form { display: inline; }
@media (min-width: 980px) { .auth-aside-logo-mobile { visibility: hidden; } }
.auth-aside .logo .dot { color: #b9b2ff; }

/* ---------- Hosted checkout ---------- */
.checkout-body { background: var(--hero-grad), var(--bg); min-height: 100vh; }
.checkout-wrap { max-width: 480px; margin: 0 auto; padding: 28px 16px 40px; }
.checkout-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.checkout-merchant { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.checkout-amount { font-size: 2.1rem; font-weight: 850; letter-spacing: -.03em; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.checkout-amount-input { font-size: 1.3rem; font-weight: 700; }
.checkout-foot { margin-top: 18px; }
.checkout-foot .row { gap: 6px; }
.line-items { list-style: none; padding: 0; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.line-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.line-items li:last-child { border-bottom: 0; }
.method-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method-grid legend { margin-bottom: 6px; }
.method-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 650; font-size: .92rem; }
.method-option input { accent-color: var(--brand); width: 16px; height: 16px; }
.method-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.method-grid .field-error { grid-column: 1 / -1; }
.result-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 8px auto 14px; background: var(--surface-2); color: var(--text-2); }
.result-icon.success { background: var(--success-soft); color: var(--success); }
.result-icon.pending { background: var(--brand-soft); color: var(--brand); }
.result-title { font-size: 1.4rem; text-align: center; }
.spinner { width: 28px; height: 28px; margin: 14px auto; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: vp-spin 0.9s linear infinite; }
@keyframes vp-spin { to { transform: rotate(360deg); } }
.sandbox-help { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 10px 14px; }
.sandbox-help summary { cursor: pointer; font-weight: 650; font-size: .88rem; }
.sandbox-help ul { margin: 0; padding-left: 1.1em; }

/* ---------- Dashboard data views ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bars .bar span.fill { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .bar small { font-size: .65rem; color: var(--text-3); white-space: nowrap; }
.h-0 { height: 0; } .h-5 { height: 5%; } .h-10 { height: 10%; } .h-15 { height: 15%; } .h-20 { height: 20%; } .h-25 { height: 25%; } .h-30 { height: 30%; } .h-35 { height: 35%; } .h-40 { height: 40%; } .h-45 { height: 45%; } .h-50 { height: 50%; }
.h-55 { height: 55%; } .h-60 { height: 60%; } .h-65 { height: 65%; } .h-70 { height: 70%; } .h-75 { height: 75%; } .h-80 { height: 80%; } .h-85 { height: 85%; } .h-90 { height: 90%; } .h-95 { height: 95%; } .h-100 { height: 100%; }
.status-succeeded { background: var(--success-soft); color: var(--success); border-color: transparent; }
.status-failed, .status-cancelled { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.status-expired { background: var(--surface-2); color: var(--text-3); }
.status-pending, .status-processing, .status-created { background: var(--info-soft); color: var(--info); border-color: transparent; }
.status-unknown { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.status-refunded, .status-partially_refunded { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.code-inline { font-family: var(--mono); font-size: .82rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; word-break: break-all; display: block; }
.value-lg { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mode-switch { gap: 6px; }
.banner-info { background: var(--info-soft); color: var(--info); }
.banner-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Printable documents ---------- */
.print-body { background: var(--surface-2); }
.print-page { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
.invoice { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.invoice-head { align-items: flex-start; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.text-right { text-align: right; }
@media print {
  .no-print, .banner { display: none !important; }
  body, .print-body { background: #fff !important; color: #000; }
  .invoice { border: 0; padding: 0; }
  .print-page { padding: 0; max-width: none; }
}
.qty-input { width: 84px; min-height: 38px; }
.text-left { text-align: left; }
.field-builder { display: grid; gap: 8px; grid-template-columns: 1fr; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 12px; }
@media (min-width: 760px) { .field-builder { grid-template-columns: 2fr 1fr 2fr auto; align-items: end; } }

/* ---------- Developer docs ---------- */
.docs-body { background: var(--bg); }
.docs-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; padding: 0 16px; }
.docs-search { position: relative; flex: 1; max-width: 420px; display: none; }
@media (min-width: 760px) { .docs-search { display: block; } }
.docs-search .input { min-height: 38px; }
.docs-results { position: absolute; top: 44px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; z-index: 60; }
.docs-results a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.docs-results a:hover, .docs-results a:focus { background: var(--surface-2); }
.docs-results small { display: block; color: var(--text-3); }
.docs-top-actions .btn-ghost { display: none; }
@media (min-width: 980px) { .docs-top-actions .btn-ghost { display: inline-flex; } }
.docs-shell { display: grid; grid-template-columns: 1fr; max-width: 1400px; margin: 0 auto; }
@media (min-width: 1024px) { .docs-shell { grid-template-columns: 250px 1fr; } }
.docs-nav { display: none; padding: 18px 12px 40px; border-right: 1px solid var(--border); }
.docs-nav.is-open { display: block; }
@media (min-width: 1024px) { .docs-nav { display: block; position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto; } .docs-menu { display: none; } }
.docs-main { min-width: 0; padding: 28px 16px 64px; }
@media (min-width: 768px) { .docs-main { padding: 36px 40px 80px; } }
.docs-article { max-width: 1080px; }
.docs-article h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.docs-article h2 { font-size: 1.4rem; margin-top: 2.2em; padding-top: .4em; border-top: 1px solid var(--border); }
.docs-article h3 { margin-top: 1.6em; }
.docs-article p, .docs-article li { color: var(--text-2); }
.docs-article p code, .docs-article li code, .docs-article td code, .docs-article dd code, .docs-article dt code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: .85em; color: var(--text); }
.docs-article .lead { font-size: 1.1rem; }
.docs-split { display: grid; gap: 22px; align-items: start; margin: 18px 0; }
@media (min-width: 1200px) { .docs-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .docs-split .code-tabs { position: sticky; top: 80px; } }
.code-tabs { background: #0d1122; border: 1px solid #222a47; border-radius: var(--radius); overflow: hidden; margin: 14px 0; }
.code-tabs-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-bottom: 1px solid #222a47; background: #111733; position: relative; }
.code-title { color: #8d95b8; font-size: .75rem; font-family: var(--mono); margin-right: auto; }
.code-tab-buttons { display: flex; gap: 2px; flex-wrap: wrap; }
.code-tab { background: none; border: 0; color: #8d95b8; font: inherit; font-size: .78rem; padding: 6px 9px; border-radius: 6px; cursor: pointer; }
.code-tab.is-active { background: #1f2750; color: #fff; }
.code-tabs .copy-btn { position: static; }
.code-pane { margin: 0; padding: 14px 16px; color: #d7dcf2; font-size: .8rem; line-height: 1.65; overflow-x: auto; }
.param-table td:first-child { white-space: nowrap; }
.param-table .req { color: var(--danger); font-size: .7rem; font-weight: 700; text-transform: uppercase; margin-left: 6px; }
.endpoint { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.method { font-weight: 800; font-size: .72rem; padding: 2px 6px; border-radius: 4px; }
.method-get { background: var(--info-soft); color: var(--info); }
.method-post { background: var(--success-soft); color: var(--success); }
.method-patch { background: var(--warning-soft); color: var(--warning); }
.method-delete { background: var(--danger-soft); color: var(--danger); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.docs-pager a { text-decoration: none; }
.docs-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 760px) { .docs-cards { grid-template-columns: 1fr 1fr; } }
.docs-cards a { text-decoration: none; color: inherit; }
.docs-cards a:hover { border-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.line-items li { align-items: center; }
.qty-input { flex: none; }

.link-button { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.link-button:hover, .link-button:focus-visible { text-decoration: underline; }

/* =====================================================================
   Snippe-style look: Geist, near-white canvas, black + green actions,
   pastel cards, floating glass navigation. (Overrides the base rules above.)
   ===================================================================== */
body { font-size: 15px; line-height: 1.6; }
h1, h2, h3, h4 { letter-spacing: -.025em; }
h1 { font-weight: 600; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }
a { color: var(--brand); }

/* Buttons: 6px radius, medium weight, compact like the reference */
.btn { min-height: 38px; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 500; font-size: .875rem; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: .82rem; border-radius: var(--radius-sm); }
.btn-lg { min-height: 44px; padding: 0 20px; font-size: .9rem; border-radius: 8px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-dark { background: var(--ink); color: #fcfcfc; }
.btn-dark:hover { background: #111a33; }
:root[data-theme="dark"] .btn-dark { background: #fcfcfc; color: var(--ink); }
.btn-arrow { padding-right: 6px; gap: 12px; }
.btn-arrow .chip { width: 28px; height: 28px; border-radius: 4px; background: var(--brand-bright); color: #fff; display: grid; place-items: center; }
.btn-arrow .chip .icon { width: 16px; height: 16px; }

/* Forms: soft grey fields with hairline borders */
.field label, .label { font-weight: 500; font-size: .875rem; }
.input, .select, .textarea { min-height: 40px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); font-size: .9rem; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-bright) 22%, transparent); background: var(--surface); }
.check input, .method-option input { accent-color: var(--brand-bright); }

/* Cards and surfaces */
.card { border-radius: 16px; border-color: var(--border); box-shadow: none; }
.card-lg { border-radius: var(--radius-lg); padding: 32px; }
.feature-icon { border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.eyebrow { color: var(--brand-bright); font-weight: 500; font-size: .75rem; letter-spacing: .14em; }
.table-wrap { border-radius: var(--radius); }
.table th { background: var(--surface); font-weight: 500; letter-spacing: .04em; }
.badge { font-weight: 500; }
.alert { border-radius: 8px; }
.callout { border-left-color: var(--brand-bright); background: var(--brand-soft); }
.code-block, .mock-code, .code-tabs { background: #0a0f1c; border-color: #1c2333; }
.price-card.featured { border-color: var(--brand-bright); box-shadow: 0 0 0 4px var(--brand-soft); }
.page-hero { background: var(--hero-grad); padding: 120px 0 56px; border-bottom: 0; }
.page-hero h1 { font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero h1 strong { font-weight: 600; }

/* Logo */
.logo { font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; gap: 8px; }
.logo svg { width: 34px; height: 34px; }
.logo .dot { color: inherit; }

/* ---------- Floating glass header ---------- */
.site-header { position: fixed; top: 12px; left: 0; right: 0; background: transparent; border: 0; backdrop-filter: none; pointer-events: none; }
.site-header .container { max-width: 1000px; }
.site-header .pill { pointer-events: auto; background: color-mix(in srgb, var(--surface) 65%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; box-shadow: 0 10px 40px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04); padding: 0 8px 0 14px; }
.site-header .bar { height: 56px; }
.site-header .nav { gap: 2px; }
.site-header .nav a { color: var(--text-2); font-weight: 500; font-size: .875rem; padding: 8px 16px; border-radius: 999px; }
.site-header .nav a:hover, .site-header .nav a.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.site-header .header-actions .btn-ghost { color: var(--text-2); }
.site-header .menu-toggle { border: 0; background: transparent; }
.site-header .mobile-nav { pointer-events: auto; background: var(--surface); border-radius: 20px; margin-top: 8px; padding: 10px 18px 18px; box-shadow: var(--shadow-lg); border: 0; }
.site-main { min-height: 60vh; }
.site-main > .flash-wrap { padding-top: 88px; }

/* ---------- Home: hero with scrolling use-case cards ---------- */
.vp-hero { background: var(--hero-grad); overflow: hidden; }
.vp-hero .container { display: grid; gap: 40px; align-items: center; min-height: 640px; padding-top: 96px; }
@media (min-width: 980px) { .vp-hero .container { grid-template-columns: 1fr 1.05fr; min-height: 760px; padding-top: 72px; } }
.vp-hero h1 { font-size: clamp(2.6rem, 5.4vw, 3.75rem); font-weight: 300; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 24px; }
.vp-hero h1 strong { font-weight: 600; }
.vp-hero .lead { font-size: 1.125rem; line-height: 1.55; color: var(--text-2); max-width: 520px; margin-bottom: 28px; }
.usecases { display: none; grid-template-columns: 1fr 1fr; gap: 16px; height: 760px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
@media (min-width: 980px) { .usecases { display: grid; } }
.usecases .col { display: flex; flex-direction: column; gap: 16px; animation: vp-up 38s linear infinite; }
.usecases .col.down { animation-name: vp-down; animation-duration: 44s; }
@keyframes vp-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes vp-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.usecase { position: relative; background: var(--surface); border-radius: 16px; height: 300px; padding: 12px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.usecase.tall { height: 360px; }
.usecase .art { flex: 1; border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; }
.usecase .art .icon-xl { width: 64px; height: 64px; color: var(--ink); opacity: .85; }
.usecase .art .tag { position: absolute; left: 12px; bottom: 12px; background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 500; color: var(--text-2); }
.usecase .art .amt { position: absolute; right: 12px; top: 12px; background: var(--ink); color: #fff; border-radius: 6px; padding: 4px 8px; font-size: .72rem; font-weight: 500; }
.usecase .label { font-size: .78rem; font-weight: 500; padding: 8px 4px 0; color: var(--text); }
.art-lime { background: linear-gradient(160deg, #e9f5d8, #cfe9b5); }
.art-teal { background: linear-gradient(160deg, #e0f6f6, #b8e6e6); }
.art-orange { background: linear-gradient(160deg, #fff2df, #ffd9a8); }
.art-violet { background: linear-gradient(160deg, #efeafe, #d6cbfb); }
.art-rose { background: linear-gradient(160deg, #fdebef, #f9c9d4); }
.art-sky { background: linear-gradient(160deg, #e6f1fd, #bcd8f8); }
@media (prefers-reduced-motion: reduce) { .usecases .col { animation: none; } }

/* ---------- Home: tools ---------- */
.vp-section { padding: 96px 0; }
.vp-eyebrow { display: block; color: var(--brand); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.vp-statement { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; max-width: 1000px; margin-bottom: 48px; }
.vp-statement .inline-chip { display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 10px; background: var(--brand-bright); color: #fff; vertical-align: -0.18em; }
.vp-statement .inline-chip .icon { width: .7em; height: .7em; }
.vp-statement .soft { color: var(--text-3); }
.tools-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .tools-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; } .tools-grid .tool-main { grid-row: span 2; } }
.tool { border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.tool h3 { font-size: 1.35rem; margin: 6px 0 2px; }
.tool p { color: var(--text-2); max-width: 460px; margin: 0; }
.tool-lime { background: var(--lime-soft); }
.tool-teal { background: var(--accent-soft); }
.tool-orange { background: var(--orange-soft); }
.tool-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 500; color: var(--text); }
.tool-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-bright); }
.tool-steps { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); margin-top: 4px; }
.tool-steps span + span::before { content: "→"; margin-right: 10px; color: var(--text-3); }
.tool-visual { margin-top: 14px; flex: 1; display: grid; place-items: end center; }
.mini-phone { width: 100%; max-width: 300px; background: var(--surface); border-radius: 20px 20px 0 0; padding: 18px 16px 8px; box-shadow: var(--shadow); }
.mini-phone .who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mini-phone .who .avatar { background: var(--brand-soft); color: var(--brand); }
.mini-phone .row-line { display: flex; justify-content: space-between; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: .78rem; margin-bottom: 6px; }
.mini-phone .row-line.sel { border-color: var(--brand-bright); background: var(--brand-soft); }
.mini-phone .pay { background: var(--ink); color: #fff; text-align: center; border-radius: 6px; padding: 8px; font-size: .8rem; margin-top: 8px; }
.mini-window { width: 100%; max-width: 420px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; font-size: .76rem; }
.mini-window .dots { display: flex; gap: 5px; margin-bottom: 10px; } .mini-window .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.mini-window .line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mini-window .line:last-child { border-bottom: 0; }
.mini-window pre { margin: 0; font-family: var(--mono); font-size: .72rem; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; }

/* ---------- Home: example links rail ---------- */
.vp-center { text-align: center; }
.vp-center .vp-eyebrow { margin-bottom: 8px; }
.vp-h2 { font-size: clamp(1.6rem, 3vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; }
.link-rail { display: flex; gap: 16px; overflow-x: auto; padding: 8px 16px 24px; scroll-snap-type: x mandatory; margin-top: 28px; }
.link-card { scroll-snap-align: start; flex: 0 0 220px; height: 220px; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); position: relative; overflow: hidden; }
.link-card .icon-xl { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; opacity: .8; }
.link-card strong { font-size: .92rem; line-height: 1.3; }
.link-card .url { font-size: .72rem; color: var(--text-2); margin: 2px 0 8px; font-family: var(--mono); }
.link-card .chip { align-self: flex-start; background: var(--surface); border-radius: 6px; padding: 2px 8px; font-size: .7rem; font-weight: 500; }

/* ---------- Home: dark "in numbers" ---------- */
.vp-dark { background: var(--ink); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.vp-dark::after { content: ""; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(99,164,67,.35), transparent); pointer-events: none; }
.vp-dark .vp-eyebrow { color: #8fd26c; }
.vp-dark h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.25; max-width: 760px; margin-bottom: 40px; }
.numbers-card { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 32px; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid #ebebeb; }
@media (min-width: 860px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.numbers .big { font-size: clamp(1.8rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.numbers p { font-size: .82rem; color: #576579; margin: 8px 0 0; }
.steps-intro { font-size: .85rem; color: #576579; margin: 22px 0 14px; }
.vp-steps { display: grid; gap: 14px; }
@media (min-width: 860px) { .vp-steps { grid-template-columns: repeat(3, 1fr); } }
.vp-step { border-radius: 12px; padding: 20px; color: #0f172b; }
.vp-step .n { font-family: var(--mono); font-size: .8rem; color: #3f7a28; margin-right: 8px; }
.vp-step strong { font-weight: 600; }
.vp-step p { color: #314158; font-size: .85rem; margin: 6px 0 0; }
.vp-step.lime { background: #f7fbeb; } .vp-step.teal { background: #e6f9f9; } .vp-step.orange { background: #fff5e6; }

/* ---------- Home: integration ---------- */
.integ-grid { display: grid; gap: 20px; margin-top: 40px; text-align: left; }
@media (min-width: 900px) { .integ-grid { grid-template-columns: 1fr 1fr; } }
.integ-card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: var(--radius-lg); padding: 32px; }
.integ-card h3 { font-size: 1.1rem; }
.integ-card p { color: var(--text-2); font-size: .9rem; }
.orbit { position: relative; height: 260px; margin-top: 18px; display: grid; place-items: center; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--brand-bright) 10%, transparent); }
.orbit::before { width: 260px; height: 260px; } .orbit::after { width: 170px; height: 170px; background: color-mix(in srgb, var(--brand-bright) 14%, transparent); }
.orbit .core { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.orbit .core svg { width: 40px; height: 40px; }
.orbit .sat { position: absolute; z-index: 1; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 5px 12px; font-size: .75rem; font-weight: 500; font-family: var(--mono); }
.orbit .s1 { top: 12px; left: 18%; } .orbit .s2 { top: 30%; right: 6%; } .orbit .s3 { bottom: 18%; left: 8%; } .orbit .s4 { bottom: 6%; right: 22%; } .orbit .s5 { top: 46%; left: 2%; }
.network-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
@media (min-width: 560px) { .network-grid { grid-template-columns: repeat(3, 1fr); } }
.network { border: 1px solid var(--border); border-radius: 10px; height: 64px; display: grid; place-items: center; font-weight: 600; font-size: .85rem; background: var(--surface); }
.network small { display: block; font-weight: 400; font-size: .68rem; color: var(--text-3); text-align: center; }

/* ---------- Home: trusted + FAQ ---------- */
.vp-trust { background: var(--soft-grad); padding: 112px 0; }
.trust-head { display: grid; gap: 20px; align-items: end; margin-bottom: 40px; }
@media (min-width: 900px) { .trust-head { grid-template-columns: 1fr auto; } }
.trust-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; max-width: 620px; margin-bottom: 14px; }
.trust-head p { color: var(--text-2); max-width: 560px; margin: 0; }
.trust-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: .9fr 1.1fr; } }
.trust-art { border-radius: var(--radius-lg); min-height: 420px; background: #9fd27f; position: relative; overflow: hidden; display: grid; place-items: center; }
.trust-art::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 18px, transparent 18px 36px); }
.spin-badge { position: relative; width: 190px; height: 190px; }
.spin-badge svg.ring { width: 190px; height: 190px; animation: vp-spin 18s linear infinite; }
.spin-badge .mark { position: absolute; inset: 0; display: grid; place-items: center; }
.spin-badge .mark svg { width: 64px; height: 64px; }
@media (prefers-reduced-motion: reduce) { .spin-badge svg.ring { animation: none; } }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 500; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-2); font-size: .9rem; }

/* ---------- Marquee band ---------- */
.marquee { background: var(--brand-bright); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee .track { display: flex; gap: 40px; width: max-content; animation: vp-marquee 30s linear infinite; font-weight: 600; letter-spacing: .08em; font-size: .95rem; text-transform: uppercase; }
@keyframes vp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- Home: resources rail ---------- */
.res-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.res-head h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.03em; margin: 0; }
.res-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .res-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.res-card { border-radius: 16px; min-height: 300px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-decoration: none !important; position: relative; overflow: hidden; }
.res-card .kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.res-card strong { font-size: 1.25rem; line-height: 1.3; font-weight: 600; margin-top: 6px; }
.res-card .icon-xl { position: absolute; top: 22px; right: 22px; width: 52px; height: 52px; opacity: .9; }
.res-a { background: linear-gradient(150deg, #10301f, #2f6b2a 60%, #63a443); }
.res-b { background: linear-gradient(150deg, #0a0f1c, #1d2a4a); }
.res-c { background: linear-gradient(150deg, #3a2a0c, #b8741d); }

/* ---------- Footer: dark band with white card ---------- */
.site-footer { background: var(--ink); color: #fff; border-top: 0; padding: 96px 0 24px; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: 160px; width: 1000px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(99,164,67,.28), transparent); pointer-events: none; }
.footer-cta { position: relative; display: grid; gap: 18px; margin-bottom: 64px; }
.footer-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; max-width: 600px; margin: 0; }
.footer-cta p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0; }
.footer-card { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 36px; }
.footer-card .logo { color: var(--ink); }
.footer-card .muted { color: #576579; }
.site-footer .footer-grid h4 { color: #0a1823; text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; }
.site-footer .footer-grid a { color: #576579; font-size: .88rem; }
.site-footer .footer-grid a:hover { color: #0a1823; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: rgba(255,255,255,.6); font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-note { position: relative; color: rgba(255,255,255,.5); font-size: .78rem; margin-top: 14px; max-width: 900px; }

/* ---------- Auth: single centred column on a soft green wash (like the reference sign-in) ---------- */
.auth-shell { grid-template-columns: 1fr !important; background: linear-gradient(to right bottom, color-mix(in srgb, var(--brand-bright) 10%, var(--bg)) 0%, var(--bg) 25%, var(--bg) 100%); }
.auth-aside { display: none !important; }
.auth-main { padding: 40px 16px; }
.auth-card { max-width: 400px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 700; text-align: center; }
.auth-card .lead { text-align: center; font-size: .9rem; }
.auth-card .btn-primary { background: var(--brand); }
.auth-top { justify-content: center; position: relative; margin-bottom: 20px; }
.auth-top .theme-toggle { position: absolute; right: 0; }
.auth-aside-logo-mobile { visibility: visible !important; }
.auth-aside-logo-mobile .logo span { display: none; }
.auth-aside-logo-mobile .logo svg { width: 52px; height: 52px; }

/* ---------- App shell (dashboard + admin) ---------- */
.sidebar { background: var(--bg); border-right-color: var(--border); }
.nav-link { font-weight: 500; font-size: .875rem; color: var(--text-2); border-radius: 6px; }
.nav-link.is-active { background: var(--brand-soft); color: var(--brand); }
.nav-group-label { font-weight: 500; letter-spacing: .1em; }
.topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.page-head h1 { font-size: 1.5rem; font-weight: 600; }
.stat { border-radius: 16px; }
.stat .label { font-weight: 500; }
.stat .value { font-weight: 600; }
.stat:nth-child(4n+1) { background: var(--lime-soft); border-color: transparent; }
.stat:nth-child(4n+2) { background: var(--accent-soft); border-color: transparent; }
.stat:nth-child(4n+3) { background: var(--orange-soft); border-color: transparent; }
.avatar { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.tabs a.is-active { color: var(--brand); border-bottom-color: var(--brand-bright); }
.bars .bar span.fill { background: var(--brand-bright); }
.timeline li::before { border-color: var(--brand-bright); }
.spinner { border-top-color: var(--brand-bright); }
.method-option:has(input:checked) { border-color: var(--brand-bright); }
.checkout-body { background: var(--hero-grad); }
.checkout-card { border-radius: var(--radius-lg); box-shadow: var(--shadow); border-color: transparent; }
.center-page .code { color: var(--brand-bright); font-weight: 600; }
.icon-xl { width: 48px; height: 48px; flex: none; }
.footer-btn { background: #fff; color: var(--ink); }
.footer-btn:hover { background: #eef6e8; }
.footer-btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.footer-btn-ghost:hover { border-color: #fff; }
.footer-card .theme-toggle { margin-top: 14px; }
.link-rail { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.site-main > section:first-child:not(.vp-hero):not(.page-hero) { padding-top: 104px; }

/* =====================================================================
   Dashboard (merchant + admin): measured from the reference dashboard —
   256px sidebar, 12px menu text on 32px rows, 6px radii, hairline borders.
   ===================================================================== */
.dash-body { background: linear-gradient(to right bottom, color-mix(in srgb, var(--brand-bright) 10%, var(--bg)) 0%, var(--bg) 25%, var(--bg) 100%) fixed; font-size: 14px; }
.dash-body .app { --line: #e4e4e4; --muted: #525252; }
:root[data-theme="dark"] .dash-body .app { --line: #2a2f37; --muted: #a3abb7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dash-body .app { --line: #2a2f37; --muted: #a3abb7; } }

/* Sidebar */
.dash-body .sidebar { width: 256px; background: transparent; border-right: 1px solid var(--line); }
@media (max-width: 1023px) { .dash-body .sidebar { background: var(--bg); } }
@media (min-width: 1024px) { .dash-body .app.sb-collapsed .sidebar { display: none; } }
.dash-body .sidebar-head { height: 64px; padding: 0 16px; }
.dash-body .sidebar-head .logo { font-size: 1.15rem; }
.dash-body .sidebar-head .logo svg { width: 30px; height: 30px; }
.dash-body .sidebar-scroll { padding: 4px 8px 12px; }
.sb-switch { padding: 0 8px 8px; }
.sb-switch .select { min-height: 32px; font-size: 12px; }
.sb-group { border-bottom: 1px solid var(--line); padding: 2px 0 6px; }
.sb-group:last-child { border-bottom: 0; }
.sb-group-head { list-style: none; display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 8px; border-radius: 6px; font-size: 14px; color: var(--text); cursor: pointer; user-select: none; }
.sb-group-head::-webkit-details-marker { display: none; }
.sb-group-head:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.sb-chevron { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.sb-group[open] > .sb-group-head .sb-chevron { transform: rotate(90deg); }
.sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.sb-link { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 8px; border-radius: 6px; font-size: 12px; line-height: 16px; color: var(--text); text-decoration: none !important; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; }
.sb-link .icon { width: 16px; height: 16px; color: var(--text); opacity: .85; }
.sb-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-link:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.sb-link.is-active { background: color-mix(in srgb, var(--brand-bright) 12%, transparent); font-weight: 500; }
.sb-link.is-active .icon { color: var(--brand); opacity: 1; }
.dash-body .sidebar-foot { border-top: 0; padding: 8px; display: flex; flex-direction: column; gap: 1px; }

/* Maintenance / notice banner: white strip, red title, dismissible */
.dash-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 19.5px; }
.dash-banner strong { display: block; font-weight: 400; color: #c93b3f; font-size: 12px; }
.dash-banner p { margin: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.dash-banner-icon { color: #c93b3f; flex: none; }
.dash-banner-close { margin-left: auto; background: none; border: 0; color: #c93b3f; cursor: pointer; padding: 4px; }
.dash-banner.banner-info strong, .dash-banner.banner-info .dash-banner-icon, .dash-banner.banner-info .dash-banner-close { color: var(--info); }
.dash-banner.is-hidden { display: none; }

/* Top bar: breadcrumb + square icon buttons */
.dash-body .topbar { height: 64px; padding: 0 16px; gap: 8px; justify-content: flex-start; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); backdrop-filter: none; }
.icon-btn { width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; position: relative; text-decoration: none !important; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 16px; height: 16px; }
.dash-body .topbar .theme-toggle { width: 38px; height: 38px; border-radius: 6px; border-color: var(--line); background: var(--surface); }
.bell-count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 999px; background: #d93a3e; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }
.crumbs { flex: 1; min-width: 0; }
.crumbs ol { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs li[aria-current] { color: var(--text); }
@media (max-width: 640px) { .crumbs .crumb-root { display: none; } .crumbs li + li::before { display: none; } }
.mode-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: var(--surface); height: 38px; align-items: center; }
.mode-seg button { border: 0; background: none; font: inherit; font-size: 12px; padding: 0 10px; height: 30px; border-radius: 4px; color: var(--muted); cursor: pointer; }
.mode-seg button.is-on { background: var(--ink); color: #fff; }
.mode-seg button:disabled { cursor: not-allowed; opacity: .5; }
:root[data-theme="dark"] .mode-seg button.is-on { background: #fcfcfc; color: var(--ink); }

/* Content area */
.dash-body .content { padding: 24px; max-width: 1280px; }
.dash-body .page-head { align-items: center; margin-bottom: 20px; }
.dash-body .page-head h1 { font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 20px; }
.dash-body .page-head p { font-size: 12px; color: var(--muted); max-width: 720px; }
.section-label { font-size: 14px; font-weight: 500; letter-spacing: 0; margin: 0 0 12px; }

/* Cards and stat tiles: hairline, 6px */
.dash-body .card, .dash-body .stat { border: 1px solid var(--line); border-radius: 6px; box-shadow: none; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.dash-body .card { padding: 20px 24px; }
.dash-body .stat { padding: 20px 24px; background: color-mix(in srgb, var(--surface) 60%, transparent) !important; }
.dash-body .stat .label { font-size: 12px; color: var(--muted); font-weight: 400; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-body .stat .label .icon { width: 16px; height: 16px; color: var(--muted); }
.dash-body .stat .value { font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin-top: 8px; line-height: 32px; }
.dash-body .stat .foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.trend-up { color: var(--success); } .trend-down { color: var(--danger); }
.dash-body .card-head h2, .dash-body .card-head h3 { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.kpi-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } .kpi-grid.five { grid-template-columns: repeat(5, 1fr); } }
.shortcut-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 640px) { .shortcut-grid { grid-template-columns: repeat(3, minmax(0, 260px)); } }
.shortcut { position: relative; display: block; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; color: var(--text); text-decoration: none !important; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.shortcut:hover { border-color: var(--border-strong); }
.shortcut .chip { display: inline-block; font-size: 10px; text-transform: uppercase; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--muted); margin-bottom: 8px; }
.shortcut strong { display: block; font-size: 13px; font-weight: 600; }
.shortcut small { display: block; font-size: 12px; color: var(--muted); }
.shortcut .icon { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; color: var(--muted); }
.amounts-hidden .amt { filter: blur(7px); user-select: none; }

/* Toolbar above tables */
.dtools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.dtools .grow { flex: 1; min-width: 200px; position: relative; }
.dtools .grow .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); }
.dtools .grow .input { padding-left: 30px; }
.dtools .input, .dtools .select { min-height: 32px; height: 32px; font-size: 12px; padding-top: 4px; padding-bottom: 4px; width: auto; }
.dtools .grow .input { width: 100%; }
.dtools .btn { min-height: 32px; height: 32px; font-size: 12px; padding: 0 12px; }
.dtools .spacer { flex: 1; }
.date-range { position: relative; }
.date-range > summary { list-style: none; cursor: pointer; }
.date-range > summary::-webkit-details-marker { display: none; }
.date-range[open] .date-pop { position: absolute; z-index: 20; top: 38px; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; gap: 8px; align-items: end; box-shadow: var(--shadow); }
.date-pop label { font-size: 11px; color: var(--muted); display: block; }
.btn-new { background: var(--brand); color: #fff; }
.btn-new:hover { background: var(--brand-strong); }

/* Tables: hairline grid, 12px text, uppercase bold headers */
.dash-body .table-wrap { border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.dash-body .table { font-size: 12px; }
.dash-body .table th { background: transparent; color: var(--text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; height: 44px; padding: 0 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-right: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.dash-body .table td { padding: 8px 12px; height: 44px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-right: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.dash-body .table th:last-child, .dash-body .table td:last-child { border-right: 0; }
.dash-body .table tbody tr:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.dash-body .table td a { color: var(--text); }
.dash-body .table td a:hover { color: var(--brand); }
.td-check { width: 40px; text-align: center; }
.td-check input { accent-color: var(--brand-bright); }
.ref { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; }
.copy-mini { background: none; border: 0; padding: 2px; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; }
.copy-mini .icon { width: 13px; height: 13px; }
.copy-mini.is-copied { color: var(--brand); }

/* Status and type tags: uppercase, tinted, 4px */
.dash-body .badge { border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: 16px; }
.dash-body .badge::before { display: none; }
.tag-type { border: 1px solid var(--line); background: color-mix(in srgb, #ebebeb 20%, transparent); color: var(--text); font-size: 10px; text-transform: uppercase; border-radius: 4px; padding: 2px 8px; display: inline-flex; }
.dash-body .status-succeeded, .dash-body .badge-success { background: color-mix(in srgb, #62a745 12%, transparent); color: var(--brand); }
.dash-body .status-failed, .dash-body .status-cancelled, .dash-body .badge-danger { background: color-mix(in srgb, #e24e4e 10%, transparent); color: var(--danger); }
.dash-body .status-pending, .dash-body .status-processing, .dash-body .status-created, .dash-body .badge-info { background: color-mix(in srgb, #e9a23b 14%, transparent); color: var(--warning); }
.dash-body .status-expired { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-2); }
.dash-body .status-unknown, .dash-body .badge-warning { background: color-mix(in srgb, #e9a23b 14%, transparent); color: var(--warning); }

/* Buttons inside the dashboard: compact like the reference */
.dash-body .content .btn { min-height: 32px; font-size: 12px; padding: 0 12px; }
.dash-body .content .btn-lg { min-height: 36px; font-size: 13px; }
.dash-body .content .btn-primary { background: var(--brand); }
.view-all { padding-right: 4px !important; gap: 10px; }
.view-all .chip { width: 24px; height: 24px; border-radius: 4px; background: var(--brand-bright); color: #fff; display: grid; place-items: center; }
.view-all .chip .icon { width: 14px; height: 14px; }

/* Forms in the dashboard: label above, muted help text below (like "New Link") */
.dash-body .field label, .dash-body .label { font-size: 12px; font-weight: 500; }
.dash-body .field .hint { font-size: 12px; color: var(--muted); }
.dash-body .input, .dash-body .select, .dash-body .textarea { min-height: 36px; font-size: 13px; border-color: var(--line); }
.dash-body .form .btn-primary.btn-block, .dash-body .form > .btn-primary { width: 100%; }

/* Key-value lists (profile / detail pages): bordered rows, value right-aligned */
.kv-list { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.kv-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 12px; border-bottom: 1px solid var(--line); }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list span { color: var(--muted); }
.kv-list strong { font-weight: 400; text-align: right; word-break: break-word; }
.dash-body .card .kv-list { border: 0; margin: -20px -24px; }
.dash-body .kv { font-size: 12px; }

/* Range pills (analytics) */
.range-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.range-pills a { font-size: 12px; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; background: var(--surface); }
.range-pills a.is-on { background: var(--brand-bright); border-color: var(--brand-bright); color: #fff; }

/* Notifications */
.notif-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.notif { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.notif:last-child { border-bottom: 0; }
.notif-body { flex: 1; display: flex; flex-direction: column; }
.notif-body .subtle { font-size: 12px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.notif-succeeded .notif-dot { background: var(--brand-bright); }
.notif-failed .notif-dot, .notif-cancelled .notif-dot { background: #d93a3e; }
.notif-expired .notif-dot { background: #e9a23b; }

/* Status footer and help button */
.dash-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 24px 24px; font-size: 12px; color: var(--muted); max-width: 1280px; width: 100%; margin: 0 auto; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.dash-foot .sys { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); }
.dash-foot .sys::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); }
.dash-foot .sys.warn { color: var(--warning); } .dash-foot .sys.warn::before { background: #e9a23b; }
.help-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px 8px 8px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none !important; box-shadow: 0 10px 30px rgba(63,122,40,.35); }
.help-fab-mark { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.help-fab-mark svg { width: 34px; height: 34px; }
.help-fab strong { display: block; font-size: 15px; line-height: 1.1; }
.help-fab small { display: block; font-size: 12px; opacity: .9; }
@media (max-width: 640px) { .help-fab { padding: 6px; } .help-fab > span:last-child { display: none; } }
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important; }
.shortcut-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); }
.dash-body .table td { white-space: nowrap; }
.shortcut-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 232px)) !important; }
.dtools .grow { min-width: 160px; }
.form-narrow { max-width: 560px; margin: 0 auto; }
.scopes-pop { position: relative; } .scopes-pop summary { list-style: none; cursor: pointer; } .scopes-pop summary::-webkit-details-marker { display: none; }
.scopes-pop[open] .scopes-list { position: absolute; z-index: 10; top: 26px; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.copy-mini.danger { color: var(--danger); }
.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-card strong { display: block; font-size: 13px; }
.profile-card .subtle { font-size: 12px; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.kpi-grid.five { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important; }
.otp-mini { width: 90px; min-height: 32px !important; font-family: var(--mono); }
.notif-dot.ok { background: var(--brand-bright); }
.pt-0 { padding-top: 0 !important; }
.payouts-band { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .payouts-band { grid-template-columns: 1.1fr .9fr; padding: 32px; } }

/* =====================================================================
   Developer docs: three-column layout like modern docs sites: header with
   search, section nav with version selector, article, "On this page".
   ===================================================================== */
.docs-body { background: var(--bg); font-size: 16px; --doc-muted: #737373; --doc-line: #e4e4e4; }
:root[data-theme="dark"] .docs-body { --doc-muted: #a1a1aa; --doc-line: #2a2f37; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .docs-body { --doc-muted: #a1a1aa; --doc-line: #2a2f37; } }
.docs-header { position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--doc-line); }
.docs-header-left { display: flex; align-items: center; gap: 8px; width: 252px; flex: none; }
.docs-header .logo { font-size: 1.05rem; }
.docs-header .logo svg { width: 28px; height: 28px; }
.docs-icon { display: none; width: 34px; height: 34px; border: 0; background: none; color: var(--text); border-radius: 8px; cursor: pointer; }
@media (max-width: 1023px) { .docs-icon { display: inline-grid; place-items: center; } .docs-header-left { width: auto; } }
.docs-search { position: relative; flex: 1; max-width: 420px; margin: 0 auto; display: none; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 12px; border: 1px solid var(--doc-line); border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); color: var(--doc-muted); }
@media (min-width: 760px) { .docs-search { display: flex; } }
.docs-search .icon { width: 15px; height: 15px; flex: none; }
.docs-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); outline: none; min-width: 0; }
.docs-search kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--doc-line); border-radius: 4px; padding: 1px 5px; background: var(--surface); color: var(--doc-muted); }
.docs-search:focus-within { border-color: var(--brand-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-bright) 18%, transparent); }
.docs-results { top: 42px; border-radius: 12px; }
.docs-header-links { display: none; align-items: center; gap: 20px; margin-left: auto; font-size: 14px; }
@media (min-width: 980px) { .docs-header-links { display: flex; } }
.docs-header-links a { color: var(--text-2); text-decoration: none; }
.docs-header-links a:hover { color: var(--text); }
.docs-header-links .theme-toggle { border-radius: 999px; width: 32px; height: 32px; }

.docs-shell { max-width: 1440px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .docs-shell { grid-template-columns: 268px 1fr; } }
.docs-nav { padding: 16px; border-right: 0; font-size: 14px; }
@media (min-width: 1024px) { .docs-nav { top: 56px; height: calc(100vh - 56px); } }
.docs-nav.is-open { display: block; background: var(--bg); }
.docs-version { display: flex; justify-content: space-between; align-items: center; height: 37px; padding: 0 10px; margin-bottom: 18px; border: 1px solid var(--doc-line); border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 50%, transparent); font-size: 14px; color: var(--text); }
.docs-version span:last-child { font-size: 10px; color: var(--doc-muted); letter-spacing: -2px; }
.docs-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 8px; color: var(--doc-muted); font-size: 14px; line-height: 20px; text-decoration: none !important; cursor: pointer; }
.docs-link:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.docs-link.is-active { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
.docs-group > summary { list-style: none; }
.docs-group > summary::-webkit-details-marker { display: none; }
.docs-chev { width: 14px; height: 14px; transition: transform .15s; }
.docs-group[open] > summary .docs-chev { transform: rotate(90deg); }
.docs-sub { margin: 2px 0 6px 12px; padding-left: 8px; border-left: 1px solid var(--doc-line); }
.docs-sub .docs-link.is-active { position: relative; }
.docs-sub .docs-link.is-active::before { content: ""; position: absolute; left: -9px; top: 8px; bottom: 8px; width: 2px; background: var(--text); border-radius: 2px; }

.docs-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 32px 16px 80px; }
@media (min-width: 768px) { .docs-main { padding: 40px 32px 96px; } }
@media (min-width: 1280px) { .docs-main { grid-template-columns: minmax(0, 760px) 220px; justify-content: center; } }
.docs-article { max-width: 760px; }
.docs-crumb { font-size: 14px; color: var(--text); margin: 0 0 12px; }
.docs-article h1 { font-size: 28px; line-height: 42px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; }
.docs-article .lead { font-size: 18px; line-height: 28px; color: var(--doc-muted); margin-bottom: 16px; }
.docs-article h2 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; margin: 48px 0 16px; padding-top: 0; border-top: 0; scroll-margin-top: 72px; }
.docs-article h3 { font-size: 18px; font-weight: 600; margin: 32px 0 12px; scroll-margin-top: 72px; }
.docs-article p, .docs-article li { color: var(--text-2); font-size: 16px; line-height: 28px; }
.docs-article .anchor { float: left; margin-left: -20px; width: 20px; color: var(--doc-muted); opacity: 0; text-decoration: none; font-weight: 400; }
.docs-article h2:hover .anchor, .docs-article h3:hover .anchor { opacity: 1; }
.docs-article p code, .docs-article li code, .docs-article td code, .docs-article dd code, .docs-article dt code { background: var(--surface-2); border: 1px solid color-mix(in srgb, #9b9b9b 20%, transparent); border-radius: 5px; padding: 2px 4px; font-size: 13px; color: var(--text); }
.doc-actions { display: flex; gap: 8px; margin: 4px 0 20px; position: relative; }
.doc-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid var(--doc-line); border-radius: 6px; background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); font: inherit; font-size: 12px; color: var(--text); cursor: pointer; list-style: none; }
.doc-btn .icon { width: 13px; height: 13px; }
.doc-open > summary::-webkit-details-marker { display: none; }
.doc-open-menu { position: absolute; z-index: 20; top: 34px; background: var(--surface); border: 1px solid var(--doc-line); border-radius: 8px; padding: 4px; min-width: 200px; box-shadow: var(--shadow); }
.doc-open-menu a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--text); text-decoration: none; }
.doc-open-menu a:hover { background: var(--surface-2); }
.doc-rule { border: 0; border-top: 1px solid var(--doc-line); margin: 0 0 24px; }
.docs-article .table-wrap { border-radius: 12px; border-color: var(--doc-line); box-shadow: none; margin: 16px 0; }
.docs-article .table { font-size: 14px; }
.docs-article .table th { background: var(--surface-2); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; padding: 10px 12px; border-right: 1px solid var(--doc-line); }
.docs-article .table td { padding: 10px 12px; border-right: 1px solid var(--doc-line); }
.docs-article .table th:last-child, .docs-article .table td:last-child { border-right: 0; }
.docs-article .callout { border: 1px solid var(--doc-line); border-radius: 12px; background: var(--surface); padding: 14px 16px; }
.docs-article .callout.warn { background: var(--warning-soft); }
.docs-body .code-tabs { background: var(--surface); border: 1px solid var(--doc-line); border-radius: 12px; box-shadow: none; }
.docs-body .code-tabs-head { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); border-bottom: 1px solid var(--doc-line); }
.docs-body .code-title { color: var(--doc-muted); font-family: var(--font); font-size: 13px; }
.docs-body .code-tab { color: var(--doc-muted); font-size: 13px; }
.docs-body .code-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--doc-line); }
.docs-body .copy-btn { background: var(--surface); color: var(--text-2); border: 1px solid var(--doc-line); border-radius: 6px; }
.docs-body .code-pane, .docs-body .code-block { background: var(--surface); color: color-mix(in srgb, var(--text) 90%, transparent); font-size: 13px; line-height: 1.6; }
.docs-body .code-block { border: 1px solid var(--doc-line); border-radius: 12px; }
.docs-body .endpoint { border-radius: 8px; border-color: var(--doc-line); background: var(--surface); }
.docs-split { grid-template-columns: 1fr !important; }
.docs-split .code-tabs { position: static !important; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.docs-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--doc-line); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--surface); }
.docs-pager a:hover { border-color: var(--border-strong); }
.docs-pager a span { font-size: 13px; color: var(--doc-muted); }
.docs-pager a strong { font-weight: 500; }
.docs-pager a.next { text-align: right; }
.docs-cards a { border-radius: 12px !important; }
.docs-toc { display: none; position: sticky; top: 88px; align-self: start; font-size: 13px; max-height: calc(100vh - 120px); overflow-y: auto; }
@media (min-width: 1280px) { .docs-toc { display: block; } }
.docs-toc-title { display: flex; align-items: center; gap: 6px; color: var(--doc-muted); margin: 0 0 10px; font-size: 13px; }
.docs-toc-title .icon { width: 14px; height: 14px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--doc-line); }
.docs-toc li a { display: block; padding: 4px 0; color: var(--doc-muted); text-decoration: none; line-height: 1.4; }
.docs-toc li a:hover, .docs-toc li a.is-current { color: var(--text); }
.docs-toc li.lvl-3 a { padding-left: 12px; }
