/* Monyx: a payments app first, a crypto app second.
   Light by default, dark when the phone is in dark mode.
   One brand colour (sage green, #CEE4C3 with dark green ink) for actions and the balance card.
   Green only ever means money coming in; red only ever means a problem. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f8;
  --card: #ffffff;
  --card2: #f0f0f4;
  --sheet: #f5f5f8;
  --ink: #14131a;
  --ink2: #3c3b47;
  --mute: #6d6b79;
  --faint: #a4a2ae;
  --line: rgba(20, 19, 26, .07);
  --line2: rgba(20, 19, 26, .13);
  --brand: #3E6B30;
  --brand-hover: #2F5424;
  --brand-soft: #E6F1DF;
  --brand-ink: #2F5424;
  --bad: var(--red);
  --green: #0e9a62;
  --red: #d63b2c;
  --amber: #a86b0f;
  --amber-soft: #fdf3e1;
  --sk: #e6e6ec;
  --shadow: 0 1px 2px rgba(20, 19, 26, .04), 0 8px 24px -12px rgba(20, 19, 26, .12);
  --radius: 22px;
  --font: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c10;
    --card: #16161c;
    --card2: #1e1e26;
    --sheet: #121218;
    --ink: #f4f3f8;
    --ink2: #c9c7d3;
    --mute: #8e8c9a;
    --faint: #5f5d6b;
    --line: rgba(255, 255, 255, .07);
    --line2: rgba(255, 255, 255, .13);
    --brand: #3E6B30;
    --brand-hover: #2F5424;
    --brand-soft: #E6F1DF;
    --brand-ink: #2F5424;
    --green: #3ddc97;
    --red: #ff7a6b;
    --amber: #f2c46d;
    --amber-soft: rgba(242, 196, 109, .08);
    --sk: #262630;
    --shadow: none;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.shell { max-width: 460px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
#app { padding: 0 20px; }
.screen { animation: in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* ── type ── */
h1 { font-size: 38px; line-height: 1.05; letter-spacing: -.04em; font-weight: 700; margin: 0 0 14px; }
h2 { font-size: 27px; line-height: 1.12; letter-spacing: -.03em; font-weight: 650; margin: 0 0 8px; }
h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.sub { color: var(--mute); font-size: 15px; }
.fine { color: var(--faint); font-size: 13px; text-align: center; }
.fine a { color: var(--mute); }
.up { color: var(--green); } .down { color: var(--red); }

/* ── brand ── */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 22px; letter-spacing: -.045em; }
.mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.mark rect { fill: var(--brand); }
.mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── buttons & fields ── */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 16px; border: 0; font-weight: 600; font-size: 16px; letter-spacing: -.01em; transition: transform .1s, background .15s, opacity .15s, box-shadow .15s; text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-hover); }
.btn-light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-light:hover { box-shadow: inset 0 0 0 1px var(--faint); }
.btn-text { background: none; color: var(--ink2); height: 46px; }
.btn-text:hover { color: var(--ink); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-sm { height: 40px; border-radius: 12px; font-size: 14px; width: auto; padding: 0 16px; }
.btn svg { flex-shrink: 0; }

.field { display: block; background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line2); padding: 4px 16px; transition: box-shadow .15s; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.field input, .field textarea { width: 100%; border: 0; outline: 0; background: none; height: 50px; font-size: 17px; }
.field textarea { height: auto; padding: 12px 0; resize: none; font: 500 14px/1.6 var(--mono); }
.field.prefix { display: flex; align-items: center; gap: 2px; }
.field.prefix span { color: var(--faint); font-size: 17px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.hint { font-size: 14px; color: var(--mute); margin: 10px 4px 0; min-height: 20px; }
.hint.ok { color: var(--green); } .hint.bad { color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--amber); background: var(--amber-soft); padding: 5px 10px; border-radius: 99px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── avatars ── */
.av { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: calc(var(--s) * .37); color: #fff; flex-shrink: 0; letter-spacing: -.02em; overflow: hidden; }
.av.lg { --s: 84px; } .av.md { --s: 56px; } .av.sm { --s: 34px; }
.av.bank { background: var(--brand) !important; }
.av.bank .mark { width: 100%; height: 100%; }
.av.addr { background: var(--card2) !important; color: var(--mute); }
.av.coin { font-size: calc(var(--s) * .26); letter-spacing: .02em; }

/* ── welcome ── */
.welcome { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 28px 0 32px; margin-bottom: -96px; }
.art { flex: 1; display: grid; place-items: center; min-height: 270px; position: relative; }
.art::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 68%); }
.art .stage { position: relative; width: 290px; height: 220px; }
.art .bubble { position: absolute; background: var(--card); border-radius: 20px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px rgba(20, 19, 26, .28); display: flex; align-items: center; gap: 12px; }
.art .b1 { top: 8px; left: 0; animation: float 6s ease-in-out infinite; }
.art .b2 { bottom: 10px; right: 0; animation: float 6s ease-in-out -3s infinite; }
.art .bubble b { display: block; font-size: 15px; font-weight: 600; } .art .bubble span { font-size: 13px; color: var(--mute); }
.art .bubble .amt { font-weight: 600; font-size: 17px; margin-left: 6px; color: var(--ink); }
.art .bubble .amt.in { color: var(--green); }
@keyframes float { 50% { transform: translateY(-6px); } }
.welcome .cta { display: grid; gap: 10px; margin-top: 20px; }
.banner { background: var(--card); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: inset 0 0 0 1px var(--line); margin-top: 18px; font-size: 15px; }

/* ── steps ── */
.steps { padding: 18px 0 32px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; margin-bottom: -96px; }
.steps .topline { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 24px; }
.back, .x { background: none; border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-left: -8px; color: var(--ink2); }
.back:hover, .x:hover { background: var(--card2); color: var(--ink); }
.back svg, .x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line2); transition: background .3s; }
.dots i.on { background: var(--brand); }
.steps .body { flex: 1; }
.steps .foot { display: grid; gap: 10px; }
.keybox { background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line2); padding: 16px; font: 500 14px/1.7 var(--mono); word-break: break-all; filter: blur(6px); transition: filter .2s; cursor: pointer; user-select: none; }
.keybox.show { filter: none; user-select: all; }
.keybox:not(.show) { filter: none; color: var(--mute); font-family: inherit; text-align: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin-top: 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; flex-shrink: 0; }
.warn { display: flex; gap: 10px; background: var(--amber-soft); color: var(--amber); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 16px 0; }

/* ── home ── */
.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top b { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.top .me { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }

/* The balance card: a solid brand-coloured card, like the debit card in your wallet. */
.balance { position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px 22px 18px; background: var(--brand); color: #fff; box-shadow: 0 18px 40px -20px rgba(62, 107, 48, .55); }
.balance::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.balance > * { position: relative; z-index: 1; }
.balance .label { font-size: 14px; color: rgba(255, 255, 255, .78); display: flex; justify-content: space-between; align-items: center; }
.balance .label .cur { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.balance .amount { font-size: 50px; font-weight: 700; letter-spacing: -.045em; margin: 8px 0 18px; font-variant-numeric: tabular-nums; line-height: 1.05; }
.balance .amount small { font-size: .52em; vertical-align: .6em; margin-right: 2px; letter-spacing: 0; color: rgba(255, 255, 255, .8); }
.balance .amount .cents { font-size: .52em; vertical-align: .6em; color: rgba(255, 255, 255, .62); margin-left: 2px; letter-spacing: 0; }
.balance .btn-dark { background: #fff; color: #3e2ec4; }
.balance .btn-dark:hover { background: #f3f1ff; }
.balance .btn-light { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.balance .btn-light:hover { background: rgba(255, 255, 255, .24); }
.balance .up, .balance .down { color: #fff; background: rgba(255, 255, 255, .16); padding: 2px 9px; border-radius: 99px; font-size: 13px; font-weight: 500; }
.balance .skeleton { background: rgba(255, 255, 255, .18); animation: none; }
.cryptorow { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 10px 12px; background: rgba(255, 255, 255, .12); border-radius: 12px; text-decoration: none; font-size: 14px; color: #fff; }
.cryptorow span { color: rgba(255, 255, 255, .78); flex: 1; } .cryptorow b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cryptorow .chev { stroke: rgba(255, 255, 255, .7); }

/* Get-started checklist for brand-new accounts */
.start { background: var(--card); border-radius: var(--radius); margin-top: 14px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.start-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 12px 10px 18px; }
.start-h b { display: block; font-size: 16px; font-weight: 650; } .start-h span { font-size: 13px; color: var(--mute); }
.start .bar { height: 4px; background: var(--card2); margin: 0 18px 8px; border-radius: 2px; overflow: hidden; }
.start .bar i { display: block; height: 100%; background: var(--green); border-radius: 2px; transition: width .5s; }
.srow { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 18px; background: none; border: 0; text-align: left; }
.srow:hover { background: var(--card2); }
.srow .ck { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); flex-shrink: 0; }
.srow.ok .ck { background: var(--green); color: #fff; }
.srow .ck svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.srow .mid { flex: 1; display: grid; } .srow .mid b { font-weight: 600; font-size: 15px; } .srow .mid span { font-size: 13px; color: var(--mute); }
.srow.ok .mid b { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--faint); }

.people { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -20px; padding-left: 20px; scrollbar-width: none; }
.people::-webkit-scrollbar { display: none; }
.person { background: none; border: 0; padding: 0; display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink2); width: 62px; flex-shrink: 0; }
.person span { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hrow { display: flex; justify-content: space-between; align-items: baseline; }
.hrow a { font-size: 14px; color: var(--brand-ink); text-decoration: none; font-weight: 500; }

.list { background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.item:first-child { border-top: 0; }
.item .mid { flex: 1; min-width: 0; }
.item .t { font-size: 15px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t b { font-weight: 600; color: var(--ink); }
.item .s { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s.up { color: var(--green); } .item .s.down { color: var(--red); }
.item .amt, .amt { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.amt.in { color: var(--green); }
a.item:hover, button.item:hover { background: var(--card2); }
button.item { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; }
button.item:first-child { border-top: 0; }
.empty { text-align: center; color: var(--mute); padding: 34px 24px; font-size: 15px; }
.empty a { color: var(--brand-ink); }
.req { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); margin-bottom: 10px; }
.req .row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.req .row .t { font-size: 15px; color: var(--ink2); } .req .row .t b { color: var(--ink); } .req .row .s { font-size: 13px; color: var(--mute); }
.skeleton { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--card2) 25%, var(--sk) 50%, var(--card2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── pay ── */
.payhead { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.payhead b { font-size: 16px; font-weight: 600; }
.amountin { display: flex; justify-content: center; align-items: baseline; padding: 26px 0 30px; }
.amountin span { font-size: 40px; font-weight: 600; color: var(--mute); margin-right: 2px; transform: translateY(-14px); }
.amountin input { border: 0; outline: 0; background: none; font-size: 76px; font-weight: 700; letter-spacing: -.05em; text-align: left; width: 1.2ch; min-width: 1ch; max-width: 100%; padding: 0; font-variant-numeric: tabular-nums; caret-color: var(--brand); }
.amountin input::placeholder { color: var(--faint); }
.avail { text-align: center; font-size: 13px; color: var(--mute); margin-top: -18px; margin-bottom: 22px; }
.avail.bad { color: var(--red); }
.chip { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line2); padding: 10px 12px; }
.chip .mid { flex: 1; min-width: 0; } .chip .t { font-weight: 600; font-size: 15px; } .chip .s { font-size: 13px; color: var(--mute); }
.results { margin-top: 8px; }
.scan { background: none; border: 0; padding: 0 2px 0 8px; color: var(--ink2); display: grid; place-items: center; }
.scan svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.emojis { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.emojis button { border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); border-radius: 99px; height: 34px; padding: 0 13px; font-size: 14px; color: var(--ink2); }
.emojis button:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--ink); }
.splitlink { display: flex; align-items: center; gap: 8px; margin: 18px auto 0; background: none; border: 0; color: var(--brand-ink); font-weight: 500; font-size: 14px; }
.splitlink svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.payfoot { position: sticky; bottom: 0; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); margin-top: 18px; }

/* ── sheets ── */
.sheet-wrap { position: fixed; inset: 0; background: rgba(12, 12, 16, .45); backdrop-filter: blur(2px); display: flex; align-items: flex-end; justify-content: center; z-index: 30; animation: fade .2s; }
.sheet { background: var(--sheet); width: 100%; max-width: 460px; border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .32s cubic-bezier(.2, .9, .2, 1); max-height: 92vh; overflow: auto; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 18px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.confirm { text-align: center; padding: 6px 0 18px; }
.confirm .av { margin: 0 auto 12px; }
.confirm .big { font-size: 54px; font-weight: 700; letter-spacing: -.045em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.confirm .note { color: var(--ink2); }
.ledger { background: var(--card); border-radius: 16px; padding: 4px 16px; margin: 16px 0; box-shadow: inset 0 0 0 1px var(--line); }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ledger div:first-child { border-top: 0; }
.ledger span { color: var(--mute); }
.ledger b { font-weight: 500; text-align: right; }

.done { text-align: center; padding: 24px 0 12px; }
.tick { width: 78px; height: 78px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 20px; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.tick svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .25s forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.receipt { font-size: 13px; color: var(--mute); }
.receipt a { color: var(--brand-ink); }

/* ── invest ── */
.spark { flex-shrink: 0; margin: 0 6px; }
.bigspark { margin: 16px 0 8px; } .bigspark svg { width: 100%; height: 110px; display: block; }
.assethead { display: flex; align-items: center; gap: 12px; } .assethead .t { font-weight: 600; font-size: 18px; } .assethead .s { color: var(--mute); font-size: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card2); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; height: 36px; border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--mute); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 19, 26, .12); }
.swapbox { position: relative; display: grid; gap: 6px; margin-top: 16px; }
.swaprow { display: flex; align-items: center; gap: 10px; background: var(--card); border: 0; border-radius: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line2); text-align: left; }
.swaprow:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.swaprow .lbl { font-size: 12px; color: var(--mute); width: 34px; }
.swaprow .mid { flex: 1; display: grid; } .swaprow .mid b { font-weight: 600; font-size: 15px; } .swaprow .mid .s { font-size: 13px; color: var(--mute); }
.swapflip { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--sheet); }
.swapflip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }

/* ── me ── */
.profile { text-align: center; padding: 12px 0 8px; }
.profile .av { margin: 0 auto 12px; }
.profile .name { font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.profile .handle { color: var(--mute); }
.qrcard { background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; margin-top: 20px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
/* QR codes need dark-on-light to scan, so this tile stays white in dark mode too. */
.qrcard .qr { width: 196px; height: 196px; margin: 0 auto 16px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: inset 0 0 0 1px rgba(20, 19, 26, .08); }
.qrcard .qr svg { width: 100%; height: 100%; display: block; }
.qrcard p { font-size: 14px; color: var(--mute); margin-bottom: 16px; }
.menu .item { cursor: pointer; }
.menu .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; flex-shrink: 0; }
.menu .ico svg { width: 18px; height: 18px; fill: none; stroke: var(--brand-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu .t { color: var(--ink); }
.chev { width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; flex-shrink: 0; }
.kv { font-size: 13px; color: var(--mute); word-break: break-all; font-family: var(--mono); }
.kv b { color: var(--ink); font: 500 14px var(--font); display: block; }

.steplist { counter-reset: s; display: grid; gap: 10px; margin: 14px 0; }
.steplist div { display: flex; gap: 12px; align-items: center; background: var(--card); padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.steplist div::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.steplist .btn-sm { margin-left: auto; }

.cam { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 1; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam::after { content: ""; position: absolute; inset: 18%; border: 2px solid #fff; border-radius: 22px; }

/* ── tab bar ── */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 10; }
.tabbar a { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 500; text-decoration: none; color: var(--faint); transition: color .15s; }
.tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a.on { color: var(--brand-ink); }
.tabbar .tab-pay { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; justify-self: center; display: grid; place-items: center; margin-top: -26px; box-shadow: 0 10px 22px -8px rgba(62, 107, 48, .6), 0 0 0 5px var(--bg); }
.tabbar .tab-pay svg { width: 26px; height: 26px; stroke-width: 2.4; }
.tabbar .tab-pay.on { color: #fff; }

.toast { position: fixed; top: calc(16px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500; z-index: 50; max-width: min(420px, 92vw); animation: drop .25s cubic-bezier(.2, .9, .2, 1); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45); }
.toast.bad { background: var(--red); color: #fff; }
.toast a { color: inherit; }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  body { padding-top: 24px; }
  .welcome, .steps { min-height: calc(100vh - 48px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── profile photos ── */
.av { position: relative; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avedit { position: relative; display: block; margin: 0 auto 12px; padding: 0; border: 0; background: none; border-radius: 50%; }
.avedit .av { margin: 0; }
.avedit .badge { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.avedit .badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.avedit:hover .badge { background: var(--brand-hover); }
.avprev { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; display: block; margin: 8px auto 0; box-shadow: 0 0 0 4px var(--card), 0 12px 30px -12px rgba(20, 19, 26, .35); }

/* ── voice: talk to pay ── */
.talkbar { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 12px 16px 12px 12px; border: 0; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; color: var(--ink); cursor: pointer; transition: box-shadow .15s, transform .1s; }
.talkbar:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.talkbar:active { transform: scale(.99); }
.talkbar .mic, .art .say .mic { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.talkbar .mic svg, .art .say .mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.talkbar b { display: block; font-size: 16px; font-weight: 600; }
.talkbar .mid span { font-size: 14px; color: var(--mute); }
.art .say .mic { width: 36px; height: 36px; }
.art .say .mic svg { width: 18px; height: 18px; }
.payhead .mic svg { stroke: var(--brand); }

.talk { text-align: center; padding: 8px 0 6px; }
.orb { --lv: 0; position: relative; width: 104px; height: 104px; margin: 4px auto 18px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 16px 36px -16px rgba(62, 107, 48, .7); transition: transform .15s; }
.orb:active { transform: scale(.96); }
.orb svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 2; }
.orb i { position: absolute; inset: 0; border-radius: 50%; background: var(--brand); opacity: 0; z-index: 0; pointer-events: none; }
.orb.on i { opacity: .16; transform: scale(calc(1 + var(--lv) * .55)); transition: transform .08s linear; }
.orb.on i:nth-child(3) { opacity: .1; transform: scale(calc(1 + var(--lv) * .9)); }
.orb.on i:nth-child(4) { opacity: .06; transform: scale(calc(1.06 + var(--lv) * 1.25)); }
.orb.on { animation: breathe 1.6s ease-in-out infinite; }
.orb.thinking { background: var(--brand-ink); }
.orb.thinking svg { animation: pulse 1s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 16px 44px -10px rgba(62, 107, 48, .85); } }
@keyframes pulse { 50% { opacity: .35; } }
.heard { font-size: 17px; font-weight: 600; min-height: 24px; padding: 0 10px; }
.said { font-size: 15px; color: var(--mute); margin-top: 6px; min-height: 20px; padding: 0 10px; }
.vres { margin-top: 10px; }
.vres .big { font-size: 48px; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.vres .s { color: var(--mute); font-size: 14px; }
.vres .list { text-align: left; margin-top: 6px; }
.tries { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 14px; }
.tries[hidden] { display: none; }
.tries button { border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); border-radius: 99px; padding: 8px 13px; font-size: 14px; color: var(--ink2); cursor: pointer; }
.tries button:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--ink); }
.typeit { display: flex; align-items: center; gap: 6px; padding-right: 6px; margin-top: 8px; }
.typeit input { height: 48px; font-size: 16px; }
.typeit .go { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.typeit .go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.talk + .tries + .typeit + .fine, .typeit + .fine { margin-top: 12px; text-align: center; }
.voiced { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 14px; padding: 11px 14px; font-size: 14px; margin: 0 0 14px; }
.voiced svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* switches in the Me tab */
.item.toggle { cursor: pointer; }
.item.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.item.toggle .sw { width: 46px; height: 28px; border-radius: 99px; background: var(--line2); position: relative; flex-shrink: 0; transition: background .18s; }
.item.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.item.toggle input:checked + .sw { background: var(--brand); }
.item.toggle input:checked + .sw::after { transform: translateX(18px); }
.item.toggle input:focus-visible + .sw { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .talkbar .mic, .art .say .mic, .voiced { color: #c9c1ff; }
}
@media (prefers-reduced-motion: reduce) { .orb.on, .orb.thinking svg { animation: none; } }
.payhead .mic { margin: 0 -8px 0 0; }

/* ── pay links, assistant, speed, intros ── */
.av.linkav, .av.bot { background: var(--brand-soft); color: var(--brand-ink); }
.av.linkav svg, .av.bot svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.av.bot svg { fill: currentColor; stroke: none; }
.speed { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.warn.strong { background: rgba(224, 87, 79, .1); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(224, 87, 79, .35); margin: 12px 0; }
.warn.strong b { color: inherit; }
.req.draft { box-shadow: inset 0 0 0 1px var(--brand); }
details.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; color: var(--mute); font-size: 14px; }
details.more .btn-row { margin-top: 10px; }
.welcome.intro { justify-content: center; }
.introcard { text-align: center; margin: 28px 0 8px; }
.introcard .av.lg { margin: 0 auto 18px; width: 84px; height: 84px; font-size: 28px; }
.introcard h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.035em; margin: 0; }
.introcard .note { display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.introcard .sub { margin-top: 16px; }
.field .showk { border: 0; background: none; color: var(--brand-ink); font: inherit; font-size: 14px; font-weight: 600; padding: 0 14px; cursor: pointer; }
#lf .field input { height: 52px; }

/* ════════════════════════════════════════════════════════════════════
   Theme: pastel green, big-payments-app style.
   White and soft-mint surfaces, rounded cards, pill buttons, bold tight
   headings. Pastel green (#CEE4C3) fills primary buttons and the balance
   card with dark green-black text on top (13:1). Deep green #3E6B30 is the
   only green used for text and icons on white (5.6:1). Light only.
   ════════════════════════════════════════════════════════════════════ */
:root, :root:root {
  color-scheme: light;
  --bg: #F6F9F3; --card: #ffffff; --card2: #EDF4E8; --sheet: #F6F9F3;
  --ink: #0D2A1D; --ink2: #2E4A3C; --mute: #556E61; --faint: #7D9387;
  --line: rgba(13, 42, 29, .07); --line2: rgba(13, 42, 29, .14);
  --pastel: #CEE4C3; --pastel-2: #BBD6AD; --mint: #E6F1DF;
  --brand: #3E6B30; --brand-hover: #2F5424; --brand-soft: #E6F1DF; --brand-ink: #2F5424;
  --green: #3E6B30; --red: #B3261E; --amber: #8A5A00; --amber-soft: #FDF3E1;
  --sk: #E4EDDD; --radius: 24px;
  --shadow: 0 1px 2px rgba(13, 42, 29, .04), 0 10px 30px -16px rgba(13, 42, 29, .18);
}
@media (prefers-color-scheme: dark) {
  :root, :root:root {
    --bg: #F6F9F3; --card: #ffffff; --card2: #EDF4E8; --sheet: #F6F9F3;
    --ink: #0D2A1D; --ink2: #2E4A3C; --mute: #556E61; --faint: #7D9387;
    --line: rgba(13, 42, 29, .07); --line2: rgba(13, 42, 29, .14);
    --brand: #3E6B30; --brand-hover: #2F5424; --brand-soft: #E6F1DF; --brand-ink: #2F5424;
    --green: #3E6B30; --red: #B3261E; --amber: #8A5A00; --amber-soft: #FDF3E1; --sk: #E4EDDD;
  }
}
html, body { background: var(--bg); }
::selection { background: var(--pastel); color: var(--ink); }

/* Headings: heavy and tight. Section labels stay sentence case. */
h1, .welcome h1, .introcard h1 { font-weight: 800; letter-spacing: -.055em; color: var(--ink); }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.hrow a { color: var(--brand); font-weight: 600; }

/* Pill buttons. Primary is pastel green with dark text; secondary is outlined. */
.btn { border-radius: 999px; font-weight: 700; height: 54px; }
.btn-sm { border-radius: 999px; }
.btn-dark { background: var(--pastel); color: var(--ink); }
.btn-dark:hover { background: var(--pastel-2); }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light:hover { background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-text { color: var(--brand); }

/* Cards and fields. */
.list, .req, .ledger, .qrcard, .start { box-shadow: var(--shadow); }
.field { border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line2); }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.chip, .talkbar { border-radius: 18px; }
.req.draft { box-shadow: inset 0 0 0 2px var(--pastel-2), var(--shadow); }

/* Balance card: a pastel green panel with dark text and a soft circle. */
.balance { background: var(--pastel); color: var(--ink); box-shadow: 0 18px 40px -22px rgba(62, 107, 48, .55); }
.balance::after { background: rgba(255, 255, 255, .35); }
.balance .label { color: var(--ink2); }
.balance .label .cur, .balance .amount small, .balance .amount .cents { color: var(--ink2); }
.balance .btn-dark { background: var(--ink); color: #fff; }
.balance .btn-dark:hover { background: #1d4532; }
.balance .btn-light { background: rgba(255, 255, 255, .6); color: var(--ink); box-shadow: none; }
.balance .btn-light:hover { background: #fff; }
.balance .up, .balance .down { color: var(--ink); background: rgba(255, 255, 255, .55); }
.balance .skeleton { background: rgba(13, 42, 29, .1); }
.cryptorow { background: rgba(255, 255, 255, .45) !important; color: var(--ink); }

/* Tab bar: white with a pastel round pay button. */
.tabbar { background: rgba(255, 255, 255, .94); }
.tabbar a.on { color: var(--ink); }
.tabbar .tab-pay, .tabbar .tab-pay.on { background: var(--pastel); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(62, 107, 48, .6), 0 0 0 5px #fff; }

/* Success tick and voice orb in the same green family. */
.tick { background: var(--pastel); }
.tick svg { stroke: var(--ink); }
.orb { background: var(--pastel); color: var(--ink); }
.orb.thinking { background: var(--pastel-2); }
.check input { accent-color: var(--brand); }
.mark rect { fill: var(--pastel); } .mark path { stroke: var(--ink); }
.cryptorow span { color: var(--ink2); } .cryptorow .chev { stroke: var(--ink2); }

/* ════════════════════════════════════════════════════════════════════
   Navigation: a floating liquid-glass bar on phones, a glass side rail
   on laptops. The $ tab opens the money pad.
   ════════════════════════════════════════════════════════════════════ */
.shell { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
.tabbar {
  bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 436px;
  padding: 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .75); border-top: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .38));
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -1px 1px rgba(13, 42, 29, .05), 0 18px 40px -18px rgba(13, 42, 29, .45), 0 2px 8px rgba(13, 42, 29, .06);
  isolation: isolate; gap: 2px;
}
.tabbar::before { content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 90% at 50% -30%, rgba(255, 255, 255, .85), transparent 60%); opacity: .7; }
.tabbar .tabbrand { display: none; }
.tabbar a { height: 54px; align-content: center; border-radius: 999px; color: var(--mute); font-size: 10.5px; font-weight: 600; transition: background .2s, color .2s, box-shadow .2s; }
.tabbar a.on { color: var(--ink); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 6px 14px -8px rgba(13, 42, 29, .35); }
.tabbar a:active { transform: scale(.94); }
.tabbar .tab-pay, .tabbar .tab-pay.on { border-radius: 50%; width: 54px; height: 54px; margin: 0; justify-self: center; background: var(--pastel); color: var(--ink); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), 0 8px 18px -8px rgba(62, 107, 48, .7); }
.tabbar .tab-pay.on { background: var(--ink); color: var(--pastel); }
.tabbar .tab-pay i { font-style: normal; font-weight: 800; font-size: 27px; line-height: 1; letter-spacing: -.04em; }
.tabbar .tab-pay span { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabbar { background: rgba(255, 255, 255, .96); } }

/* ── money pad ── */
body.padmode, body.padmode .shell { background: var(--pastel); }
body.padmode { transition: background .25s; }
.pad { display: flex; flex-direction: column; min-height: calc(100vh - 118px); min-height: calc(100dvh - 118px - env(safe-area-inset-bottom)); color: var(--ink); }
.padtop { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.padtop .x { width: 44px; }
.padtop .mic svg { stroke: var(--ink); }
.padcur { font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .5); }
.padmid { flex: 1; display: grid; place-content: center; text-align: center; min-height: 150px; }
.padamt { display: flex; justify-content: center; align-items: flex-start; font-weight: 800; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; --fs: 92px; font-size: var(--fs); transition: font-size .15s; }
.padamt .d { font-size: .48em; margin: .12em .04em 0 0; letter-spacing: 0; }
.padamt[data-len="5"] { --fs: 82px; } .padamt[data-len="6"] { --fs: 72px; } .padamt[data-len="7"], .padamt[data-len="8"], .padamt[data-len="9"] { --fs: 62px; }
.padamt.zero { opacity: .55; }
.padamt.shake { animation: shake .38s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.padsub { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink2); min-height: 20px; }
.padsub.bad { color: var(--red); }
.padhint { display: none; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px -6px 14px; }
.key { height: 64px; border: 0; background: none; color: var(--ink); font: 600 30px/1 var(--font); border-radius: 999px; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: background .12s, transform .08s; }
.key svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.key:active, .key.down { background: rgba(255, 255, 255, .55); transform: scale(.92); }
.key:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.padact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 8px; }
.padbtn { background: var(--ink); color: #fff; height: 58px; font-size: 18px; }
.padbtn:hover { background: #1d4532; }
.padbtn:first-child { background: rgba(255, 255, 255, .55); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
.padbtn:first-child:hover { background: rgba(255, 255, 255, .8); }
body.padmode .tabbar { background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .25)); }
body.padmode .tabbar .tab-pay.on { background: var(--ink); color: var(--pastel); }
@media (max-height: 700px) { .key { height: 54px; font-size: 26px; } .padamt { --fs: 76px; } .padmid { min-height: 110px; } }

/* ── laptops and tablets: the bar becomes a glass side rail ── */
@media (min-width: 900px) {
  body { padding-top: 0; }
  body.has-tabs { padding-left: 264px; }
  .shell { max-width: 560px; padding-bottom: 48px; }
  body.has-tabs .shell { padding-top: 28px; }
  .tabbar {
    left: 20px; top: 20px; bottom: 20px; transform: none; width: 228px; max-width: none;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 14px; border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5));
  }
  .tabbar::before { background: radial-gradient(140% 50% at 0% 0%, rgba(255, 255, 255, .9), transparent 60%); }
  .tabbar .tabbrand { display: flex; align-items: center; gap: 10px; height: auto; padding: 4px 10px 18px; font-size: 21px; color: var(--ink); background: none !important; box-shadow: none !important; }
  .tabbar .tabbrand .mark { width: 30px; height: 30px; }
  .tabbar .tabbrand b { font-weight: 800; letter-spacing: -.05em; }
  .tabbar a { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 16px; font-size: 15px; justify-items: start; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar .tab-pay, .tabbar .tab-pay.on { order: -1; display: flex; place-items: initial; align-items: center; border-radius: 999px; width: auto; height: 52px; margin: 0 0 14px; justify-content: flex-start; padding: 0 16px; gap: 12px; font-size: 15px; }
  .tabbar .tab-pay i { font-size: 22px; width: 22px; text-align: center; }
  .tabbar .tab-pay span { display: inline; }
  .tabbar .tabbrand { order: -2; }
  body.padmode, body.padmode .shell { background: var(--bg); }
  body.padmode .tabbar { background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5)); }
  .pad { min-height: calc(100vh - 76px); max-width: 440px; margin: 0 auto; padding: 0 28px 28px; background: var(--pastel); border-radius: 36px; box-shadow: 0 30px 60px -36px rgba(13, 42, 29, .45); }
  .padamt { --fs: 112px; } .padamt[data-len="5"] { --fs: 96px; } .padamt[data-len="6"] { --fs: 86px; } .padamt[data-len="7"], .padamt[data-len="8"], .padamt[data-len="9"] { --fs: 72px; }
  .key { height: 62px; }
  .key:hover { background: rgba(255, 255, 255, .35); }
}
@media (min-width: 900px) and (hover: hover) { .padhint { display: block; margin-top: 8px; font-size: 13px; color: var(--ink2); opacity: .75; } }
@media (min-width: 900px) and (max-height: 820px) { .key { height: 52px; font-size: 26px; } .padamt { --fs: 88px; } .pad { min-height: calc(100vh - 56px); } body.has-tabs .shell { padding-top: 16px; } }

/* ── risk check on the confirm sheet ── */
.risk { border-radius: 20px; padding: 16px 16px 12px; margin: 14px 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); text-align: left; }
.risk-line { margin: 0 0 12px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.risk-line b { font-weight: 700; }
.risk-tag { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink2); }
.risk-tag .tier { flex: none; font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; }
.risk-normal .tier { background: var(--pastel); color: var(--ink); }
.risk-medium { background: #FFF9EC; box-shadow: inset 0 0 0 1px #F1DDAE; }
.risk-medium .tier { background: #F6E3B4; color: #6B4500; }
.risk-high { background: #FDF0EE; box-shadow: inset 0 0 0 1.5px #E7B3AC; }
.risk-high .tier { background: #F4C9C3; color: #8A1F17; }
.risk-why { margin: 12px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.risk-why li + li { margin-top: 4px; }
.risk-ok { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; font-weight: 600; color: #8A1F17; cursor: pointer; }
.risk-ok input { width: 18px; height: 18px; margin-top: 1px; accent-color: #8A1F17; flex: none; }
.risk-fine { margin: 10px 0 0; font-size: 12px; color: var(--faint); }
.risk-fine a { color: var(--brand); }
#go:disabled { opacity: .45; }

/* Signup: passkey lock step */
.lockhero { width: 72px; height: 72px; border-radius: 22px; background: var(--pastel, #CEE4C3); display: grid; place-items: center; margin: 4px 0 18px; }
.lockhero svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lockpts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.lockpts li { position: relative; padding-left: 28px; font-weight: 600; color: var(--ink); }
.lockpts li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--pastel, #CEE4C3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230D2A1D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.adv { margin-top: 22px; color: var(--mute); font-size: 14px; }
.adv summary { cursor: pointer; font-weight: 600; }
.adv p { margin: 8px 0 10px; }
.empty.searching { display: flex; gap: 8px; justify-content: center; align-items: center; }

.topr { display: flex; align-items: center; gap: 10px; }
.bell { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell i { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; }
