/* Smoke & Satin Auctions — dark theme, mobile-first. */

:root {
  --bg: #141014;
  --bg2: #1d181d;
  --card: #221c22;
  --line: #352c35;
  --text: #f2e9f2;
  --muted: #a898a8;
  --accent: #c86b9a;      /* dusty rose */
  --accent2: #8a5a9e;     /* plum */
  --good: #6fbf8f;
  --warn: #d8a24a;
  --bad: #d96a6a;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand em { color: var(--accent); font-style: normal; font-weight: 400; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 0.8rem; font-weight: 800; margin-right: 0.4rem;
}
.topbar nav { margin: 0 auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }
.nav-user { color: var(--muted); font-size: 0.9rem; }

/* ---------- layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 2rem 1rem; border-top: 1px solid var(--line); }
h1 { font-size: 1.6rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }

/* ---------- buttons / forms ---------- */
.btn, .btn-small {
  display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: var(--radius);
  padding: 0.7rem 1.4rem; font-size: 1rem; cursor: pointer; text-decoration: none;
}
.btn:hover, .btn-small:hover { filter: brightness(1.1); }
.btn-big { font-size: 1.15rem; padding: 0.9rem 2rem; width: 100%; }
.btn-small { padding: 0.35rem 0.7rem; font-size: 0.85rem; border-radius: 7px; }
.btn-small:disabled { opacity: 0.4; cursor: default; }
.btn-danger { background: var(--bad); }
.btn-ghost {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 7px; padding: 0.3rem 0.7rem; cursor: pointer; font-size: 0.85rem;
}
.inline-form { display: inline; }

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; max-width: 560px; display: grid; gap: 0.9rem;
}
.form-card label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.form-card label.radio { display: block; font-weight: 400; padding: 0.6rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.form-card label.radio input { margin-right: 0.5rem; }
input, select, textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.6rem 0.75rem; font-size: 1rem; width: 100%;
}
input[type="radio"], input[type="checkbox"] { width: auto; }
input[type="file"] { padding: 0.4rem 0; border: none; background: none; }
.form-row { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.alert { padding: 0.75rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.alert-error { background: #3a1f24; border: 1px solid var(--bad); color: #f3c1c1; }
.alert-ok { background: #1e3327; border: 1px solid var(--good); color: #c4e8d2; }

/* ---------- lot cards ---------- */
.lot-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lot-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); display: block;
}
.lot-card:hover { border-color: var(--accent); }
.lot-thumb { position: relative; aspect-ratio: 4/3; background: var(--bg2); overflow: hidden; }
.lot-thumb img, .lot-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-thumb .badge { position: absolute; top: 0.5rem; left: 0.5rem; }
.no-photo { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }
.lot-card-body { padding: 0.8rem 1rem; }
.lot-card-body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.lot-meta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.3rem; }
.price { font-weight: 700; color: var(--accent); font-size: 1.1rem; }

.badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; padding: 0.2rem 0.55rem; border-radius: 20px; }
.badge-live { background: var(--good); color: #0e1a12; }
.badge-sched { background: var(--warn); color: #241a08; }
.badge-ended { background: #555; color: #ddd; }
.reserve-flag { color: var(--warn); font-size: 0.85rem; }
.reserve-ok { color: var(--good); font-size: 0.85rem; }

/* ---------- lot detail ---------- */
.lot-detail { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .lot-detail { grid-template-columns: 1fr 1fr; } }
.lot-photo { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; background: var(--bg2); }
.lot-video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/9; background: #000; }
.msrp { margin-top: 4px; }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.lot-thumb-sm { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.lot-head { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.lot-info h1 { margin-top: 0.5rem; }
.countdown { font-size: 1.1rem; margin: 0.5rem 0; }
.countdown strong { color: var(--accent); }
.current-bid { font-size: 1.25rem; margin: 0.5rem 0; }
.lot-desc { white-space: normal; color: #ddd2dd; }
.bid-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.7rem; margin-top: 1rem; max-width: 480px; }
.leader-tag { background: var(--good); color: #0e1a12; font-size: 0.7rem; font-weight: 700; border-radius: 10px; padding: 0.1rem 0.45rem; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr:last-child td { border-bottom: none; }
.table .actions { white-space: nowrap; }
.table .actions .btn-small { margin: 0.1rem; }
.win { color: var(--good); font-weight: 700; }
.lose { color: var(--bad); font-weight: 700; }
.status-pill { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0.15rem 0.6rem; font-size: 0.85rem; }

/* ---------- invoice ---------- */
.invoice-done { background: var(--card); border: 1px solid var(--good); border-radius: var(--radius); padding: 1.25rem; max-width: 560px; }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.admin-nav a { text-decoration: none; font-weight: 600; }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; display: grid; gap: 0.25rem; }
.stat strong { font-size: 1.8rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- age gate ---------- */
.gate-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem;
  background: radial-gradient(ellipse at center, #241a24 0%, var(--bg) 70%); }
.gate { text-align: center; max-width: 420px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 2.5rem 2rem; }
.gate .brand-mark { width: 3.5rem; height: 3.5rem; font-size: 1.3rem; margin: 0; }
.gate-brand { margin-bottom: 1rem; }
.gate h1 { margin: 0 0 0.5rem; }
.gate-sub { color: var(--muted); margin: 0 0 1.25rem; }
.gate-q { font-size: 1.15rem; margin: 0 0 1.5rem; }
.gate form { margin-bottom: 1rem; }
.gate-exit { color: var(--muted); font-size: 0.9rem; }
.ship-note { color: var(--accent, #b48be0); font-weight: 600; margin: 0.5rem 0; }
.ship-note-card { color: var(--muted); font-size: 0.85rem; }
.ship-box { border: 1px solid var(--border, #333); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
.ship-box ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.lot-thumb-sm.active { outline: 2px solid var(--accent, #b48be0); outline-offset: 1px; }
.lot-thumb-sm.vid-thumb { position: relative; display: inline-block; padding: 0; overflow: hidden; }
.lot-thumb-sm.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-thumb-sm.vid-thumb::after { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.brand-logo { height: 2.6rem; border-radius: 8px; display: block; }
.gate-logo { max-width: 320px; width: 100%; border-radius: 12px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.cat-chip { display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.cat-chip:hover { color: var(--text); border-color: var(--accent); }
.cat-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-chip.small { font-size: 0.8rem; padding: 0.2rem 0.7rem; }
.note-form { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.note-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.note-form textarea { width: 100%; margin-top: 0.4rem; padding: 0.5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
.track-box { margin: 1rem 0; padding: 0.9rem 1.1rem; border: 1px solid var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 1.05rem; }
.note-flag { color: var(--accent); }
img { max-width: 100%; }
.thumbs { flex-wrap: wrap; }
.topbar nav a.btn-small { color: #fff; }
.how-steps { display: grid; gap: 1rem; margin: 1.5rem 0; }
.how-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.how-step h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.how-step p { margin: 0; color: var(--text); }
.gate-terms { display: flex; align-items: flex-start; gap: 0.5rem; margin: 1rem auto; max-width: 26rem; font-size: 0.9rem; text-align: left; cursor: pointer; }
.gate-terms input { margin-top: 0.2rem; accent-color: var(--accent); }
.gate-terms a { color: var(--accent); }
.gate-error { color: #e5484d; font-size: 0.9rem; margin: 0.5rem 0; }
.badge-pend { background: #7c5c1e; color: #ffd97a; }
.lots-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lots-head h1 { margin: 0; }

/* ---------- mobile menu ---------- */
.menu-toggle {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  margin-left: auto; padding: 0.25rem 0.5rem;
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .topbar { flex-wrap: nowrap; }
  .topbar nav.main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    margin-left: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35); z-index: 60;
  }
  .topbar nav.main-nav.open { display: flex; }
  .topbar nav.main-nav a {
    padding: 0.85rem 1.25rem; border-top: 1px solid var(--line);
  }
  .topbar nav.main-nav a.btn-ghost {
    margin: 0.85rem 1.25rem; text-align: center;
  }
}
@media (max-width: 760px) {
  .post-item-btn { display: none; }
}

/* ---------- how-it-works columns ---------- */
.how-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; align-items: start; }
.how-col-title { margin: 0 0 1rem; font-size: 1.4rem; }
.how-step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
@media (max-width: 760px) {
  .how-cols { grid-template-columns: 1fr; }
}

/* Lightbox: click a lot photo to view it full-size */
#mainMedia .lot-photo { cursor: zoom-in; }
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 9999; cursor: zoom-out; padding: 2vh 2vw; }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 96vw; max-height: 96vh; object-fit: contain; border-radius: var(--radius); }
#lightboxClose { position: absolute; top: 10px; right: 22px; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* Collapsible category menu */
.cat-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--text); font-size: 0.95rem; cursor: pointer; margin: 0 0 0.75rem; }
.cat-toggle:hover { border-color: var(--accent); }
.cat-toggle .arrow { transition: transform 0.2s; font-size: 0.8em; }
.cat-toggle.open .arrow { transform: rotate(180deg); }
.cat-chips.collapsible { display: none; }
.cat-chips.collapsible.open { display: flex; }

/* PWA install banner */
#installBanner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem; background: var(--card);
  border-top: 1px solid var(--line);
}
#installBanner[hidden] { display: none; }
#installBanner span { flex: 1; font-size: 0.9rem; }
#installDismiss {
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; padding: 0.25rem 0.5rem;
}

/* ------------------------------ loves -------------------------------- */
.love-btn {
  display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem;
  font-size: 0.9rem; background: var(--bg2); color: var(--text);
  user-select: none; -webkit-user-select: none;
}
.love-btn:hover { border-color: var(--accent); }
.love-btn.loved { border-color: #e75480; background: rgba(231, 84, 128, 0.12); }
.love-btn .love-count { font-weight: 700; }
.love-btn.love-big { font-size: 1.05rem; padding: 0.35rem 0.9rem; }

/* --------------------------- pickup box ------------------------------ */
.pickup-box {
  background: var(--bg2); border: 1px solid var(--good); border-radius: var(--radius);
  padding: 0.7rem 1rem; margin: 0.8rem 0;
}

/* ---------- POSH parity: fonts, header, overlay cards ---------- */
/* Same font setup as POSH: Bebas Neue (loaded via Google Fonts in the
 * page head) for headings, brand accents, prices, buttons and nav. */
h1, h2, h3, .brand, .price, .stat strong,
.btn, .btn-small, button {
  font-family: "Bebas Neue", "Fredoka", system-ui, sans-serif;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.main-nav > a, .cat-menu-btn {
  font-family: "Bebas Neue", "Fredoka", system-ui, sans-serif;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
}

/* "+ List an item" CTA, top right (POSH pattern, S&S colors). */
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.6rem 1.4rem; border-radius: 999px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { filter: brightness(1.12); color: #fff; }

/* Header right cluster: Categories dropdown + List CTA, outside the nav. */
.topbar-right { display: flex; align-items: center; gap: 0.9rem; }

/* Header Categories dropdown (POSH toggle + collapsible panel pattern). */
.cat-menu { position: relative; }
.cat-menu-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0;
}
.cat-menu-btn:hover { color: var(--text); }
.cat-menu-btn .arrow { transition: transform 0.2s; font-size: 0.8em; }
.cat-menu-btn.open .arrow { transform: rotate(180deg); }
.cat-menu-panel {
  display: none; position: absolute; top: calc(100% + 0.6rem); right: 0;
  transform: none; min-width: 230px; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45); padding: 0.4rem; z-index: 80;
}
.cat-menu-panel.open { display: block; }
.cat-menu-panel a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.5rem 0.7rem; border-radius: 7px; color: var(--text);
  text-decoration: none; font-size: 0.95rem;
}
.cat-menu-panel a:hover { background: var(--bg2); color: var(--text); }
.cat-count {
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 0.05rem 0.55rem; font-size: 0.8rem;
}
@media (max-width: 760px) {
  .cat-menu-panel { min-width: 210px; }
  .topbar-right { margin-left: auto; order: 2; }
  .menu-toggle { order: 3; margin-left: 0; }
}

/* POSH-style overlay cards: title/price/timer/bids/love over the photo on
 * desktop; the below-image body returns on small screens. */
.lot-card.lot-overlay .lot-thumb { position: relative; }
.lot-card.lot-overlay .lot-thumb img, .lot-card.lot-overlay .lot-thumb video { transition: transform 0.35s ease; }
.lot-card.lot-overlay:hover .lot-thumb img, .lot-card.lot-overlay:hover .lot-thumb video { transform: scale(1.08); }
.lot-overlay-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 0.8rem 0.7rem;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 20%, rgba(0,0,0,0.16) 60%, transparent); /* Fainter gradient restored Oct 17, 2026 (Nik) — about half the original 0.72/0.35 strength. */
  color: #fff; pointer-events: none;
}
.lot-overlay-info .love-btn { pointer-events: auto; position: relative; z-index: 3; }
.lot-overlay-title { font-weight: 700; font-size: 0.95rem; line-height: 1.25; margin-bottom: 0.25rem; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.lot-overlay-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.lot-overlay-meta .price { color: #fff; }
.lot-overlay-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 0.3rem; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.lot-mobile-body { display: none; }
@media (max-width: 760px) {
  .lot-card.lot-overlay .lot-overlay-info { display: none; }
  .lot-card.lot-overlay .lot-mobile-body { display: block; }
}

/* Mobile card videos (lotCard in views.js): fill the thumb exactly like
 * the photo so the snap-slider layout never shifts. Playback is driven by
 * the IntersectionObserver script in views.js, so only on-screen cards
 * play; off-screen cards pause. */
@media (max-width: 760px) {
  .lot-card .lot-thumb video.card-video { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* Desktop hover reveal: on hover-capable pointers the card title stays
 * hidden until the card is hovered (price + hearts stay visible at all
 * times). Scoped strictly to (hover: hover) and (pointer: fine) so
 * touch/mobile rendering is exactly as before. */
@media (hover: hover) and (pointer: fine) {
  .lot-card.lot-overlay .lot-overlay-title {
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .lot-card.lot-overlay:hover .lot-overlay-title,
  .lot-card.lot-overlay:focus-within .lot-overlay-title {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}

/* My Feed masonry (POSH pattern) */
.feed-masonry { columns: 4; column-gap: 1rem; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 1rem; }
@media (max-width: 1100px) { .feed-masonry { columns: 3; } }
.sponsored-badge { position: absolute; top: 0.6rem; left: 0.6rem; background: #F59E0B; color: #1A1A1A; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.7rem; border-radius: 999px; z-index: 2; }
.feed-item { display: block; position: relative; background: var(--bg2); min-height: 120px; break-inside: avoid; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; }
.feed-hit { display: block; }
.feed-item img { width: 100%; display: block; transition: transform 0.35s ease; }
.feed-item:hover img { transform: scale(1.06); }
@media (hover: none) { .feed-item:active img { transform: scale(1.04); } }
.feed-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 0.8rem 0.7rem; background: linear-gradient(to top, rgba(0,0,0,0.55) 20%, rgba(0,0,0,0.25) 60%, transparent); color: #fff; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.feed-item:hover .feed-overlay { opacity: 1; }
@media (hover: none) { .feed-item:active .feed-overlay { opacity: 1; } }
.feed-title { font-weight: 700; font-size: 0.95rem; line-height: 1.25; margin-bottom: 0.25rem; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.feed-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.feed-bid { font-weight: 800; }
.feed-meta .countdown { opacity: 0.9; }
.feed-item .love-btn { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 3; background: rgba(0,0,0,0.45); padding: 0.2rem 0.55rem; border-radius: 999px; }
.feed-no-photo { min-height: 180px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
@media (max-width: 640px) { .feed-masonry { columns: 2; column-gap: 0.6rem; } .feed-item { margin-bottom: 0.6rem; } }
.feed-top p { margin: 0 0 0.5rem; }
.feed-top { margin-bottom: 0.25rem; }

/* Seller byline on lot pages: name reads as a highlighted profile link. */
.seller-line a.seller-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.seller-line a.seller-link:hover { color: var(--text); }

/* /lots + category grids: full width, 6 across on wide desktops,
 * stepping down with the viewport (POSH discovery density). */
.lot-grid.lots-wide {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding: 0 1rem;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1500px) { .lot-grid.lots-wide { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1150px) { .lot-grid.lots-wide { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .lot-grid.lots-wide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .lot-grid.lots-wide { grid-template-columns: repeat(2, 1fr); } }
.lot-photos .lot-desc { margin-top: 1rem; }

/* ---- Dickels games (Oct 16 2026) ---- */
.dickel-chip { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 0.35rem 0.8rem; margin-right: 0.6rem; font-size: 0.95rem; }
.eggplant-marker { position: absolute; right: 8px; bottom: 8px; z-index: 6; font-size: 1.7rem;
  cursor: pointer; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); animation: eggBounce 1.2s ease-in-out infinite; }
.lot-photos { position: relative; }
@keyframes eggBounce { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-6px) rotate(8deg); } }
.gift-banner { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; border-radius: 12px;
  padding: 0.8rem 1rem; margin: 0 0 1rem; font-size: 1.02rem; }
.gift-banner a { color: #fff; font-weight: 700; }
.gift-banner .gift-store-btn { display: inline-block; margin-left: .35rem; text-decoration: none; background: var(--accent); padding: 0.35rem 0.8rem; border-radius: 7px; }
.earn-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.earn-row:last-of-type { border-bottom: 0; }
.earn-row.done { opacity: 0.75; }
.earn-amt { font-weight: 800; color: #a855f7; white-space: nowrap; }
.king { max-width: 860px; margin: 1.6rem auto; border: 2px solid #f59e0b; border-radius: 16px; padding: 1rem 1.1rem;
  background: linear-gradient(160deg, var(--card), var(--bg2)); }
.king-head { font-family: "Bebas Neue", "Fredoka", system-ui, sans-serif; font-size: 1.7rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.king-card { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: var(--text); }
.king-img { position: relative; flex: 0 0 110px; width: 110px; height: 110px; border-radius: 12px; overflow: hidden; background: var(--bg2); }
.king-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.king-crown { position: absolute; top: 2px; left: 6px; font-size: 1.5rem; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.king-info { display: flex; flex-direction: column; gap: 0.25rem; }
.king-title { font-weight: 800; font-size: 1.15rem; }
.king-hearts { font-weight: 700; color: #e11d48; }
.king-spot { margin: 0.6rem 0 0; }
.guess-box { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; background: var(--bg2); }
.guess-box h3 { margin: 0 0 0.4rem; }
.guess-list { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.guess-form { display: flex; gap: 0.6rem; align-items: end; flex-wrap: wrap; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1rem 0; }
.games-card h2 { margin-top: 0; }
.swipe-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 10002;
  background: #7c3aed; color: #fff; font-weight: 800; padding: 0.6rem 1.1rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); }

/* --- Oct 16 2026 pass: pickup badges, wins-first, receipts, KotH --- */
.pickup-note { color: var(--accent, #b48be0); font-weight: 600; margin: 0.5rem 0; }
.pickup-note-card { color: var(--muted); font-size: 0.85rem; }
.gift-dickel-form { margin: 0.35rem 0 0.6rem; }
.wins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }
.win-card { display: flex; gap: 0.8rem; align-items: center; background: var(--card); border: 2px solid #f59e0b; border-radius: 14px; padding: 0.7rem; }
.win-photo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg2); display: block; }
.win-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.win-photo .no-photo { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 0.7rem; color: var(--muted); }
.win-title { font-weight: 800; color: var(--text); text-decoration: none; display: block; }
.win-bid { margin: 0.15rem 0; }
.win-state { margin-bottom: 0.4rem; }
/* King of the Hill — spotlight card: photo left, details right */
.king { text-align: center; }
.king-crown-big { font-size: 2.6rem; line-height: 1; animation: kingBob 2s ease-in-out infinite; }
@keyframes kingBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.king .king-card { display: flex; gap: 1.4rem; align-items: stretch; margin: 0.9rem 0 0; text-align: left; }
.king .king-img { display: block; flex: 0 0 340px; width: 340px; height: auto; min-height: 280px; }
.king-info { justify-content: center; }
.king-info { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; min-width: 0; }
.king-title { margin-top: 0; font-size: 1.25rem; }
.king-ends { font-weight: 600; }
.king-ends .countdown { color: var(--accent); }
@media (max-width: 560px) {
  .king .king-card { flex-direction: column; text-align: center; }
  .king .king-img { flex: none; width: 100%; max-width: 300px; height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .king-info { align-items: center; }
}
.king-title a { color: var(--text); text-decoration: none; }
.king-sub { margin: 0.2rem 0 0; }
.king-give { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.king-follow-btn { margin-top: 0.5rem; }
/* Receipt-style invoice pages */
.receipt { max-width: 560px; margin: 1.2rem auto; background: #fdfdf8; color: #1d1a1d; border-radius: 8px; padding: 1.8rem 1.5rem; box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.receipt-brand { text-align: center; border-bottom: 2px dashed #c9c2c9; padding-bottom: 1rem; }
.receipt-brand-name { font-family: "Bebas Neue", "Fredoka", sans-serif; font-size: 1.8rem; letter-spacing: .06em; }
.receipt-sub { color: #6b656b; font-size: 0.85rem; }
.receipt-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; padding: 1rem 0; border-bottom: 2px dashed #c9c2c9; }
.receipt-meta span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; color: #8a848a; }
.receipt-lines { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.receipt-lines td { padding: 0.45rem 0; border-bottom: 1px dotted #d8d2d8; vertical-align: top; }
.receipt-lines .r-amt { text-align: right; white-space: nowrap; font-weight: 700; }
.receipt-lines .receipt-total td { border-top: 2px solid #1d1a1d; border-bottom: none; font-size: 1.15rem; font-weight: 800; padding-top: 0.7rem; }
.receipt-thanks { text-align: center; margin: 1.2rem 0 0; font-weight: 700; }
.receipt .muted { color: #6b656b; }
.receipt a { color: #7c3aed; }
/* Dark-theme panels inside the light receipt (choose-shipping form,
 * chosen-state box, store-note form, pickup box) sit on near-black
 * cards — force light text so nothing renders dark-on-dark
 * (owner-reported contrast bug, Oct 16 2026). */
.receipt .form-card, .receipt .invoice-done, .receipt .note-form { color: var(--text); }
.receipt .form-card .muted, .receipt .invoice-done .muted, .receipt .note-form .muted { color: var(--muted); }
.receipt .form-card a, .receipt .invoice-done a, .receipt .note-form a { color: var(--accent); }
.receipt .form-card label.radio { border-color: var(--line); background: var(--bg2); }
.pickup-box { color: var(--text); }
@media print {
  .topbar, .footer, #spinFab, #installBanner { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; margin: 0 auto; }
}

/* ---------- Contact Us pull-up modal (footer link, Oct 17 2026) ---------- */
.contact-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 6, 10, 0.72);
  display: flex; align-items: flex-end; justify-content: center;
}
.contact-overlay[hidden] { display: none; }
.contact-modal {
  position: relative; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 16px 16px 0 0;
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto;
  padding: 1.25rem 1.25rem 1.5rem;
  animation: contact-slide-up 0.25s ease;
}
@keyframes contact-slide-up { from { transform: translateY(24px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 700px) {
  .contact-overlay { align-items: center; }
  .contact-modal { border-bottom: 1px solid var(--line); border-radius: 16px; }
}
.contact-modal h2 { border: none; margin: 0 2rem 0.9rem 0; }
.contact-close {
  position: absolute; top: 0.7rem; right: 0.8rem;
  background: transparent; border: none; color: var(--muted);
  font-size: 1.15rem; cursor: pointer; padding: 0.3rem 0.5rem;
}
.contact-close:hover { color: var(--text); }
.contact-form { display: grid; gap: 0.9rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.contact-form .alert { margin: 0; }
.contact-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contactSuccess { text-align: center; padding: 1rem 0 0.5rem; font-size: 1.05rem; }

/* ---------- Register-to-view guest popup (8s after load, Oct 17 2026) ---------- */
.regpop-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 6, 10, 0.72);
  display: flex; align-items: flex-end; justify-content: center;
}
.regpop-overlay[hidden] { display: none; }
.regpop-modal {
  position: relative; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 16px 16px 0 0;
  width: min(480px, 100%); max-height: 92vh; overflow-y: auto;
  padding: 1.5rem 1.25rem 1.6rem; text-align: center;
  animation: contact-slide-up 0.25s ease;
}
@media (min-width: 700px) {
  .regpop-overlay { align-items: center; }
  .regpop-modal { border-bottom: 1px solid var(--line); border-radius: 16px; }
}
.regpop-modal h2 { border: none; margin: 0 2rem 0.75rem; }
.regpop-text { color: var(--muted); margin: 0 0 1.25rem; }
.regpop-actions { display: flex; gap: 0.6rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.regpop-btn { text-decoration: none; }
.regpop-close {
  position: absolute; top: 0.7rem; right: 0.8rem;
  background: transparent; border: none; color: var(--muted);
  font-size: 1.15rem; cursor: pointer; padding: 0.3rem 0.5rem;
}
.regpop-close:hover { color: var(--text); }


/* Guest blur (Oct 17 2026): badge over blurred photos + lot-page prompt. */
.blur-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(18, 8, 12, 0.86); color: #fff; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; z-index: 4; pointer-events: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.blur-register-prompt { margin: 0 0 1rem; padding: 0.9rem 1rem; border: 1px solid #b04a6b; border-radius: 10px; background: rgba(176, 74, 107, 0.10); text-align: center; }
.blur-register-prompt .btn { margin: 0 0.35rem; }
.king-img { position: relative; }
.swipe-card { position: relative; }
