/* Vidsmark — marketplace prototype styles. Mobile-first. */
:root {
  --bg: #0f1117;
  --bg-2: #161922;
  --surface: #1b1f2b;
  --surface-2: #222736;
  --line: #2c3142;
  --line-2: #3a4156;
  --text: #eef1f7;
  --muted: #9aa3b8;
  --muted-2: #6f7891;
  --brand: #7c5cff;       /* arcade violet */
  --brand-2: #00e0c6;     /* CRT teal */
  --brand-ink: #0c0a1a;
  --accent: #ff5d8f;      /* neon pink */
  --gold: #ffce4d;
  --good: #2dd4a7;
  --warn: #ffb648;
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.5);
  --tap: 44px;
  --maxw: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pixel: 'Press Start 2P', monospace;
}

/* ── Light theme overrides — arcade brand on warm light surfaces ───────── */
:root[data-theme="light"] {
  /* Elevation hierarchy, inverted: page (bg) is the darkest off-white,
     cards (surface/surface-2) lift lighter toward white. Soft cool-warm
     off-whites so it reads premium, never a flat washed-out invert. */
  --bg: #f3f1f6;          /* soft cool off-white page (faint violet warmth) */
  --bg-2: #ecebf2;        /* recessed band, slightly deeper than page */
  --surface: #ffffff;     /* cards lift cleanly off the page */
  --surface-2: #faf9fd;   /* raised surface, a touch off pure white */
  --line: #e2e0ea;        /* subtle light-gray border */
  --line-2: #cfccdc;      /* stronger divider */
  --text: #1a1726;        /* near-black with violet warmth (AA+ everywhere) */
  --muted: #59546b;       /* secondary text, AA on surfaces */
  --muted-2: #767089;     /* tertiary text, AA on white */
  /* Deeper CRT teal so teal text/icons/outline stay readable on light.
     Decorative teal glows are hardcoded rgba(0,224,198,…) and keep the
     bright tone — only token-driven (mostly text) uses are darkened. */
  --brand-2: #0a8e80;
  /* --brand-ink stays near-black: both its uses are TEXT on bright fills
     (teal .btn--accent gradient, green escrow dot) which need dark ink. */
  --brand-ink: #0c0a1a;
  --shadow: 0 6px 20px rgba(54, 44, 92, .10);
  --shadow-lg: 0 18px 44px rgba(54, 44, 92, .16);
}
/* Targeted light-mode legibility fixes (only real breaks):
   these hardcode light text that sat on a faint violet tint over a dark
   page; on a light page the tint stays near-white so light text vanishes.
   Swap to the violet brand which is dark enough to read on white. */
[data-theme="light"] .locpick__opt.is-active { color: var(--brand); }
[data-theme="light"] .locpick__tag--soon { color: var(--brand); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- layout shells ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 88px; min-height: 60vh; } /* room for bottom nav */

/* ---------- top header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15,17,23,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .app-header {
  background: rgba(248,247,252,.85); /* light translucent chrome */
}
.app-header__row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; margin-right: auto; }
/* --- logomark: stylized game cartridge with negative-space "V" --- */
.brand__mark {
  width: 30px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  filter: drop-shadow(0 2px 6px rgba(124,92,255,.4));
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
/* lighter, softer violet shadow so the glow doesn't smear on white */
[data-theme="light"] .brand__mark { filter: drop-shadow(0 1px 3px rgba(124,92,255,.22)); }
.brand__mark svg { width: 30px; height: 32px; display: block; }
.brand__mark .cart-body {
  fill: var(--surface-2);
  stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round;
}
/* faint violet-tinted body, distinct from the near-white light header */
[data-theme="light"] .brand__mark .cart-body { fill: #efebff; stroke: var(--brand); }
.brand__mark .cart-notch { fill: var(--brand); opacity: .85; }
.brand__mark .cart-label { fill: var(--brand); opacity: .16; }
.brand__mark .cart-v { fill: var(--brand-2); }
/* deeper teal V on the light body, and drop the heavy glow that haloes on light */
[data-theme="light"] .brand__mark .cart-v { fill: var(--brand-2); filter: none; }
.brand:hover .brand__mark, .brand:focus-visible .brand__mark { transform: translateY(-1px) rotate(-3deg); }
/* subtle teal glow on the V via a sibling-free filter using box on label */
.brand__mark .cart-v { filter: drop-shadow(0 0 3px rgba(0,224,198,.45)); }

/* --- wordmark --- */
.brand__text { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1; }
.brand__name {
  font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--text);
}
.brand__name b { color: var(--brand-2); font-weight: 800; }
/* compact CA · BETA pill */
.brand__tag {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 4px;
  font-family: var(--pixel); font-size: 6px; line-height: 1; letter-spacing: .06em;
  color: var(--brand-2); text-transform: uppercase;
  padding: 2px 5px; border-radius: 4px;
  background: rgba(0,224,198,.1); border: 1px solid rgba(0,224,198,.32);
  white-space: nowrap;
}
.brand__tag i { width: 2px; height: 2px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .brand__mark { transition: none; }
  .brand:hover .brand__mark, .brand:focus-visible .brand__mark { transform: none; }
  .usermenu__head-go { transition: none; }
  .usermenu__head:hover .usermenu__head-go { transform: none; }
}
/* mobile-first: search wraps to its own full-width row; the location picker now
   lives INSIDE it as a leading scope chip ("searching in <city>"), and Sell is a
   persistent pill on row 1 next to the avatar. */
.searchbar { order: 5; flex: 1 1 100%; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 6px; height: 46px; min-width: 0; }
.searchbar:focus-within { border-color: var(--brand); }
.searchbar__ico { flex-shrink: 0; color: var(--muted); margin-left: 6px; }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font-size: 15px; padding: 0 4px; height: 100%; }
.searchbar input:focus { outline: none; }
.searchbar button[type="submit"] { height: 36px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; padding: 0 14px; font-size: 13px; flex-shrink: 0; }

/* persistent Sell action — sits between search and the avatar on every breakpoint */
.app-header .header-sell {
  order: 2; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; height: 44px; min-width: 44px; padding: 0;
  border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  font-weight: 800; font-size: 14px; letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(124,92,255,.32);
}
.app-header .header-sell:hover { filter: brightness(1.06); }
.app-header .header-sell svg { width: 22px; height: 22px; flex-shrink: 0; }
/* mobile = compact icon pill; the word reveals from desktop */
.header-sell__text { display: none; }

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: rgba(22,25,34,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
[data-theme="light"] .bottom-nav {
  background: rgba(252,251,254,.92); /* light translucent chrome to match header */
}
.bottom-nav a {
  flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; color: var(--muted); font-weight: 600;
}
.bottom-nav a.active { color: var(--brand-2); }
.bottom-nav a svg { width: 22px; height: 22px; }
/* Sell is no longer in the bottom nav — it lives persistently in the header
   (next to the avatar), reachable on every page incl. the mobile listing route
   where this nav hides. Nav stays a balanced 4-tab: Home / Browse / Import / Saved. */

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn:hover { border-color: var(--line-2); background: var(--surface); }
.btn--primary { background: var(--brand); color: #fff; border-color: transparent; }
.btn--primary:hover { background: #6a48f5; }
.btn--accent { background: linear-gradient(135deg, var(--brand-2), #11b9a6); color: var(--brand-ink); }
.btn--ghost { background: transparent; border-color: var(--line-2); }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: 16px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.badge--platform { background: rgba(124,92,255,.16); color: #c3b4ff; border: 1px solid rgba(124,92,255,.35); }
/* light mode: pale-violet badge text is unreadable on a light tint (the card-corner
   chip keeps its own dark glass backdrop via .card__platform, so exclude it) */
[data-theme="light"] .badge--platform:not(.card__platform) { color: #5d43c6; background: rgba(124,92,255,.1); border-color: rgba(124,92,255,.3); }
.badge--cond { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge--sealed { background: rgba(255,206,77,.15); color: var(--gold); border: 1px solid rgba(255,206,77,.4); }
.badge--cib { background: rgba(45,212,167,.14); color: var(--good); border: 1px solid rgba(45,212,167,.35); }
.badge--tested { background: rgba(45,212,167,.14); color: var(--good); border: 1px solid rgba(45,212,167,.3); }
.badge--untested { background: rgba(255,182,72,.13); color: var(--warn); border: 1px solid rgba(255,182,72,.3); }
.badge--sample { background: rgba(255,93,143,.12); color: var(--accent); border: 1px solid rgba(255,93,143,.3); font-family: var(--pixel); font-size: 8px; padding: 5px 8px; }
.badge--rarity { background: rgba(255,206,77,.1); color: var(--gold); border: 1px solid rgba(255,206,77,.3); }

.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.rating-line { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }

/* ---------- HOME ---------- */
.section { padding: 22px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section__head h2 { font-size: 19px; margin: 0; letter-spacing: -.01em; }
.section__head a { color: var(--brand-2); font-size: 13px; font-weight: 700; }

.hero {
  margin: 18px 0 6px; padding: 24px 20px; border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(124,92,255,.28), transparent 55%),
    radial-gradient(120% 140% at 0% 100%, rgba(0,224,198,.18), transparent 55%),
    var(--surface);
  border: 1px solid var(--line-2);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 4px;
}
.hero__kicker { font-family: var(--pixel); font-size: 9px; color: var(--brand-2); letter-spacing: .08em; margin-bottom: 12px; }
.hero h1 { font-size: 25px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
.hero p { color: var(--muted); margin: 0 0 18px; font-size: 15px; max-width: 46ch; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__grid { display: grid; gap: 22px; position: relative; z-index: 1; }
.hero__sub { font-size: 13px; }

/* HERO escrow panel — held → released trust mechanism (right column on desktop, below copy on mobile) */
.hero__aside { min-width: 0; }
.hero-escrow {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.hero-escrow__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-escrow__lock {
  flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px;
  font-size: 17px; border-radius: 10px;
  background: rgba(0,224,198,.12); border: 1px solid rgba(0,224,198,.32);
}
.hero-escrow__head > div { display: flex; flex-direction: column; min-width: 0; }
.hero-escrow__head b { font-size: 14px; }
.hero-escrow__head span { font-size: 11.5px; color: var(--muted); }
.hero-escrow__head .badge--sample { margin-left: auto; flex-shrink: 0; align-self: flex-start; }

.hero-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hero-flow__step { position: relative; display: flex; gap: 12px; padding: 0 0 16px 0; }
.hero-flow__step:last-child { padding-bottom: 0; }
/* connector line between dots */
.hero-flow__step::before {
  content: ''; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px;
  background: var(--line-2);
}
.hero-flow__step:last-child::before { display: none; }
.hero-flow__dot {
  flex-shrink: 0; z-index: 1; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 800;
  border: 2px solid var(--line-2); background: var(--surface); color: var(--muted);
}
.hero-flow__step--done .hero-flow__dot { border-color: var(--good); color: var(--good); }
.hero-flow__step--hold .hero-flow__dot { border-color: var(--warn); color: var(--warn); }
.hero-flow__step--go .hero-flow__dot {
  border-color: transparent; background: var(--brand-2); color: var(--brand-ink);
  box-shadow: 0 0 0 3px rgba(0,224,198,.18);
}
.hero-flow__txt { display: flex; flex-direction: column; padding-top: 3px; min-width: 0; }
.hero-flow__txt b { font-size: 13.5px; line-height: 1.2; }
.hero-flow__txt em { font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }

.hero-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2);
}
.hero-trust__stat { display: flex; flex-direction: column; text-align: center; }
.hero-trust__stat b { font-size: 19px; font-weight: 800; color: var(--brand-2); line-height: 1; letter-spacing: -.01em; }
.hero-trust__stat span { font-size: 10.5px; color: var(--muted-2); margin-top: 5px; line-height: 1.2; }
.hero-escrow__note { font-size: 10.5px; color: var(--muted-2); margin: 12px 0 0; text-align: center; }

/* HERO variant B — condensed welcome-back bar (returning / signed-in visitor).
   Slim, action-first, gets out of the way above the "New since your last visit" rail. */
.hero--back { padding: 18px 18px; }
.hero-back {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-back__lede { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hero-back__lock {
  flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px;
  font-size: 18px; border-radius: 11px;
  background: rgba(0,224,198,.12); border: 1px solid rgba(0,224,198,.32);
}
.hero-back__copy { min-width: 0; }
.hero-back h1 { font-size: 22px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.hero-back__sub { color: var(--muted); margin: 4px 0 0; font-size: 13.5px; max-width: 52ch; }
.hero-back__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-back__btns .btn { flex: 1 1 auto; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); min-height: 84px; justify-content: center;
}
.tile:hover { border-color: var(--brand); background: var(--surface-2); }
.tile__icon { font-size: 22px; }
.tile__label { font-weight: 700; font-size: 14px; }
.tile__sub { font-size: 12px; color: var(--muted-2); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 8px 14px; min-height: 38px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted);
}
.chip:hover, .chip.active { border-color: var(--brand); color: var(--text); background: var(--surface-2); }

.trustline {
  display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 16px; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.trustline div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.trustline b { color: var(--text); font-weight: 700; }

/* ---------- listing cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .card, .h-scroll .card-wrap { scroll-snap-align: start; }
/* horizontal carousel with prev/next arrows */
.hsw { position: relative; }
.hsw__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 42px; height: 42px; border-radius: 50%; display: none; place-items: center;
  background: rgba(22,25,34,.94); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.hsw__arrow svg { width: 22px; height: 22px; }
.hsw__arrow--prev { left: -8px; }
.hsw__arrow--next { right: -8px; }
.hsw__arrow:hover { border-color: var(--brand); background: var(--surface-2); }
/* arrows only on pointer/hover devices; touch users swipe */
@media (hover: hover) and (pointer: fine) {
  .hsw__arrow { display: grid; }
  .hsw__arrow[hidden] { display: none; }
}
/* mobile: horizontal scrollers bleed to the screen edge but keep a start gutter
   aligned with page content (so the first item lines up; scrolled content runs
   edge-to-edge on the side that has more to scroll) */
@media (max-width: 859px) {
  .chips, .h-scroll {
    margin-left: -16px; margin-right: -16px;
    padding-left: 16px; padding-right: 16px;
    scroll-padding-left: 16px;
  }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .ph-card { position: absolute; inset: 0; }
.card__media .ph-card__note { display: none; } /* keep grid placeholder compact */
.card__media .ph-card__title { font-size: 13px; }
/* grid card: the media tile + body + actions now live directly in .card-wrap, so the
   WRAP carries the card surface/border/lift (the inner .card--grid is just the linked
   body). list-row wraps (.card-wrap--row) keep their own .card layout untouched. */
.card-wrap:not(.card-wrap--row) {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.card-wrap:not(.card-wrap--row):hover { border-color: var(--line-2); transform: translateY(-2px); }
.card--grid { background: none; border: 0; border-radius: 0; overflow: visible; }
.card--grid:hover { transform: none; }
/* media tile spans the full wrap width; the linked body keeps its own inner padding */
.card-wrap:not(.card-wrap--row) > .card__media--flip { flex: 0 0 auto; }
.card-wrap:not(.card-wrap--row) > .card--grid { flex: 1; min-width: 0; }
/* grid front-face badges: one wrapping stack pinned top-left; flip toggle owns top-right.
   right padding keeps the row clear of the toggle even if it wraps. */
.card__badges {
  position: absolute; top: 8px; left: 8px; right: 54px; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px;
}
.card__platform, .card__cond { position: static; }
/* badges sit on top of cover art — give them a solid dark backdrop so they stay
   readable over any artwork (the translucent fills alone vanish on light covers) */
.card__platform, .card__cond {
  background: rgba(10, 9, 20, .76);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.card__platform { color: #d7ccff; }                 /* brighter violet on the dark chip */
.card__cond.badge--cond { color: #d4dbec; }         /* "Loose" was too dim */
.card__body { padding: 10px 11px 2px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__title { font-size: 14px; font-weight: 700; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.card__price { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
/* price + compact actions on one foot row, baseline-balanced */
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 11px 11px; min-width: 0;
}
.card__foot .card__price { line-height: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted-2); margin-top: auto; }
.card__city { display: inline-flex; align-items: center; gap: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- list view (wide retrieval rows) ---------- */
.grid--list { display: flex; flex-direction: column; gap: 10px; }
.grid--list .card-wrap--row { display: block; }
.card--row {
  flex-direction: row; align-items: stretch; gap: 0; min-height: 132px;
}
/* fixed, uniform thumbnail (photo OR placeholder render identically) so the whole
   list reads as an even column. height is locked, not stretched, so a tall cover
   photo and a short placeholder produce the same row. */
.card--row .card__media {
  aspect-ratio: auto; width: 145px; flex: 0 0 145px; align-self: center;
  height: 136px; border-radius: 12px; overflow: hidden;
}
.card--row .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--row .card__media .ph-card { position: absolute; inset: 0; }
.card--row .card__media .ph-card__glyph svg { width: 28px; height: 28px; }
.card--row .card__media .ph-card__title { font-size: 11px; -webkit-line-clamp: 2; }
.card--row .card__media .ph-card__plat { font-size: 8px; }
.card--row .card__body { padding: 10px 12px; gap: 6px; justify-content: center; min-width: 0; }
.card--row .card__title { -webkit-line-clamp: 2; min-height: 0; font-size: 14px; }
.card--row .card__rowmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.card--row .card__rowmeta .badge { font-size: 10px; }
.card--row .card__rowmeta .rating-line { font-size: 12px; }
.card--row .card__rowmeta .card__city { max-width: 46vw; }
/* price RIGHT-aligned in its own column for vertical price-scanning; save/like
   capsule sits BELOW the price (in content area, never over the thumbnail) */
.card--row .card__rowprice { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; padding: 10px 12px; text-align: right; }
.card--row .card__price { font-size: 17px; white-space: nowrap; }
/* relocated save/like control: static capsule in the row body (on --surface, not
   over the image) — themed so icons read in both light + dark */
.card--row .card-actions {
  position: static; inset: auto; bottom: auto; right: auto;
  flex-direction: row; align-items: center;
  background: var(--surface-2); backdrop-filter: none;
  border: 1px solid var(--line-2); box-shadow: none;
}
.card--row .card-actions__btn { min-height: 38px; min-width: 42px; }
.card--row .card-actions__btn + .card-actions__btn { border-top: 0; border-left: 1px solid var(--line); }
.card--row .card-actions__btn svg { stroke: var(--muted); }
.card--row .card-actions__btn:hover { background: var(--surface); }
.card--row .card-actions__btn:hover svg { stroke: var(--text); }
.card--row .card-actions__btn.save.is-saved svg { fill: var(--brand); stroke: var(--brand); }
.card--row .card-actions__btn.like.is-liked svg { fill: var(--accent); stroke: var(--accent); }
.card--row .card-actions__btn .like-count { color: var(--muted); }
.card--row .card-actions__btn.like.is-liked .like-count { color: var(--accent); }
.card--row .card__new { top: 6px; left: 6px; }

/* ---------- quick-look (in-tile 3D card flip, tap-first) ---------- */
/* The image tile flips: front = cover + "View" button, back = details. The flip is
   confined to the fixed-size .card__media tile, so the variable-height card never has a
   front/back height mismatch and never reflows the grid. Default = front (photo). */
.card__media--flip { perspective: 900px; }
.card__flip {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card-wrap.ql-flipped .card__flip { transform: rotateY(180deg); }
.card__face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  overflow: hidden;
}
.card__face--front { display: grid; place-items: center; background: var(--bg-2); }
.card__face--back {
  transform: rotateY(180deg);
  background: var(--surface); border-top: 2px solid var(--brand);
}
/* keep each hidden face out of pointer + tab order until it faces the viewer; the
   visibility flips at the midpoint of the .5s rotation so it doesn't pop in early. */
.card__face { transition: visibility 0s linear .25s; }
.card__face--back { visibility: hidden; }
.card-wrap.ql-flipped .card__face--back { visibility: visible; }
.card-wrap.ql-flipped .card__face--front { visibility: hidden; }
/* back-face inner scroller: if details exceed the fixed tile, scroll IN-TILE only.
   top padding clears the pinned flip toggle in the top-right corner. */
.ql-back__scroll {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 12px 13px;
}
/* ONE flip toggle, pinned to the SAME corner on BOTH faces (top-right of the tile).
   Front = eye icon → details; back = photo icon → cover. Identical box, just the icon
   + label swap. It's a real <button> and must not navigate. */
.ql-flip {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  font: inherit; cursor: pointer;
  color: #fff; background: rgba(10,9,20,.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2); box-shadow: 0 2px 8px rgba(0,0,0,.45);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.ql-flip:hover { background: var(--brand); border-color: var(--brand); }
.ql-flip:active { transform: scale(.92); }
.ql-flip svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ql-desc { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--text); padding-right: 34px; }
/* single column on narrow cards (2-col grid at 360px squeezes labels); two
   columns once cards are roomier so the facts read as a tidy spec block */
.ql-facts { display: grid; grid-template-columns: 1fr; gap: 6px 14px; margin: 0 0 10px; }
@media (min-width: 480px) { .ql-facts { grid-template-columns: 1fr 1fr; } }
.ql-fact { min-width: 0; }
.ql-fact dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin: 0; }
.ql-fact dd { font-size: 12.5px; font-weight: 600; color: var(--text); margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; }
.ql-fact .stars { color: var(--gold); }
.ql-yes { color: var(--good); font-weight: 700; }
.ql-warn { color: var(--warn); font-weight: 700; }
.ql-escrow {
  font-size: 11.5px; line-height: 1.4; color: var(--muted);
  background: var(--bg-2); border-radius: 8px; padding: 7px 9px; margin-bottom: 10px;
}
.ql-escrow b { color: var(--brand-2); }
.ql-more {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px;
  font-size: 13px; font-weight: 700; color: var(--brand);
}
.ql-more:hover { text-decoration: underline; }
/* the quick-look flip is for the BROWSE results grid only. Hide the "View" trigger on
   any other surface (home shelves/carousels) so those tiles stay plain covers. The
   list view uses cardRow() (no flip markup) and is unaffected. */
.ql-flip--front { display: none; }
#resultGrid:not(.grid--list) .card-wrap .ql-flip--front { display: inline-flex; }
/* reduced motion: no 3D animation — just swap faces. Drop the rotateY so both faces lie
   flat; visibility (handled above) shows the active one, stacked via z-index. */
@media (prefers-reduced-motion: reduce) {
  .card__flip { transition: none; transform: none !important; }
  .card__face { transition: none; backface-visibility: visible; }
  .card__face--back { transform: none; }
  .card-wrap.ql-flipped .card__face--back { z-index: 2; }
}

/* ---------- breadcrumb + page heading ---------- */
.browse-head { padding-top: 14px; }
.crumbs { font-size: 13px; margin-bottom: 8px; }
.crumbs__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.crumbs__item { display: inline-flex; align-items: center; min-height: 28px; }
.crumbs__item + .crumbs__item::before { content: '›'; margin: 0 8px; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }
.page-title { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }

/* ---------- view enter transition ---------- */
.view-enter { animation: viewIn .16s ease-out; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- browse layout ---------- */
.browse { display: block; position: relative; }
.browse__top { display: flex; align-items: center; gap: 10px; padding: 8px 0 4px; flex-wrap: wrap; }
.browse__count { font-size: 14px; color: var(--muted); font-weight: 600; }
.browse__top select { min-height: 40px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 13px; font-weight: 600; }
.filter-toggle { gap: 7px; }
/* query echo — confirms the active text query next to the count */
.browse__echo { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browse__echo:empty { display: none; }
.browse__echo b { color: var(--text); font-weight: 700; }
/* list/grid view toggle — segmented icon control; pushed to the right with sort */
.view-toggle { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.view-toggle__btn { display: grid; place-items: center; width: 40px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.view-toggle__btn + .view-toggle__btn { border-left: 1px solid var(--line); }
.view-toggle__btn:hover { color: var(--text); }
.view-toggle__btn.is-active { background: var(--brand); color: #fff; }
.view-toggle__btn svg { display: block; }
.view-toggle + select { margin-left: 0; }

/* ----- market banner ----- */
.market-banner {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 12px;
  padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.market-banner b { color: var(--text); }
.market-banner--live { background: rgba(45,212,167,.08); border-color: rgba(45,212,167,.32); color: #bfeede; }
.market-banner--live b { color: #d9fff1; }
.market-banner__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(45,212,167,.18); }
.market-banner__dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(45,212,167,.22); } 50% { box-shadow: 0 0 0 7px rgba(45,212,167,0); } }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike:hover { color: #4ff0db; }
/* light mode: the live banner's pale-mint text is unreadable on a light bg — deepen it */
[data-theme="light"] .market-banner--live { background: rgba(45,212,167,.12); border-color: rgba(16,150,128,.42); color: #0c6650; }
[data-theme="light"] .market-banner--live b { color: #0a4d3b; }
[data-theme="light"] .linklike:hover { color: #0a6e62; }

/* ----- active filter chips ----- */
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.active-chips:empty { margin: 0; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px 0 12px;
  border-radius: 999px; border: 1px solid rgba(124,92,255,.4); background: rgba(124,92,255,.12);
  color: #d6ccff; font-size: 13px; font-weight: 700;
}
.fchip:hover { border-color: var(--brand); }
[data-theme="light"] .fchip { color: #5d43c6; }
.fchip__x { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 15px; line-height: 1; }
.fchip--clear { padding: 0 14px; background: transparent; border-color: var(--line-2); color: var(--muted); }
.fchip--clear:hover { color: var(--text); border-color: var(--brand); }

/* ----- softened, collapsible filter rail ----- */
.filters-scrim { display: none; }
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 14px 14px; margin-bottom: 16px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
}
.filters[hidden] { display: none; }
.filters.is-open { opacity: 1; transform: none; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: 0; padding: 0; min-height: 48px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.fgroup__head:hover { color: var(--text); }
.fgroup__chev { width: 16px; height: 16px; transition: transform .2s ease; color: var(--muted-2); flex-shrink: 0; }
.fgroup.is-open .fgroup__chev { transform: rotate(180deg); }
/* collapsed body: animate height via grid-rows */
.fgroup__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.fgroup.is-open .fgroup__body { grid-template-rows: 1fr; }
.fgroup__body > * { overflow: hidden; min-height: 0; }
.fgroup.is-open .fgroup__body > * { padding-bottom: 14px; }
.f-options { display: flex; flex-wrap: wrap; gap: 8px; }
.f-check { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.f-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.f-check:has(input:checked) { border-color: var(--brand); color: var(--text); background: var(--surface-2); }
.f-range { display: flex; align-items: center; gap: 10px; }
.f-range input { width: 100%; min-height: 40px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 0 10px; font-size: 14px; }
.f-actions { display: flex; gap: 10px; padding-top: 12px; }

/* ---------- listing detail ---------- */
/* keep the .wrap horizontal gutter (16px) — only add vertical padding here so the
   back-link, title, badges, grade row & price share the same left edge as panels */
.detail { padding-top: 16px; padding-bottom: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; min-height: 44px; }
/* gallery: full uncropped image on a letterbox backdrop, orientation-aware */
.gallery { margin-bottom: 14px; }
.gallery__stage {
  position: relative;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(124,92,255,.10), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
  /* let the image drive height; cap so big landscape shots stay sensible, portrait shows fully */
  min-height: 280px; max-height: 70vh; padding: 16px;
}
.gallery__stage img {
  width: auto; height: auto;
  max-width: 100%; max-height: calc(70vh - 32px);
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.gallery__stage--ph { padding: 0; }
.gallery__stage--ph .ph-card { width: 100%; height: 100%; min-height: 280px; border-radius: 0; box-shadow: none; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: var(--bg-2); border: 2px solid var(--line); padding: 0; min-height: 0;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--brand); }

/* styled placeholder card (listings with no real cover photo) */
.ph-card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 14px; text-align: center; color: #fff;
  background:
    radial-gradient(110% 90% at 50% 0%, color-mix(in srgb, var(--ph) 55%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--ph) 26%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--ph) 45%, var(--line));
}
.ph-card__glyph { color: color-mix(in srgb, var(--ph) 70%, #fff); }
.ph-card__glyph svg { width: 40px; height: 40px; }
.ph-card__title { font-weight: 800; font-size: 14px; line-height: 1.25; letter-spacing: -.01em; max-width: 90%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-card__plat {
  font-family: var(--pixel); font-size: 8px; padding: 5px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--ph) 30%, rgba(0,0,0,.35)); color: #fff;
  border: 1px solid color-mix(in srgb, var(--ph) 60%, transparent);
}
.ph-card__note { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; }
.detail h1 { font-size: 22px; margin: 6px 0 8px; line-height: 1.2; }
.detail__badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.detail__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.detail__price small { font-size: 14px; color: var(--muted); font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.panel h3 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }

.seller-block { display: flex; align-items: center; gap: 12px; }
.seller-block .avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.seller-block .meta { flex: 1; min-width: 0; }
.seller-block .handle { font-weight: 700; }
.seller-block .sub { font-size: 13px; color: var(--muted); }

/* enrichment */
.enrich__value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.enrich__value .big { font-size: 26px; font-weight: 800; }
.enrich__trend { font-weight: 800; font-size: 14px; }
.enrich__trend.up { color: var(--good); }
.enrich__trend.down { color: var(--danger); }
.sparkline { width: 100%; height: 46px; margin: 10px 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tier { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.tier .t-label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.tier .t-price { font-size: 17px; font-weight: 800; margin-top: 2px; }
.tier.active { border-color: var(--brand); background: var(--surface-2); }
.source-tag { font-size: 11px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; }

.cta-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.detail__desc { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- import flow ---------- */
.flow { max-width: 640px; margin: 0 auto; padding: 18px 0; }
.flow h1 { font-size: 24px; margin: 6px 0; }
.flow .lead { color: var(--muted); margin-bottom: 18px; }
.scanbar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.scanbar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s linear; }
.scan-status { font-family: var(--pixel); font-size: 10px; color: var(--brand-2); margin: 12px 0; min-height: 14px; }
.import-group { margin-bottom: 14px; }
.import-group > h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.import-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.import-row input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.import-row .ir-title { flex: 1; font-weight: 600; font-size: 14px; }
.import-row .ir-price { font-weight: 800; }
.draft-tag { font-family: var(--pixel); font-size: 8px; color: var(--warn); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 46px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 11px 12px; font-size: 15px; font-family: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
/* native checkboxes/radios: compact, on-brand — never inherit the full-width text-input sizing */
.field input[type="checkbox"], .field input[type="radio"] { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.suggest-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brand-2); background: rgba(0,224,198,.1); border: 1px solid rgba(0,224,198,.3); border-radius: 999px; padding: 5px 11px; margin-left: 8px; cursor: pointer; min-height: 30px; transition: background .15s, border-color .15s; }
.suggest-chip:hover { background: rgba(0,224,198,.16); border-color: rgba(0,224,198,.5); }
.suggest-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-box { border: 2px dashed var(--line-2); border-radius: 12px; padding: 26px 16px; text-align: center; color: var(--muted); background: var(--bg-2); transition: border-color .15s, background .15s; }
.upload-box:hover { border-color: var(--brand); }
.upload-box .ico { font-size: 28px; }
.upload-box p { margin: 6px 0 0; font-size: 13px; }

/* Sell form: inline labeled checkbox row + tidy fulfillment chips (scoped, leaves filter-drawer .f-check untouched) */
.field > label.sell-check { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 0; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; }
.sell-check input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.sell-fulfill { display: flex; flex-wrap: wrap; gap: 10px; }
.sell-opt { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; transition: border-color .15s, color .15s, background .15s; }
.sell-opt input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.sell-opt:hover { border-color: var(--line-2); }
.sell-opt:has(input:checked) { border-color: var(--brand); color: var(--text); background: var(--surface-2); }
.sell-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- checkout ---------- */
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-row.total { border-bottom: 0; font-size: 18px; font-weight: 800; padding-top: 14px; }
.summary-row .muted { color: var(--muted); }
.escrow-explainer { background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.3); border-radius: 12px; padding: 14px; font-size: 14px; color: #cfc6ff; display: flex; gap: 10px; }
[data-theme="light"] .escrow-explainer { color: #4a3f8f; }
[data-theme="light"] .escrow-explainer b { color: var(--text); }
[data-theme="light"] .escrow-ok { color: #0c6650 !important; background: rgba(45,212,167,.12) !important; border-color: rgba(16,150,128,.42) !important; }
.escrow-steps { display: flex; gap: 6px; margin: 14px 0; }
.escrow-step { flex: 1; text-align: center; font-size: 11px; color: var(--muted-2); }
.escrow-step .dot { width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.escrow-step.done .dot { background: var(--good); border-color: var(--good); color: var(--brand-ink); }
.escrow-step.active .dot { border-color: var(--brand); color: var(--brand); }
.demo-banner { background: rgba(255,206,77,.12); border: 1px solid rgba(255,206,77,.4); color: var(--gold); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }

/* ---------- seller profile ---------- */
.profile-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; }
.profile-head .avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; flex-shrink: 0; }
.profile-stats { display: flex; gap: 8px 18px; margin-top: 8px; flex-wrap: wrap; }
.profile-stats div { font-size: 13px; color: var(--muted); }
.profile-stats b { display: block; font-size: 17px; color: var(--text); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(20px); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- footer note ---------- */
.foot-note { text-align: center; color: var(--muted-2); font-size: 12px; padding: 26px 16px; border-top: 1px solid var(--line); margin-top: 24px; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ico { font-size: 36px; margin-bottom: 10px; }

/* ---------- mobile filter drawer (bottom sheet) ---------- */
@media (max-width: 859px) {
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    margin: 0; max-height: 82vh; overflow-y: auto;
    border-radius: 18px 18px 0 0; border-bottom: 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0));
    transform: translateY(100%); opacity: 1;
    box-shadow: 0 -18px 50px rgba(0,0,0,.5);
  }
  .filters.is-open { transform: translateY(0); }
  .filters::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 8px auto 6px; }
  .filters-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.5); backdrop-filter: blur(1px); }
  .filters-scrim[hidden] { display: none; }
  body.no-scroll { overflow: hidden; }
}

/* ---------- location picker: scope chip living INSIDE the search bar ---------- */
/* In a hyper-local marketplace, location IS search scope, so the picker reads as a
   "searching in <city>" prefix on the search field instead of a separate top-bar item. */
.locpick { position: relative; flex-shrink: 0; }
.locpick__btn {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-weight: 700; font-size: 12px;
  max-width: 38vw;
}
.locpick__btn:hover { border-color: var(--brand); }
.locpick__btn svg:first-child { color: var(--brand-2); flex-shrink: 0; }
.locpick__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locpick__chev { color: var(--muted); flex-shrink: 0; }
.locpick__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: min(280px, 86vw); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; overflow: hidden;
}
.locpick__menu[hidden] { display: none; }
.locpick__hint { font-size: 12px; color: var(--muted); line-height: 1.45; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.locpick__hint b { color: var(--text); }
.locpick__opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 0 10px; border: 0; background: none; border-radius: 10px;
  color: var(--text); font-size: 14px; font-weight: 600; text-align: left;
}
.locpick__opt:hover { background: var(--surface-2); }
.locpick__opt.is-active { background: rgba(124,92,255,.14); color: #fff; }
.locpick__opt-label { display: inline-flex; align-items: center; gap: 8px; }
.locpick__tag { font-family: var(--pixel); font-size: 7px; padding: 3px 5px; border-radius: 5px; background: rgba(45,212,167,.16); color: var(--good); border: 1px solid rgba(45,212,167,.4); }
.locpick__tag--soon { background: rgba(124,92,255,.14); color: #c3b4ff; border-color: rgba(124,92,255,.35); }
.locpick__opt-count { font-size: 12px; color: var(--muted-2); font-weight: 700; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .filters { opacity: 1; transform: none; }
}

/* ---------- responsive up ---------- */
@media (min-width: 560px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  /* list view stays a single column of wide rows regardless of card-grid breakpoints */
  .grid--list { grid-template-columns: none; }
  .card--row { min-height: 163px; }
  .card--row .card__media { width: 176px; flex-basis: 176px; height: 163px; }
  .card--row .card__title { font-size: 15px; }
  .card--row .card__price { font-size: 19px; }
  .card--row .card__rowprice { flex-basis: 132px; }
  .card--row .card__rowmeta .card__city { max-width: 220px; }
  .h-scroll { grid-auto-columns: 30%; }
  .hero h1 { font-size: 30px; }
}
@media (min-width: 860px) {
  /* single-row header on desktop: brand · search(with scope chip) · Sell · avatar */
  .app-header__row { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; height: 60px; }
  .brand { margin-right: 0; }
  .searchbar { order: 0; flex: 1 1 0%; }
  .locpick__btn { max-width: 220px; font-size: 13px; }
  .app-header .header-sell { padding: 0 18px; gap: 7px; }
  .header-sell__text { display: inline; }
  .bottom-nav { display: none; }
  main { padding-bottom: 40px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .hero { padding: 40px 36px; }
  .hero h1 { font-size: 38px; }
  .page-title { font-size: 28px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px; }
  .hero__aside { display: block; }
  /* welcome-back: single row — lede grows, actions sit right and size to content */
  .hero--back { padding: 22px 28px; }
  .hero-back { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .hero-back h1 { font-size: 26px; }
  .hero-back__btns { flex: 0 0 auto; flex-wrap: nowrap; }
  .hero-back__btns .btn { flex: 0 0 auto; }
  /* DESKTOP: filters dock as a static left rail in a 2-col browse layout (eBay/Amazon
     pattern). No overlay, no scrim, always visible. */
  .browse { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
  .browse__main { min-width: 0; }
  /* the filter toggle button belongs only to the mobile drawer */
  .filter-toggle { display: none; }
  /* docked rail: in-flow, visible, scrolls independently if long, sticks below header */
  .filters {
    position: sticky; top: 76px; align-self: start;
    margin: 0; padding: 6px 16px 14px;
    max-height: calc(100vh - 92px); overflow-y: auto;
    opacity: 1; transform: none;
    border-radius: var(--radius); border: 1px solid var(--line); box-shadow: none;
    /* single, thin, themed scrollbar (Firefox) */
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  /* single, thin, themed scrollbar (WebKit/Chromium) — both themes via tokens */
  .filters::-webkit-scrollbar { width: 8px; }
  .filters::-webkit-scrollbar-track { background: transparent; }
  .filters::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
  .filters::-webkit-scrollbar-thumb:hover { background: var(--muted-2); background-clip: padding-box; border: 2px solid transparent; }
  /* the rail is never the drawer on desktop: force it shown even if JS left the
     hidden attr / is-open class from a mobile interaction */
  .filters[hidden] { display: block; }
  .filters::before { content: none; }
  .filters.is-open { transform: none; }
  .filters-scrim { display: none !important; }
  body.no-scroll { overflow: auto; }
  .detail__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
  /* sticky buy/seller card — primary action survives the scroll on desktop.
     align-items:start on the grid lets the right column self-stick. */
  .detail__buy { position: sticky; top: 72px; }
  .h-scroll { grid-auto-columns: 22%; }
}
@media (min-width: 1100px) {
  .grid--list { grid-template-columns: none; }
  /* Browse grid holds at 3 columns on desktop (was 4). With the 264px filter
     rail, 4 cols squeezed covers to ~190px; 3 cols gives ~260px covers so the
     image does the selling (discovery intent). Density is served by list view. */
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- small utilities ---------- */
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.page-sub { color: var(--muted); margin: -4px 0 16px; }

/* ---------- account dropdown (header) ---------- */
.usermenu { position: relative; flex-shrink: 0; order: 3; } /* sits after the Sell pill on row 1 */
.usermenu__btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; }
.usermenu__btn:hover, .usermenu__btn[aria-expanded="true"] { border-color: var(--brand); }
.usermenu__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; font-size: 12px; }
.usermenu__avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.usermenu__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; width: 268px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; }
.usermenu__menu[hidden] { display: none; }
.usermenu__head {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface-2));
  border: 1px solid var(--line); margin-bottom: 6px;
}
.usermenu__head:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.usermenu__head .usermenu__avatar--lg { box-shadow: 0 2px 10px color-mix(in srgb, var(--brand) 45%, transparent); }
.usermenu__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.usermenu__who b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__head-go { color: var(--muted-2); flex-shrink: 0; transition: transform .15s, color .15s; }
.usermenu__head:hover .usermenu__head-go { transform: translateX(2px); color: var(--brand-2); }
.usermenu__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.usermenu__group { display: flex; flex-direction: column; }
.usermenu__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 8px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; }
.usermenu__item:hover { background: var(--surface-2); }
.usermenu__item > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.usermenu__toggle { justify-content: space-between; }
.usermenu__toggle-label { display: inline-flex; align-items: center; gap: 10px; }
.usermenu__toggle-label svg { width: 18px; height: 18px; color: var(--muted); }
.usermenu__ico-sun { display: none; }
.usermenu__toggle.is-on .usermenu__ico-moon { display: none; }
.usermenu__toggle.is-on .usermenu__ico-sun { display: inline; }
.usermenu__switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); flex-shrink: 0; transition: background .2s; }
.usermenu__knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.usermenu__toggle.is-on .usermenu__switch { background: var(--brand); }
.usermenu__toggle.is-on .usermenu__knob { transform: translateX(16px); }

/* ---------- saved / favorite sellers ---------- */
.seller-list { display: grid; gap: 10px; }
.seller-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.seller-card:hover { border-color: var(--brand); background: var(--surface-2); }
.seller-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.seller-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.seller-card__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-card__meta { font-size: 13px; color: var(--muted); }
.seller-card__meta .stars { color: var(--gold); }
.seller-card__active { font-size: 12px; color: var(--muted-2); }
.seller-card__follow { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--brand-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }

/* ---------- settings ---------- */
.settings-group { margin-bottom: 14px; }
.settings-group h3 { margin: 0 0 4px; font-size: 15px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.settings-group h3 + .settings-row { border-top: 0; }
.settings-row__label { font-weight: 600; }
.settings-row__hint { font-size: 13px; color: var(--muted); margin-top: 2px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.seg__btn { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 999px; }
.seg__btn.is-on { background: var(--brand); color: #fff; }

/* ---------- account menu: guest + sign out ---------- */
.usermenu__btn.is-guest .usermenu__avatar { background: var(--surface-2); color: var(--muted); }
.usermenu__btn.is-guest .usermenu__avatar svg { width: 18px; height: 18px; }
.usermenu__guest {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface-2));
  border: 1px solid var(--line);
}
.usermenu__guest-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.usermenu__guest-mark svg { width: 18px; height: 18px; }
.usermenu__guest b { font-size: 14.5px; }
.usermenu__guest span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.usermenu__guest-cta { display: flex; gap: 8px; width: 100%; margin-top: 10px; }
.usermenu__guest-cta .btn { flex: 1; min-height: 44px; padding: 0 10px; font-size: 14px; }

/* ---------- card action capsule: Save (bookmark) + Like (heart) ---------- */
.card-wrap { position: relative; display: flex; flex-direction: column; }
.card-wrap > .card { flex: 0 0 auto; min-width: 0; }
/* list-row wraps stay a single block (the row card handles its own layout) */
.card-wrap--row { display: block; }
/* one glass capsule, bottom-right, so the two actions read as a single object */
.card-actions {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  display: flex; flex-direction: column; align-items: stretch;
  border-radius: 22px; overflow: hidden;
  background: rgba(10,9,20,.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.card-actions__btn {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 44px; min-height: 40px; padding: 0 6px; border: 0; background: none;
  transition: background .15s, transform .12s;
}
.card-actions__btn + .card-actions__btn { border-top: 1px solid rgba(255,255,255,.14); }
.card-actions__btn:hover { background: rgba(10,9,20,.5); }
.card-actions__btn:active { transform: scale(1.12); }
.card-actions__btn svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; }
.card-actions__btn.save.is-saved svg { fill: var(--brand); stroke: var(--brand); }
.card-actions__btn.like.is-liked svg { fill: var(--accent); stroke: var(--accent); }
.card-actions__btn .like-count { font-size: 11px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.card-actions__btn.like.is-liked .like-count { color: #fff; }

/* GRID card: Save/Like are COMPACT borderless icon buttons living in the foot row,
   to the right of the price — small enough not to dominate the footer, still ≥44px
   tap target via padding. No pill chrome; they read as quiet utilities next to price. */
.card__foot .card-actions {
  position: static; inset: auto; z-index: auto;
  flex-direction: row; align-items: center; gap: 2px; flex: 0 0 auto;
  border-radius: 0; overflow: visible;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 0; box-shadow: none;
}
.card__foot .card-actions__btn {
  min-height: 44px; min-width: 32px; padding: 0 5px; gap: 3px; border-radius: 9px;
  color: var(--muted-2);
}
.card__foot .card-actions__btn + .card-actions__btn { border: 0; }
.card__foot .card-actions__btn svg { width: 16px; height: 16px; stroke: var(--muted); }
.card__foot .card-actions__btn:hover { background: var(--surface-2); }
.card__foot .card-actions__btn:hover svg { stroke: var(--text); }
.card__foot .card-actions__btn.save.is-saved svg { fill: var(--brand); stroke: var(--brand); }
.card__foot .card-actions__btn.like.is-liked svg { fill: var(--accent); stroke: var(--accent); }
.card__foot .card-actions__btn .like-count { font-size: 11px; font-weight: 700; color: var(--muted); }
.card__foot .card-actions__btn.like.is-liked .like-count { color: var(--accent); }

/* detail-page Save / Like / Share buttons (labeled) */
.detail__social { display: flex; gap: 10px; }
.btn--save svg, .btn--like svg, .btn--share svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--share svg circle { fill: currentColor; stroke: none; }
.btn--save.is-saved { color: var(--brand); border-color: var(--brand); }
.btn--save.is-saved svg { fill: var(--brand); stroke: var(--brand); }
.btn--like.is-liked { color: var(--accent); border-color: var(--accent); }
.btn--like.is-liked svg { fill: var(--accent); stroke: var(--accent); }
.btn--like .like-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.btn--like.is-liked .like-count { color: var(--accent); }
.btn--share:hover { color: var(--brand-2); border-color: var(--brand-2); }

/* ---------- mobile sticky action bar (listing detail) ---------- */
/* hidden on desktop: the sticky buy/seller card already keeps actions in view */
.detail-bar { display: none; }
@media (max-width: 859px) {
  /* cap the cover so title + price + CTAs climb higher into the first viewport */
  .gallery__stage { max-height: 46vh; }
  .gallery__stage img { max-height: calc(46vh - 32px); }

  /* On the listing detail the contextual buy bar owns the bottom edge — hide the
     global bottom-nav (and its raised +Sell button) so nothing overlaps or covers
     the Like / Buy controls. Only this route, only mobile. */
  body.route-listing .bottom-nav { display: none; }

  .detail-bar {
    position: fixed; left: 0; right: 0;
    /* own the bottom edge now that the global nav is hidden on this route */
    bottom: 0;
    z-index: 55;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  }
  [data-theme="light"] .detail-bar { background: rgba(252,251,254,.97); }
  .detail-bar__icon {
    flex: 0 0 auto; width: 44px; height: 44px; min-height: 44px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 11px;
    color: var(--muted);
  }
  .detail-bar__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .detail-bar__icon.btn--share svg circle { fill: currentColor; stroke: none; }
  .detail-bar__icon.btn--save.is-saved { color: var(--brand); border-color: var(--brand); }
  .detail-bar__icon.btn--save.is-saved svg { fill: var(--brand); stroke: var(--brand); }
  .detail-bar__icon.btn--like.is-liked { color: var(--accent); border-color: var(--accent); }
  .detail-bar__icon.btn--like.is-liked svg { fill: var(--accent); stroke: var(--accent); }
  .detail-bar__buy {
    flex: 1 1 auto; min-width: 0; min-height: 44px; height: 44px; padding: 0 12px;
    font-size: 15px; white-space: nowrap;
  }
  /* keep the in-page content clear of the fixed bar */
  .detail { padding-bottom: 84px; }
  /* dedupe: Save/Like/Share live in the sticky .detail-bar on mobile, so hide
     the in-content row. Make offer / Message seller stay inline (not in bar). */
  .detail__social { display: none; }
}
@media (max-width: 359px) {
  /* tightest phones: tighten gaps so the 3 icons + Buy now never crowd */
  .detail-bar { gap: 8px; padding: 10px 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .detail-bar__buy { padding: 0 10px; }
}

/* ---------- follow button ---------- */
.follow-btn {
  flex-shrink: 0; border: 1px solid var(--brand); background: var(--brand); color: #fff;
  font: inherit; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.follow-btn:hover { filter: brightness(1.08); }
.follow-btn.is-following { background: transparent; color: var(--muted); border-color: var(--line-2); }
.follow-btn.is-following:hover { color: var(--danger); border-color: var(--danger); }
.profile-action { margin-left: auto; align-self: flex-start; flex-shrink: 0; }
.profile-id { min-width: 0; flex: 1; }
.profile-id .rating-line { margin-top: 6px; }
.profile-handle { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- saved page extras ---------- */
.saved-empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 12px; padding: 18px; font-size: 14px; }
.seller-card__link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.empty__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* editable settings fields (display name / handle) */
.settings-input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0 12px; font-size: 15px; margin-top: 6px; }
.settings-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.settings-handle { position: relative; display: flex; align-items: center; }
.settings-handle__at { position: absolute; left: 12px; top: calc(50% + 3px); transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.settings-handle .settings-input { padding-left: 26px; }
.settings-msg { color: var(--danger); margin-top: 6px; font-weight: 600; }

/* ---------- auth (sign in / sign up) ---------- */
/* Two-column "trust shell": brand/reassurance aside + form card on wide
   screens; collapses to a single centered card on mobile. Theme-aware. */
.auth-wrap { padding-top: 8px; padding-bottom: 8px; }
.auth-shell { display: flex; justify-content: center; }
.auth-card {
  width: 100%; max-width: 420px; margin: 8px auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
  box-shadow: var(--shadow);
}
.auth-card .page-title { margin-bottom: 6px; }
.auth-card .page-sub { margin: 0 0 14px; }

/* trust strip under the title (shows on mobile + narrow; hidden when the
   aside is visible to avoid repeating the escrow line) */
.auth-trust {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-2) 28%, transparent);
  color: var(--brand-2); font-size: 12.5px; font-weight: 700;
}
.auth-trust svg { flex: none; }

.auth-form { display: flex; flex-direction: column; gap: 13px; margin-top: 2px; }
.auth-form .field { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.auth-form input {
  height: 48px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); padding: 0 14px; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-form input::placeholder { color: var(--muted-2); }
.auth-form input:hover { border-color: var(--line-2); background: var(--surface-2); }
.auth-form input:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.auth-form .btn { margin-top: 6px; }
.auth-error { background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); color: var(--danger); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--brand-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth-demo {
  display: flex; align-items: flex-start; justify-content: center; gap: 7px;
  text-align: center; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-2); line-height: 1.45;
}
.auth-demo svg { flex: none; margin-top: 2px; color: var(--muted); }

.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Google button: neutral, legible, follows Google's light-button convention
   (white surface, dark text) in BOTH themes for instant recognition. */
.auth-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #3c4043; border: 1px solid #dadce0; font-weight: 600;
}
.auth-google:hover { background: #f7f8f8; border-color: #d2d4d7; box-shadow: 0 1px 3px rgba(60,64,67,.12); }
.auth-google:active { background: #f1f3f4; }
.auth-google svg { flex: none; }

/* ── brand / trust aside (desktop only) ───────────────────────────────── */
.auth-aside { display: none; }
@media (min-width: 880px) {
  .auth-shell {
    display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px;
    align-items: stretch; max-width: 880px; margin: 0 auto;
  }
  .auth-card { margin: 0; }
  /* once the aside carries the escrow message, drop the in-card strip */
  .auth-trust { display: none; }
  .auth-aside {
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    border-radius: 18px; padding: 30px 28px; color: #fff;
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(0,224,198,.30), transparent 55%),
      radial-gradient(120% 120% at 0% 100%, rgba(255,93,143,.22), transparent 50%),
      linear-gradient(160deg, #2a1c66, #140f2c 70%);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
    overflow: hidden; position: relative;
  }
  /* faint CRT scanline texture — the brand signature, kept very subtle */
  .auth-aside::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px);
    opacity: .6;
  }
  .auth-aside > * { position: relative; z-index: 1; }
  .auth-aside__kicker {
    font-family: var(--pixel); font-size: 9px; letter-spacing: .14em;
    color: var(--brand-2); display: block; margin-bottom: 16px;
  }
  .auth-aside__lede { font-size: 26px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin: 0 0 22px; max-width: 18ch; }
  .auth-aside__shield {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; border-radius: 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  }
  .auth-aside__shield > svg { flex: none; color: var(--brand-2); margin-top: 1px; }
  .auth-aside__shield b { display: block; font-size: 14px; margin-bottom: 3px; }
  .auth-aside__shield span { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.74); }
  .auth-aside__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .auth-aside__list li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: rgba(255,255,255,.86); }
  .auth-aside__dot {
    flex: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand-2); position: relative;
  }
  .auth-aside__dot::after {
    content: ""; position: absolute; left: 5px; top: 5px; width: 5px; height: 8px;
    border: solid var(--brand-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
  }
}

/* ---------- home: shelves by seller ---------- */
.shelves__head { margin-top: 8px; }
.shelf { margin-top: 18px; }
.shelf__head { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 6px 4px; border-radius: 12px; overflow: hidden; }
/* faint CRT scanline behind the shelf header — signature arcade texture */
.shelf__head::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(0deg, rgba(124,92,255,.06) 0 1px, transparent 1px 4px); }
.shelf__id { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; position: relative; z-index: 1; }
.shelf__id .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.shelf__meta { display: flex; flex-direction: column; min-width: 0; }
.shelf__kicker { font-family: var(--pixel); font-size: 7px; letter-spacing: .08em; color: var(--brand-2); margin-bottom: 3px; }
.shelf__name { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf__sub { font-size: 12px; color: var(--muted); }
.shelf__sub .stars { color: var(--gold); }
.shelf__head .follow-btn { position: relative; z-index: 1; }
.shelf__seeall { text-decoration: none; }
.shelf__seeall-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 100%; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); padding: 16px; }
.shelf__seeall-inner b { color: var(--text); font-size: 15px; }
.shelf__seeall-inner span { font-size: 12px; }
.shelf__seeall-arrow { font-size: 18px; color: var(--brand-2); }
.shelf__seeall:hover .shelf__seeall-inner { border-color: var(--brand); }

/* ---------- new since last visit ---------- */
.card__new {
  position: absolute; top: 40px; left: 8px; z-index: 2;
  font-family: var(--pixel); font-size: 7px; letter-spacing: .06em; line-height: 1;
  color: var(--brand-ink); background: var(--brand-2); padding: 4px 5px; border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(0,224,198,.35), 0 0 10px rgba(0,224,198,.45);
}
/* grid: NEW rides inside the top-left badge stack, so it flows inline (not absolute) */
.card__badges .card__new { position: static; top: auto; left: auto; align-self: center; }
.newrail__kicker { display: block; font-family: var(--pixel); font-size: 8px; letter-spacing: .1em; color: var(--brand-2); margin-bottom: 6px; }
.newrail .section__head h2 { line-height: 1.2; }
.newrail__signin { margin-top: 10px; font-size: 13px; color: var(--muted); }
.newrail__signin a { color: var(--brand-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.new-suffix { color: var(--brand-2); font-size: 14px; font-weight: 700; }
/* one-shot CRT power-on flicker on NEW pips (respects reduced-motion via the global rule) */
@keyframes newpop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
.card__new { animation: newpop .4s ease-out both; }
@media (prefers-reduced-motion: reduce) { .card__new { animation: none; } }

/* ---------- external marketplace links ---------- */
.ext-glyph { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--ext, var(--surface-2)); color: #fff; font-weight: 800; font-size: 14px; text-transform: lowercase; }
/* profile panel */
.ext-panel__note { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.ext-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ext-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; }
.ext-pill:hover { border-color: var(--brand); }
.ext-pill .ext-glyph { width: 20px; height: 20px; font-size: 11px; border-radius: 5px; }
.ext-pill__out { color: var(--muted); font-weight: 700; }
.ext-panel__disclaim { margin-top: 12px; font-size: 12.5px; color: var(--muted-2); display: flex; gap: 6px; align-items: flex-start; }
/* settings management */
.settings-group__intro { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.ext-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; cursor: pointer; }
.ext-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.ext-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ext-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.ext-row__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ext-row__meta b { font-size: 13px; }
.ext-row__meta span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-row__rm { border: 0; background: none; color: var(--muted); font-size: 15px; padding: 4px 8px; border-radius: 8px; flex-shrink: 0; }
.ext-row__rm:hover { color: var(--danger); background: var(--surface-2); }
.ext-add { display: flex; gap: 8px; flex-wrap: wrap; }
.ext-add select, .ext-add input { height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0 12px; font-size: 14px; }
.ext-add select { flex: 0 0 auto; }
.ext-add input { flex: 1; min-width: 140px; }
.ext-add .btn { flex: 0 0 auto; }
.ext-nudge { margin-top: 14px; font-size: 13px; color: var(--muted); }
.ext-nudge a { color: var(--brand-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- checkout: payment method + Affirm ---------- */
.paymethods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.paymethod { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.paymethod input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.paymethod.is-on { border-color: var(--brand); background: var(--surface-2); }
.paymethod__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.paymethod__t b { font-size: 14px; }
.paymethod__t span { font-size: 12.5px; color: var(--muted); }
.paymethod__badge { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--good); border: 1px solid rgba(45,212,167,.4); background: rgba(45,212,167,.12); padding: 3px 8px; border-radius: 999px; }
.affirm-plan { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.affirm-plan__row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.affirm-plan__row.muted { color: var(--muted); }
.affirm-plan__note { font-size: 12px; color: var(--muted-2); margin: 8px 0 0; }
/* buy-time financing teaser on the listing (under Buy now) */
.affirm-teaser { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--muted); }
.affirm-teaser:hover { border-color: var(--brand); border-style: solid; }
.affirm-teaser__amt b { color: var(--text); }
.affirm-teaser__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); white-space: nowrap; }
.affirm-logo { font-weight: 800; letter-spacing: -.01em; text-transform: lowercase; color: #7d7dfb; }
[data-theme="light"] .affirm-logo { color: #4a4af0; }
.affirm-priceline { margin: 6px 0 2px; font-size: 13px; color: var(--muted); }
.affirm-priceline b { color: var(--text); }
.pickup-note { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pickup-note b { color: var(--text); }
.sell-fees { margin-top: 14px; margin-bottom: 18px; }
.sell-fees h3 { margin: 0 0 6px; }
.sell-fees .summary-row { font-size: 14px; }
.sell-fees .summary-row.total #sellPayout { color: var(--brand-2); }
.sell-fees__note { font-size: 12px; color: var(--muted-2); margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }
.sell-fees__note b { color: var(--text); }

/* ============================================================
   SELLER REPUTATION & TRUST UI
   All colors via tokens so dark/light adapt; targeted light fixes below.
   ============================================================ */

/* --- head pills (beside the seller name) --- */
.rep-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rep-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; line-height: 1.3; white-space: nowrap; }
/* flagship: gold→violet gradient, dark ink for AA */
.rep-pill--trl { background: linear-gradient(135deg, var(--gold), var(--brand)); color: #1a1208;
  box-shadow: 0 0 0 1px rgba(255,206,77,.4) inset; }
.rep-pill--new { background: rgba(0,224,198,.14); color: var(--brand-2); border: 1px solid rgba(0,224,198,.4); }
.rep-pill--xs { font-size: 10px; padding: 2px 7px; vertical-align: middle; }
[data-theme="light"] .rep-pill--new { background: rgba(10,142,128,.12); border-color: rgba(10,142,128,.4); }

/* --- reputation panel --- */
.rep-panel { display: flex; flex-direction: column; gap: 16px; }
.rep-panel__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; }
.rep-score { display: inline-flex; align-items: baseline; gap: 6px; }
.rep-score__num { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.rep-score__star { color: var(--gold); font-size: 22px; line-height: 1; }
.rep-score__count { font-size: 14px; color: var(--muted); font-weight: 600; }

/* badge row */
.rep-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.rep-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 6px 11px; border-radius: 999px; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.rep-badge__ico { font-size: 12px; line-height: 1; }
.rep-badge--sm { font-size: 11px; padding: 4px 9px; }
/* flagship Top Rated Local — premium gold/violet */
.rep-badge--trl { background: linear-gradient(135deg, rgba(255,206,77,.18), rgba(124,92,255,.18));
  color: var(--gold); border-color: rgba(255,206,77,.45); box-shadow: 0 0 0 1px rgba(124,92,255,.18) inset; }
.rep-badge--trl .rep-badge__ico { color: var(--gold); }
.rep-badge--verified { background: rgba(45,212,167,.14); color: var(--good); border-color: rgba(45,212,167,.4); }
.rep-badge--quick { background: rgba(124,92,255,.16); color: #c3b4ff; border-color: rgba(124,92,255,.4); }
.rep-badge--local { background: rgba(255,93,143,.12); color: var(--accent); border-color: rgba(255,93,143,.35); }
[data-theme="light"] .rep-badge--trl { color: #8a6a00; border-color: rgba(176,128,0,.45);
  background: linear-gradient(135deg, rgba(255,206,77,.28), rgba(124,92,255,.16)); }
[data-theme="light"] .rep-badge--trl .rep-badge__ico { color: #b07f00; }
[data-theme="light"] .rep-badge--quick { color: #5d43c6; background: rgba(124,92,255,.1); border-color: rgba(124,92,255,.3); }

/* DSR-style sub-bars */
.rep-dsr { display: flex; flex-direction: column; gap: 9px; }
.rep-dsr__row { display: grid; grid-template-columns: minmax(0,1fr) 90px auto; align-items: center; gap: 12px; }
.rep-dsr__label { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-dsr__track { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.rep-dsr__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.rep-dsr__score { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
/* lead row: Item as described — most prominent */
.rep-dsr__row--lead .rep-dsr__label { color: var(--text); font-weight: 700; font-size: 14px; }
.rep-dsr__row--lead .rep-dsr__track { height: 9px; }
.rep-dsr__row--lead .rep-dsr__fill { background: linear-gradient(90deg, var(--gold), var(--brand)); }
.rep-dsr__row--lead .rep-dsr__score { font-size: 15px; }

/* known-for chips */
.rep-known { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rep-known__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); margin-right: 2px; }
.rep-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 5px 11px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.rep-chip--tag { background: rgba(124,92,255,.12); border-color: rgba(124,92,255,.3); color: #c3b4ff; font-weight: 700; flex-shrink: 0; }
[data-theme="light"] .rep-chip--tag { color: #5d43c6; background: rgba(124,92,255,.1); border-color: rgba(124,92,255,.3); }

.rep-ships { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* --- reviews --- */
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.review__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar--sm { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; }
.review__id { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.review__author { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__stars { font-size: 12px; }
.review__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.rep-noreviews { font-size: 14px; color: var(--muted); }
.rep-sample-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2); margin: 12px 0 0; }

/* --- listing-detail trust strip --- */
.trust-strip { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; }
.trust-strip__escrow { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.trust-strip__escrow b { color: var(--text); }
.trust-strip__lock { flex-shrink: 0; }
.trust-strip__rep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.trust-strip__rating { font-size: 13px; font-weight: 700; color: var(--text); }
.trust-strip__rating .stars { font-size: 13px; }

/* mobile: keep everything within 360px */
@media (max-width: 400px) {
  .rep-score__num { font-size: 26px; }
  .rep-dsr__row { grid-template-columns: minmax(0,1fr) 64px auto; gap: 8px; }
}

/* ============================================================
   SELLER SHOP CUSTOMIZATION — banner / bio / featured + editor
   Curated, brand-safe (presets only). Works in dark + light.
   ============================================================ */

/* ---- profile cover strip (banner preset) ---- */
.shop-cover {
  height: 140px;
  margin: 6px 0 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -40px 60px -30px rgba(0,0,0,.45);
}
/* subtle scanline texture nods to CRT/arcade brand without fighting the gradient */
.shop-cover::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: soft-light; pointer-events: none;
}

/* ---- cover-as-shop-header: trust signals + tagline composed over the gradient ---- */
/* taller when it carries content so the avatar overlap + overlay both have room */
.shop-cover--header { height: 168px; }
/* bottom scrim guarantees AA contrast for white overlay text over any preset */
.shop-cover--header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,6,20,0) 30%, rgba(8,6,20,.62) 100%);
}
.cover-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  /* leave room on the left so the overlapping avatar never collides with text */
  padding: 12px 16px 12px calc(76px + 16px + 12px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.cover-badges { display: flex; flex-wrap: wrap; gap: 6px; }
/* reuse .rep-pill look; a verified variant tuned for legibility on the gradient */
.cover-overlay .rep-pill { font-size: 11px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.rep-pill--cover-verified {
  background: rgba(255,255,255,.92); color: #0c2a25; border: 1px solid rgba(255,255,255,.6);
}
/* "New" over the gradient scrim needs solid ink for AA in BOTH themes (scoped to cover) */
.cover-overlay .rep-pill--new {
  background: rgba(0,224,198,.95); color: #05201c; border-color: rgba(0,224,198,.95);
}
[data-theme="light"] .cover-overlay .rep-pill--new {
  background: rgba(0,224,198,.95); color: #05201c; border-color: rgba(0,224,198,.95);
}
.cover-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  color: #fff; font-size: 13px;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
.cover-meta b { font-weight: 800; }
.cover-meta__dot { opacity: .65; }
.cover-rating { display: inline-flex; align-items: center; gap: 4px; }
.cover-rating__star { color: var(--gold); text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.cover-rating__count { opacity: .85; }
.cover-tagline {
  margin: 0; color: rgba(255,255,255,.95); font-size: 13.5px; font-weight: 600;
  line-height: 1.35; max-width: 46ch;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
/* when a cover is present, only the avatar overlaps the strip — the name/stats
   block and the action button sit cleanly below it. The avatar is pulled up by
   half its height (consistent overlap) via a negative top margin on itself. */
.profile-head--cover {
  align-items: flex-start;
  padding-top: 14px;
  position: relative;
  z-index: 1;
}
.profile-head--cover .avatar {
  width: 76px; height: 76px;
  margin-top: -52px; /* ~half the avatar overlaps the 140px cover */
  box-shadow: 0 0 0 4px var(--bg), var(--shadow);
}

/* ---- bio under the name/badges ---- */
.shop-bio {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 60ch;
}
.shop-bio b { color: var(--text); }

/* ---- featured strip ---- */
.shop-featured .section__head h2 { display: inline-flex; align-items: center; gap: 8px; }
.shop-featured .section__head h2 span { font-size: .9em; }

/* ---- settings: "Your shop" editor ---- */
.settings-row--stack { flex-direction: column; align-items: stretch; gap: 10px; }
.settings-row--stack .settings-row__text { width: 100%; }

.shop-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
  border-radius: 12px;
}
.shop-swatch__sw {
  display: block; width: 76px; height: 44px; border-radius: 10px;
  border: 2px solid var(--line-2); transition: border-color .15s, transform .15s;
}
.shop-swatch--none .shop-swatch__sw {
  background:
    repeating-linear-gradient(45deg, var(--bg-2) 0 6px, var(--surface-2) 6px 12px);
}
.shop-swatch__lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.shop-swatch:hover .shop-swatch__sw { transform: translateY(-1px); }
.shop-swatch.is-on .shop-swatch__sw { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.shop-swatch.is-on .shop-swatch__lbl { color: var(--text); }
.shop-swatch:focus-visible { outline: none; }
.shop-swatch:focus-visible .shop-swatch__sw { outline: 2px solid var(--brand); outline-offset: 2px; }

.shop-bio-input {
  width: 100%; resize: vertical; min-height: 72px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5;
}
.shop-bio-input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.shop-bio-count { align-self: flex-end; font-size: 12px; color: var(--muted-2); }

.shop-pin-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .shop-pin-grid { grid-template-columns: 1fr 1fr; } }
.shop-pin {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; min-height: var(--tap);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.shop-pin__cb { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
.shop-pin__title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-pin__plat { flex-shrink: 0; font-size: 11px; color: var(--muted); }
.shop-pin.is-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--bg-2)); }
.shop-pin.is-disabled { opacity: .5; cursor: not-allowed; }
.shop-pin-note, .shop-pin-empty { margin-top: 2px; }

.shop-save-row { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.shop-save-row .btn { min-height: var(--tap); }

@media (max-width: 400px) {
  .shop-cover { height: 118px; }
  .shop-cover--header { height: 162px; }
  .profile-head--cover .avatar { width: 68px; height: 68px; margin-top: -44px; }
  .cover-overlay { padding: 10px 12px 11px 12px; gap: 5px; }
  .cover-meta { font-size: 12.5px; }
  .cover-tagline { font-size: 13px; -webkit-line-clamp: 2; }
  .shop-swatch__sw { width: 64px; height: 38px; }
}

/* ---------- import: mode tabs, header guide, CSV preview ---------- */
.import-modes { display: flex; gap: 8px; margin: 4px 0 16px; }
.import-mode { flex: 1; text-align: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13px; }
.import-mode.is-on { border-color: var(--brand); color: var(--text); background: var(--surface-2); }
.upload-box.is-drag { border-color: var(--brand); background: var(--surface-2); }
.import-guide { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.import-guide > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; list-style: none; }
.import-guide > summary::-webkit-details-marker { display: none; }
.import-guide > summary::before { content: '▸ '; color: var(--brand-2); }
.import-guide[open] > summary::before { content: '▾ '; }
.import-guide__body { padding: 0 14px 14px; font-size: 13px; color: var(--muted); }
.import-guide__body code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12px; color: var(--text); }
.import-guide__list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.import-guide__list b { color: var(--text); }
.import-summary { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.import-summary b { color: var(--text); }
.import-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.import-row .ir-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-row .ir-plat { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.import-row .ir-price { font-weight: 700; flex-shrink: 0; }
.ir-tag { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ir-tag--list { color: var(--brand-2); border: 1px solid var(--line-2); }
.ir-tag--coll { color: var(--muted); border: 1px solid var(--line); }
.import-row--flag .ir-miss { font-size: 12px; color: var(--warn); flex-shrink: 0; }
.import-flagged { margin-top: 12px; }
.import-flagged h4 { margin: 8px 0 0; font-size: 13px; color: var(--warn); }
.import-unmapped { font-size: 12px; color: var(--muted-2); margin: 10px 0 0; }

/* ---------- collection tracker ---------- */
/* ---------- collection: header + first-run onboarding ---------- */
.col-header { padding-top: 8px; margin-bottom: 12px; }
.col-header__kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 4px; }
.col-header__title { margin: 0; }

.col-onboard {
  position: relative; overflow: hidden; text-align: center;
  padding: 36px 22px 30px; margin: 14px 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.col-onboard__halo {
  position: absolute; top: -90px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 200px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 30%, transparent), transparent);
  filter: blur(8px); opacity: .55;
}
.col-onboard > * { position: relative; }
.col-onboard__kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); }
.col-onboard__title { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; }
.col-onboard__lede { max-width: 460px; margin: 0 auto 22px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.col-onboard__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.col-onboard__cta { min-width: 0; }
.col-onboard__cta:not(.btn--primary) { background: var(--surface); border-color: var(--line-2); }
.col-onboard__cta:not(.btn--primary):hover { border-color: var(--brand); background: var(--surface-2); }
.col-onboard__steps { display: grid; gap: 8px; max-width: 420px; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.col-onboard__steps li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.col-onboard__num { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 800; color: var(--brand-ink); background: linear-gradient(135deg, var(--brand-2), #11b9a6); }
.col-onboard__steps b { display: block; font-size: 14px; }
.col-onboard__steps div span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.col-onboard__cloud { display: inline-flex; align-items: center; gap: 7px; margin: 22px auto 0; font-size: 12.5px; color: var(--muted-2); }
.col-onboard__cloud svg { color: var(--brand-2); flex-shrink: 0; }
@media (min-width: 560px) {
  .col-onboard { padding: 48px 28px 36px; }
  .col-onboard__title { font-size: 30px; }
  .col-onboard__steps { grid-template-columns: 1fr; }
}

.col-summary { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 2px 0 10px; }
.col-summary div { font-size: 12px; color: var(--muted); }
.col-summary b { display: block; font-size: 18px; color: var(--text); }
.col-disclaim { font-size: 12px; color: var(--muted-2); line-height: 1.5; margin: 0 0 14px; }
.col-disclaim b { color: var(--muted); }
.col-add { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.col-add > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; list-style: none; }
.col-add > summary::-webkit-details-marker { display: none; }
.col-add__form { padding: 0 14px 14px; }
.col-filter { display: flex; gap: 8px; margin: 0 0 12px; }
.col-filter a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 12.5px; }
.col-filter a.is-on { border-color: var(--brand); color: var(--text); background: var(--surface-2); }
.col-list { display: grid; gap: 10px; }
.col-item { padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.col-item.is-listed { border-color: var(--brand-2); }
.col-item__top { display: flex; align-items: flex-start; gap: 10px; }
.col-item__main { flex: 1; min-width: 0; }
.col-item__title { font-weight: 700; }
.col-live { font-size: 11px; font-weight: 700; color: var(--brand-2); margin-left: 4px; }
.col-item__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.col-item__stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; }
.col-stat { color: var(--muted); }
.col-stat b { color: var(--text); font-weight: 700; }
.col-prov { color: var(--muted-2); }
.col-asof { font-size: 11px; color: var(--muted-2); }
.col-asof.is-stale { color: var(--warn); font-weight: 700; }
.col-delta { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.col-delta.up { color: var(--good); border-color: rgba(45,212,167,.4); }
.col-delta.down { color: var(--danger); border-color: rgba(255,107,107,.4); }
.col-refresh { background: none; border: 0; color: var(--brand-2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.col-item__notes { margin-top: 8px; font-size: 12.5px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 10px; }
.col-item__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.col-live-info { margin-right: auto; font-size: 13px; color: var(--muted); }
.col-live-info b { color: var(--text); }
.col-rm { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 17px; line-height: 1; }
.col-rm:hover { color: var(--danger); border-color: var(--danger); }
.col-sale-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.col-sale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.col-sale-grid label { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.col-sale-grid input, .col-sale-grid select { width: 100%; min-height: 42px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 9px 11px; font: inherit; font-size: 14px; font-weight: 400; }
.col-sale-grid select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px; }
.col-sale-grid input:focus, .col-sale-grid select:focus { border-color: var(--brand); outline: none; }
.col-sale-fulfil { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }

/* ---------- collection manager: search + filter bar + view toggle ---------- */
.col-count { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.col-controls { margin-bottom: 14px; }
.col-search { position: relative; display: flex; align-items: center; margin-bottom: 10px; }
.col-search__ico { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.col-search input { width: 100%; min-height: 44px; padding: 10px 12px 10px 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; font-size: 15px; }
.col-search input::placeholder { color: var(--muted-2); }
.col-search input:focus { border-color: var(--brand); outline: none; }
.col-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.col-controls__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.col-select { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 8px 30px 8px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 15px; cursor: pointer; }
.col-select:focus { border-color: var(--brand); outline: none; }
.col-select--sort { flex-basis: 100%; }
.col-controls__row .view-toggle { margin-left: 0; }
.col-controls__row .view-toggle__btn { width: 38px; min-height: 40px; }

/* GRID view — imageless placeholder tiles */
.col-list--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.col-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.col-tile.is-listed { border-color: var(--brand-2); }
.col-tile__cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background:
    radial-gradient(120% 120% at 30% 20%, var(--surface-2), var(--bg-2));
  border-bottom: 1px solid var(--line); }
.col-tile__glyph { font-size: 40px; font-weight: 800; color: var(--muted-2); opacity: .7; line-height: 1; }
.col-tile__plat { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 800; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-tile__sale { position: absolute; right: 8px; bottom: 8px; font-size: 10.5px; font-weight: 800; color: var(--brand-2); }
.col-tile__rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; background: var(--surface); }
.col-tile__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.col-tile__title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.col-tile__meta { font-size: 12.5px; color: var(--muted); }
.col-tile__meta b { color: var(--text); }
.col-tile__ask { color: var(--brand-2); font-weight: 700; }
.col-tile__body .btn { margin-top: auto; }

/* SKINNY view — dense one-line rows */
.col-list--skinny { gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.col-skinny { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; padding: 9px 12px; }
.col-skinny + .col-skinny { border-top: 1px solid var(--line); }
.col-skinny.is-listed { background: var(--surface-2); }
.col-skinny__main { flex: 1; min-width: 0; }
.col-skinny__title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.col-skinny__meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.col-skinny__tag { flex-shrink: 0; font-size: 10.5px; font-weight: 800; color: var(--brand-2); white-space: nowrap; }
.col-skinny__val { flex-shrink: 0; font-weight: 800; font-size: 14px; min-width: 56px; text-align: right; }
.col-skinny__btn { flex-shrink: 0; }
.col-skinny .col-sale-form { flex-basis: 100%; width: 100%; }

@media (min-width: 560px) { .col-list--grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) {
  .col-select--sort { flex-basis: auto; margin-left: auto; }
}

/* grouped (by-brand) platform filter in the Browse drawer */
/* platform list sizes naturally — the rail is the single scroll context (no inner bar) */
.f-platgroups { display: grid; gap: 10px; }
.f-subhead { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }
.f-subgroup + .f-subgroup { border-top: 1px solid var(--line); padding-top: 9px; }

/* ---------- condition grade (listing) + description accuracy (profile) ---------- */
.grade-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 12.5px; }
.grade-row__lab { font-weight: 700; color: var(--muted); }
.grade-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-size: 12px; }
.grade-chip b { color: var(--brand-2); font-weight: 800; }
.grade-row__note { font-size: 11px; color: var(--muted-2); font-style: italic; }
.rep-accuracy { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.rep-accuracy__num { font-size: 26px; font-weight: 800; color: var(--brand-2); line-height: 1; }
.rep-accuracy__lab { font-size: 13px; font-weight: 700; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.rep-accuracy__sub { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.rep-accuracy__new { color: var(--muted); font-weight: 600; }

/* ============================================================
   VIDSMARK PRO (seller upgrade page)
   ============================================================ */
.flow--wide { max-width: 760px; }

/* account-menu Pro item */
.usermenu__item--pro { font-weight: 700; }
.usermenu__item--pro svg { color: var(--gold); }
.usermenu__pro-tag, .usermenu__pro-on { margin-left: auto; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.usermenu__pro-tag { color: var(--gold); background: rgba(255,206,77,.14); border: 1px solid rgba(255,206,77,.34); }
.usermenu__pro-on { color: var(--brand-ink); background: var(--gold); }

/* sell-page Go Pro teaser */
.sell-pro-cta { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(124,92,255,.14), rgba(255,93,143,.10)); border: 1px solid rgba(124,92,255,.32); color: var(--text); }
.sell-pro-cta:hover { border-color: var(--brand); }
.sell-pro-cta__star { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--gold); color: var(--brand-ink); font-size: 16px; font-weight: 800; }
.sell-pro-cta__txt { font-size: 13.5px; line-height: 1.45; }
.sell-pro-cta__txt span { color: var(--muted); }
.sell-pro-cta__arrow { margin-left: auto; font-size: 22px; color: var(--brand); font-weight: 800; }

/* ── Copy callouts: free-to-use context banner + reassurance + how-it-works ─ */
/* Soft info card: a gentle teal-tinted callout that reads as "good news",
   not a warning. Tints sit over --surface so both themes stay legible. */
.pro-context,
.sell-reassure {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background:
    linear-gradient(120deg, rgba(45,212,167,.10), rgba(0,224,198,.05)),
    var(--surface);
  border: 1px solid rgba(45,212,167,.30);
  line-height: 1.45;
}
.pro-context { margin: 6px 0 4px; font-size: 13.5px; color: var(--muted); }
.sell-reassure { margin: 0 0 14px; font-size: 14px; color: var(--text); }
/* the leading check, in a soft circular chip */
.pro-context > span[aria-hidden],
.sell-reassure > span[aria-hidden] {
  flex-shrink: 0; display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: 1px; border-radius: 999px;
  background: rgba(45,212,167,.16); color: var(--good);
  font-size: 12px; font-weight: 800; line-height: 1;
}
.pro-context b, .sell-reassure b { color: var(--text); }
.pro-context a, .sell-reassure a { color: var(--brand-2); font-weight: 700; }
.pro-context a:hover, .sell-reassure a:hover { text-decoration: underline; }

/* Two-card comparison: Free local vs Protected. Clean, scannable, accent
   per card (teal = free, violet = protected) via a left edge marker. */
.sell-how {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px;
}
.sell-how__card {
  padding: 13px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--line-2);
}
.sell-how__card--free { border-top-color: var(--brand-2); }
.sell-how__card--protected { border-top-color: var(--brand); }
.sell-how__card h3 {
  margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--text);
}
.sell-how__card p {
  margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted);
}
@media (max-width: 460px) {
  .sell-how { grid-template-columns: 1fr; }
}

/* hero */
.pro-hero { text-align: center; padding: 14px 0 8px; }
.pro-hero__badge { display: inline-block; font-family: var(--pixel); font-size: 9px; letter-spacing: .06em; color: var(--gold);
  background: rgba(255,206,77,.12); border: 1px solid rgba(255,206,77,.36); border-radius: 999px; padding: 7px 12px; margin-bottom: 16px; }
.pro-hero h1 { font-size: 32px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 12px; }
.pro-hero__grad { background: linear-gradient(100deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pro-hero .lead { max-width: 52ch; margin: 0 auto 18px; }
.pro-price { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.pro-price__amt { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.pro-price__per { font-size: 16px; color: var(--muted); font-weight: 600; }
.pro-price__free { margin-left: 8px; font-size: 12px; font-weight: 800; color: var(--brand-2); background: rgba(0,224,198,.12); border: 1px solid rgba(0,224,198,.34); border-radius: 999px; padding: 4px 10px; align-self: center; }
[data-theme="light"] .pro-price__free { background: rgba(10,142,128,.1); border-color: rgba(10,142,128,.34); }

.pro-cta { max-width: 420px; margin: 0 auto; }
.pro-cta.is-active { background: var(--surface-2); border: 1px solid var(--brand); color: var(--text); }
.pro-hero__fine { font-size: 12px; color: var(--muted-2); margin: 10px 0 0; }

/* cashback explainer */
.pro-cashback { background: linear-gradient(150deg, rgba(124,92,255,.10), transparent 70%); }
.pro-cashback p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; }
.pro-cashback p b { color: var(--text); }
.pro-cashback__math { font-size: 16px !important; color: var(--text) !important; font-weight: 600; }
.pro-cashback__fine { font-size: 12.5px !important; color: var(--muted-2) !important; border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 0 !important; }
.pro-cashback__fine b { color: var(--muted) !important; }

/* comparison table */
.pro-h2 { font-size: 22px; letter-spacing: -.01em; margin: 28px 0 14px; text-align: center; }
.pro-compare { margin: 8px 0; }
.pro-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.pro-table th[scope="col"] { padding: 0 8px 12px; text-align: center; vertical-align: bottom; }
.pro-th { display: inline-block; font-size: 13px; font-weight: 800; color: var(--muted); }
.pro-th--pro { color: var(--brand); }
.pro-th__price { display: block; font-size: 11px; font-weight: 700; color: var(--muted-2); margin-top: 2px; }
.pro-table tbody th { text-align: left; font-weight: 600; color: var(--text); padding: 13px 10px 13px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pro-table tbody td { text-align: center; padding: 13px 8px; border-top: 1px solid var(--line); width: 26%; }
.pro-col-hot { background: linear-gradient(180deg, rgba(124,92,255,.07), rgba(124,92,255,.03)); }
.pro-table thead .pro-col-hot { border-radius: 12px 12px 0 0; }
.pro-table tbody tr:last-child .pro-col-hot { border-radius: 0 0 12px 12px; }
.pro-table thead .pro-col-hot, .pro-table tbody td.pro-col-hot { box-shadow: inset 1px 0 0 rgba(124,92,255,.18), inset -1px 0 0 rgba(124,92,255,.18); }
.pro-yes { color: var(--brand-2); display: inline-flex; }
.pro-check { width: 20px; height: 20px; }
.pro-no { color: var(--muted-2); }
.pro-dash { font-size: 16px; }
.pro-val { font-weight: 700; font-size: 13px; color: var(--text); }
.pro-note { font-weight: 500; font-size: 11px; color: var(--muted); }
.pro-compare__note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* what you'd earn */
.pro-earn__list { display: grid; gap: 10px; }
.pro-earn__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.pro-earn__sales, .pro-earn__back { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pro-earn__back { color: var(--brand-2); text-align: right; }
.pro-earn__sales span, .pro-earn__back span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pro-earn__back span { color: var(--muted); }
.pro-earn__arrow { color: var(--muted-2); font-size: 18px; font-weight: 800; }
.pro-earn__net { grid-column: 1 / -1; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 6px; border-top: 1px dashed var(--line); }
.pro-earn__net.is-up { color: var(--brand-2); }
.pro-earn__fine { font-size: 12px; color: var(--muted-2); margin: 12px 0 0; font-style: italic; }

/* final */
.pro-final { text-align: center; margin: 22px 0 8px; }
.pro-reassure { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }

@media (min-width: 560px) {
  .pro-hero h1 { font-size: 40px; }
  .pro-table { font-size: 15px; }
}
@media (max-width: 400px) {
  .pro-hero h1 { font-size: 27px; }
  .pro-table tbody th { font-size: 12.5px; padding-right: 4px; }
  .pro-table tbody td { padding: 12px 4px; }
  .pro-val { font-size: 11.5px; }
  .pro-earn__sales, .pro-earn__back { font-size: 15px; }
}

/* ---------- Vidsmark Credit (menu balance + checkout redeem) ---------- */
.usermenu__credit {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; margin: 0 2px; border-radius: 12px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 16%, var(--surface-2)), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  font-size: 13px; font-weight: 700; color: var(--text);
}
.usermenu__credit:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.usermenu__credit-lab { display: inline-flex; align-items: center; gap: 8px; }
.usermenu__credit-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: color-mix(in srgb, var(--gold) 22%, transparent); font-size: 13px; }
.usermenu__credit b { color: var(--gold); font-size: 14px; letter-spacing: -.01em; }
.usermenu__item--out { color: var(--muted); }
.usermenu__item--out:hover { color: var(--danger); }
.usermenu__item--out:hover > svg { color: var(--danger); }
.credit-row { cursor: pointer; }
.credit-row input { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: -2px; margin-right: 4px; }
.credit-row #creditLine, .credit-row .like-count { color: var(--good); }

/* collection grid tile: real cover art when matched to a catalog listing */
.col-tile__cover { position: relative; overflow: hidden; }
.col-tile__cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col-tile__cover.has-img .col-tile__glyph { display: none; }
