/* ============================================================
   DiscandDeck — shared styles
   Late-night video store: ink background, hot orange, marquee yellow.
   ============================================================ */

:root {
  --bg: #0e0d12;
  --surface: #17151d;
  --surface-2: #211e29;
  --line: #2f2b39;
  --text: #f4f0e8;
  --muted: #a39dab;
  --accent: #ff5a36;
  --accent-hover: #ff7454;
  --accent-ink: #1b0904;
  --gold: #ffc93c;
  --good: #5fd38d;
  --bad: #ff6b6b;
  --radius: 10px;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: progress; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 13, 18, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
/* Brand logo (public/brand/): 809×210 artwork, shown at 44px tall (34px on phones). */
.logo-img { display: block; height: 44px; width: auto; aspect-ratio: 809 / 210; }
.logo:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 560px) { .logo-img { height: 34px; } }
.footer-logo { display: block; height: 32px; width: auto; aspect-ratio: 809 / 210; }
.logo-sub { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav-link:hover { color: var(--text); }
@media (max-width: 420px) { .logo-sub { display: none; } }

/* Global search in the sticky header: logo | search (centred) | account + cart. Phones: search drops to a second row. */
.has-search .header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search nav"; column-gap: 20px; }
.has-search .logo { grid-area: logo; }
.has-search .nav { grid-area: nav; justify-self: end; }
.hdr-search {
  grid-area: search; justify-self: center; width: 100%; max-width: 560px;
  display: flex; align-items: center; height: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, box-shadow .15s;
}
.hdr-search:hover { border-color: #3d3849; }
.hdr-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 54, .18); }
.hdr-search input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none;
  padding: 0 4px 0 16px; color: var(--text); font: inherit; font-size: 15px;
}
.hdr-search input::placeholder { color: var(--muted); opacity: .8; }
.hdr-search input::-webkit-search-cancel-button { filter: invert(.7); }
.hdr-search-btn {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 2px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
}
.hdr-search-btn svg { width: 18px; height: 18px; }
.hdr-search-btn:hover, .hdr-search:focus-within .hdr-search-btn { background: var(--accent); color: #fff; }
.hdr-search-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 1000px) { .has-search .logo-sub { display: none; } }
@media (max-width: 760px) {
  .has-search .header-inner { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo nav" "search search"; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .hdr-search { max-width: none; }
  .hdr-search input { font-size: 16px; }   /* 16px stops iOS zooming in on focus */
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 36px;
  background:
    radial-gradient(900px 300px at 85% -10%, rgba(255, 90, 54, .22), transparent 60%),
    radial-gradient(700px 260px at 0% 110%, rgba(255, 201, 60, .10), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 10px; color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 {
  margin: 0 0 24px; max-width: 18ch;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 6.5vw, 64px); line-height: 1.02; letter-spacing: .005em;
}
.search {
  display: flex; gap: 8px; max-width: 640px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px;
}
.search:focus-within { border-color: var(--accent); }
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 14px; outline: none; font-size: 16px;
}
.search input::placeholder { color: var(--muted); }
.hero-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* Split hero: headline + CTAs on the left, rotating showcase on the right (stacks on phones). */
.hero-split { padding: 44px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; } .hero-split { padding: 56px 0 52px; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255, 201, 60, .35); border-radius: 999px; background: rgba(255, 201, 60, .07);
  color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 54, .25); flex: none; }
.hero-split h1 { margin: 0 0 18px; max-width: 16ch; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; }
.hero-sub { margin: 0 0 28px; max-width: 46ch; color: #cfc9d6; font-size: 17px; line-height: 1.55; }
@media (min-width: 900px) { .hero-sub { font-size: 18px; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { padding: 0 26px; }
.btn-outline { background: transparent; border: 1.5px solid var(--text); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline:focus-visible, .hero-ctas .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 420px) { .hero-ctas .btn { flex: 1 1 100%; } }

.showcase { position: relative; }
.showcase-stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  background: radial-gradient(circle at 60% 30%, var(--surface-2), var(--bg) 75%);   /* shows if an image fails */
}
.showcase-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.showcase-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.showcase-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.showcase-link img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s ease-out; }
.showcase-slide.is-active .showcase-link img { transform: scale(1); }
.showcase-caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 48px 18px 16px; background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
  font-weight: 600; font-size: 15px; color: #fff;
}
.showcase-go { color: var(--gold); font-size: 13px; white-space: nowrap; opacity: .85; transition: opacity .15s; }
.showcase-link:hover .showcase-go { opacity: 1; text-decoration: underline; }
.showcase-link:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 18px; }
.showcase-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.showcase-dots { display: flex; gap: 8px; }
.showcase-dot {
  position: relative; width: 34px; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.showcase-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 4px; background: var(--line); transition: background .2s; }
.showcase-dot:hover::before { background: var(--muted); }
.showcase-fill { position: absolute; left: 0; top: 8px; height: 4px; width: 0; border-radius: 4px; background: var(--accent); }
.showcase-dot[aria-current="true"] .showcase-fill { width: 100%; }
.showcase.is-ready .showcase-dot[aria-current="true"] .showcase-fill { width: 0; animation: showcase-progress var(--slide-ms, 5500ms) linear forwards; }
.showcase.is-paused .showcase-fill { animation-play-state: paused !important; }
.showcase.is-stopped .showcase-dot[aria-current="true"] .showcase-fill { animation: none; width: 100%; }
.showcase-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
@keyframes showcase-progress { from { width: 0; } to { width: 100%; } }
.showcase-pause {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.showcase-pause svg { width: 12px; height: 12px; }
.showcase-pause:hover { color: var(--text); border-color: var(--muted); }
.showcase-pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.showcase-pause .i-play, .showcase-pause[aria-pressed="true"] .i-pause { display: none; }
.showcase-pause[aria-pressed="true"] .i-play { display: block; }
@media (prefers-reduced-motion: reduce) {
  .showcase-slide, .showcase-slide.is-active { transition: none; }
  .showcase-link img, .showcase-slide.is-active .showcase-link img { transform: none; transition: none; }
}

/* "Why DiscandDeck" — three trust points under the hero. */
.why { padding: 28px 0; border-bottom: 1px solid var(--line); }
.why-h { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.why-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start;
  padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.why-icon {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 90, 54, .12); color: var(--accent); border: 1px solid rgba(255, 90, 54, .25);
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { margin: 2px 0 4px; font-size: 16px; }
.why-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ── Notice ──────────────────────────────────────────────── */
.notice {
  margin-top: 20px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .35); font-size: 14px;
}
.notice code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

/* ── Category chips ──────────────────────────────────────── */
.cats { border-bottom: 1px solid var(--line); }
.cats-inner {
  display: flex; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px;
  overflow-x: auto; scrollbar-width: none;
}
.cats-inner::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-weight: 500; font-size: 14px;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-group {
  flex: none; margin-left: 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}

/* ── Layout ──────────────────────────────────────────────── */
.layout { display: grid; gap: 32px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; } }
main { min-width: 0; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.result-count { margin: 0; color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.select-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
select {
  min-height: 36px; padding: 0 30px 0 12px; border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a39dab' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--line); appearance: none; color: var(--text); font-size: 14px;
}

.new-banner {
  display: block; width: 100%; margin-bottom: 16px; padding: 12px; border-radius: var(--radius);
  background: rgba(255, 90, 54, .12); border: 1px solid rgba(255, 90, 54, .5);
  color: var(--text); font-weight: 600; cursor: pointer;
}
.new-banner[hidden] { display: none; }

/* ── Listing grid (eBay-style compact) ───────────────────── */
/* Columns follow the space the grid actually has (container queries), so the Shop page (with its
   filter sidebar), the homepage feed (beside the calculator) and profiles all get the right count:
   2 on phones → 3 → 4 → 5 → 6 on wide screens. */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));  /* fallback */
}
@supports (container-type: inline-size) {
  :where(main, section, div):has(> .grid) { container-type: inline-size; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @container (min-width: 520px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
  @container (min-width: 700px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @container (min-width: 840px)  { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
  @container (min-width: 1000px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
}
/* Browsing pages use more of a wide screen. */
body.wide .wrap { max-width: 1440px; }

.listing {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: border-color .15s;
}
.listing:hover { border-color: var(--accent); }
.listing:hover .listing-title { text-decoration: underline; text-underline-offset: 2px; }
/* Uniform square thumbnails: the whole item stays visible whatever the photo's shape. */
.thumb { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center;
  font-family: var(--display); font-size: 15px; text-transform: uppercase; color: var(--line);
}
.cond {
  position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; line-height: 1.4; background: rgba(14, 13, 18, .85); color: var(--text);
}
.cond-new_sealed { background: var(--gold); color: #1a1400; }
.listing-body { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 10px; flex: 1; min-width: 0; }
.listing-body p { margin: 0; }
.listing-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.listing-title {
  margin: 1px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; min-height: 2.6em;  /* 2 lines, so prices line up */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.listing-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-price { margin-top: auto !important; padding-top: 4px; font-size: 16px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ship { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.listing-seller { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars { color: var(--gold); }
.new-seller { color: var(--good); }

.skeleton .thumb, .skeleton .listing-body span {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite linear;
}
.skeleton { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.skeleton .listing-body span { display: block; height: 10px; border-radius: 4px; margin: 3px 0; }
.skeleton .listing-body .short { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton * { animation: none !important; } .listing { transition: none; } }

.grid-state {
  padding: 48px 16px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.grid-state p { margin: 0 0 16px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ── Earnings calculator ─────────────────────────────────── */
@media (min-width: 980px) { .calc-wrap { position: sticky; top: 88px; align-self: start; } }
.calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  border-top: 4px solid var(--accent);
}
.calc-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.calc h2 { margin: 4px 0 18px; font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; line-height: 1.1; }

.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field small { font-weight: 400; }
.field select { width: 100%; min-height: 42px; }
.money {
  display: flex; align-items: center; gap: 4px; padding: 0 12px; min-height: 42px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.money:focus-within { border-color: var(--accent); }
.money > span { color: var(--muted); }
.money input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 16px; font-variant-numeric: tabular-nums; }

.ship-service {
  margin: -4px 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2);
  font-size: 13px; display: grid; gap: 2px;
}
.ship-service strong { color: var(--text); }
.ship-service span { color: var(--muted); }

.seg { border: 0; margin: 0 0 14px; padding: 0; }
.seg legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.seg legend { grid-column: 1 / -1; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px;
  border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; cursor: pointer; text-align: center;
}
.seg label:first-of-type span { border-radius: 8px 0 0 8px; }
.seg label:last-of-type span { border-radius: 0 8px 8px 0; border-left: 0; }
.seg input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.toggle[hidden] { display: none; }

.calc-out { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.takehome { display: grid; gap: 2px; margin-bottom: 14px; }
.takehome span { font-size: 13px; font-weight: 600; color: var(--muted); }
.takehome strong { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1; color: var(--good); font-variant-numeric: tabular-nums; }
.takehome strong.negative { color: var(--bad); }
.takehome small { font-size: 13px; color: var(--muted); }

.breakdown { margin: 0; font-size: 13px; }
.breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-variant-numeric: tabular-nums; }
.breakdown .bd-sub dt, .breakdown .bd-sub dd { padding-left: 12px; font-size: 12px; opacity: .8; }
.breakdown .bd-total { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 6px; font-weight: 700; }
.breakdown .bd-total dt { color: var(--text); }
.bd-head { margin: 12px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bd-head:first-child { margin-top: 0; }
.calc-foot { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }


/* ============================================================
   Create / edit listing
   ============================================================ */
.sell-layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 96px; }
@media (min-width: 980px) { .sell-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.sell-layout main { min-width: 0; }
.page-title {
  margin: 0 0 20px; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.05;
}
.sell-layout .notice { margin: 0 0 20px; }
.notice a { color: var(--gold); }

.gate {
  padding: 32px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  display: grid; gap: 12px; justify-items: start;
}
.gate h2 { margin: 0; font-size: 22px; }
.gate p { margin: 0; color: var(--muted); }
.gate code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin-bottom: 18px;
}
@media (min-width: 720px) { .panel { padding: 24px; } }
.panel h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head h2 { margin-bottom: 4px; }
.panel-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.counter { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }

/* generic fields */
.panel .field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.panel .field > span:first-child, .panel .field > legend {
  display: flex; justify-content: space-between; gap: 8px;
  margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted);
}
.panel input[type="text"], .panel input[type="number"], .panel input[type="email"], .panel input[type="search"], .panel input[type="tel"], .panel input[type="url"], .panel textarea, .panel .field select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 16px;
}
.panel textarea { resize: vertical; line-height: 1.5; min-height: 140px; }
.panel input:focus, .panel textarea:focus, .panel select:focus { outline: none; border-color: var(--accent); }
.panel .money input { border: 0; padding: 0; min-height: 0; background: transparent; }
.panel [aria-invalid="true"], .panel .money:has([aria-invalid="true"]) { border-color: var(--bad) !important; }
.field-error { display: block; min-height: 0; margin-top: 6px; color: var(--bad); font-size: 13px; }
.field-error:empty { display: none; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: -4px 0 18px; }

/* condition cards */
.cond-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cond-card { position: relative; cursor: pointer; }
.cond-card input { position: absolute; opacity: 0; inset: 0; }
.cond-card > span {
  display: grid; gap: 2px; height: 100%; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); transition: border-color .15s;
}
.cond-card strong { font-size: 14px; }
.cond-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.cond-card:hover > span { border-color: var(--muted); }
.cond-card input:checked + span { border-color: var(--accent); background: rgba(255, 90, 54, .08); }
.cond-card input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* shipping service */
.ship-options { display: grid; gap: 8px; }
@media (min-width: 560px) { .ship-options { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.ship-sub { margin-bottom: 10px; font-size: 13px; }
.ship-sub[data-kind="error"] { color: var(--bad); }
.ship-carrier { justify-self: start; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }
.ship-carrier-ups { color: #f2b544; }
.ship-carrier-fedex { color: #b48cff; }
.ship-carrier-usps { color: #7fb2ff; }
.ship-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-height: 22px; margin-top: 4px; }
.ship-price:empty { display: none; }
.ship-price em { font-style: normal; font-weight: 700; font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.ship-price i { font-style: normal; font-size: 12px; color: var(--muted); }
.ship-price.is-loading i { animation: ship-pulse 1.2s ease-in-out infinite; }
@keyframes ship-pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .ship-price.is-loading i { animation: none; } }
.ship-option.is-disabled .ship-price { display: none; }
.ship-estimate { margin: -6px 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.ship-estimate p { margin: 0 0 4px; }
.ship-estimate p:last-child { margin-bottom: 0; }
.ship-estimate .link-btn { margin-top: 2px; }
.ship-warn { color: var(--gold); }
.ship-option { position: relative; cursor: pointer; }
.ship-option input { position: absolute; opacity: 0; inset: 0; }
.ship-option > span {
  display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
}
.ship-option small { color: var(--muted); font-size: 12px; }
.ship-option input:checked + span { border-color: var(--accent); background: rgba(255, 90, 54, .08); }
.ship-option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.ship-option.is-disabled { cursor: not-allowed; }
.ship-option.is-disabled > span { opacity: .45; text-decoration: line-through; text-decoration-color: var(--muted); }
.ship-rule {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 13px;
  background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .3);
}
#collectibles-wrap { margin-top: 12px; }
.panel .seg { margin-bottom: 18px; }

/* photos */
.photo-grid {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
.photo-grid:empty { display: none; }
.photo {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.photo.is-cover { border: 2px solid var(--accent); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-busy { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.cover-tag {
  position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700;
}
.photo-tools {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); padding: 16px 4px 4px;
}
.photo-tools button {
  width: 28px; height: 28px; border-radius: 6px; border: 0; cursor: pointer;
  background: rgba(14, 13, 18, .85); color: var(--text); font-size: 13px; line-height: 1;
}
.photo-tools button:disabled { opacity: .3; cursor: default; }
.photo-tools .danger:hover { background: var(--bad); color: #000; }
.dropzone {
  display: grid; gap: 4px; place-items: center; text-align: center; cursor: pointer;
  padding: 28px 16px; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg);
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(255, 90, 54, .06); }
.dropzone:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.dropzone strong { font-size: 16px; }
.dropzone span { color: var(--muted); font-size: 13px; }

/* actions bar: sticks to the bottom of the screen while filling the form */
.form-actions {
  position: sticky; bottom: 0; z-index: 10; margin: 0 -16px; padding: 12px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(14, 13, 18, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .form-actions { margin: 0; border: 1px solid var(--line); border-radius: 14px; } }
.form-status { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 200px; }
.form-status[data-kind="error"] { color: var(--bad); }
.form-status[data-kind="ok"] { color: var(--good); }
.form-buttons { display: flex; gap: 10px; flex: 1 1 auto; justify-content: flex-end; }
@media (max-width: 480px) { .form-buttons .btn { flex: 1; } }

.calc-out.flush { margin-top: 0; padding-top: 0; border-top: 0; }
.promo-note { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: rgba(95, 211, 141, .1); color: var(--good); }
/* phones: show take-home in the sticky action bar (full panel is below the form) */
.mini-net { margin: 0; font-size: 13px; color: var(--muted); flex-basis: 100%; }
.mini-net strong { color: var(--good); font-size: 16px; margin-left: 4px; font-variant-numeric: tabular-nums; }
@media (min-width: 980px) { .mini-net { display: none; } }

/* ============================================================
   Listing detail
   ============================================================ */
.crumbs { display: flex; gap: 8px; align-items: center; padding: 18px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-state { margin: 32px 0 80px; }

.item-skeleton { display: grid; gap: 24px; padding: 24px 0 80px; }
@media (min-width: 900px) { .item-skeleton { grid-template-columns: minmax(0, 1fr) 400px; } }
.sk { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 12px; }
.sk-photo { aspect-ratio: 1; }
.sk-col { display: grid; gap: 14px; align-content: start; }
.sk-line { height: 18px; } .w60 { width: 60%; } .w90 { width: 90%; } .w40 { width: 40%; }
.sk-box { height: 220px; }

.item {
  display: grid; gap: 24px 40px; padding-top: 16px; padding-bottom: 80px;
  grid-template-areas: "banner" "gallery" "buy" "details";
}
@media (min-width: 900px) {
  .item { grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "banner banner" "gallery buy" "details buy"; }
  .buybox { position: sticky; top: 84px; align-self: start; }
}
.status-banner { grid-area: banner; padding: 12px 16px; border-radius: 10px; font-size: 14px;
  background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .35); }
.status-banner[data-kind="sold"] { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .4); }
.status-banner a { color: var(--gold); }
.gallery { grid-area: gallery; min-width: 0; }
.buybox { grid-area: buy; min-width: 0; }
.item-details { grid-area: details; min-width: 0; }

/* gallery */
.gallery-main {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); touch-action: pan-y;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(14, 13, 18, .8); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
}
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-nav:hover { border-color: var(--accent); }
.single .gal-nav, .single .gal-count { display: none; }
.gal-count { position: absolute; left: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(14, 13, 18, .8); font-size: 12px; }
.gal-count:empty { display: none; }
.gal-zoom { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(14, 13, 18, .8); color: var(--text); cursor: pointer; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.g-thumb { flex: none; width: 68px; height: 68px; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--surface); opacity: .6; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb[aria-selected="true"] { border-color: var(--accent); opacity: 1; }
.g-thumb:hover { opacity: 1; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(14, 13, 18, .8); color: var(--text); font-size: 18px; cursor: pointer; }

/* buy box */
.buybox .eyebrow { margin-bottom: 6px; }
.item-title { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; font-weight: 700; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.tag-cond { background: var(--text); color: var(--bg); border-color: var(--text); }
.tag-cond.cond-new_sealed { background: var(--gold); border-color: var(--gold); color: #1a1400; }
.item-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.item-price strong { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.item-price span { color: var(--muted); font-size: 14px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions.solo > :first-child { grid-column: 1 / -1; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn.is-static { cursor: default; grid-column: 1 / -1; }
.buy-note { margin: 10px 0 18px; font-size: 12px; color: var(--muted); }
.buy-breakdown { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.offer-status { margin-bottom: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px;
  background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .35); }
.offer-status[data-kind="accepted"] { background: rgba(95, 211, 141, .1); border-color: rgba(95, 211, 141, .45); }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font-size: inherit; }

.ship-card { padding: 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.ship-card p { margin: 0; }
.ship-card-head { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px !important; }
.ship-card-method { font-weight: 600; }
.ship-card-eta { margin-top: 4px !important; font-size: 14px; }
.ship-card-eta strong { color: var(--good); }
.ship-card-eta:empty { display: none; }
.ship-card-note { margin-top: 6px !important; font-size: 13px; color: var(--muted); }

.seller-card { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seller-top { display: flex; gap: 12px; align-items: center; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 20px; color: var(--accent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { margin: 0; font-weight: 700; }
.seller-name a { text-decoration: none; } .seller-name a:hover { text-decoration: underline; }
.seller-handle { margin: 0; font-size: 13px; color: var(--muted); }
.verified { display: inline-flex; gap: 6px; align-items: center; margin: 12px 0 0; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--good); background: rgba(95, 211, 141, .1); border: 1px solid rgba(95, 211, 141, .35); }
.seller-rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.seller-rating span:not(.stars-bar):not(.stars-fill) { color: var(--muted); }
.stars-bar { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; color: var(--line); }
.stars-bar::before { content: "★★★★★"; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.stars-fill::before { content: "★★★★★"; }
.seller-stats { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }

/* details */
.item-details h2 { margin: 28px 0 10px; font-size: 18px; }
.item-details h2:first-child { margin-top: 0; }
.cond-detail { margin: 0; color: var(--muted); }
.cond-detail strong { color: var(--text); }
.item-desc { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.muted { color: var(--muted); margin: 0; }
.specs { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.specs > div:first-child { border-top: 0; }
.specs > div:nth-child(odd) { background: var(--surface); }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.review { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.review-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.review p { margin: 6px 0 0; font-size: 14px; }

/* modal */
.modal { width: min(460px, calc(100vw - 32px)); padding: 24px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); }
.modal::backdrop { background: rgba(0, 0, 0, .65); }
.modal h2 { margin: 0 0 4px; font-size: 22px; }
.modal-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.modal .field { margin-bottom: 14px; }
.modal .field > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.modal textarea { width: 100%; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 16px; resize: vertical; }
.modal textarea:focus { outline: none; border-color: var(--accent); }
.modal .breakdown:not(:empty) { padding: 10px 12px; border-radius: 10px; background: var(--bg); margin-bottom: 12px; }
.modal-fine { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.offers-toggle { align-items: flex-start; margin: -4px 0 18px; }
.offers-toggle input { margin-top: 2px; flex: none; }
.offers-toggle small { display: block; color: var(--muted); font-size: 12px; }
/* Working-condition confirmation on the listing form (required to publish). */
.confirm-panel .field { margin: 0; }
.confirm-working { align-items: flex-start; font-weight: 600; font-size: 15px; line-height: 1.4; }
.confirm-working input { margin-top: 1px; flex: none; }
.confirm-panel:has(#f-working[aria-invalid="true"]) { border-color: var(--bad); }
#reviews-wrap { margin-top: 28px; }

/* ============================================================
   Checkout + order confirmation
   ============================================================ */
.checkout, .confirm { padding-top: 24px; padding-bottom: 80px; max-width: 880px; }
.back-link { display: inline-block; margin-bottom: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--text); }
.co-loading { padding: 40px 0; color: var(--muted); }
.co-grid, .oc-grid { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .co-grid { grid-template-columns: 1fr 1fr; }
  .co-item { grid-column: 1 / -1; }
  .co-pay { grid-column: 2; grid-row: 2 / span 2; }
  .oc-grid { grid-template-columns: 1fr 1fr; }
  .oc-grid .co-item { grid-column: 1 / -1; }
}
.co-grid .panel, .oc-grid .panel { margin: 0; }
.co-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.co-thumb { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-thumb .thumb-fallback { font-size: 14px; }
.co-title { margin: 2px 0 4px; font-size: 18px; }
.co-title a { text-decoration: none; } .co-title a:hover { text-decoration: underline; }
.co-meta { margin: 0; color: var(--muted); font-size: 14px; }
.co-offer { margin: 8px 0 0; font-size: 14px; color: var(--good); }
.co-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.co-ship p { margin: 0; }
.co-pay .breakdown { margin-bottom: 16px; }
.co-error { margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .45); }
.co-error[data-kind="info"] { background: var(--surface-2); border-color: var(--line); }
.paypal-buttons { min-height: 110px; }
.paypal-buttons.is-busy { opacity: .4; pointer-events: none; }
.co-busy { margin: 8px 0 0; font-weight: 600; color: var(--gold); }
.gate .btn + .btn { margin-left: 8px; }

.oc-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.oc-check { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 28px; font-weight: 700; background: var(--good); color: #062512; }
.oc-hero[data-status="pending"] .oc-check { background: var(--gold); color: #1a1400; }
.oc-hero[data-status="refunded"] .oc-check, .oc-hero[data-status="disputed"] .oc-check { background: var(--surface-2); color: var(--muted); }
.oc-hero .page-title { margin-bottom: 4px; }
.oc-sub { margin: 0; color: var(--muted); }
.oc-address { font-style: normal; line-height: 1.6; margin-bottom: 12px; }
.oc-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.oc-steps strong { color: var(--text); }
.oc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   Sign in
   ============================================================ */
.auth-wrap { display: grid; place-items: start center; padding: 48px 16px 80px; min-height: calc(100dvh - 65px); }
.auth-card { width: 100%; max-width: 420px; padding: 28px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.auth-title { margin: 0 0 6px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 1.05; }
.auth-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.auth-card .field { display: block; margin-bottom: 16px; }
.auth-card .field > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-card input { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 16px; }
.auth-card input:focus { outline: none; border-color: var(--accent); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 13px; cursor: pointer; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-msg { margin-bottom: 16px; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .45); }
.auth-msg[data-kind="ok"] { background: rgba(95, 211, 141, .1); border-color: rgba(95, 211, 141, .45); }
.auth-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 16px 0 0; font-size: 14px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   Dashboard
   ============================================================ */
.dash { padding-top: 24px; padding-bottom: 80px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dash-head .page-title { margin: 0; }
.paypal-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px;
  padding: 14px 16px; border-radius: 12px; background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .4); }
.paypal-banner span { display: block; color: var(--muted); font-size: 14px; }
.stat-row { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat strong { font-family: var(--display); font-weight: 400; font-size: 30px; font-variant-numeric: tabular-nums; }
.stat.hot strong { color: var(--accent); }
.dash-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 20px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.dash-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; line-height: 20px; text-align: center; }
.badge[hidden] { display: none; }
.d-h2 { margin: 26px 0 12px; font-size: 16px; }
.d-h2:first-child { margin-top: 0; }
.d-none { margin: 0 0 8px; color: var(--muted); }
.seg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.d-list, .d-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.d-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 720px) { .d-row { grid-template-columns: 56px 1fr auto; } }
.d-row.is-closed { opacity: .65; }
.d-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-thumb span { font-size: 9px; color: var(--muted); text-align: center; padding: 2px; }
.d-main { min-width: 0; }
.d-title { margin: 0; font-weight: 600; text-decoration: none; display: block; overflow-wrap: anywhere; }
a.d-title:hover { text-decoration: underline; }
.d-title a { text-decoration: underline; }
.d-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.d-meta a { color: var(--gold); }
.d-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }
.d-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 720px) { .d-actions { grid-column: auto; justify-content: flex-end; } }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: var(--bad); border-color: rgba(255, 107, 107, .4); }
.d-empty { padding: 36px 16px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.d-empty p { margin: 0 0 14px; }
.d-closed { margin-top: 10px; }
.d-closed summary { cursor: pointer; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.pill-paid, .pill-pending { color: var(--gold); border-color: rgba(255, 201, 60, .45); }
.pill-shipped, .pill-delivered { color: #8fb8ff; border-color: rgba(143, 184, 255, .45); }
.pill-completed, .pill-accepted { color: var(--good); border-color: rgba(95, 211, 141, .45); }
.pill-refunded, .pill-disputed, .pill-late { color: var(--bad); border-color: rgba(255, 107, 107, .45); }
.pill-closed { color: var(--muted); }

.ship-order { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ship-order-head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.ship-order-head .pill { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) { .ship-order-head { grid-template-columns: 56px 1fr auto; } .ship-order-head .pill { grid-column: auto; } }
.ship-order-body { display: grid; gap: 14px; margin: 14px 0; padding: 14px; border-radius: 10px; background: var(--bg); }
@media (min-width: 560px) { .ship-order-body { grid-template-columns: 1.4fr 1fr; } }
.d-label { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.d-address { font-style: normal; line-height: 1.55; margin-bottom: 6px; }
.d-plain { margin: 0; }
.ship-form { display: grid; gap: 10px; align-items: end; }
@media (min-width: 560px) { .ship-form { grid-template-columns: 1fr auto; } }
.ship-form .field { margin: 0; }
.ship-form .field span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ship-form input, .rate-form textarea, .settings-grid input:not([type="checkbox"]):not([type="file"]), .settings-grid textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 16px; }
.ship-form input:focus, .rate-form textarea:focus, .settings-grid input:not([type="checkbox"]):focus, .settings-grid textarea:focus { outline: none; border-color: var(--accent); }

.rate-form { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--bg); display: grid; gap: 8px; max-width: 460px; }
.rate-form textarea { min-height: 0; font-size: 14px; }
.rate-form .btn { justify-self: start; }
.rate-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate-stars label { position: relative; cursor: pointer; font-size: 26px; line-height: 1; color: var(--line); }
.rate-stars input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rate-stars label:has(input:checked), .rate-stars label:has(input:checked) ~ label,
.rate-stars label:hover, .rate-stars label:hover ~ label { color: var(--gold); }
.rate-stars label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.settings-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.settings-grid .panel { margin-bottom: 16px; }
.settings-grid .field { display: block; margin-bottom: 14px; }
.settings-grid .field > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.settings-grid textarea { resize: vertical; }
.pp-status { margin: 0 0 6px; font-weight: 600; }
.pp-status.ok { color: var(--good); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pp-issues { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .4); }
.pp-issues p { margin: 0 0 4px; } .pp-issues ul { margin: 0; padding-left: 18px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.toast[data-kind="error"] { background: var(--bad); color: #1a0000; }

/* ============================================================
   Public profile
   ============================================================ */
.profile { padding-top: 28px; padding-bottom: 80px; }
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 24px; }
.profile-head .avatar { width: 80px; height: 80px; font-size: 32px; }
.profile-name { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.profile-handle { margin: 2px 0 8px; color: var(--muted); }
.profile-bio { max-width: 640px; margin: 0 0 24px; white-space: pre-line; overflow-wrap: anywhere; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.profile h2 { margin: 28px 0 14px; font-size: 18px; }

/* ============================================================
   Listing Q&A + order thread
   ============================================================ */
.qa { margin-top: 28px; }
.qa h2 .muted { font-weight: 400; }
.qa-list, .thread { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.qa-item, .msg { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; padding: 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); }
.qa-item.is-seller { border-color: rgba(255, 90, 54, .45); background: rgba(255, 90, 54, .05); }
.qa-item.is-hidden { opacity: .55; }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.qa-meta { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.qa-meta strong { color: var(--text); }
.qa-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.qa-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.qa-hide { font-size: 12px; color: var(--muted); }
.qa-empty { color: var(--muted); padding: 4px 0; }
.qa-form textarea { width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 16px; resize: vertical; }
.qa-form textarea:focus { outline: none; border-color: var(--accent); }
.qa-form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 8px; }
.qa-form-row small { font-size: 12px; }
.qa a, .muted a { color: var(--gold); }

/* ── Order page ── */
.order-page { padding-top: 24px; padding-bottom: 80px; max-width: 1040px; }
.op-head { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; margin: 6px 0 18px; }
.op-thumb { width: 72px; }
.op-title { margin: 0 0 4px; font-size: clamp(20px, 3vw, 28px); line-height: 1.2; }
.timeline { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.timeline li { position: relative; display: grid; gap: 2px; padding-top: 18px; font-size: 13px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline .dot { position: absolute; top: 1px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li.done { color: var(--text); }
.timeline li.done::before, .timeline li.done .dot { background: var(--good); }
.timeline li.problem .dot, .timeline li.problem::before { background: var(--bad); }
.timeline small { color: var(--muted); }
.op-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .op-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.op-grid .panel { margin-bottom: 16px; }
.ship-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.ship-tabs button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.ship-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.parcel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 560px) { .parcel-grid { grid-template-columns: repeat(4, 1fr); } }
.parcel-form .field, .manual-form .field { display: block; margin: 0; }
.manual-form { display: grid; gap: 10px; align-items: end; }
@media (min-width: 560px) { .manual-form { grid-template-columns: 140px 1fr auto; } }
.parcel-form .field > span, .manual-form .field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.parcel-form input, .manual-form input, .manual-form select { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 16px; }
.rates { display: grid; gap: 8px; margin-top: 14px; }
.rate-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.rate-opt:has(input:checked) { border-color: var(--accent); background: rgba(255, 90, 54, .06); }
.rate-opt small { display: block; color: var(--muted); font-size: 12px; }
.rate-promised { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-left: 6px; white-space: nowrap; }
.rate-opt input { accent-color: var(--accent); }
.rates .btn { justify-self: start; margin-top: 4px; }
.track-box { margin: 4px 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.track-box p { margin: 0 0 4px; }
.track-num a { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.track-status { font-size: 14px; }
.track-status[data-status="DELIVERED"] { color: var(--good); }
.track-status[data-status="FAILURE"], .track-status[data-status="RETURNED"] { color: var(--bad); }
.d-empty.slim { padding: 18px; }
.d-empty.slim .btn { margin: 4px; }
.thread-note { margin: -8px 0 12px; }
.msg.mine { border-color: rgba(143, 184, 255, .35); }
.person { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.person .d-label { margin: 0; }
.person a { color: var(--text); font-weight: 600; }

/* ── Settings additions ── */
.avatar-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.avatar-row .avatar { width: 64px; height: 64px; font-size: 26px; }
.addr-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.addr-grid .full { grid-column: 1 / -1; }
.settings-grid select { width: 100%; min-height: 44px; padding: 0 30px 0 12px; }

/* ── Legal pages, footers ── */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 80px; line-height: 1.65; }
.legal h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 5vw, 48px); margin: 0 0 4px; }
.legal h2 { margin: 32px 0 8px; font-size: 20px; }
.legal h3 { margin: 18px 0 6px; font-size: 16px; color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold); }
.legal-date { color: var(--muted); margin: 0 0 20px; }
.legal-draft { padding: 12px 14px; border-radius: 10px; background: rgba(255, 201, 60, .12); border: 1px solid rgba(255, 201, 60, .5); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }
.auth-fine { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.auth-fine a, .hint a { color: var(--gold); }
.ship-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   Admin
   ============================================================ */
.admin { padding-top: 24px; padding-bottom: 80px; }
.ad-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ad-controls .seg-chips { margin: 0; }
.stat small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ad-charts { display: grid; gap: 16px; margin: 18px 0; }
@media (min-width: 900px) { .ad-charts { grid-template-columns: 1fr 1fr; } }
.ad-charts .panel, .admin .panel { margin: 0 0 16px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--gold); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart-empty { position: absolute; inset: 0 0 40px 52px; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 14px; pointer-events: none; }
.chart-data { margin-top: 8px; font-size: 13px; }
.chart-data summary { cursor: pointer; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ad-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ad-table td small { display: block; font-size: 12px; }
.ad-table a { color: var(--text); }
.ad-table code { font-size: 12px; color: var(--muted); }
.ad-table.compact td { padding: 4px 8px; }
.ad-actions { white-space: nowrap; text-align: right; }
.ad-actions .btn { margin-right: 6px; }
.removed-why { color: var(--bad); }
.share { display: inline-block; width: 80px; height: 8px; border-radius: 4px; background: var(--surface-2); vertical-align: middle; overflow: hidden; }
.share span { display: block; height: 100%; background: var(--accent); }
.ad-search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ad-search input { flex: 1 1 260px; min-height: 42px; padding: 0 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 16px; }
.ad-search select { min-height: 42px; }

/* Homepage: recently listed */
.recent-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.recent-head h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; }
.quick-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.suspended-note { margin-bottom: 16px; }
.empty-big { font-size: 18px; font-weight: 600; color: var(--text); }
.dash-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Homepage: links into the shop ───────────────────────── */
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
.see-all-link { color: var(--gold); font-weight: 600; text-decoration: none; font-size: 14px; }
.see-all-link:hover { text-decoration: underline; }
.shop-cats { margin-top: 48px; }
.shop-cats h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; }
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.cat-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 150px; padding: 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .3s;
}
@media (min-width: 720px) { .cat-tile { min-height: 180px; } }
.cat-tile:hover, .cat-tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
/* Background art + fallback: the radial gradient shows whenever the image is missing or fails. */
.cat-tile-bg {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(circle at 70% 25%, var(--surface-2) 0%, var(--surface) 45%, var(--bg) 100%);
}
.cat-tile-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block;
  transform: scale(1); transition: transform .3s ease;
}
.cat-tile:hover .cat-tile-bg img, .cat-tile:focus-visible .cat-tile-bg img { transform: scale(1.05); }
/* bg-gradient-to-t from-black via-black/60 to-transparent */
.cat-tile-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .6) 50%, rgba(0, 0, 0, 0) 100%);
}
.cat-tile.no-img .cat-tile-shade { background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); }
.cat-tile-body { display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.cat-tile-group { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cat-tile strong { font-size: 18px; color: #fff; }
.cat-tile-blurb { color: #d8d3dc; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .cat-tile, .cat-tile-bg img { transition: none; } .cat-tile:hover, .cat-tile:focus-visible { transform: none; } .cat-tile:hover .cat-tile-bg img, .cat-tile:focus-visible .cat-tile-bg img { transform: none; } }

/* ── Inventory page ──────────────────────────────────────── */
.inv { padding-top: 24px; padding-bottom: 64px; }
.inv-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }
@media (min-width: 900px) { .inv-head { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; } }
.inv-head .page-title { margin: 0; overflow-wrap: anywhere; }
.inv-search { max-width: none; margin: 0; }
.inv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .inv-layout { grid-template-columns: 240px minmax(0, 1fr); } }

.inv-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.inv-filters-head h2 { margin: 0; font-size: 16px; }
.f-group { border: 0; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.f-group:last-child { border-bottom: 0; }
.f-group legend { padding: 0; margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.f-sub { margin: 10px 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 15px; }
.f-opt input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: none; }
.f-opt input:checked + span { color: var(--text); font-weight: 600; }
.f-opt span { color: #d6d1dc; }
.f-price { display: flex; align-items: center; gap: 6px; }
.f-price label { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.f-price input { width: 100%; min-width: 0; min-height: 36px; border: 0; background: transparent; padding: 0; }
.f-price input:focus { outline: none; }
.f-price label:focus-within { border-color: var(--accent); }

/* Desktop: sticky sidebar. Mobile: slide-in drawer opened by the Filters button. */
.filters-toggle { display: inline-flex; }
#filters-close { display: inline; }
@media (min-width: 900px) {
  .inv-filters { align-self: start; }
  .filters-toggle, #filters-close { display: none; }
}
@media (max-width: 899px) {
  .inv-filters {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 60; overflow-y: auto;
    background: var(--bg); border-left: 1px solid var(--line); padding: 18px 16px 32px;
    display: none;   /* not just moved off-screen: that would make the page scroll sideways */
  }
  .inv-filters.open { display: block; box-shadow: -20px 0 60px rgba(0,0,0,.6); animation: drawer-in .2s ease-out; }
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .inv-filters.open { animation: none; } }
.search input { min-width: 0; }
.nav-link { white-space: nowrap; }
@media (max-width: 420px) { .nav { gap: 10px; } .nav .btn { padding: 0 14px; } }
body.no-scroll { overflow: hidden; }

.inv-toolbar { margin-bottom: 12px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.chip-x { display: inline-flex; gap: 6px; align-items: center; background: var(--surface-2); }
.chip-x span[aria-hidden] { color: var(--muted); font-size: 16px; line-height: 1; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.pg:hover { border-color: var(--muted); }
.pg-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pg-off { opacity: .35; }
.pg-gap { color: var(--muted); padding: 0 2px; }
@media (max-width: 480px) { .pg { min-width: 36px; height: 36px; padding: 0 9px; } }

/* ── Sale Mode ───────────────────────────────────────────── */
.sale-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 10px 16px; text-align: center; font-size: 15px; line-height: 1.35;
  background: linear-gradient(90deg, #ff3d1f, #ff7a1a 50%, #ffc93c); color: #1b0904;
}
.sale-banner strong { font-weight: 700; letter-spacing: .01em; }
.sale-banner a { color: #1b0904; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.sale-flame { font-size: 18px; }
.fee-was { color: var(--muted); }
.sale-tag {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  background: var(--gold); color: #1b0904; font-size: 12px; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
}
.fee-waived dt { color: var(--gold); }

.sale-status {
  margin: 0 0 16px; padding: 10px 14px; border-radius: 10px;
  background: rgba(255, 201, 60, .12); border: 1px solid var(--gold); color: var(--text);
}
.sale-status a { color: var(--gold); }
.sale-card { max-width: 720px; }
.sale-card.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.sale-card-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.sale-card-head h2 { margin: 0 0 6px; }
.sale-state { margin: 14px 0 16px; }
.sale-card.is-on .sale-state strong { color: var(--gold); }
.sale-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

.switch { position: relative; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track { display: block; width: 58px; height: 32px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background .15s; }
.switch-thumb { display: block; width: 24px; height: 24px; margin: 3px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + .switch-track { background: var(--gold); border-color: var(--gold); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(26px); background: #1b0904; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-thumb { transition: none; } }

/* ── Market Price box (listing form) ─────────────────────── */
#market-aside:not(:empty) { margin-bottom: 18px; }
.market-inline:not(:empty) { margin: 4px 0 18px; }
.market-box { border-top-color: var(--gold); }
.market-inline .market-box { padding: 16px; background: var(--surface-2); }
.market-box .mp-title { margin-bottom: 12px; }
.market-inline .market-box .mp-title { font-size: 22px; }
.mp-body { transition: opacity .15s; }
.mp-body.is-loading { opacity: .45; }
.mp-scope { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.mp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mp-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.mp-stats dt { font-size: 11px; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mp-stats dd { margin: 6px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mp-stats dd small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.mp-stats [data-stat="low"] { color: var(--good); }
.mp-compare { margin: 12px 0 0; font-size: 14px; }
.mp-compare.good strong { color: var(--good); }
.mp-compare.high strong { color: var(--gold); }
.mp-other, .mp-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.mp-other strong { color: var(--text); }
.mp-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.mp-link { color: var(--gold); font-weight: 600; white-space: nowrap; }
.mp-hint { margin: 0; color: var(--muted); font-size: 14px; }
.mp-empty { display: grid; gap: 4px; padding: 16px; border-radius: 10px; border: 1px dashed var(--line); background: var(--bg); text-align: center; }
.mp-empty strong { font-size: 16px; }
.mp-empty span { color: var(--gold); font-size: 14px; }
@media (max-width: 380px) { .mp-stats dd { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .mp-body { transition: none; } }

/* ── Private serial number ───────────────────────────────── */
.private-tag { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: .04em; white-space: nowrap; }
.serial-field .hint { display: block; margin-top: 6px; }
.op-serial h2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.serial-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.serial-row code { font-size: 17px; font-weight: 600; letter-spacing: .04em; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; user-select: all; }
.op-serial .hint { margin: 0; }
.serial-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 16px; min-width: 0; }
.serial-block legend { padding: 0 6px; font-weight: 600; }
.serial-intro { margin: 0 0 12px; }
.serial-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.serial-photo img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.serial-photo-pick { position: relative; overflow: hidden; cursor: pointer; }
.serial-photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.serial-photo-pick:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.serial-shot { display: block; margin: 4px 0 10px; text-decoration: none; }
.serial-shot img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.serial-shot span { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--gold); }

/* ── Contact page ────────────────────────────────────────── */
.contact { max-width: 760px; padding-top: 28px; padding-bottom: 64px; }
.contact-head .page-title { margin: 2px 0 8px; }
.contact-sub { margin: 0 0 20px; color: var(--muted); }
.contact-sub strong { color: var(--text); }
.contact-card { padding: 20px; }
@media (min-width: 720px) { .contact-card { padding: 28px; } }
.contact textarea { min-height: 160px; resize: vertical; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.contact-actions .hint { margin: 0; }
.contact-actions .btn { min-width: 170px; }
@media (max-width: 480px) { .contact-actions .btn { width: 100%; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { text-align: center; padding: 18px 4px 8px; outline: none; }
.contact-done h2 { margin: 6px 0 8px; }
.contact-done p { color: var(--muted); }
.contact-check { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  font-size: 28px; font-weight: 700; background: rgba(95, 211, 141, .15); color: var(--good); border: 1px solid var(--good); }
.contact-done-actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; }

/* ── Admin: email previews ───────────────────────────────── */
.em-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.em-bar select { min-height: 38px; max-width: 280px; }
.em-meta { display: grid; gap: 4px; margin: 0 0 14px; font-size: 14px; }
.em-meta div { display: flex; gap: 10px; min-width: 0; }
.em-meta dt { color: var(--muted); width: 72px; flex: none; }
.em-meta dd { margin: 0; overflow-wrap: anywhere; }
.em-frame-wrap { background: #0b0a0e; border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow: auto; }
.em-frame-wrap iframe { display: block; width: 100%; max-width: 680px; height: 760px; margin: 0 auto; border: 0; border-radius: 8px; background: #0e0d12; }
.em-frame-wrap[data-view="mobile"] iframe { max-width: 375px; height: 820px; }
.em-frame-wrap pre { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.5; color: var(--text); }

/* Seller-only fee model (014) */
.bd-foot { margin: 8px 0 0; font-size: 12px; color: var(--good); }
.calc-fee-note { margin-top: 10px; }
.fee-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(95, 211, 141, .12); color: var(--good); white-space: nowrap; }

/* ── Seller levels (migration 015) ───────────────────────── */
:root {
  --tier-verified: #4fc3f7;
  --tier-pro: var(--accent);
  --tier-power: var(--gold);
  --tier-vip: #c58cff;
}
.tier-badge {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: -2px;
  padding: 1px 6px 1px 4px; border-radius: 999px; border: 1px solid currentColor;
  font-size: 10.5px; font-weight: 700; line-height: 1.35; letter-spacing: .04em; white-space: nowrap;
  color: var(--muted); background: rgba(255, 255, 255, .03);
}
.tier-badge .tb-icon { width: 12px; height: 12px; flex: none; }
.tier-badge .tb-cut { stroke: var(--bg); }
.tier-badge .tb-cut-fill { fill: var(--bg); }
.tb-verified { color: var(--tier-verified); }
.tb-pro { color: var(--tier-pro); }
.tb-pro span { letter-spacing: .1em; }
.tb-power { color: var(--tier-power); }
.tb-vip { color: var(--tier-vip); background: linear-gradient(90deg, rgba(197, 140, 255, .14), rgba(79, 195, 247, .14)); }
.listing-seller .tier-badge { margin: 0 2px; }

.seller-level { display: inline-flex; margin: 10px 0 0; text-decoration: none; }
.seller-level .tier-badge { font-size: 12.5px; padding: 3px 10px 3px 7px; gap: 5px; }
.seller-level .tier-badge .tb-icon { width: 15px; height: 15px; }
.seller-level:hover .tier-badge { background: rgba(255, 255, 255, .08); }

/* Pro Listings / Featured rows */
.pro-row { margin: 0 0 22px; padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 90, 54, .07), transparent 70%); }
.featured-row { background: linear-gradient(180deg, rgba(255, 201, 60, .08), transparent 70%); }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.row-head h2 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.row-head h2 .tier-badge { font-size: 11px; }
.row-sub { margin: 0; font-size: 13px; color: var(--muted); flex: 1 1 auto; }
.row-sub a { color: var(--muted); }
.row-all { font-size: 13px; white-space: nowrap; }
.carousel {
  list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 172px); gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.carousel > li { scroll-snap-align: start; min-width: 0; }
.f-help { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Dashboard level card */
.tier-card { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tier-card.tc-pro { border-color: rgba(255, 90, 54, .45); }
.tier-card.tc-power { border-color: rgba(255, 201, 60, .45); }
.tier-card.tc-vip { border-color: rgba(197, 140, 255, .5); }
.tier-card-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.tier-card-badge .tier-badge { font-size: 13px; padding: 4px 11px 4px 8px; gap: 6px; }
.tier-card-badge .tier-badge .tb-icon { width: 16px; height: 16px; }
.tier-card h2 { margin: 0; font-size: 17px; }
.tier-fee { margin: 2px 0 0; font-size: 14px; }
.tier-more { grid-column: 1 / -1; justify-self: start; font-size: 13px; }
@media (min-width: 640px) { .tier-card-head { grid-template-columns: auto 1fr auto; } .tier-more { grid-column: auto; justify-self: end; } }
.tier-next { margin: 14px 0 10px; font-weight: 600; font-size: 15px; }
.tier-reqs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .tier-reqs { grid-template-columns: 1fr 1fr; } }
.tier-req-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.tier-req-top .muted { text-align: right; }
.tier-reqs .tick { color: var(--good); margin-right: 5px; font-weight: 700; }
.tier-bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tier-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.tier-reqs .met .tier-bar span { background: var(--good); }
.tier-stats { margin: 0; }
.tier-vip { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: rgba(197, 140, 255, .1); font-size: 14px; }
.tier-vip a { color: var(--tier-vip); }

/* Admin */
.ad-tier { min-width: 150px; }
.ad-tier small { display: inline-block; margin-top: 2px; }
.ad-tier .pinned { color: var(--gold); }
.tier-name { font-weight: 600; }
.promo-warn { margin: 8px 0 12px; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: rgba(255, 201, 60, .1); color: var(--gold); }

/* /seller-levels */
.levels { padding-bottom: 48px; }
.levels-hero { padding: 36px 0 22px; max-width: 760px; }
.levels-sub { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0 0 18px; }
.levels-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ladder { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.level { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.level.lv-pro { border-top: 3px solid var(--tier-pro); }
.level.lv-verified { border-top: 3px solid var(--tier-verified); }
.level.lv-power { border-top: 3px solid var(--tier-power); }
.level.lv-vip { border-top: 3px solid var(--tier-vip); background: linear-gradient(180deg, rgba(197, 140, 255, .08), var(--surface) 60%); }
.level-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.level-num { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--line); }
.level-top .tier-badge { font-size: 12.5px; padding: 3px 10px 3px 7px; gap: 5px; }
.level-top .tier-badge .tb-icon { width: 15px; height: 15px; }
.level-fee { margin: 0 0 6px; font-size: 15px; }
.level-fee strong { font-size: 22px; }
.level-save { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(95, 211, 141, .14); color: var(--good); }
.level-blurb { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.level h3 { margin: 12px 0 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.level-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.level-list.perks { list-style: none; padding: 0; }
.level-list.perks li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.levels-block { max-width: 760px; margin: 0 0 30px; }
.levels-block h2 { font-size: 22px; margin: 0 0 10px; }
.fee-order { padding-left: 22px; line-height: 1.6; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

/* ── Sales tax (migration 016) ───────────────────────────── */
.co-shipto { margin: 14px 0 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.co-shipto-h { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.co-shipto-h .hint { display: inline; margin: 0; font-weight: 400; }
.co-shipto-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.co-shipto .field { margin: 0; }
.breakdown .bd-muted dd { color: var(--muted); font-style: italic; }
.breakdown dt small { color: var(--muted); font-weight: 400; }
.tax-alerts { display: grid; gap: 8px; margin: 0 0 16px; }
.tax-alerts p { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.tax-ok { background: rgba(95, 211, 141, .1); }
.tax-alert { background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .4); }
.tax-warn { background: rgba(255, 201, 60, .1); color: var(--gold); }
.tax-block { margin: 0 0 16px; }
.tax-block h2 { margin: 0 0 6px; font-size: 18px; }
.tax-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.tax-auto { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.tax-bar { height: 5px; margin-top: 4px; max-width: 160px; }
#tax-states tr.is-collecting td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.tax-report-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.tax-report-form .field { margin: 0; }
.tax-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 12px; }
.tax-import { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tax-import input[type=file] { max-width: 230px; font-size: 13px; }
.tax-log-msg { max-width: 460px; font-size: 12.5px; color: var(--muted); }
.tax-dialog { width: min(520px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); }
.tax-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.tax-dialog h2 { margin: 0 0 6px; }
.tax-dialog .check { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 14px; }
.tax-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.co-shipto .field input, .co-shipto .field select { width: 100%; min-height: 44px; }

/* ── Admin: income tax (migration 017) ───────────────────── */
.fed-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 8px; }
.fed-head .field { margin: 0; }
.fed-rate { display: flex; gap: 8px; align-items: end; }
.fed-rate-input { display: inline-flex; align-items: center; gap: 6px; }
.fed-rate-input input { width: 84px; }
#fed-export { margin-left: auto; }
.fed-disclaimer { max-width: 900px; margin: 0 0 14px; }
.fed-cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fed-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fed-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fed-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fed-card-k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fed-card strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.fed-card small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.fed-card.loss strong { color: var(--bad); }
.fed-card.vault { border-color: rgba(255, 201, 60, .55); background: linear-gradient(180deg, rgba(255, 201, 60, .1), var(--surface) 70%); }
.fed-card.vault strong { color: var(--gold); }
.fed-quarters { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fed-quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fed-quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fed-q { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.fed-q header { display: flex; justify-content: space-between; align-items: center; }
.fed-q h3 { margin: 0; font-size: 18px; }
.fed-q-period { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.fed-q dl { margin: 0 0 10px; display: grid; gap: 4px; }
.fed-q dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.fed-q dt { color: var(--muted); }
.fed-q dd { margin: 0; font-variant-numeric: tabular-nums; }
.fed-q-due dd { font-weight: 700; font-size: 15px; }
.fed-q.fq-overdue { border-color: rgba(255, 107, 107, .55); }
.fed-q.fq-due_soon { border-color: rgba(255, 201, 60, .5); }
.fed-q.fq-paid { border-color: rgba(95, 211, 141, .45); }
.fed-paid { margin: 0 0 4px; font-size: 13px; color: var(--good); }
.fed-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fed-lines h3 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.fed-lines ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 520px; }
.fed-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; }
/* Admin dialogs + the income-tax header sit outside .panel: give their fields the same look. */
:is(.tax-dialog, .fed-head) :is(input[type="text"], input[type="number"], input[type="url"], input[type="date"], select) {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 16px;
}
:is(.tax-dialog, .fed-head) :is(input, select):focus { outline: none; border-color: var(--accent); }
.tax-dialog input[type="file"] { font-size: 13px; }
.fed-head .fed-rate-input input { width: 84px; }

/* Footer links: their own row, bold, easy to spot */
.footer-links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.footer-inner .footer-links a { color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; }
.footer-inner .footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal li { margin: 0 0 6px; }
.legal ul ul { margin: 6px 0 4px; }

/* FAQ page */
.faq-page section { scroll-margin-top: 80px; }
.faq-page h2 { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.faq-page h3 { color: var(--text); font-size: 17px; margin: 22px 0 6px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.faq-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.faq-nav a:hover { border-color: var(--accent); }

/* ============================================================
   Bulk CSV upload (/bulk-upload.html, js/bulk-upload.js)
   ============================================================ */
.bu-page { max-width: 880px; padding-top: 32px; padding-bottom: 96px; }
.bu-page .page-title { margin-bottom: 8px; }
.bu-lede { margin: -8px 0 20px; color: var(--muted); font-size: 14px; }
.bu-page .bu-lede { margin: 0 0 20px; }
.bu-lede a { color: var(--gold); }
.bu h2 { margin: 0 0 8px; font-size: 20px; }
.bu h2:focus { outline: none; }
.bu-drop {
  display: grid; gap: 6px; place-items: center; text-align: center; cursor: pointer;
  padding: 40px 16px; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg);
  transition: border-color .15s, background .15s;
}
.bu-drop:hover, .bu-drop.is-over { border-color: var(--accent); background: rgba(255, 90, 54, .06); }
.bu-drop:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bu-drop.is-busy { cursor: progress; opacity: .7; }
.bu-drop-icon { color: var(--accent); }
.bu-drop strong { font-size: 17px; }
.bu-drop span { color: var(--muted); font-size: 13px; }
.bu-error { margin-top: 10px; }
.bu-template { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.bu-file { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.bu-file-name { margin: 0 0 8px; font-size: 13px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.bu-file-name span { color: var(--text); font-weight: 600; }
.bu-file-name .link-btn { margin-left: 8px; }
.bu-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; font-size: 13px; background: rgba(255, 201, 60, .08); border: 1px solid rgba(255, 201, 60, .3); }

.bu-map { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.bu-map-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg); }
.bu-map-row:first-child { border-top: 0; }
.bu-map-head { display: none; }
.bu-map-row.is-missing { background: rgba(255, 107, 107, .06); }
.bu-map-field { font-weight: 600; font-size: 14px; }
.bu-map-field small { color: var(--muted); font-weight: 400; font-size: 12px; }
.bu-req { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.bu-map select { width: 100%; min-height: 40px; padding: 8px 32px 8px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); font-size: 14px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a39dab' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; }
.bu-map select[aria-invalid="true"] { border-color: var(--bad); }
.bu-samples { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.bu-samples code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text); }
.bu-samples small { color: var(--muted); font-size: 12px; }
@media (min-width: 720px) {
  .bu-map-row { grid-template-columns: 170px 220px minmax(0, 1fr); align-items: center; gap: 14px; }
  .bu-map-head { display: grid; padding: 8px 12px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); }
}
.bu-default { margin-bottom: 16px; }
.bu-default select { max-width: 320px; }

.bu-review { margin-bottom: 16px; }
.bu-summary { margin: 0 0 10px; font-size: 15px; }
.bu-summary small { color: var(--muted); }
.bu-ok { color: var(--good); }
.bu-bad { color: var(--bad); }
.bu-warn { margin: 0 0 10px; color: var(--gold); font-size: 14px; }
.bu-problems { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.bu-problems summary { cursor: pointer; font-weight: 600; color: var(--bad); }
.bu-problems ul { margin: 8px 0; padding-left: 18px; max-height: 260px; overflow: auto; }
.bu-problems li { margin: 3px 0; }
.bu-problems li b { margin-right: 6px; }
.bu-skip { margin-top: 4px; }

.bu-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.bu-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }

.bu-progress { margin: 8px 0 16px; }
.bu-progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.bu-progress-top strong { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; }
.bu-progress-top span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.bu-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.bu-bar span { display: block; height: 100%; transition: width .3s ease; }
.bu-bar-ok { background: var(--accent); }
.bu-bar-bad { background: var(--bad); }
@media (prefers-reduced-motion: reduce) { .bu-bar span { transition: none; } }
.bu-progress-meta { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.bu-result { margin: 0 0 12px; padding-left: 18px; }
.bu-result li { margin: 4px 0; }
.bu-next { margin-top: 14px; }
a.chip-link { display: inline-flex; align-items: center; color: var(--gold); text-decoration: none; margin-left: auto; }
.bu-also { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.bu-photos { margin: 0 0 10px; font-size: 14px; }
.bu-warnings summary { color: var(--gold); }
.bu-sub { margin: 18px 0 4px; font-size: 16px; }

/* ============================================================
   CSV converter (/csv-converter.html, js/csv-converter.js)
   ============================================================ */
.cv-link { color: var(--gold); }
.cv-sources { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.cv-sources::before { content: "Works with"; width: 100%; font-size: 12px; color: var(--muted); }
.cv-sources li { font-size: 12px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.cv-source { margin: 0 0 12px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cv-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: rgba(255, 90, 54, .12); color: var(--accent); }
.cv-notes { margin: 0 0 14px; padding: 8px 12px 8px 28px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cv-notes li { margin: 2px 0; }
.cv-options { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 720px) { .cv-options { grid-template-columns: 1fr 1fr; align-items: end; } .cv-tidy { grid-column: 1 / -1; } }
.cv-default { margin: 0; }
.cv-tidy { align-items: flex-start; }
.cv-tidy input { margin-top: 2px; flex: none; }
.cv-tidy small { display: block; color: var(--muted); font-size: 12px; }
.cv-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0 12px; }
.cv-table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cv-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.cv-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 8px 10px; white-space: nowrap; }
.cv-table td { padding: 8px 10px; border-top: 1px solid var(--line); background: var(--bg); vertical-align: top; }
.cv-table tr.is-bad td { background: rgba(255, 107, 107, .05); }
.cv-table em { color: var(--muted); font-style: italic; }
.cv-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-title { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-status { min-width: 160px; }
.cv-notice { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; background: rgba(95, 211, 141, .08); border: 1px solid rgba(95, 211, 141, .3); }
.cv-actions small { font-weight: 400; opacity: .7; }
.bu-sub small { font-weight: 400; font-size: 12px; }
a.chip-link-2 { margin-left: 0; }
.cv-default select, .bu-default select { width: 100%; min-height: 44px; padding: 8px 32px 8px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); font-size: 15px; appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a39dab' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.cv-default select:focus, .bu-default select:focus { outline: none; border-color: var(--accent); }
.cv-default select[aria-invalid="true"] { border-color: var(--bad); }
@media (max-width: 559px) { .cv-actions .btn { flex: 1 1 100%; } }

/* Refunds (order page, migration 022) */
.op-refund .hint { margin: 0 0 10px; }
.op-refund .hint a, .breakdown small a { color: var(--gold); }
.refund-form { margin-top: 12px; display: grid; gap: 4px; }
.refund-form .seg { margin-bottom: 10px; }
.refund-preview:not(:empty) { padding: 10px 12px; border-radius: 10px; background: var(--bg); margin: 4px 0 8px; }
.refund-actions { display: flex; justify-content: flex-end; gap: 8px; }
.refund-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.tax-reimb ul { margin: 6px 0 0; padding-left: 18px; }
.tax-reimb li { margin: 3px 0; }
#op-money dd { white-space: nowrap; text-align: right; }
#op-money dd small { display: block; white-space: normal; font-size: 11px; color: var(--muted); }

/* ============================================================
   Cart (js/cart.js): header button, slide-out drawer
   ============================================================ */
.buy-actions.with-cart > #btn-buy { grid-column: 1 / -1; }
.buy-actions.with-cart.no-offer > #btn-cart { grid-column: 1 / -1; }
#btn-cart.is-added { border-color: var(--good); color: var(--good); }
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer; }
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-count[hidden] { display: none; }
html.cart-lock { overflow: hidden; }
.cart-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(5, 6, 10, .62); opacity: 0; transition: opacity .2s ease; }
.cart-backdrop.is-open { opacity: 1; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(420px, 100vw); display: flex; flex-direction: column;
  background: #121721; border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(0, 0, 0, .45);
  transform: translateX(100%); transition: transform .22s ease; outline: none; }
.cart-drawer.is-open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .cart-drawer, .cart-backdrop { transition: none; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.cart-close { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 15px; }
.cart-close:hover { border-color: var(--muted); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 18px 16px; overscroll-behavior: contain; }
.cart-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: #0b0e14; }
.cart-foot:empty { display: none; }
.cart-empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 48px 8px; color: var(--muted); }
.cart-empty svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 6px; }
.cart-empty p { margin: 0; }
.cart-empty strong { color: var(--text); font-size: 17px; }
.cart-empty .btn { margin-top: 14px; }
.cart-seller { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0b0e14; overflow: hidden; }
.cart-seller-h { margin: 0; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.cart-seller-h a { color: var(--text); text-decoration: none; font-weight: 700; }
.cart-seller-h a:hover { color: var(--accent); }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.cart-item.is-gone { opacity: .6; }
.cart-thumb { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--surface-2);
  font-size: 9px; color: var(--muted); text-align: center; text-decoration: none; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-main { min-width: 0; }
.cart-item-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.3; text-decoration: none; }
.cart-item-title:hover { color: var(--accent); }
.cart-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 5px 0 2px; font-size: 12px; color: var(--muted); }
.cart-badge { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(255, 90, 54, .12); color: var(--accent); }
.cart-gone { color: var(--bad); font-weight: 600; }
.cart-remove { font-size: 12px; }
.cart-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-seller-sum { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.cart-seller-sum strong { color: var(--text); font-variant-numeric: tabular-nums; }
.cart-totals { margin-bottom: 10px; }
.cart-warn { margin: 0 0 10px; color: var(--gold); font-size: 13px; }
.cart-note { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.cart-checkout { display: flex; justify-content: center; width: 100%; }
.cart-checkout.is-disabled { opacity: .45; pointer-events: none; }

/* ── Cart checkout + multi-seller confirmation ─────────────── */
.cart-co, .confirm:has(.oc-cart:not([hidden])) { max-width: 1080px; }
.cart-co .co-grid { align-items: start; grid-template-columns: minmax(0, 1fr); }
.cart-co .co-grid > .panel { grid-column: auto; grid-row: auto; }
@media (min-width: 900px) {
  .cart-co .co-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .cart-co .co-grid > .cc-items { grid-column: 1; grid-row: 1 / span 2; }
  .cart-co .co-grid > .co-ship { grid-column: 2; grid-row: 1; }
  .cart-co .co-grid > .co-pay { grid-column: 2; grid-row: 2; }
}
.cc-seller { padding: 14px 0; border-top: 1px solid var(--line); }
.cc-seller:first-of-type { border-top: 0; padding-top: 4px; }
.panel.cc-seller { padding: 18px; border-top: 1px solid var(--line); }
.cc-seller-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; font-size: 16px; }
.cc-seller-h small { color: var(--muted); font-weight: 400; font-size: 13px; }
.cc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cc-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cc-item-main { min-width: 0; display: grid; gap: 2px; }
.cc-item-main a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-item-main small { color: var(--muted); font-size: 13px; }
.cc-price { white-space: nowrap; }
.cc-seller-sum { margin-top: 12px; font-size: 14px; }
.cc-unavailable { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255, 90, 54, .55);
  background: rgba(255, 90, 54, .08); font-size: 14px; }
.cc-unavailable ul { margin: 6px 0 10px; padding-left: 18px; }
.cc-unavailable p { margin: 0; }
.paypal-buttons.is-blocked { opacity: .35; pointer-events: none; filter: grayscale(1); }
.oc-cart-grid { display: grid; gap: 16px; align-items: start; }
.oc-cart-sellers, .oc-cart-side { display: grid; gap: 16px; }
.oc-cart-grid .panel { margin: 0; }
@media (min-width: 900px) { .oc-cart-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
/* Header with the cart button on small phones */
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .cart-btn { width: 36px; height: 36px; }
  .nav .btn { padding: 0 12px; }
}
@media (max-width: 520px) { .nav > .nav-link[href="/inventory"] { display: none; } }
@media (max-width: 420px) { #auth-slot .nav-link { display: inline-block; max-width: 10ch; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; } }
@media (max-width: 389px) { #auth-slot .nav-link { max-width: 7ch; } }
@media (max-width: 374px) { .logo-img { height: 30px; } }
@media (max-width: 340px) { .nav { gap: 6px; } .nav .btn { padding: 0 10px; } }
@media (max-width: 640px) { .logo-sub { display: none; } }
@media (min-width: 421px) and (max-width: 760px) { #auth-slot .nav-link { display: inline-block; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; } }
@media (min-width: 761px) { #auth-slot .nav-link { display: inline-block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; } }
@media (min-width: 421px) and (max-width: 520px) { #auth-slot .nav-link { max-width: 10ch; } }

/* Cart checkout: full shipping address */
.co-address { display: grid; gap: 10px; }
.co-address .co-shipto-h { margin-bottom: 0; }
.co-address-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.co-address-row .co-city { grid-column: 1 / -1; }
.co-address .field > span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.co-address .field .hint { display: inline; float: none; margin: 0; font-weight: 400; color: var(--muted); }
.field-err { display: block; margin-top: 4px; font-size: 12.5px; color: #ff8a80; }
.co-address [aria-invalid="true"] { border-color: rgba(255, 107, 107, .8); }

/* Refunded order ledger: fees listed separately (never a negative "You keep") */
.breakdown .bd-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.breakdown .bd-group dt { font-weight: 600; color: var(--text); }
.breakdown .bd-sub dt { padding-left: 12px; color: var(--muted); }
.breakdown .bd-fees dt, .breakdown .bd-fees dd { font-weight: 600; }
.breakdown .bd-explain { display: block; margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.breakdown .bd-explain dd { margin: 0; text-align: left; white-space: normal; font-weight: 400; }
#op-money .bd-explain dd { white-space: normal; text-align: left; flex: 1 1 auto; }

/* Trust Engine: score + payout speed on the seller level card */
.trust-box { margin: 14px 0 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.trust-box.is-probation { border-color: rgba(255, 196, 0, .55); }
.trust-top { display: flex; gap: 14px; align-items: center; }
.trust-top h3 { margin: 0 0 4px; font-size: 15px; }
.trust-top p { margin: 0; }
.trust-score { position: relative; flex: none; width: 64px; height: 64px; }
.trust-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.trust-score circle { fill: none; stroke-width: 3.2; }
.trust-track { stroke: var(--line); }
.trust-fill { stroke: var(--accent); stroke-linecap: round; }
.trust-score > span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; line-height: 1; }
.trust-score b { font-size: 20px; }
.trust-score small { font-size: 10px; color: var(--muted); }
.trust-payout { font-size: 14px; }
.pill-warn { background: rgba(255, 196, 0, .16); color: #ffd560; }
.trust-probation { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(255, 196, 0, .09); font-size: 14px; line-height: 1.45; }
.trust-details { margin-top: 10px; font-size: 14px; }
.trust-details summary { cursor: pointer; color: var(--muted); }
.trust-parts { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; max-width: 420px; }
.trust-parts li { display: flex; justify-content: space-between; gap: 12px; }
.trust-parts b { font-variant-numeric: tabular-nums; }
.trust-parts b.neg { color: #ff8a80; }
#op-money .bd-payout { flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
#op-money .bd-payout dd { white-space: normal; text-align: right; max-width: 70%; }
#op-money .bd-payout dd small { display: block; color: var(--muted); }

/* /seller-levels: payouts, trust score, probation */
.level-payout { margin: 8px 0 0; font-size: 13.5px; }
.table-wrap { overflow-x: auto; }
.payout-table, .trust-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.payout-table th, .trust-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.payout-table td, .trust-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.trust-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .trust-table td:last-child { white-space: normal; } }
.levels-notes { margin: 8px 0; padding-left: 20px; line-height: 1.55; }
.levels-notes li { margin: 4px 0; }

/* Listing verification code (migration 026) */
.verify-box { margin: 0 0 14px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255, 196, 0, .45); background: rgba(255, 196, 0, .07); font-size: 14px; line-height: 1.5; }
.verify-head { margin: 0; }
.verify-code { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font: 700 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--text); white-space: nowrap; }
.verify-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.verify-msg { margin: 10px 0 0; }
.verify-msg .spin { margin-right: 6px; }
.verify-msg.ok { color: var(--good, #5fd38d); font-weight: 600; }
.verify-msg.bad { color: #ffb4a8; }
.verify-msg.review { color: #ffd560; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: vspin .8s linear infinite; vertical-align: -1px; }
@keyframes vspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.vbadge { position: absolute; left: 6px; right: 6px; top: 32px; padding: 3px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; line-height: 1.25; text-align: center; display: flex; gap: 5px; justify-content: center; align-items: center; }
.vb-checking { background: rgba(14, 13, 18, .85); color: var(--text); font-weight: 600; }
.vb-ok { background: #1f8f4e; color: #fff; }
.vb-bad { background: #b3261e; color: #fff; }
.vb-review { background: #8a6d00; color: #fff; }

/* Admin: listing verification review queue */
.vq { margin-bottom: 24px; }
.vq-head { display: flex; align-items: baseline; gap: 12px; }
.vq-head h2 { margin: 0; font-size: 18px; }
.vq-list { display: grid; gap: 12px; margin-top: 10px; }
.vq-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.vq-photo { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.vq-photo img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vq-body p { margin: 0 0 6px; font-size: 14px; }
.vq-title { font-weight: 600; }
.vq-ocr { word-break: break-word; }
.vq-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ad-sub-h { font-size: 18px; margin: 0 0 10px; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.tab-count[hidden] { display: none; }
@media (max-width: 640px) { .vq-item { grid-template-columns: 1fr; } }

/* Report listing (migration 027) */
.report-link { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.report-link svg { width: 14px; height: 14px; }
.report-link:hover:not(:disabled) { color: var(--text); text-decoration: underline; }
.report-link:disabled { cursor: default; opacity: .8; }
.report-modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); }
.report-modal::backdrop { background: rgba(0, 0, 0, .6); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.report-head h2 { margin: 0; font-size: 18px; }
.report-x { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.report-x:hover { color: var(--text); background: var(--surface-2); }
.report-modal .field { display: block; margin: 12px 0 0; }
.report-modal .field > span { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.report-modal select, .report-modal textarea, .report-modal input { width: 100%; }
.report-dmca { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(255, 196, 0, .08); }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* Admin: moderation queue (migration 027) */
.tab-count-bad { background: #d93025; color: #fff; }
.mq-head { display: grid; gap: 6px; margin-bottom: 12px; }
.mq-item { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.mq-item img, .mq-noimg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.mq-item span { display: grid; gap: 2px; }
.mq-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.mq-count.is-hot { background: #d93025; color: #fff; }
.mq-q { color: #ff8a80; font-weight: 600; }
.mq-quarantined td:first-child { box-shadow: inset 3px 0 0 #d93025; }
.mq-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 80; }
.mq-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(1040px, 100vw); overflow-y: auto; z-index: 81; padding: 20px 22px 28px; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0, 0, 0, .4); }
.mq-drawer:focus { outline: none; }
.mq-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.mq-drawer-head h2 { margin: 0; font-size: 20px; }
.mq-cols { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .mq-cols { grid-template-columns: 1fr; } }
.mq-cols h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mq-cols section > p { font-size: 14px; }
.mq-photo { width: 100%; border-radius: 10px; background: #000; max-height: 420px; object-fit: contain; }
.mq-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.mq-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.mq-desc { white-space: pre-wrap; font-size: 14px; max-height: 260px; overflow-y: auto; padding: 10px; border-radius: 8px; background: var(--surface-2); }
.mq-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mq-msgs li { padding: 10px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.mq-msgs li.is-this { outline: 1px solid var(--accent); }
.mq-msgs p { margin: 0 0 4px; overflow-wrap: anywhere; }
.mq-drawer-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.btn.danger-bg { background: #d93025; color: #fff; border-color: #d93025; }
.report-modal .field > span .hint { display: inline; margin: 0; font-weight: 400; }
.report-auth-actions { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.report-auth-foot { margin: 10px 0 0; text-align: right; }
@media (max-width: 760px) { .faq-page section { scroll-margin-top: 130px; } }
@media (max-width: 480px) { .hero-badge { font-size: 10.5px; letter-spacing: .08em; } .hero-split { padding-top: 28px; } }

/* ── /inventory: layouts, gaming platforms, active-filter pills ─────────────── */
/* View switcher (grid / list / compact) next to Sort. */
.inv-toolbar .filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.view-btn {
  display: grid; place-items: center; width: 34px; height: 30px; padding: 0; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.view-btn svg { width: 16px; height: 16px; fill: currentColor; }
.view-btn:hover { color: var(--text); background: var(--surface-2); }
.view-btn[aria-pressed="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.view-btn[aria-pressed="true"] svg { color: var(--accent); }
.view-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Grid (default): fewer, bigger cards so cover art and condition are easy to inspect. Compact: denser. */
@supports (container-type: inline-size) {
  #grid.view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  @container (min-width: 520px)  { #grid.view-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
  @container (min-width: 960px)  { #grid.view-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
  #grid.view-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  @container (min-width: 600px)  { #grid.view-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @container (min-width: 820px)  { #grid.view-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
}
#grid.view-grid .listing-title { font-size: 15px; }
#grid.view-grid .listing-body { padding: 10px 12px 12px; }
#grid.view-compact .listing-body { padding: 6px 8px 8px; }
#grid.view-compact .listing-cat, #grid.view-compact .listing-seller { display: none; }
#grid.view-compact .listing-title { font-size: 12.5px; -webkit-line-clamp: 2; }
#grid.view-compact .listing-meta { font-size: 11px; }
#grid.view-compact .listing-price { font-size: 14px; }
#grid.view-compact .listing-price .ship { display: block; font-size: 10.5px; }
#grid.view-compact .cond { font-size: 9.5px; padding: 2px 6px; }

/* List view: compact rows for high-density browsing. */
.list-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lrow {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "thumb main price" "thumb main actions";
  column-gap: 14px; row-gap: 6px; align-items: center; padding: 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.lrow:hover { border-color: #463f52; background: #1a1821; }
.lrow:focus-within { border-color: var(--accent); }
.lrow-thumb { grid-area: thumb; position: relative; display: block; width: 76px; aspect-ratio: 1; border-radius: 7px; overflow: hidden; background: var(--surface-2); }
.lrow-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lrow-thumb .thumb-fallback { font-size: 11px; }
.lrow-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.lrow-main p { margin: 0; }
.lrow-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow-title a { color: var(--text); text-decoration: none; }
.lrow-title a:hover { text-decoration: underline; text-underline-offset: 2px; }
.lrow-title a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.lrow-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plat-badge, .cond-tag, .lrow-region {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.plat-badge { background: rgba(255, 90, 54, .12); color: #ff8a6e; border: 1px solid rgba(255, 90, 54, .28); }
.cond-tag { background: var(--surface-2); color: #d6d1dc; border: 1px solid var(--line); }
.cond-tag.cond-new_sealed { background: rgba(255, 201, 60, .14); color: var(--gold); border-color: rgba(255, 201, 60, .35); }
.lrow-region { color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.lrow-seller { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow-price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.lrow-price strong { font-size: 17px; }
.lrow-price .ship { font-size: 11.5px; color: var(--muted); }
.lrow-actions { grid-area: actions; display: flex; gap: 6px; justify-content: flex-end; }
.lrow-actions .btn { min-height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.lrow-cart.is-added { color: var(--gold); border-color: rgba(255, 201, 60, .4); }
.lrow.skeleton { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "thumb main"; }
.lrow.skeleton .lrow-thumb { animation: none; }
@media (max-width: 560px) {
  .lrow { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb main main" "thumb price actions"; column-gap: 10px; }
  .lrow-thumb { width: 64px; }
  .lrow-price { align-items: flex-start; text-align: left; }
  .lrow-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Gaming: type pills + brand-family accordions with multi-select platforms. */
.f-type { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.f-pill { position: relative; cursor: pointer; }
.f-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.f-pill span {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: #d6d1dc; font-size: 13px; transition: border-color .15s, background .15s;
}
.f-pill:hover span { border-color: var(--muted); }
.f-pill input:checked + span { background: rgba(255, 90, 54, .14); border-color: var(--accent); color: var(--text); font-weight: 600; }
.f-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.f-fam { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 6px; overflow: hidden; }
.f-fam summary {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 600; color: #e6e1ea; user-select: none;
}
.f-fam summary::-webkit-details-marker { display: none; }
.f-fam summary:hover { background: var(--surface-2); }
.f-fam summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 10px; }
.f-fam-name { flex: 1; min-width: 0; }
.f-fam-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.f-fam-n[hidden] { display: none; }
.f-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; flex: none; }
.f-fam[open] .f-chev { transform: rotate(180deg); }
.f-fam[open] summary { border-bottom: 1px solid var(--line); }
.f-fam-body { padding: 4px 12px 8px; }
.f-fam-body .f-opt { font-size: 14px; padding: 4px 0; }
.f-fam-body .f-all { border-bottom: 1px dashed var(--line); margin-bottom: 2px; padding-bottom: 7px; }
.f-fam-body .f-all span { color: var(--muted); font-size: 13px; }
.f-opt input[type="checkbox"] { border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .f-chev { transition: none; } }

/* Active-filter pills above the results. */
.active-filters .chip-x { min-height: 32px; padding: 0 10px 0 12px; font-size: 13px; border-color: #3b3646; }
.active-filters .chip-x:hover { border-color: var(--accent); }
.active-filters .chip-x:hover span[aria-hidden] { color: var(--accent); }
.clear-all {
  min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: transparent;
  color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer;
}
.clear-all:hover { border-color: rgba(255, 90, 54, .4); background: rgba(255, 90, 54, .08); }
.clear-all:focus-visible, .active-filters .chip-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
