/* ============================================================================
   CardResell — DESIGN SYSTEM
   Premium, data-forward, dark. Generous whitespace, gold accent, glass cards.
============================================================================ */

:root {
  /* Palette — refined, restrained gold on warm near-black */
  --bg:            #0C0E13;
  --bg-2:          #15181F;
  --surface:       #15181F;          /* card / panel / input surfaces */
  --surface-2:     #1C2029;          /* hover / nested */
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);

  --text:      #F4F1E8;              /* warm off-white, not pure white */
  --text-dim:  #9AA0AB;
  --text-faint:#6B7280;

  /* Gold is punctuation only. */
  --gold:       #C9A45C;             /* primary accent */
  --gold-bright:#E3C682;             /* hover / highlight */
  --gold-deep:  #9C7B33;             /* pressed / strong border */
  --gold-soft:  rgba(201,164,92,0.12);
  --gold-line:  rgba(201,164,92,0.32);
  --gold-faint: rgba(201,164,92,0.12); /* 1px featured-card border */
  --gold-grad:  linear-gradient(135deg, #E8CE8E, #C9A45C 55%, #A77E33);
  --on-gold:    #1E1708;             /* text on gold buttons */

  --green: #2BD17E;
  --red:   #FF5C73;
  --blue:  #5B8DEF;

  /* Category accents */
  --c-sports:      #5B8DEF;
  --c-tcg:         #9B51E0;
  --c-memorabilia: #2BD17E;

  /* Geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --maxw: 1240px;

  --shadow:    0 10px 30px -12px rgba(0,0,0,0.55);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 700px at 80% -12%, rgba(201,164,92,0.045), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(255,255,255,0.018), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  min-height: 100vh;
}

::selection { background: var(--gold-soft); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
/* Visible keyboard focus for accessibility (does not show on mouse click). */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px;
}

/* ----------------------------------------------------------------- Ticker */
.ticker {
  border-bottom: 1px solid var(--border);
  background: rgba(8,11,20,0.6);
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 12vw, 80px); z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker__track {
  display: inline-flex; gap: 36px; padding: 9px 0;
  white-space: nowrap;
  animation: ticker 46s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-dim); }
.tick b { color: var(--text); font-weight: 600; }
.tick .g { font-size: 11px; color: var(--text-faint); }
.tick .px { font-variant-numeric: tabular-nums; font-weight: 600; }
.tick .px.up   { color: var(--green); }
.tick .px.down { color: var(--red); }

/* ----------------------------------------------------------------- Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8,11,20,0.72);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 18px; font-weight: 800;
  background: var(--gold-grad);
  color: var(--on-gold); box-shadow: 0 6px 18px -6px rgba(201,164,92,0.6);
}
.brand__name { font-weight: 750; font-size: 18px; letter-spacing: -0.02em; }
.brand__name b { color: var(--gold); }
.brand__tag {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); border: 1px solid var(--border); padding: 2px 7px;
  border-radius: 6px; margin-left: 2px;
}
.topbar__spacer { flex: 1; }
.btn-sell {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-grad);
  color: var(--on-gold); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 11px;
  box-shadow: 0 8px 22px -8px rgba(201,164,92,0.55);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-sell:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(201,164,92,0.7); }
.btn-sell:active { transform: translateY(0); }

/* ----------------------------------------------------------------- Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main { padding-bottom: 90px; }

.view { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------- Hero */
.hero { padding: 54px 0 26px; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.04; max-width: 660px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--gold), #ffe39a 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-dim); font-size: 16.5px; margin-top: 14px; max-width: 560px; }
.hero__stats { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat b { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hstat span { font-size: 12px; color: var(--text-faint); letter-spacing: .04em; text-transform: uppercase; }

/* ----------------------------------------------------------------- Search */
.search { position: relative; margin: 8px 0 6px; max-width: 620px; }
.search__field {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search__field:focus-within {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.search__field svg { flex: none; opacity: .7; }
.search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15.5px;
}
.search input::placeholder { color: var(--text-faint); }
.search__hint { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
.search__clear {
  font-size: 12px; color: var(--text-dim); padding: 4px 8px; border-radius: 7px;
  border: 1px solid var(--border);
}
.search__clear:hover { color: var(--text); border-color: var(--border-strong); }

/* Suggestion dropdown */
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: #191D26; border: 1px solid var(--border-strong);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pop .18s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.suggest__sec {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); padding: 11px 16px 6px;
}
.suggest__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer;
  transition: background .14s;
}
.suggest__item:hover, .suggest__item.is-active { background: var(--surface-2); }
.suggest__alias {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.suggest__alias .q { color: var(--gold); font-weight: 650; }
.suggest__alias .arrow { color: var(--text-faint); }
.suggest__alias .name { color: var(--text); }
.suggest__mini {
  width: 30px; height: 40px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
}
.suggest__meta { display: flex; flex-direction: column; }
.suggest__meta b { font-size: 13.5px; font-weight: 600; }
.suggest__meta span { font-size: 11.5px; color: var(--text-faint); }
.suggest__px { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.suggest__empty { padding: 16px; color: var(--text-faint); font-size: 13.5px; }

/* --------------------------------------------------------------- Controls */
.controls {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 22px 0 26px;
}
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  font-size: 13.5px; font-weight: 550; color: var(--text-dim);
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all .18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active {
  color: var(--on-gold); background: var(--gold-grad);
  border-color: transparent; font-weight: 700;
}
.controls__spacer { flex: 1; }
.sortwrap { display: flex; align-items: center; gap: 9px; }
.sortwrap label { font-size: 12.5px; color: var(--text-faint); }
.select {
  position: relative; display: inline-flex; align-items: center;
}
.select select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 13.5px; font-weight: 550;
  padding: 9px 34px 9px 14px; border-radius: 10px; cursor: pointer;
  transition: border-color .18s;
}
.select select:hover { border-color: var(--gold-line); }
.select::after {
  content: "▾"; position: absolute; right: 13px; color: var(--text-faint);
  pointer-events: none; font-size: 11px;
}
.result-count { font-size: 13px; color: var(--text-faint); margin-bottom: 16px; }

/* ------------------------------------------------------------------- Grid */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.card {
  position: relative; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
  animation: cardIn .5s var(--ease) both;
}
/* Featured (hot) listings get a restrained 1px gold border. */
.card--featured { border-color: var(--gold-faint); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.card__body { padding: 14px 15px 16px; }
.card__cat {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 10.5px; font-weight: 650; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 7px;
  background: rgba(8,11,20,0.66); backdrop-filter: blur(6px);
  border: 1px solid var(--border);
}
.card__hot {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 7px;
  background: rgba(255,92,115,0.16); color: #ff8a9b; border: 1px solid rgba(255,92,115,0.3);
}
.card__title { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.card__sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card__price { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.card__spark { margin-top: 12px; height: 34px; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--border);
}
.card__watch { font-size: 11.5px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 5px; }

/* --------------------------------------------------------- Card artwork */
.art {
  position: relative; aspect-ratio: 5 / 7; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.08), transparent 60%);
}
.art__bg { position: absolute; inset: 0; }
.art__holo {
  position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .75;
  background: linear-gradient(115deg,
    transparent 18%, rgba(255,255,255,0.55) 32%, transparent 42%,
    transparent 58%, rgba(255,255,255,0.4) 70%, transparent 82%);
  background-size: 280% 280%;
  animation: holo 6s linear infinite;
}
@keyframes holo { 0% { background-position: 0% 0%; } 100% { background-position: 280% 280%; } }
.art__mono {
  position: relative; z-index: 2; font-size: 54px; font-weight: 850;
  color: rgba(255,255,255,0.95); text-shadow: 0 4px 18px rgba(0,0,0,0.4);
  letter-spacing: -0.04em;
}
.art__emoji { position: absolute; bottom: 12px; right: 12px; z-index: 2; font-size: 24px; opacity: .9; }
.art__year {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 650; color: rgba(255,255,255,0.85);
  letter-spacing: .05em;
}
.art--lg .art__mono { font-size: 120px; }
.art--lg .art__emoji { font-size: 44px; bottom: 22px; right: 22px; }
.art--lg .art__year { font-size: 14px; bottom: 22px; left: 22px; }

/* -------------------------------------------------------------- Grade badge */
.grade {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px;
  border: 1px solid transparent; font-variant-numeric: tabular-nums;
}
.grade .lab { font-size: 9.5px; font-weight: 650; letter-spacing: .06em; opacity: .8; }
/* Top grade is gold (the only gold badge); the rest stay neutral. */
.grade--gem { background: var(--gold-soft); color: var(--gold-bright); border-color: var(--gold-line); }
.grade--mint{ background: rgba(255,255,255,0.05); color: #cfd4dd; border-color: rgba(255,255,255,0.12); }
.grade--good{ background: rgba(255,255,255,0.04); color: #aeb4bf; border-color: rgba(255,255,255,0.10); }
.grade--low { background: rgba(255,92,115,0.12); color: #ff95a5; border-color: rgba(255,92,115,0.28); }

/* =====================================================  DETAIL PAGE  ===== */
.back {
  display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 18px;
  font-size: 13.5px; color: var(--text-dim);
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  transition: all .16s;
}
.back:hover { color: var(--text); border-color: var(--border-strong); transform: translateX(-2px); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
@media (max-width: 880px) { .detail { grid-template-columns: 1fr; } }

.detail__art {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); position: sticky; top: 92px;
}
@media (max-width: 880px) { .detail__art { position: static; } }

.detail__head { margin-bottom: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detail h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 6px 0; }
.detail__sub { color: var(--text-dim); font-size: 15px; }

.tagrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 4px; }
.tag {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; margin-top: 18px;
}
.panel__title {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.panel__title .ai {
  font-size: 9.5px; font-weight: 750; letter-spacing: .08em;
  color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line);
  padding: 2px 7px; border-radius: 6px;
}

/* Specs */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.spec b { display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; }
.spec span { font-size: 14.5px; font-weight: 550; }

/* Price breakdown */
.pricebox__top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pricebox__price { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--gold); }
.pricebox__est { font-size: 12.5px; color: var(--text-faint); }
.breakdown { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.brk { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; }
.brk .l { color: var(--text-dim); display: inline-flex; align-items: center; gap: 7px; }
.brk .v { font-variant-numeric: tabular-nums; font-weight: 550; }
.brk .fee { color: var(--gold); }
.brk--total { border-top: 1px dashed var(--border-strong); margin-top: 6px; padding-top: 13px; }
.brk--total .l { color: var(--text); font-weight: 650; }
.brk--total .v { font-size: 20px; font-weight: 750; }
.feenote { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; }
.who {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650;
  padding: 2px 8px; border-radius: 6px; margin-left: 8px;
}
.who--buyer  { background: rgba(91,141,239,0.16); color: #8fb4ff; }
.who--seller { background: rgba(43,209,126,0.14); color: #5fe6a4; }
.who--pending{ background: var(--surface-2); color: var(--text-faint); }

.buybtn {
  width: 100%; margin-top: 18px;
  background: var(--gold-grad); color: var(--on-gold);
  font-weight: 750; font-size: 15.5px; padding: 15px; border-radius: 13px;
  box-shadow: 0 12px 30px -10px rgba(201,164,92,0.55);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.buybtn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(201,164,92,0.7); }

/* Stage 1 — real grade/condition UI (replaces the simulated AI grade) */
.grade--raw { background: rgba(255,255,255,0.05); color: #aeb4bf; border-color: rgba(255,255,255,0.12); }
.cond-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cond-pick button { padding: 11px 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--text-dim); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; }
.cond-pick button.is-active { border-color: var(--gold-line); background: var(--gold-soft); color: var(--text); }
.gradeslab { display: flex; align-items: center; gap: 16px; }
.gradeslab__co { font-family: Oswald, sans-serif; font-weight: 700; letter-spacing: .04em; color: var(--gold-bright); font-size: 19px; }
.gradeslab__g { font-size: 30px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.gradeslab__g small { font-size: 13px; color: var(--text-faint); font-weight: 600; }
.gradeslab__cond { font-size: 16px; color: var(--text); font-weight: 650; }
.gradeslab__cert { margin-top: 10px; font-size: 12.5px; color: var(--text-dim); }
.gradeslab__cert a { color: var(--gold); }
.disclaimer {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12px; color: var(--text-dim);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  border-radius: 10px; padding: 11px 13px; margin-top: 14px;
}
.disclaimer b { color: var(--gold); }
.infolink {
  margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
}
.infolink:hover { text-decoration: underline; }

/* Shipping selector + coin flip */
.shipopts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.shipopt {
  text-align: center; padding: 13px 8px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all .16s var(--ease);
}
.shipopt:hover { border-color: var(--border-strong); }
.shipopt.is-active { border-color: var(--gold-line); background: var(--gold-soft); }
.shipopt__ico { font-size: 20px; }
.shipopt__lab { font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.shipopt__sub { font-size: 10.5px; color: var(--text-faint); margin-top: 1px; }
.shipopt__seller {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .05em;
  color: var(--gold); margin-top: 4px;
}

.coinzone { margin-top: 16px; text-align: center; padding: 10px 0 4px; }
.scene { width: 100px; height: 100px; margin: 0 auto 12px; perspective: 700px; }
.coin {
  width: 100px; height: 100px; position: relative; transform-style: preserve-3d;
  transition: transform 2.6s cubic-bezier(0.3, 0.1, 0.2, 1);
}
.coin__face {
  position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center; backface-visibility: hidden;
  font-weight: 800; font-size: 13px; color: var(--on-gold); text-align: center; line-height: 1.1;
  box-shadow: inset 0 0 0 5px rgba(0,0,0,0.18), 0 14px 30px -10px rgba(0,0,0,0.6);
}
.coin__face .big { font-size: 24px; display: block; }
.coin__heads {
  background: radial-gradient(circle at 35% 30%, #E8CE8E, var(--gold) 55%, #9C7B33);
}
.coin__tails {
  background: radial-gradient(circle at 35% 30%, #d7e6ff, #8fb4ff 55%, #4a73c7);
  color: #0a1530; transform: rotateX(180deg);
}
.coin.spinning { transition-timing-function: cubic-bezier(0.25, 0.05, 0.2, 1); }
.flipbtn {
  font-size: 13.5px; font-weight: 650; color: var(--text);
  padding: 10px 20px; border-radius: 11px; border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  transition: all .16s;
}
.flipbtn:hover { background: var(--gold-line); }
.flipbtn:disabled { opacity: .5; cursor: default; }
.coin-result { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 20px; }
.coin-result .hl { color: var(--gold); }

/* AI analytics */
.analytics__val { display: flex; align-items: baseline; gap: 10px; }
.analytics__val b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.analytics__val span { font-size: 12.5px; color: var(--text-faint); }
.analytics__event {
  font-size: 13px; color: var(--text-dim); margin-top: 4px;
  display: inline-flex; align-items: center; gap: 7px;
}
.scn-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 5px;
}
.scn-toggle button {
  padding: 9px; border-radius: 9px; font-size: 13px; font-weight: 650; color: var(--text-dim);
  transition: all .18s var(--ease);
}
.scn-toggle button .d { font-size: 11px; font-weight: 600; display: block; margin-top: 2px; }
.scn-toggle button.up.is-active   { background: rgba(43,209,126,0.16); color: #5fe6a4; }
.scn-toggle button.down.is-active { background: rgba(255,92,115,0.16); color: #ff95a5; }

.proj {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  background: linear-gradient(180deg, var(--surface), transparent);
}
.proj__label { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.proj__row { display: flex; align-items: baseline; gap: 12px; }
.proj__to { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; transition: color .3s; }
.proj__delta { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.proj__delta.up   { color: var(--green); }
.proj__delta.down { color: var(--red); }
.proj__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.07); margin-top: 14px; overflow: hidden; }
.proj__fill { height: 100%; border-radius: 999px; transition: width .6s var(--ease), background .3s; }
.proj__conf { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; }
.drivers { margin-top: 16px; }
.drivers__t { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.driver { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 4px 0; color: var(--text-dim); }
.driver .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* Big price chart */
.chartwrap { margin-top: 4px; }
.chart-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chart-meta .lo { font-size: 12px; color: var(--text-faint); }
.chart-meta .ch { font-size: 13px; font-weight: 650; }
.chart-meta .ch.up { color: var(--green); }
.chart-meta .ch.down { color: var(--red); }

/* =====================================================  SELL FLOW  ====== */
.sell { max-width: 760px; margin: 0 auto; }
.sell__head { text-align: center; margin: 30px 0 26px; }
.sell__head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.sell__head p { color: var(--text-dim); margin-top: 8px; }
.step { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 650; }

.scanbox {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: 34px; text-align: center; background: var(--surface);
  transition: border-color .2s;
}
.scanbox:hover { border-color: var(--gold-line); }
.scanbox__ico { font-size: 40px; }
.scanbox h3 { font-size: 19px; font-weight: 700; margin: 12px 0 6px; }
.scanbox p { color: var(--text-dim); font-size: 14px; max-width: 420px; margin: 0 auto; }
.scan-cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  background: var(--gold-grad); color: var(--on-gold);
  font-weight: 700; padding: 12px 22px; border-radius: 12px;
  box-shadow: 0 10px 26px -10px rgba(201,164,92,0.55);
  transition: transform .16s var(--ease);
}
.scan-cta:hover { transform: translateY(-2px); }
.upload-link { display: block; margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.upload-link span { color: var(--gold); font-weight: 600; cursor: pointer; }
.upload-link span:hover { text-decoration: underline; }

.samples { margin-top: 26px; }
.samples__t { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; text-align: center; }
.samples__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 620px) { .samples__grid { grid-template-columns: repeat(2, 1fr); } }
.sample {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--surface); transition: all .18s var(--ease);
}
.sample:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: var(--shadow); }
.sample__art { aspect-ratio: 5/6; position: relative; }
.sample__lab { padding: 9px 10px; font-size: 12.5px; font-weight: 600; text-align: center; }

/* Scanning state */
.scanning { text-align: center; padding: 10px 0; }
.scan-preview {
  width: 200px; aspect-ratio: 5/7; margin: 0 auto 22px; border-radius: 16px;
  overflow: hidden; position: relative; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 3px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px 4px rgba(201,164,92,0.6);
  animation: scanmove 1.6s ease-in-out infinite;
}
@keyframes scanmove { 0%,100% { top: 4%; } 50% { top: 94%; } }
.scan-grid-overlay {
  position: absolute; inset: 0; z-index: 3; opacity: .25;
  background-image: linear-gradient(rgba(201,164,92,0.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,164,92,0.5) 1px, transparent 1px);
  background-size: 22px 22px;
}
.scan-steps { max-width: 380px; margin: 0 auto; text-align: left; }
.scan-step {
  display: flex; align-items: center; gap: 11px; padding: 8px 0; font-size: 13.5px;
  color: var(--text-faint); opacity: 0; transform: translateX(-6px);
  transition: opacity .35s, transform .35s, color .35s;
}
.scan-step.show { opacity: 1; transform: none; color: var(--text-dim); }
.scan-step.done { color: var(--text); }
.scan-step__tick {
  width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); font-size: 11px;
}
.scan-step.done .scan-step__tick { background: var(--green); border-color: var(--green); color: #042a16; }
.scan-step .spinner {
  width: 14px; height: 14px; border: 2px solid var(--border-strong);
  border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Listing form */
.form { margin-top: 6px; }
.form__detected {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 20px;
  background: rgba(43,209,126,0.08); border: 1px solid rgba(43,209,126,0.28); border-radius: 12px;
}
.form__detected .ic { font-size: 22px; }
.form__detected b { color: #5fe6a4; }
.form__detected span { font-size: 13px; color: var(--text-dim); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.field label .auto { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--gold); margin-left: 7px; }
.field input, .field select {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 15px; padding: 12px 14px; border-radius: 11px; outline: none; width: 100%;
  transition: border-color .16s, box-shadow .16s;
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--gold-line); box-shadow: 0 0 0 4px var(--gold-soft); }
.field--ship { grid-column: 1 / -1; }
.ship-pick { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.ship-pick button {
  padding: 12px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-dim); font-size: 13px; font-weight: 600;
  transition: all .16s;
}
.ship-pick button .ic { font-size: 18px; display: block; margin-bottom: 4px; }
.ship-pick button.is-active { border-color: var(--gold-line); background: var(--gold-soft); color: var(--text); }
.form__actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-ghost {
  flex: none; padding: 14px 20px; border-radius: 12px; border: 1px solid var(--border-strong);
  font-weight: 600; font-size: 14.5px; color: var(--text-dim);
}
.btn-ghost:hover { color: var(--text); border-color: var(--gold-line); }
.btn-primary {
  flex: 1; background: var(--gold-grad); color: var(--on-gold);
  font-weight: 750; font-size: 15px; padding: 14px; border-radius: 12px;
  box-shadow: 0 12px 28px -10px rgba(201,164,92,0.55);
  transition: transform .16s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); }

/* ----------------------------------------------------------------- Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(4,6,12,0.7); backdrop-filter: blur(6px);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(560px, 100%); background: #191D26; border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: modalIn .28s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal__head h3 { font-size: 19px; font-weight: 750; }
.modal__x { font-size: 20px; color: var(--text-faint); width: 32px; height: 32px; border-radius: 8px; }
.modal__x:hover { background: var(--surface-2); color: var(--text); }
.modal__body { padding: 16px 24px 24px; color: var(--text-dim); font-size: 14px; }
.modal__body p { margin-bottom: 12px; }
.modal__body h4 { color: var(--text); font-size: 13px; margin: 16px 0 7px; }
.modal__body ul { list-style: none; }
.modal__body li { display: flex; gap: 9px; padding: 5px 0; }
.modal__body li::before { content: "→"; color: var(--gold); flex: none; }
.modal__scale { display: flex; gap: 4px; margin: 14px 0; }
.modal__scale span {
  flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 8px 0; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- Toast */
.toast-root { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: #191D26; border: 1px solid var(--gold-line); border-radius: 13px;
  padding: 13px 18px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 550;
  animation: toastIn .3s var(--ease) both;
}
.toast .ic { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-weight: 800; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .3s var(--ease) both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

/* ------------------------------------------------------------- Empty state */
.empty { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.empty__ic { font-size: 40px; opacity: .6; }
.empty h3 { color: var(--text-dim); font-weight: 600; margin: 12px 0 6px; font-size: 17px; }

/* ----------------------------------------------------------------- Footer */
.foot { border-top: 1px solid var(--border); margin-top: 40px; }
.foot__inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: 12.5px; }
.foot__inner b { color: var(--text-dim); }

@media (max-width: 560px) {
  .hero { padding: 36px 0 18px; }
  .specs { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   MARKETPLACE LAYER — sellers, watch, offers, checkout, portfolio
==================================================================== */

/* Top-bar nav links */
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  font-size: 14px; font-weight: 550; color: var(--text-dim);
  padding: 8px 13px; border-radius: 9px; transition: all .16s; cursor: pointer;
  position: relative;
}
.topnav a:hover { color: var(--text); background: var(--surface); }
.topnav a.is-active { color: var(--text); }
.topnav a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--gold);
}
.topnav .pill {
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--gold); color: var(--on-gold);
  display: inline-grid; place-items: center; margin-left: 5px; vertical-align: middle;
}

/* Seller chip (grid) + seller card (detail) */
.savatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
}
.seller-chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.seller-chip .nm { font-size: 11.5px; color: var(--text-dim); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller-chip .vf { color: var(--blue); font-size: 11px; flex: none; }

.seller-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px; margin-top: 16px;
}
.seller-card .savatar { width: 46px; height: 46px; font-size: 19px; }
.seller-card__body { flex: 1; min-width: 0; }
.seller-card__name { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.seller-card__meta { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.seller-card__meta b { color: var(--text); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.verified {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650;
  color: var(--blue); background: rgba(91,141,239,0.13); border: 1px solid rgba(91,141,239,0.3);
  padding: 2px 8px; border-radius: 7px;
}

/* Authentication badge */
.authbadge {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 12px; font-weight: 650; color: #5fe6a4;
  background: rgba(43,209,126,0.12); border: 1px solid rgba(43,209,126,0.32);
  padding: 5px 11px; border-radius: 8px; transition: all .16s;
}
.authbadge:hover { background: rgba(43,209,126,0.2); }

/* Certificate of authenticity (modal body) */
.coa {
  border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, rgba(43,209,126,0.06), transparent);
}
.coa__top {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-bottom: 1px solid var(--border);
}
.coa__seal {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 22px; background: rgba(43,209,126,0.16); border: 2px solid rgba(43,209,126,0.4);
}
.coa__top b { font-size: 15px; color: var(--text); }
.coa__top span { font-size: 12px; color: var(--text-dim); display: block; }
.coa__rows { padding: 8px 16px 16px; }
.coa__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.coa__row:last-child { border-bottom: none; }
.coa__row .k { color: var(--text-faint); }
.coa__row .v { color: var(--text); font-weight: 550; text-align: right; }
.coa__note { font-size: 12px; color: var(--text-dim); padding: 0 16px 16px; }

/* Watch heart */
.heart {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 15px;
  background: rgba(8,11,20,0.66); backdrop-filter: blur(6px);
  border: 1px solid var(--border); color: var(--text-dim);
  transition: transform .18s var(--ease), color .18s, border-color .18s, background .18s;
}
.heart:hover { color: #ff8a9b; border-color: rgba(255,92,115,0.4); }
.heart.is-on { color: #ff5c73; border-color: rgba(255,92,115,0.5); background: rgba(255,92,115,0.14); }
.heart.pop { animation: heartpop .42s var(--ease); }
@keyframes heartpop { 0%{transform:scale(1)} 35%{transform:scale(1.4)} 60%{transform:scale(.85)} 100%{transform:scale(1)} }
.card__tr { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; align-items: center; gap: 7px; }
.heart--sm { width: 30px; height: 30px; font-size: 13px; }

/* Price-change badge */
.chg { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 8px; }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }
.chg.flat { color: var(--text-faint); }

/* Detail action buttons (buy + offer + own) */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 18px; }
.actions .buybtn { margin-top: 0; }
.offerbtn {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-weight: 650; font-size: 14.5px; padding: 14px; border-radius: 12px; transition: all .16s var(--ease);
}
.offerbtn:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.ownbtn {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-dim);
  font-weight: 600; font-size: 13.5px; padding: 11px; border-radius: 11px; transition: all .16s; grid-column: 1 / -1;
}
.ownbtn:hover { color: var(--text); border-color: var(--border-strong); }
.ownbtn.is-owned { color: #5fe6a4; border-color: rgba(43,209,126,0.34); background: rgba(43,209,126,0.08); }

/* Grade subscores */
.subscores { margin-top: 16px; display: grid; gap: 11px; }
.subscore { display: grid; grid-template-columns: 86px 1fr 36px; align-items: center; gap: 12px; }
.subscore .lbl { font-size: 12.5px; color: var(--text-dim); }
.subscore .track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.subscore .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width .6s var(--ease); }
.subscore .num { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.subscore-avg { font-size: 11.5px; color: var(--text-faint); margin-top: 10px; }

/* Recent comps */
.comps { display: flex; flex-direction: column; }
.comp { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.comp:last-child { border-bottom: none; }
.comp__g { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px; font-variant-numeric: tabular-nums; flex: none; }
.comp__mid { flex: 1; min-width: 0; }
.comp__house { font-size: 13px; font-weight: 550; }
.comp__date { font-size: 11.5px; color: var(--text-faint); }
.comp__px { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* "More from this seller" */
.morerow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .morerow { grid-template-columns: repeat(2, 1fr); } }
.mini-card { cursor: pointer; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); transition: all .2s var(--ease); }
.mini-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.mini-card__b { padding: 9px 10px; }
.mini-card__t { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card__p { font-size: 13px; font-weight: 700; margin-top: 2px; }

/* Movers strip (home) */
.movers { margin: 6px 0 30px; }
.movers__t { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.movers__scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mover {
  flex: none; width: clamp(150px, 60vw, 190px); cursor: pointer; display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 11px 13px;
  transition: all .2s var(--ease);
}
.mover:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.mover .savatar { width: 34px; height: 34px; font-size: 14px; border-radius: 9px; }
.mover__b { min-width: 0; flex: 1; }
.mover__n { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mover__p { font-size: 12px; color: var(--text-dim); }

/* ====================================================  CHECKOUT  ===== */
.checkout { max-width: 880px; margin: 0 auto; }
.checkout__head { margin: 26px 0 8px; }
.checkout__head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.stepper { display: flex; align-items: center; gap: 10px; margin: 18px 0 26px; flex-wrap: wrap; }
.stepper__s { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-faint); }
.stepper__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--border-strong); }
.stepper__s.active { color: var(--text); }
.stepper__s.active .stepper__n { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.stepper__s.done .stepper__n { background: var(--green); border-color: var(--green); color: #042a16; }
.stepper__bar { flex: 1; min-width: 16px; height: 1.5px; background: var(--border); }

.checkout__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .checkout__grid { grid-template-columns: 1fr; } }
.co-summary { position: sticky; top: 92px; }
@media (max-width: 760px) { .co-summary { position: static; } }
.co-summary__item { display: flex; gap: 13px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.co-summary__art { width: 54px; flex: none; border-radius: 9px; overflow: hidden; }
.co-summary__art .art { aspect-ratio: 5/7; }
.co-summary__ti b { font-size: 14px; font-weight: 650; display: block; }
.co-summary__ti span { font-size: 12px; color: var(--text-dim); }

.payform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.payform .field.full { grid-column: 1/-1; }
.fakecard {
  grid-column: 1/-1; border-radius: 14px; padding: 18px; margin-bottom: 8px; color: #fff;
  background: linear-gradient(135deg, #232a40, #161b29);
  border: 1px solid var(--border-strong); position: relative; overflow: hidden;
}
.fakecard::after { content:""; position:absolute; width:120px; height:120px; border-radius:50%; background: var(--gold-soft); top:-40px; right:-30px; }
.fakecard__chip { width: 36px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #ffe39a, var(--gold)); }
.fakecard__no { font-size: 17px; letter-spacing: 2px; font-variant-numeric: tabular-nums; margin: 18px 0 10px; }
.fakecard__row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); }

.disclaimer-sim { font-size: 11.5px; color: var(--text-faint); margin-top: 12px; text-align: center; }

/* Confirmation */
.confirm { max-width: 560px; margin: 40px auto; text-align: center; }
.confirm__check {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 40px;
  background: rgba(43,209,126,0.16); border: 2px solid rgba(43,209,126,0.5); color: #5fe6a4;
  animation: checkpop .5s var(--ease) both;
}
@keyframes checkpop { 0%{transform:scale(0); opacity:0} 60%{transform:scale(1.15)} 100%{transform:scale(1); opacity:1} }
.confirm h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.confirm__order { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.confirm__order b { color: var(--gold); font-variant-numeric: tabular-nums; }
.confirm__card { text-align: left; margin: 24px 0; }
.confirm__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 130; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 9px; height: 14px; opacity: .95; will-change: transform; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }

/* ====================================================  PORTFOLIO  ===== */
.pf { max-width: var(--maxw); }
.pf__head { margin: 28px 0 18px; }
.pf__head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.pf__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-bottom: 14px; }
@media (max-width: 760px) { .pf__hero { grid-template-columns: 1fr; } }
.pf__stat-row { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 16px; }
.pf__stat b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; display: block; }
.pf__stat span { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.pf__stat .gain { color: var(--green); }
.pf__stat .loss { color: var(--red); }

.tabs { display: flex; gap: 6px; margin: 8px 0 18px; border-bottom: 1px solid var(--border); }
.tab {
  font-size: 14px; font-weight: 600; color: var(--text-dim); padding: 11px 16px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .16s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--gold); }
.tab .pill { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); margin-left: 6px; }

/* Holdings rows */
.holding { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.holding:hover { background: var(--surface); }
.holding__art { width: 48px; border-radius: 8px; overflow: hidden; }
.holding__art .art { aspect-ratio: 5/7; }
.holding__t b { font-size: 14px; font-weight: 600; display: block; }
.holding__t span { font-size: 12px; color: var(--text-faint); }
.holding__spark { width: 110px; }
.holding__val { text-align: right; }
.holding__val .cur { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.holding__val .gl { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.holding__val .gl.up { color: var(--green); }
.holding__val .gl.down { color: var(--red); }
@media (max-width: 600px) { .holding { grid-template-columns: 44px 1fr auto; } .holding__spark { display: none; } }

.mover-callout { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.mc-box { flex: 1; min-width: 160px; border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.mc-box .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.mc-box .n { font-size: 14px; font-weight: 650; margin-top: 4px; }
.mc-box .d { font-size: 13px; font-weight: 700; }

/* My offers */
.offer-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.offer-row__b { flex: 1; min-width: 0; }
.offer-row__b b { font-size: 14px; font-weight: 600; }
.offer-row__b span { font-size: 12px; color: var(--text-faint); display: block; }
.ostatus { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 7px; }
.ostatus.accepted { background: rgba(43,209,126,0.14); color: #5fe6a4; }
.ostatus.countered { background: rgba(201,164,92,0.15); color: var(--gold-bright); }
.ostatus.pending { background: rgba(91,141,239,0.14); color: #8fb4ff; }
.ostatus.declined { background: rgba(255,92,115,0.14); color: #ff95a5; }

/* Offer modal */
.offer-input { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 4px 14px; margin: 6px 0; }
.offer-input .cur { font-size: 22px; color: var(--text-faint); font-weight: 700; }
.offer-input input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; padding: 12px 0; }
.offer-quick { display: flex; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.offer-quick button { font-size: 12.5px; font-weight: 600; color: var(--text-dim); padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); transition: all .14s; }
.offer-quick button:hover { color: var(--text); border-color: var(--gold-line); }
.offer-asking { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.offer-asking b { color: var(--text); }
.offer-thinking { display: flex; align-items: center; gap: 11px; padding: 18px 0; color: var(--text-dim); font-size: 14px; }
.offer-resp { animation: pop .25s var(--ease) both; }
.offer-resp__bubble { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; border-top-left-radius: 3px; padding: 13px 15px; margin: 10px 0; }
.offer-resp__bubble .savatar { width: 34px; height: 34px; font-size: 14px; }
.offer-resp__bubble .ln { font-size: 14px; }

/* Owned-price prompt (in modal) */
.own-prompt .field { margin-top: 10px; }

@media (max-width: 720px) {
  .topbar__inner { gap: 10px; padding: 12px 16px; }
  .brand__tag { display: none; }
  .topnav a { padding: 8px 9px; font-size: 13px; }
  .btn-sell { padding: 9px 13px; font-size: 13px; }
  .wrap { padding: 0 16px; }
  .morerow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 27px; }
  .hero__stats { gap: 18px; }
  .actions { grid-template-columns: 1fr; }
  .controls { gap: 10px; }
  .shipopts { grid-template-columns: 1fr; }
  .pf__stat-row { gap: 16px; }
  .pf__stat b { font-size: 22px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .brand__name { font-size: 16px; }
}

/* ====================================================================
   CARDRESELL PROTECTION — escrow, orders, timeline, disputes
==================================================================== */

/* Escrow banner */
.escrow {
  display: flex; gap: 12px; align-items: center;
  background: rgba(43,209,126,0.08); border: 1px solid rgba(43,209,126,0.28);
  border-radius: 12px; padding: 13px 15px; margin-bottom: 18px;
}
.escrow__ic { font-size: 22px; flex: none; }
.escrow b { color: #5fe6a4; }
.escrow span { font-size: 13px; color: var(--text-dim); }
.escrow a { color: var(--gold); }

/* Status badges */
.obadge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 7px; white-space: nowrap; }
.obadge.st-held    { background: var(--gold-soft); color: var(--gold-bright); }
.obadge.st-ship    { background: rgba(91,141,239,.14); color: #8fb4ff; }
.obadge.st-deliver { background: rgba(155,81,224,.16); color: #c79bf0; }
.obadge.st-done    { background: rgba(43,209,126,.14); color: #5fe6a4; }
.obadge.st-dispute { background: rgba(255,92,115,.14); color: #ff95a5; }
.obadge.st-refund  { background: rgba(255,150,60,.16); color: #ffb27a; }

/* Orders list rows */
.order-row { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.order-row:hover { background: var(--surface); }
.order-row__art { width: 48px; border-radius: 8px; overflow: hidden; }
.order-row__art .art { aspect-ratio: 5/7; }
.order-row__t b { font-size: 14px; font-weight: 600; display: block; }
.order-row__t span { font-size: 12px; color: var(--text-faint); }
.order-row__chev { color: var(--text-faint); font-size: 18px; }

/* Status timeline */
.timeline { position: relative; }
.tl-step { display: flex; gap: 14px; }
.tl-step__rail { display: flex; flex-direction: column; align-items: center; }
.tl-step__dot {
  width: 34px; height: 34px; border-radius: 50%; flex: none; z-index: 2;
  display: grid; place-items: center; font-size: 15px;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-faint);
  transition: all .3s var(--ease);
}
.tl-step__line { flex: 1; width: 2px; background: var(--border); margin: 3px 0; min-height: 22px; transition: background .3s; }
.tl-step:last-child .tl-step__line { display: none; }
.tl-step__body { padding: 4px 0 20px; }
.tl-step:last-child .tl-step__body { padding-bottom: 0; }
.tl-step__t { font-size: 14.5px; font-weight: 600; }
.tl-step__d { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.tl-step.done .tl-step__dot { background: var(--green); border-color: var(--green); color: #042a16; }
.tl-step.done .tl-step__line { background: var(--green); }
.tl-step.current .tl-step__dot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.tl-step.upcoming .tl-step__t { color: var(--text-faint); }

/* Tracking card */
.tracking { display: flex; align-items: center; gap: 13px; }
.tracking__ic { width: 44px; height: 44px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 21px; background: var(--surface-2); }
.tracking__b b { font-size: 14px; }
.tracking__b .no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--text-dim); letter-spacing: .02em; }

/* Countdown */
.countdown {
  display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--gold); background: var(--gold-soft);
  border: 1px solid var(--gold-line); padding: 6px 12px; border-radius: 9px; font-size: 13.5px;
}

/* Order action buttons */
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.order-actions .btn-primary, .order-actions .btn-ghost { flex: 1; min-width: 150px; text-align: center; }
.act-role { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; opacity: .7; margin-bottom: 2px; }

/* Dispute form */
.field textarea {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 14px; padding: 11px 13px; border-radius: 11px; outline: none; width: 100%;
  resize: vertical; font-family: inherit; transition: border-color .16s, box-shadow .16s;
}
.field textarea:focus { border-color: var(--gold-line); box-shadow: 0 0 0 4px var(--gold-soft); }
.reason { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px; margin-bottom: 10px; cursor: pointer; transition: all .14s; }
.reason:hover { border-color: var(--gold-line); }
.reason.sel { border-color: var(--gold-line); background: var(--gold-soft); }
.reason.disabled { opacity: .55; cursor: not-allowed; }
.reason input { margin-top: 3px; flex: none; accent-color: var(--gold); }
.reason__t { font-weight: 650; font-size: 14px; }
.reason__d { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.reason__block { font-size: 11.5px; color: #ff95a5; margin-top: 5px; }
.evidence { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; margin-top: 6px; transition: border-color .16s; }
.evidence:hover { border-color: var(--gold-line); }
.evidence__thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.ethumb { width: 54px; height: 54px; border-radius: 8px; background: linear-gradient(135deg, #2a3147, #1a2030); border: 1px solid var(--border); display: grid; place-items: center; font-size: 18px; }

/* Resolution outcomes */
.outcomes { display: grid; gap: 12px; }
.outcome { border: 1px solid var(--border-strong); border-radius: 13px; padding: 16px; }
.outcome.rec { border-color: var(--gold-line); background: var(--gold-soft); }
.outcome__h { display: flex; justify-content: space-between; align-items: center; }
.outcome__t { font-weight: 700; font-size: 15px; }
.outcome__rec { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: .06em; }
.outcome__d { font-size: 13px; color: var(--text-dim); margin: 6px 0 12px; }

/* Protection explainer page */
.prot { max-width: 820px; margin: 0 auto; }
.prot__hero { text-align: center; padding: 26px 0 6px; }
.prot__shield { font-size: 46px; filter: drop-shadow(0 8px 20px rgba(201,164,92,0.35)); }
.prot__hero h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.prot__hero p { color: var(--text-dim); max-width: 560px; margin: 12px auto 0; font-size: 15.5px; }
.prot__steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 24px 0; }
.prot__step { font-size: 12.5px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; }
.prot__step b { color: var(--gold); }
.prot__sections { display: grid; gap: 14px; }
.prot__card { display: flex; gap: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; }
.prot__ic { font-size: 27px; flex: none; line-height: 1.1; }
.prot__card h3 { font-size: 16px; font-weight: 700; }
.prot__card p { font-size: 14px; color: var(--text-dim); margin-top: 5px; line-height: 1.55; }

@media (max-width: 600px) {
  .order-row { grid-template-columns: 44px 1fr auto; }
  .order-row__chev { display: none; }
}

/* ====================================================================
   ACCOUNTS — top bar, auth, profiles, settings
==================================================================== */

.topbar__right { display: flex; align-items: center; gap: 12px; }
.topnav-link { font-size: 14px; color: var(--text-dim); padding: 8px 10px; cursor: pointer; border-radius: 9px; transition: color .16s, background .16s; }
.topnav-link:hover { color: var(--text); background: var(--surface); }
.btn-signin { font-size: 14px; font-weight: 600; color: var(--text); padding: 9px 16px; border-radius: 11px; border: 1px solid var(--border-strong); transition: border-color .16s; }
.btn-signin:hover { border-color: var(--gold-line); }

/* Avatar dropdown */
.usermenu { position: relative; }
.usermenu__btn { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: border-color .16s; }
.usermenu__btn:hover { border-color: var(--border-strong); }
.usermenu__name { font-size: 13.5px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__caret { color: var(--text-faint); font-size: 11px; }
.usermenu__drop { position: absolute; right: 0; top: calc(100% + 8px); width: 236px; background: #191D26; border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; padding: 6px; animation: pop .16s var(--ease) both; }
.usermenu__head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.usermenu__head b { font-size: 14px; display: block; }
.usermenu__head span { font-size: 12px; color: var(--text-faint); word-break: break-all; }
.usermenu__drop a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.usermenu__drop a:hover { background: var(--surface-2); color: var(--text); }
.usermenu__sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menucount { color: var(--gold); font-size: 12px; font-weight: 700; }

/* Auth */
.auth { max-width: 440px; margin: 38px auto; }
.auth__brand { text-align: center; margin-bottom: 22px; display: flex; flex-direction: column; align-items: center; }
.auth__brand .brand__mark { margin-bottom: 12px; }
.auth__brand h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.auth__brand p { color: var(--text-dim); font-size: 14.5px; margin-top: 4px; }
.auth__card { padding: 22px; }
.auth-ctx { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text); margin-bottom: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 5px; margin-bottom: 16px; }
.auth-tab { padding: 9px; border-radius: 8px; font-size: 13.5px; font-weight: 650; color: var(--text-dim); transition: all .16s; }
.auth-tab.is-active { background: var(--gold-soft); color: var(--text); }
.auth-or { text-align: center; margin: 15px 0; position: relative; color: var(--text-faint); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-or::before { left: 0; } .auth-or::after { right: 0; }
.auth-note { font-size: 11.5px; color: var(--text-faint); text-align: center; margin-top: 14px; }
.auth-error { font-size: 13px; color: #ff95a5; background: rgba(255,92,115,0.12); border: 1px solid rgba(255,92,115,0.3); border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; }

/* Profile */
.profile__hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 22px 0 6px; }
.profile__av .savatar { width: 84px; height: 84px; font-size: 34px; border-radius: 22px; }
.profile__info { min-width: 0; }
.profile__info h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile__meta { color: var(--text-dim); font-size: 14px; margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.profile__meta b { color: var(--text); }
.profile__bio { color: var(--text-dim); margin-top: 12px; max-width: 620px; font-size: 14.5px; line-height: 1.55; }
.profile__actions { margin-left: auto; }
.section-title { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; margin: 28px 0 14px; }
.reviews { display: grid; gap: 12px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.review__top { display: flex; justify-content: space-between; align-items: center; }
.review__who { font-weight: 600; font-size: 14px; }
.review__date { font-size: 12px; color: var(--text-faint); }
.review__stars { color: var(--gold); font-size: 13px; margin-top: 4px; }
.review__text { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }
.reviews__summary { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.reviews__big { font-size: 36px; font-weight: 800; }

/* Settings */
.settings { max-width: 720px; margin: 0 auto; }
.set-section { margin-bottom: 16px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .lbl { font-size: 14px; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); position: relative; cursor: pointer; transition: background .18s, border-color .18s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-dim); transition: transform .18s, background .18s; }
.switch.on { background: var(--gold-soft); border-color: var(--gold-line); }
.switch.on::after { transform: translateX(18px); background: var(--gold); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 9px; cursor: pointer; border: 2px solid transparent; transition: transform .14s; }
.swatch:hover { transform: scale(1.08); }
.swatch.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px currentColor; }
.emoji-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.emoji-opt { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; font-size: 18px; cursor: pointer; color: var(--text-faint); transition: all .14s; }
.emoji-opt:hover { border-color: var(--gold-line); }
.emoji-opt.sel { border-color: var(--gold-line); background: var(--gold-soft); }
.ship-pref { margin-top: 4px; }

/* Seller payout preview (sell flow) */
.pp-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; color: var(--text-dim); }
.pp-row .v { font-variant-numeric: tabular-nums; }
.pp-row.tot { border-top: 1px dashed var(--border-strong); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--text); font-size: 15px; }
.pp-row.tot .v { color: #5fe6a4; }

@media (max-width: 600px) {
  .usermenu__name { display: none; }
  .profile__actions { margin-left: 0; width: 100%; }
  .profile__actions .btn-ghost { width: 100%; }
}

/* ====================================================================
   SOCIAL — messages, follows, following feed
==================================================================== */

/* Envelope icon + badge */
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim); font-size: 17px; display: grid; place-items: center; transition: all .16s; }
.iconbtn:hover { color: var(--text); border-color: var(--gold-line); }
.iconbtn__badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold-grad); color: var(--on-gold); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.chip-dot { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 6px; border-radius: 999px; background: var(--gold-grad); color: var(--on-gold); font-size: 10px; font-weight: 800; vertical-align: middle; }
.profile__actions { display: flex; gap: 10px; }
.followbtn { background: var(--gold-grad); color: var(--on-gold); font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 11px; transition: transform .16s var(--ease); }
.followbtn:hover { transform: translateY(-1px); }
.followbtn.is-following { background: var(--surface); color: var(--text); border: 1px solid var(--gold-line); }

/* Inbox */
.inbox { display: flex; flex-direction: column; }
.inbox-row { display: flex; gap: 13px; align-items: center; padding: 13px 8px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 10px; transition: background .14s; }
.inbox-row:hover { background: var(--surface); }
.inbox-row__b { min-width: 0; flex: 1; }
.inbox-row__top { display: flex; align-items: center; gap: 8px; }
.inbox-row__top b { font-size: 14.5px; }
.inbox-row__prev { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.inbox-row.is-unread .inbox-row__prev { color: var(--text); font-weight: 550; }
.inbox-row__ctx { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* Conversation */
.chat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 240px); min-height: 420px; max-width: 760px; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.chat__head b { font-size: 15px; }
.chat__ctx { font-size: 12.5px; color: var(--text-faint); }
.chat__ctx a { color: var(--gold); cursor: pointer; }
.chat__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 74%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: pop .18s var(--ease) both; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--gold-grad); color: var(--on-gold); font-weight: 550; border-bottom-right-radius: 5px; }
.chat__composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.chat__composer input { flex: 1; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-size: 14.5px; padding: 12px 14px; border-radius: 11px; outline: none; }
.chat__composer input:focus { border-color: var(--gold-line); box-shadow: 0 0 0 4px var(--gold-soft); }
.chat__composer .btn-primary { padding: 12px 22px; flex: none; }

/* ====================================================================
   MARKET PRICING + REAL PHOTOS
==================================================================== */

/* Real photo art */
.art--photo { background: #0b0d12; }
.art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.art__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 38%); }

/* Status pill — reused by the Stripe payout-status badge (mk-pill + mk-below/at/above) */
.mk-pill { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 8px; white-space: nowrap; }
.mk-pill.mk-below { background: rgba(43,209,126,0.14); color: #5fe6a4; }
.mk-pill.mk-at    { background: var(--gold-soft); color: var(--gold-bright); border: 1px solid var(--gold-line); }
.mk-pill.mk-above { background: rgba(255,92,115,0.14); color: #ff95a5; }

/* Photo attach (sell flow) */
.photo-attach { display: flex; gap: 14px; align-items: center; }
.photo-attach__empty { width: 100%; border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; background: var(--surface); transition: border-color .16s; }
.photo-attach__empty:hover { border-color: var(--gold-line); }
.photo-attach__empty b { color: var(--text); font-size: 14px; }
.photo-attach__empty span { font-size: 12px; color: var(--text-faint); }
.photo-attach__ic { font-size: 26px; }
.photo-attach__img { width: 90px; aspect-ratio: 5/7; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-strong); flex: none; }
.photo-attach__meta { display: flex; flex-direction: column; gap: 2px; }
.photo-attach__meta b { font-size: 14px; }
.photo-attach__meta span { font-size: 12.5px; color: var(--text-faint); }
.photo-attach__remove { align-self: flex-start; margin-top: 8px; font-size: 12.5px; color: #ff95a5; border: 1px solid var(--border-strong); padding: 6px 12px; border-radius: 8px; }
.photo-attach__remove:hover { border-color: rgba(255,92,115,0.5); }

/* Following feed banner */
.feed-banner { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 20px; }
.feed-alert { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); cursor: pointer; transition: background .14s; }
.feed-alert:hover { background: rgba(201,164,92,0.18); }
.feed-alert__ic { font-size: 18px; flex: none; }
.feed-alert > div { flex: 1; font-size: 13.5px; color: var(--text-dim); }
.feed-alert b { color: var(--text); }
.feed-alert__go { font-size: 12.5px; color: var(--gold-bright); font-weight: 650; flex: none; }

/* ====================================================================
   MOBILE PASS — phones first, then tablet refinements.
   (Placed last so it wins source-order; no feature/layout structure changes.)
==================================================================== */
@media (max-width: 640px) {
  /* Safety net against marquee/sub-pixel horizontal scroll */
  html, body { overflow-x: hidden; }
  .wrap { padding: 0 14px; }

  /* Prevent iOS Safari zoom-on-focus */
  input, select, textarea { font-size: 16px; }

  /* --- Top bar: compact cluster (avatar menu is the mobile nav) --- */
  .topbar__inner { gap: 8px; padding: 10px 14px; }
  .topbar__right { gap: 8px; }
  .btn-sell { padding: 9px 11px; }
  .btn-sell__txt { display: none; }              /* Sell collapses to ＋ */
  .topnav-link { display: none; }                /* Protection lives in the footer on mobile */
  .usermenu__name { display: none; }
  .usermenu__caret { display: none; }
  .usermenu__btn { padding: 4px; }
  .usermenu__drop { width: min(244px, calc(100vw - 20px)); }
  .iconbtn { width: 38px; height: 38px; font-size: 16px; }
  .brand__name { font-size: 16px; }

  /* --- Finger-sized tap targets --- */
  .chip { padding: 10px 15px; }
  .select select { padding-top: 11px; padding-bottom: 11px; }
  .usermenu__drop a { padding: 12px; }
  .heart { width: 38px; height: 38px; }
  .btn-ghost, .btn-primary, .offerbtn, .followbtn, .buybtn, .scan-cta { min-height: 46px; }
  .tab { padding: 12px 14px; }

  /* --- Comfortable spacing --- */
  .panel { padding: 16px; }
  .hero { padding: 28px 0 14px; }
  .section-title { margin: 22px 0 12px; }
  .detail { gap: 24px; }
  .checkout__grid { gap: 18px; }
  .pf__hero { gap: 14px; }

  /* --- Profile actions wrap instead of overflowing --- */
  .profile__actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .profile__actions > button { flex: 1 1 calc(50% - 4px); min-width: 120px; width: auto; }

  /* --- Modals / coin flip fit the screen --- */
  .modal { width: min(560px, calc(100vw - 20px)); }
  .modal-backdrop { padding: 14px; }
  .modal__body { padding: 16px 18px 20px; }
  .modal__head { padding: 18px 18px 0; }

  /* --- Audit fixes --- */
  .heart--sm { width: 38px; height: 38px; font-size: 14px; }          /* grid watch button → finger size */
  .scn-toggle { grid-template-columns: 1fr; }                          /* win/lose scenarios stack, no cramped wrap */
  .chat__head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 16px; flex-wrap: wrap; }
  .chat__ctx { width: 100%; line-height: 1.35; overflow-wrap: anywhere; }
  .bubble { overflow-wrap: anywhere; }                                 /* long tokens can't overflow */
  .ship-pick { gap: 8px; }
  .ship-pick button { padding: 11px 6px; font-size: 12.5px; }
  .offer-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .offer-quick button { min-height: 40px; padding: 9px 10px; }
}

@media (max-width: 480px) {
  /* Payment fields + order actions feel too tight side-by-side on small phones */
  .payform { grid-template-columns: 1fr; }
  .order-actions { gap: 8px; flex-direction: column; }
  .order-actions .btn-primary, .order-actions .btn-ghost { min-width: 0; flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .hero h1 { font-size: 25px; }
  .hero__stats { gap: 14px; }
  .hstat b { font-size: 19px; }
  .brand__name { font-size: 15px; }
  .pricebox__price { font-size: 30px; }
  .confirm__actions { flex-direction: column; }
  .confirm__actions button { width: 100%; }
}

/* --- Tablet: keep two-column layouts balanced, roomy grid --- */
@media (min-width: 641px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .wrap { padding: 0 22px; }
}

/* Stripe Payment Element (checkout) */
#payment-element { margin: 8px 0 14px; min-height: 44px; }

/* ============================================================
   REAL ESCROW TIMELINE (Supabase orders) — release step polish
   ============================================================ */
.track-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 3px 8px; cursor: copy; transition: border-color .2s, color .2s;
}
.track-chip:hover { border-color: var(--gold); color: var(--gold-bright); }
.tl-step.current .tl-step__dot { animation: tlPulse 2.4s ease-in-out infinite; }
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--gold-soft); }
  50%      { box-shadow: 0 0 0 10px rgba(201, 164, 92, .08); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-step.current .tl-step__dot { animation: none; }
}

/* ============================================================
   REAL OFFERS — My Offers (sent + received), Supabase-backed
   ============================================================ */
.off-grp { margin-bottom: 18px; }
.off-grp__h {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
}
.off-grp__n {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 1px 8px; font-size: 11px; color: var(--text); letter-spacing: 0;
}
.off-row {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px;
  background: rgba(255,255,255,.015);
}
.off-row__art { width: 46px; flex: 0 0 46px; }
.off-row__b { flex: 1 1 auto; min-width: 0; }
.off-row__b > b { display: block; font-size: 14px; }
.off-row__b > span { display: block; font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.off-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.off-btn {
  border: 1px solid var(--border); background: transparent; color: var(--text);
  border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.off-btn:hover { border-color: var(--gold); }
.off-btn--p { background: var(--gold-grad); border-color: transparent; color: #1E1708; }
.off-btn--p:hover { filter: brightness(1.05); }
.off-wait { font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.offer-ok {
  background: rgba(95,230,164,.08); border: 1px solid rgba(95,230,164,.25); color: #bfe9d4;
  border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-top: 10px;
}
.offer-err {
  background: rgba(255,120,120,.08); border: 1px solid rgba(255,120,120,.25); color: #f5b8b8;
  border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-top: 10px;
}

/* ============================ Auth hygiene + legal pages ================== */
/* ToS consent checkbox on signup */
.auth-tos { display: flex; align-items: flex-start; gap: 9px; margin: 4px 2px 2px;
  font-size: 13px; color: var(--text-dim); line-height: 1.45; cursor: pointer; }
.auth-tos input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--gold); flex: 0 0 auto; }
.auth-tos a { color: var(--gold); cursor: pointer; }
/* inline text-button links in the auth card (Forgot password, Back to sign in) */
.auth-link { display: inline-block; background: none; border: none; padding: 0;
  color: var(--gold); font-size: 13px; cursor: pointer; text-align: center; width: 100%; }
.auth-link:hover { color: var(--gold-bright); text-decoration: underline; }
.auth-h { margin: 0 0 12px; font-size: 17px; color: var(--text); }
/* check-your-email / reset-sent confirmation panel */
.auth-confirm { text-align: center; padding: 6px 2px; }
.auth-confirm__ic { font-size: 30px; margin-bottom: 6px; }
.auth-confirm h3 { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.auth-confirm p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

/* Legal pages (Terms / Privacy) */
.legal-banner { background: rgba(201,164,92,.12); border: 1px solid var(--gold-line, rgba(201,164,92,.4));
  color: var(--gold-bright); border-radius: 10px; padding: 11px 14px; font-size: 13.5px;
  font-weight: 600; margin: 6px 0 18px; }
.legal-xref { max-width: 760px; margin: -8px auto 16px; color: var(--text-dim); font-size: 13.5px; }
.legal-xref a { color: var(--gold); }
.legal { max-width: 760px; margin: 0 auto; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.legal h1 { font-size: 24px; color: var(--text); margin: 0 0 14px; }
.legal h2 { font-size: 18px; color: var(--text); margin: 26px 0 8px; }
.legal h3 { font-size: 15.5px; color: var(--text); margin: 18px 0 6px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--gold); }
.legal strong { color: var(--text); }
.legal blockquote { border-left: 3px solid var(--gold-line, rgba(201,164,92,.4));
  background: rgba(201,164,92,.06); margin: 0 0 14px; padding: 10px 14px; border-radius: 0 8px 8px 0;
  color: var(--text-faint); font-size: 13.5px; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* Footer legal links + short disclosures */
.foot__legal a { color: var(--gold); cursor: pointer; }
.foot__disclosures { max-width: 980px; margin: 10px auto 0; padding: 12px 16px 0;
  border-top: 1px solid var(--border); display: grid; gap: 8px; }
.foot__disclosures p { margin: 0; font-size: 11.5px; color: var(--text-faint); line-height: 1.5; }
.foot__disclosures b { color: var(--text-dim); }
.foot__disclosures a { color: var(--gold); cursor: pointer; white-space: nowrap; }

/* ============================ UFC / MMA re-theme ========================== */
/* Condensed display type for headers + fighter names (the "fight" aesthetic).
   Conservative re-skin: keeps the gold accent + data-forward layout. */
.hero h1, .fighter-name, .detail__head + h2, h2 {
  font-family: "Oswald", "Inter", system-ui, sans-serif; letter-spacing: .01em;
}
.brand__name { font-family: "Oswald", "Inter", system-ui, sans-serif; letter-spacing: .02em; }

/* Octagon/hex avatar frame — used sparingly on Fighter pages. */
.octa-avatar {
  width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 22px; color: var(--on-gold, #15181F);
  background: var(--gold-grad, linear-gradient(135deg, #E8C877, #C9A45C));
  clip-path: polygon(25% 3%, 75% 3%, 99% 50%, 75% 97%, 25% 97%, 1% 50%);
}

/* Fighter page */
.fighter-hero { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; }
.fighter-name { margin: 0; font-size: 28px; text-transform: uppercase; }
.fighter-sub { font-size: 13.5px; color: var(--text-dim); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.fighter-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .fighter-panels { grid-template-columns: 1fr; } }
.fvi__row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.fvi__val { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Tale of the tape (stat block) */
.tape { display: flex; flex-direction: column; }
.tape__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.tape__row:last-child { border-bottom: none; }
.tape__row span { color: var(--text-faint); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.tape__row b { font-weight: 650; text-align: right; }

/* Fight-outcome mini projection */
.proj-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.proj-mini span { padding: 9px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.proj-mini__up { background: rgba(43,209,126,.12); color: #5fe6a4; border: 1px solid rgba(43,209,126,.3); }
.proj-mini__down { background: rgba(255,92,115,.12); color: #ff95a5; border: 1px solid rgba(255,92,115,.3); }

/* "Fights <day>" badge */
.fightbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  color: var(--gold-bright); background: rgba(201,164,92,.13); border: 1px solid var(--gold-line, rgba(201,164,92,.4));
  padding: 3px 9px; border-radius: 999px; cursor: pointer; white-space: nowrap; }

/* Upcoming fights strip */
.upfights { margin: 4px 0 18px; }
.upfights__t { font-size: 13px; font-weight: 750; color: var(--text-dim); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.upfights__scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.upfight { flex: 0 0 auto; min-width: 210px; border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px;
  background: var(--surface); position: relative; }
.upfight::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold-grad, #C9A45C); }
.upfight__ev { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; padding-left: 6px; }
.upfight__bout { display: flex; align-items: center; gap: 8px; padding-left: 6px; font-family: "Oswald", sans-serif; }
.upfight__f { font-size: 14px; font-weight: 600; cursor: pointer; }
.upfight__f:hover { color: var(--gold-bright); }
.upfight__vs { font-size: 11px; color: var(--text-faint); }

/* small shared helpers */
.muted-note { font-size: 11.5px; color: var(--text-faint); margin: 10px 0 0; line-height: 1.45; }
/* AI "why it moved" context note (market-narrative) */
.narrative { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.narrative__ic { flex: none; }
.narrative__tag { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.link { cursor: pointer; }
.link:hover { color: var(--gold-bright); text-decoration: underline; }
