/* 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; --eth: #A3B3FF; --eth-bg: #1A2048; --usdc: #5DA9F6; --usdc-bg: #0E2546;
  --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; }
/* iPhone: no double-tap zoom — two quick taps (typing a PIN on the keypad) zoomed the page in and could lose a digit.
   Pinch zoom still works. */
html, button, a, input, select, textarea, label { touch-action: manipulation; }
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; }
.nowrap { white-space: nowrap; }
.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; }
.infobar.tall { padding: 11px 14px; line-height: 1.4; }
.infobar .em { overflow-wrap: anywhere; }
.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; }
img.coin { border-radius: 0; display: inline-block; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.coin.USDT { background: var(--usdt-bg); color: var(--usdt); } .coin.BTC { background: var(--btc-bg); color: var(--btc); }
.coin.ETH { background: var(--eth-bg); color: var(--eth); } .coin.USDC { background: var(--usdc-bg); color: var(--usdc); }
.coin.TRX { background: #2E1416; color: #FF6B6B; } .coin.BNB { background: #2E2508; color: #F3BA2F; }
.coin.s48 { width: 48px; height: 48px; font-size: 24px; } .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; white-space: nowrap; }
.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; }
/* Sell's line under the amount: "You sell 100 USDT", or for BTC, ETH, … the two other units as switches —
   "$84.12 = 0.00078 BTC". As tall as the old line with its Max button, so nothing below moves; on the smallest phones a
   big amount drops the second switch to its own line. */
.sell-line { min-height: 44px; }
.sell-line #sl-crypto { white-space: nowrap; }
@media (max-width: 359px) { .sell-line #sl-crypto { white-space: normal; } } /* the smallest phones: a big amount may wrap */
.sell-units { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 44px; }
.sell-units .eq-pair { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; } /* "=" wraps with its switch */
.sell-units .eq { color: var(--faint); font-size: 15px; font-weight: 600; }
@media (max-width: 359px) {
  .sell-units, .sell-units .eq-pair { gap: 6px; }
  .sell-units .unit-switch { height: 32px; padding: 0 10px 0 8px; gap: 6px; font-size: 13px; }
  .sell-units .unit-switch svg { width: 14px; height: 14px; }
}
.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%; min-width: 0; max-width: 480px; max-height: 92vh; overflow-y: auto; overflow-x: hidden; 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.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .support-grid.n1 { grid-template-columns: minmax(0, 1fr); }
.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); }
/* "≈ $122.18" under the rand total: the same money in dollars */
.total .usd-eq { margin-top: 6px; font-size: 16px; line-height: 19px; font-weight: 500; color: var(--text3); } /* the room the old note took */
/* Home: "Live rates" with the refresh button (when the app last got the rates, and the arrow that turns while it asks) */
.rates-head { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rates-head .rh-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rates-head .title { white-space: nowrap; }
@media (max-width: 374px) { .rates-head, .rates-head .rh-t { gap: 8px; } .rates-head .refresh-btn #rates-upd { min-width: 4.6em; } } /* (just the time there) */
/* Home: the currency the rates and the total are in (rand, cedis, naira, shillings) */
.cur-pick { position: relative; display: inline-flex; align-items: center; height: 30px; flex: none; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); }
.cur-pick select { -webkit-appearance: none; appearance: none; height: 100%; padding: 0 28px 0 12px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.cur-pick select:focus { outline: none; }
.cur-pick:focus-within { border-color: var(--focus); }
.cur-pick svg { position: absolute; right: 9px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* A USDT rate agreed with you for a deal */
.deal-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 4px; vertical-align: 1px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.refresh-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 13px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.refresh-btn svg { width: 16px; height: 16px; color: var(--link); }
.refresh-btn #rates-upd { min-width: 8.7em; text-align: right; } /* "Updating…" and the time take the same room: no jump */
.refresh-btn:hover { border-color: var(--ring); color: var(--text); }
.refresh-btn.busy { color: var(--text); border-color: var(--ring); }
.refresh-btn.busy svg { animation: spin 0.7s linear infinite; }
/* Home: four compact rate tiles — the coin, its rand rate, and its dollar price under it */
.rate-tiles { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rate-tile { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px 10px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
a.rate-tile:hover { color: var(--text); border-color: var(--line2); }
a.rate-tile:active { background: var(--raised); }
.rate-tile .rt-c { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--muted); }
.rate-tile .rt-z { margin-top: 3px; font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.rate-tile .rt-u { margin-top: 1px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-tile .rt-u.off { color: var(--amber); }
.rate-tile .r2.up { color: var(--green); }
.rate-tile .r2.down { color: var(--red); }
.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.two { grid-template-columns: repeat(2, minmax(0, 132px)); justify-content: center; gap: 24px; } /* the rand page: Withdraw, Swap */
.actions a.off { opacity: .45; pointer-events: none; }
/* Home: Assets — a card per coin: its badge and name; the balance, and what it's worth under it (in dollars too for the
   coins priced in dollars). The balance shrinks to fit on the narrowest phones; the name keeps its room. */
.assets { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.asset { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 14px 16px 14px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.asset:hover { color: var(--text); border-color: var(--line2); }
.asset:active { background: var(--raised); }
.asset .as-name { flex: 0 1 auto; min-width: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset .as-vals { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.asset .as-bal { max-width: 100%; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.asset .as-worth { max-width: 100%; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .asset { gap: 12px; padding: 12px 14px 12px 12px; } .asset .coin.s40 { width: 36px; height: 36px; } .asset .as-name { font-size: 15px; } }
.names { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.act-row .names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.act-row .n1 { font-size: 15px; font-weight: 500; }
.act-row .n2 { font-size: 13px; color: var(--faint); }
.act-row .vals { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.act-row .v1 { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.act-row .v2 { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.act-row .v3 { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; } /* "@ R 16.50": the USDT price of a sale or a swap with rand */
.act-row .in { color: var(--green); } /* money in */
/* A coin's page: the coin, what you have and what it's worth */
.coin-hero { margin-top: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.coin-hero .bal { margin-top: 14px; max-width: 100%; font-size: 32px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; white-space: nowrap; overflow: hidden; }
.coin-hero .worth { margin-top: 6px; font-size: 15px; color: var(--text3); }
.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: 14px; min-height: 68px; color: var(--text); width: 100%; background: none; border: 0; padding: 0; text-align: left; }
/* The coin, with a small round mark at its corner for what happened: in, out, swapped, paid in rand, waiting, undone */
.act-coin { position: relative; flex: none; width: 40px; height: 40px; }
.act-coin .mark { position: absolute; right: -5px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--line2); color: var(--text); box-shadow: 0 0 0 2.5px var(--bg); }
.act-coin .mark svg { width: 11px; height: 11px; }
.act-coin .mark b { font-size: 11px; font-weight: 700; line-height: 1; }
.act-coin .mark.wait { background: var(--amber-bg); color: var(--amber); }
.act-coin .mark.bad { background: var(--red-bg); color: var(--red); }
.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; flex-wrap: wrap; gap: 6px; }
.chips button { flex: 1 1 auto; height: 36px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; 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; }
.seg.c1 { grid-template-columns: 1fr; } .seg.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .seg.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.c4 button { gap: 6px; padding: 0 4px; font-size: 13.5px; }
.seg.sm button { height: 38px; font-size: 13.5px; }

/* 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; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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 output { white-space: nowrap; overflow: hidden; } /* one line: a long amount ("GH₵ 1,185.00") shrinks to fit instead */
.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; }
.swap-btn.off { color: var(--faint); } /* to rand: rand isn't swapped back to a coin (yet) */
.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; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 2px; }
.people::-webkit-scrollbar { display: none; }
/* more to scroll to: the right edge fades out */
.people.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.people button { flex: none; width: 60px; scroll-snap-align: start; 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 .names > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matches .icon-btn { flex: none; width: 44px; min-height: 44px; justify-content: center; } /* a remove button, not a whole-row button */
.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 .gi.grey { background: var(--raised); color: var(--muted); }
.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-group.one { padding-top: 6px; }
.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); }
.set-row.closed .l2, .set-row.closed .num { color: var(--muted); } /* cedis or shillings outside the payout hours */
.set-row.maint { opacity: .6; } /* a payout currency under maintenance: greyed out */
.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; white-space: nowrap; }
.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; }
/* (Account → Invite friends: their link's Copy and Share) */
.set-row.invite-acts { gap: 8px; }
/* (each friend who signed up with their link — and what they earned from them) */
.set-row.inv-friend { min-height: 48px; font-size: 14px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.invite-acts .pill-btn { display: inline-flex; align-items: center; gap: 6px; }
.invite-acts .pill-btn svg { width: 15px; height: 15px; }
.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; }
.hold-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.hold-col { min-width: 0; padding: 16px 16px 6px; border-radius: 16px; background: var(--raised); }
.hold-col .l { font-size: 13px; color: var(--muted); }
.hold-col .v { margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hold-col .v small { font-size: 15px; color: var(--faint); font-weight: 600; }
.hold-col .f { margin-top: 3px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.hold-lines { list-style: none; margin: 12px 0 0; padding: 0; }
.hold-lines li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line2); }
.hold-lines .hn, .hold-lines .hv { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hold-lines .hn { flex: 1; }
.hold-lines .hv { align-items: flex-end; text-align: right; }
.hold-lines b { font-size: 13px; font-weight: 500; white-space: nowrap; }
.hold-lines span > span { font-size: 12px; color: var(--faint); white-space: nowrap; }
/* Client balances: each line opens who holds it */
.hold-lines li.tap { padding: 0; }
.hold-tap { display: flex; align-items: center; gap: 10px; width: calc(100% + 12px); margin: 0 -6px; padding: 9px 6px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hold-tap:hover, .hold-tap:focus-visible { background: var(--surface); }
.hold-tap:disabled { cursor: progress; opacity: .6; }
.hold-tap svg.chev { flex: none; width: 16px; height: 16px; margin-left: -2px; color: var(--faint); }
/* Who holds a coin (a sheet from Client balances) */
.holders li { padding: 0; }
.holders .holder { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 12px 0; color: inherit; text-decoration: none; }
.holders .holder:hover .who b, .holders .holder:focus-visible .who b { text-decoration: underline; }
.holders .who span + span { margin-top: 1px; }
.holders .hv { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.holders .hv b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.holders .hv span { font-size: 12px; color: var(--faint); white-space: nowrap; }
.holders .holder svg.chev { flex: none; width: 16px; height: 16px; color: var(--faint); }
.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%; }
.ph p.c-green { color: var(--green); font-weight: 500; } .ph p.c-red { color: var(--red); font-weight: 500; } /* Telegram: its last answer */
.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); }
.dl dt .sub, .dl dd .sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--faint); }
/* The payment fee on the sell screen: each step on its own line before an amount; under the step, what it is from it */
.fee-steps { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 8px 0; line-height: 1.3; }
.fee-hint { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--faint); }
table.tbl .r { text-align: right; }
table.prices-tbl td.r { white-space: nowrap; }
.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; }
.tabs.scroll-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs.scroll-tabs::-webkit-scrollbar { display: none; }
.tabs.scroll-tabs button { flex: none; }
.sub-h { margin: 18px 0 0; font-size: 13px; font-weight: 600; color: var(--text3); }
.sub-h .s { font-weight: 400; color: var(--faint); }
.panel .sub-h + .grid-fields { margin-top: 8px; }
.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; }
/* The rand payment fee as a small table (your Settings, a client's page, a partner's Prices): "Under [R step]" → its fee,
   "R step or more" → its fee — and what clients see, as it's typed */
.fee-table { margin-top: 8px; padding: 4px 16px 14px; gap: 0; max-width: 680px; }
.fee-table .fee-th, .fee-table .fee-tr { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; align-items: center; }
.fee-table.three .fee-th, .fee-table.three .fee-tr { grid-template-columns: minmax(0, 1fr) 96px 150px 110px; gap: 12px; }
.fee-table .fee-th { padding: 8px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.fee-table .fee-tr { min-height: 58px; padding: 9px 0; border-top: 1px solid var(--line2); }
.fee-table .fee-when { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text2); }
.fee-table .fee-when .in { width: 150px; }
.fee-table .fee-when b, .fee-table .fee-v { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.fee-table .fee-v.fee-sum { font-size: 15px; }
.fee-table .fee-says { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--muted); line-height: 1.5; }
.fee-table .fee-says b { color: var(--text); font-weight: 600; }
.fee-table .in.bad { border-color: var(--red); }
.fee-table .fee-sub { display: none; }
@media (max-width: 620px) {
  .fee-table { padding: 2px 14px 12px; }
  .fee-table .fee-th, .fee-table .fee-tr, .fee-table.three .fee-th, .fee-table.three .fee-tr { grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
  .fee-table .fee-when { gap: 8px; }
  .fee-table .fee-when .in { width: 96px; }
  .fee-table .wide-only { display: none; }
  .fee-table .fee-sub { display: block; width: 100%; font-size: 12.5px; font-weight: 400; color: var(--faint); }
  .fee-table .fee-sub b { font-weight: 600; color: var(--text2); }
}
.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 .in.times input { text-align: center; } /* payout hours: from … to … (typed, or the phone's own time picker) */
.afield .in.times input::-webkit-calendar-picker-indicator { display: none; }
.afield .d { font-size: 12px; color: var(--faint); }
.afield.wide { grid-column: 1 / -1; }
.afield .atext, .atext { width: 100%; min-height: 160px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); font-size: 15px; line-height: 1.5; resize: vertical; }
.atext:focus { outline: none; border-color: var(--focus); }
.afield.toggle { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
/* Settings → Telegram alerts: each alert's switch at the bottom of its card, with "Only from R…" next to it for one about
   an amount (dimmed while the alert is off) */
.grid-fields.alert-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.afield.alert-card { gap: 12px; }
.alert-card .alert-ctl { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.alert-card .alert-ctl .from { flex: none; font-size: 13px; color: var(--text3); }
.alert-card .alert-ctl .in { flex: 1; min-width: 0; max-width: 170px; height: 38px; }
.alert-card .alert-ctl .in input { height: 36px; }
.alert-card .alert-ctl .switch { flex: none; margin-left: auto; }
.alert-card:has(.switch[aria-checked="false"]) .alert-ctl .in, .alert-card:has(.switch[aria-checked="false"]) .alert-ctl .from { opacity: .45; }
.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 .t .c-amber { color: var(--amber); } /* ("full today", "can't be read" under a store's name) */
.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); }
/* A client's USDT deal rate (their admin page): what it is, against the market, and Set / Change / Remove */
.deal-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line2); }
.deal-box.on { border-color: rgba(61, 220, 151, .4); }
.deal-box .deal-l { flex: 1 1 320px; min-width: 0; }
.deal-box .deal-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.deal-box .deal-acts { display: flex; flex: none; gap: 8px; }
/* Settings: the categories stay at the top as you scroll; the save bar shows (at the bottom) once something changed */
.set-tabs { position: sticky; top: var(--sticky-top, 0px); z-index: 19; margin: -6px -8px 0; padding: 8px 8px 10px; background: var(--bg); }
.set-tabs .tabs { gap: 6px; }
@media (min-width: 900px) { .set-tabs .tabs.scroll-tabs { flex-wrap: wrap; overflow: visible; } } /* (a computer: all of them, wrapping if need be) */
/* (the same width selected or not, with or without the dot: the row never moves under you) */
.set-tabs .tabs button { position: relative; height: 38px; padding: 0 15px 0 13px; font-size: 13px; background: var(--surface); }
.set-tabs .tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs button .dirty-dot { display: none; position: absolute; top: 50%; right: 5px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--amber); }
.tabs button.dirty .dirty-dot { display: block; }
#settings [data-tabp][hidden] { display: none !important; }
.savebar { position: sticky; bottom: 16px; z-index: 20; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px;
  background: rgba(21, 30, 61, .97); border: 1px solid var(--line2); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.savebar.on { display: flex; animation: sb-in .18s ease-out; }
@keyframes sb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.savebar .sb-msg { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--text2); }
.savebar .sb-msg .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.savebar #sb-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.savebar .sb-acts { display: flex; flex: none; gap: 8px; }
.savebar .abtn { height: 42px; padding: 0 16px; font-size: 14px; }
/* Payout stats: the period first (presets, or your own dates), then everything below follows it */
.stat-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.stat-filters .chips button { flex: 0 0 auto; padding: 0 14px; }
/* (the Flutterwave history: which store — your main store or Flutterwave 2) */
.flw-stores { margin: 0 0 14px; }
.flw-stores button { flex: 0 0 auto; padding: 0 14px; }
.stat-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.stat-custom[hidden] { display: none; }
.stat-custom label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--faint); }
.stat-custom input { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; color-scheme: dark; }
.stat-custom .abtn { height: 38px; }
#stat-body { transition: opacity .15s; }
#stat-body.loading { opacity: .5; }
.chart-box { position: relative; margin-top: 12px; }
.chart-box svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart-box .g { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart-box .yt, .chart-box .xt { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-box .lbl { fill: var(--text2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity .12s; }
.chart-box.tipping .lbl { opacity: 0; }
.chart-box .bar { fill: #3D7BFF; transition: fill .12s; }
.chart-box .bar.on { fill: #7AA5FF; }
.chart-box .hit { fill: transparent; outline: none; }
.chart-box .hit:focus-visible { stroke: var(--focus); stroke-width: 1.5; rx: 4px; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line2); box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  font-size: 12px; color: var(--muted); white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); }
.chart-tip[hidden] { display: none; }
.chart-tip b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
table.tbl.stat-tbl td.r { white-space: nowrap; }
table.tbl.stat-tbl tr[hidden] { display: none; }
.kpi .v.long { font-size: 22px; } /* (a big total still fits its tile) */
.stat-cur .tabs { gap: 8px; }
.stat-cur .tabs button { height: 38px; padding: 0 18px; font-size: 13.5px; background: var(--surface); }
.stat-cur .tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.stat-more { margin-top: 4px; padding: 12px 16px 8px; border-top: 1px solid var(--line); }
.stat-more .abtn { width: 100%; justify-content: center; }
@media (max-width: 899px) {
  .kpi .v.long { font-size: 17px; }
  table.tbl.stat-tbl { min-width: 0; }
  table.tbl.stat-tbl th, table.tbl.stat-tbl td { padding-left: 8px; padding-right: 8px; }
  table.tbl.stat-tbl th:first-child, table.tbl.stat-tbl td:first-child { padding-left: 16px; }
  table.tbl.stat-tbl th:last-child, table.tbl.stat-tbl td:last-child { padding-right: 16px; }
}
@media (max-width: 899px) {
  .set-tabs { margin: -6px -16px 0; padding: 8px 16px 10px; }
  .set-tabs .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; }
  .savebar { bottom: calc(76px + var(--safe-b)); padding-left: 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); }
/* A payout in cedis or shillings for you to pay by hand: the amount and the recipient, each copyable */
.attn.amber { border-color: rgba(245, 184, 75, .45); }
.attn.manual .amt { display: flex; align-items: center; gap: 10px; }
.attn.manual .amt .icon-btn { width: 32px; height: 32px; }
.attn.manual dl.pay-to dd { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 14px; }
.attn.manual dl.pay-to .copyable .icon-btn { width: 28px; height: 28px; }
.attn.manual dl.pay-to .copyable .break:not(.mono) { word-break: normal; overflow-wrap: anywhere; } /* names wrap between words */
.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); }
/* Emails → "Only the clients I choose": a list to tick */
.pick-list { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); }
.pick-list .pick-row { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 400; text-align: left; } /* not .afield label's column */
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--raised); }
.pick-row.off { cursor: default; }
.pick-row.off:hover { background: none; }
.pick-row .pn, .pick-row .pe { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row .pn { font-weight: 500; color: var(--text); }
.pick-row.off .pn { color: var(--faint); }
.pick-row .pe { font-size: 12px; color: var(--faint); }
.pick-list .empty { padding: 16px 12px; }
.np-tools { flex: none; }
.nowrap { white-space: nowrap; }
.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; }
  .admin-bnav.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-left: 2px; padding-right: 2px; } /* a partner's admin: Emails too */
  .admin-bnav.n6 a { font-size: 10.5px; }
  .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; }
/* A partner's app (partners.js): their logo (any shape — kept to its box), or their name in place of one */
.brand-logo { object-fit: contain; max-width: 220px; }
.topbar .brand-logo { height: 34px; max-width: 170px; }
.logo-sm.brand-logo { height: 30px; max-width: 160px; }
.brand-word { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; }
.topbar .brand-word { font-size: 21px; }
.brand-word.logo-sm { font-size: 19px; height: auto; }
.slogan.brand-tag { letter-spacing: .04em; text-align: center; }
.partner-link { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 12px; border: 1px solid var(--sel-line); border-radius: 16px; background: var(--sel); color: var(--text); }
.partner-link:hover { color: var(--text); border-color: var(--link); }
.partner-link .pl-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.partner-link .pl-ico svg { width: 20px; height: 20px; }
.partner-link .two { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.partner-link .two .l1 { font-size: 12px; color: var(--muted); }
.partner-link .two .l2 { font-size: 15px; font-weight: 600; }
.partner-link .chev { color: var(--muted); width: 18px; height: 18px; flex: none; }
.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; }
.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; }
.dl > div.wrap-dt dt { flex: 1 1 auto; min-width: 0; }
.strike { text-decoration: line-through; }
.addr-box + .err, .field .err { margin-top: 2px; }
.confirm .center-row { justify-content: center; }
.coin.s40 { width: 40px; height: 40px; font-size: 20px; } .coin.s56 { width: 56px; height: 56px; font-size: 28px; } .coin.s72 { width: 72px; height: 72px; font-size: 34px; }
.fw4 { font-weight: 400; }
/* Send: the amount in dollars or in the coin — this switches, showing the amount the other way */
.unit-switch { display: inline-flex; align-items: center; gap: 8px; height: 34px; max-width: 100%; padding: 0 13px 0 10px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--text2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.unit-switch svg { width: 15px; height: 15px; color: var(--link); flex: none; }
.unit-switch:hover { border-color: var(--ring); color: var(--text); }

/* A crypto send: the coin in a soft glow of its colour, what it was worth, where it went; then its status and details */
.sent-bar { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(14px + var(--safe-t)) 8px 0; min-height: 58px; }
.sent-bar h1 { margin: 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--text2); }
.sent-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 0 4px; }
.sent-hero::before { content: ''; position: absolute; top: -50px; left: 50%; width: min(340px, 100vw); height: 280px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--glow, 11, 92, 255), .34), rgba(var(--glow, 11, 92, 255), 0)); pointer-events: none; }
.sent-hero > * { position: relative; }
.glow-USDT { --glow: 36, 151, 138; } .glow-BTC { --glow: 236, 134, 32; } .glow-ETH { --glow: 90, 98, 166; } .glow-USDC { --glow: 37, 88, 189; }
.glow-TRX { --glow: 211, 38, 44; } .glow-BNB { --glow: 216, 147, 10; } .glow-SOL { --glow: 116, 72, 224; }
.sent-amt { margin-top: 20px; max-width: 100%; font-size: 48px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; overflow: hidden; }
.sent-amt .cur { font-size: .55em; color: var(--faint); margin-right: 3px; vertical-align: .55em; }
.sent-amt .cents { font-size: .55em; color: var(--faint); }
.sent-to { margin-top: 14px; font-size: 14px; color: var(--faint); }
.addr-chip { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 42px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line2); color: var(--text); font-size: 14px; }
.addr-chip svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.addr-chip:hover { border-color: var(--ring); }
.sent-dl { margin: 0; padding: 0; }
.sent-dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sent-dl > div:last-child { border-bottom: 0; }
.sent-dl dt { flex: none; color: var(--muted); }
.sent-dl dd { margin: 0; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-weight: 500; text-align: right; }
.sent-dl dd a { font-weight: 500; }
.sent-dl .tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); font-size: 13px; color: var(--text3); white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.st svg { width: 16px; height: 16px; flex: none; }
.st.ok svg { color: var(--green); }
.st.wait { color: var(--amber); } .st.bad { color: var(--red); } .st.go { color: var(--link); }
.spin.sm { width: 13px; height: 13px; border-color: rgba(74, 168, 255, .28); border-top-color: var(--link); }

/* 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; }
/* Central wallets: a full 0x… address must wrap, never widen the page */
.dl > div.cw { padding: 10px 0; }
.dl > div.cw dt { flex: 0 1 auto; }
.dl > div.cw dd { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 1 auto; }
.dl > div.cw dd .mono { word-break: break-all; text-align: right; }
.dl > div.cw dd .abtn { margin-left: 0; flex: none; }
@media (max-width: 720px) {
  .dl > div.cw { flex-direction: column; align-items: stretch; gap: 6px; }
  .dl > div.cw dd { justify-content: space-between; }
  .dl > div.cw dd .mono { text-align: left; }
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
/* Shortened addresses in tables stay on one line (the table scrolls sideways on a phone) */
table.tbl .copyable .break { word-break: normal; white-space: nowrap; }
.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-fields .afield.hours, .grid-fields .afield.rate-src, .grid-fields .afield.alert-card, .grid-fields .afield.phone-wide { 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.pt8, .pt8 { padding-top: 8px; } .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; }
.ok-tick { display: inline-flex; flex: none; } .ok-tick svg { width: 18px; height: 18px; }

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

/* iPhone zooms the page into any text box under 16px when it's tapped (the bank and recipient search, the send address,
   the admin's small fields): 16px on touch screens. */
@media (pointer: coarse) { .search input, .addr-box textarea, .afield .in input, .afield .in select, .input.sm { font-size: 16px; } }
/* The narrowest phones (320 px: iPhone SE, or Display Zoom "Larger Text"): the Activity filters in a 3 + 2 grid, and the
   sell coin cards stack the badge over the name and balance, so a long balance has the card's full width. */
@media (max-width: 359px) { .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .coin-pick button { flex-direction: column; align-items: flex-start; height: auto; padding: 10px 12px; gap: 6px; } .coin-pick .cn { width: 100%; } }
/* Admin: a client's balance statement — the coin picker and "show older" */
.stmt-coins { padding: 12px 16px 2px; }
.stmt-coins .abtn .n { margin-left: 6px; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.stmt-more { padding: 4px 16px 16px; }
/* (a client's API payments: what came through their API, above the list — amounts on one line, a refusal's reason kept
   narrow enough to leave the other columns room, and an order number used for another payment in amber) */
.api-sum { margin: 0; padding: 8px 16px 12px; line-height: 1.5; }
table.tbl.api-tbl td.r { white-space: nowrap; }
table.tbl.api-tbl .why { min-width: 200px; max-width: 340px; }
table.tbl.api-tbl .sub.warn { color: var(--amber); }
table.tbl.api-tbl .nw { white-space: nowrap; }

/* MoMo devices: the USSD console, messages and a payment's steps */
.ussd-log { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 12px; border-radius: 14px; background: var(--bg-deep); border: 1px solid var(--line); }
.ussd-line { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.45; padding: 8px 12px; border-radius: 12px; max-width: 92%; }
.ussd-line.net { align-self: flex-start; background: var(--raised); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; }
.ussd-line.me { align-self: flex-end; background: var(--sel); color: var(--text); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; }
.ussd-line.err { align-self: stretch; max-width: none; color: var(--red); background: var(--red-bg); }
.ussd-line.note { align-self: center; color: var(--text3); font-size: 12px; padding: 2px 8px; }
.ussd-line.ok { align-self: stretch; max-width: none; color: var(--green); background: var(--green-bg); font-weight: 600; }
.momo-dev .acts .abtn { padding-inline: 12px; }

/* ── Flutterwave history (Admin → the Overview's Flutterwave chip, or the menu's naira balance) ── */
.status-chips a.chip-link { text-decoration: none; cursor: pointer; }
.status-chips a.chip-link svg.chev { width: 14px; height: 14px; margin: 0 -4px 0 -2px; opacity: .75; }
.status-chips a.chip-link:hover { filter: brightness(1.15); }
.side .box a.box-link { display: block; margin: -6px -8px; padding: 6px 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.side .box a.box-link:hover { background: var(--raised); }
.side .box a.box-link .l { display: flex; align-items: center; justify-content: space-between; }
.side .box a.box-link svg.chev { width: 14px; height: 14px; color: var(--faint); }
.flw-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.flw-top .l { font-size: 13px; color: var(--muted); }
.flw-top .v { margin-top: 6px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.flw-top .f { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.flw-panel { padding: 6px 20px 12px; }
#flw-list.loading { opacity: .5; }
.flw-day { margin: 18px 0 2px; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--faint); }
.flw-list { list-style: none; margin: 0; padding: 0; }
.flw-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flw-list .flw-row:last-child { border-bottom: 0; }
.flw-row .grow { min-width: 0; }
.flw-row b { font-weight: 600; }
.flw-row .grow b { display: block; overflow-wrap: anywhere; }
.flw-row .sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--faint); overflow-wrap: anywhere; }
.flw-row .r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flw-row .flw-st { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.flw-row .flw-st .sub { margin: 0; }
.flw-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 600; line-height: 1; background: var(--raised); color: var(--muted); }
.flw-ic.in { background: var(--green-bg); color: var(--green); }
.flw-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--raised); font-size: 13.5px; color: var(--muted); }
.flw-sum b { margin-left: 4px; color: var(--text); }
.flw-sum b.c-green { color: var(--green); }
.flw-more { display: flex; justify-content: center; padding: 14px 0 4px; }
@media (max-width: 899px) {
  .flw-panel { padding: 4px 14px 10px; }
  .flw-top .v { font-size: 24px; }
  .flw-ic { width: 28px; height: 28px; font-size: 16px; }
}

/* ── A payout currency's rate from Bybit's top merchants (Settings → Naira) ── */
.bybit-rules { margin-top: 6px; padding: 4px 16px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.bybit-rules[hidden] { display: none; }
.bybit-rules .sub-h .s { display: block; margin-top: 2px; }
.bybit-list { list-style: none; margin: 8px 0 0; padding: 0; }
.bybit-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bybit-list li:last-child { border-bottom: 0; }
.bybit-list .grow { min-width: 0; }
.bybit-list .grow b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.bybit-list .sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--faint); }
.bybit-list b.num { flex: none; white-space: nowrap; }
.bybit-list li.out .grow > b, .bybit-list li.out .sub, .bybit-list li.out b.num { opacity: .55; }
.bybit-list .why { display: block; margin-top: 3px; font-size: 12.5px; color: var(--amber); }
/* A client's API access panel: the address for their system, their signing secret */
.api-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.api-box .l { font-size: 13px; color: var(--muted); }
.api-box.row-box { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.api-box.row-box .grow { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.api-box .acts { display: flex; gap: 8px; }
.api-box .copyable { font-size: 14px; }
.grid-fields + .bybit-rules, .grid-fields .bybit-rules { grid-column: 1 / -1; }

/* ══════════════ A partner's own admin (partner.js) ══════════════ */
.side .brand .brand-logo, .side .brand .side-logo { height: 30px; max-width: 150px; }
.side .brand .brand-word { font-size: 18px; }
/* The partner's admin: back to their own app — at the foot of the side menu, and top left on a phone */
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.pa-head .back-app { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 13px 0 9px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pa-head .back-app:hover { color: var(--text); border-color: var(--link); }
.pa-head .back-app svg { width: 17px; height: 17px; }
.pa-head .pa-logo { display: flex; justify-content: center; min-width: 0; }
@media (max-width: 899px) { .mob-head.pa-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; } }
.mob-head .brand-logo { height: 28px; max-width: 160px; }
.mob-head .brand-word { font-size: 18px; }
.login-brand { display: flex; justify-content: center; }
.login-brand .brand-logo { height: 46px; max-width: 240px; }
.login-brand img:not(.brand-logo) { height: 34px; width: auto; }
.login-box .badge-big { align-self: center; }
.login-box h1 { font-size: 22px; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 14px; background: var(--raised); }
.link-row .grow { flex: 1 1 220px; min-width: 0; }
.link-row .copyable { max-width: 100%; }
.link-row .copyable .mono { font-size: 14px; }
.how-list { margin: 12px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text3); }
.how-list b { color: var(--text); font-weight: 600; }
/* Prices: one row per coin — your price, your markup, what your clients get */
.mk-list { display: flex; flex-direction: column; }
.mk-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 1fr 150px 1fr; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mk-row:last-child { border-bottom: 0; }
.mk-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk-coin b { display: block; font-size: 14px; font-weight: 600; }
.mk-coin .sub { display: block; font-size: 12px; color: var(--faint); }
.mk-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-cell .l { font-size: 12px; color: var(--faint); }
.mk-cell .v { font-size: 15px; font-weight: 600; white-space: nowrap; }
.mk-in .in { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--raised); }
.mk-in .in:focus-within { border-color: var(--focus); }
.mk-in .in.bad { border-color: var(--red); }
.mk-in input { flex: 1; min-width: 0; height: 38px; border: 0; background: none; padding: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.mk-in input:focus { outline: none; }
.mk-in .in span { color: var(--faint); font-size: 13px; }
/* A partner's payout currencies (their Prices page): each on or off for their clients */
.pc-list { display: flex; flex-direction: column; }
.pc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pc-row:last-child { border-bottom: 0; }
.pc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-t b { font-size: 14px; font-weight: 600; }
.pc-t > span { font-size: 12px; color: var(--faint); }
/* …and their currency pairs: a tab for each payout currency (a dot: changes not saved yet), its switch, its pairs */
.pair-tabs button { position: relative; padding: 0 18px 0 8px; }
.pair-tabs button .coin { flex: none; }
@media (max-width: 599px) { .pair-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .pair-tabs button { height: 40px; } } /* (a phone: two by two — every one in sight) */
.pair-head { padding-top: 4px; }
.pair-off .mk-row { opacity: .55; }
/* A currency a partner pays themselves (kwacha): what their clients get for each coin — and its payouts to pay */
.ofx-coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 8px 16px; margin-top: 8px; }
.ofx-coin { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ofx-coin b { font-size: 15px; white-space: nowrap; }
.afield .in.bad { border-color: var(--red); }
.topay { list-style: none; margin: 0; padding: 0; }
.topay > li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.topay > li:last-child { border-bottom: 0; }
.topay > li:hover { background: var(--raised); }
.tp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tp-amt { font-size: 18px; }
.tp-to { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; }
.tp-to span { color: var(--text3); }
.tp-num .copyable { font-size: 15px; }
.tp-acts { display: flex; flex-direction: column; gap: 8px; flex: none; }
@media (max-width: 599px) { .topay > li { flex-direction: column; align-items: stretch; gap: 10px; } .tp-acts { flex-direction: row; } .tp-acts .abtn { flex: 1; justify-content: center; } }
/* Their proof of payment for a kwacha payout (a PDF): a box to choose one, then the file with Remove */
.pdfpick { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line2); background: var(--bg); color: var(--text); cursor: pointer; position: relative; }
.pdfpick:hover, .pdfpick:focus-within { border-color: var(--focus); }
.pdfpick.has { border-style: solid; background: var(--surface); cursor: default; }
.pdfpick > svg { width: 24px; height: 24px; flex: none; color: var(--link); }
.pdfpick .two { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pdfpick .two b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.pdfpick .two span { font-size: 12px; color: var(--muted); line-height: 1.4; }
/* The client's confirmation: the official proof of payment their partner added (kwacha) */
.confirm .cproof { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid #E1E6F0; border-radius: 14px; background: #fff; color: #0B1533; text-align: left; font: inherit; cursor: pointer; }
.confirm .cproof:hover { background: #EEF2FA; }
.confirm .cproof > svg:first-child { width: 24px; height: 24px; flex: none; color: var(--blue, #1463ff); }
.confirm .cproof .two { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.confirm .cproof .two b { font-size: 15px; font-weight: 600; }
.confirm .cproof .two span { font-size: 13px; color: #586179; }
.confirm .cproof .chev { width: 18px; height: 18px; flex: none; color: #8A93A8; }
/* A partner's black & gold proof of payment (client.js popGold — partners.js POP_DESIGNS): the confirmation on a black card
   with a gold edge — guilloché bands (.pd-band, SVG) over a field of fine waves, the amount in gold, the details in ivory.
   Its own colours throughout, never the app's: it looks the same in whichever app it's opened. */
.confirm.pd-gold { background: radial-gradient(120% 45% at 50% -10%, rgba(212, 167, 58, .12), transparent 60%) no-repeat, #070604; color: #F5EFE0; color-scheme: dark; }
.confirm.pd-gold .bar { width: 100%; max-width: 548px; margin: 0 auto; }
.confirm.pd-gold .icon-btn { color: #E8C46A; } .confirm.pd-gold .icon-btn:hover { background: #1C170D; }
.confirm.pd-gold .body { padding: 8px 14px 28px; }
.pd-card { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 94px 22px 58px; border-radius: 22px; border: 1px solid rgba(227, 189, 98, .5); overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='144'%3E%3Cpath d='M0 6.0L6 6.6L12 7.2L18 7.7L24 8.1L30 8.4L36 8.5L42 8.5L48 8.3L54 7.9L60 7.5L66 6.9L72 6.3L78 5.7L84 5.1L90 4.5L96 4.1L102 3.7L108 3.5L114 3.5L120 3.6L126 3.9L132 4.3L138 4.8L144 5.4L150 6.0M0 19.3L6 19.7L12 20.1L18 20.4L24 20.5L30 20.4L36 20.2L42 19.9L48 19.4L54 18.9L60 18.3L66 17.6L72 17.0L78 16.5L84 16.0L90 15.7L96 15.5L102 15.5L108 15.6L114 15.9L120 16.3L126 16.8L132 17.4L138 18.1L144 18.7L150 19.3M0 32.2L6 32.4L12 32.5L18 32.4L24 32.2L30 31.9L36 31.4L42 30.8L48 30.2L54 29.6L60 29.0L66 28.4L72 28.0L78 27.7L84 27.5L90 27.5L96 27.7L102 27.9L108 28.4L114 28.9L120 29.5L126 30.1L132 30.7L138 31.3L144 31.8L150 32.2M0 44.5L6 44.4L12 44.2L18 43.8L24 43.3L30 42.8L36 42.2L42 41.5L48 40.9L54 40.4L60 40.0L66 39.7L72 39.5L78 39.5L84 39.7L90 40.0L96 40.4L102 40.9L108 41.5L114 42.2L120 42.8L126 43.3L132 43.8L138 44.2L144 44.4L150 44.5M0 56.2L6 55.8L12 55.3L18 54.7L24 54.1L30 53.5L36 52.9L42 52.4L48 51.9L54 51.7L60 51.5L66 51.5L72 51.7L78 52.0L84 52.4L90 53.0L96 53.6L102 54.2L108 54.8L114 55.4L120 55.9L126 56.2L132 56.4L138 56.5L144 56.4L150 56.2M0 67.3L6 66.7L12 66.1L18 65.4L24 64.8L30 64.3L36 63.9L42 63.6L48 63.5L54 63.5L60 63.7L66 64.0L72 64.5L78 65.0L84 65.6L90 66.3L96 66.9L102 67.4L108 67.9L114 68.2L120 68.4L126 68.5L132 68.4L138 68.1L144 67.7L150 67.3M0 78.0L6 77.4L12 76.8L18 76.3L24 75.9L30 75.6L36 75.5L42 75.5L48 75.7L54 76.1L60 76.5L66 77.1L72 77.7L78 78.3L84 78.9L90 79.5L96 79.9L102 80.3L108 80.5L114 80.5L120 80.4L126 80.1L132 79.7L138 79.2L144 78.6L150 78.0M0 88.8L6 88.3L12 87.9L18 87.6L24 87.5L30 87.6L36 87.8L42 88.1L48 88.6L54 89.1L60 89.7L66 90.4L72 91.0L78 91.5L84 92.0L90 92.3L96 92.5L102 92.5L108 92.4L114 92.1L120 91.7L126 91.2L132 90.6L138 89.9L144 89.3L150 88.8M0 99.8L6 99.6L12 99.5L18 99.6L24 99.8L30 100.1L36 100.6L42 101.2L48 101.8L54 102.4L60 103.0L66 103.6L72 104.0L78 104.3L84 104.5L90 104.5L96 104.3L102 104.1L108 103.6L114 103.1L120 102.5L126 101.9L132 101.3L138 100.7L144 100.2L150 99.8M0 111.5L6 111.6L12 111.8L18 112.2L24 112.7L30 113.2L36 113.8L42 114.5L48 115.1L54 115.6L60 116.0L66 116.3L72 116.5L78 116.5L84 116.3L90 116.0L96 115.6L102 115.1L108 114.5L114 113.8L120 113.2L126 112.7L132 112.2L138 111.8L144 111.6L150 111.5M0 123.8L6 124.2L12 124.7L18 125.3L24 125.9L30 126.5L36 127.1L42 127.6L48 128.1L54 128.3L60 128.5L66 128.5L72 128.3L78 128.0L84 127.6L90 127.0L96 126.4L102 125.8L108 125.2L114 124.6L120 124.1L126 123.8L132 123.6L138 123.5L144 123.6L150 123.8M0 136.8L6 137.3L12 137.9L18 138.6L24 139.2L30 139.7L36 140.1L42 140.4L48 140.5L54 140.5L60 140.3L66 140.0L72 139.5L78 139.0L84 138.4L90 137.7L96 137.1L102 136.6L108 136.1L114 135.8L120 135.6L126 135.5L132 135.6L138 135.9L144 136.3L150 136.8' fill='none' stroke='rgba(227,189,98,.07)' stroke-width='1'/%3E%3C/svg%3E") repeat, radial-gradient(130% 45% at 50% 0%, rgba(212, 167, 58, .17), transparent 65%) no-repeat, linear-gradient(180deg, #12100A, #0B0A07);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.pd-card::after { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(227, 189, 98, .16); border-radius: 17px; pointer-events: none; }
.pd-card > :not(.pd-band) { position: relative; } /* (the details over the bands) */
.pd-band { position: absolute; left: 6px; width: calc(100% - 12px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.pd-band path { fill: none; vector-effect: non-scaling-stroke; }
.pd-band.top { top: 12px; height: 72px; }
.pd-band.foot { bottom: 12px; height: 30px; }
.confirm.pd-gold h1 { font-family: Montserrat, Geist, system-ui, sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -0.01em; color: #F5EFE0; }
.confirm.pd-gold .amt { margin-top: 18px; font-family: Montserrat, Geist, system-ui, sans-serif; font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  background: linear-gradient(180deg, #F8E3A0 8%, #E0B652 55%, #B8892E 92%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.confirm.pd-gold .amt .cents { color: #8F7A4A; -webkit-text-fill-color: #8F7A4A; }
.pd-orn { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.pd-orn::before, .pd-orn::after { content: ''; flex: 1; height: 1px; }
.pd-orn::before { background: linear-gradient(90deg, rgba(227, 189, 98, 0), rgba(227, 189, 98, .7)); }
.pd-orn::after { background: linear-gradient(90deg, rgba(227, 189, 98, .7), rgba(227, 189, 98, 0)); }
.pd-orn i { width: 7px; height: 7px; transform: rotate(45deg); background: #E3BD62; }
.confirm.pd-gold section { margin-top: 22px; }
.confirm.pd-gold h2 { margin-bottom: 4px; font-family: Montserrat, Geist, system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .22em; color: #E3BD62; }
.confirm.pd-gold dl div { border-bottom-color: #2B2416; }
.confirm.pd-gold dt { color: #A99C80; } .confirm.pd-gold dd { color: #F5EFE0; }
.confirm.pd-gold .cchip.paid { background: linear-gradient(180deg, #F6DD8C 0%, #DDB24A 52%, #B4842A 100%); color: #1A1305; font-weight: 700; }
.confirm.pd-gold .cchip.blue { background: #1F190D; color: #E8C46A; box-shadow: inset 0 0 0 1px #5A4520; }
.confirm.pd-gold .spin.dark { border-color: rgba(227, 189, 98, .25); border-top-color: #E3BD62; }
/* (below the card: the official PDF — kwacha — and the note while it's on its way) */
.confirm.pd-gold .body > section, .confirm.pd-gold .foot-note { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
.confirm.pd-gold .foot-note { color: #A99C80; }
.confirm.pd-gold .cproof { background: #14110B; border-color: #3A2F1A; color: #F5EFE0; }
.confirm.pd-gold .cproof:hover { background: #1C170D; }
.confirm.pd-gold .cproof > svg:first-child { color: #E3BD62; }
.confirm.pd-gold .cproof .two span { color: #A99C80; }
.confirm.pd-gold .cproof .chev { color: #8C8068; }
/* Brand: the form beside the logo and a preview of their sign-up page */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.brand-grid .grid-fields .wide-f { grid-column: 1 / -1; }
.color-row { display: flex; align-items: center; gap: 10px; }
/* Brand → Support: each way their clients reach them, with its switch (off: dimmed, never shown to their clients) */
.sup-f .sup-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.sup-f .sup-off { display: none; font-size: 12px; color: var(--faint); }
.sup-f.off .in { opacity: .45; }
.sup-f.off .sup-off { display: block; }
.color-row input[type=color] { flex: none; width: 44px; height: 40px; padding: 0; border: 1px solid var(--line2); border-radius: 10px; background: none; cursor: pointer; }
.color-row input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.color-row input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-row .in { flex: 1; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.swatches .sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--line2); outline-offset: 1px; padding: 0; }
.swatches .sw[aria-pressed="true"] { border-color: var(--bg); outline: 2px solid var(--text); }
.logo-box { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line2); background: var(--bg); }
.logo-box img { max-height: 64px; max-width: 100%; object-fit: contain; }
.file-btn { cursor: pointer; position: relative; }
.pv-phone { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 280px; margin-left: auto; margin-right: auto; padding: 22px 18px 16px; border-radius: 28px; border: 1px solid var(--line2); background: var(--bg); }
.pv-logo { display: flex; justify-content: center; min-height: 34px; align-items: center; }
.pv-logo img { max-height: 34px; max-width: 180px; object-fit: contain; }
.pv-logo span { font-size: 20px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.pv-tag { text-align: center; font-size: 11px; letter-spacing: .04em; color: var(--muted); min-height: 14px; }
.pv-h { margin-top: 4px; text-align: center; font-size: 16px; font-weight: 600; }
.pv-field { height: 32px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.pv-btn { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; }
.pv-link { text-align: center; font-size: 11.5px; color: var(--link); }
@media (max-width: 1099px) { .brand-grid { grid-template-columns: minmax(0, 1fr); } }
/* A computer: tables; a phone: lists (the amount and status first — nothing to scroll sideways for) */
.only-narrow { display: none; }
.plist { list-style: none; margin: 10px 0 0; padding: 0; }
.plist li { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.plist li:hover { background: rgba(255,255,255,.02); }
.plist .pl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plist .pl-top b { font-size: 16px; font-weight: 600; }
.plist .pl-sub { font-size: 13px; color: var(--text3); overflow-wrap: anywhere; }
.plist .pl-sub.faint { font-size: 12px; color: var(--faint); }
/* A partner's client page: their history's types, under its heading (a flush panel: the panel's own side space) */
.panel.flush > .hist-tabs { margin: 14px 0 2px; padding: 0 20px; }
@media (max-width: 899px) { .panel.flush > .hist-tabs { padding: 0 16px; } }
.cl-list { margin: 4px 0 0; padding: 0 16px; }
.cl-list .who { color: var(--text); }
.cl-list .who:hover b { color: var(--link); }
/* (a partner's Clients page: their invite links switch, and who invited whom) */
.inv-panel .afield.toggle { margin: 0; }
.cl-list .who > a { color: var(--text); }
.cl-list .who > a:hover b { color: var(--link); }
.inv-by a, .inv-list a { color: var(--link); font-weight: 500; }
.inv-list { line-height: 2; }
/* (their referral fee, under the switch — and a client's "Invited by", with Remove link beside it) */
.inv-panel .inv-fee { margin-top: 10px; }
.inv-panel .inv-fee label b { color: var(--text); font-weight: 600; }
.inv-panel .inv-fee .abtn { flex: none; }
.inv-by-row { display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.inv-by-row .link-btn { padding: 0; font-size: 13px; font-weight: 500; color: var(--text3); }
.inv-by-row .link-btn:hover { color: var(--red); }
.afield .in.bad { border-color: var(--red); }
@media (max-width: 899px) {
  .only-wide { display: none; }
  .only-narrow { display: block; }
  /* Prices: the coin and its markup on top, your price and your clients' below */
  .mk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "coin mk" "yours cl"; gap: 8px 12px; }
  .mk-coin { grid-area: coin; }
  .mk-row .mk-in { grid-area: mk; }
  .mk-row .mk-in .l { display: none; }
  .mk-row .mk-yours { grid-area: yours; }
  .mk-row .mk-cl { grid-area: cl; }
  .brand-grid .grid-fields .afield { grid-column: 1 / -1; }
}
/* Your admin: making a client a partner — the address with its name */
.slug-in { display: flex; align-items: center; gap: 0; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); padding-left: 14px; }
.slug-in:focus-within { border-color: var(--focus); }
.slug-in span { color: var(--faint); font-size: 15px; white-space: nowrap; }
.slug-in .input { border: 0; background: none; padding-left: 2px; min-width: 0; }
.slug-in .input:focus { outline: none; box-shadow: none; }
.kv-grid .v.small-v { font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }

/* ══════════════ VIP BULK (a partner's clients: a better rate on a big sale) ══════════════ */
:root { --vip: #E8BE55; --vip-bg: #231B0B; --vip-line: #5A4520; }
.c-gold { color: var(--vip); }
.vip-tag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px 0 5px; margin-left: 4px; vertical-align: 1px; border-radius: 999px; background: var(--vip-bg); border: 1px solid var(--vip-line); color: var(--vip); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.vip-tag svg { width: 10px; height: 10px; }
/* A partner's clients with VIP BULK: the switch — Normal or VIP BULK — on Home (with the currency's flag and refresh)
   and on Sell; with VIP BULK chosen, its minimum under the rates */
.mode-row { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.mode-switch { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 46px; padding: 4px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); }
.mode-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; border: 0; border-radius: 999px; background: none; color: var(--text3); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; transition: background .15s, color .15s; }
.mode-switch button svg { flex: none; width: 15px; height: 15px; color: var(--vip); }
.mode-switch button[aria-checked="true"] { background: var(--blue); color: #fff; }
.mode-switch button[aria-checked="true"] svg { color: currentColor; }
.mode-switch button:focus-visible { outline-offset: -2px; }
.cur-flag { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px 0 9px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); }
.cur-flag select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.cur-flag:focus-within { border-color: var(--focus); }
.cur-flag svg.chev { width: 16px; height: 16px; color: var(--muted); }
.refresh-btn.round { flex: none; width: 46px; height: 46px; padding: 0; justify-content: center; }
.refresh-btn.round svg { width: 18px; height: 18px; }
.refresh-btn.round #rates-upd { min-width: 0; } /* (read out only: the time isn't shown here) */
.rate-tiles.vip .rate-tile { border-color: var(--vip-line); }
.vip-info { margin-top: 8px; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--vip-line); background: var(--vip-bg); color: var(--text); font-size: 13px; line-height: 1.35; }
.vip-info > svg { flex: none; width: 20px; height: 20px; color: var(--vip); }
.vip-info b { font-weight: 700; color: var(--text); }
.vip-info .vi-local { color: var(--text3); }
@media (max-width: 374px) { .mode-row { gap: 6px; } .cur-flag { padding: 0 8px; } .cur-flag svg.chev { display: none; } .mode-switch button { gap: 4px; } }
@media (max-width: 339px) { .mode-switch button { font-size: 13px; } .mode-switch button svg { display: none; } }
/* Sell: VIP BULK's rate and where it starts ("Use": that amount) — and "applied" once the sale reaches it */
.vip-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 9px 10px 9px 12px; border-radius: 16px; border: 1px dashed var(--vip-line); background: var(--vip-bg); color: var(--text); text-align: left; }
.vip-bar > svg:first-child { flex: none; width: 20px; height: 20px; color: var(--vip); }
.vip-bar.warn > svg:first-child { color: var(--amber); }
.vip-bar .vb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vip-bar .vb-t b { font-size: 13.5px; font-weight: 600; color: var(--vip); }
.vip-bar .vb-t > span { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.vip-bar .vb-go { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--vip); color: #1A1305; font-size: 13px; font-weight: 700; }
.vip-bar.on { border-style: solid; border-color: var(--vip); }
.vip-bar.on > svg:last-child { flex: none; width: 18px; height: 18px; color: var(--vip); }
/* A partner's admin: VIP BULK on their Prices page — each coin's usual and VIP rate */
.vip-h { display: flex; align-items: center; gap: 8px; }
.vip-h svg { width: 18px; height: 18px; color: var(--vip); }
.vip-rates { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.vr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.vr-row:last-child { border-bottom: 0; }
.vr-c { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.vr-v { display: flex; flex-direction: column; gap: 1px; }
.vr-v .l { font-size: 11.5px; color: var(--faint); }
.vr-v .num { font-size: 14px; font-weight: 600; white-space: nowrap; }
.vr-v.vip .l { color: var(--vip); font-weight: 600; letter-spacing: .04em; }
/* VIP BULK: a VIP markup on each currency (two by two on a phone) */
.vmk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 12px; }
.vmk { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vmk-c { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.vmk .in { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--raised); }
.vmk .in:focus-within { border-color: var(--focus); }
.vmk .in.bad { border-color: var(--red); }
.vmk input { flex: 1; min-width: 0; height: 38px; border: 0; background: none; padding: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.vmk input:focus { outline: none; }
.vmk .in span { color: var(--faint); font-size: 13px; }
@media (max-width: 599px) {
  .vip-panel .grid-fields .afield { grid-column: 1 / -1; } /* (the minimum: the full width) */
  /* (the coin on its own line, its two rates below: room for ₦ 124,909,965 beside ₦ 123,007,783) */
  .vr-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "coin coin" "usual vip"; gap: 6px 12px; }
  .vr-c { grid-area: coin; }
  .vr-row .vr-v:not(.vip) { grid-area: usual; }
  .vr-row .vr-v.vip { grid-area: vip; }
}
.vr-v.vip .num { color: var(--vip); }
/* A partner's app icon (their admin → Brand, and yours) */
.icon-box { flex: none; width: 72px; height: 72px; border-radius: 18px; border: 1px dashed var(--line2); background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.icon-box img { width: 100%; height: 100%; object-fit: cover; }
.icon-box .small { font-size: 11px; text-align: center; padding: 4px; }
.logo-box.sm { min-height: 72px; padding: 10px; }
.logo-box.sm img { max-height: 48px; }
/* Your admin: a partner's design — the design, their logo, their app icon */
.pt-design { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: 12px; align-items: start; }
.pt-sels { display: flex; flex-direction: column; gap: 12px; min-width: 0; } /* (their app's design, and their proof of payment's) */
.pt-img { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--raised); }
.pt-img .l { font-size: 13px; font-weight: 500; color: var(--text3); }
@media (max-width: 899px) { .pt-design { grid-template-columns: minmax(0, 1fr); } }
.pt-labels { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px 12px; align-items: end; padding: 12px 14px; border-radius: 14px; background: var(--raised); }
.pt-labels > .l { display: flex; flex-direction: column; gap: 2px; align-self: center; font-size: 13px; font-weight: 500; color: var(--text3); }
.pt-labels > .l .s { font-size: 12px; font-weight: 400; color: var(--faint); }
.pt-labels .afield { margin: 0; }
@media (max-width: 899px) { .pt-labels { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pt-labels > .l, .pt-labels > .abtn { grid-column: 1 / -1; } }
/* A partner's own domain: the field and its button side by side (stacked on a phone), and the steps to point it here */
.pt-domain { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; }
.pt-domain .afield { margin: 0; }
@media (max-width: 720px) { .pt-domain { grid-template-columns: minmax(0, 1fr); } }
.pt-dom-steps { margin: 8px 0 0; padding: 12px 14px 12px 34px; border-radius: 14px; background: var(--raised); font-size: 13px; line-height: 1.55; color: var(--text2); }
.pt-dom-steps li + li { margin-top: 6px; }
.pt-dom-steps b { color: var(--text); font-weight: 600; }
.api-box.row-box .acts { flex-wrap: wrap; }

/* ══════════════ A partner's design: Black & gold (you choose it for them — their app and their admin only) ══════════════ */
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
[data-theme="gold"] {
  --bg: #080705; --bg-deep: #040302; --side: #060504;
  --surface: #12100B; --raised: #1A170F; --line: #262014; --line2: #352C1B; --ring: #4A3D24;
  --text: #F7F1E3; --text2: #EDE4CF; --text3: #D2C6A9; --muted: #AFA287; --faint: #8C8068;
  --blue: #D4A73A; --blue-hover: #E2B84E; --focus: #E5C065; --link: #E8C46A; --link-hover: #F5DB97; --sel: #2A2110; --sel-line: #5A4520; --live: #F2CF6B;
  --note-bg: #1C160A;
  --vip: #F0CB6A; --vip-bg: #1F180B; --vip-line: #6B5226;
  --gold-grad: linear-gradient(180deg, #F6DD8C 0%, #DDB24A 52%, #B4842A 100%);
  --on-gold: #1A1305;
}
[data-theme="gold"] body { background: var(--bg); }
[data-theme="gold"] .app { background: radial-gradient(130% 55% at 50% -8%, rgba(212, 167, 58, .10), transparent 60%) no-repeat, var(--bg); }
/* Headings and the big amounts: Montserrat (the logo's lettering) */
[data-theme="gold"] .page h1.big, [data-theme="gold"] .auth-head h1, [data-theme="gold"] .sheet h2, [data-theme="gold"] .backbar h1, [data-theme="gold"] .big-amount,
[data-theme="gold"] .amount-input input, [data-theme="gold"] .amount-input .cur, [data-theme="gold"] .coin-hero .bal, [data-theme="gold"] .ph h2, [data-theme="gold"] .brand-word {
  font-family: Montserrat, Geist, system-ui, sans-serif; letter-spacing: -0.02em;
}
[data-theme="gold"] .big-amount, [data-theme="gold"] .amount-input input, [data-theme="gold"] .amount-input .cur { font-size: 40px; font-weight: 700; }
[data-theme="gold"] .amount-input.md .cur, [data-theme="gold"] .amount-input.md input { font-size: 32px; }
[data-theme="gold"] .page h1.big { font-size: 28px; font-weight: 700; }
[data-theme="gold"] .amount-input { border-bottom-color: var(--line2); }
[data-theme="gold"] .amount-input:focus-within { border-bottom-color: var(--blue); }
/* Buttons: gold, dark lettering */
[data-theme="gold"] .btn { background: var(--gold-grad); color: var(--on-gold); font-weight: 700; letter-spacing: .01em; box-shadow: 0 6px 18px rgba(212, 167, 58, .18), inset 0 1px 0 rgba(255, 245, 210, .5); }
[data-theme="gold"] .btn:hover { background: var(--gold-grad); color: var(--on-gold); filter: brightness(1.06); }
[data-theme="gold"] .btn.ghost { background: var(--surface); color: var(--text); box-shadow: none; border-color: var(--line2); font-weight: 500; }
[data-theme="gold"] .btn.quiet { background: none; box-shadow: none; color: var(--muted); font-weight: 400; }
[data-theme="gold"] .btn.danger { background: var(--red-bg); color: var(--red); box-shadow: none; }
[data-theme="gold"] .btn .spin, [data-theme="gold"] .abtn.primary .spin { border-color: rgba(26, 19, 5, .3); border-top-color: var(--on-gold); }
[data-theme="gold"] .pill-btn.link { color: var(--link); border-color: var(--sel-line); }
[data-theme="gold"] .switch[aria-checked="true"] { background: var(--blue); }
[data-theme="gold"] .switch[aria-checked="true"]::after { background: #FFF8E6; }
[data-theme="gold"] .chip.blue { background: var(--sel); color: var(--link); }
[data-theme="gold"] .step-dot.done { background: var(--blue); color: var(--on-gold); }
[data-theme="gold"] .chips button[aria-selected="true"], [data-theme="gold"] .tabs button[aria-selected="true"] { background: var(--gold-grad); color: var(--on-gold); border-color: #C99A35; }
[data-theme="gold"] .mode-switch { background: #100E09; border-color: #3A2F1A; }
[data-theme="gold"] .mode-switch button[aria-checked="true"] { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 4px 14px rgba(212, 167, 58, .22); }
[data-theme="gold"] .cur-flag, [data-theme="gold"] .refresh-btn.round { background: #100E09; border-color: #3A2F1A; }
[data-theme="gold"] .toast { background: #F6E7B8; color: var(--on-gold); }
[data-theme="gold"] .toast.bad { background: var(--red); color: #1A0703; }
[data-theme="gold"] .sheet-back { background: rgba(4, 3, 2, .8); }
[data-theme="gold"] .sheet { border-top-color: #4A3A1C; }
/* The top bar and the sign-in screens: their logo, bigger; the tagline in gold capitals */
[data-theme="gold"] .topbar .brand-logo { height: 36px; max-width: 180px; }
[data-theme="gold"] .auth-hero { gap: 12px; }
[data-theme="gold"] .auth-hero .brand-logo { height: 64px; max-width: 270px; }
[data-theme="gold"] .slogan.brand-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--link); }
[data-theme="gold"] .auth-head h1 { font-size: 28px; font-weight: 700; }
/* Home: the total on a black card with a gold edge; gold section titles; rate tiles with a gold coin name */
[data-theme="gold"] .total { margin-top: 10px; padding: 12px 16px 12px; border-radius: 20px; border: 1px solid #4A3A1C;
  background: radial-gradient(120% 150% at 100% 0%, rgba(212, 167, 58, .17), transparent 55%), linear-gradient(180deg, #16120A, #0C0A06); box-shadow: inset 0 1px 0 rgba(240, 203, 106, .08); }
[data-theme="gold"] .total .lab { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
[data-theme="gold"] .total .val { margin-top: 6px; }
[data-theme="gold"] .total .usd-eq { margin-top: 4px; font-size: 15px; color: var(--text3); }
[data-theme="gold"] .rates-head { margin-top: 14px; }
[data-theme="gold"] h2.title { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link); }
[data-theme="gold"] .rate-tile { background: linear-gradient(180deg, #15120C, #100E09); border-color: #2C2516; }
[data-theme="gold"] a.rate-tile:hover { border-color: #4A3A1C; }
[data-theme="gold"] .rate-tile .rt-c { color: var(--link); letter-spacing: .06em; }
[data-theme="gold"] .rate-tile .rt-z { font-family: Montserrat, Geist, system-ui, sans-serif; font-size: 17px; font-weight: 700; }
[data-theme="gold"] .refresh-btn svg, [data-theme="gold"] .cur-pick svg { color: var(--link); }
[data-theme="gold"] .actions { margin-top: 14px; }
[data-theme="gold"] .actions .circ { background: #14110B; border-color: #4A3A1C; color: var(--link); }
[data-theme="gold"] .actions a.primary .circ { background: var(--gold-grad); border-color: #C99A35; color: var(--on-gold); box-shadow: 0 6px 18px rgba(212, 167, 58, .22); }
[data-theme="gold"] .asset { background: linear-gradient(180deg, #13100B, #0F0D09); border-color: #262014; }
[data-theme="gold"] .asset:hover { border-color: #4A3A1C; }
[data-theme="gold"] .coin-select, [data-theme="gold"] .dl, [data-theme="gold"] .list, [data-theme="gold"] .formbox, [data-theme="gold"] .card { border-color: #2C2516; }
/* The bottom bar: black, the page you're on in gold */
[data-theme="gold"] .nav { background: rgba(8, 7, 5, .96); border-top-color: #2C2516; }
[data-theme="gold"] .nav a[aria-current="page"] { color: var(--link); }
[data-theme="gold"] .nav a[aria-current="page"] svg { color: var(--vip); }
/* Their admin: gold buttons and the page you're on */
[data-theme="gold"] .abtn.primary { background: var(--gold-grad); border-color: #C99A35; color: var(--on-gold); font-weight: 700; }
[data-theme="gold"] .abtn.primary:hover { background: var(--gold-grad); filter: brightness(1.06); color: var(--on-gold); }
[data-theme="gold"] .side nav a[aria-current="page"] { background: var(--sel); color: var(--link); box-shadow: inset 2px 0 0 var(--blue); }
[data-theme="gold"] .side nav a[aria-current="page"] svg { color: var(--vip); }
[data-theme="gold"] .panel { border-color: #2C2516; }
[data-theme="gold"] .partner-link .pl-ico, [data-theme="gold"] .pv-btn { background: var(--gold-grad); color: var(--on-gold); }
[data-theme="gold"] .ph h2 { font-weight: 700; }

/* A partner's news on their clients' Home screen (client.js newsCard): a compact card right under the balance, in their
   colour — its Share your link at the end of the message (a few lines: the buttons below stay on the first screen) —
   × closes it on that phone until their next message */
.pnews { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 38px 12px 12px; border-radius: 16px;
  border: 1px solid var(--sel-line); background: radial-gradient(130% 160% at 0% 0%, var(--sel) 0%, var(--surface) 75%); }
.pnews-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--blue); color: #fff; }
.pnews-ic svg { width: 19px; height: 19px; }
.pnews-text { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.42; color: var(--text); overflow-wrap: anywhere; }
/* (a link in the text: its tap area reaches above and below the line) */
.pnews-cta { padding: 10px 2px; margin: -10px -2px; color: var(--link); font-weight: 600; white-space: nowrap; }
.pnews-cta:hover { color: var(--link-hover); }
.pnews-x { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--faint); }
.pnews-x:hover { color: var(--text); background: var(--raised); }
.pnews-x svg { width: 15px; height: 15px; }
[data-theme="gold"] .pnews-ic { background: var(--gold-grad); color: var(--on-gold); }
/* The partner's News for your clients (their Brand page): the message and its button, and their clients' card beside it */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }
.stack8 { display: flex; flex-direction: column; gap: 8px; }
.afield .atext.news-ta { min-height: 84px; }
.news-pv { padding: 16px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line2); }
.news-pv-cap { margin-bottom: 10px; font-size: 12px; color: var(--faint); }
.news-pv .pnews { margin-top: 0; }
.news-pv .pnews-x { color: var(--faint); }
.pnews.off { opacity: .45; }
.news-panel { margin-bottom: 16px; }

/* Paid out (their app's Account, while Settings → Paid-out totals is on): one month's figure, the last 6 months as
   columns — the chosen month in the accent, the rest a recessive grey (both at least 3:1 on the card) — the periods
   below, and each month as a table too. More than one currency: a choice above the card. */
:root { --po-muted: #5F6C94; }
[data-theme="gold"] { --po-muted: #6B5F48; }
.po-curs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.po-curs button { height: 32px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--text3); font-size: 13px; font-weight: 500; }
.po-curs button[aria-selected="true"] { border-color: var(--sel-line); background: var(--sel); color: var(--text); }
.po-box { overflow: hidden; }
.po-head { padding: 16px 16px 2px; }
.po-lab { font-size: 13px; color: var(--muted); }
.po-val { margin-top: 2px; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.po-sub { margin-top: 3px; font-size: 13px; color: var(--muted); }
.po-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: 136px; margin: 6px 8px 0; }
.po-col { display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: 100%; padding: 10px 0; border: 0; border-radius: 12px; background: none; color: var(--faint); }
.po-col:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* (the columns sit on one hairline: each track's bottom edge, side by side) */
.po-track { display: flex; flex: 1; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line2); }
.po-bar { display: block; width: 22px; max-width: 60%; height: 0; border-radius: 4px 4px 0 0; background: var(--po-muted); transition: height .4s ease, background-color .15s ease; }
.po-col[aria-pressed="true"] .po-bar { background: var(--blue); }
.po-col:hover .po-bar { filter: brightness(1.2); }
.po-mon { font-size: 12px; line-height: 1; text-align: center; }
.po-col[aria-pressed="true"] .po-mon { color: var(--text); font-weight: 600; }
/* (Account: the row that opens it — this month's total beside it) */
.set-row.po-entry { gap: 12px; }
.po-entry-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--sel); color: var(--link); }
.po-entry-ic svg { width: 18px; height: 18px; }
.po-box { padding-bottom: 4px; }
.po-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.po-row:last-child { border-bottom: 0; }
.po-row .two { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.po-row .l2 { font-size: 15px; color: var(--text); }
.po-row .l1 { font-size: 12px; color: var(--faint); }
.po-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.po-amt b { font-size: 15px; font-weight: 600; }
.po-amt span { font-size: 12px; color: var(--faint); }
.po-list { padding: 8px 16px 4px; }
.po-list table { width: 100%; border-collapse: collapse; font-size: 14px; }
.po-list th { padding: 4px 0 8px; font-size: 12px; font-weight: 500; color: var(--faint); text-align: left; }
.po-list td { padding: 11px 0; border-top: 1px solid var(--line); }
.po-list .r { text-align: right; }
.po-empty { display: flex; align-items: center; gap: 12px; padding: 18px 16px; font-size: 14px; color: var(--muted); }
.po-empty-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--raised); color: var(--text3); }
.po-empty-ic svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .po-bar { transition: none; } }
/* Admin → Overview: Naira balances (Nov 2026) — each Flutterwave store in turn, then Nomba: name and account number,
   what it does now, what it paid today, its balance, and its Active / Under review switch. One line each on a wide
   screen (a row's two parts lay out as one grid row); on a phone: name and balance, then its state and its switch,
   then what it paid today. */
.nb-total { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; white-space: nowrap; }
.nb-total b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.nbal { list-style: none; margin: 10px 0 0; padding: 0; }
/* (each row is its own grid: the balance and the switch get set widths, so every row lines up — one not connected has no switch) */
.nbal > li { display: grid; grid-template-columns: 26px minmax(170px, 1fr) 116px minmax(0, 1.4fr) 150px 180px;
  grid-template-areas: "n who st today bal seg"; align-items: center; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.nbal > li:first-child { border-top: 0; }
.nb-l1, .nb-l2 { display: contents; }
.nb-n { grid-area: n; align-self: start; margin-top: 1px; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-who { grid-area: who; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-who a { color: var(--text); } .nb-who a:hover { color: var(--link); }
.nb-who b { font-size: 14px; font-weight: 600; }
.nb-acc { font-size: 13px; color: var(--text3); }
.nb-acc .copyable .icon-btn { width: 26px; height: 26px; }
.nb-st { grid-area: st; }
.nb-today { grid-area: today; color: var(--text3); font-variant-numeric: tabular-nums; }
.nb-bal { grid-area: bal; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; white-space: nowrap; }
.nb-bal b { font-size: 16px; font-weight: 600; }
.nb-bal > span { font-size: 12px; color: var(--faint); }
.nb-seg { grid-area: seg; justify-self: end; }
.nbal > li.is-review .nb-n { background: var(--amber-bg); color: var(--amber); }
.nbal > li.is-review .nb-bal b { color: var(--text3); }
.nbal > li.is-off .nb-who b, .nbal > li.is-off .nb-acc { color: var(--muted); }
/* Active · Under review: two radio buttons as one switch (the Overview, and Settings → Naira accounts) */
.rv-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line2); }
.rv-seg label { position: relative; display: inline-flex; }
.rv-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rv-seg span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.rv-seg label:hover span { color: var(--text2); }
.rv-seg .rv-a input:checked + span { background: var(--green-bg); color: var(--green); }
.rv-seg .rv-r input:checked + span { background: var(--amber-bg); color: var(--amber); }
.rv-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
/* (stacked below 1300px wide — with the menu beside it, one line needs about 900px for the row) */
@media (max-width: 1299px) {
  .nbal > li { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "n l1" "n l2"; gap: 8px 10px; }
  .nb-l1 { grid-area: l1; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0; }
  .nb-l2 { grid-area: l2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
  .nb-seg { margin-left: auto; }
  .nb-today { font-size: 12px; }
}
@media (max-width: 599px) { .nb-today { order: 3; flex-basis: 100%; } } /* (a phone: today's total on a line of its own) */
/* Settings → Naira accounts: each account's number and its switch */
.nacc { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nacc li { display: grid; grid-template-columns: 26px minmax(160px, 1fr) minmax(150px, 210px) auto; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 14px; background: var(--raised); }
.nacc .nb-n { grid-area: auto; align-self: center; margin: 0; background: var(--surface); } /* (no named areas here) */
.nacc-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nacc-name b { font-size: 14px; font-weight: 500; }
.nacc-name span { font-size: 12px; color: var(--faint); }
.nacc-num .in { display: flex; align-items: center; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); }
.nacc-num .in:focus-within { border-color: var(--focus); }
.nacc-num input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; padding: 0; color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.nacc-num input:focus { outline: none; }
.nacc .rv-seg { justify-self: end; background: var(--surface); }
@media (max-width: 1023px) {
  .nacc li { grid-template-columns: 24px minmax(0, 1fr); }
  .nacc-num, .nacc .rv-seg { grid-column: 2; justify-self: stretch; }
  .nacc .rv-seg { justify-self: start; }
}
@media (pointer: coarse) { .nacc-num input { font-size: 16px; } }
