/* =====================================================================
   Chinaside — the night market for finds
   One deliberate world: blue-black night, lantern red, amber price tags,
   signage type (Big Shoulders Display) over a clean grotesk (Inter Tight),
   mono for the data (JetBrains Mono). Single dark theme by design: every
   colour below is set explicitly, so the page holds on any host ground.
   ===================================================================== */

:root {
    --paper:      #0b0e15;
    --surface:    #131823;
    --surface-2:  #1a2130;
    --surface-3:  #222a3b;
    --ink:        #f3ede2;
    --ink-2:      #bcc1cb;
    --ink-3:      #8c93a0;
    --line:       #232a39;
    --line-2:     #303a4e;
    --red:        #ff4a3a;
    --red-ink:    #ffffff;
    --red-soft:   rgba(255, 74, 58, .13);
    --amber:      #ffb547;
    --amber-soft: rgba(255, 181, 71, .12);
    --jade:       #3ddc97;
    --accent:     var(--amber);
    --accent-ink: #120d03;
    --accent-soft: var(--amber-soft);
    --hot:        var(--red);
    --good:       var(--jade);

    --radius:    10px;
    --radius-sm: 7px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow:    0 10px 30px -12px rgba(0,0,0,.8);
    --shadow-lg: 0 30px 70px -24px rgba(0,0,0,.9);
    --glow-red:  0 0 24px rgba(255, 74, 58, .45);

    --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --font-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

    --maxw: 1280px;
    --nav-h: 64px;
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    font-family: var(--font-sans);
    background:
        radial-gradient(900px 420px at 85% -120px, rgba(255, 74, 58, .16), transparent 70%),
        radial-gradient(700px 360px at -10% 30%, rgba(255, 181, 71, .05), transparent 70%),
        var(--paper);
    background-repeat: no-repeat;
    color: var(--ink);
    line-height: 1.55;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: .95; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: .88; }
.mono { font-family: var(--font-mono); }
.zh { font-family: var(--font-zh); font-weight: 900; }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.glow { color: var(--red); text-shadow: var(--glow-red); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding-top: 40px; padding-bottom: 40px; }
.grid { display: grid; gap: 18px; }
.row { display: flex; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.spread { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: .92rem;
    background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2);
    transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink-3); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { box-shadow: var(--glow-red); border-color: var(--red); }
.btn-accent { background: var(--amber); color: var(--accent-ink); border-color: var(--amber); }
.btn-hot { background: var(--red); color: #fff; border-color: var(--red); }
.btn-hot:hover { box-shadow: var(--glow-red); }
.btn-ghost { background: transparent; border-color: var(--amber); color: var(--amber); }
.btn-ghost:hover { background: var(--amber-soft); border-color: var(--amber); }
.btn-sm { padding: 7px 13px; font-size: .84rem; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- chips / badges ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--amber); color: var(--ink); }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.chip .zh { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--red-soft); color: var(--red); font-size: .72rem; }
.chip.active .zh { background: rgba(255,255,255,.2); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.badge-qc { background: rgba(11,14,21,.82); color: var(--amber); border: 1px solid rgba(255,181,71,.45); backdrop-filter: blur(4px); }
.badge-hot { background: var(--red-soft); color: var(--red); }
.badge-new { background: rgba(61,220,151,.14); color: var(--jade); }
.verified { color: var(--amber); display: inline-flex; vertical-align: middle; }
.pill-price { font-family: var(--font-mono); font-weight: 500; font-size: .84rem; color: var(--amber); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: rgba(11,14,21,.86); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; letter-spacing: .02em; text-transform: uppercase; display: flex; align-items: center; gap: 0; line-height: 1; }
.brand span { color: var(--red); text-shadow: var(--glow-red); }
.brand .dot { display: none; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { padding: 8px 11px; border-radius: 7px; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--amber); }
.nav-search { flex: 1; max-width: 400px; position: relative; }
.nav-search input { width: 100%; padding: 9px 14px 9px 36px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); font-size: .9rem; }
.nav-search input::placeholder { color: var(--ink-3); }
.nav-search input:focus { outline: none; border-color: var(--amber); }
.nav-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-pad { padding: 18px; }

/* product card: a stall tile */
.pcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: border-color .16s, transform .16s, box-shadow .16s; }
.pcard:hover { border-color: rgba(255,181,71,.55); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(255,74,58,.55); }
.pcard-img { aspect-ratio: 1/1; background: var(--surface-2); position: relative; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.pcard-fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(11,14,21,.7); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line-2); }
.pcard-fav:hover, .pcard-fav.on { color: var(--red); border-color: var(--red); }
.pcard-body { padding: 10px 11px 12px; }
.pcard-brand { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.pcard-title { font-size: .87rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin-top: 2px; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.pcard-plat { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.pcard-qc { font-family: var(--font-mono); font-size: .7rem; color: var(--jade); white-space: nowrap; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 14px; }
.pgrid-tight { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

/* horizontal scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 14px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.scroller > * { scroll-snap-align: start; }

/* section head: signage */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.shead h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); display: flex; align-items: center; gap: 12px; }
.shead h2 .zh { font-size: .9rem; color: var(--red); border: 1.5px solid var(--red); border-radius: 5px; padding: 3px 7px; letter-spacing: 0; text-shadow: none; }
.shead .link { font-size: .88rem; font-weight: 600; color: var(--amber); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.shead .link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* QC film strip */
.qcstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.qcframe { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .15s; }
.qcframe:hover { border-color: var(--amber); }
.qcframe .ph { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.qcframe .ph img { width: 100%; height: 100%; object-fit: cover; }
.qcframe .cap { padding: 9px 11px 11px; }
.qcframe .t { font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcframe .s { font-family: var(--font-mono); font-size: .7rem; color: var(--amber); margin-top: 3px; }

/* ---------- masonry (outfits / hauls) ---------- */
.masonry { columns: 4 230px; column-gap: 14px; }
.masonry > * { break-inside: avoid; margin-bottom: 14px; }
.fitcard { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; display: block; transition: border-color .16s; }
.fitcard:hover { border-color: var(--amber); }
.fitcard img { width: 100%; height: auto; }
.fitcard-over { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,11,.85), rgba(5,7,11,0) 50%); opacity: 0; transition: opacity .2s; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; }
.fitcard:hover .fitcard-over { opacity: 1; }
.fitcard-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fitcard-stat { display: flex; gap: 12px; font-size: .8rem; font-weight: 600; }

/* avatar */
.av { border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.av-sm { width: 26px; height: 26px; }
.av-md { width: 38px; height: 38px; }
.av-lg { width: 72px; height: 72px; }

/* ---------- hero (home) ---------- */
.hero { padding-top: 56px; padding-bottom: 30px; position: relative; overflow-x: clip; }
.hero h1 { font-size: clamp(3.1rem, 9vw, 7rem); line-height: .86; font-weight: 900; max-width: 11ch; }
.hero h1 .glow, .hero .accent-word { color: var(--red); text-shadow: var(--glow-red); font-style: normal; }
.hero-sign { position: absolute; right: 0; top: 30px; font-family: var(--font-zh); font-weight: 900; font-size: clamp(4.5rem, 11vw, 9.5rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px rgba(255,74,58,.6); text-shadow: 0 0 46px rgba(255,74,58,.35); writing-mode: vertical-rl; letter-spacing: .04em; pointer-events: none; user-select: none; }
@supports not (-webkit-text-stroke: 1px red) { .hero-sign { color: rgba(255,74,58,.25); } }
.hero-sub { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; margin-top: 18px; }
.hero-search { margin-top: 26px; max-width: 600px; display: flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.hero-search input { flex: 1; min-width: 0; border: none; background: none; font-size: 1rem; padding: 15px 16px; }
.hero-search input::placeholder { color: var(--ink-3); }
.hero-search input:focus { outline: none; }
.hero-search button { background: var(--red); color: #fff; font-weight: 700; padding: 0 22px; }
.hero-search button:hover { box-shadow: var(--glow-red); }
.hero-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); }
.hero-tags a { border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 9px; color: var(--ink-2); }
.hero-tags a:hover { border-color: var(--amber); color: var(--amber); }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--amber); }
.hero-stats span { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-top: 5px; }

/* category rail */
.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; font-weight: 600; transition: border-color .14s, color .14s; }
.cat:hover { border-color: var(--red); }
.cat-ico { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-zh); font-weight: 900; font-size: .74rem; }
.cat-name { font-size: .86rem; font-weight: 600; }

/* brand wall */
.brandwall { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.brandwall a { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2); transition: color .14s, border-color .14s, text-shadow .14s; }
.brandwall a:hover { color: var(--red); border-color: var(--red); text-shadow: var(--glow-red); }
.brandwall small { font-family: var(--font-mono); font-size: .66rem; color: var(--ink-3); margin-left: 6px; font-weight: 400; }

/* ---------- product page ---------- */
.crumbs { font-size: .82rem; color: var(--ink-3); padding: 18px 0 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--amber); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 36px; align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--nav-h) + 16px); }
.pdp-main-img { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.pdp-main-img img { width: 100%; height: 100%; object-fit: contain; background: #0f131c; }
.pdp-main-img .badge { position: absolute; top: 12px; left: 12px; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin-top: 10px; }
.pdp-thumb { aspect-ratio: 1/1; border-radius: 7px; overflow: hidden; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; padding: 0; }
.pdp-thumb.active { border-color: var(--amber); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: .92; margin: 6px 0 12px; }
.pdp-brand { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.qc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.qc-facts div { background: var(--surface); padding: 12px 14px; }
.qc-facts b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; line-height: 1; color: var(--ink); }
.qc-facts span { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.price-big { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--amber); line-height: 1; }

/* agent compare */
.agents-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.agent-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); transition: background .12s; }
.agent-row:first-child { border-top: none; }
.agent-row:hover { background: var(--surface-2); }
.agent-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.agent-name { font-weight: 600; font-size: .92rem; }
.agent-note { font-size: .74rem; color: var(--ink-3); }
.agent-cta { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.cop-hero { border: 1px solid var(--red); border-radius: var(--radius); padding: 16px 18px; background: linear-gradient(135deg, rgba(255,74,58,.14), rgba(255,74,58,.03)); box-shadow: inset 0 0 0 1px rgba(255,74,58,.12); }

/* ---------- converter ---------- */
.conv-box { max-width: 760px; margin: 0 auto; }
.conv-input-row { display: flex; gap: 10px; }
.conv-input-row input { flex: 1; min-width: 0; padding: 15px 16px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2); font-size: .98rem; font-family: var(--font-mono); }
.conv-input-row input:focus { outline: none; border-color: var(--amber); }
.conv-featured { border: 1px solid var(--red); border-radius: var(--radius); padding: 18px; margin: 20px 0; background: linear-gradient(135deg, rgba(255,74,58,.14), rgba(255,74,58,.03)); }
.conv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.conv-agent { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; background: var(--surface); }
.conv-agent .nm { font-weight: 600; font-size: .88rem; }
.conv-acts { display: flex; gap: 6px; }
.conv-copy, .conv-open { font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-2); }
.conv-copy.copied { background: var(--jade); color: #04130c; border-color: var(--jade); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; padding: 11px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); font-size: .95rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); }
.field textarea { resize: vertical; min-height: 90px; }
.form-card { max-width: 440px; margin: 40px auto; }
select { background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; }

/* ---------- callouts ---------- */
.callout { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); display: flex; gap: 13px; }
.callout.accent { border-color: rgba(255,181,71,.4); background: var(--amber-soft); }
.callout-ico { font-size: 1.2rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 46px 0 40px; background: #080a10; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 30px; }
.footer h5 { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 12px; font-weight: 500; }
.footer a { display: block; color: var(--ink-2); font-size: .88rem; padding: 4px 0; }
.footer a:hover { color: var(--amber); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-3); }

/* ---------- misc ---------- */
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat .n { font-family: var(--font-display); font-size: 2rem; font-weight: 900; line-height: 1; color: var(--amber); }
.stat .l { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-top: 5px; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty .ico { font-size: 2.4rem; margin-bottom: 10px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.tag-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: .7rem; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.flash { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--accent-ink); padding: 11px 20px; border-radius: 8px; font-size: .88rem; font-weight: 700; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; transition: opacity .2s; pointer-events: none; }
.flash.show { opacity: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 11px 15px; font-size: .9rem; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--red); }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 30px 0 0; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 18px; }

/* prose (guide, legal) */
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: 1.9rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.3rem; margin: 22px 0 6px; }
.prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 8px 0 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 14px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; }
.prose th { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 500; }
.tablewrap { overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .pdp { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .pdp-gallery { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .masonry { columns: 2 160px; }
    .hero-sign { opacity: .55; }
}
@media (max-width: 760px) {
    .nav-search { display: none; }
    .nav-links { display: none; }
    .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; gap: 2px; }
    .nav-links.open a { padding: 12px 10px; font-size: 1rem; }
    .nav-toggle { display: grid; }
    .wrap, .nav-inner { padding: 0 16px; }
    .hero { padding-top: 34px; padding-bottom: 22px; }
    .hero-sign { font-size: 4.2rem; top: 14px; }
    .section { padding-top: 30px; padding-bottom: 30px; }
    .qc-facts b { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .masonry { columns: 2 130px; column-gap: 10px; }
    .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .hero-stats b { font-size: 1.8rem; }
}
