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

:root {
  --brand:       #E8281F;
  --brand-dark:  #B81E17;
  --gold:        #C47B0A;
  --gold-lt:     #FFF8E8;
  --gold-ink:    #5a4410;   /* text on gold-lt panels — overridden for dark mode */
  --dark:        #1A1A1A;
  --surface:     #FFFFFF;
  --bg:          #F5F4F0;
  --muted:       #6B6B6B;
  --border:      #E2DDD8;
  --success:     #15803D;
  --dealer:      #1D4ED8;
  --dealer-lt:   #EAF0FF;
  --text:        #1A1A1A;   /* body text (flips in dark mode) */
  --text-soft:   #444444;   /* secondary body text */
  --ph-bg:       linear-gradient(155deg,#2c2c34 0%,#17171c 100%);  /* muted listing placeholder */
  --r:           4px;
  --r-lg:        10px;
  --sh-sm:       0 1px 3px rgba(0,0,0,.08);
  --sh-md:       0 4px 14px rgba(0,0,0,.12);
  --sh-lg:       0 20px 60px rgba(0,0,0,.22);
}

/* ─── DARK THEME ─── (only neutrals flip; brand/gold accents stay) */
html[data-theme="dark"] {
  --surface:     #1B1917;
  --bg:          #0F0E0D;
  --muted:       #9C948C;
  --border:      #332E2A;
  --text:        #ECE6E0;
  --text-soft:   #C2BAB2;
  --success:     #2EA85A;
  --gold-lt:     rgba(196,123,10,.16);   /* dark-friendly gold tint for rating pills / badges */
  --gold-ink:    #F2CB8A;                /* readable warm gold text on the dark tint (was #5a4410 ≈ 1.1:1) */
  --sh-sm:       0 1px 3px rgba(0,0,0,.4);
  --sh-md:       0 4px 14px rgba(0,0,0,.5);
  --sh-lg:       0 20px 60px rgba(0,0,0,.7);
  color-scheme:  dark;
}
/* Rating stars/text get their own gold colour (never inherit body text) and
   brighten in dark mode so they stay legible on dark surfaces. */
.stars { color: var(--gold); letter-spacing:1px; }
html[data-theme="dark"] .stars,
html[data-theme="dark"] .cmt-rating { color:#F2BE55; }

html { font-family:'Inter','Segoe UI',-apple-system,BlinkMacSystemFont,sans-serif; font-size:16px; color:var(--text); background:var(--bg); }
body { min-height:100vh; }
a { text-decoration:none; }
button { font-family:inherit; cursor:pointer; }
input, select, textarea { font-family:inherit; }

/* ─── NAV ─── */
.nav { position:sticky; top:0; z-index:100; background:var(--dark); border-bottom:3px solid var(--brand); }
.nav-inner { max-width:1280px; margin:0 auto; padding:0 20px; height:60px; display:flex; align-items:center; gap:20px; }

.logo { display:flex; align-items:center; gap:9px; flex-shrink:0; }

.nav-search { flex:1; max-width:420px; }
.nav-search input {
  width:100%; padding:8px 16px; border:none; border-radius:100px;
  background:rgba(255,255,255,.1); color:#fff; font-size:14px; outline:none;
  transition:background .2s;
}
.nav-search input::placeholder { color:rgba(255,255,255,.45); }
.nav-search input:focus { background:rgba(255,255,255,.18); }

.nav-links { display:flex; align-items:center; gap:4px; margin-left:auto; }
.nav-link { color:rgba(255,255,255,.7); font-size:14px; font-weight:500; padding:6px 12px; border-radius:var(--r); transition:all .15s; cursor:pointer; }
.nav-link:hover { color:#fff; background:rgba(255,255,255,.08); }
.nav-dd { position:relative; }
.nav-dd-menu { display:none; position:absolute; top:calc(100% + 8px); left:0; z-index:101; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--sh-lg); padding:8px; min-width:230px; max-height:70vh; overflow-y:auto; }
.nav-dd.open .nav-dd-menu, .nav-dd:hover .nav-dd-menu { display:block; }
/* Transparent "bridge" over the 8px gap so moving the mouse from "Listings" into the
   menu keeps the hover — otherwise the dropdown closes before you can click a category. */
.nav-dd-menu::before { content:''; position:absolute; left:0; right:0; top:-10px; height:10px; }
.nav-dd-item, .nav-dd-sub { display:block; padding:7px 12px; border-radius:var(--r); font-size:14px; color:var(--text); cursor:pointer; }
.nav-dd-item:hover, .nav-dd-sub:hover { background:var(--bg); color:var(--brand); }
.nav-dd-item.all { font-weight:700; }
.nav-dd-head { padding:9px 12px 4px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); cursor:pointer; }
.nav-dd-head:hover { color:var(--brand); }
.nav-dd-sub { padding-left:34px; font-size:13px; color:var(--text-soft); }
/* Two-level accordion: group row (collapsed by default) → click reveals its sub-categories */
.nav-dd-group { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px; border-radius:var(--r); font-size:14px; font-weight:600; color:var(--text); cursor:pointer; user-select:none; }
.nav-dd-group:hover { background:var(--bg); color:var(--brand); }
.nav-dd-group:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.nav-dd-glabel { display:flex; align-items:center; gap:8px; }
.nav-dd-caret { flex:none; color:var(--muted); font-size:16px; line-height:1; transition:transform .18s ease; }
.nav-dd-group.open .nav-dd-caret { transform:rotate(90deg); color:var(--brand); }
.nav-dd-group.open { color:var(--brand); }
.nav-dd-subs { display:none; }
.nav-dd-subs.open { display:block; }
.nav-dd-sub-all { font-weight:600; color:var(--text); }
@media (prefers-reduced-motion: reduce) { .nav-dd-caret { transition:none; } }
.theme-toggle { background:none; border:none; font-size:17px; cursor:pointer; padding:6px 8px; border-radius:var(--r); line-height:1; }
/* Lay the right-hand cluster (bell + account, or login/signup) out in a row. */
#navAuth { display:flex; align-items:center; gap:10px; }
.theme-toggle:hover { background:rgba(255,255,255,.1); }
.nav-bell {
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; font-size:19px; line-height:1; cursor:pointer; padding:0;
  border-radius:50%; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); color:#fff;
  transition:background .15s, border-color .15s, transform .1s;
}
.nav-bell:hover { background:rgba(255,255,255,.22); border-color:var(--brand); transform:translateY(-1px); }
.bell-badge {
  position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px;
  border-radius:9px; background:var(--brand); color:#fff; font-size:11px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--dark); box-shadow:0 0 6px rgba(232,40,31,.75);
}
.notif { display:flex; align-items:flex-start; gap:11px; padding:12px 8px; border-bottom:1px solid var(--border); }
.notif:last-of-type { border-bottom:none; }
/* unread = warm tint + gold rail (inset — no layout shift), not a floating dot */
.notif.unread { background:var(--gold-lt); box-shadow:inset 3px 0 0 var(--gold); border-radius:0 8px 8px 0; }
.notif-ic { width:34px; height:34px; border-radius:50%; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
/* tinted line-icon chips (option A): red=attention · gold=auction · green=money · blue=messages */
.notif-chip { width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.nch-red   { background:rgba(232,40,31,.09);  color:#B3261E; }
.nch-gold  { background:var(--gold-lt);       color:var(--gold); }
.nch-green { background:rgba(21,128,61,.1);   color:var(--success); }
.nch-blue  { background:var(--dealer-lt);     color:var(--dealer); }
.nch-gray  { background:var(--bg);            color:var(--muted); }
html[data-theme="dark"] .nch-red   { background:rgba(232,40,31,.16);  color:#F08A85; }
html[data-theme="dark"] .nch-gold  { color:#F2BE55; }
html[data-theme="dark"] .nch-blue  { background:rgba(29,78,216,.2);   color:#8FAEF5; }
.notif-body { flex:1; min-width:0; }
.notif-hd { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.notif-title { font-size:13px; font-weight:600; line-height:1.3; overflow-wrap:anywhere; }
.notif-text { font-size:12.5px; color:var(--text-soft); line-height:1.45; margin-top:2px; }
.notif-when { font-size:11px; color:var(--muted); white-space:nowrap; flex-shrink:0; }
/* inline stroke icons for account headers/rows — gold accent, baseline-aligned */
.hd-ic { width:15px; height:15px; vertical-align:-2px; margin-right:3px; color:var(--gold); flex-shrink:0; display:inline-block; }
.dp-cam .hd-ic { width:13px; height:13px; margin:0; vertical-align:-2px; color:inherit; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:8px 18px; border-radius:var(--r); font-size:14px; font-weight:600;
  border:none; transition:all .15s; white-space:nowrap; cursor:pointer; text-decoration:none;
}
.btn:disabled, .btn[disabled] { opacity:.55; cursor:not-allowed; }
.btn-ghost  { background:transparent; color:rgba(255,255,255,.85); border:1px solid rgba(255,255,255,.22); }
.btn-ghost:hover  { background:rgba(255,255,255,.1); color:#fff; }
.btn-primary { background:var(--brand); color:#fff; }
.btn-primary:hover { background:var(--brand-dark); }
.btn-gold  { background:var(--gold); color:#fff; }
.btn-gold:hover { background:#a06208; }
.btn-dealer { background:var(--dealer); color:#fff; }
.btn-dealer:hover { background:#1740b0; }
.btn-outline { background:transparent; color:var(--brand); border:2px solid var(--brand); }
.btn-outline:hover { background:var(--brand); color:#fff; }
.btn-lg { padding:13px 28px; font-size:16px; border-radius:var(--r-lg); }
.btn-sm { padding:6px 14px; font-size:13px; }
.btn-full { width:100%; justify-content:center; }
/* Social sign-in. Deliberately NOT brand-red: Google's brand terms require their
   mark sit on a plain background and keep its own colours, so this is a neutral
   surface button with a border for definition in both themes. */
.btn-oauth { background:var(--surface); color:var(--text); border:1px solid var(--border); box-shadow:var(--sh-sm); }
.btn-oauth:hover { background:var(--bg); border-color:var(--muted); }
.btn-oauth svg { width:18px; height:18px; flex-shrink:0; }
.oauth-row { display:flex; flex-direction:column; gap:10px; }
.oauth-row:empty { display:none; }

.acct-chip { display:flex; align-items:center; gap:9px; }
.acct-avatar { width:34px; height:34px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
.acct-avatar.dealer { background:var(--dealer); }
.acct-avatar.contractor { background:var(--gold); }
.acct-avatar.has-pic, .cmt-av.has-pic { background:none; padding:0; overflow:hidden; }
.avatar-img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
/* Click-to-change avatar with a camera badge (Facebook/YouTube style). */
.dp-edit { position:relative; cursor:pointer; flex-shrink:0; line-height:0; }
.dp-cam { position:absolute; right:-3px; bottom:-3px; width:26px; height:26px; border-radius:50%; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:13px; box-shadow:var(--sh-sm); }
.dp-edit:hover .dp-cam { background:var(--bg); }
.dp-edit:hover .acct-avatar { filter:brightness(.92); }
.dp-edit.dragover .acct-avatar { outline:2px dashed var(--brand); outline-offset:3px; }
.dp-edit.dragover .dp-cam { background:var(--brand); color:#fff; border-color:var(--brand); }
/* Reposition + zoom crop modal. */
.avatar-crop { position:relative; width:260px; height:260px; max-width:100%; margin:0 auto; overflow:hidden; border-radius:var(--r-lg); background:#000; cursor:grab; touch-action:none; user-select:none; }
.avatar-crop:active { cursor:grabbing; }
.avatar-crop-img { position:absolute; top:0; left:0; transform-origin:top left; max-width:none; pointer-events:none; -webkit-user-drag:none; }
.avatar-crop-mask { position:absolute; inset:0; pointer-events:none; border-radius:50%; box-shadow:0 0 0 999px rgba(0,0,0,.55); }
.acct-name { color:#fff; font-size:14px; font-weight:600; line-height:1.1; }
.acct-role { color:rgba(255,255,255,.5); font-size:11px; text-transform:uppercase; letter-spacing:.6px; }

.hamburger { display:none; background:none; border:none; padding:8px; flex-direction:column; gap:5px; }
.hamburger span { display:block; width:22px; height:2px; background:#fff; border-radius:2px; transition:all .2s; }

/* ─── HERO ─── */
.hero { position:relative; min-height:480px; display:flex; align-items:flex-end; overflow:hidden; }
.hero-bg {
  position:absolute; inset:0;
  background:linear-gradient(160deg, #0D0D0D 0%, #1C0808 35%, #3A1010 65%, #6B1010 100%);
}
.hero-bg::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
}
.hero-content {
  position:relative; z-index:2; max-width:1280px; margin:0 auto;
  padding:0 20px 48px; width:100%;
}
.live-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--brand); color:#fff; font-size:11px; font-weight:700;
  letter-spacing:1.5px; text-transform:uppercase; padding:5px 12px;
  border-radius:100px; margin-bottom:14px;
}
.live-dot { width:7px; height:7px; background:#fff; border-radius:50%; animation:blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.75)} }

.hero h1 {
  font-family:'Barlow Condensed',sans-serif; font-weight:800;
  font-size:clamp(32px,5vw,58px); color:#fff; line-height:1.03;
  letter-spacing:-.3px; margin-bottom:10px; max-width:760px;
}
.hero-sub { color:rgba(255,255,255,.7); font-size:17px; max-width:560px; margin-bottom:22px; line-height:1.5; }
.hero-meta { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:24px; }
.hero-meta-pill {
  display:flex; align-items:center; gap:5px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.15);
  padding:4px 12px; border-radius:100px;
  color:rgba(255,255,255,.8); font-size:13px;
}
.hero-meta-pill strong { color:#fff; }

.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.hero-bid-box {
  display:flex; align-items:center; gap:0;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  border-radius:var(--r-lg); overflow:hidden; backdrop-filter:blur(10px);
}
.bid-stat { padding:12px 20px; text-align:center; }
.bid-stat + .bid-stat { border-left:1px solid rgba(255,255,255,.15); }
.bid-stat-lbl { font-size:10px; color:rgba(255,255,255,.55); text-transform:uppercase; letter-spacing:1.2px; font-weight:600; margin-bottom:2px; }
.bid-stat-val { font-family:'Barlow Condensed',sans-serif; font-size:26px; font-weight:700; color:#fff; line-height:1; }
.bid-stat-val.timer { color:#FFC947; }

/* ─── LOCATION BAR ─── */
.loc-bar { background:var(--surface); border-bottom:1px solid var(--border); position:sticky; top:var(--nav-h,63px); z-index:95; }
.loc-bar-inner { max-width:1280px; margin:0 auto; padding:12px 20px; display:flex; align-items:flex-end; gap:18px; flex-wrap:wrap; }
.loc-bar-title { font-weight:700; font-size:15px; display:flex; align-items:center; gap:6px; padding-bottom:6px; }
.loc-fields { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.loc-field { display:flex; flex-direction:column; gap:4px; }
.loc-field-lbl { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); font-weight:700; }
.loc-field select {
  padding:8px 12px; border:1px solid var(--border); border-radius:var(--r);
  font-size:14px; color:var(--text); background:var(--bg); outline:none; cursor:pointer; min-width:160px;
}
.loc-field select:focus { border-color:var(--brand); }
@media(max-width:640px){
  .loc-bar-inner { gap:12px; }
  .loc-fields { width:100%; }
  .loc-field { flex:1 1 45%; min-width:0; }   /* 2×2 grid — four selects on one row are unreadable */
  .loc-field select { min-width:0; width:100%; }
  .loc-bar { position:static; }   /* scrolls away on phones — nav + filter chips stay pinned */
}

/* ─── QUICK ACTION BAND ─── */
.action-bar { background:var(--surface); border-bottom:1px solid var(--border); }
.action-bar-inner { max-width:1280px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.action-bar-text { font-weight:600; font-size:15px; }
.action-bar-btns { display:flex; gap:10px; flex-wrap:wrap; }
/* floating quick actions — follow the screen on scroll */
.fab { position:fixed; right:18px; bottom:18px; z-index:140; display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
.fab button { box-shadow:0 8px 22px rgba(0,0,0,.32); }
@media(max-width:540px){
  .fab { right:12px; bottom:12px; gap:8px; }
  .fab button { font-size:14px; padding:11px 18px; }
  /* phones: Refer collapses to a round icon so the stack stops covering card footers */
  #fabRefer .fab-txt { display:none; }
  #fabRefer { padding:11px 14px; border-radius:50%; }
}

/* ─── ENDING SOON ─── */
.ending-wrap { background:var(--bg); }
.ending-rail { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.es-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; cursor:pointer; box-shadow:var(--sh-sm); transition:transform .15s, box-shadow .15s; }
@media(hover:hover){ .es-card:hover { transform:translateY(-3px); box-shadow:var(--sh-md); } }
.es-img { height:110px; position:relative; display:flex; align-items:center; justify-content:center; font-size:42px; color:#fff; }
.es-time { position:absolute; bottom:8px; right:8px; background:rgba(0,0,0,.72); color:#fff; font-size:12px; font-weight:700; padding:3px 9px; border-radius:100px; display:flex; align-items:center; gap:5px; }
.es-body { padding:11px 13px; }
.es-title { font-size:13px; font-weight:600; line-height:1.3; margin-bottom:4px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.es-price { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:18px; color:var(--brand); }
@media(max-width:1024px){ .ending-rail { grid-template-columns:repeat(2,1fr); } }
@media(max-width:540px){ .ending-rail { grid-template-columns:1fr 1fr; } .action-bar-inner { justify-content:center; text-align:center; } }

/* ─── STATS STRIP ─── */
.stats-strip { background:#0A0A0A; }
.stats-strip-inner {
  max-width:1280px; margin:0 auto; padding:0 20px; min-height:46px;
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:32px;
}
.strip-stat { display:flex; align-items:center; gap:7px; color:rgba(255,255,255,.5); font-size:13px; }
.strip-num { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:17px; color:var(--gold); }

/* ─── SECTION SHELL ─── */
.section { max-width:1280px; margin:0 auto; padding:34px 20px; }
.section-hd { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:22px; gap:16px; flex-wrap:wrap; }
.section-title { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:28px; }
.section-title small { font-size:14px; color:var(--muted); font-weight:400; font-family:'Inter',sans-serif; }
.section-count { color:var(--muted); font-size:14px; }
/* per-section hide button + the Customize sections menu */
.sec-hide { background:none; border:1px solid var(--border); color:var(--muted); width:26px; height:26px; border-radius:50%; cursor:pointer; font-size:12px; line-height:1; flex-shrink:0; transition:all .15s; }
.sec-hide:hover { color:var(--brand); border-color:var(--brand); }
.cust-dd { position:relative; display:inline-block; }
.cust-dd-menu { position:absolute; right:0; top:calc(100% + 6px); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--sh-lg); padding:8px; z-index:120; min-width:230px; }
.cust-dd-title { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); font-weight:700; padding:4px 8px 6px; }
.cust-dd-menu label { display:flex; align-items:center; gap:9px; padding:8px; border-radius:var(--r); font-size:14px; color:var(--text); cursor:pointer; }
.cust-dd-menu label:hover { background:var(--bg); }
.cust-dd-menu input { width:16px; height:16px; accent-color:var(--brand); cursor:pointer; }

/* ─── CATEGORY LEADERS ─── */
.leaders { background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.leaders-rail { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.leader {
  position:relative; border:1px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden; cursor:pointer; background:var(--bg); transition:transform .15s, box-shadow .15s;
}
.leader:hover { transform:translateY(-3px); box-shadow:var(--sh-md); }
.leader-img { height:96px; position:relative; display:flex; align-items:center; justify-content:center; font-size:34px; }
.leader-cat { position:absolute; top:7px; left:7px; background:rgba(0,0,0,.62); color:#fff; font-size:9px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; padding:3px 7px; border-radius:100px; }
.leader-votes { position:absolute; top:7px; right:7px; background:var(--gold); color:#fff; font-size:11px; font-weight:700; padding:3px 7px; border-radius:100px; display:flex; align-items:center; gap:3px; }
.leader-body { padding:9px 11px; }
.leader-title { font-size:13px; font-weight:600; line-height:1.25; margin-bottom:3px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:33px; }
.leader-price { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:16px; color:var(--brand); }

/* ─── FILTER BAR ─── */
.filter-bar { background:var(--surface); border-bottom:1px solid var(--border); position:sticky; top:calc(var(--nav-h,63px) + var(--locbar-h,0px)); z-index:90; }
.filter-bar-inner {
  max-width:1280px; margin:0 auto; padding:0 16px; height:52px;
  display:flex; align-items:center; gap:6px; overflow-x:auto; scrollbar-width:none; scroll-behavior:smooth;
}
.filter-bar-inner::-webkit-scrollbar { display:none; }
/* horizontal scroll affordance */
.fb-arrow {
  position:absolute; top:50%; transform:translateY(-50%); z-index:92;
  width:38px; height:38px; border-radius:50%; border:1.5px solid var(--brand);
  background:var(--surface); box-shadow:0 4px 14px rgba(0,0,0,.24); cursor:pointer;
  font-size:22px; font-weight:800; line-height:1; color:var(--brand);
  display:none; align-items:center; justify-content:center;
  transition:background .12s, color .12s, transform .12s, box-shadow .12s;
}
.fb-arrow:hover { background:var(--brand); color:#fff; transform:translateY(-50%) scale(1.1); box-shadow:0 6px 18px rgba(232,40,31,.42); }
.fb-arrow.l { left:6px; } .fb-arrow.r { right:6px; }
.fb-arrow.show { display:flex; }
.chip {
  display:inline-flex; align-items:center; gap:4px; padding:5px 13px;
  border-radius:100px; font-size:13px; font-weight:600; letter-spacing:.2px; white-space:nowrap;
  border:1px solid var(--border); background:transparent; color:var(--text-soft); transition:all .15s; cursor:pointer;
}
.chip:hover { border-color:var(--text-soft); color:var(--text); }
.chip.active { background:var(--dark); color:#fff; border-color:var(--text); }
.sub-filter { background:var(--bg); border-top:none; }
.sub-filter .filter-bar-inner { height:auto; flex-wrap:wrap; overflow:visible; padding-top:10px; padding-bottom:10px; row-gap:8px; }
.sub-chip { background:var(--surface); }
.sub-chip.active { background:var(--gold); border-color:var(--gold); color:#fff; }
/* group dropdown buttons + reveal panel */
.group-chip .caret { font-size:10px; opacity:.7; margin-left:1px; display:inline-block; transition:transform .15s; }
.group-chip.open .caret { transform:rotate(180deg); }
.group-chip.active { background:transparent; border-color:var(--brand); color:var(--brand); }
.group-chip.open { background:var(--dark); border-color:var(--text); color:#fff; }
.group-panel { background:var(--bg); border-top:none; }
.group-panel .filter-bar-inner { height:auto; flex-wrap:wrap; overflow:visible; padding-top:10px; padding-bottom:10px; row-gap:8px; }
/* reveal panels sit in normal flow (only the main bar is sticky) */
.group-panel, .sub-filter { position:static; }
/* The reveal panels wrap to show every chip, so they never need scroll arrows. */
.group-panel .fb-arrow, .sub-filter .fb-arrow { display:none !important; }
.chip.dealer-chip.active { background:var(--dealer); border-color:var(--dealer); }
.chip-divider { width:1px; height:20px; background:var(--border); flex-shrink:0; }
.sort-wrap { margin-left:auto; flex-shrink:0; }
.sort-wrap select {
  padding:6px 12px; border:1px solid var(--border); border-radius:var(--r);
  font-size:13px; color:var(--text); background:var(--surface); outline:none; cursor:pointer;
}
/* Sort control lives in the listings header, right beside "Save search" (desktop) */
.hd-sort { display:flex; align-items:center; gap:7px; flex-shrink:0; }
.hd-sort label { font-size:12px; font-weight:600; color:var(--muted); }
.hd-sort select {
  padding:6px 12px; border:1px solid var(--border); border-radius:var(--r);
  font-size:13px; color:var(--text); background:var(--surface); outline:none; cursor:pointer;
}
/* Year / Make / Model vehicle search bar (listings page) */
.ymm-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:12px 14px; margin-bottom:16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); }
.ymm-bar-lbl { font-weight:700; font-size:14px; color:var(--text); margin-right:2px; white-space:nowrap; }
.ymm-inp { padding:8px 11px; border:1px solid var(--border); border-radius:var(--r); font-size:14px; color:var(--text); background:var(--bg); outline:none; min-width:0; }
.ymm-inp:focus { border-color:var(--brand); }
.ymm-year { flex:0 0 auto; width:118px; cursor:pointer; }
#ymmMake, #ymmModel { flex:1 1 150px; }
.ymm-notify { white-space:nowrap; }
@media (max-width:640px) {
  .ymm-bar { gap:7px; padding:10px 11px; }
  .ymm-bar-lbl { flex-basis:100%; margin-bottom:2px; }
  .ymm-year { flex:1 1 90px; width:auto; }
  .ymm-notify { flex-basis:100%; }
}

/* ─── AUCTION GRID ─── */
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }   /* minmax(0,…): one long unbroken string must never blow the column open */

.card {
  background:var(--surface); border-radius:var(--r-lg); overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--sh-sm);
  transition:transform .15s, box-shadow .15s; display:flex; flex-direction:column;
}
@media(hover:hover){ .card:hover { transform:translateY(-3px); box-shadow:var(--sh-md); } }

.card-img { height:196px; position:relative; overflow:hidden; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.card-img-icon { font-size:60px; opacity:.9; filter:drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
/* Editorial placeholder — muted block + the listing name, until a real photo is uploaded */
.card-img, .es-img, .leader-img, .detail-gallery { background:var(--ph-bg); }
.ph { width:100%; height:100%; display:flex; flex-direction:column; justify-content:center; padding:0 18px; }
.ph-title { font-family:'Barlow Condensed',sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:#E9E5DF; line-height:1.08; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.card-img .ph-title { font-size:21px; -webkit-line-clamp:3; }
.leader-img .ph { padding:0 10px; }
.leader-img .ph-title { font-size:12px; letter-spacing:.2px; -webkit-line-clamp:2; }
.es-img .ph-title { font-size:14px; -webkit-line-clamp:2; }
.detail-gallery .ph { padding:0 28px; }
.detail-gallery .ph-title { font-size:clamp(26px,5vw,40px); -webkit-line-clamp:3; }

.tag {
  position:absolute; top:10px; font-size:10px; font-weight:700;
  letter-spacing:1px; text-transform:uppercase; padding:3px 8px; border-radius:3px; z-index:2;
}
.tag-left { left:10px; }
.tag-right { right:10px; }
.tag-nr { background:var(--success); color:#fff; }
.tag-feat { background:var(--brand); color:#fff; }
.tag-dealer { background:var(--dealer); color:#fff; }
.tag-stack { position:absolute; top:10px; left:10px; display:flex; flex-direction:column; gap:5px; z-index:2; }
.tag-stack .tag { position:static; }

.card-timer-badge {
  position:absolute; bottom:10px; right:10px;
  background:rgba(0,0,0,.72); backdrop-filter:blur(4px);
  color:#fff; font-size:13px; font-weight:600; padding:4px 10px;
  border-radius:100px; display:flex; align-items:center; gap:5px;
}
.td { width:6px; height:6px; border-radius:50%; background:#4ade80; flex-shrink:0; }
.td.urgent { background:#FFC947; animation:blink 1s ease-in-out infinite; }

.card-lock {
  position:absolute; inset:0; background:rgba(15,23,42,.78); backdrop-filter:blur(2px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  color:#fff; text-align:center; padding:20px; z-index:3;
}
.card-lock-icon { font-size:28px; }
.card-lock-txt { font-size:13px; font-weight:600; }
.card-lock-sub { font-size:11px; color:rgba(255,255,255,.6); }

.card-body { padding:14px 16px; flex:1; display:flex; flex-direction:column; }
.card-title { font-family:'Barlow Condensed',sans-serif; font-size:19px; font-weight:700; margin-bottom:4px; cursor:pointer; }
.card-sub { font-size:12px; color:var(--muted); margin-bottom:12px; }
.card-seller { font-size:11px; color:var(--muted); margin-bottom:10px; display:flex; align-items:center; gap:5px; }
.seller-badge { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; padding:2px 6px; border-radius:100px; background:var(--dealer-lt); color:var(--dealer); }
.card-foot { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--border); padding-top:10px; margin-top:auto; }
.card-bid-lbl { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.card-bid-amt { font-family:'Barlow Condensed',sans-serif; font-size:22px; font-weight:700; line-height:1.1; }
.card-bids-ct { font-size:12px; color:var(--muted); text-align:right; }
.card-stats { font-size:11px; color:var(--muted); }
.reserve-flag { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); margin-top:2px; }
.reserve-flag.met { color:var(--success); }
.nr-inline { display:inline-block; background:var(--success); color:#fff; font-size:9px; font-weight:700; padding:1px 6px; border-radius:100px; margin-left:4px; vertical-align:middle; letter-spacing:.3px; }

/* ─── VOTE BUTTON ─── */
.vote-btn {
  display:inline-flex; align-items:center; gap:6px; padding:6px 12px;
  border:1px solid var(--border); border-radius:100px; background:var(--surface);
  color:var(--muted); font-size:13px; font-weight:600; transition:all .15s; cursor:pointer;
}
.vote-btn:hover { border-color:var(--brand); color:var(--brand); }
.vote-btn.voted { background:rgba(232,40,31,.07); border-color:var(--brand); color:var(--brand); }
.vote-arrow { font-size:13px; line-height:1; }
.vote-heart { font-size:15px; line-height:1; }
.vote-btn.voted .vote-heart { animation:heartpop .28s ease; }
@keyframes heartpop { 0%{transform:scale(1)} 45%{transform:scale(1.35)} 100%{transform:scale(1)} }
.vote-row { display:flex; align-items:center; justify-content:space-between; padding:10px 16px 0; }
.vote-hint {
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.7px;
  color:var(--muted); background:var(--bg); border:1px solid var(--border);
  padding:3px 9px; border-radius:100px;
}

/* ─── CONTRACTOR NETWORK ─── */
.contractors-wrap { background:var(--surface); border-top:1px solid var(--border); }
.network-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; background:var(--gold-lt); border:1px solid rgba(196,123,10,.25); border-radius:var(--r-lg); padding:16px 20px; margin-bottom:24px; flex-wrap:wrap; }
.network-intro-txt { font-size:14px; line-height:1.6; color:var(--gold-ink); max-width:760px; }
.network-intro-txt strong { color:var(--gold); }
.network-legend { display:flex; gap:18px; font-size:12px; color:var(--muted); white-space:nowrap; }
.network-legend .dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; }
.dot-active { background:var(--success); }
.dot-open { background:var(--gold); }
.contractor-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.city-card {
  border:1px solid var(--border); border-radius:var(--r-lg); padding:16px;
  background:var(--bg); display:flex; flex-direction:column; gap:8px; transition:box-shadow .15s, transform .15s; cursor:pointer;
}
.city-card:hover { box-shadow:var(--sh-md); transform:translateY(-2px); }
.city-card.open { border-style:dashed; }
.city-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.city-card-name { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:19px; line-height:1.1; }
.status-pill { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; padding:3px 8px; border-radius:100px; white-space:nowrap; }
.status-pill.active { background:rgba(21,128,61,.12); color:var(--success); }
.status-pill.open { background:rgba(196,123,10,.14); color:var(--gold); }
.city-rep { font-size:13px; color:var(--text); font-weight:600; }
.city-rep-sub { font-size:12px; color:var(--muted); }
.city-card-foot { margin-top:auto; padding-top:8px; font-size:12px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.apply-link { color:var(--gold); font-weight:700; font-size:13px; }

/* ─── SELL CTA ─── */
.sell-cta { background:var(--dark); padding:60px 20px; }
.sell-cta-inner { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.sell-panel { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:32px; }
.sell-panel h2 { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:30px; color:#fff; line-height:1.1; margin-bottom:10px; }
.sell-panel p { color:rgba(255,255,255,.6); font-size:15px; line-height:1.6; margin-bottom:20px; }
.sell-panel.dealer-panel { background:rgba(29,78,216,.1); border-color:rgba(29,78,216,.35); }
.panel-tag { display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; padding:4px 10px; border-radius:100px; margin-bottom:14px; }
.panel-tag.seller { background:rgba(232,40,31,.18); color:#ff8a82; }
.panel-tag.dealer { background:rgba(29,78,216,.22); color:#93b4ff; }

/* ─── HOW IT WORKS ─── */
.how { background:var(--bg); padding:64px 20px; }
.how-inner { max-width:1280px; margin:0 auto; }
.how-title { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:36px; text-align:center; margin-bottom:48px; }
.how-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:48px; }
.how-step { text-align:center; }
.step-num { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:52px; color:var(--brand); opacity:.25; line-height:1; margin-bottom:10px; }
.step-title { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:22px; margin-bottom:8px; }
.step-text { font-size:15px; color:var(--muted); line-height:1.65; }

/* ─── FOOTER ─── */
.footer { background:#080808; padding:52px 20px 28px; color:rgba(255,255,255,.45); }
.footer-inner { max-width:1280px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer-logo { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:22px; color:#fff; margin-bottom:12px; }
.footer-desc { font-size:14px; line-height:1.65; max-width:280px; }
.footer-col-hd { font-size:11px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:rgba(255,255,255,.35); margin-bottom:16px; }
.footer-lnk { display:block; color:rgba(255,255,255,.45); font-size:14px; margin-bottom:10px; transition:color .15s; cursor:pointer; }
.footer-lnk:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.07); padding-top:24px; display:flex; align-items:center; justify-content:space-between; font-size:13px; flex-wrap:wrap; gap:8px; }

/* ─── MODAL SYSTEM ─── */
.overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.72); z-index:200;
  align-items:center; justify-content:center; padding:20px;
  backdrop-filter:blur(3px);
}
.overlay.open { display:flex; }
/* These popups open on top of another open overlay (deal room / detail), so they
   need to sit above the standard 200 z-index to land in front. */
#modal-review, #modal-dispute, #modal-counter, #modal-avatar, #modal-schedule, #modal-dealshoot, #modal-liftreserve, #modal-bidterms, #modal-withdraw, #modal-editlist { z-index:210; }
#modal-lightbox { z-index:240; }   /* media viewer sits above the lot detail */
#modal-adminedit, #modal-adminview { z-index:220; }  /* sit above the admin console */
.modal {
  background:var(--surface); border-radius:14px;
  width:100%; max-height:calc(100vh - 40px); overflow-y:auto;
  max-height:calc(100dvh - 40px);   /* iOS: 100vh is the toolbars-hidden height — dvh tracks what's actually visible */
  overscroll-behavior:contain;      /* touch scroll stays inside the modal, never chains to the page */
  box-shadow:var(--sh-lg); animation:mIn .2s ease;
}
@keyframes mIn { from{opacity:0;transform:scale(.97) translateY(10px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-xs { max-width:360px; }
.modal-sm { max-width:440px; }
.modal-lg { max-width:820px; }
/* ─── ADMIN CONSOLE — full-screen shell w/ dark sidebar ─── */
#modal-admin { padding:0; }
#modal-admin .modal { max-width:none; width:100%; height:100dvh; max-height:100dvh; border-radius:0; overflow:hidden; }
.admin-shell { display:flex; height:100%; }
.admin-side { width:190px; flex-shrink:0; background:#1A1A1A; display:flex; flex-direction:column; padding:16px 10px 14px; overflow-y:auto; border-right:1px solid rgba(255,255,255,.06); }
.admin-side-brand { font-family:'Barlow Condensed',sans-serif; font-size:21px; font-weight:800; color:#fff; padding:2px 12px 16px; letter-spacing:.2px; white-space:nowrap; }
.admin-side-brand .rd { color:var(--brand); }
.admin-side-brand em { font-style:normal; font-family:'Inter',sans-serif; display:block; font-size:10.5px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:rgba(255,255,255,.45); margin-top:2px; }
.admin-nav { display:flex; flex-direction:column; gap:2px; flex:1; }
.admin-nav-item { display:flex; align-items:center; gap:9px; width:100%; background:none; border:none; border-left:3px solid transparent; color:rgba(255,255,255,.62); font-size:13px; font-weight:700; padding:9px 9px 9px 10px; border-radius:0 8px 8px 0; cursor:pointer; text-align:left; transition:background .12s, color .12s; }
.admin-nav-item:hover { color:#fff; background:rgba(255,255,255,.05); }
.admin-nav-item.on { background:#111; color:#fff; border-left-color:var(--brand); }
.admin-nav-ic { font-size:15px; width:20px; text-align:center; flex-shrink:0; }
.admin-nav-lbl { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.admin-side-exit { margin-top:12px; background:none; border:1px solid rgba(255,255,255,.16); color:rgba(255,255,255,.6); border-radius:8px; padding:8px 10px; font-size:12px; font-weight:700; cursor:pointer; transition:color .12s, border-color .12s; }
.admin-side-exit:hover { color:#fff; border-color:rgba(255,255,255,.45); }
.admin-main { flex:1; display:flex; flex-direction:column; min-width:0; background:var(--surface); }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 22px; border-bottom:1px solid var(--border); flex-shrink:0; }
.admin-topbar-title { font-family:'Barlow Condensed',sans-serif; font-size:23px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.admin-bodyarea { flex:1; overflow-y:auto; overscroll-behavior:contain; padding:18px 22px 34px; }
.admin-badge { background:var(--brand); color:#fff; font-size:10px; font-weight:800; min-width:17px; height:17px; border-radius:100px; display:inline-flex; align-items:center; justify-content:center; padding:0 5px; flex-shrink:0; }
.admin-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
.admin-stat { background:var(--bg); border:1px solid var(--border); border-radius:var(--r-lg); padding:14px; text-align:center; transition:border-color .12s; }
.admin-stat[onclick] { cursor:pointer; }
.admin-stat[onclick]:hover { border-color:var(--brand); }
.admin-stat-num { font-family:'Barlow Condensed',sans-serif; font-size:30px; font-weight:800; line-height:1; }
.admin-stat-lbl { font-size:11px; color:var(--muted); margin-top:4px; text-transform:uppercase; letter-spacing:.4px; }
.admin-scroll { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.admin-table th { text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); padding:8px 10px; border-bottom:1px solid var(--border); white-space:nowrap; }
.admin-table td { padding:12px 10px; border-bottom:1px solid var(--border); vertical-align:top; }
.admin-table tbody tr:hover { background:var(--bg); }
.admin-sub { font-size:11px; color:var(--muted); }
.admin-note { font-size:11px; color:var(--brand); margin-top:2px; }
.admin-issue { background:rgba(232,40,31,.07); border:1px solid rgba(232,40,31,.28); border-left:3px solid var(--brand); border-radius:8px; padding:9px 12px; font-size:13px; color:var(--text); margin:12px 0 4px; line-height:1.45; }
.admin-issue strong { color:var(--brand); }
.admin-warnbox { background:var(--gold-lt); border:1px solid rgba(196,123,10,.35); border-left:3px solid var(--gold); border-radius:8px; padding:9px 12px; font-size:13px; color:var(--text); margin:10px 0 4px; line-height:1.45; }
.admin-pill { font-size:10.5px; font-weight:800; padding:3px 9px; border-radius:100px; display:inline-block; white-space:nowrap; }
.pill-green { background:#E3F2E7; color:#1a6b35; }
.pill-gold  { background:#F7EBD7; color:#8a5607; }
.pill-red   { background:#FBE4E2; color:#a01710; }
.pill-blue  { background:#E1E9FB; color:#1e46ad; }
.pill-muted { background:var(--bg); color:var(--muted); }
html[data-theme="dark"] .pill-green { background:rgba(46,168,90,.18); color:#8fdcab; }
html[data-theme="dark"] .pill-gold  { background:rgba(196,123,10,.22); color:#f0c274; }
html[data-theme="dark"] .pill-red   { background:rgba(232,40,31,.2);  color:#ffa39d; }
html[data-theme="dark"] .pill-blue  { background:rgba(80,120,240,.22); color:#a9c0ff; }
html[data-theme="dark"] .pill-muted { background:rgba(255,255,255,.07); color:var(--muted); }
.admin-actions { white-space:nowrap; text-align:right; }
.admin-actions .btn { margin-left:5px; }
.btn-xs { font-size:12px; padding:6px 12px; border-radius:7px; }
.btn.admin-del { background:transparent; color:var(--brand); border:1px solid var(--border); }
.btn.admin-del:hover { border-color:var(--brand); }
.btn.btn-armed { background:#9E120B; border:1px solid #9E120B; color:#fff; animation:armIn .18s ease; }
.btn.btn-armed:hover { background:#7f0e08; }
@keyframes armIn { from { transform:scale(.94); } to { transform:scale(1); } }
.admin-log-row { display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:13px; }
.admin-log-row:last-child { border-bottom:none; }
.admin-filterbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.admin-search { flex:1; min-width:160px; font-size:13px; padding:8px 12px; }
.admin-chips { display:flex; gap:5px; flex-wrap:wrap; }
.admin-chip { font-size:12px; font-weight:700; padding:5px 11px; border-radius:100px; border:1px solid var(--border); background:var(--surface); color:var(--muted); cursor:pointer; transition:all .12s; }
.admin-chip:hover { border-color:var(--brand); color:var(--text); }
.admin-chip.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.admin-bulkbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:9px 12px; margin-bottom:10px; background:var(--gold-lt); border:1px solid rgba(196,123,10,.3); border-radius:var(--r-lg); font-size:13px; }
.admin-bulkbar span { margin-right:auto; }
.admin-ck { width:30px; text-align:center; }
.admin-ck input { width:16px; height:16px; cursor:pointer; accent-color:var(--brand); }
.admin-card { border:1px solid var(--border); border-radius:var(--r-lg); padding:14px; margin-bottom:10px; }
.admin-link { font-weight:700; color:var(--text); cursor:pointer; display:inline-block; }
.admin-link:hover { text-decoration:underline; }
.admin-kv { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid var(--border); font-size:13px; }
.admin-kv:last-child { border-bottom:none; }
.admin-kv span:first-child { color:var(--muted); flex-shrink:0; }
.admin-kv span:last-child { text-align:right; word-break:break-word; }
.admin-avatar { width:56px; height:56px; border-radius:50%; background:var(--brand); color:#fff; font-family:'Barlow Condensed',sans-serif; font-size:26px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.admin-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.admin-file-stage { width:100%; aspect-ratio:16/10; border-radius:var(--r-lg); display:flex; align-items:center; justify-content:center; margin-bottom:14px; color:#fff; }
/* review queue — master list + detail pane */
.admin-queue { display:flex; gap:16px; align-items:flex-start; }
.admin-queue-list { width:300px; flex-shrink:0; border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; }
.admin-queue-row { display:flex; gap:10px; align-items:flex-start; padding:11px 12px 11px 9px; border-left:3px solid transparent; border-bottom:1px solid var(--border); cursor:pointer; background:var(--surface); transition:background .12s; }
.admin-queue-row:last-child { border-bottom:none; }
.admin-queue-row:hover { background:var(--bg); }
.admin-queue-row.on { background:rgba(232,40,31,.06); border-left-color:var(--brand); }
html[data-theme="dark"] .admin-queue-row.on { background:rgba(232,40,31,.12); }
.admin-queue-ic { width:34px; height:34px; border-radius:8px; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.admin-queue-t { font-weight:700; font-size:13.5px; line-height:1.25; }
.admin-queue-s { font-size:11.5px; color:var(--muted); margin-top:2px; line-height:1.4; }
.admin-queue-flag { color:var(--brand); font-weight:700; }
.admin-queue-pane { flex:1; min-width:0; border:1px solid var(--border); border-radius:var(--r-lg); padding:16px 18px; }
.admin-reject-picker { margin-top:14px; padding:12px 14px; background:rgba(232,40,31,.05); border:1px solid rgba(232,40,31,.25); border-radius:var(--r-lg); }
/* ≤900px: sidebar becomes a horizontal strip on top */
@media (max-width:900px) {
  .admin-shell { flex-direction:column; }
  .admin-side { width:100%; flex-direction:row; align-items:center; gap:6px; padding:8px 10px; overflow-x:auto; overflow-y:hidden; border-right:none; border-bottom:1px solid rgba(255,255,255,.06); }
  .admin-side-brand, .admin-side-exit { display:none; }
  .admin-nav { flex-direction:row; gap:4px; flex:1; }
  .admin-nav-item { width:auto; border-left:none; border-bottom:3px solid transparent; border-radius:8px 8px 0 0; padding:7px 10px; white-space:nowrap; }
  .admin-nav-item.on { border-bottom-color:var(--brand); }
  .admin-main { min-height:0; }
  .admin-bodyarea { padding:14px 14px 30px; }
  .admin-topbar { padding:11px 14px; }
}
/* ≤640px: queue master-detail stacks vertically */
@media (max-width:640px) {
  .admin-queue { flex-direction:column; }
  .admin-queue-list { width:100%; max-height:250px; overflow-y:auto; }
  .admin-queue-pane { width:100%; padding:14px; }
}

.modal-hd { position:sticky; top:0; z-index:5; background:var(--surface); border-radius:14px 14px 0 0; padding:18px 24px 14px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); }
.modal-hd-title { font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:700; }
/* 38px tap target; negative margins cancel the growth so the sticky header keeps its height */
.modal-close { background:none; border:none; font-size:20px; color:var(--muted); line-height:1; transition:color .15s, background .15s; width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; padding:0; margin:-6px -8px -6px 0; border-radius:50%; flex-shrink:0; cursor:pointer; }
.modal-close:hover { color:var(--text); background:rgba(0,0,0,.06); }
.modal-body { padding:20px 24px 28px; }
/* Sticky close ✕ for full-content (modal-lg) popups (detail / storefront / deal room):
   a zero-height bar pinned to the top of the scrolling modal so the ✕ always follows. */
.modal-x-bar { position:sticky; top:0; z-index:8; height:0; text-align:right; pointer-events:none; }
.modal-x { pointer-events:auto; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; margin:14px 14px 0; border-radius:50%; background:rgba(0,0,0,.6); border:none; color:#fff; font-size:18px; line-height:1; cursor:pointer; transition:background .15s; }
.modal-x:hover { background:rgba(0,0,0,.82); }

/* ─── ACCOUNT TYPE TABS ─── */
.type-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:22px; }
.type-tab {
  border:1.5px solid var(--border); border-radius:var(--r-lg); padding:14px 8px; text-align:center;
  background:var(--surface); transition:all .15s; cursor:pointer;
}
.type-tab:hover { border-color:#aaa; }
.type-tab.active { border-color:var(--brand); background:rgba(232,40,31,.04); }
.type-tab-name { font-size:13px; font-weight:700; }
.type-tab-desc { font-size:10px; color:var(--muted); margin-top:2px; }
/* ── Account-type colour coding (replaces the emoji icons) ──
   Keyed off explicit .tt-buyer / .tt-dealer / .tt-rep classes on the tab, NOT off
   the data-* attributes: the two pickers use different attribute names
   (login = data-logintype, signup = data-type) and an attribute-selector pair
   would not reliably match both. One class set covers both modals.
   Each type owns a colour ALREADY in the palette — Personal = brand red,
   Dealer = gold, Rep = success green — so nothing new enters the scheme and
   --success still flips correctly in dark mode. The swatch is a short bar that
   grows to full width when selected, so the active tab is obvious from shape as
   well as colour; the text label is always present, so colour is never the only
   signal. (.type-tab-icon was deleted with the last emoji — nothing renders it.) */
.type-tab-swatch {
  height:5px; width:30px; border-radius:3px; margin:2px auto 10px;
  background:var(--border); transition:width .18s ease, background .18s ease;
}
.tt-buyer  .type-tab-swatch { background:var(--brand); }
.tt-dealer .type-tab-swatch { background:var(--gold); }
.tt-rep    .type-tab-swatch { background:var(--success); }
.type-tab:not(.active) .type-tab-swatch { opacity:.42; }
.type-tab.active .type-tab-swatch       { width:100%; opacity:1; }
/* Selected tab borrows its own colour instead of always going brand red. These sit
   AFTER .type-tab.active and carry equal specificity (0,2,0), so source order wins. */
.tt-buyer.active  { border-color:var(--brand);   background:rgba(232,40,31,.06); }
.tt-dealer.active { border-color:var(--gold);    background:rgba(196,123,10,.08); }
.tt-rep.active    { border-color:var(--success); background:rgba(21,128,61,.07); }
@media (prefers-reduced-motion: reduce) { .type-tab-swatch { transition:none; } }
.type-fields { display:none; }
.type-fields.active { display:block; }
.privacy-note { font-size:12px; color:var(--gold-ink); background:var(--gold-lt); border:1px solid rgba(196,123,10,.25); border-radius:var(--r); padding:10px 12px; line-height:1.55; margin-top:10px; }
.id-ok { font-size:12px; color:var(--success); font-weight:600; margin-top:8px; display:flex; align-items:center; gap:6px; }

/* ─── FORMS ─── */
.fg { margin-bottom:16px; }
.fg-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lbl { display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:var(--text); }
.inp {
  width:100%; padding:10px 14px; border:1px solid var(--border); border-radius:var(--r);
  font-size:15px; color:var(--text); background:var(--surface); outline:none; transition:border-color .15s;
}
.inp:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(196,30,42,.08); }
.inp-hint { font-size:12px; color:var(--muted); margin-top:4px; }
.form-divider {
  text-align:center; color:var(--muted); font-size:13px; margin:18px 0; position:relative;
}
.form-divider::before,.form-divider::after {
  content:''; position:absolute; top:50%; width:calc(50% - 22px); height:1px; background:var(--border);
}
.form-divider::before{left:0} .form-divider::after{right:0}
.form-link { color:var(--brand); font-weight:600; cursor:pointer; }

.radio-cards { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.radio-card {
  border:1.5px solid var(--border); border-radius:var(--r-lg); padding:14px; cursor:pointer; transition:all .15s;
}
.radio-card:hover { border-color:#aaa; }
.radio-card.active { border-color:var(--dealer); background:var(--dealer-lt); }
.radio-card-title { font-weight:700; font-size:14px; display:flex; align-items:center; gap:6px; }
.radio-card-desc { font-size:12px; color:var(--muted); margin-top:4px; }

.section-label { font-family:'Barlow Condensed',sans-serif; font-size:13px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid var(--border); }

.upload-zone {
  border:2px dashed var(--border); border-radius:var(--r-lg);
  padding:32px 24px; text-align:center; color:var(--muted); cursor:pointer; transition:all .15s;
}
.upload-zone:hover { border-color:var(--brand); color:var(--brand); background:rgba(196,30,42,.02); }
.upload-icon { font-size:32px; margin-bottom:8px; }

/* ─── LISTING ADD-ONS ─── */
.addon-card { display:flex; gap:12px; align-items:flex-start; border:1.5px solid var(--border); border-radius:var(--r-lg); padding:14px; cursor:pointer; transition:all .15s; margin-bottom:10px; }
.addon-card:hover { border-color:#aaa; }
.addon-card.active { border-color:var(--brand); background:rgba(232,40,31,.04); }
.addon-card.addon-disabled { opacity:.55; filter:grayscale(.6); pointer-events:none; }
.media-no-rep { font-size:12px; color:var(--muted); background:var(--bg); border:1px dashed var(--border); border-radius:var(--r); padding:9px 11px; margin:-4px 0 10px; line-height:1.55; }
/* Contractor scheduling — 1-hour shoot slots */
#shootPicker { margin-top:12px; padding-top:10px; border-top:1px solid var(--border); }
.shoot-hd { font-size:13px; font-weight:700; margin:0 0 8px; }
/* month-calendar scheduler (contractor editor + seller/dealer pickers) — compact */
.cal-wrap { max-width:288px; margin:0 auto; display:flex; flex-direction:column; gap:10px; }
.cal-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.cal-title { font-size:13px; font-weight:700; }
.cal-nav { width:24px; height:24px; border-radius:6px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:14px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .12s; }
.cal-nav:hover:not(:disabled) { border-color:var(--brand); color:var(--brand); }
.cal-nav:disabled { opacity:.3; cursor:default; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.cal-dow { text-align:center; font-size:9px; font-weight:700; color:var(--muted); padding:1px 0; }
.cal-cell { position:relative; aspect-ratio:1/1; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600; color:var(--text-soft); border:1px solid transparent; cursor:pointer; transition:all .12s; user-select:none; }
.cal-cell.cal-empty { cursor:default; }
.cal-cell:not(.cal-empty):not(.cal-na):not(.cal-out):hover { border-color:var(--brand); }
.cal-cell.cal-na, .cal-cell.cal-out { color:var(--muted); opacity:.3; cursor:default; }
.cal-cell.cal-today .cal-num { color:var(--brand); }
.cal-cell.cal-sel { background:var(--brand); border-color:var(--brand); color:#fff; }
.cal-cell.cal-sel .cal-num { color:#fff; }
.cal-num { line-height:1; }
.cal-dot { position:absolute; bottom:2px; left:50%; transform:translateX(-50%); }
.cal-dot.open, .cal-dot.bk { width:4px; height:4px; border-radius:50%; }
.cal-dot.open { background:var(--success); }
.cal-dot.bk { background:var(--gold); }
.cal-dot.on { font-size:8px; font-weight:800; color:var(--success); bottom:1px; }
.cal-cell.cal-sel .cal-dot.open { background:#fff; }
.cal-cell.cal-sel .cal-dot.bk { background:rgba(255,255,255,.7); }
.cal-cell.cal-sel .cal-dot.on { color:#fff; }
.cal-day { border-top:1px solid var(--border); padding-top:10px; }
.cal-day-hd { font-size:11px; font-weight:700; color:var(--muted); margin-bottom:7px; }
.cal-times { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; }
.cal-times .slot-chip { padding:5px 2px; font-size:11px; text-align:center; border-radius:7px; }
.cal-none, .cal-hint { font-size:12px; color:var(--muted); }
.cal-none { grid-column:1 / -1; }
.cal-hint { border-top:1px solid var(--border); padding-top:10px; }
.slot-chip { display:inline-block; font-size:12px; font-weight:600; padding:5px 9px; border-radius:100px; border:1px solid var(--border); background:var(--surface); color:var(--text-soft); cursor:pointer; transition:all .12s; user-select:none; }
.slot-chip:hover { border-color:var(--brand); }
.slot-chip.slot-on { background:var(--success); border-color:var(--success); color:#fff; }
.slot-chip.slot-sel { background:var(--brand); border-color:var(--brand); color:#fff; }
.slot-chip.slot-booked { background:var(--gold-lt); border-color:rgba(196,123,10,.3); color:var(--gold); cursor:default; }
.slot-chip.slot-past { opacity:.35; cursor:default; pointer-events:none; }
.addon-check { width:22px; height:22px; border:2px solid var(--border); border-radius:6px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:13px; color:transparent; transition:all .15s; margin-top:1px; }
.addon-card.active .addon-check { background:var(--brand); border-color:var(--brand); color:#fff; }
.addon-title { font-weight:700; font-size:14px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.addon-price { color:var(--brand); font-family:'Barlow Condensed',sans-serif; font-size:18px; }
.addon-desc { font-size:12px; color:var(--muted); margin-top:3px; line-height:1.5; }
.addon-total { text-align:right; font-weight:700; font-size:15px; margin-top:6px; padding-top:10px; border-top:1px solid var(--border); }
.addon-total span { color:var(--brand); font-family:'Barlow Condensed',sans-serif; font-size:20px; }

/* ─── BUYER-SIDE ADD-ON BADGES ─── */
.mini-badges { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.mini-badge { font-size:10px; font-weight:600; padding:2px 8px; border-radius:100px; background:var(--bg); border:1px solid var(--border); color:var(--muted); display:inline-flex; align-items:center; gap:3px; }
.mini-badge.cf { background:var(--dealer-lt); border-color:rgba(29,78,216,.2); color:var(--dealer); }
.mini-badge.md { background:var(--gold-lt); border-color:rgba(196,123,10,.2); color:var(--gold); }
.mini-badge.vid { background:rgba(232,40,31,.08); border-color:rgba(232,40,31,.2); color:var(--brand); }
.play-pill {
  position:absolute; bottom:10px; left:10px; z-index:2;
  width:34px; height:34px; border-radius:50%; background:rgba(0,0,0,.6); backdrop-filter:blur(4px);
  color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center;
  padding-left:2px; border:1.5px solid rgba(255,255,255,.5);
}

/* ─── VEHICLE HISTORY BOX (detail) ─── */
.history-box { border:1px solid var(--border); border-radius:var(--r-lg); padding:16px 18px; margin:20px 0; background:var(--bg); }
.history-hd { display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; margin-bottom:12px; }
.history-row { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-soft); margin-bottom:7px; }
.history-check { color:var(--success); font-weight:700; }
.cf-logo { font-weight:800; font-size:12px; color:var(--dealer); border:1.5px solid var(--dealer); border-radius:4px; padding:1px 5px; letter-spacing:.5px; }

/* ─── REFERRAL ─── */
.ref-code-box { display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--gold-lt); border:1px solid rgba(196,123,10,.25); border-radius:var(--r-lg); padding:14px 16px; }
.ref-code-lbl { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); font-weight:600; margin-bottom:3px; }
.ref-code { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:22px; letter-spacing:1px; color:var(--gold); }
.ref-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:16px; }
.ref-stat { background:var(--bg); border:1px solid var(--border); border-radius:var(--r-lg); padding:12px; text-align:center; }
.ref-stat-num { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:22px; line-height:1; }
.ref-stat-lbl { font-size:11px; color:var(--muted); margin-top:4px; }
.ref-row { display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); font-size:13px; }
.ref-credit { color:var(--success); font-weight:700; }
.ref-pending { color:var(--muted); }
.ref-credit-line { margin-top:8px; background:var(--gold-lt); border:1px solid rgba(196,123,10,.25); border-radius:var(--r); padding:8px 10px; font-size:12px; color:var(--gold-ink); }
.proxy-line { margin-top:12px; background:var(--dealer-lt); border:1px solid rgba(29,78,216,.2); border-radius:var(--r); padding:9px 11px; font-size:12px; color:var(--dealer); line-height:1.5; }
.net-panel { background:var(--gold-lt); border:1px solid rgba(196,123,10,.25); border-radius:var(--r); padding:11px 13px; font-size:13px; color:var(--gold-ink); line-height:1.5; margin-bottom:4px; }
/* share menu */
.share-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
.share-opt { display:flex; align-items:center; gap:9px; padding:12px 14px; border:1px solid var(--border); border-radius:var(--r-lg); font-size:14px; font-weight:600; color:var(--text); background:var(--surface); transition:all .15s; }
.share-opt:hover { border-color:var(--brand); color:var(--brand); }
.share-ic { font-size:18px; }
.share-copy { display:flex; gap:8px; }
.share-copy input { flex:1; font-size:13px; color:var(--muted); }
/* buyer-protection panel */
.trust-box { border:1px solid var(--border); border-radius:var(--r-lg); padding:16px 18px; margin:20px 0; background:var(--bg); }
.trust-hd { display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; margin-bottom:12px; }
.trust-row { display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--text-soft); margin-bottom:8px; line-height:1.5; }
.trust-row:last-child { margin-bottom:0; }
.trust-check { color:var(--success); font-weight:700; flex-shrink:0; }

/* ─── DETAIL: GALLERY / VIDEO / PANELS / REVIEWS ─── */
.gallery-thumbs { display:flex; gap:8px; padding:12px 24px 0; flex-wrap:wrap; }
.gthumb { width:66px; height:48px; border-radius:6px; cursor:pointer; border:2px solid transparent; display:flex; align-items:center; justify-content:center; font-size:20px; color:rgba(255,255,255,.9); position:relative; overflow:hidden; }
.gthumb:hover { border-color:var(--brand); }
.gthumb.video-thumb { background:#000 !important; color:#fff; font-size:11px; font-weight:700; gap:3px; }
.gthumb.gthumb-ph { background:var(--ph-bg); color:rgba(255,255,255,.85); font-size:11px; font-weight:700; }
.play-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:3; cursor:pointer; }
.play-overlay .pbtn { width:66px; height:66px; border-radius:50%; background:rgba(232,40,31,.92); color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; padding-left:4px; box-shadow:0 6px 20px rgba(0,0,0,.45); transition:transform .15s; }
.play-overlay:hover .pbtn { transform:scale(1.08); }
.play-overlay .plabel { position:absolute; bottom:16px; background:rgba(0,0,0,.6); color:#fff; font-size:12px; font-weight:600; padding:4px 12px; border-radius:100px; }
.detail-panel { margin-top:22px; padding-top:20px; border-top:1px solid var(--border); }
/* clickable account names (bid history / reviews / comments) → open their profile */
.acct-link { cursor:pointer; }
.acct-link:hover { color:var(--brand); text-decoration:underline; }
.detail-panel h3 { font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; }
.bidhist-row { display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; }
.bidhist-row:last-child { border-bottom:none; }
.bidhist-amt { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:16px; }
.bidhist-row.top .bidhist-amt { color:var(--success); }
.bidder { color:var(--muted); font-family:'Consolas',monospace; }
.qa-item { padding:12px 0; border-bottom:1px solid var(--border); }
.qa-q { font-weight:600; font-size:14px; margin-bottom:6px; }
.qa-q .qmark, .qa-a .amark { display:inline-flex; width:18px; height:18px; border-radius:4px; font-size:11px; align-items:center; justify-content:center; margin-right:7px; color:#fff; }
.qa-q .qmark { background:var(--dark); }
.qa-a { font-size:13px; color:var(--text-soft); padding-left:25px; }
.qa-a .amark { background:var(--brand); margin-left:-25px; }
.qa-ask { display:flex; gap:8px; margin-top:14px; }
.qa-ask input { flex:1; }
.review-item { padding:12px 0; border-bottom:1px solid var(--border); }
.review-item:last-child { border-bottom:none; }
.review-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.review-name { font-weight:600; font-size:13px; }
.review-text { font-size:13px; color:var(--text-soft); line-height:1.55; }
.seller-rating { display:inline-flex; align-items:center; gap:5px; cursor:pointer; }
.rating-pill { display:inline-flex; align-items:center; gap:6px; background:var(--gold-lt); border:1px solid rgba(196,123,10,.25); padding:2px 10px; border-radius:100px; font-size:12px; }

/* ─── COMMENTS ─── */
.cmt { display:flex; gap:10px; padding:12px 0; border-bottom:1px solid var(--border); }
.cmt:last-of-type { border-bottom:none; }
.cmt-av { width:34px; height:34px; border-radius:50%; background:var(--dark); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex-shrink:0; }
.cmt-body { flex:1; min-width:0; }
.cmt-hd { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:3px; }
.cmt-name { font-weight:600; font-size:13px; }
.cmt-role { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; padding:1px 6px; border-radius:100px; background:var(--bg); color:var(--muted); border:1px solid var(--border); }
.cmt-rating { font-size:11px; color:var(--gold); font-weight:700; }
.cmt-when { font-size:11px; color:var(--muted); margin-left:auto; }
.cmt-text { font-size:13px; color:var(--text-soft); line-height:1.55; }
.cmt-box { display:flex; flex-direction:column; margin-top:14px; }
.cmt-signin { margin-top:14px; background:var(--bg); border:1px solid var(--border); border-radius:var(--r-lg); padding:14px 16px; font-size:13px; color:var(--muted); line-height:1.5; }
/* Seller replies stand out from the crowd. */
.cmt.cmt-seller { background:rgba(232,40,31,.06); border:1px solid rgba(232,40,31,.22); border-radius:var(--r-lg); padding:11px 13px; margin:6px 0; }
.cmt-av-seller { background:var(--brand); }
.cmt-seller-badge { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; padding:1px 7px; border-radius:100px; background:var(--brand); color:#fff; display:inline-flex; align-items:center; gap:3px; }
.cmt-mod { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; padding:1px 6px; border-radius:100px; background:var(--bg); color:var(--muted); border:1px solid var(--border); }

/* ─── REVIEW TABS (profile) ─── */
.rev-tabs { display:flex; gap:6px; border-bottom:1px solid var(--border); }
.rev-tab { flex:1; padding:10px 8px; background:none; border:none; border-bottom:2px solid transparent; font-size:14px; font-weight:600; color:var(--muted); cursor:pointer; }
.rev-tab.active { color:var(--brand); border-bottom-color:var(--brand); }

/* ─── DEAL ROOM ─── */
.btn-success { background:var(--success); color:#fff; }
.btn-success:hover { background:#0f6e34; }
.deal-parties { display:flex; align-items:center; gap:12px; margin:6px 0 14px; }
.deal-party { flex:1; border:1px solid var(--border); border-radius:var(--r-lg); padding:14px; background:var(--bg); }
.deal-role { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); font-weight:700; }
.deal-name { font-weight:700; font-size:15px; margin:3px 0 8px; }
.deal-contact { font-size:13px; color:var(--text-soft); margin-top:3px; }
.deal-vs { font-size:22px; color:var(--brand); }
.deal-note { background:var(--gold-lt); border:1px solid rgba(196,123,10,.25); border-radius:var(--r); padding:11px 13px; font-size:12px; color:var(--gold-ink); line-height:1.55; }
.deal-thread { display:flex; flex-direction:column; gap:8px; max-height:200px; overflow-y:auto; padding:4px 2px; }
.deal-msg { max-width:80%; padding:9px 12px; border-radius:12px; font-size:13px; line-height:1.45; }
.deal-msg-name { font-size:10px; font-weight:700; opacity:.7; margin-bottom:2px; }
.deal-msg.them { align-self:flex-start; background:var(--bg); border:1px solid var(--border); border-bottom-left-radius:3px; }
.deal-msg.me { align-self:flex-end; background:var(--brand); color:#fff; border-bottom-right-radius:3px; }
.deal-msg.me .deal-msg-name { color:rgba(255,255,255,.8); }
@media(max-width:540px){ .deal-parties { flex-direction:column; } .deal-vs { transform:rotate(90deg); } }

/* ─── MY ACCOUNT DASHBOARD ─── */
.acct-hd { display:flex; align-items:center; gap:14px; }
.acct-hd .acct-avatar { width:54px; height:54px; font-size:22px; }
.acct-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:18px 0 6px; }
.acct-stats.no-ref { grid-template-columns:repeat(3,1fr); }
.acct-stat { background:var(--bg); border:1px solid var(--border); border-radius:var(--r-lg); padding:14px; text-align:center; }
.acct-stat-num { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:24px; line-height:1; }
.acct-stat-lbl { font-size:11px; color:var(--muted); margin-top:4px; }
.acct-section-hd { font-family:'Barlow Condensed',sans-serif; font-size:19px; font-weight:700; margin:22px 0 6px; display:flex; align-items:center; justify-content:space-between; }
.mini-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); cursor:default; }
.mini-row:last-child { border-bottom:none; }
/* hover affordance only on rows that actually navigate (.link) — non-clickable
   rows used to light up brand-red as if they were tappable */
.mini-row.link { cursor:pointer; }
.mini-row.link:hover .mini-row-title { color:var(--brand); }
.mini-row-ic { width:44px; height:44px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; flex-shrink:0; }
.mini-row-main { flex:1; min-width:0; }
.mini-row-title { font-weight:600; font-size:14px; }
.mini-row-sub { font-size:12px; color:var(--muted); }
.mini-row-price { text-align:right; }
.mini-row-amt { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:16px; }
.acct-empty { font-size:13px; color:var(--muted); padding:14px 0; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.acct-empty .btn { flex-shrink:0; }
/* clickable stat tiles — each jumps to its tab */
button.acct-stat { appearance:none; font:inherit; color:inherit; cursor:pointer; width:100%; transition:border-color .12s; }
button.acct-stat:hover { border-color:var(--brand); }
/* "View all N" list expander under a capped list */
.acct-more { display:block; width:100%; text-align:left; background:none; border:none; cursor:pointer; font-family:inherit; font-size:12px; font-weight:700; color:var(--brand); padding:10px 0; }
/* slim action-needed banners (gold = to-do with a button, red = account state) */
.acct-alert { display:flex; align-items:center; gap:10px; background:var(--gold-lt); border:1px solid rgba(196,123,10,.35); border-radius:10px; padding:9px 12px; margin-bottom:10px; font-size:13px; }
.acct-alert p { flex:1; margin:0; line-height:1.45; color:var(--gold-ink); }
.acct-alert .btn { flex-shrink:0; }
.acct-alert.red { background:rgba(232,40,31,.06); border-color:rgba(232,40,31,.28); }
.acct-alert.red p { color:var(--text); }
html[data-theme="dark"] .acct-alert.red { background:rgba(232,40,31,.14); }
@media(max-width:540px){ .acct-stats, .acct-stats.no-ref { grid-template-columns:repeat(2,1fr); } }
.acct-userrow { align-items:flex-end; }
/* account modal becomes a full-screen sheet on phones — a dashboard this deep
   needs the room (and the close button grows to a 44px touch target) */
@media(max-width:540px){
  #modal-account { padding:0; }
  #modal-account .modal { max-width:none; width:100%; height:100dvh; max-height:100dvh; border-radius:0; }
  #modal-account .modal-hd { border-radius:0; }
  #modal-account .modal-body { padding-bottom:calc(28px + env(safe-area-inset-bottom)); }
  #modal-account .modal-close { width:44px; height:44px; }
  /* tab chips: one swipeable row instead of wrapping to two lines */
  #modal-account .admin-chips { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  #modal-account .admin-chips::-webkit-scrollbar { display:none; }
  #modal-account .admin-chip { flex-shrink:0; padding:8px 15px; font-size:13px; }
  /* username field + Save stack instead of cramping side-by-side */
  #modal-account .acct-userrow { flex-direction:column; align-items:stretch; }
  #modal-account .acct-userrow .btn { width:100%; margin-top:8px; }
}
/* touch devices: row actions grow to a comfortable target (guideline ≈44px) */
@media(hover:none) and (pointer:coarse){
  #modal-account .btn-sm { min-height:42px; padding:9px 16px; }
  #modal-account .mini-row { padding:12px 0; }
  #modal-account .acct-more { min-height:44px; }
}

/* ─── PAST RESULTS ─── */
.results-wrap { background:var(--surface); border-top:1px solid var(--border); }
.sold-card { cursor:default; }
.sold-card .card-img { filter:saturate(.9); }
.tag-sold { background:var(--dark); color:#fff; }
.sold-date { font-size:12px; font-weight:600; color:var(--success); margin-bottom:10px; }

/* ─── SUB-PAGES (Contractors / Payments) ─── */
.page-hero { background:var(--dark); color:#fff; padding:38px 20px 30px; border-bottom:3px solid var(--brand); }
.page-hero .section { padding-top:0; padding-bottom:0; }
.back-link { color:rgba(255,255,255,.6); font-size:13px; cursor:pointer; display:inline-block; margin-bottom:14px; }
.back-link:hover { color:#fff; }
.page-title { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:clamp(30px,5vw,46px); line-height:1.05; margin-bottom:10px; }
.page-sub { color:rgba(255,255,255,.7); font-size:16px; max-width:660px; line-height:1.6; }
.pay-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.pay-card { border:1px solid var(--border); border-radius:var(--r-lg); padding:24px; background:var(--surface); box-shadow:var(--sh-sm); }
.pay-card h3 { font-family:'Barlow Condensed',sans-serif; font-size:22px; font-weight:700; margin-bottom:2px; display:flex; align-items:center; gap:8px; }
.pay-tag { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--brand); margin-bottom:14px; }
.pay-card.dealer .pay-tag { color:var(--dealer); }
.pay-card.gold .pay-tag { color:var(--gold); }
.pay-row { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--border); font-size:14px; }
.pay-row:last-child { border-bottom:none; }
.pay-row .v { font-weight:700; text-align:right; white-space:nowrap; }
.pay-row .v.free { color:var(--success); }
/* The dealer 3.5% rate is member-private: only signed-in dealers, contractors, and admins
   see the number (body.dealer-eyes); everyone else gets the .public-rate wording instead. */
.dealer-rate { display:none; }
body.dealer-eyes .dealer-rate { display:inline; }
body.dealer-eyes .public-rate { display:none; }
.pay-example { margin-top:24px; background:var(--bg); border:1px solid var(--border); border-radius:var(--r-lg); padding:24px; }
.pay-example h3 { font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:700; margin-bottom:6px; }
.pay-ex-row { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px dashed var(--border); font-size:14px; }
.pay-ex-row.total { border-bottom:none; border-top:2px solid var(--dark); margin-top:6px; padding-top:12px; font-weight:700; }
@media(max-width:760px){ .pay-grid { grid-template-columns:1fr; } }

/* ─── DOC / LEGAL / HELP PAGES ─── */
.doc-body { max-width:820px; }
.legal-banner { background:var(--gold-lt); border:1px solid rgba(196,123,10,.3); border-radius:var(--r-lg); padding:12px 16px; font-size:13px; color:var(--gold-ink); margin-bottom:22px; line-height:1.55; }
.doc-body h3 { font-family:'Barlow Condensed',sans-serif; font-size:22px; font-weight:700; margin:24px 0 8px; }
.doc-body p { font-size:14px; line-height:1.7; color:var(--text-soft); margin-bottom:10px; }
.doc-body ul { padding-left:20px; margin-bottom:10px; }
.doc-body li { font-size:14px; line-height:1.7; color:var(--text-soft); margin-bottom:5px; }
.doc-updated { font-size:12px; color:var(--muted); margin-top:6px; }
.help-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:8px 0 26px; }
.help-card { border:1px solid var(--border); border-radius:var(--r-lg); padding:18px; background:var(--surface); }
.help-card h4 { font-size:15px; margin-bottom:6px; }
.help-card p { font-size:13px; color:var(--muted); line-height:1.55; }
@media(max-width:760px){ .help-cards { grid-template-columns:1fr; } }

/* ─── LISTING DETAIL ─── */
.detail-gallery { height:320px; position:relative; overflow:hidden; border-radius:14px 14px 0 0; display:flex; align-items:center; justify-content:center; background-size:contain !important; background-position:center !important; background-repeat:no-repeat !important; }
.detail-gallery-icon { font-size:120px; opacity:.92; filter:drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
/* photo carousel arrows / dots / counter */
.gal-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:40px; height:40px; border-radius:50%; border:none; background:rgba(0,0,0,.42); color:#fff; font-size:24px; line-height:1; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .15s,transform .15s; backdrop-filter:blur(2px); }
.gal-arrow:hover { background:rgba(0,0,0,.72); }
.gal-arrow:active { transform:translateY(-50%) scale(.92); }
.gal-prev { left:12px; padding-right:3px; }
.gal-next { right:12px; padding-left:3px; }
.gal-count { position:absolute; top:12px; right:56px; z-index:3; background:rgba(0,0,0,.5); color:#fff; font-size:11px; font-weight:700; padding:3px 9px; border-radius:100px; backdrop-filter:blur(2px); }   /* right:56px clears the sticky ✕ close button */
.gal-dots { position:absolute; bottom:14px; left:50%; transform:translateX(-50%); z-index:3; display:flex; gap:6px; }
.gal-dot { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; transition:all .15s; }
.gal-dot:hover { background:rgba(255,255,255,.8); }
.gal-dot.on { background:#fff; transform:scale(1.25); }
.gal-zoom { position:absolute; top:12px; left:12px; z-index:3; width:30px; height:30px; border-radius:8px; background:rgba(0,0,0,.42); color:#fff; font-size:15px; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(2px); pointer-events:none; }
/* media lightbox */
.overlay-lb { background:rgba(0,0,0,.92); padding:28px; }
.lb { position:relative; width:100%; max-width:1080px; height:100%; max-height:calc(100vh - 56px); max-height:calc(100dvh - 56px); overscroll-behavior:contain; display:flex; align-items:center; justify-content:center; animation:mIn .2s ease; }
.lb-stage { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.lb-photo { width:100%; max-height:82vh; aspect-ratio:4/3; border-radius:14px; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; box-shadow:0 18px 60px rgba(0,0,0,.55); background-size:contain !important; background-position:center !important; background-repeat:no-repeat !important; }
.lb-photo .ph { padding:0 32px; }
.lb-photo .ph-title { font-size:clamp(30px,6vw,56px); }
.lb-video { width:100%; max-width:960px; aspect-ratio:16/9; max-height:82vh; background:#000; border-radius:14px; display:flex; align-items:center; justify-content:center; box-shadow:0 18px 60px rgba(0,0,0,.55); }
.pbtn-lg { width:88px; height:88px; border-radius:50%; background:rgba(232,40,31,.92); color:#fff; font-size:34px; display:flex; align-items:center; justify-content:center; padding-left:6px; margin:0 auto; }
.lb-close { position:absolute; top:-6px; right:-6px; z-index:6; width:44px; height:44px; border-radius:50%; border:none; background:rgba(255,255,255,.16); color:#fff; font-size:20px; cursor:pointer; transition:background .15s; }
.lb-close:hover { background:rgba(255,255,255,.3); }
.lb-count { position:absolute; top:2px; left:50%; transform:translateX(-50%); z-index:6; color:#fff; font-size:12px; font-weight:700; background:rgba(255,255,255,.16); padding:4px 13px; border-radius:100px; backdrop-filter:blur(2px); }
.lb-arrow { background:rgba(255,255,255,.18); width:48px; height:48px; font-size:28px; }
.lb-arrow:hover { background:rgba(255,255,255,.34); }
.lb-dots { bottom:-2px; }
@media (max-width:560px) { .overlay-lb { padding:14px; } .lb-arrow { width:40px; height:40px; } }
.detail-body { padding:24px; }
.detail-cols { display:grid; grid-template-columns:1fr 290px; gap:32px; }
.detail-specs { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:20px 0; }
.spec { background:var(--bg); padding:10px 14px; border-radius:var(--r); min-width:0; }
.spec-lbl { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; font-weight:600; margin-bottom:3px; }
.spec-val { font-size:15px; font-weight:600; overflow-wrap:anywhere; }

.bid-box { background:var(--bg); border-radius:var(--r-lg); padding:20px; border:1px solid var(--border); position:sticky; top:20px; }
.cur-bid-lbl { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.cur-bid-amt { font-family:'Barlow Condensed',sans-serif; font-size:38px; font-weight:800; line-height:1; }
.cur-bid-ct { font-size:13px; color:var(--muted); margin-top:2px; }
.timer-row {
  background:var(--gold-lt); border:1px solid rgba(196,123,10,.2);
  border-radius:var(--r); padding:10px 14px; margin:14px 0;
  display:flex; align-items:center; justify-content:space-between;
}
.timer-lbl { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--gold); }
.timer-val { font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:700; color:var(--gold); }
.dealer-gate { background:var(--dealer-lt); border:1px solid rgba(29,78,216,.25); border-radius:var(--r-lg); padding:18px; text-align:center; }
.dealer-gate-icon { font-size:30px; margin-bottom:8px; }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display:flex; position:fixed; inset:0; background:var(--dark); z-index:150;
  flex-direction:column; padding:24px 20px; overflow-y:auto;
  visibility:hidden; transform:translateX(100%);
  transition:transform .26s ease, visibility .26s;
}
.mobile-nav.open { visibility:visible; transform:translateX(0); }
.mobile-nav-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.mobile-nav-links { display:flex; flex-direction:column; }
.mobile-link { color:rgba(255,255,255,.82); font-size:22px; font-weight:600; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.07); cursor:pointer; }
.mobile-link:hover { color:#fff; }
.mobile-nav-foot { margin-top:auto; padding-top:28px; display:flex; flex-direction:column; gap:10px; }

/* ─── TOAST ─── */
.toast {
  position:fixed; bottom:28px; left:50%; transform:translateX(-50%);
  background:#1A1A1A; color:#fff; padding:12px 24px; border-radius:22px;
  font-size:14px; font-weight:500; z-index:400;
  width:max-content; max-width:calc(100vw - 24px); text-align:center; line-height:1.45;
  display:none; align-items:center; justify-content:center; gap:8px; box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.toast.show { display:flex; animation:toastIn .22s ease; }
.toast-undo { background:none; border:1px solid rgba(255,255,255,.45); color:#fff; border-radius:100px; padding:3px 13px; font-size:12.5px; font-weight:700; cursor:pointer; flex-shrink:0; }
.toast-undo:hover { background:rgba(255,255,255,.14); }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(8px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* dealer deal-shoot: per-vehicle Year/Make/Model row (stacks on phones) */
.veh-ymm { display:grid; grid-template-columns:72px minmax(0,1fr) minmax(0,1fr); gap:6px; margin-bottom:6px; }

/* ─── HOW IT WORKS tracks + FAQ accordions ─── */
.how-track { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:20px; letter-spacing:1.5px; text-transform:uppercase; color:var(--brand); text-align:center; margin:34px 0 22px; }
.how-track:first-of-type { margin-top:0; }
.how-faq { text-align:center; margin-top:40px; font-size:14.5px; color:var(--muted); }
.how-faq span { color:var(--brand); font-weight:700; cursor:pointer; }
.faq-cat { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:23px; margin:28px 0 12px; }
.faq-cat:first-of-type { margin-top:0; }
.faq-item { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); margin-bottom:10px; }
.faq-item summary { padding:15px 18px; font-weight:600; font-size:14.5px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; font-size:20px; font-weight:400; color:var(--muted); flex-shrink:0; line-height:1; transition:transform .15s; }
.faq-item[open] summary::after { transform:rotate(45deg); color:var(--brand); }
.faq-a { padding:0 18px 16px; font-size:13.5px; color:var(--muted); line-height:1.65; }
.faq-a .faq-link { color:var(--brand); cursor:pointer; font-weight:600; }

/* ─── RESPONSIVE ─── */
@media(max-width:1100px) {
  .leaders-rail { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:1024px) {
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .contractor-grid { grid-template-columns:repeat(2,1fr); }
  .how-steps { grid-template-columns:1fr; gap:36px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .sell-cta-inner { grid-template-columns:1fr; }
}
@media(max-width:768px) {
  .nav-search,.nav-links { display:none; }
  .hamburger { display:flex; }
  /* compact hero: stats stay in ONE row and the marketing paragraph hides, so
     "Ending Soon" starts on the first phone screen instead of ~1.5 screens down */
  .hero { min-height:0; }
  .hero-content { padding:26px 16px 22px; }
  .hero-sub { display:none; }
  .hero-meta { margin-bottom:14px; gap:8px; }
  .hero-bid-box { flex-direction:row; gap:0; width:100%; }
  .bid-stat { flex:1; padding:10px 6px; }
  .bid-stat-val { font-size:22px; }
  .hero-actions .btn-lg { width:100%; }
  .detail-cols { grid-template-columns:1fr; }
  .detail-gallery { height:220px; }
  .detail-gallery-icon { font-size:80px; }
  .fg-row { grid-template-columns:1fr; }
  .stats-strip-inner { gap:10px 18px; padding:10px 16px; }
  .strip-stat { font-size:11px; gap:5px; }   /* keep the labels — bare numbers read as broken */
  .strip-num { font-size:15px; }
  .leaders-rail { grid-template-columns:repeat(2,1fr); }
  /* iOS zooms the page on focus for any field under 16px — !important beats the
     handful of inline/high-specificity 12-14px fields (loc selects, sort, comment replies, bulk paste) */
  .inp, input.inp, select.inp, textarea.inp,
  input[type=text], input[type=number], input[type=email], input[type=password],
  input[type=tel], input[type=date], input[type=search], select, textarea { font-size:16px !important; }
  /* Sort moves OUT of the chip scroller on phones (it was overlaying the category
     chips) — a dedicated .m-sort-row renders below the chips instead */
  .sort-wrap, .hd-sort { display:none; }
  .veh-ymm { grid-template-columns:1fr; }   /* deal-shoot vehicle fields stack full-width */
  /* trust/decision badges were 8-9px — illegible on phones */
  .status-pill, .seller-badge, .nr-inline, .leader-cat, .cmt-role, .cmt-seller-badge, .cmt-mod, .cal-dow { font-size:11px; }
  .cal-dot.on { font-size:10px; }
  /* booking calendar: bigger touch targets (slot chips were ~25px tall in 4 columns) */
  .cal-times { grid-template-columns:repeat(3,1fr); gap:8px; }
  .cal-times .slot-chip { padding:10px 2px; font-size:13px; }
  .cal-nav { width:34px; height:34px; }
}
@media(max-width:540px) {
  .grid { grid-template-columns:minmax(0,1fr); }
  .contractor-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .how-steps { gap:28px; }
  .hero h1 { font-size:30px; }
  .type-tabs { grid-template-columns:1fr; }
  .radio-cards { grid-template-columns:1fr; }
  .detail-specs { grid-template-columns:1fr; }   /* two columns can't fit a VIN at 375px */
  .sec-hide { width:34px; height:34px; font-size:14px; }   /* fat-finger-safe hide button */
}

/* ─── MOBILE REDESIGN (≤768px only — desktop is untouched) ───
   Bottom tab bar, visible search, real touch targets, price-first lot view.
   Every rule here is display:none by default and only activates on phones. */
.tabbar, .m-search, .m-head-actions, .m-lot-summary, .bidbar-m, .qb-row, .m-sort-row, .loc-toggle { display:none; }
@media(max-width:768px){
  /* bottom tab bar — Home / Browse / Sell / Watching / Account, one thumb-tap away */
  .tabbar {
    position:fixed; left:0; right:0; bottom:0; z-index:145;
    display:flex; align-items:flex-end; justify-content:space-around;
    background:var(--surface); border-top:1px solid var(--border);
    padding:6px 4px calc(8px + env(safe-area-inset-bottom));
    box-shadow:0 -4px 18px rgba(0,0,0,.08);
  }
  .tabbar > button {
    background:none; border:none; display:flex; flex-direction:column; align-items:center; gap:2px;
    font-family:inherit; font-size:11px; font-weight:600; color:var(--muted);
    min-width:56px; padding:2px 4px; position:relative; cursor:pointer;
  }
  .tabbar .tb-ic { font-size:20px; line-height:1.15; }
  .tabbar > button.active { color:var(--brand); }
  .tab-sell { top:-14px; }
  .tb-sell-circle {
    width:50px; height:50px; border-radius:50%; background:var(--brand); color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:27px; font-weight:700; line-height:1;
    box-shadow:0 6px 16px rgba(232,40,31,.4); border:3px solid var(--surface);
  }
  .tb-dot { position:absolute; top:0; right:12px; width:9px; height:9px; border-radius:50%; background:var(--brand); border:2px solid var(--surface); display:none; }
  .tb-dot.show { display:block; }
  /* keep page content, FABs, toasts and the drawer clear of the bar */
  body { padding-bottom:calc(74px + env(safe-area-inset-bottom)); }
  .fab { bottom:calc(86px + env(safe-area-inset-bottom)); }
  .toast { bottom:calc(92px + env(safe-area-inset-bottom)); }
  .mobile-nav { padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
  /* header keeps the bell (with unread badge) + avatar visible on phones */
  .m-head-actions { display:flex; align-items:center; gap:10px; margin-left:auto; }
  /* visible search on Home + Browse — no more two-taps-into-a-drawer */
  .m-search { display:block; padding:12px 16px 0; }
  .m-search input {
    width:100%; padding:11px 18px; border:1px solid var(--border); border-radius:100px;
    background:var(--surface); color:var(--text); outline:none; box-shadow:var(--sh-sm);
  }
  .m-search input:focus { border-color:var(--brand); }
  /* filter chips grow to real touch targets; desktop hover-arrows disappear */
  .filter-bar-inner { height:60px; gap:8px; }
  .chip { padding:10px 16px; font-size:14px; }
  .fb-arrow { display:none !important; }
  /* Sell an Item + Refer & Earn share one row on phones (they were stacking) */
  .action-bar-btns { width:100%; flex-wrap:nowrap; }
  .action-bar-btns .btn { flex:1; padding:13px 8px; white-space:nowrap; }
  /* card micro-type bumps for phone readability */
  .card-sub, .card-bids-ct { font-size:13px; }
  .card-seller, .card-stats { font-size:12px; }
  .card-bid-lbl, .reserve-flag, .vote-hint { font-size:11px; }
  /* lot detail: price + clock summary right under the title */
  .m-lot-summary {
    display:flex; background:var(--surface); border:1px solid var(--border);
    border-radius:var(--r-lg); padding:10px 14px; margin-bottom:14px; gap:14px;
  }
  .m-lot-summary > div { flex:1; }
  .m-lot-summary > div + div { border-left:1px solid var(--border); padding-left:14px; }
  .mls-lbl { display:block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); }
  .mls-val { display:block; font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:700; line-height:1.15; }
  .mls-val.gold { color:var(--gold); }
  /* sticky bid bar pinned to the bottom of the lot modal — bid from anywhere */
  .bidbar-m {
    position:sticky; bottom:0; z-index:8; margin-top:8px;
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    background:var(--surface); border-top:1px solid var(--border);
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .bb-lbl { display:block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); }
  .bb-val { font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:700; }
  .bb-timer { color:var(--gold); font-size:16px; }
  .bidbar-m .btn { padding:12px 22px; }
  /* quick-bid chips — most bids never need the keyboard */
  .qb-row { display:flex; gap:8px; margin:10px 0 2px; }
  .qb-row .chip { flex:1; justify-content:center; padding:11px 6px; font-size:14px; font-weight:700; border-color:var(--brand); color:var(--brand); background:transparent; }
  /* gallery: fatter dots + bigger Watch/Share/Report targets */
  .gal-dot { width:10px; height:10px; }
  .bid-box [id^="watchBtn-"], .bid-box .bb-act { padding:10px 6px; }
  /* sort gets its own row under the chips (was overlaying them in the scroller) */
  .m-sort-row {
    display:flex; align-items:center; gap:10px; padding:9px 16px;
    background:var(--surface); border-bottom:1px solid var(--border);
  }
  .m-sort-row label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); flex-shrink:0; }
  .m-sort-row select { flex:1; padding:9px 12px; border:1px solid var(--border); border-radius:var(--r); background:var(--bg); color:var(--text); outline:none; }
  /* "Find listings near you" is collapsible on phones */
  .loc-toggle {
    display:inline-flex; align-items:center; gap:4px; margin-left:10px;
    background:var(--bg); border:1px solid var(--border); border-radius:100px;
    padding:5px 13px; font-size:12px; font-weight:700; color:var(--muted); cursor:pointer;
  }
  .loc-bar.collapsed .loc-fields { display:none; }
  .loc-bar.collapsed .loc-bar-inner { padding-top:9px; padding-bottom:9px; }
  /* lot detail must never scroll sideways on a phone */
  .modal { overflow-x:hidden; }
  .detail-cols > div { min-width:0; }
  .detail-body { padding:18px 14px; }
  .detail-specs { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .qb-row .chip { min-width:0; padding:11px 4px; font-size:13px; overflow:hidden; text-overflow:ellipsis; }
  .m-lot-summary .mls-val { font-size:22px; }
}
@media(max-width:540px){
  /* phones get nearly the full width for the lot view (20px gutters → 12px) */
  .overlay { padding:12px; }
  .modal { max-height:calc(100dvh - 24px); }
}
/* ─── CATEGORY SHEET (Browse tap on phones) ─── */
.cat-sheet { display:none; position:fixed; inset:0; z-index:170; background:rgba(0,0,0,.5); align-items:flex-end; }
.cat-sheet.open { display:flex; }
.cat-sheet-panel {
  width:100%; background:var(--surface); border-radius:18px 18px 0 0;
  max-height:72vh; overflow-y:auto; overscroll-behavior:contain;
  padding:6px 0 calc(14px + env(safe-area-inset-bottom));
  animation:sheetUp .22s ease;
}
@keyframes sheetUp { from{transform:translateY(48px);opacity:.5} to{transform:none;opacity:1} }
.cat-sheet-hd { display:flex; align-items:center; justify-content:space-between; padding:14px 18px 8px; font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:21px; letter-spacing:.4px; }
.cat-sheet-x { background:var(--bg); border:1px solid var(--border); border-radius:50%; width:36px; height:36px; font-size:15px; color:var(--text); cursor:pointer; }
.cat-sheet-item {
  display:flex; align-items:center; justify-content:space-between; width:100%;
  background:none; border:none; border-top:1px solid var(--border);
  padding:14px 18px; font-size:15px; font-weight:600; color:var(--text);
  text-align:left; font-family:inherit; cursor:pointer;
}
.cat-sheet-item.all { color:var(--brand); }
.cat-sheet-item .cs-arrow { color:var(--muted); font-size:15px; }
/* Two-level browse: a department expands in place to its sub-categories */
.cs-caret { transition:transform .18s ease; }
.cat-sheet-group.open { color:var(--brand); }
.cat-sheet-group.open .cs-caret { transform:rotate(90deg); color:var(--brand); }
.cat-sheet-subs { display:none; background:var(--bg); }
.cat-sheet-subs.open { display:block; }
.cat-sheet-sub {
  display:flex; align-items:center; width:100%;
  background:none; border:none; border-top:1px solid var(--border);
  padding:12px 18px 12px 34px; font-size:14px; font-weight:500; color:var(--text-soft);
  text-align:left; font-family:inherit; cursor:pointer; touch-action:manipulation;
}
.cat-sheet-sub.cs-sub-all { color:var(--brand); font-weight:600; }
.cat-sheet-sub:active { transform:scale(.98); }
@media (prefers-reduced-motion: reduce) { .cs-caret { transition:none; } }

/* ─── UX POLISH (2026-07 audit quick wins) ─── */
/* touch: kill the legacy tap delay + give every tap a felt response */
button, .chip, .card, .es-card, .mobile-link, .tabbar > button, .gal-arrow, .cat-sheet-item, .want { touch-action:manipulation; }
.btn:active, .chip:active, .tabbar > button:active, .cat-sheet-item:active, .vote-btn:active { transform:scale(.97); }
/* user-written text must never blow a layout open (pasted URLs, long usernames) */
.cmt-text, .qa-q, .qa-a, .deal-msg, .review-text, .notif-text, .card-title, .card-sub, .mini-row-title, .mini-row-sub { overflow-wrap:anywhere; }
@media(max-width:768px){
  /* the tab bar's red Sell circle already owns this action on phones */
  #fabSell { display:none; }
}
@media(max-width:540px){
  .detail-specs { grid-template-columns:1fr; }   /* re-asserted AFTER the ≤768 two-col rule — VINs need the full width at 375px */
}
/* vestibular safety: honour the OS "reduce motion" setting app-wide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
/* ── 🧾 Receipt printing: with the receipt open, print ONLY the receipt ── */
@media print {
  body:has(#modal-receipt.open) > *:not(#modal-receipt) { display: none !important; }
  body:has(#modal-receipt.open) #modal-receipt {
    position: static !important; display: block !important; background: none !important;
    padding: 0 !important; inset: auto !important;
  }
  #modal-receipt .modal { box-shadow: none !important; max-width: 100% !important; width: 100% !important; border: none !important; background: #fff !important; }
  #modal-receipt .modal-hd, #modal-receipt .modal-close, #modal-receipt .btn { display: none !important; }
  #modal-receipt .modal-body { padding: 0 !important; max-height: none !important; overflow: visible !important; }
  #receiptPrint { border-radius: 0 !important; padding: 0 !important; }
}
/* ══════════ LIVE BOOT — no demo flash ══════════
   <body> ships class="bn-booting"; a live build keeps it until bnBoot() paints real
   inventory (or fails honestly). It hides the lot rails — whose demo content would
   otherwise flash for ~a second — and the grid shows shimmer placeholders instead. */
.bn-booting #ending, .bn-booting #trending, .bn-booting #coming, .bn-booting #recent { display: none !important; }
.skel-card { position: relative; overflow: hidden; min-height: 292px; border-radius: var(--r-lg, 14px); background: var(--surface); border: 1px solid var(--border); }
.skel-card::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent 32%, rgba(128,128,128,.13) 50%, transparent 68%); animation: bn-shimmer 1.4s ease-in-out infinite; }
@keyframes bn-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel-card::after { animation: none; } }
