/* DigiSend — shared look for the client app and the admin app (from the approved design canvas). */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #070C1F; --bg-deep: #03060F; --side: #050918;
  --surface: #0E1530; --raised: #151E3D; --line: #1C2647; --line2: #26315A; --ring: #3A4670;
  --text: #F3F6FF; --text2: #D5DCEE; --text3: #B8C2DC; --muted: #9FAAC7; --faint: #8893B3;
  --blue: #0B5CFF; --blue-hover: #2A72FF; --focus: #3D7BFF; --link: #4AA8FF; --link-hover: #8CC6FF; --sel: #0D1C45; --sel-line: #1D3570; --live: #22D3FF;
  --green: #3DDC97; --green-bg: #0B2A24; --usdt: #34C89A; --usdt-bg: #0F2C23; --btc: #F7A23B; --btc-bg: #33210A;
  --amber: #F5B84B; --amber-bg: #2B220F; --amber-line: #3A2D12; --note-bg: #211A0D; --note-text: #E9DDC4;
  --red: #FF7A66; --red-bg: #2D1714; --red-line: #43201B; --tg: #7CC4FF; --tg-bg: #13212D;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
::placeholder { color: var(--faint); opacity: 1; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.dim { color: var(--muted); } .faint { color: var(--faint); } .t3 { color: var(--text3); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cents { color: var(--faint); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.break { word-break: break-all; }

/* ── Buttons ── */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; width: 100%; padding: 0 20px; border: 0; border-radius: 18px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn.big { height: 60px; border-radius: 20px; font-size: 17px; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line2); color: var(--text); font-weight: 500; }
.btn.ghost:hover { background: var(--raised); }
.btn.quiet { background: none; height: 44px; color: var(--muted); font-weight: 400; font-size: 15px; }
.btn.quiet:hover { color: var(--text); }
.btn.danger { background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red); }
.btn.sm { height: 40px; border-radius: 12px; font-size: 14px; width: auto; padding: 0 16px; }
.pill-btn { height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--text3); font-size: 13px; font-weight: 500; }
.pill-btn.link { color: var(--link); font-weight: 600; }
.pill-btn:hover { border-color: var(--ring); color: var(--text); }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn:hover { background: var(--raised); }
.icon-btn.boxed { border: 1px solid var(--line2); background: var(--surface); border-radius: 14px; }
.icon-btn svg { width: 22px; height: 22px; }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Chips ── */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--raised); color: var(--text3); }
.chip svg { width: 12px; height: 12px; }
.chip.blue { background: var(--sel); color: var(--link); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.lg { height: 30px; padding: 0 12px; font-size: 13px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }
.live { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--link); }
.live.off { color: var(--faint); } .live.off .dot { background: var(--faint); }

/* ── Cards and lists ── */
.card { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.card.pad { padding: 18px; }
.list { list-style: none; margin: 0; padding: 0 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.list > li { border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.dl { margin: 0; padding: 2px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); flex: none; }
.dl dd { margin: 0; font-weight: 500; text-align: right; min-width: 0; font-variant-numeric: tabular-nums; }
.dl.raised { background: var(--raised); border: 0; border-radius: 18px; }
.dl.raised > div { border-color: var(--line2); min-height: 44px; }
.section-title { margin: 22px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
h2.title { margin: 0; font-size: 15px; font-weight: 600; }
.note { display: flex; gap: 10px; padding: 14px; border-radius: 16px; background: var(--note-bg); border: 1px solid var(--amber-line); font-size: 13px; line-height: 1.5; color: var(--note-text); }
.note svg { flex: none; width: 18px; height: 18px; color: var(--amber); margin-top: 1px; }
.note strong { color: var(--amber); font-weight: 600; }
.note.blue { background: var(--sel); border-color: var(--sel-line); color: var(--text2); }
.note.blue svg { color: var(--link); }
.note.red { background: var(--red-bg); border-color: var(--red-line); color: #FFD9D2; }
.note.red svg { color: var(--red); }
.infobar { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--sel); color: var(--link); font-size: 14px; font-weight: 500; }
.infobar svg { width: 16px; height: 16px; flex: none; }
.coin { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; }
.coin.USDT { background: var(--usdt-bg); color: var(--usdt); } .coin.BTC { background: var(--btc-bg); color: var(--btc); }
.coin.s22 { width: 22px; height: 22px; font-size: 12px; } .coin.s30 { width: 30px; height: 30px; font-size: 15px; } .coin.s32 { width: 32px; height: 32px; font-size: 16px; } .coin.s36 { width: 36px; height: 36px; font-size: 18px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sel); color: var(--link); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--text3); }
.input { height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-size: 16px; width: 100%; }
.input:focus { outline: none; border-color: var(--focus); }
.input.bad { border-color: var(--red); }
.input-wrap { display: flex; align-items: center; height: 54px; padding: 0 4px 0 16px; border-radius: 16px; border: 1px solid var(--line2); background: var(--surface); }
.input-wrap:focus-within { border-color: var(--focus); }
.input-wrap input { flex: 1; min-width: 0; height: 52px; padding: 0; border: 0; background: none; font-size: 16px; }
.input-wrap input:focus { outline: none; }
.err { margin: 0; font-size: 13px; color: var(--red); }
.hint { font-size: 13px; color: var(--faint); }
.hint.ok { color: var(--link); display: flex; align-items: center; gap: 6px; }
.hint.ok svg { width: 14px; height: 14px; }
.formbox { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.formbox > .fb-row { display: flex; flex-direction: column; gap: 3px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.formbox > .fb-row:last-child { border-bottom: 0; }
.formbox .fb-row label, .formbox .fb-row .lab { font-size: 12px; color: var(--muted); }
.formbox .fb-row input, .formbox .fb-row select { height: 28px; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 500; width: 100%; }
.formbox .fb-row input:focus, .formbox .fb-row select:focus { outline: none; }
.formbox .fb-row.bad { box-shadow: inset 3px 0 0 var(--red); }
.formbox .fb-row select option { background: var(--surface); color: var(--text); }
.fb-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); color: var(--text); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.fb-link:hover { color: var(--text); background: rgba(255,255,255,.02); }
.big-amount { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.amount-input { display: flex; align-items: baseline; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.amount-input:focus-within { border-bottom-color: var(--focus); }
.amount-input .cur { font-size: 44px; font-weight: 600; color: var(--faint); letter-spacing: -0.03em; }
.amount-input input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font-size: 44px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.amount-input input:focus { outline: none; }
.amount-input.md .cur, .amount-input.md input { font-size: 36px; }
.amount-input .suffix { font-size: 18px; font-weight: 600; color: var(--faint); }
.switch { flex: none; position: relative; width: 52px; height: 32px; border: 0; border-radius: 999px; background: var(--ring); padding: 0; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ── Toasts and sheets ── */
/* Toasts sit at the top, clear of the buttons at the bottom of every screen and sheet. */
.toast { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); z-index: 100; width: max-content; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: #F3F6FF; color: #070C1F; font-size: 14px; font-weight: 500; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: drop .2s ease-out; }
.toast.bad { background: var(--red); color: #1A0703; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sheet-back { position: fixed; inset: 0; z-index: 70; background: rgba(3, 6, 15, .78); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 10px 20px calc(28px + var(--safe-b)); border-radius: 28px 28px 0 0; background: var(--surface); border-top: 1px solid var(--line2); animation: up .22s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 5px; margin: 0 auto 6px; border-radius: 999px; background: var(--ring); }
.sheet h2 { margin: 16px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.sheet .lead { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--text3); }
.sheet .badge-ico { margin-top: 22px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sheet .badge-ico svg { width: 24px; height: 24px; }
.badge-ico.amber { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber); }
.badge-ico.red { background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red); }
.badge-ico.blue { background: var(--sel); border: 1px solid var(--sel-line); color: var(--link); }
.badge-ico.green { background: var(--green-bg); border: 1px solid #12493A; color: var(--green); }
.fullsheet { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; animation: fade .15s; }
@media (min-width: 560px) { .fullsheet { left: 50%; width: 480px; transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* ══════════════ Client app ══════════════ */
.app { min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
@media (min-width: 560px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.topbar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(14px + var(--safe-t)) 10px 0 20px; }
.topbar .logo { height: 28px; width: auto; display: block; }
.backbar { flex: none; display: flex; align-items: center; gap: 4px; padding: calc(14px + var(--safe-t)) 16px 0 8px; min-height: 58px; }
.backbar h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; }
.page { flex: 1; display: flex; flex-direction: column; padding: 0 20px 28px; }
.page.top { padding-top: calc(24px + var(--safe-t)); }
.page h1.big { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; }
.page .sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.bottom-cta { margin-top: auto; padding-top: 20px; }
.has-nav .page { padding-bottom: calc(100px + var(--safe-b)); }
.nav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 30; width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px calc(10px + var(--safe-b)); border-top: 1px solid var(--raised); background: rgba(7, 12, 31, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; color: var(--faint); font-size: 11px; font-weight: 500; }
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] svg { color: var(--link); }
.test-banner { position: sticky; top: 0; z-index: 40; padding: 6px 12px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--amber); color: #241700; }

/* Auth */
.auth-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; }
.auth-hero img { height: 46px; width: auto; }
.slogan { font-size: 13px; font-weight: 500; letter-spacing: .22em; color: var(--muted); }
.auth-head { margin-top: 34px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-head h1 { margin: 14px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.auth-head p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.auth-form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-foot { margin-top: auto; padding: 20px 0 8px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--faint); }

/* Pending */
.steps { list-style: none; margin: 28px 0 0; padding: 4px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.step-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step-dot.done { background: var(--blue); color: #fff; } .step-dot.done svg { width: 14px; height: 14px; }
.step-dot.now { border: 2px solid var(--amber); } .step-dot.now::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.step-dot.todo { border: 2px solid var(--ring); }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.support-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 72px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 500; }
.support-grid a svg { width: 20px; height: 20px; }
.support-grid a.off { opacity: .45; pointer-events: none; }

/* Home */
.total { margin-top: 16px; }
.total .lab { font-size: 13px; color: var(--muted); }
.total .val { margin-top: 4px; }
.total .foot { margin-top: 6px; font-size: 13px; color: var(--faint); }
.rate-cards { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rate-card { padding: 14px 14px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.rate-card .r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.rate-card .r2 { margin-top: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate-card .r3 { margin-top: 2px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.actions { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.actions a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-size: 13px; font-weight: 500; }
.actions .circ { width: 56px; height: 56px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; }
.actions .circ svg { width: 22px; height: 22px; }
.actions a.primary .circ { background: var(--blue); border-color: var(--blue); color: #fff; }
.actions a.off { opacity: .45; pointer-events: none; }
.coin-row { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.coin-row .names, .act-row .names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.coin-row .n1, .act-row .n1 { font-size: 15px; font-weight: 500; }
.coin-row .n2, .act-row .n2 { font-size: 13px; color: var(--faint); }
.coin-row .vals, .act-row .vals { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.coin-row .v1, .act-row .v1 { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coin-row .v2, .act-row .v2 { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.act-list { list-style: none; margin: 4px 0 0; padding: 0; }
.act-list li { border-bottom: 1px solid var(--raised); }
.act-list li:last-child { border-bottom: 0; }
.act-row { display: flex; align-items: center; gap: 12px; min-height: 64px; color: var(--text); width: 100%; background: none; border: 0; padding: 0; text-align: left; }
.act-row:hover { color: var(--text); }
.act-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--text3); }
.act-ico svg { width: 18px; height: 18px; }
.act-ico.in { background: var(--green-bg); color: var(--green); }
.act-ico.wait { background: var(--amber-bg); color: var(--amber); }
.act-ico.bad { background: var(--red-bg); color: var(--red); }
.v1.in { color: var(--green); }
.day-head { margin: 22px 0 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.chips { margin-top: 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 38px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; }
.chips button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.empty { padding: 40px 12px; text-align: center; color: var(--faint); font-size: 14px; }

/* Segmented control (coin tabs) */
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.seg button[aria-selected="true"] { background: var(--line2); color: var(--text); font-weight: 600; }

/* Receive */
.qr-card { margin-top: 16px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr-box { padding: 14px; border-radius: 18px; background: #fff; line-height: 0; }
.qr-box svg { width: 200px; height: 200px; display: block; }
.addr { margin-top: 8px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.5; word-break: break-all; text-align: center; }
.two-btns { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.two-btns .btn { height: 48px; border-radius: 14px; font-size: 15px; }
.two-btns .btn svg { width: 18px; height: 18px; }

/* Sell / convert / send */
.coin-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.coin-pick button { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 18px; background: var(--surface); color: var(--text); text-align: left; }
.coin-pick button[aria-checked="true"] { border-color: var(--focus); background: var(--sel); }
.coin-pick .cn { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.coin-pick .cn b { font-size: 15px; font-weight: 600; }
.coin-pick .cn span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.coin-select { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); width: 100%; text-align: left; }
.coin-select svg.chev { width: 18px; height: 18px; color: var(--muted); }
.held { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--sel); color: var(--link); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.held svg { width: 11px; height: 11px; }
.held.soon { background: var(--amber-bg); color: var(--amber); }
.conv-card { padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.conv-card .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.conv-card .mid { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.conv-card .mid input, .conv-card .mid output { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.conv-card .mid input:focus { outline: none; }
.coin-btn { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--line2); border-radius: 999px; background: var(--raised); color: var(--text); font-size: 15px; font-weight: 600; }
.coin-btn svg { width: 16px; height: 16px; color: var(--muted); }
.swap-wrap { position: relative; height: 8px; display: flex; justify-content: center; }
.swap-btn { position: absolute; top: -20px; width: 48px; height: 48px; border: 4px solid var(--bg); border-radius: 50%; background: var(--line2); color: var(--text); display: flex; align-items: center; justify-content: center; }
.swap-btn svg { width: 18px; height: 18px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; font-size: 14px; }
.kv .k { color: var(--muted); } .kv .v { font-weight: 500; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.addr-box { display: flex; align-items: flex-start; gap: 8px; padding: 12px 8px 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line2); }
.addr-box:focus-within { border-color: var(--focus); }
.addr-box textarea { flex: 1; min-width: 0; padding: 0; border: 0; resize: none; background: none; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 15px; line-height: 1.5; word-break: break-all; }
.addr-box textarea:focus { outline: none; }
.addr-box .icon-btn { background: var(--raised); }
.addr-box .icon-btn svg { width: 19px; height: 19px; }

/* Pay to */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); }
.search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: none; font-size: 15px; }
.search input:focus { outline: none; }
.people { margin-top: 14px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.people::-webkit-scrollbar { display: none; }
.people button { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; }
.people button .av { width: 52px; height: 52px; border-radius: 50%; background: var(--raised); color: var(--text); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.people button[aria-pressed="true"] { color: var(--text); font-weight: 500; }
.people button[aria-pressed="true"] .av { background: var(--sel); border: 2px solid var(--focus); color: var(--link); }
.people button .av.new { background: none; border: 1px dashed var(--ring); color: var(--muted); }
.people button .av.new svg { width: 20px; height: 20px; }
.people .nm { max-width: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matches { list-style: none; margin: 10px 0 0; padding: 0 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.matches li { border-bottom: 1px solid var(--line); }
.matches li:last-child { border-bottom: 0; }
.matches button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; }

/* Bank picker */
.bank-group { padding: 22px 0 0; }
.bank-group .gh { display: flex; align-items: center; gap: 8px; }
.bank-group .gi { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bank-group .gi svg { width: 13px; height: 13px; }
.bank-group .gi.blue { background: var(--sel); color: var(--link); } .bank-group .gi.amber { background: var(--amber-bg); color: var(--amber); }
.bank-group h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 600; }
.bank-group .gs { margin: 4px 0 0 34px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.bank-list { list-style: none; margin: 10px 0 0; padding: 0 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.bank-list li { border-bottom: 1px solid var(--line); }
.bank-list li:last-child { border-bottom: 0; }
.bank-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 6px 0; border: 0; background: none; color: var(--text); font-size: 15px; text-align: left; }
.bank-list button.closed { color: var(--muted); }
.bank-list .bn { display: flex; flex-direction: column; gap: 1px; }
.bank-list .bs { font-size: 12px; color: var(--faint); }
.bank-list svg { width: 20px; height: 20px; color: var(--link); flex: none; }

/* PIN pad */
.pin-dots { margin-top: 30px; display: flex; gap: 18px; justify-content: center; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ring); }
.pin-dots span.on { background: var(--link); border-color: var(--link); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 28px calc(40px + var(--safe-b)); }
.keypad button { height: 64px; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); font-size: 26px; font-weight: 500; }
.keypad button:active { background: var(--raised); }
.keypad button.del { background: none; color: var(--text3); display: flex; align-items: center; justify-content: center; }
.keypad button.del svg { width: 26px; height: 26px; }

/* Payment confirmation (light, like a bank's) */
.confirm { min-height: 100vh; min-height: 100dvh; background: #F5F7FB; color: #0B1533; display: flex; flex-direction: column; color-scheme: light; }
.confirm .bar { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + var(--safe-t)) 12px 0; }
.confirm .icon-btn { color: #0B1533; } .confirm .icon-btn:hover { background: #E6EBF5; }
.confirm .body { flex: 1; display: flex; flex-direction: column; padding: 12px 28px 28px; }
.confirm h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.confirm .amt { margin-top: 16px; font-size: 44px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.confirm .amt .cents { color: #586179; }
.confirm section { margin-top: 20px; }
.confirm h2 { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #586179; }
.confirm dl { margin: 0; }
.confirm dl div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; border-bottom: 1px solid #E1E6F0; font-size: 15px; }
.confirm dl div:last-child { border-bottom: 0; }
.confirm dt { color: #586179; flex: none; } .confirm dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; word-break: break-word; }
.cchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cchip svg { width: 13px; height: 13px; }
.cchip.paid { background: #E2F5EC; color: #0A7A4B; } .cchip.wait { background: #FFF3DC; color: #8A5A00; } .cchip.bad { background: #FDE7E3; color: #B42318; } .cchip.blue { background: #E3ECFF; color: #1D4ED8; }
.confirm .foot-note { margin-top: 18px; font-size: 13px; color: #586179; line-height: 1.5; }
.confirm .logo-mark { height: 20px; width: auto; opacity: .9; }

/* On hold / status */
.timeline { list-style: none; margin: 22px 0 0; padding: 0; }
.timeline li { display: flex; gap: 12px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .rail .step-dot { width: 22px; height: 22px; }
.timeline .rail .line { flex: 1; width: 2px; min-height: 18px; background: var(--line2); margin: 4px 0; }
.timeline li:last-child .line { display: none; }
.timeline .txt { flex: 1; display: flex; justify-content: space-between; gap: 10px; padding: 1px 0 16px; font-size: 15px; }
.timeline .txt .when { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* Account */
.biz { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.biz .avatar { width: 48px; height: 48px; font-size: 16px; }
.set-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); color: var(--text); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font-size: 15px; }
.set-row:last-child { border-bottom: 0; }
.set-row:hover { color: var(--text); }
.set-row .chev { width: 18px; height: 18px; color: var(--faint); flex: none; }
.set-row .two { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.set-row .two .l1 { font-size: 12px; color: var(--muted); }
.set-row .two .l2 { font-size: 15px; font-weight: 500; }
.sup-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.sup-ico svg { width: 19px; height: 19px; }

/* ══════════════ Admin app ══════════════ */
.admin { min-height: 100vh; display: flex; }
.side { flex: none; width: 240px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; background: var(--side); border-right: 1px solid var(--raised); }
.side .brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.side .brand img { height: 26px; width: auto; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text3); font-size: 14px; font-weight: 500; }
.side nav a svg { width: 20px; height: 20px; }
.side nav a:hover { background: var(--surface); color: var(--text); }
.side nav a[aria-current="page"] { background: var(--raised); color: var(--text); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #241700; font-size: 12px; font-weight: 700; margin-left: auto; }
.side .box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.side .box .l { font-size: 12px; color: var(--faint); }
.side .box .sep { height: 1px; background: var(--line); }
.main { flex: 1; min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 48px; }
.wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.ahead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ahead h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; }
.ahead p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.kpi { padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); display: block; }
.kpi .l { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.kpi .v { margin-top: 8px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v small { font-size: 18px; color: var(--faint); font-weight: 600; }
.kpi .f { margin-top: 4px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.panel { min-width: 0; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.panel.flush { padding: 20px 0 8px; }
.panel.flush > .ph { padding: 0 20px; }
.ph { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ph h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ph p { margin: 4px 0 0; font-size: 13px; color: var(--faint); width: 100%; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cols > * { flex: 1 1 380px; }
.cols > .wide { flex: 2 1 560px; }
.tbl-wrap { margin-top: 10px; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 500; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl th:first-child, table.tbl td:first-child { padding-left: 20px; }
table.tbl th:last-child, table.tbl td:last-child { padding-right: 20px; }
table.tbl tr.click { cursor: pointer; }
table.tbl tr.click:hover td { background: rgba(255,255,255,.02); }
table.tbl .sub { display: block; font-size: 12px; color: var(--faint); }
table.tbl .r { text-align: right; }
.alist { list-style: none; margin: 10px 0 0; padding: 0; }
.alist li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.alist li:last-child { border-bottom: 0; padding-bottom: 2px; }
.alist .who { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alist .who b { font-size: 14px; font-weight: 500; }
.alist .who span { font-size: 12px; color: var(--faint); }
.alist .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.abtn { height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: none; color: var(--text); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.abtn:hover { background: var(--raised); color: var(--text); }
.abtn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.abtn.primary:hover { background: var(--blue-hover); }
.abtn.danger { color: var(--red); border-color: var(--red-line); }
.abtn svg { width: 16px; height: 16px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--text3); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs button .n { font-size: 12px; opacity: .7; }
.status-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.status-chips .chip { height: 40px; padding: 0 14px; font-size: 13px; gap: 8px; }
.status-chips .chip .dot { width: 7px; height: 7px; background: currentColor; }
.grid-fields { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.afield { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--raised); min-width: 0; }
.afield label { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 500; color: var(--text3); }
.afield label .s { font-size: 12px; font-weight: 400; color: var(--faint); }
.afield .in { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); }
.afield .in:focus-within { border-color: var(--focus); }
.afield .in input, .afield .in select { flex: 1; min-width: 0; height: 38px; border: 0; background: none; padding: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.afield .in input:focus, .afield .in select:focus { outline: none; }
.afield .in span { color: var(--faint); font-size: 13px; }
.afield .d { font-size: 12px; color: var(--faint); }
.afield.wide { grid-column: 1 / -1; }
.afield.toggle { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.radios { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--raised); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--focus); background: var(--sel); }
.radio input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.radio .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.radio .t b { font-size: 14px; font-weight: 600; }
.radio .t span { font-size: 12px; color: var(--faint); }
.radio .v { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.radio .v span { font-size: 12px; font-weight: 400; color: var(--faint); }
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.savebar .abtn { height: 44px; padding: 0 18px; font-size: 14px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--note-bg); border: 1px solid var(--amber-line); color: var(--note-text); font-size: 14px; }
.banner svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.banner.red { background: var(--red-bg); border-color: var(--red-line); color: #FFD9D2; }
.banner.red svg { color: var(--red); }
.banner.blue { background: var(--sel); border-color: var(--sel-line); color: var(--text2); }
.banner.blue svg { color: var(--link); }
.banner .grow { flex: 1 1 240px; }
.card-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.attn { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.attn.red { border-color: var(--red-line); }
.attn .amt { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0; }
.attn p { margin: 0; font-size: 14px; color: var(--text3); }
.attn dl { margin: 0; }
.attn dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.attn dl div:last-child { border-bottom: 0; }
.attn dt { color: var(--faint); } .attn dd { margin: 0; text-align: right; font-weight: 500; word-break: break-word; }
.attn .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.attn .small { font-size: 12px; color: var(--faint); line-height: 1.5; }
.cbox { width: 18px; height: 18px; accent-color: var(--blue); }
.how { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.how li { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text3); }
.how li span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sel); color: var(--link); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 14px 0; }
.words div { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--raised); font-family: 'Geist Mono', monospace; font-size: 14px; }
.words div span { color: var(--faint); font-size: 12px; width: 18px; text-align: right; }
.login-box { max-width: 380px; margin: 12vh auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; }
.login-box img { height: 34px; width: auto; align-self: center; }
.mtop { margin-top: 12px; } .mtop2 { margin-top: 20px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.kv-grid > div { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kv-grid .l { font-size: 12px; color: var(--muted); }
.kv-grid .v { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.copyable { display: inline-flex; align-items: center; gap: 6px; }
.copyable .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.copyable .icon-btn svg { width: 15px; height: 15px; }
.admin-bnav { display: none; }
.mob-head { display: none; }
@media (max-width: 899px) {
  .side { display: none; }
  .main { padding: calc(12px + var(--safe-t)) 16px calc(96px + var(--safe-b)); }
  .mob-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
  .mob-head img { height: 24px; }
  .admin-bnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 4px calc(10px + var(--safe-b)); border-top: 1px solid var(--raised); background: rgba(5, 9, 24, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .admin-bnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 50px; color: var(--faint); font-size: 11px; font-weight: 500; }
  .admin-bnav a svg { width: 22px; height: 22px; }
  .admin-bnav a[aria-current="page"] { color: var(--text); }
  .admin-bnav a[aria-current="page"] svg { color: var(--link); }
  .admin-bnav .count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; margin: 0; }
  .ahead h1 { font-size: 24px; }
  .kpi .v { font-size: 24px; }
  table.tbl th:first-child, table.tbl td:first-child { padding-left: 14px; }
  table.tbl th:last-child, table.tbl td:last-child { padding-right: 14px; }
}
/* ══════════════ Client extras ══════════════ */
.logo-sm { height: 26px; width: auto; display: block; align-self: flex-start; }
.coin-row, .coin-row:hover { color: var(--text); }
.lead { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--text3); }
.lead2 { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--text3); }
.lead2 b { color: var(--text); font-weight: 600; word-break: break-all; }
.badge-big { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.badge-big svg { width: 28px; height: 28px; }
.badge-big.amber { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber); }
.badge-big.blue { background: var(--sel); border: 1px solid var(--sel-line); color: var(--link); }
.badge-big.red { background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red); }
.badge-big.green { background: var(--green-bg); border: 1px solid #12493A; color: var(--green); }
.badge-ico { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.big-amount.sm { font-size: 32px; }
.big-amount.md { font-size: 40px; margin-top: 4px; }
.see-all { font-size: 13px; font-weight: 500; }
.hold-note { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--faint); }
.hdr-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding-right: 4px; }
.paid-by { padding: 0 4px; }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--link); font-size: 14px; font-weight: 600; }
.link-btn:hover { color: var(--link-hover); }
.pill-btn.sm28 { height: 28px; padding: 0 10px; font-size: 12px; }
.conv-card .row { gap: 8px; }
.coin-select .cn { display: flex; flex-direction: column; gap: 1px; }
.fb-bank { padding: 0 !important; gap: 0 !important; }
.fb-bank .fb-link { border-bottom: 0; }
.fb-bank .err { padding: 0 16px 12px; }
.fb-link .lab { font-size: 12px; color: var(--muted); }
.fb-link svg.chev { width: 18px; height: 18px; color: var(--faint); flex: none; }
.fb-link .two { display: flex; flex-direction: column; gap: 2px; }
.qr-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: #000; margin-top: 12px; }
.hours-box { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; font-size: 14px; }
.hours-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text3); line-height: 1.45; }
.hours-line .dot { margin-top: 6px; }
.dot.amber { background: var(--amber); }
.pin-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 24px 0; }
.pin-head h1 { margin: 20px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pin-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.pin-head p b { color: var(--text); font-weight: 600; }
.pin-head p.err { min-height: 20px; margin-top: 16px; color: var(--red); font-weight: 500; }
.pin-head .forgot { margin-top: 4px; font-size: 14px; font-weight: 500; }
.pin-head + .keypad { padding-top: 32px; }
.spin.dark { border-color: rgba(29, 78, 216, .25); border-top-color: #1D4ED8; width: 13px; height: 13px; }
.sup-wa { background: var(--green-bg); color: var(--green); } .sup-tg { background: var(--tg-bg); color: var(--tg); } .sup-em { background: var(--raised); color: var(--text3); }
.support-grid .c-green { color: var(--green); } .support-grid .c-tg { color: var(--tg); } .support-grid .c-t3 { color: var(--text3); }
.dl > div.tall { min-height: 60px; }
.dl dd.col-end { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.strike { text-decoration: line-through; }
.addr-box + .err, .field .err { margin-top: 2px; }
.confirm .center-row { justify-content: center; }

/* Admin extras */
.dot.off { background: var(--faint); }
.wrap-row { flex-wrap: wrap; }
.end-row { justify-content: flex-end; }
.back-link { color: var(--muted); align-self: flex-start; }
.back-link svg { width: 16px; height: 16px; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.search.sm { height: 40px; min-width: min(280px, 100%); }
.search.sm input { height: 38px; font-size: 14px; }
.input.sm { height: 40px; border-radius: 12px; font-size: 14px; padding: 0 12px; width: auto; }
.input.ta { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input { appearance: auto; }
select.input option, .afield select option { background: var(--surface); color: var(--text); }
.px20 { padding-left: 20px; padding-right: 20px; }
.sweep-block { padding: 14px 20px 6px; border-top: 1px solid var(--line); }
.sweep-block:first-of-type { border-top: 0; }
.sweep-block .tbl-wrap { margin-top: 6px; }
.sweep-block table.tbl td:first-child { padding-left: 0; } .sweep-block table.tbl td:last-child { padding-right: 0; }
.panel .empty { padding: 28px 12px; }
.ph h2 { display: flex; align-items: center; gap: 8px; }
.ph h2 svg { width: 18px; height: 18px; }
.alist .avatar { width: 36px; height: 36px; font-size: 13px; }
.alist .who .copyable { margin-top: 2px; }
.attn .between { gap: 8px; }
.attn a { font-weight: 500; }
.kpi:hover { color: var(--text); border-color: var(--line2); }
.kpi .l svg.chev { width: 16px; height: 16px; }
.kv-grid .small { margin-top: 2px; }
.dl dd .abtn { margin-left: 8px; height: 30px; padding: 0 10px; font-size: 12px; }
.fullsheet .wide-page { max-width: 100%; }
.side .box .dot { margin-right: 4px; }
.login-box .auth-form { margin-top: 8px; }
@media (min-width: 900px) { .admin-body .test-banner { position: static; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid-fields .afield:not(.toggle) { justify-content: space-between; }
.qr-box.center-qr { width: max-content; margin-left: auto; margin-right: auto; }
.qr-box.center-qr svg { width: 180px; height: 180px; }
@media (max-width: 899px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 20px; }
  .kpi .v small { font-size: 13px; }
  table.tbl { min-width: 640px; }
  .panel { padding: 16px; }
  .panel.flush { padding: 16px 0 6px; }
  .panel.flush > .ph { padding: 0 16px; }
  .sweep-block { padding: 12px 16px 4px; }
  .px20 { padding-left: 16px; padding-right: 16px; }
  .grid-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid-fields .afield { padding: 10px; }
  .grid-fields .afield.toggle { grid-column: 1 / -1; }
  .afield .in { padding: 0 10px; }
}

/* Utilities */
.m0 { margin: 0; } .mt-auto { margin-top: auto; }
.mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; }
.mt16 { margin-top: 16px; } .mt18 { margin-top: 18px; } .mt20 { margin-top: 20px; } .mt22 { margin-top: 22px; } .mt24 { margin-top: 24px; } .mt26 { margin-top: 26px; }
.mt40 { margin-top: 40px; } .mt52 { margin-top: 52px; } .mb12 { margin-bottom: 12px; }
.page.pt12, .pt12 { padding-top: 12px; } .page.pt16, .pt16 { padding-top: 16px; } .pt24 { padding-top: 24px; } .pb40 { padding-bottom: 40px; } .px4 { padding-left: 4px; padding-right: 4px; } .pr4 { padding-right: 4px; }
.block { display: block; } .w100 { width: 100%; } .gap8 { gap: 8px; } .center-row { justify-content: center; } .center-text { text-align: center; }
p.center-text { margin: 18px 0 0; font-size: 14px; }
.small { font-size: 13px; } .fs16 { font-size: 16px; } .fw5 { font-weight: 500; } .fw6 { font-weight: 600; }
.t2 { color: var(--text2); } .c-text { color: var(--text); } .c-link { color: var(--link); } .c-amber { color: var(--amber); } .c-red { color: var(--red); } .c-green { color: var(--green); } .c-tg { color: var(--tg); } .c-t3 { color: var(--text3); }
.c-link svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
