/* ── Design tokens (same palette as outbid.lol) ─────────────────────── */
:root {
  --background: #fffdfa;
  --foreground: #282624;
  --card: #fffdfa;
  --popover: #ffffff;
  --primary: #e57255;
  --primary-rgb: 229, 114, 85;
  --primary-foreground: #ffffff;
  --live: #009f31;
  --muted: #f6f3ef;
  --muted-foreground: #67625d;
  --muted-foreground-rgb: 103, 98, 93;
  --border: #e6e0da;
  --input: #e6e0da;
  --ring: #e57255;
  --destructive: #e40014;
  --background-rgb: 255, 253, 250;
  --shadow-card: 0 12px 50px rgba(40, 38, 36, 0.08);
  --shadow-modal: 0 24px 80px rgba(40, 38, 36, 0.25);
  --radius: 0.875rem;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
html.dark {
  --background: #1a1512;
  --foreground: #f7f5f1;
  --card: #231e1b;
  --popover: #231e1b;
  --live: #50c05f;
  --muted: #2d2824;
  --muted-foreground: #aba39b;
  --muted-foreground-rgb: 171, 163, 155;
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.15);
  --destructive: #ff6568;
  --background-rgb: 26, 21, 18;
  --shadow-card: 0 12px 50px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; display: flex; flex-direction: column;
  background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.gated { overflow: hidden; }
.page { display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 56rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.main { flex: 1; padding-top: 1rem; padding-bottom: 4rem; }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.8125rem; }
.semibold { font-weight: 600; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.text-primary { color: var(--primary); }
.fill-primary { fill: var(--primary); }
.fill-fg { fill: var(--foreground); }
.fill-bg { fill: var(--background); }
.fg { color: var(--foreground); }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header { width: 100%; }
.header-inner { display: flex; align-items: center; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1rem; }
.header-nav { margin-left: auto; min-width: 0; }
.theme-toggle { flex-shrink: 0; }
.menu-toggle { display: none; }
.menu-toggle .icon-x { display: none; }
.menu-toggle[aria-expanded="true"] .icon-x { display: block; }
.menu-toggle[aria-expanded="true"] .icon-burger { display: none; }
@media (max-width: 640px) {
  .site-header { position: relative; z-index: 45; }
  .header-inner { gap: 0.375rem; padding-top: 1rem; padding-bottom: 0.75rem; }
  .brand { font-size: 20px; margin-right: auto; }
  .theme-toggle { width: 2.25rem; height: 2.25rem; }
  .menu-toggle { display: inline-flex; width: 2.25rem; height: 2.25rem; }
  .header-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% - 0.25rem); margin: 0; background: var(--popover); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-modal); padding: 0.375rem; animation: rise .16s ease-out; }
  .header-nav.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 0.125rem; font-size: 0.9375rem; }
  .nav a { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0.875rem; border-radius: 0.75rem; color: var(--foreground); }
  .nav a::after { content: "→"; color: var(--muted-foreground); opacity: .6; }
  .nav a:hover { background: var(--muted); }
  .nav a[aria-current="page"] { background: rgba(var(--primary-rgb), .1); color: var(--primary); }
  .nav a[aria-current="page"]::after { color: var(--primary); opacity: 1; }
}
}
.brand { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 500; letter-spacing: -0.04em; font-size: 22px; }
.brand-icon { height: 1.25rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; }
.nav a { font-weight: 500; color: var(--muted-foreground); transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--foreground); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; transition: background .15s; }
.icon-btn:hover { background: var(--muted); }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }
@media (min-width: 640px) { .nav { gap: 1.25rem; } .header-nav { margin-right: 0.25rem; } }

/* ── Stats pill ─────────────────────────────────────────────────────── */
.stats-line { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.stats-pill { display: inline-block; max-width: 100%; border-radius: 9999px; background: var(--muted); padding: 0.375rem 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); text-align: center; text-wrap: balance; transition: color .15s; }
.stats-pill:hover { color: var(--foreground); }
.live { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.live-text { font-weight: 600; color: var(--live); }
.dot { position: relative; display: inline-flex; width: 0.5rem; height: 0.5rem; border-radius: 9999px; flex-shrink: 0; }
.dot-live { background: var(--live); }
.dot-primary { background: var(--primary); }
.dot-sm { width: 0.4rem; height: 0.4rem; margin-right: 0.15rem; }
.dot-xs { width: 0.375rem; height: 0.375rem; }
.ping { position: absolute; inset: 0; border-radius: 9999px; background: inherit; opacity: .75; animation: ping 1.2s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ping { animation: none; } }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { scroll-margin-top: 1.5rem; }
.hero-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 0.5rem; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; text-wrap: pretty; line-height: 1.2; }
@media (min-width: 768px) { .hero-title { font-size: 40px; } }
.amount-ctl { display: inline-flex; align-items: center; gap: 0.5rem; }
.amt-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: rgba(var(--primary-rgb), .15); color: var(--primary); font-size: 0.875rem; font-weight: 700; line-height: 1; transition: background .15s; flex-shrink: 0; }
.amt-btn:hover { background: rgba(var(--primary-rgb), .25); }
.amt-btn:active { transform: translateY(1px); }
.amt-label { position: relative; display: inline-block; color: var(--primary); text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.amt-sizer { visibility: hidden; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt-field { position: absolute; inset: 0; display: flex; align-items: baseline; }
.amt-field input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; font-variant-numeric: tabular-nums; outline: none; }
.hero-sub { margin: 0.5rem auto 0; max-width: 28rem; text-align: center; font-size: 0.875rem; font-weight: 500; line-height: 1.65; color: var(--muted-foreground); text-wrap: pretty; }
.hero-sub .hl { color: rgba(var(--primary-rgb), .75); }

.bid-form { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.bid-row { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
@media (min-width: 768px) { .bid-row { flex-direction: row; align-items: center; } .bid-row .cat-wrap { width: 16rem; flex-shrink: 0; } }
.cat-wrap { position: relative; min-width: 0; }
.cat-select { width: 100%; height: 2.75rem; appearance: none; -webkit-appearance: none; border-radius: 0.75rem; border: 1px solid var(--input); background: transparent; padding: 0 2.25rem 0 0.875rem; font-size: 0.875rem; font-weight: 500; color: var(--foreground); outline: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cat-select.placeholder, .cat-select:invalid { color: var(--muted-foreground); }
.cat-select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25); }
.cat-select option { color: var(--foreground); background: var(--popover); }
.cat-chevron { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.cat-select-sm { height: 2rem; font-size: 0.75rem; padding: 0 1.5rem 0 0.5rem; border-radius: 0.5rem; min-width: 11rem; }
.cat-form { margin: 0; }
.url-wrap { position: relative; min-width: 0; flex: 1; }
.url-icon { position: absolute; top: 50%; left: 0.375rem; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 9999px; background: var(--muted); color: var(--muted-foreground); pointer-events: none; overflow: hidden; }
.url-icon img { width: 1.125rem; height: 1.125rem; border-radius: 4px; }
.url-input { width: 100%; height: 2.75rem; border-radius: 9999px; border: 1px solid var(--input); background: transparent; padding: 0.25rem 0.75rem 0.25rem 2.625rem; font-size: 1rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.url-input::placeholder { color: var(--muted-foreground); opacity: .8; }
.url-input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25); }
.form-hint { text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }
.form-error { text-align: center; font-size: 0.8125rem; color: var(--destructive); font-weight: 500; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; border-radius: 9999px; border: 1px solid transparent; font-size: 0.875rem; font-weight: 700; white-space: nowrap; transition: all .15s; user-select: none; outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: rgba(var(--primary-rgb), .9); }
.btn-outline { border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-danger { background: var(--destructive); color: #fff; }
.btn-lg { height: 2.75rem; padding: 0 1.25rem; }
.btn-sm { height: 2rem; padding: 0 0.875rem; font-size: 0.8125rem; }
.btn-xs { height: 1.75rem; padding: 0 0.75rem; font-size: 0.75rem; font-weight: 600; }
.btn-block { width: 100%; }

/* ── Cards (trending / activity) ────────────────────────────────────── */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.5rem 0; align-items: stretch; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; height: 100%; min-width: 0; border-radius: 1rem; background: var(--card); padding: 1rem 1.25rem 0.25rem; box-shadow: var(--shadow-card); }
html.dark .card { border: 1px solid var(--border); }
.card-title { margin-bottom: 0.25rem; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.25rem; }
.mini-list li + li { border-top: 1px solid var(--border); }
.mini-list a { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0; font-size: 0.75rem; transition: color .15s; }
.mini-list a:hover { color: var(--primary); }
.mini-name { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 0.25rem; font-weight: 600; }
.mini-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-name .muted { font-weight: 400; flex-shrink: 0; }
.mini-meta { flex-shrink: 0; color: var(--muted-foreground); }
.card-actions { display: flex; justify-content: center; padding: 0.5rem 0 0.25rem; }
.empty { font-size: 0.8125rem; color: var(--muted-foreground); padding: 0.5rem 0 0.75rem; }

/* ── Thumbnails / avatars ───────────────────────────────────────────── */
.thumb { position: relative; display: inline-flex; flex-shrink: 0; overflow: hidden; border-radius: 0.375rem; background: var(--muted); align-items: center; justify-content: center; user-select: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.fallback img { display: none; }
.thumb.fallback::after { content: attr(data-letter); font-weight: 700; color: var(--muted-foreground); font-size: 0.75em; }
.thumb-xs { width: 1.25rem; height: 1.25rem; border-radius: 0.25rem; }
.thumb-xs.fallback::after { font-size: 0.625rem; }
.thumb-lg { width: 3.5rem; height: 2.375rem; border-radius: 0.5rem; }
.thumb-lg.fallback::after { font-size: 0.875rem; }
.thumb-lg.thumb-icon img { width: 1.5rem; height: 1.5rem; border-radius: 0.25rem; }
@media (min-width: 768px) { .thumb-lg { width: 5.5rem; height: 3.5rem; } .thumb-lg.fallback::after { font-size: 1.25rem; } .thumb-lg.thumb-icon img { width: 2rem; height: 2rem; } }

/* ── Leaderboard rows ───────────────────────────────────────────────── */
.board { margin-top: 0.5rem; }
.board-empty { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--border); border-radius: 1rem; }
.board-empty-title { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.row { position: relative; }
.row-1, .row-2, .row-3 { margin: 0.375rem 0; border-radius: 0.75rem; border: 2px solid; padding: 0 0.625rem; }
@media (min-width: 768px) { .row-1, .row-2, .row-3 { margin: 0.75rem 0; border-radius: 1rem; padding: 0 0.875rem; } }
.row-1 { border-color: var(--primary); background: rgba(var(--primary-rgb), .22); }
.row-2 { border-color: rgba(var(--primary-rgb), .4); background: rgba(var(--primary-rgb), .08); }
.row-3 { margin-bottom: 0.125rem; border-color: rgba(var(--primary-rgb), .15); background: rgba(var(--primary-rgb), .03); }
@media (min-width: 768px) { .row-3 { margin-bottom: 0.25rem; } }
.row-plain { padding: 0 0.75rem; }
@media (min-width: 768px) { .row-plain { padding: 0 1rem; } }
.row-bt { border-top: 1px solid var(--border); }
.row-link { display: flex; height: 100%; align-items: center; gap: 0.5rem; padding: 0.5rem 0; transition: color .15s; }
.row-link:hover { color: var(--primary); }
@media (min-width: 768px) { .row-link { gap: 0.75rem; padding: 0.75rem 0; } }
.row-lead { display: flex; width: 2.5rem; flex-shrink: 0; flex-direction: column; align-items: center; gap: 0.375rem; }
@media (min-width: 768px) { .row-lead { width: auto; flex-direction: row; gap: 0.75rem; } }
.rank { display: inline-flex; min-width: 1.75rem; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.rank-top { border-radius: 9999px; background: var(--primary); padding: 1px 0.375rem; font-weight: 600; color: var(--primary-foreground); }
@media (min-width: 768px) { .rank { min-width: 2.5rem; font-size: 1rem; } .rank-top { padding: 0.125rem 0.5rem; } }
.row-body { min-width: 0; flex: 1; }
.row-head { display: flex; align-items: baseline; gap: 0.5rem; }
.row-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; font-weight: 500; }
.row-amount { flex-shrink: 0; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--primary); }
@media (min-width: 768px) { .row-title, .row-amount { font-size: 1rem; } }
.row-desc { min-width: 0; font-size: 0.75rem; color: rgba(var(--muted-foreground-rgb), .8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .row-desc { font-size: 0.875rem; } }
.row-meta { margin-top: 0.125rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.375rem; font-size: 11px; }
@media (min-width: 768px) { .row-meta { font-size: 0.75rem; } }
.row-meta .muted { color: rgba(var(--muted-foreground-rgb), .8); }
.clicks { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; color: var(--foreground); }
.claim-btn { position: absolute; left: 50%; top: 0; z-index: 20; transform: translate(-50%, -50%); border-radius: 9999px; background: var(--primary); padding: 0.125rem 0.625rem; font-size: 0.75rem; font-weight: 700; white-space: nowrap; color: var(--primary-foreground); box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); opacity: 0; pointer-events: none; transition: opacity .15s; }
.row:hover .claim-btn, .row:focus-within .claim-btn, .claim-btn:focus-visible { opacity: 1; pointer-events: auto; }
.sep { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 0.75rem; }
@media (min-width: 768px) { .sep { gap: 1rem; padding: 1.75rem 1rem; } }
.sep-line { height: 2px; flex: 1; border-radius: 9999px; background: rgba(var(--primary-rgb), .3); }
.sep-pill { border-radius: 9999px; border: 1px solid rgba(var(--primary-rgb), .25); background: rgba(var(--primary-rgb), .1); padding: 0.25rem 0.625rem; font-size: 11px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--primary); }
@media (min-width: 768px) { .sep-pill { padding: 0.25rem 0.75rem; font-size: 0.75rem; } }

/* ── Pagination ─────────────────────────────────────────────────────── */
.pagination { margin-top: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.pages { display: flex; align-items: center; gap: 0.25rem; }
.page-num, .page-arrow, .ellipsis { display: flex; height: 2rem; min-width: 2rem; align-items: center; justify-content: center; border-radius: 9999px; padding: 0 0.375rem; font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--primary); transition: background .15s, color .15s; }
.page-num:hover, .page-arrow:hover { background: rgba(var(--primary-rgb), .1); }
.page-num.active { background: var(--primary); color: var(--primary-foreground); }
.page-arrow.disabled { color: rgba(var(--muted-foreground-rgb), .4); pointer-events: none; }
.ellipsis { color: var(--muted-foreground); }
.page-info { font-size: 0.75rem; color: var(--muted-foreground); }
.refresh-wrap { display: flex; justify-content: center; margin-top: 1rem; }

/* ── "made $X" ──────────────────────────────────────────────────────── */
.made { margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 0.875rem; }
.made a { font-weight: 500; color: var(--primary); }
.made a:hover { color: rgba(var(--primary-rgb), .8); }
.made-amount { margin: 0.75rem 0; display: flex; align-items: baseline; justify-content: center; border-radius: 1rem; background: var(--card); padding: 0.75rem 1.25rem; font-family: var(--font-mono); font-size: 2.25rem; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-card); }
html.dark .made-amount { border: 1px solid var(--border); }
.made-amount .cur { padding-right: 0.375rem; color: var(--primary); }
@media (min-width: 640px) { .made-amount { padding: 1rem 2rem; font-size: 3.75rem; } .made-amount .cur { padding-right: 0.5rem; } }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { margin-top: 4rem; padding-bottom: 2rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer a { color: var(--primary); transition: color .15s; }
.site-footer a:hover { color: rgba(var(--primary-rgb), .8); }

/* ── Prose pages ────────────────────────────────────────────────────── */
.prose { max-width: 42rem; margin: 0 auto; padding-top: 0.5rem; }
.prose h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.prose h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; margin: 1.75rem 0 0.5rem; }
.prose h3 { font-size: 0.9375rem; font-weight: 600; margin: 1rem 0 0.25rem; }
.prose p, .prose li { font-size: 0.9375rem; color: var(--foreground); line-height: 1.65; }
.prose p + p { margin-top: 0.75rem; }
.prose .lead { font-size: 1.0625rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose a { color: var(--primary); }
.prose .muted { color: var(--muted-foreground); }
.prose .small { margin-top: 2rem; }

/* ── Success / error ────────────────────────────────────────────────── */
.success { max-width: 40rem; margin: 1rem auto 0; text-align: center; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.success-kicker { font-weight: 600; color: var(--primary); }
.success-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.success-row { width: 100%; text-align: left; }
.success .muted { font-size: 0.875rem; }

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 640px) { .modal { align-items: center; padding: 1rem; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 14, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-panel { position: relative; width: 100%; max-width: 32rem; max-height: 100vh; overflow-y: auto; border-radius: 1.25rem 1.25rem 0 0; background: var(--popover); padding: 1.25rem; box-shadow: var(--shadow-modal); display: flex; flex-direction: column; gap: 1.125rem; animation: rise .2s ease-out; }
@media (min-width: 640px) { .modal-panel { border-radius: 1.25rem; padding: 1.75rem 2rem; } }
html.dark .modal-panel { border: 1px solid var(--border); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem; border-radius: 9999px; font-size: 1.25rem; color: var(--muted-foreground); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--muted); color: var(--foreground); }
.modal-heading { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.preview { display: flex; align-items: center; gap: 0.875rem; border-radius: 0.875rem; background: var(--muted); padding: 0.75rem; }
.preview .thumb-lg { width: 7rem; height: 4.5rem; }
.preview-body { min-width: 0; flex: 1; }
.preview-domain { font-size: 0.8125rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-existing { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-top: 0.25rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--muted-foreground); }
.field input, .field textarea { width: 100%; border-radius: 0.75rem; border: 1px solid var(--input); background: transparent; padding: 0.75rem 0.875rem; font-size: 1rem; line-height: 1.4; outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.field input { height: 3rem; }
.field textarea { min-height: 5rem; }
.field input:focus, .field textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25); }
.amount-block { align-items: center; text-align: center; padding: 0.5rem 0 0.25rem; gap: 0.5rem; }
.amount-ctl-lg { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--primary); gap: 1rem; }
.amount-ctl-lg .amt-btn { width: 2.5rem; height: 2.5rem; font-size: 1.375rem; }
.amt-label-lg { text-underline-offset: 8px; }
.projection { min-height: 1.25rem; font-size: 0.9375rem; color: var(--muted-foreground); font-weight: 500; }
.projection strong { color: var(--foreground); }
.projection.warn { color: var(--destructive); }
.check { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.5; cursor: pointer; padding: 0.25rem 0; }
.check input { margin: 0.125rem 0 0; accent-color: var(--primary); width: 1.125rem; height: 1.125rem; flex-shrink: 0; cursor: pointer; }
.check a { color: var(--primary); text-decoration: underline; }
.modal-note { text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }
.modal-panel .btn-block { height: 3.25rem; font-size: 1rem; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 1rem; height: 1rem; border-radius: 9999px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .6s linear infinite; }
.btn-outline.loading::after { border-color: rgba(var(--muted-foreground-rgb), .4); border-top-color: var(--foreground); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Age gate ───────────────────────────────────────────────────────── */
.agegate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(var(--background-rgb), .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@supports not (backdrop-filter: blur(1px)) { .agegate { background: var(--background); } }
.agegate-card { margin: 0; }
.agegate-text.small { font-size: 0.8125rem; }
.agegate-card { width: 100%; max-width: 26rem; text-align: center; border-radius: 1.25rem; background: var(--card); padding: 2rem 1.5rem; box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
html.dark .agegate-card { border: 1px solid var(--border); }
.agegate-badge { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.agegate-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.agegate-text { font-size: 0.9375rem; color: var(--muted-foreground); }
.agegate-actions { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; margin-top: 0.5rem; }
.agegate-small { font-size: 0.75rem; color: var(--muted-foreground); }
.agegate-small a { color: var(--primary); text-decoration: underline; }

/* ── Blurred thumbnails (until age verified) ────────────────────────── */
body.thumbs-blurred .thumb-lg:not(.thumb-icon):not(.fallback) img { filter: blur(14px) saturate(.85); transform: scale(1.25); }
body.thumbs-blurred .thumb-lg:not(.thumb-icon):not(.fallback)::before { content: "18+"; position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.02em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.verify-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.75rem; margin: -0.75rem auto 1.25rem; max-width: 36rem; border-radius: 0.75rem; border: 1px solid rgba(var(--primary-rgb), .3); background: rgba(var(--primary-rgb), .08); padding: 0.5rem 0.875rem; font-size: 0.8125rem; color: var(--foreground); }

/* ── Admin ──────────────────────────────────────────────────────────── */
.admin h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.admin h2 { font-size: 1.125rem; font-weight: 700; margin: 2rem 0 0.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 0.75rem; margin-top: 0.75rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.table th, .table td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted-foreground); background: var(--muted); font-size: 0.75rem; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-hidden { opacity: .5; }
.cell-listing { max-width: 28rem; overflow-wrap: anywhere; }
.cell-listing a { color: var(--primary); font-weight: 600; }
.cell-actions { display: flex; gap: 0.375rem; }
.badge { display: inline-block; border-radius: 9999px; padding: 0.0625rem 0.5rem; font-size: 0.6875rem; font-weight: 600; background: var(--muted); color: var(--muted-foreground); }
.badge-ok { background: rgba(0,159,49,.12); color: var(--live); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 60; background: var(--foreground); color: var(--background); padding: 0.5rem 0.875rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.2); animation: rise .2s ease-out; }

/* amount input inside the modal must not inherit the .field input box */
.field .amount-ctl .amt-field input { border: 0; padding: 0; height: auto; border-radius: 0; box-shadow: none; background: transparent; font-size: inherit; line-height: inherit; }

/* ── Category chips ─────────────────────────────────────────────────── */
.chips-wrap { margin: 1rem 0 0.25rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips-wrap::-webkit-scrollbar { display: none; }
.chips { display: flex; width: max-content; min-width: 100%; align-items: center; gap: 0.5rem; }
.chip { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.3rem; height: 1.75rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--background); padding: 0 0.625rem; font-size: 0.8rem; font-weight: 700; white-space: nowrap; color: var(--foreground); transition: background .15s, color .15s, border-color .15s; }
.chip:hover { background: var(--muted); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.chip.active:hover { background: rgba(var(--primary-rgb), .85); }
.chip-ico { opacity: .6; }
.chip-emoji { font-size: 0.875rem; line-height: 1; }
html.dark .chip { background: rgba(255,255,255,.03); border-color: var(--input); }
html.dark .chip.active { background: var(--primary); border-color: var(--primary); }
.row-cat { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 500; color: rgba(var(--muted-foreground-rgb), .8); cursor: pointer; transition: color .15s; }
.row-cat:hover { color: var(--primary); }

/* ── Categories page ────────────────────────────────────────────────── */
.cats-page { max-width: 48rem; margin: 0 auto; padding-top: 0.5rem; }
.cats-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.cats-intro { font-size: 0.9375rem; margin-bottom: 1.25rem; }
.cats-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }
@media (min-width: 640px) { .cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat-card { display: flex; align-items: center; gap: 0.75rem; border-radius: 0.875rem; border: 1px solid var(--border); background: var(--card); padding: 0.75rem 0.875rem; transition: border-color .15s, background .15s, transform .15s; }
.cat-card:hover { border-color: rgba(var(--primary-rgb), .5); background: rgba(var(--primary-rgb), .05); }
.cat-card-emoji { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; background: var(--muted); font-size: 1.125rem; flex-shrink: 0; }
.cat-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cat-card-name { font-weight: 700; font-size: 0.9375rem; }
.cat-card-meta { font-size: 0.75rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-card-leader { font-weight: 600; color: var(--foreground); }
.cat-card-arrow { color: var(--muted-foreground); }
.cat-card:hover .cat-card-arrow { color: var(--primary); }
/* the big amount label in the modal must not inherit .field label's small typography */
.field .amount-ctl .amt-label { font-size: inherit; font-weight: inherit; color: var(--primary); line-height: 1.1; }

/* ── Payment modal (on-site crypto checkout) ─────────────────────────── */
.modal-panel-pay { max-width: 36rem; gap: 1rem; }
.pay-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; padding-right: 3rem; }
.pay-head-text { min-width: 0; }
.pay-kicker { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 20rem; }
.pay-steps { display: flex; align-items: center; gap: 0.25rem; font-size: 0.6875rem; font-weight: 700; color: var(--muted-foreground); flex-shrink: 0; margin-top: 0.375rem; margin-right: 0.25rem; }
.pay-steps li { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.5rem 0.2rem 0.25rem; border-radius: 9999px; }
.pay-steps li + li::before { content: ""; display: none; }
.pay-step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.125rem; height: 1.125rem; border-radius: 9999px; background: var(--muted); font-size: 0.625rem; }
.pay-steps li.on { color: var(--primary); background: rgba(var(--primary-rgb), .1); }
.pay-steps li.on .pay-step-n { background: var(--primary); color: #fff; }
.pay-steps li.done { color: var(--live); }
.pay-steps li.done .pay-step-n { background: var(--live); color: #fff; }
.pay-step { display: flex; flex-direction: column; gap: 0.75rem; }
#p-loading { align-items: center; padding: 2rem 0; }
.pay-spinner { width: 1.75rem; height: 1.75rem; border-radius: 9999px; border: 3px solid rgba(var(--primary-rgb), .2); border-top-color: var(--primary); animation: spin .7s linear infinite; }
.pay-label { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); }

.coin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 480px) { .coin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.coin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; border-radius: 0.875rem; border: 1px solid var(--border); background: var(--card); padding: 0.75rem 0.375rem 0.625rem; text-align: center; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s, background .15s; }
.coin:hover { border-color: rgba(var(--primary-rgb), .6); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--primary-rgb), .12); }
.coin:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .35); }
.coin.off { opacity: .45; cursor: not-allowed; }
.coin.off:hover { transform: none; box-shadow: none; border-color: var(--border); }
.coin.loading { pointer-events: none; }
.coin.loading::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(var(--primary-rgb), .08); }
.coin-logo { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 9999px; background: var(--muted); overflow: hidden; }
.coin-logo img { width: 2rem; height: 2rem; object-fit: contain; }
.coin-logo.sm, .coin-logo.sm img { width: 1.375rem; height: 1.375rem; }
.coin-initial { font-weight: 800; font-size: 0.8125rem; color: var(--muted-foreground); }
.coin-name { font-size: 0.875rem; font-weight: 700; letter-spacing: -0.01em; }
.coin-net { font-size: 0.6875rem; color: var(--muted-foreground); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.coin-min { position: absolute; top: 0.375rem; right: 0.375rem; border-radius: 9999px; background: var(--muted); padding: 0.05rem 0.375rem; font-size: 0.625rem; font-weight: 700; color: var(--muted-foreground); }
.coin-more { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.coin-search { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; }
.coin-search input { width: 100%; height: 2.5rem; border-radius: 0.75rem; border: 1px solid var(--input); background: transparent; padding: 0 0.875rem; font-size: 0.875rem; outline: none; }
.coin-search input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .25); }
.coin-list { max-height: 13rem; overflow-y: auto; border: 1px solid var(--border); border-radius: 0.75rem; }
.coin-row { display: flex; width: 100%; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; font-size: 0.8125rem; text-align: left; transition: background .15s; }
.coin-row + .coin-row { border-top: 1px solid var(--border); }
.coin-row:hover { background: var(--muted); }
.coin-row-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-row-name .muted { font-weight: 400; }
.coin-empty { padding: 0.75rem; }
.net-pill { display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid rgba(var(--primary-rgb), .3); background: rgba(var(--primary-rgb), .08); padding: 0.05rem 0.5rem; font-size: 0.6875rem; font-weight: 700; color: var(--primary); white-space: nowrap; }

.pay-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
@media (min-width: 560px) { .pay-grid { grid-template-columns: 11.5rem minmax(0, 1fr); } }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; border-radius: 1rem; background: #fff; padding: 0.875rem; box-shadow: 0 8px 30px rgba(40,38,36,.1); border: 1px solid #ece7e1; }
html.dark .qr-card { box-shadow: 0 8px 30px rgba(0,0,0,.4); border-color: rgba(255,255,255,.08); }
.qr { width: 9.5rem; height: 9.5rem; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-hint { font-size: 0.6875rem; font-weight: 600; color: #67625d; }
.pay-details { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.pay-amount-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.pay-amount { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--foreground); overflow-wrap: anywhere; }
.pay-ticker { font-weight: 700; color: var(--primary); font-size: 1rem; }
.pay-usd { font-size: 0.8125rem; display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.addr-row { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--muted); padding: 0.5rem 0.625rem; }
.addr { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.35; overflow-wrap: anywhere; flex: 1; min-width: 0; color: var(--foreground); }
.copy-btn { flex-shrink: 0; border-radius: 9999px; background: var(--primary); color: #fff; font-size: 0.6875rem; font-weight: 700; padding: 0.25rem 0.625rem; transition: background .15s; }
.copy-btn:hover { background: rgba(var(--primary-rgb), .85); }
.pay-warn { font-size: 0.6875rem; color: var(--muted-foreground); line-height: 1.45; }
.pay-warn strong { color: var(--foreground); }
.pay-status { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.75rem; border: 1px solid rgba(var(--primary-rgb), .3); background: rgba(var(--primary-rgb), .07); padding: 0.625rem 0.875rem; font-size: 0.8125rem; font-weight: 600; }
.pay-status.ok { border-color: rgba(0,159,49,.35); background: rgba(0,159,49,.08); }
.pay-status.ok .dot { background: var(--live); }
.pay-status.warn { border-color: rgba(228,0,20,.3); background: rgba(228,0,20,.06); }
.pay-status.warn .dot { background: var(--destructive); }
.pay-timer { margin-left: auto; font-weight: 500; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-actions { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.pay-done { align-items: center; text-align: center; padding: 1.5rem 0 0.5rem; }
.done-check { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 9999px; background: var(--live); color: #fff; animation: pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.done-check svg { width: 2rem; height: 2rem; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

.fee-note { font-size: 0.75rem; color: var(--muted-foreground); border-radius: 0.625rem; background: var(--muted); padding: 0.5rem 0.75rem; line-height: 1.45; }
.fee-note.free { background: rgba(0,159,49,.08); color: var(--foreground); }
.fee-note strong { color: var(--foreground); }
.fee-tag { font-size: 0.6875rem; color: var(--muted-foreground); }
.fee-tag.free { color: var(--live); font-weight: 700; }

.modal-panel-pay .modal-close { top: 1rem; right: 1rem; }

/* ── Payment modal — pro layout ─────────────────────────────────────── */
.modal-panel-pay { max-width: 38rem; }
.pay-head { flex-wrap: nowrap; align-items: center; gap: 1rem; padding-right: 3rem; }
.pay-head-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.pay-kicker { max-width: 100%; }
.pay-steps { margin: 0; }
@media (max-width: 479px) { .pay-head { flex-wrap: wrap; } }
.pay-grid { gap: 1rem; }
@media (min-width: 560px) { .pay-grid { grid-template-columns: 12.5rem minmax(0, 1fr); } }
.qr-card { padding: 1rem 0.875rem 0.875rem; gap: 0.375rem; border-radius: 1.125rem; }
.qr-wrap { position: relative; width: 10.5rem; height: 10.5rem; }
.qr { width: 100%; height: 100%; }
.qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(0,0,0,.15); }
.qr-logo img { width: 2rem; height: 2rem; object-fit: contain; border-radius: 9999px; }
.qr-coin { font-size: 0.8125rem; font-weight: 700; color: #282624; margin-top: 0.25rem; }
.qr-hint { font-size: 0.6875rem; font-weight: 500; color: #8a837b; }
.pay-details { gap: 0.625rem; }
.pay-field { display: flex; flex-direction: column; gap: 0.375rem; border: 1px solid var(--border); border-radius: 0.875rem; background: var(--card); padding: 0.625rem 0.75rem; }
html.dark .pay-field { background: rgba(255,255,255,.02); }
.pay-field-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pay-field-row { display: flex; align-items: center; gap: 0.5rem; }
.pay-amount-box { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0.375rem; flex-wrap: wrap; }
.pay-amount { font-size: 1.5rem; }
.pay-ticker { font-size: 0.9375rem; }
.pay-usd { font-size: 0.75rem; }
.addr-row { display: contents; }
.addr { background: transparent; border: 0; padding: 0; font-size: 0.8125rem; }
.copy-btn { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); font-size: 0.6875rem; font-weight: 700; padding: 0.3rem 0.625rem; transition: background .15s, border-color .15s, color .15s; }
.copy-btn:hover { background: var(--muted); border-color: rgba(var(--primary-rgb), .5); }
.copy-btn.copied { border-color: var(--live); color: var(--live); }
.pay-field-memo { border-color: rgba(var(--primary-rgb), .45); background: rgba(var(--primary-rgb), .04); }
.req-tag { border-radius: 9999px; background: var(--primary); color: #fff; font-size: 0.625rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 0.1rem 0.45rem; }
.pay-hint { font-size: 0.6875rem; color: var(--muted-foreground); }
.pay-warn { display: flex; align-items: flex-start; gap: 0.5rem; border-radius: 0.75rem; background: var(--muted); padding: 0.5rem 0.625rem; font-size: 0.6875rem; color: var(--muted-foreground); line-height: 1.45; }
.pay-warn svg { flex-shrink: 0; margin-top: 0.1rem; color: var(--primary); }
.pay-actions .btn { gap: 0.35rem; }
.modal-note { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; width: 100%; }

/* ── Bid modal — pro layout ─────────────────────────────────────────── */
.modal-panel-bid { max-width: 34rem; gap: 0.875rem; }
.modal-panel-bid .pay-head { margin-bottom: 0.125rem; }
.preview-pro { align-items: flex-start; gap: 0.875rem; padding: 0.75rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); }
html.dark .preview-pro { background: rgba(255,255,255,.02); }
.preview-pro .thumb-lg { width: 7rem; height: 4.5rem; border-radius: 0.625rem; }
.preview-title { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-domain { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; }
.preview-favicon { width: 0.875rem; height: 0.875rem; border-radius: 0.2rem; flex-shrink: 0; }
.preview-existing { margin-top: 0.375rem; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); display: inline-block; border-radius: 9999px; background: rgba(var(--primary-rgb), .1); border: 1px solid rgba(var(--primary-rgb), .25); padding: 0.15rem 0.6rem; }
.preview-existing strong { color: var(--primary); }
.modal-panel-bid .pay-field { gap: 0.625rem; padding: 0.75rem 0.875rem; }
.modal-panel-bid .pay-field .field label { font-size: 0.75rem; }
.modal-panel-bid .pay-field .field input { height: 2.75rem; }
.modal-panel-bid .pay-field .field textarea { min-height: 4.25rem; }
.amount-card { align-items: stretch; }
.amount-card .pay-field-head { width: 100%; }
.amount-card .amount-ctl-lg { justify-content: center; margin: 0.25rem 0; }
.quick-amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; }
.qa { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--background); padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); transition: border-color .15s, color .15s, background .15s; }
.qa b { color: var(--foreground); font-weight: 700; }
.qa:hover { border-color: rgba(var(--primary-rgb), .6); color: var(--foreground); }
.qa.on { border-color: var(--primary); background: rgba(var(--primary-rgb), .1); color: var(--primary); }
.qa.on b { color: var(--primary); }
.amount-card .projection { text-align: center; margin-top: 0.125rem; }
.pay-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; border-radius: 0.875rem; background: var(--muted); padding: 0.625rem 0.875rem; }
.pay-summary-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted-foreground); min-width: 0; }
.pay-summary-total { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--foreground); white-space: nowrap; }
.check-card { border: 1px solid var(--border); border-radius: 0.875rem; padding: 0.625rem 0.75rem; align-items: flex-start; }
.check-card:hover { border-color: rgba(var(--primary-rgb), .4); }
.check-card:has(input:checked) { border-color: rgba(var(--primary-rgb), .5); background: rgba(var(--primary-rgb), .04); }
/* modal note: plain centered text (icon inline), no flex — avoids <strong> breaking into columns */
.modal-note { display: block; text-align: center; line-height: 1.5; }
.modal-note svg { display: inline-block; vertical-align: -1px; margin-right: 0.2rem; }

/* ── Bid modal — two columns on desktop ─────────────────────────────── */
.bid-grid { display: flex; flex-direction: column; gap: 0.875rem; }
.bid-col { display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; }
.req-tag-muted { background: var(--muted); color: var(--muted-foreground); }
.locked-note .pay-hint a { color: var(--primary); }
@media (min-width: 960px) {
  .modal-panel-bid { max-width: 64rem; padding: 1.5rem 2rem 1.75rem; }
  .bid-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .bid-col-right { position: sticky; top: 0; }
  .modal-panel-bid .pay-field .field textarea { min-height: 5.5rem; }
  .modal-panel-bid .preview-pro .thumb-lg { width: 8rem; height: 5rem; }
}
/* mobile menu — specificity bump so the base .nav rule (declared later in the file) can't win */
@media (max-width: 640px) {
  .header-nav .nav { flex-direction: column; align-items: stretch; gap: 0.125rem; font-size: 0.9375rem; }
  .header-nav .nav li { width: 100%; }
  .header-nav .nav a { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.75rem 0.875rem; border-radius: 0.75rem; color: var(--foreground); font-weight: 600; }
}
@media (max-width: 640px) {
  .header-nav .nav a[aria-current="page"] { background: rgba(var(--primary-rgb), .1); color: var(--primary); }
}

/* category chips on two rows: two independent flex rows with even gaps, scrolling together horizontally */
.chips { display: flex; flex-direction: column; gap: 0.5rem; width: max-content; min-width: 100%; }
.chips-row { display: flex; align-items: center; gap: 0.5rem; }
.chips .chip { justify-content: center; }
/* hamburger only on mobile (declared after .icon-btn so it wins the cascade) */
.menu-toggle { display: none; }
@media (max-width: 640px) { .menu-toggle { display: inline-flex; } }
.chips { align-items: flex-start; }

.hero-rank { display: inline-block; }
.hero-rank.bump { animation: bump .25s ease-out; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); color: var(--primary); } 100% { transform: scale(1); } }
