/* ============================================================
   DEVO's Store — dark theme, teal-green glow
   ============================================================ */

:root {
  --bg: #050f0b;
  --bg2: #081a12;
  --panel: #0a2016;
  --panel2: #0d2a1c;
  --line: rgba(46, 230, 168, 0.22);
  --line-soft: rgba(46, 230, 168, 0.12);
  --teal: #2ee6a8;
  --teal-bright: #5cffc4;
  --teal-dim: #17b57f;
  --text: #eafff5;
  --muted: #9fd8c0;
  --faint: #6fae94;
  --danger: #ff6b81;
  --gold: #ffd166;
  --radius: 16px;
  --glow: 0 0 18px rgba(46, 230, 168, 0.35), 0 0 42px rgba(46, 230, 168, 0.12);
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Anton", "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(46, 230, 168, 0.14), transparent 60%),
    radial-gradient(800px 480px at 90% 0%, rgba(46, 230, 168, 0.09), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg) 320px);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: 0.04em; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); text-transform: uppercase; }
h2 .glow-word { color: var(--teal); text-shadow: 0 0 16px rgba(46, 230, 168, 0.65); }
p { line-height: 1.55; }
a { color: var(--teal-bright); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- config notice ---------- */
.config-notice {
  background: #3a2b05;
  color: #ffe9a8;
  border-bottom: 1px solid rgba(255, 209, 102, 0.4);
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.92rem;
}

/* ---------- header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 1rem;
  background: rgba(5, 15, 11, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.wordmark {
  font-family: var(--font-head);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--teal); text-shadow: 0 0 14px rgba(46, 230, 168, 0.8); }

.main-nav { display: flex; gap: 1.15rem; flex-wrap: wrap; align-items: center; }
.main-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(46, 230, 168, 0.07);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--glow);
  background: rgba(46, 230, 168, 0.14);
}
.btn:active { transform: scale(0.96); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--teal-bright), var(--teal-dim));
  color: #032117;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(46, 230, 168, 0.35);
}
.btn-primary:hover { background: linear-gradient(180deg, #7dffd2, var(--teal)); color: #032117; }

.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255, 107, 129, 0.5); color: #ffb3bf; background: rgba(255, 107, 129, 0.08); }
.btn-danger:hover { border-color: var(--danger); box-shadow: 0 0 18px rgba(255, 107, 129, 0.3); background: rgba(255, 107, 129, 0.15); }
.btn-small { padding: 0.35rem 0.7rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

.wallet-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-color: rgba(46, 230, 168, 0.55);
  box-shadow: inset 0 0 12px rgba(46, 230, 168, 0.15), 0 0 12px rgba(46, 230, 168, 0.2);
}
.wallet-pill svg { width: 18px; height: 18px; fill: var(--teal-bright); filter: drop-shadow(0 0 5px rgba(46, 230, 168, 0.8)); }
.wallet-pill.bump { animation: bump 0.45s ease; }
@keyframes bump { 30% { transform: scale(1.14); } }

.count-badge {
  background: var(--teal); color: #032117;
  border-radius: 999px; padding: 0.05rem 0.45rem;
  font-size: 0.78rem; font-weight: 800;
}

.auth-area { display: inline-flex; align-items: center; gap: 0.5rem; }
.auth-hello { font-weight: 700; color: var(--teal-bright); white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 3.2rem 1rem 2rem;
  animation: fadeUp 0.7s ease both;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  text-transform: uppercase;
  margin-bottom: 0.15em;
}
.hero h1 .glow-word { color: var(--teal); text-shadow: 0 0 22px rgba(46, 230, 168, 0.75), 0 0 60px rgba(46, 230, 168, 0.3); }
.hero .tagline { color: var(--muted); font-size: 1.05rem; margin: 0.2rem auto 1.4rem; max-width: 560px; }

.hero-stats { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  min-width: 128px;
  box-shadow: inset 0 0 18px rgba(46, 230, 168, 0.05);
}
.stat .num { font-family: var(--font-head); font-size: 1.5rem; color: var(--teal-bright); text-shadow: 0 0 12px rgba(46, 230, 168, 0.55); }
.stat .lbl { font-size: 0.78rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- layout / sections ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3rem; }
section.block { padding: 2.2rem 0 0.6rem; }

.panel {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(46, 230, 168, 0.04);
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.92) translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- shop controls ---------- */
.shop-controls { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.9rem; }
.shop-controls input[type="search"] { flex: 1 1 210px; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-soft); background: transparent; color: var(--muted);
  padding: 0.4rem 0.8rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { transform: translateY(-1px); color: var(--text); border-color: var(--teal); }
.chip:active { transform: scale(0.95); }
.chip.active { background: rgba(46, 230, 168, 0.16); color: var(--teal-bright); border-color: var(--teal); box-shadow: var(--glow); }

.seller-filter-bar {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  background: rgba(46, 230, 168, 0.09);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.9rem;
  animation: fadeUp 0.35s ease both;
}
.seller-filter-bar strong { color: var(--teal-bright); }

/* ---------- item grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: popIn 0.5s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--glow); }

.card-photo {
  position: relative; aspect-ratio: 4 / 3; background: #062315;
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo .badge { position: absolute; top: 0.55rem; left: 0.55rem; z-index: 2; }

.no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; background: #062315; color: var(--faint);
}

.badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(5, 15, 11, 0.82);
  border: 1px solid var(--line);
  color: var(--text);
}
.badge.available { color: var(--teal-bright); border-color: var(--teal); box-shadow: 0 0 10px rgba(46, 230, 168, 0.35); }
.badge.pending { color: var(--gold); border-color: rgba(255, 209, 102, 0.6); }
.badge.sold { color: #ffb3bf; border-color: rgba(255, 107, 129, 0.6); }

.card-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.card-title { font-size: 1.12rem; margin: 0; line-height: 1.15; }
.card-price { font-family: var(--font-head); font-size: 1.35rem; color: var(--teal-bright); text-shadow: 0 0 10px rgba(46, 230, 168, 0.45); }
.card-soldby { font-size: 0.86rem; color: var(--muted); }
.card-soldby strong { color: var(--text); }
.card-meta { font-size: 0.82rem; color: var(--faint); }
.card-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.55rem; }

.empty-state { text-align: center; padding: 2.4rem 1rem; color: var(--muted); }
.empty-state .big { font-size: 2.6rem; margin-bottom: 0.4rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }
.form-grid .field { margin-bottom: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  background: rgba(5, 15, 11, 0.65);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.18), 0 0 14px rgba(46, 230, 168, 0.25);
}
textarea { resize: vertical; }
::placeholder { color: var(--faint); }

.form-msg { min-height: 1.2em; font-size: 0.9rem; font-weight: 600; color: #ffb3bf; margin: 0.4rem 0 0.7rem; }
.form-msg.ok { color: var(--teal-bright); }

.gate-note {
  background: rgba(46, 230, 168, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.photo-preview {
  max-width: 220px; max-height: 160px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
  margin-top: 0.5rem; display: block;
}

/* ---------- points ---------- */
.points-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.points-badge {
  font-size: 2rem; line-height: 1;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46, 230, 168, 0.1);
  border: 1px solid var(--teal);
  border-radius: 50%;
  box-shadow: var(--glow);
}
.points-balance { font-family: var(--font-head); font-size: 1.9rem; color: var(--teal-bright); text-shadow: 0 0 12px rgba(46, 230, 168, 0.5); }
.earn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.earn-list li { display: flex; align-items: center; gap: 0.7rem; }
.earn-amt {
  flex: 0 0 auto;
  background: rgba(46, 230, 168, 0.14);
  border: 1px solid var(--teal);
  color: var(--teal-bright);
  font-weight: 800; font-size: 0.85rem;
  border-radius: 999px; padding: 0.15rem 0.6rem;
  min-width: 3rem; text-align: center;
}

/* ---------- feedback ---------- */
.rating-summary { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.8rem; }
.rating-summary .avg { color: var(--gold); text-shadow: 0 0 10px rgba(255, 209, 102, 0.4); }
.star-input { display: flex; gap: 0.15rem; }
.star-input label { cursor: pointer; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input span { font-size: 1.7rem; color: var(--faint); transition: color 0.12s ease, transform 0.12s ease; display: inline-block; }
.star-input label:hover span { transform: scale(1.15); }
.star-input input:checked + span { color: var(--gold); text-shadow: 0 0 10px rgba(255, 209, 102, 0.55); }
.ratings-board { display: grid; gap: 0.7rem; margin-top: 1rem; }
.rating-card {
  background: rgba(5, 15, 11, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}
.rating-card p { margin: 0.35rem 0 0; }
.rating-stars { color: var(--gold); }

/* ---------- how to buy / policies / faq ---------- */
.steps { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: 0.55rem; }
.steps li { line-height: 1.55; }
.pay-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.pay-chip {
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
}
.policy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.policy-list li { line-height: 1.55; }

details { border-top: 1px solid var(--line-soft); padding: 0.7rem 0; }
details:first-of-type { border-top: none; }
summary { cursor: pointer; font-weight: 700; }
summary:hover { color: var(--teal-bright); }
details p { margin: 0.5rem 0 0.2rem; color: var(--muted); }

.contact-strip { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
  padding: 1.6rem 1rem 2.2rem;
}
footer p { margin: 0.25rem 0; }
.footer-links a { margin: 0 0.25rem; }

/* ---------- drawers ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 8, 5, 0.65);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; right: 0; z-index: 90;
  width: min(400px, 94vw); height: 100dvh;
  background: linear-gradient(180deg, var(--panel2), var(--bg2));
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  overflow-y: auto;
  animation: slideIn 0.28s ease both;
}
@keyframes slideIn { from { transform: translateX(46px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.drawer-head h3 { margin: 0; font-size: 1.25rem; }
.drawer-items { display: grid; gap: 0.6rem; margin-bottom: 0.8rem; }
.drawer-item {
  display: flex; gap: 0.6rem; align-items: center;
  background: rgba(5, 15, 11, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.5rem;
}
.drawer-item img, .drawer-item .no-photo {
  width: 52px; height: 52px; flex: 0 0 auto;
  object-fit: cover; border-radius: 8px; font-size: 1.3rem;
}
.di-info { flex: 1; min-width: 0; }
.di-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.di-sub { font-size: 0.8rem; color: var(--faint); }
.di-price { font-family: var(--font-head); color: var(--teal-bright); }
.di-actions { display: flex; flex-direction: column; gap: 0.3rem; }
.drawer-total { font-family: var(--font-head); font-size: 1.2rem; margin: 0.6rem 0; }
.drawer textarea { margin: 0.4rem 0 0.7rem; }

/* ---------- modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 8, 5, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4.5vh 0.8rem 2rem;
  overflow-y: auto;
  animation: overlayIn 0.3s ease both;
  transition: opacity 0.24s ease;
}
@keyframes overlayIn { from { opacity: 0; } }
.modal.closing { opacity: 0; }
.modal-box {
  position: relative;
  width: min(760px, 100%);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--glow), 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 1.2rem;
  animation: popIn 0.35s ease both;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.modal.closing .modal-box {
  animation: none;
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}
.modal-box.narrow { width: min(440px, 100%); }
.modal-close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(5, 15, 11, 0.6);
  border: 1px solid var(--line-soft);
  color: var(--text);
  border-radius: 999px;
  width: 32px; height: 32px;
  cursor: pointer; font-size: 0.85rem; z-index: 2;
}
.modal-close:hover { border-color: var(--teal); box-shadow: var(--glow); }

.details-photo {
  width: 100%; max-height: 340px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line-soft);
  background: #062315;
}
.details-body { padding-top: 0.9rem; }
.details-top { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.details-top h3 { margin: 0; font-size: 1.5rem; }
.details-price { font-family: var(--font-head); font-size: 1.8rem; color: var(--teal-bright); text-shadow: 0 0 12px rgba(46, 230, 168, 0.5); margin: 0.2rem 0; }
.details-meta { margin-bottom: 0.5rem; }
.details-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.seller-panel {
  background: rgba(46, 230, 168, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  margin-top: 1rem;
}
.seller-panel h4 { margin: 0 0 0.3rem; font-family: var(--font-head); letter-spacing: 0.04em; }
.seller-name { font-weight: 800; color: var(--teal-bright); font-size: 1.05rem; }
.seller-stats { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.7rem 0; }
.seller-stat {
  background: rgba(5, 15, 11, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  text-align: center;
}
.seller-stat .num { font-family: var(--font-head); font-size: 1.05rem; color: var(--teal-bright); }
.seller-stat .lbl { font-size: 0.7rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; }

/* ---------- auth ---------- */
/* Frosted glass sign-in DROPDOWN: #222 at 53.55% over a blurred page,
   with the teal glow tucked inside the borders. Drops down from the
   header's Sign In / Sign Up button. */
.auth-wrap { position: static; display: inline-flex; }
.auth-area { position: relative; z-index: 131; }
html.no-scroll, body.no-scroll { overflow: hidden; }
.auth-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(4, 24, 18, 0.66);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  pointer-events: none;
}
.auth-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
  pointer-events: auto;
}
.auth-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 1rem;
  z-index: 130;
  width: min(344px, calc(100vw - 1.6rem));
  background: rgba(34, 34, 34, 0.5355);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(46, 230, 168, 0.55);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px rgba(46, 230, 168, 0.22),
    inset 0 0 26px rgba(46, 230, 168, 0.16),
    inset 0 1px 0 rgba(92, 255, 196, 0.28),
    var(--glow), 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
  transform-origin: top left;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
  pointer-events: none;
}
.auth-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 56px;
  width: 12px; height: 12px;
  background: rgba(34, 34, 34, 0.85);
  border-left: 1px solid rgba(46, 230, 168, 0.55);
  border-top: 1px solid rgba(46, 230, 168, 0.55);
  border-top-left-radius: 3px;
  transform: rotate(45deg);
}
.auth-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}
.auth-dd-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(5, 15, 11, 0.6);
  border: 1px solid var(--line-soft);
  color: var(--text);
  border-radius: 999px;
  width: 30px; height: 30px;
  cursor: pointer; font-size: 0.8rem; z-index: 2;
  transition: all 0.25s ease;
}
.auth-dd-close:hover { border-color: var(--teal); box-shadow: var(--glow); }
#signinForm, #signupForm { animation: formIn 0.32s ease both; }
@keyframes formIn { from { opacity: 0; transform: translateX(12px); } }
.auth-dropdown input { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.auth-dropdown input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.18), inset 0 0 12px rgba(46, 230, 168, 0.08);
  outline: none;
}
.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.auth-tab {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  padding: 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.auth-tab:hover { color: var(--text); border-color: var(--teal); }
.auth-tab.active { background: rgba(46, 230, 168, 0.16); color: var(--teal-bright); border-color: var(--teal); box-shadow: var(--glow); }

.sep { border: none; border-top: 1px solid var(--line-soft); margin: 1.1rem 0; }
.mfa-qr {
  width: 180px; height: 180px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  display: block;
  margin: 0.5rem 0;
}
code {
  background: rgba(5, 15, 11, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  word-break: break-all;
}

/* ---------- OAuth providers ---------- */
.oauth-box { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.oauth-divider {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--faint); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0.2rem 0;
}
.oauth-divider::before, .oauth-divider::after {
  content: ""; flex: 1; border-top: 1px solid var(--line-soft);
}
.btn-oauth { justify-content: center; }

/* ---------- cookie banner ---------- */
.cookie-gate {
  position: fixed; inset: 0; z-index: 290;
  background: rgba(4, 24, 18, 0.55);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cookie-gate.show { opacity: 1; }
.cookie-banner {
  position: fixed; left: 50%; bottom: 1rem; z-index: 300;
  transform: translate(-50%, 24px);
  opacity: 0;
  width: min(680px, calc(100vw - 2rem));
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--glow), 0 18px 44px rgba(0, 0, 0, 0.55);
  padding: 1rem 1.1rem;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; }
.cookie-banner p { margin: 0 0 0.7rem; font-size: 0.92rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.legal-main { max-width: 820px; }
.legal-content h3 { margin-top: 1.4rem; font-size: 1.15rem; color: var(--teal-bright); }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.6; }
.legal-content ul { padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.legal-content strong { color: var(--text); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.2rem; z-index: 130;
  transform: translate(-50%, 18px);
  background: linear-gradient(180deg, var(--teal-bright), var(--teal-dim));
  color: #032117;
  font-weight: 800; font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--glow), 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .modal { padding-top: 2.5vh; }
  .di-actions { flex-direction: row; flex-wrap: wrap; }
  .drawer-item { flex-wrap: wrap; }
  .cookie-banner { bottom: 0.6rem; }
}
...[truncated 12552 chars]
/* ---------- Custom glowing scrollbar (page) ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--teal) rgba(46, 230, 168, 0.08);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(4, 18, 13, 0.9); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5cffc4, var(--teal) 55%, #14b57f);
  border-radius: 999px;
  border: 2px solid rgba(4, 18, 13, 0.9);
  box-shadow: 0 0 12px rgba(46, 230, 168, 0.85), 0 0 26px rgba(46, 230, 168, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8affd6, #3ff2b4 55%, var(--teal));
  box-shadow: 0 0 16px rgba(46, 230, 168, 1), 0 0 34px rgba(46, 230, 168, 0.55);
}
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- animated photo picker ---------- */
.file-input-hidden {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; overflow: hidden;
}
.photo-pick-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.45rem;
  cursor: pointer; width: fit-content;
}
.photo-pick-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: pickShine 2.8s ease-in-out infinite;
}
.photo-pick-btn:active { animation: pickPop 0.35s ease; }
@keyframes pickShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes pickPop { 30% { transform: scale(0.94); } 60% { transform: scale(1.06); } }

/* ---------- sold showcase ---------- */
.sold-card .card-photo img { filter: saturate(0.7); }

/* ---------- site menu dropdown (same glass as sign-in) ---------- */
.menu-wrap { position: relative; display: inline-flex; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 130;
  width: min(240px, calc(100vw - 1.6rem));
  background: rgba(34, 34, 34, 0.5355);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(46, 230, 168, 0.55);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px rgba(46, 230, 168, 0.22),
    inset 0 0 26px rgba(46, 230, 168, 0.16),
    inset 0 1px 0 rgba(92, 255, 196, 0.28),
    var(--glow), 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
  transform-origin: top left;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
  pointer-events: none;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 26px;
  width: 12px; height: 12px;
  background: rgba(34, 34, 34, 0.85);
  border-left: 1px solid rgba(46, 230, 168, 0.55);
  border-top: 1px solid rgba(46, 230, 168, 0.55);
  border-top-left-radius: 3px;
  transform: rotate(45deg);
}
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}
.nav-dd-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-dd-item:hover { background: rgba(46, 230, 168, 0.12); transform: translateX(2px); }
.nav-dd-item.active { background: rgba(46, 230, 168, 0.16); box-shadow: inset 0 0 0 1px rgba(46, 230, 168, 0.35); }
.nav-dd-item.active::after {
  content: ""; margin-left: auto;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

/* ---------- social sign-in icons ---------- */
.btn-oauth svg { width: 1.05em; height: 1.05em; vertical-align: -0.16em; fill: currentColor; }

/* menu item rendered as a button (Account) matches the links */
button.nav-dd-item { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }

/* ---------- menu Account item: muted until signed in ---------- */
.nav-dd-item.muted { opacity: 0.5; filter: saturate(0.4); }
.nav-dd-item.muted::after { content: "🔒"; margin-left: auto; font-size: 0.8em; filter: none; }

/* ================= cross-platform polish =================
   Same store on phones, tablets and desktops — and installable
   to the home screen as a standalone app (manifest + icons). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overflow-x: hidden; overflow-x: clip; }
button, .btn, a, input, select, textarea, label { touch-action: manipulation; }
img { max-width: 100%; }
input, select, textarea { font-size: 16px; } /* 16px stops iOS Safari zooming in on focus */
#authDropdown, #navDropdown { max-width: calc(100vw - 2rem); }
.topbar { padding-top: calc(0.85rem + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (display-mode: standalone) {
  /* running as an installed app: no browser chrome, keep clear of notches */
  .cookie-banner { bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px)); }
}

/* Passkey button muted — on the Sign Up tab (passkeys sign in to an
   existing account; they can't create one). Mirrors the muted
   Account item in the site menu. */
#passkeySignInBtn.muted { opacity: 0.5; filter: saturate(0.4); cursor: not-allowed; box-shadow: none; animation: none; }

/* ================= account drawer (left slide-out) ================= */
.account-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(2, 8, 6, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.32s ease; }
.account-backdrop.show { opacity: 1; }
.account-drawer { position: fixed; top: 0; left: 0; z-index: 95; width: min(400px, 94vw); height: 100vh; height: 100dvh; overflow-y: auto; padding: 1.25rem 1.25rem 2.25rem; background: linear-gradient(180deg, #0a130e, #060b08); border-right: 1px solid rgba(46, 230, 168, 0.4); box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55), inset 0 0 44px rgba(46, 230, 168, 0.05); transform: translateX(-106%); transition: transform 0.38s cubic-bezier(0.32, 0.72, 0.24, 1); }
.account-drawer.open { transform: none; }
.drawer-close { position: absolute; top: 0.8rem; right: 0.9rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(46, 230, 168, 0.45); background: rgba(46, 230, 168, 0.08); color: var(--text); cursor: pointer; font-size: 0.95rem; line-height: 1; transition: background 0.15s ease, transform 0.15s ease; }
.drawer-close:hover { background: rgba(46, 230, 168, 0.2); transform: scale(1.06); }
.location-box { border: 1px solid rgba(46, 230, 168, 0.42); border-radius: 14px; padding: 1rem; margin: 1rem 0 1.25rem; background: rgba(46, 230, 168, 0.05); box-shadow: inset 0 0 26px rgba(46, 230, 168, 0.06); }
.location-box h4 { margin-top: 0; }
.req-badge { display: inline-block; vertical-align: middle; margin-left: 0.35rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #ff5470; color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 0 12px rgba(255, 84, 112, 0.55); }
.check-line { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.65rem 0 0.8rem; font-size: 0.9rem; cursor: pointer; }
.check-line input { margin-top: 0.2rem; width: 17px; height: 17px; accent-color: var(--teal); flex: none; }

/* Delete icon on your own product cards (top-right of the photo) */
.card-del { position: absolute; top: 0.55rem; right: 0.55rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 84, 112, 0.55); background: rgba(20, 4, 8, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-size: 0.95rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.card-del:hover { background: rgba(255, 84, 112, 0.85); transform: scale(1.12); box-shadow: 0 0 16px rgba(255, 84, 112, 0.6); }
.card-del:active { transform: scale(0.96); }

/* Shelf capacity counter (e.g. 12/300) beside The Shelf heading */
.shelf-count { display: inline-block; vertical-align: middle; margin-left: 0.6rem; padding: 0.18rem 0.7rem; border-radius: 999px; border: 1px solid rgba(46, 230, 168, 0.5); background: rgba(46, 230, 168, 0.08); color: var(--teal-bright, #5cffc4); font-size: 1rem; font-weight: 800; letter-spacing: 0.05em; box-shadow: inset 0 0 14px rgba(46, 230, 168, 0.12); }

/* ---------- Tutorial video (home page) ---------- */
.video-sub { max-width: 760px; color: var(--muted, #9db8ad); font-size: 1.02rem; line-height: 1.55; margin-top: 6px; }
#watch .video-frame { max-width: 920px; margin: 18px auto 0; border: 1px solid rgba(45,255,196,.35); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(45,255,196,.12), 0 18px 50px rgba(0,0,0,.55), 0 0 42px rgba(45,255,196,.14); }
#watch video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* ---------- Live stream + points betting ---------- */
.live-badge { display: inline-block; vertical-align: middle; font-size: .6em; font-weight: 700; letter-spacing: .04em; padding: .3em .7em; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #cfd8d3; background: rgba(255,255,255,.06); margin-left: .45em; }
.live-badge.on { color: #fff; background: #e91916; border-color: #ff5a52; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(233,25,22,.55); } 50% { box-shadow: 0 0 0 9px rgba(233,25,22,0); } }
.stream-frame { max-width: 920px; margin: 18px auto 0; border: 1px solid rgba(45,255,196,.35); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(45,255,196,.12), 0 18px 50px rgba(0,0,0,.55), 0 0 42px rgba(45,255,196,.14); }
.stream-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.stream-actions { max-width: 920px; margin: 14px auto 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bet-panel { max-width: 920px; margin: 26px auto 0; border: 1px solid rgba(45,255,196,.28); border-radius: 18px; padding: 20px; background: rgba(255,255,255,.03); }
.bet-panel h3 { margin: 0 0 8px; }
.bet-sub { font-weight: 400; color: var(--muted, #9db8ad); font-size: .85em; }
.bet-round-head { font-size: 1.08rem; margin-bottom: 6px; }
.bet-open { color: #2dffc4; font-weight: 700; font-size: .85em; margin-left: 8px; }
.bet-closed { color: #ffb84d; font-weight: 700; font-size: .85em; margin-left: 8px; }
.bet-mine { background: rgba(45,255,196,.08); border: 1px solid rgba(45,255,196,.25); border-radius: 12px; padding: 10px 12px; }
.pick-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.pick-btn { flex: 1 1 180px; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05); color: #fff; font-weight: 700; font-size: 1.02rem; cursor: pointer; transition: all .15s ease; }
.pick-btn:hover { border-color: rgba(45,255,196,.6); }
.pick-btn.sel { background: rgba(45,255,196,.18); border-color: #2dffc4; box-shadow: 0 0 18px rgba(45,255,196,.25); }
.amt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.amt-row .chip { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font-weight: 600; }
.amt-row .chip:hover { border-color: rgba(45,255,196,.6); }
.amt-row input[type="number"] { width: 92px; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.35); color: #fff; font-size: 16px; }
.bet-roster { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bet-chip { font-size: .82rem; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #d7e4de; }
.bet-admin { margin-top: 18px; border-top: 1px dashed rgba(255,255,255,.18); padding-top: 14px; }
.bet-admin h4 { margin: 0 0 8px; }
.bet-admin-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 8px 0; }
.bet-admin label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted, #9db8ad); }
.bet-admin input, .bet-admin select { padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.35); color: #fff; font-size: 16px; }

/* ---------- Point bundles ---------- */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; max-width: 920px; margin: 18px auto 0; }
.bundle-card { border: 1px solid rgba(45,255,196,.28); border-radius: 16px; padding: 18px 14px; text-align: center; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.bundle-pts { font-size: 2rem; font-weight: 800; line-height: 1; }
.bundle-lbl { color: var(--muted, #9db8ad); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.bundle-price { font-size: 1.25rem; font-weight: 700; color: #2dffc4; }
.bundle-tag { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: rgba(45,255,196,.12); border: 1px solid rgba(45,255,196,.3); }
.bundle-card .btn { margin-top: 8px; width: 100%; }

/* ---------- Supreme Members ---------- */
.supreme-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 920px; margin: 18px auto 0; }
.perk { border: 1px solid rgba(255,209,102,.35); border-radius: 14px; padding: 14px; background: rgba(255,209,102,.05); display: flex; flex-direction: column; gap: 4px; }
.perk span { color: var(--muted, #9db8ad); font-size: .88rem; }
#mySpendBox { max-width: 920px; margin: 18px auto 0; }
.sup-mine { background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.4); border-radius: 12px; padding: 12px 14px; }
.spend-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; max-width: 520px; }
.spend-fill { height: 100%; background: linear-gradient(90deg, #2dffc4, #ffd166); border-radius: 999px; transition: width .5s ease; }
.supreme-wall-title { max-width: 920px; margin: 22px auto 8px; }
.supreme-wall { max-width: 920px; margin: 0 auto; display: flex; gap: 8px; flex-wrap: wrap; }
.sup-chip { padding: 7px 13px; border-radius: 999px; background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.45); font-weight: 700; }
#drawBox { max-width: 920px; margin: 18px auto 0; }
.draw-result { font-size: 1.3rem; font-weight: 800; margin-top: 10px; }
.bundle-was { color: var(--muted, #9db8ad); font-weight: 400; font-size: .85em; }
.bundle-tease { font-size: .78rem; color: #ffd166; }
.bundle-tag.sup { background: rgba(255,209,102,.15); border-color: rgba(255,209,102,.5); color: #ffd166; }

/* ---------- Subscriptions ---------- */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 920px; margin: 20px auto 0; }
.sub-card { position: relative; border: 1px solid rgba(45,255,196,.25); border-radius: 16px; padding: 20px 16px 16px; background: rgba(255,255,255,.03); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.sub-card.hot { border-color: rgba(45,255,196,.6); box-shadow: 0 0 22px rgba(45,255,196,.15); }
.sub-card.sup { border-color: rgba(255,209,102,.55); box-shadow: 0 0 22px rgba(255,209,102,.15); }
.sub-card .bundle-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); }
.sub-emoji { font-size: 2rem; }
.sub-card h3 { margin: 0; }
.sub-price { font-size: 1.7rem; font-weight: 800; }
.sub-price span { font-size: .85rem; color: var(--muted, #9db8ad); font-weight: 400; }
.sub-perks { list-style: none; padding: 0; margin: 4px 0 10px; text-align: left; display: flex; flex-direction: column; gap: 7px; font-size: .92rem; flex: 1; }
.sub-card .btn { margin-top: auto; }

/* ---------- cleanup pass: shelf category groups + section rhythm ---------- */
#grid > .cat-group { grid-column: 1 / -1; }
.cat-group + .cat-group { margin-top: 1.8rem; }
.cat-head {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 0 0 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.02rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.cat-count {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: none;
  color: var(--teal-bright); background: rgba(46, 230, 168, 0.12);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.14rem 0.55rem;
}
section.block { padding-top: 2.6rem; }

/* ---------- cleanup pass 2: pro header buttons + seller contact ---------- */
.topbar .btn { font-size: 0.88rem; }
.seller-contact { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.8rem; }
.seller-contact:empty { display: none; }
.seller-contact-lbl { flex-basis: 100%; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.seller-contact a.btn { text-decoration: none; }
.di-actions { flex-wrap: wrap; }
.di-actions a.btn { text-decoration: none; }

/* ---------- attention + professional pass (Oct 22) ---------- */
.hero-ctas { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ticker { margin: 1.1rem auto 0; max-width: 640px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.5rem 1.1rem; font-size: 0.92rem; color: var(--muted); box-shadow: inset 0 0 18px rgba(46, 230, 168, 0.05); }
#tickerText { display: inline-block; transition: opacity 0.35s ease; }
#tickerText.tick-out { opacity: 0; }

.trend-row { display: flex; gap: 0.9rem; overflow-x: auto; padding: 0.4rem 0.1rem 1rem; scroll-snap-type: x mandatory; }
.trend-card { scroll-snap-align: start; flex: 0 0 168px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0.6rem; text-align: left; cursor: pointer; color: inherit; font: inherit; position: relative; transition: transform 0.15s ease, border-color 0.15s ease; }
.trend-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.trend-rank { position: absolute; top: 0.45rem; left: 0.45rem; background: rgba(0,0,0,0.65); color: var(--teal-bright); border-radius: 999px; padding: 0.05rem 0.5rem; font-weight: 800; font-size: 0.8rem; z-index: 2; }
.trend-photo img, .trend-photo .no-photo { width: 100%; height: 104px; object-fit: cover; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: #0b1f16; }
.trend-title { display: block; font-weight: 700; margin: 0.55rem 0 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-meta { display: block; color: var(--muted); font-size: 0.85rem; }

.card-badges { position: absolute; bottom: 0.5rem; left: 0.5rem; display: flex; gap: 0.3rem; z-index: 2; }
.mini-badge { background: rgba(0,0,0,0.7); border: 1px solid var(--line-soft); color: #fff; border-radius: 999px; padding: 0.08rem 0.55rem; font-size: 0.75rem; font-weight: 700; backdrop-filter: blur(4px); }
.mini-badge.hot { color: #ffb347; border-color: rgba(255,179,71,0.5); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.pillar { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.2rem; }
.pillar-icon { font-size: 1.9rem; margin-bottom: 0.4rem; }
.pillar h3 { margin: 0.2rem 0 0.45rem; }
.pillar p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; margin: 0; }

.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6rem; max-width: 1120px; margin: 0 auto; text-align: left; }
.footer-col h4 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--faint); margin: 0 0 0.6rem; }
.footer-col a { display: block; color: var(--muted); margin: 0.35rem 0; text-decoration: none; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; }
.footer-brand span { color: var(--teal); }
.footer-base { text-align: center; margin-top: 1.6rem; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- item of the day spotlight ---------- */
.spot-card { display: grid; grid-template-columns: 320px 1fr; gap: 1.4rem; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--teal); border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 0 24px rgba(46, 230, 168, 0.12), inset 0 0 24px rgba(46, 230, 168, 0.04); align-items: center; }
.spot-photo img, .spot-nophoto { width: 100%; height: 250px; object-fit: cover; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; background: #0b1f16; }
.spot-tag { display: inline-block; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,179,71,0.55); color: #ffb347; border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.spot-info h3 { font-size: 1.6rem; margin: 0.1rem 0 0.3rem; }
.spot-price { font-family: var(--font-head); font-size: 2rem; color: var(--teal-bright); text-shadow: 0 0 14px rgba(46, 230, 168, 0.5); margin-bottom: 0.4rem; }
.spot-desc { color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }
@media (max-width: 700px) { .spot-card { grid-template-columns: 1fr; } .spot-photo img, .spot-nophoto { height: 210px; } }
