/* Bloopy: Apple-style minimal. One ink colour, lots of white, system type. */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --raised: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --btn: #1d1d1f;
  --btn-ink: #ffffff;
  --link: #0066cc;
  --up: #248a3d;
  --down: #d70015;
  --focus: #0071e3;
  --glass: rgb(255 255 255 / 0.78);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --tabbar: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --raised: #2c2c2e;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --btn: #f5f5f7;
    --btn-ink: #000000;
    --link: #2997ff;
    --up: #30d158;
    --down: #ff453a;
    --focus: #2997ff;
    --glass: rgb(0 0 0 / 0.72);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.47 var(--font); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.top-inner { max-width: 1024px; margin: 0 auto; height: 52px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.blob { width: 22px; height: 22px; fill: var(--ink); flex: none; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.account { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 14px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.avatar:hover { text-decoration: none; opacity: 0.85; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 500 17px/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 980px;
  padding: 15px 28px; min-height: 48px; white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: 0.86; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.small { font-size: 14px; padding: 9px 16px; min-height: 36px; }
.btn.quiet { background: var(--surface); color: var(--ink); }
.btn.danger { background: transparent; color: var(--down); padding: 6px 0; min-height: 0; font-size: 14px; }
.wide-btn { width: 100%; }
.text-link, .link-btn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; }
.link-btn:hover, .text-link:hover { text-decoration: underline; }

label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea, select.input {
  font: 400 17px/1.35 var(--font); letter-spacing: -0.01em; color: var(--ink);
  background: var(--surface); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
textarea { resize: vertical; }
.form-error { color: var(--down); font-size: 14px; }
.form-error:empty { display: none; }
.hint { color: var(--muted); font-size: 13px; }
.hint:empty { display: none; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: 0; }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.view.narrow { max-width: 600px; margin: 0 auto; }
.page-title { font-size: clamp(32px, 6vw, 48px); line-height: 1.08; margin: 40px 0 8px; }
.lede { color: var(--muted); font-size: 19px; margin-bottom: 32px; max-width: 34em; }
.section-title { font-size: 24px; margin: 56px 0 14px; }

/* ---------- home ---------- */
.hero { text-align: center; padding: clamp(48px, 9vw, 96px) 0 28px; max-width: 640px; margin: 0 auto; }
.hero.compact { padding-top: clamp(28px, 5vw, 48px); }
.hero.compact h1 { font-size: clamp(36px, 7vw, 56px); }
.hero-blob { width: 52px; height: 52px; margin: 0 auto 28px; display: block; }
.hero h1 { font-size: clamp(48px, 10vw, 80px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; }
.hero-sub { color: var(--muted); font-size: clamp(18px, 2.4vw, 22px); line-height: 1.4; margin: 16px auto 0; max-width: 24em; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-blob { animation: squish 1.1s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 50% 90%; }
  @keyframes squish { 0% { transform: scale(.4, .4); opacity: 0; } 55% { transform: scale(1.12, .88); opacity: 1; } 100% { transform: none; } }
  .hero h1, .hero-sub { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-sub { animation-delay: .12s; }
  #chat { animation: rise .8s cubic-bezier(.2, .8, .2, 1) .22s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Inset grouped list, like iOS Settings */
.group { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 18px; overflow: hidden; }
.group > li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 60px; position: relative; }
.group > li + li::before { content: ''; position: absolute; top: 0; left: 18px; right: 0; border-top: 1px solid var(--line); }
.row-main { display: grid; flex: 1; min-width: 0; }
.row-main strong { font-weight: 500; }
.row-main span { color: var(--muted); font-size: 14px; }
.row-end { text-align: right; font-variant-numeric: tabular-nums; }
.row-end span { display: block; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.row-btn { all: unset; display: flex; align-items: center; gap: 14px; width: 100%; cursor: pointer; }
.row-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.group > li.selected { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { background: var(--surface); border-radius: 18px; padding: 20px; display: grid; gap: 4px; align-content: start; }
.steps span:last-child { color: var(--muted); font-size: 15px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* ---------- markets ---------- */
.board { padding: 8px 0 24px; }
.coin-name { color: var(--muted); font-size: 17px; }
.price { font-size: clamp(44px, 9vw, 72px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 4px 0; }
.change { font-size: 17px; font-variant-numeric: tabular-nums; }
.segmented { display: inline-flex; background: var(--surface); border-radius: 10px; padding: 3px; margin: 24px 0 8px; }
.segmented button {
  font: 500 14px/1 var(--font); color: var(--ink); background: none; border: 0; border-radius: 8px;
  padding: 8px 18px; cursor: pointer; letter-spacing: 0;
}
.segmented button[aria-pressed="true"] { background: var(--raised); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.chart { position: relative; height: clamp(220px, 36vw, 340px); margin-top: 12px; touch-action: pan-y; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: currentColor; opacity: 0.07; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .axis { fill: var(--muted); font: 400 12px var(--font); }
.chart .cross { stroke: var(--muted); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.chart .dot-mark { fill: currentColor; stroke: var(--bg); stroke-width: 2; }
.chart .msg { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; }
.tip {
  position: absolute; top: 0; transform: translateX(-50%); pointer-events: none;
  background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px;
  font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 4px 16px rgb(0 0 0 / .08);
}
.draw .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw .line { animation: none; stroke-dashoffset: 0; } }

/* ---------- buy ---------- */
.notice { background: var(--surface); border-radius: 14px; padding: 14px 16px; font-size: 15px; margin-bottom: 24px; }
.notice strong { font-weight: 600; }
.buy { display: grid; gap: 28px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
legend { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; padding: 0; }
.asset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.asset {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px;
  background: var(--surface); border-radius: 16px; padding: 14px 16px; border: 2px solid transparent;
}
.asset strong { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.asset span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.asset[aria-checked="true"] { border-color: var(--ink); }
.asset:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.amount { display: flex; align-items: baseline; justify-content: center; gap: 2px; cursor: text; background: var(--surface); border-radius: 18px; padding: 18px; }
.amount-cur { font-size: 40px; font-weight: 600; color: var(--muted); }
.amount input {
  background: none; border: 0; padding: 0; width: 3ch; min-width: 1ch; font-size: 56px; font-weight: 600; letter-spacing: -0.04em;
  text-align: left; font-variant-numeric: tabular-nums; box-shadow: none;
}
.chips { display: flex; gap: 8px; justify-content: center; }
.chips button { font: 500 15px/1 var(--font); background: var(--surface); color: var(--ink); border: 0; border-radius: 980px; padding: 10px 18px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.estimate { text-align: center; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
#buy-address { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; }
.history { margin-top: 48px; }
.history h2 { font-size: 21px; margin-bottom: 12px; }

/* ---------- feed ---------- */
.composer { display: grid; gap: 14px; background: var(--surface); border-radius: 18px; padding: 20px; margin-bottom: 40px; }
.composer input, .composer textarea { background: var(--raised); }
.composer .btn { justify-self: start; }
.post { padding: 28px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 0; }
.post h2 { font-size: 24px; line-height: 1.2; }
.post-meta { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-actions { display: flex; gap: 20px; align-items: center; margin-top: 14px; font-size: 15px; }
.comments { margin-top: 16px; display: grid; gap: 12px; }
.comment { background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.comment .who { font-weight: 600; font-size: 13px; }
.comment .when { color: var(--muted); font-weight: 400; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- wallet ---------- */
.connections > li { flex-wrap: wrap; }
.conn-action { display: flex; gap: 10px; align-items: center; }
.addr { color: var(--muted); font-size: 14px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0; }
.btc-form input { width: min(280px, 56vw); padding: 9px 12px; font-size: 15px; background: var(--raised); }
#wallet-sync { margin: 10px 4px 0; }
.balances-head { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 12px; }
.balances-head h2 { font-size: 24px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px 0; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- account ---------- */
.kv { display: grid; gap: 2px; }
.kv span { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 980px; padding: 3px 9px; background: var(--surface); color: var(--muted); letter-spacing: 0; }
.badge.ok { color: var(--up); }
.badge.warn { color: var(--down); }
.setup li .row-end { font-size: 14px; }
.code-row { display: flex; gap: 8px; margin-top: 10px; }
.code-row input { max-width: 160px; letter-spacing: 0.3em; text-align: center; background: var(--raised); }

/* ---------- sheets (dialogs) ---------- */
.sheet {
  border: 0; padding: 0; background: var(--bg); color: var(--ink);
  width: min(440px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 24px));
  border-radius: 22px; box-shadow: 0 20px 60px rgb(0 0 0 / .25);
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgb(0 0 0 / .35); backdrop-filter: blur(4px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; }
.sheet-head h2 { font-size: 21px; }
.icon-btn { background: var(--surface); color: var(--muted); border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
#auth-form { display: grid; gap: 14px; padding: 8px 20px 22px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 15px; }

.checkout { width: min(480px, calc(100vw - 16px)); height: min(720px, calc(100vh - 16px)); }
.checkout-frame { flex: 1; padding: 0 12px 12px; display: flex; }
.checkout-frame iframe { flex: 1; width: 100%; border: 0; border-radius: 14px; background: var(--surface); }

/* ---------- Bloopy chat (home) ---------- */
.section-title.center, .section-sub.center { text-align: center; }
.section-sub { color: var(--muted); font-size: 17px; margin: -6px auto 22px; max-width: 32em; }
.chat-card {
  max-width: 720px; margin: 0 auto; scroll-margin-top: 72px; background: var(--surface);
  border-radius: 28px; padding: 16px 16px 12px; display: flex; flex-direction: column;
}
.chat-head { display: flex; align-items: center; gap: 14px; padding: 4px 6px 10px; }
.chat-id { flex: 1; min-width: 0; }
.chat-id .chat-name { color: var(--ink); font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.chat-id p { color: var(--muted); font-size: 14px; }
.chat-tools { display: flex; gap: 8px; align-items: center; }

.buddy { position: relative; width: 56px; height: 56px; flex: none; }
.buddy svg { width: 100%; height: 100%; fill: var(--ink); display: block; }
.buddy .eye { position: absolute; top: 24px; width: 8px; height: 9px; border-radius: 50%; background: var(--bg); }
.buddy .eye.l { left: 17px; }
.buddy .eye.r { left: 31px; }
.buddy .mouth { position: absolute; left: 22px; top: 35px; width: 12px; height: 5px; border: 2.5px solid var(--bg); border-top: 0; border-radius: 0 0 10px 10px; }
@media (prefers-reduced-motion: no-preference) {
  .buddy { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
  .buddy .eye { animation: blink 4.5s infinite; }
  .buddy.thinking .eye { animation: look 1.2s ease-in-out infinite; }
  .buddy.talking { animation: squish .32s ease-in-out infinite alternate; }
  .buddy.talking .mouth { animation: talk .22s ease-in-out infinite alternate; }
  .buddy.listening::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--down);
    animation: ring 1.1s ease-out infinite;
  }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
  @keyframes look { 0%, 100% { transform: translate(-2px, -2px); } 50% { transform: translate(2px, -2px); } }
  @keyframes squish { from { transform: scale(1, 1); } to { transform: scale(1.06, .94); } }
  @keyframes talk { from { height: 3px; } to { height: 9px; border-radius: 0 0 12px 12px; } }
  @keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
}

.chat-log {
  height: clamp(300px, 46vh, 480px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 6px; padding: 10px 4px 12px;
}
.bubble { max-width: 82%; padding: 9px 14px; border-radius: 20px; font-size: 16px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--btn); color: var(--btn-ink); border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: var(--raised); border-bottom-left-radius: 6px; }
.bubble.me + .bubble.bot, .bubble.bot + .bubble.me { margin-top: 8px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .bubble.typing i { animation: dot 1s infinite ease-in-out; }
  .bubble.typing i:nth-child(2) { animation-delay: .15s; }
  .bubble.typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
  .chat-log .bubble:last-child:not(.typing) { animation: pop .22s ease-out; }
  @keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
}
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 12px; }
.chat-suggest:empty { display: none; }
.suggest { all: unset; cursor: pointer; background: var(--raised); border: 1px solid var(--line); border-radius: 980px; padding: 8px 14px; font-size: 14px; }
.suggest:hover { border-color: var(--muted); }
.suggest:focus-visible { outline: 3px solid var(--focus); }
.chat-form { display: flex; gap: 6px; align-items: flex-end; background: var(--raised); border-radius: 26px; padding: 6px 6px 6px 4px; border: 1px solid var(--line); }
.chat-form textarea {
  flex: 1; resize: none; max-height: 120px; background: none; border: 0; box-shadow: none !important;
  padding: 9px 12px; font-size: 16px; min-height: 40px;
}
.round-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); color: var(--ink);
}
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:disabled { opacity: .4; cursor: default; }
.round-btn.send { background: var(--btn); color: var(--btn-ink); }
.round-btn.mic.listening { background: var(--down); color: #fff; }
#voice-toggle { background: var(--raised); }
#voice-toggle[aria-pressed="false"] .wave { opacity: .25; }
#voice-toggle[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.pill-btn { border: 1px solid var(--line); background: var(--raised); color: var(--ink); border-radius: 980px; padding: 8px 12px; font: 500 13px/1 var(--font); cursor: pointer; min-width: 44px; }
.chat-note { text-align: center; padding: 10px 8px 2px; }

/* ---------- picture puzzle ---------- */
.puzzle { background: var(--surface); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.puzzle-title { font-size: 14px; font-weight: 500; }
.puzzle-body { display: flex; gap: 14px; align-items: center; }
.puzzle-pic { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; flex: none; background: var(--raised); }
.puzzle-pic img { width: 100%; height: 100%; display: block; }
.puzzle-pic img:not([src]) { visibility: hidden; }
.puzzle.loading .puzzle-pic { animation: puzzle-pulse 1.2s ease-in-out infinite; }
@keyframes puzzle-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .puzzle.loading .puzzle-pic { animation: none; } }
.puzzle.solved .puzzle-pic { box-shadow: 0 0 0 3px var(--up); }
.puzzle.solved .puzzle-row { display: none; }
.puzzle-controls { flex: 1; display: grid; gap: 12px; min-width: 0; }
.puzzle-row { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.puzzle-status { font-size: 13px; color: var(--muted); }
.puzzle-status:empty { display: none; }
.puzzle.solved .puzzle-status { color: var(--up); font-weight: 500; }
input[type="range"] { padding: 0; background: none; border: 0; box-shadow: none; accent-color: var(--btn); height: 28px; }
input[type="checkbox"] { width: 20px; height: 20px; padding: 0; flex: none; accent-color: var(--btn); margin: 1px 0 0; }
.code-input { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

/* ---------- automatic security walkthrough ---------- */
.onboard { width: min(480px, calc(100vw - 24px)); }
.onboard-head { align-items: flex-start; }
.onboard-kicker { color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.onboard-head h2 { font-size: 24px; }
.onboard-progress { display: flex; gap: 6px; padding: 4px 20px 6px; }
.onboard-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.onboard-progress span.done { background: var(--up); }
.onboard-progress span.now { background: var(--ink); }
.onboard-body { display: grid; gap: 14px; padding: 12px 20px 24px; overflow-y: auto; }
.onboard-body > .link-btn { justify-self: center; font-size: 15px; }
.onboard-text { color: var(--muted); font-size: 15px; }
.onboard-text strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.onboard-form { display: grid; gap: 12px; }
.onboard-form.inline { grid-template-columns: 1fr auto; align-items: center; }
.code-input.big { font-size: 28px; text-align: center; letter-spacing: 0.4em; padding: 14px; font-weight: 600; }
.onboard-done { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 12px 0 4px; }
.onboard-done p { color: var(--muted); font-size: 15px; }
.big-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--up); color: #fff; font-size: 32px; font-weight: 700; }
.cam { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 18px; overflow: hidden; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam.mirror video { transform: scaleX(-1); }
.cam.off::after { content: 'Camera off'; position: absolute; inset: 0; display: grid; place-items: center; color: #aaa; font-size: 15px; }
.cam-guide { position: absolute; pointer-events: none; border: 2px dashed rgb(255 255 255 / .85); }
.cam.card .cam-guide { inset: 18% 9%; border-radius: 14px; }
.cam.selfie .cam-guide { top: 10%; bottom: 10%; left: 12%; width: 42%; border-radius: 50%; }
.upload-alt { justify-self: center; font-size: 15px; cursor: pointer; }
.review-pics figcaption .link-btn { font-size: 12px; margin-left: 6px; }

/* ---------- account security ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head .section-title { margin-bottom: 14px; }
.score { color: var(--muted); font-size: 14px; white-space: nowrap; }
.sec-icon { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid var(--line); }
.sec.done .sec-icon { background: var(--up); border-color: var(--up); color: #fff; }
.sec.waiting .sec-icon { border-color: var(--muted); color: var(--muted); }
.sec.active .sec-icon { border-color: var(--down); }
.group > li.sec-body { display: block; padding-top: 0; }
.group > li.sec-body::before { display: none; }
.step-body { display: grid; gap: 12px; padding: 4px 0 6px 38px; font-size: 15px; }
.step-body > p { color: var(--muted); }
.step-body .link-btn { justify-self: start; font-size: 15px; }
.step-body .code-row input { max-width: none; }
.code-row input[type="email"] { letter-spacing: -0.01em; text-align: left; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; cursor: pointer; overflow: hidden;
  background: var(--raised); border: 2px dashed var(--line); border-radius: 14px; padding: 10px; text-align: center; color: var(--ink);
}
.shot:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.has { border-style: solid; border-color: var(--up); }
.shot.has .shot-text { position: relative; background: rgb(0 0 0 / .55); color: #fff; border-radius: 10px; padding: 4px 8px; align-self: end; }
.shot.has .shot-text span { display: none; }
.shot-text { display: grid; gap: 2px; font-size: 13px; }
.shot-text span { color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 14px; cursor: pointer; }
.review { background: var(--surface); border-radius: 18px; padding: 16px; margin-bottom: 12px; display: grid; gap: 10px; }
.review-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-pics figure { margin: 0; display: grid; gap: 4px; }
.review-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; border-radius: 12px; }
.review-pics figcaption { color: var(--muted); font-size: 12px; }
.review-actions { display: flex; gap: 10px; }

/* ---------- toast & footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabbar)); transform: translate(-50%, 16px); opacity: 0; z-index: 40;
  background: var(--btn); color: var(--btn-ink); padding: 12px 18px; border-radius: 980px; font-size: 15px;
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.foot { padding: 24px var(--gutter) calc(32px + var(--tabbar)); text-align: center; }
.foot p { color: var(--muted); font-size: 12px; max-width: 640px; margin: 0 auto; letter-spacing: 0; }

/* ---------- mobile ---------- */
.tabbar { display: none; }
@media (max-width: 720px) {
  :root { --tabbar: calc(56px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); height: var(--tabbar);
  }
  .tabbar a { flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 10px; letter-spacing: 0; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .chat-card { margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); padding: 12px 10px 10px; border-radius: 24px; }
  .chat-log { height: clamp(220px, 34vh, 360px); }
  .bubble { max-width: 88%; }
  .buddy { width: 48px; height: 48px; }
  .buddy .eye { top: 20px; width: 7px; height: 8px; }
  .buddy .eye.l { left: 14px; } .buddy .eye.r { left: 27px; }
  .buddy .mouth { left: 19px; top: 30px; width: 10px; }
  .step-body { padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .group > li { padding: 12px 16px; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .checkout { height: 92vh; margin: auto 0 0; }
  .btc-form { width: 100%; }
  .btc-form input { flex: 1; width: auto; }
  .amount input { font-size: 48px; }
}
#chat-title { scroll-margin-top: 72px; }

/* ---------- automatic ID check (Didit) ---------- */
.mini-steps { margin: -4px 0 0; padding-left: 22px; display: grid; gap: 4px; font-size: 15px; }
.notice.warn-note { margin: 0; color: var(--down); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin .9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }

/* ---------- Bloopy Plus ---------- */
.plus-community { display: grid; gap: 16px; }
.plus-community > .btn.quiet { justify-self: start; }
.plus-card { background: var(--surface); border-radius: 22px; padding: 24px; display: grid; gap: 14px; }
.plus-card .btn { justify-self: start; }
.plus-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.plus-price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.plus-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plus-list li { position: relative; padding-left: 26px; font-size: 16px; }
.plus-list li::before { content: '✓'; position: absolute; left: 0; color: var(--up); font-weight: 700; }
.post-meta .badge, .comment .who .badge { margin-left: 6px; vertical-align: 1px; }
.buy-fee { text-align: center; margin-top: 4px; }

/* ---------- creators to follow ---------- */
.join-row { display: flex; flex-wrap: wrap; gap: 10px; }
.creator-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 240px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.creator { background: var(--surface); border-radius: 18px; padding: 16px; display: grid; gap: 6px; align-content: start; scroll-snap-align: start; }
.creator p { color: var(--muted); font-size: 14px; line-height: 1.4; }
.creator-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font-weight: 600; font-size: 14px; }
.creator-tag { font-size: 12px; color: var(--muted); }
.creator-links { display: flex; gap: 14px; font-size: 14px; margin-top: 4px; }
.sub-title { font-size: 19px; margin: 28px 0 12px; }
.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.video { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; padding: 6px; border-radius: 14px; }
.video:hover { background: var(--surface); text-decoration: none; }
.video img { width: 120px; height: 68px; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface); }
.video-text { display: grid; gap: 4px; min-width: 0; }
.video-text strong { font-size: 15px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-text span { font-size: 13px; color: var(--muted); }
#creators > .fine { margin-top: 12px; }

/* ---------- rupees + early-access list ---------- */
.price-pkr { color: var(--muted); font-size: 17px; margin-top: 2px; }
.spot { background: var(--surface); border-radius: 18px; padding: 20px; display: grid; gap: 8px; margin-bottom: 28px; font-size: 15px; line-height: 1.45; }
.spot .spot-n { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.spot .link-btn { justify-self: start; }
.pay-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay-methods button { font: 500 15px/1.2 var(--font); background: var(--surface); color: var(--ink); border: 0; border-radius: 14px; padding: 14px 12px; cursor: pointer; }
.pay-methods button[aria-checked="true"] { background: var(--btn); color: var(--btn-ink); }
@media (min-width: 560px) { .pay-methods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- legal pages ---------- */
.foot-links { margin-top: 8px; }
.foot-links a { color: inherit; }
.legal { padding: 32px var(--gutter) 64px; display: block; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--ink); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal > p:first-child { margin-bottom: 20px; }

/* ---------- admin: members ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.stat { display: grid; gap: 2px; text-align: left; background: var(--surface); color: var(--ink); border: 0; border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; }
.stat strong { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.stat span { font-size: 13px; color: var(--muted); }
.stat[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.stat[aria-pressed="true"] span { color: inherit; opacity: 0.8; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.search { width: 100%; font: 400 16px/1.2 var(--font); color: var(--ink); background: var(--surface); border: 0; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.members li.clickable { cursor: pointer; }
.members li.clickable:hover, .members li.clickable:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.avatar.small { width: 36px; height: 36px; font-size: 15px; flex: none; }
.avatar.big { width: 56px; height: 56px; font-size: 22px; flex: none; }
.profile-head { display: flex; gap: 14px; align-items: center; margin: 16px 0 8px; }
.profile-head h2 { font-size: 24px; }
.profile-head .badges { justify-content: flex-start; margin-top: 6px; }
.profile-title { font-size: 18px; margin: 28px 0 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; font-weight: 400; }
.id-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.id-pics figure { margin: 0; display: grid; gap: 4px; }
.id-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; border-radius: 12px; display: block; }
.id-pics figcaption { font-size: 13px; color: var(--muted); }
.warn-list { margin: 10px 0 0; padding-left: 20px; color: var(--down); font-size: 14px; display: grid; gap: 4px; }

/* ---------- 3-tap investing ---------- */
.tap-steps { list-style: none; display: flex; gap: 10px; justify-content: center; padding: 0; margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.tap-steps li { display: flex; align-items: center; gap: 6px; }
.tap-steps li + li::before { content: '→'; margin-right: 4px; color: var(--muted); }
.tap-steps span { width: 24px; height: 24px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; }

.mybtc { background: var(--surface); border-radius: 24px; padding: 24px 22px; margin: 24px 0 14px; display: grid; gap: 6px; }
.mybtc-top { display: flex; align-items: center; justify-content: space-between; }
.mybtc-label { color: var(--muted); font-size: 15px; font-weight: 500; }
.mybtc-value { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.mybtc-change { font-size: 16px; font-weight: 500; }
.mybtc-sub { color: var(--muted); font-size: 14px; }
.mybtc .invest-btn { margin: 12px 0 4px; width: 100%; font-size: 18px; padding: 15px; }
.mybtc-trades { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: 14px; }
.mybtc-trades li { display: flex; justify-content: space-between; color: var(--muted); }
.badge.practice { background: color-mix(in srgb, var(--accent, #2997ff) 16%, transparent); color: var(--accent, #2997ff); }

.invite { background: var(--surface); border-radius: 18px; padding: 16px 18px; display: grid; gap: 12px; margin-bottom: 8px; }
.invite-title { font-weight: 600; font-size: 17px; }
.invite-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.compare { background: var(--surface); border-radius: 18px; overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr; gap: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.35; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row span:first-child { color: var(--muted); }
.compare-row span:last-child { color: var(--muted); }
.compare-head { font-weight: 600; font-size: 15px; }
.compare-head span:nth-child(2) { color: var(--ink); }
#compare-note { margin-top: 10px; }

.calc { background: var(--surface); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.calc-q { font-size: 17px; line-height: 1.6; }
.chips.inline { display: inline-flex; gap: 6px; vertical-align: middle; flex-wrap: wrap; }
.chips.inline button { padding: 6px 12px; font-size: 14px; background: var(--raised, var(--bg)); }
.calc-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-nums div { display: grid; gap: 2px; }
.calc-nums span { color: var(--muted); font-size: 13px; }
.calc-nums strong { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.calc-line { font-size: 15px; }
.calc .btn { justify-self: start; }

.invest { width: min(420px, calc(100vw - 20px)); }
.invest-body { display: grid; gap: 14px; padding: 8px 20px 22px; overflow-y: auto; }
.inv-amount-row { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 8px; }
.inv-amount-row span { font-size: 28px; color: var(--muted); font-weight: 500; }
.inv-amount { font: 600 52px/1.1 var(--font); width: 6ch; text-align: center; border: 0; background: transparent; color: var(--ink); letter-spacing: -0.02em; }
.inv-amount:focus { outline: none; }
.center { text-align: center; }
.inv-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-chips button { font: 500 17px/1 var(--font); background: var(--surface); color: var(--ink); border: 0; border-radius: 14px; padding: 16px; cursor: pointer; }
.inv-chips button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.pay-tile { display: grid; justify-items: center; gap: 10px; padding: 22px 10px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); font: 500 16px/1.2 var(--font); cursor: pointer; }
.pay-tile:hover, .pay-tile:focus-visible { background: var(--btn); color: var(--btn-ink); }
.pay-tile svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.inv-summary li { min-height: 52px; }
.inv-addr-label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.inv-addr { font: 400 15px/1.3 ui-monospace, Menlo, monospace; background: var(--surface); color: var(--ink); border: 0; border-radius: 12px; padding: 12px; }
.inv-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 10px 0; }
.inv-done .btn { width: 100%; }
.inv-check { width: 72px; height: 72px; border-radius: 50%; background: var(--up); position: relative; animation: pop .4s ease-out; }
.inv-check::after { content: ''; position: absolute; left: 25px; top: 16px; width: 18px; height: 32px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.inv-done-big { font-size: 22px; font-weight: 600; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .inv-check { animation: none; } }
.chips.inline button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }

/* ---------- built-in wallet, auto-invest, phone ---------- */
.mybtc-value.small { font-size: 28px; }
.wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.wallet-actions .btn { padding: 13px 8px; }
.wallet-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 14px; }
.link-btn.danger { color: var(--down); }
.danger-btn { background: var(--down) !important; color: #fff !important; }
.seed { list-style: none; counter-reset: seed; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0; }
.seed li { counter-increment: seed; background: var(--surface); border-radius: 10px; padding: 10px 8px; font: 500 15px/1.2 ui-monospace, Menlo, monospace; }
.seed li::before { content: counter(seed) '. '; color: var(--muted); font-size: 12px; }
.seed-input { font: 400 16px/1.4 ui-monospace, Menlo, monospace; background: var(--surface); color: var(--ink); border: 0; border-radius: 12px; padding: 12px; resize: vertical; }
.qr { background: #fff; border-radius: 16px; padding: 12px; width: min(240px, 70vw); justify-self: center; }
.qr svg { display: block; width: 100%; height: auto; }
.addr { font-size: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { font: 500 14px/1 var(--font); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 980px; padding: 9px 13px; cursor: pointer; }
.pills button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.invite.auto { margin-bottom: 14px; }

/* ---------- first-week offer ---------- */
.trial .sheet-head { padding-bottom: 0; }
.trial-title { font-size: 26px; letter-spacing: -0.01em; text-align: center; }
.trial-price { text-align: center; }
.trial-price strong { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; }
.trial-price span { font-size: 20px; color: var(--muted); }
.trial-perday { text-align: center; font-size: 18px; font-weight: 600; color: var(--up); margin-top: -6px; }
.trial .plus-list { margin: 4px 0; }

/* ---------- home: reveal on scroll, steps row, FAQ ---------- */
.reveal { opacity: 0; transform: translateY(14px); will-change: opacity, transform; transition: opacity .45s ease-out, transform .45s ease-out; }
.reveal.in { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.steps-row { text-align: center; }
.steps-row .section-title, .faq-wrap .section-title { text-align: center; }
.steps-row .steps { text-align: left; }
.steps-row .btn { margin-top: 20px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; font-size: 17px; font-weight: 500; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 16px; line-height: 1.55; padding: 0 0 16px; max-width: 36em; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: fadein .25s ease-out both; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.invite.slim { grid-template-columns: 1fr auto; align-items: center; padding: 12px 16px; }
.invite.slim .invite-title { font-size: 15px; }
#view-account #auto-card { margin-top: 28px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- admin panel on Account ---------- */
.admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
a.stat { text-decoration: none; }
.fold { background: var(--surface); border-radius: 16px; padding: 0 16px; margin-top: 12px; }
.fold > summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 16px; padding: 14px 0; display: flex; justify-content: space-between; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; color: var(--muted); font-size: 20px; }
.fold[open] > summary::after { content: '−'; }
.fold > *:not(summary) { margin-bottom: 14px; }
.fold .section-title { display: none; }

/* ---------- Earn with Bloopy ---------- */
.invite.earn { display: block; }
.invite.earn .invite-title { font-size: 18px; margin-bottom: 6px; }
.invite.earn .fine { margin: 0 0 10px; }
.invite.earn .code-line { margin: 0 0 12px; font-size: 15px; }
.invite.earn .code-line strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.earn-stats { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .earn-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.payout-form { display: grid; gap: 10px; padding-bottom: 4px; }
.payout-form .input { width: 100%; }
