:root {
  --bg: #120f26; --bg-2: #17142f; --surface: #171a2b; --surface-2: #1f2337; --line: #2a2f4d; --text: #eeeff6; --text-2: #a9adc6; --text-3: #767b99;
  --accent: #9184d9; --accent-2: #b5abfc; --mint: #6fd3c7; --ink: #120f26; --good: #4fd1a5; --warn: #f5c56b; --radius: 18px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #f6f6fb; --bg-2: #ecebf8; --surface: #fff; --surface-2: #f2f1fb; --line: #e2e1ef; --text: #14152a; --text-2: #4b4e6a; --text-3: #7b7e98; --accent: #6a5acd; --accent-2: #5444b8; color-scheme: light; } }
:root[data-theme="light"] { --bg: #f6f6fb; --bg-2: #ecebf8; --surface: #fff; --surface-2: #f2f1fb; --line: #e2e1ef; --text: #14152a; --text-2: #4b4e6a; --text-3: #7b7e98; --accent: #6a5acd; --accent-2: #5444b8; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
header.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 22px; letter-spacing: -.035em; line-height: 1; color: var(--text); text-decoration: none; }
.brand .mark { width: 31px; height: 32px; flex: none; }
.tagline { color: var(--text); font-weight: 600; }
nav.links { display: flex; gap: 20px; flex: 1; }
nav.links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
nav.links a:hover, nav.links a[aria-current] { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.menu { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 40px; height: 40px; }
@media (max-width: 820px) {
  nav.links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  nav.links.open { display: flex; } nav.links a { padding: 10px 0; }
  .menu { display: grid; place-items: center; margin-left: auto; } header.nav .cta-signin { display: none; }
}
.hero { padding-top: 72px; padding-bottom: 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--text-2); max-width: 560px; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; text-decoration: none; background: var(--surface); }
.store b { color: var(--text); display: block; font-size: 14px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 260px; border-radius: 34px; overflow: hidden; border: 8px solid #20223a; box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #0f1020; }
.phone img { width: 100%; height: auto; }
.phone.a { right: 150px; top: 0; z-index: 2; } .phone.b { right: 0; top: 60px; transform: rotate(4deg); opacity: .96; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 44px; } .phones { height: 440px; } .phone { width: 210px; } .phone.a { left: 0; right: auto; } .phone.b { left: 150px; right: auto; } }
section { padding: 64px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--text-2); margin: 0; font-size: 15px; }
.ic { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-2); margin-bottom: 14px; }
.ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--text-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--good) 22%, transparent); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--good) 70%, transparent); }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.rate { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.rate b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rate span { color: var(--text-3); font-size: 13px; }
.shot { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); max-width: 320px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
pre.code { background: #0d0e1c; color: #d7d9ee; border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.notice { border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-radius: 14px; padding: 14px 16px; color: var(--text-2); font-size: 14px; }
.prose { max-width: 760px; } .prose h2 { font-size: 24px; margin-top: 36px; } .prose p, .prose li { color: var(--text-2); }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--text-3); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer a { color: var(--text-2); text-decoration: none; display: block; padding: 3px 0; }
footer h4 { color: var(--text); margin: 0 0 8px; font-size: 14px; }
@media (max-width: 700px) { footer .cols { grid-template-columns: 1fr 1fr; } }
.licence { margin-top: 24px; font-size: 13px; }
.form { display: grid; gap: 14px; padding: 26px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.form input:not([type=checkbox]), .form select { font: inherit; font-weight: 400; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text-2); }
.form .check input { margin-top: 3px; }
.form .opt, .form .faint { color: var(--text-3); font-weight: 400; margin: 0; font-size: 14px; }
.hp { display: none; }
@media (max-width: 900px) { .waitlist { grid-template-columns: 1fr !important; } }

/* ---------- Code samples ---------- */
:root { --code-bg: #0d0e1c; --code-bar: #14162a; }
code { font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; font-size: .9em; }
p code, li code, td code, h3 code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); white-space: nowrap; }
.codebox { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--code-bg); margin: 18px 0 26px; box-shadow: 0 16px 40px rgba(0,0,0,.25); min-width: 0; }
.codebox pre.code { margin: 0; border: 0; border-radius: 0; background: transparent; font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; padding: 18px 20px; white-space: pre; tab-size: 2; }
.codebox pre.code.out { border-top: 1px dashed #2a2f4d; color: #a9adc6; background: rgba(255,255,255,.015); }
.codebox pre.code.out::before { content: 'Response'; display: block; font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #767b99; margin-bottom: 10px; }
.codebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--code-bar); border-bottom: 1px solid #23263f; padding: 6px 8px 6px 6px; }
.tabs { display: flex; gap: 2px; }
.tabs.single button { pointer-events: none; }
.tabs button { font: 500 13px Inter, system-ui, sans-serif; color: #8d91b0; background: none; border: 0; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.tabs button:hover { color: #eeeff6; }
.tabs button[aria-selected="true"] { color: #fff; background: #23263f; }
.copy { font: 600 12.5px Inter, system-ui, sans-serif; color: #d7d9ee; background: #1f2238; border: 1px solid #2f3352; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.copy:hover { background: #282c48; } .copy.ok { color: #4fd1a5; border-color: #2f5a4c; }
.tk-c { color: #6c7194; font-style: italic; } .tk-s { color: #9fe0c4; } .tk-k { color: #b5abfc; } .tk-n { color: #f5c56b; } .tk-w { color: #ff9fc4; } .tk-f { color: #8fc7ff; }
section .codebox pre.code { color: #d7d9ee; }

/* ---------- Developers ---------- */
.dev-hero { grid-template-columns: 1.05fr .95fr; align-items: start; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; }
.facts b { display: block; font-size: 15px; } .facts span { color: var(--text-3); font-size: 13px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.card.keys { padding: 0; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.card.keys h3 { font-size: 20px; margin: 0; }
.form-msg { margin: 0; color: #ff9b9b; font-size: 14px; }
.form button[disabled] { opacity: .7; cursor: progress; }
.issued { padding: 26px; display: grid; gap: 10px; }
.issued label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 6px; }
.secret { display: flex; gap: 8px; align-items: center; background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; }
.secret code { flex: 1; color: #9fe0c4; overflow-x: auto; white-space: nowrap; font-size: 13px; }
.note-row { margin-top: 22px; max-width: 900px; font-size: 14.5px; }
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 8px; }
.toc a { color: var(--text-2); text-decoration: none; padding: 5px 0 5px 12px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .toc { display: none; } .dev-hero { grid-template-columns: 1fr; } }
.doc { max-width: 820px; min-width: 0; }
.doc h2 { margin-top: 56px; scroll-margin-top: 90px; } .doc h2:first-child { margin-top: 0; }
.doc > p, .doc li { color: var(--text-2); }
.step { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 18px; }
.step i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 8px; }
.tiers div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tiers b { display: block; color: var(--accent-2); } .tiers span { color: var(--text-2); font-size: 14px; } .tiers em { font-style: normal; color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
thead th, .endpoints th { background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; }
.endpoints td:first-child { white-space: nowrap; width: 1%; }
.endpoints td:first-child code { background: none; border: 0; padding: 0; }
.m { display: inline-block; min-width: 46px; font: 700 11px/1 ui-monospace, Menlo, monospace; padding: 4px 6px; border-radius: 6px; margin-right: 8px; text-align: center; }
.m.get { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.m.post { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }
.golive { padding-left: 20px; display: grid; gap: 12px; } .golive b { color: var(--text); }
.golive .codebox { margin: 12px 0 4px; }

/* ---------- Payment status ---------- */
.paid { padding: 72px 20px; display: grid; place-items: center; min-height: 60vh; }
.card.status { max-width: 560px; text-align: center; padding: 40px 32px; }
.card.status h1 { font-size: clamp(28px, 4vw, 38px); } .card.status .lead { margin: 0 auto 24px; font-size: 17px; }
.card.status .ctas { justify-content: center; }
.badge { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; background: color-mix(in srgb, var(--warn) 20%, transparent); position: relative; }
.badge::after { content: ''; position: absolute; inset: 20px; border-radius: 50%; border: 3px solid var(--warn); border-top-color: transparent; animation: spin 1s linear infinite; }
[data-status="succeeded"] .badge { background: color-mix(in srgb, var(--good) 20%, transparent); }
[data-status="succeeded"] .badge::after { inset: 18px 22px 24px; border: solid var(--good); border-width: 0 0 4px 4px; border-radius: 0; transform: rotate(-45deg); animation: none; }
[data-status="failed"] .badge, [data-status="canceled"] .badge, [data-status="unknown"] .badge { background: color-mix(in srgb, #ff7b7b 18%, transparent); }
[data-status="failed"] .badge::after, [data-status="canceled"] .badge::after, [data-status="unknown"] .badge::after { content: '!'; inset: 0; border: 0; animation: none; display: grid; place-items: center; font: 700 30px Inter, sans-serif; color: #ff9b9b; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge::after { animation: none; } }

/* ---------- Sandbox checkout ---------- */
.card.checkout { width: 100%; max-width: 440px; padding: 32px 28px; display: grid; gap: 12px; }
.card.checkout h1 { font-size: 40px; margin: 0; font-variant-numeric: tabular-nums; }
.card.checkout .lead { font-size: 16px; margin: 0 0 6px; }
.card.checkout .faint { margin: 0; color: var(--text-3); }
.pill { justify-self: start; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.methods { border: 0; padding: 0; margin: 4px 0 6px; display: grid; gap: 8px; }
.methods legend { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.methods label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface-2); }
.methods label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.methods input { accent-color: var(--accent); }
.methods b { display: block; font-size: 15px; } .methods span { color: var(--text-3); font-size: 13px; }
.btn.wide { width: 100%; }
.secure { text-align: center; font-size: 12.5px; }

/* ---------- Business: payment flow (no code on marketing pages) ---------- */
.flow { display: grid; gap: 12px; min-width: 0; }
.flow-step { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.flow-step i { font-style: normal; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent-2); }
.flow-step h3 { font-size: 16px; margin: 3px 0 4px; } .flow-step p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.paycard { margin: 6px auto 0; width: min(100%, 340px); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.paycard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.brand.small { font-size: 17px; } .brand.small .mark { width: 23px; height: 24px; }
.pill.ok { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.paycard-m { margin: 0; color: var(--text-3); font-size: 13px; } .paycard-amt { margin: 2px 0 14px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.paycard-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.paycard-opts span { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.paycard-opts span:first-child { border-color: var(--accent); color: var(--text); }
.paycard-btn { text-align: center; background: var(--accent); color: #fff; font-weight: 600; border-radius: 12px; padding: 11px; }
.rate-note { color: var(--text-3); font-size: 13px; margin: 12px 0 0; } .rate-note a { color: var(--text-2); }

/* ---------- Money tools ---------- */
.tools-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tools-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.tools-nav a:hover { color: var(--text); border-color: var(--accent); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; scroll-margin-top: 90px; }
.tool .form { padding: 26px; }
.tool .result { background: var(--surface-2); border-left: 1px solid var(--line); padding: 26px; display: grid; align-content: start; gap: 10px; }
.tool .result .big { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0; overflow-wrap: anywhere; }
.tool .result .lbl { color: var(--text-3); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.tool + .tool { margin-top: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv { display: grid; gap: 0; margin: 0; } .kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.kv div:last-child { border-bottom: 0; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.sched { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sched table { font-size: 13.5px; } .sched th, .sched td { padding: 8px 12px; }
.disclaimer { color: var(--text-3); font-size: 13px; margin: 4px 0 0; }
@media (max-width: 800px) { .tool { grid-template-columns: 1fr; } .tool .result { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Business dashboard ---------- */
.dash { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 64px; }
.dash-side { position: sticky; top: 88px; align-self: start; display: grid; gap: 4px; }
.dash-side button { text-align: left; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text-2); background: none; border: 0; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.dash-side button:hover { color: var(--text); background: var(--surface); }
.dash-side button[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.dash-side .acct { padding: 0 12px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.dash-side .acct b { display: block; font-size: 15px; overflow-wrap: anywhere; } .dash-side .acct span { font-size: 12.5px; color: var(--text-3); }
.dash-main { min-width: 0; } .dash-main h2 { font-size: 26px; margin: 0 0 4px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head p { margin: 0; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .stat span { color: var(--text-3); font-size: 13px; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.st.succeeded, .st.verified, .st.delivered { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.st.failed, .st.mismatch, .st.not_found, .st.canceled { color: #ff9b9b; background: color-mix(in srgb, #ff7b7b 14%, transparent); }
.st.requires_payment_method, .st.pending, .st.processing { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.dash table td .btn.small { padding: 5px 10px; font-size: 13px; }
.empty { padding: 34px 16px; text-align: center; color: var(--text-3); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.panel .form { padding: 22px; }
.banner { border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--text); border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.ok-msg { color: var(--good); font-size: 14px; margin: 0; }
.linkout { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; }
.linkout a { flex: 1; overflow-wrap: anywhere; font-size: 14px; }
.signin { max-width: 480px; margin: 56px auto; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash-side { position: static; display: flex; flex-wrap: wrap; } .dash-side .acct { width: 100%; } .stats { grid-template-columns: 1fr 1fr; } }
[hidden] { display: none !important; }
@media (max-width: 1100px) and (min-width: 821px) { nav.links { gap: 14px; } nav.links a { font-size: 14px; } header.nav .btn.ghost.cta-signin { display: none; } }

/* ---------- personal wallet ---------- */
.auth { max-width: 460px; }
.auth .card.form { gap: 14px; }
.auth-tabs { margin-bottom: 4px; }
.auth-h { font-size: 26px; margin: 4px 0 2px; }
.form-msg.ok, .faint.ok { color: #22a06b; }
.banner.test-banner { border-color: rgba(245, 166, 35, .45); background: rgba(245, 166, 35, .1); }
.banner.warn { border-color: rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .08); }
.banner a { font-weight: 600; }
.balance-card { border-radius: 20px; padding: 26px 28px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #3b3bd6 0%, #6c3be0 55%, #a13bd6 100%); box-shadow: 0 18px 40px -22px rgba(80, 60, 220, .7); }
.balance-card > span { font-size: 14px; opacity: .85; }
.balance-card > b { display: block; font-size: clamp(34px, 5vw, 46px); letter-spacing: -.02em; margin: 6px 0 18px; }
.balance-card .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.balance-card .btn.primary { background: #fff; color: #2b2b9a; }
.wallet .panel { padding: 20px 22px; } .wallet .panel.form { display: grid; gap: 14px; } .wallet .panel h3 { margin: 0 0 6px; }
.panel + .panel, .panel.form + .panel { margin-top: 18px; }
.pos { color: #22a06b; } .neg { color: inherit; }
input.pin { letter-spacing: .5em; font-variant-numeric: tabular-nums; max-width: 180px; }
input.pin.mini { max-width: 92px; padding: 6px 10px; font-size: 14px; }
.req-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.req-row:last-child { border-bottom: 0; }
.table-wrap .req-row { border: 0; padding: 0; }
.acts { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row3 { display: grid; grid-template-columns: 1fr 80px 140px; gap: 10px; }
.badge-ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; background: #22a06b; margin: 8px 0 12px; }
@media (max-width: 760px) { .dash { grid-template-columns: 1fr; } .dash-side { position: static; grid-template-columns: repeat(2, 1fr); } .row3 { grid-template-columns: 1fr 70px 110px; } }

/* Identity checks */
.row-id { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.selfie { border: 1px dashed var(--line, rgba(255,255,255,.18)); border-radius: 14px; padding: 12px 14px; margin: 6px 0 12px; }
.selfie p { margin: 4px 0; }
.selfie video, .selfie img { display: block; width: 100%; max-width: 320px; border-radius: 12px; margin: 8px 0; transform: scaleX(-1); }
.selfie img { transform: none; }
