/* Card Sniper app. Same world as the landing page: a dark display case, Geist, foil for brand moments,
   green for money. Sidebar on desktop, bottom tabs on phones. */
:root {
  /* Same screening room as the landing page: near-black, red is the trigger, green is money. */
  color-scheme: dark;
  --bg: #0B0B0C;
  --raise: #111113;
  --raise-2: #17171A;
  --raise-3: #1F1F23;
  --line: rgb(255 255 255 / 7%);
  --line-2: rgb(255 255 255 / 13%);
  --fg: #EDEDEE;
  --dim: #A0A0A6;
  --faint: #6A6A70;
  --money: #5FD394;
  --money-bg: rgb(95 211 148 / 10%);
  --warn: #F2B35B;
  --warn-bg: rgb(242 179 91 / 10%);
  --bad: #FF6A5C;
  --bad-bg: rgb(242 70 60 / 12%);
  --info: #8DB8F0;
  --red: #F2463C;
  --hover: rgb(255 255 255 / 4%);
  --shadow: 0 0 0 0 transparent;
  --foil: linear-gradient(110deg, #FFB4C6 0%, #FFD9A0 20%, #C8F5B4 40%, #9EE6FF 60%, #C9B6FF 80%, #FFB4C6 100%);
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px;
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
#root { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--f-sans); -webkit-font-smoothing: antialiased; letter-spacing: -0.006em; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.money { color: var(--money); }
.label { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.foil-text { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s, opacity .15s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.btn-line { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover:not(:disabled) { background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost { background: transparent; color: var(--dim); padding: 0 10px; }
.btn-ghost:hover { color: var(--fg); background: var(--hover); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--bad); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Inputs */
.field { display: grid; gap: 7px; }
.field > label { font-size: 13px; color: var(--dim); }
.input, textarea.input, select.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; outline: none; }
textarea.input { height: auto; min-height: 180px; padding: 12px 14px; resize: vertical; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.6; }
.input:focus { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 4px rgb(242 70 60 / 14%); }
.input::placeholder { color: var(--faint); }
.input.err { box-shadow: inset 0 0 0 1px var(--bad); }
.input-money { position: relative; }
.input-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-money .input { padding-left: 26px; }
.form-error { color: var(--bad); font-size: 13.5px; min-height: 20px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; color: var(--dim); font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--fg) var(--p, 50%), var(--raise-3) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--fg); cursor: pointer; }

/* Surfaces */
.card { background: var(--raise); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); padding: 22px; min-width: 0; }
.card.tight { padding: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--f-mono); padding: 6px 9px; border-radius: 999px; background: var(--raise-3); color: var(--dim); white-space: nowrap; }
.pill.good { background: var(--money-bg); color: var(--money); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.foil { background: var(--fg); color: var(--bg); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.note.warn { background: var(--warn-bg); color: #F6D29E; }
.note.info { background: rgb(141 184 240 / 9%); color: #BCD5F5; }
.note svg { flex: none; margin-top: 2px; }
.empty { text-align: center; padding: 48px 20px; color: var(--dim); display: grid; gap: 10px; justify-items: center; }
.empty .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); }
.empty h3 { color: var(--fg); font-size: 16px; }
.empty p { max-width: 40ch; font-size: 14px; }
.meter { display: grid; gap: 7px; }
.meter .top { display: flex; justify-content: space-between; font-size: 13px; }
.meter .bar { height: 6px; border-radius: 99px; background: var(--raise-3); overflow: hidden; }
.meter .bar b { display: block; height: 100%; border-radius: 99px; background: var(--fg); width: var(--w); }
.meter.full .bar b { background: var(--warn); }
.meter.unl .bar b { background: var(--foil); width: 100%; opacity: .5; }

/* Tables */
.tablewrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { font: 500 11px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); text-align: right; padding: 0 8px 10px; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; }
td:first-child { font-family: var(--f-sans); color: var(--fg); white-space: normal; }
td.best { color: var(--money); }
td.best span { background: var(--money-bg); padding: 3px 7px; border-radius: 7px; }
.cardcell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cardcell img, .cardcell .ph { width: 30px; height: 42px; border-radius: 4px; object-fit: cover; flex: none; background: var(--raise-3); }
.cardcell small { display: block; color: var(--faint); font-size: 12px; font-family: var(--f-mono); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100%; }
.side { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; padding: 6px 10px 18px; font-size: 16px; }
.brand i { width: 22px; height: 22px; display: block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='7.5' fill='none' stroke='%23EDEDEE' stroke-width='1.6'/%3E%3Ccircle cx='11' cy='11' r='2.2' fill='%23F2463C'/%3E%3Cpath d='M11 1.5v4M11 16.5v4M1.5 11h4M16.5 11h4' stroke='%23EDEDEE' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--dim); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { color: var(--fg); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.nav a svg { flex: none; opacity: .9; }
.nav .count { margin-left: auto; font: 500 11px var(--f-mono); background: var(--money); color: #fff; border-radius: 99px; padding: 2px 7px; }
.side .grow { flex: 1; }
.planbox { border-radius: 14px; padding: 14px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.planbox .row { display: flex; justify-content: space-between; align-items: center; }
.user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; font-size: 13.5px; }
.user:hover { background: var(--hover); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--foil); color: var(--fg); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.user small { display: block; color: var(--faint); font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main.page { padding: 36px clamp(16px, 4vw, 48px) 80px; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head p { color: var(--dim); margin-top: 8px; max-width: 60ch; }
.tabs { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  main.page { padding-top: 20px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgb(11 11 12 / 88%); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabs a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; color: var(--faint); }
  .tabs a[aria-current="page"] { color: var(--fg); }
  .mtop { display: flex !important; }
}
.mtop { display: none; align-items: center; justify-content: space-between; margin-bottom: 18px; }

/* Grids */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .action { padding: 16px; gap: 10px; } .action p { display: none; } }
.stack { display: grid; gap: 14px; }

/* Home */
.found { position: relative; overflow: hidden; padding: 28px; }
.found::after { content: ""; position: absolute; right: -15%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--red); opacity: .1; filter: blur(70px); pointer-events: none; }
.found .big { font: 500 clamp(48px, 6vw, 68px)/1 var(--f-mono); letter-spacing: -0.05em; margin-top: 14px; }
.found .rows { margin-top: 22px; display: grid; gap: 0; }
.found .rows div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.found .rows .mono { color: var(--fg); }
.action { display: grid; gap: 14px; padding: 20px; transition: box-shadow .2s, transform .2s; }
.action:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.action .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line); }
.action p { color: var(--dim); font-size: 13.5px; margin-top: 4px; }
.feed { display: grid; }
.feed .item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.feed .item:first-child { border-top: 0; padding-top: 0; }
.feed .item .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.feed .item .ic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feed .item b { font-weight: 500; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .item small { color: var(--faint); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .item .amt { font: 500 14px var(--f-mono); color: var(--money); }
.feed .item.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--money); margin-left: 8px; vertical-align: middle; }

/* Prices */
.search { position: relative; }
.search .input { height: 56px; padding-left: 48px; font-size: 16px; border-radius: 16px; }
.search > svg { position: absolute; left: 18px; top: 19px; color: var(--faint); }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--raise); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgb(40 40 30 / 40%); padding: 6px; display: grid; }
.suggest button { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 0; background: none; text-align: left; cursor: pointer; }
.suggest button:hover, .suggest button.on { background: var(--raise-3); }
.suggest img, .suggest .ph { width: 28px; height: 39px; border-radius: 3px; object-fit: cover; object-position: top; background: var(--raise-3); flex: none; }
.suggest span { flex: 1; min-width: 0; }
.suggest small { display: block; color: var(--faint); font-size: 12px; }
.suggest .mono { color: var(--dim); font-size: 13px; }
.sheet { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
@media (max-width: 820px) { .sheet { grid-template-columns: minmax(0, 1fr); } .sheet .art { max-width: 260px; } }
.art { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 90%), 0 0 0 1px var(--line); aspect-ratio: 63 / 88; background: var(--raise-2); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.foil::after { content: ""; position: absolute; inset: 0; background: var(--foil); mix-blend-mode: color-dodge; opacity: .28; pointer-events: none; }
.printings { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-top: 14px; scrollbar-width: thin; }
.printings button { flex: none; border: 0; cursor: pointer; padding: 7px 10px; border-radius: 10px; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); font: 500 12px var(--f-mono); text-align: left; }
.printings button small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.printings button[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.printings button[aria-pressed="true"] small { color: #55555B; }
.market { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; align-items: end; }
.market .big { font: 500 48px/1 var(--f-mono); letter-spacing: -0.05em; }
.market .sub { display: grid; gap: 4px; }
.market .sub b { font: 500 18px var(--f-mono); font-weight: 500; }
.offers { display: grid; }
.offer { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.offer:first-child { border-top: 0; padding-top: 0; }
.site { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 11px var(--f-mono); background: var(--raise-3); color: var(--fg); }
.site.tcgplayer, .site.tcg { background: rgb(91 139 196 / 16%); color: #A9C6EC; }
.site.manapool { background: rgb(142 107 196 / 16%); color: #CDB8F0; }
.site.cardkingdom, .site.ck { background: rgb(196 138 75 / 16%); color: #EBC596; }
.site.scg { background: rgb(242 70 60 / 14%); color: #FFA79E; }
.site.abu { background: rgb(95 211 148 / 12%); color: #9FE3BC; }
.offer b { font-weight: 500; font-size: 14px; }
.offer small { display: block; color: var(--faint); font-size: 12.5px; }
.offer .price { font: 500 16px var(--f-mono); text-align: right; }
.offer .price small { font-size: 11.5px; }
.offer.best .price { color: var(--money); }
.offer a.go { color: var(--faint); padding: 6px; border-radius: 8px; }
.offer a.go:hover { color: var(--fg); background: var(--raise-3); }

/* Verdict */
.verdict { border-radius: var(--r); padding: 24px; display: grid; gap: 10px; }
.verdict.buy { background: var(--money-bg); box-shadow: inset 0 0 0 1px rgb(95 211 148 / 25%); }
.verdict.counter { background: var(--warn-bg); box-shadow: inset 0 0 0 1px rgb(242 179 91 / 25%); }
.verdict.none { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.verdict .big { font: 500 clamp(44px, 5vw, 60px)/1 var(--f-mono); letter-spacing: -0.05em; }
.verdict.buy .big, .verdict.buy .label { color: var(--money); }
.verdict.counter .big, .verdict.counter .label { color: var(--warn); }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.kv div:first-child { border-top: 0; }
.kv .mono { color: var(--fg); }
.tot { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.tot.win { box-shadow: inset 0 0 0 1px rgb(95 211 148 / 25%); background: var(--money-bg); }
.tot .v { font: 500 28px/1 var(--f-mono); letter-spacing: -0.04em; }
.tot.win .v { color: var(--money); }
.tot small { color: var(--faint); font-size: 12.5px; }
.copybox { display: grid; gap: 10px; }
.copybox pre { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line); font: 12.5px/1.6 var(--f-mono); color: var(--dim); max-height: 180px; overflow: auto; white-space: pre-wrap; }

/* Alerts */
.alertrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.alertrow:first-child { border-top: 0; }
.alertrow img, .alertrow .ph { width: 44px; height: 61px; border-radius: 5px; object-fit: cover; object-position: top; background: var(--raise-3); }
.alertrow b { font-weight: 500; }
.alertrow small { display: block; color: var(--faint); font-size: 12.5px; }
.alertrow .now { text-align: right; font: 500 15px var(--f-mono); }
.alertrow .now small { font-family: var(--f-sans); }
.alertrow .target { width: 110px; }
.alertrow .target .input { height: 36px; font-size: 13.5px; font-family: var(--f-mono); }
@media (max-width: 700px) { .alertrow { grid-template-columns: 44px minmax(0, 1fr) auto; } .alertrow .target, .alertrow .del { grid-column: 2 / -1; } .alertrow .target { width: 100%; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border-radius: var(--r); padding: 22px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px; cursor: pointer; text-align: left; border: 0; transition: box-shadow .15s, transform .15s; }
.plan:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.plan[aria-pressed="true"], .plan.current { box-shadow: inset 0 0 0 1px rgb(242 70 60 / 60%), 0 30px 80px -40px rgb(242 70 60 / 35%); }
.plan .amt { display: flex; align-items: baseline; gap: 6px; }
.plan .amt b { font: 500 40px/1 var(--f-sans); letter-spacing: -0.05em; }
.plan .amt span { color: var(--faint); font-size: 13px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--dim); }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--money); font-size: 12px; margin-top: 1px; }
.plan .strike { text-decoration: line-through; color: var(--faint); font-size: 14px; }

/* Auth + onboarding */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth .pitch { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: radial-gradient(60% 50% at 40% 45%, rgb(242 70 60 / 10%), transparent 70%), var(--raise); }
.auth .pitch h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; }
.auth .quote { display: grid; gap: 14px; max-width: 420px; }
.auth .form { display: grid; place-items: center; padding: 48px 24px; }
.auth form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.auth form h1 { font-size: 28px; }
.auth .alt { color: var(--dim); font-size: 14px; text-align: center; }
.auth .alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth .pitch { display: none; } }
.mini-statement { border-radius: 18px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); padding: 18px; display: grid; gap: 0; }
.mini-statement div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.mini-statement div:first-child { border-top: 0; }
.mini-statement .mono { color: var(--money); }

.onb { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.onb header { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 4vw, 40px); }
.steps { display: flex; gap: 6px; }
.steps i { width: 28px; height: 4px; border-radius: 99px; background: var(--raise-3); display: block; }
.steps i.on { background: var(--fg); }
.onb .body { display: grid; place-items: start center; padding: 6vh 16px 64px; }
.onb .inner { width: 100%; max-width: 760px; display: grid; gap: 28px; }
.onb .inner > div:first-child p { color: var(--dim); margin-top: 10px; font-size: 16px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; padding: 18px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
.choice:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.choice[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgb(242 70 60 / 60%); background: rgb(242 70 60 / 6%); }
.choice .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--raise-3); }
.choice b { font-weight: 600; font-size: 15px; }
.choice p { color: var(--dim); font-size: 13.5px; margin-top: 3px; }
.onb .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Checkout (fake Stripe) */
.co { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.co .sum { padding: clamp(32px, 6vw, 80px); display: flex; justify-content: flex-end; border-right: 1px solid var(--line); }
.co .sum > div, .co .pay > div { width: 100%; max-width: 420px; display: grid; gap: 22px; align-content: start; }
.co .pay { padding: clamp(32px, 6vw, 80px); background: #FFFFFF; color: #1A1F36; box-shadow: -1px 0 0 var(--line); }
.co .pay .field > label { color: #4F566B; }
.co .back { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; }
.co .test { font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; padding: 5px 8px; border-radius: 6px; background: #FFDE92; color: #8A4B00; }
.co .price { font: 600 40px/1 var(--f-sans); letter-spacing: -0.04em; }
.co .price span { font-size: 15px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.co .lines div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.co .lines div b { color: var(--fg); font-weight: 500; }
.co .lines .due { color: var(--fg); font-weight: 600; }
.sinput { width: 100%; height: 44px; border: 0; padding: 0 12px; background: #fff; color: #1A1F36; font-size: 15px; outline: none; }
.sbox { border-radius: 8px; box-shadow: 0 0 0 1px #E0E3EA, 0 2px 4px rgb(0 0 0 / 5%); background: #fff; overflow: hidden; }
.sbox .r2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #E0E3EA; }
.sbox .r2 .sinput + .sinput { border-left: 1px solid #E0E3EA; }
.sbox:focus-within { box-shadow: 0 0 0 1px #9EAAFF, 0 0 0 4px rgb(99 91 255 / 18%); }
.sbox.err { box-shadow: 0 0 0 1px #DF1B41; }
.sinput::placeholder { color: #A3ACB9; }
.co .paybtn { height: 48px; border-radius: 8px; border: 0; background: #0A2540; color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.co .paybtn:hover { background: #12355a; }
.co .paybtn:disabled { opacity: .7; }
.co .hint { font-size: 13px; color: #6A7383; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.co .hint button { border: 0; background: #EEF0F6; color: #3C4257; border-radius: 6px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; }
.co .perr { color: #DF1B41; font-size: 13.5px; min-height: 20px; }
.co .powered { font-size: 12.5px; color: #8792A2; text-align: center; }
@media (max-width: 860px) { .co { grid-template-columns: minmax(0, 1fr); } .co .sum { border-right: 0; border-bottom: 1px solid var(--line); justify-content: center; } }
.success { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 40px 0; }
.success .check { width: 64px; height: 64px; border-radius: 50%; background: #E3F9EC; color: #0E8A4A; display: grid; place-items: center; animation: pop .4s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Toast + misc */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100% - 32px)); }
.toast { padding: 13px 16px; border-radius: 14px; background: var(--raise-3); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -14px rgb(0 0 0 / 80%); font-size: 14px; display: flex; gap: 12px; justify-content: space-between; align-items: center; animation: rise .25s ease both; }
.toast.bad { background: var(--bad); }
.toast a { color: var(--money); font-weight: 500; white-space: nowrap; text-decoration: underline; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--raise) 0%, var(--raise-2) 50%, var(--raise) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.progress { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgb(141 184 240 / 9%); color: #BCD5F5; font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Deal feed */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters .grow { flex: 1; }
.filters .sel { width: auto; height: 36px; padding: 0 12px; font-size: 13px; border-radius: 999px; }
.kstat { display: grid; justify-items: end; }
.kstat b { font: 600 32px/1 var(--f-mono); letter-spacing: -0.04em; }
.kstat span { color: var(--dim); font-size: 13px; margin-top: 6px; }
.frow { display: grid; grid-template-columns: 40px minmax(0, 1.6fr) 110px 70px minmax(0, 1fr) 110px 70px; gap: 14px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.frow.head { border-top: 0; font: 500 11px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding-block: 8px; }
.frow img, .frow .ph { width: 40px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--raise-3); }
.frow .nm b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .nm small { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.frow .nm .site { width: 22px; height: 18px; border-radius: 5px; font-size: 9px; }
.frow .pr { text-align: right; font-family: var(--f-mono); }
.frow .pr b { font-weight: 500; display: block; }
.frow .pr s { color: var(--faint); font-size: 12px; }
.frow .rs { font-size: 13px; color: var(--dim); line-height: 1.5; }
.frow .rs small { display: block; color: var(--faint); font-size: 12px; }
.frow .pf { text-align: right; font: 500 15px var(--f-mono); }
.frow .pf.up { color: var(--money); }
.frow .pf.down { color: var(--faint); }
.frow .pf small { display: block; font: 12px var(--f-sans); color: var(--faint); }
@media (max-width: 900px) {
  .frow { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "img nm btn" "img pr pf"; row-gap: 6px; }
  .frow.head { display: none; }
  .frow > img, .frow > .ph { grid-area: img; align-self: start; }
  .frow .nm { grid-area: nm; } .frow .btn { grid-area: btn; } .frow .pr { grid-area: pr; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .frow .pf { grid-area: pf; } .frow > :nth-child(4), .frow > :nth-child(5) { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .filters .grow { display: none; }
  .kstat { justify-items: start; }
}
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); cursor: pointer; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
