/* =========================================================================
   Elormera design system: mobile first (360px base), pink + yellow.
   ========================================================================= */

:root {
  --pink: #E6007E;          /* buttons, brand */
  --pink-ink: #D1006F;      /* pink text on light backgrounds (AA contrast) */
  --pink-strong: #C4006B;   /* hover/pressed */
  --pink-soft: #FFE3F1;
  --pink-wash: #FFF0F7;
  --yellow: #FFC93C;        /* accents, badges: always dark text on it */
  --yellow-strong: #F5B400;
  --yellow-soft: #FFF4D1;
  --plum: #2A0F2E;          /* main text */
  --on-yellow: #2A0F2E;

  --bg: #FFF8FB;
  --surface: #FFFFFF;
  --surface-2: #FFF0F7;
  --text: #2A0F2E;
  --muted: #6B5470;
  --border: #F1DCE7;
  --border-strong: #E5C3D5;
  --success: #0F7B4B;
  --success-bg: #E3F6EC;
  --danger: #C21F3A;
  --danger-bg: #FDE7EB;
  --info-bg: #FFF4D1;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(42, 15, 46, .06);
  --shadow: 0 6px 20px rgba(42, 15, 46, .08);
  --shadow-lg: 0 14px 40px rgba(230, 0, 126, .18);

  --header-h: 56px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --pink: #E6007E; --pink-ink: #FF6BB5; --pink-strong: #FF1F94;
  --pink-soft: #3B1530; --pink-wash: #2A1024;
  --bg: #140A16; --surface: #1F1023; --surface-2: #2A1530;
  --text: #F8EAF2; --muted: #B9A3BF; --border: #3A2342; --border-strong: #4D2E57;
  --success: #4FD394; --success-bg: #12301F; --danger: #FF7A90; --danger-bg: #3A1520; --info-bg: #3A2E10;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35); --shadow-lg: 0 14px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
body.no-nav { padding-bottom: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--pink-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.icon { width: 22px; height: 22px; flex: none; }
.fa-heart .i-on { display: none; }
.on > .fa-heart .i-on, .on .fa-heart .i-on { display: inline; }
.on > .fa-heart .i-off, .on .fa-heart .i-off { display: none; }
.on .fa-heart { color: var(--pink); }
.icon-sm { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
main.page { padding-top: 12px; padding-bottom: 32px; min-height: 60vh; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-bar { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 850; font-size: 1.3rem; letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; }
.logo .dot { color: var(--pink); }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: none; border: 0; color: var(--text); cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn .badge { position: absolute; top: 6px; right: 6px; }
.theme-toggle .sun { display: none; }
[data-theme-active="dark"] .theme-toggle .sun { display: block; }
[data-theme-active="dark"] .theme-toggle .moon { display: none; }

.search-form { position: relative; width: 100%; }
.search-form .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 20px; height: 20px; }
.search-form input {
  width: 100%; height: 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: var(--surface-2); padding: 0 16px 0 44px; font-size: 16px; outline: none;
}
.search-form input:focus { border-color: var(--pink); background: var(--surface); }
.search-form .voice-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--pink-wash); color: var(--pink-ink); display: grid; place-items: center; cursor: pointer; }
.search-form .voice-btn[hidden] { display: none; }
.search-form .voice-btn .icon { position: static; transform: none; color: inherit; width: 18px; height: 18px; }
.search-form .voice-btn.listening { background: var(--pink); color: #fff; animation: pulse 1.2s infinite; }
.search-form:has(.voice-btn:not([hidden])) input { padding-right: 48px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 0, 126, .45); } 50% { box-shadow: 0 0 0 8px rgba(230, 0, 126, 0); } }
.header-search-mobile { padding: 0 0 10px; }
.header-search-desktop { display: none; flex: 1; max-width: 560px; margin: 0 16px; }
.desktop-nav { display: none; }
.desktop-only { display: none !important; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none;
  background: linear-gradient(135deg, var(--pink), #FF7AB8); color: #fff;
  display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }
.avatar-ring { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--yellow); }

/* ---------- Bottom tab bar (phones/tablets) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 20px rgba(42, 15, 46, .06);
}
.bottom-nav ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; height: var(--bottom-nav-h); }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 100%; color: var(--muted); font-size: .7rem; font-weight: 600; position: relative;
}
.bottom-nav a:hover { text-decoration: none; color: var(--text); }
.bottom-nav a.active { color: var(--pink-ink); }
.bottom-nav a.active::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--yellow);
}
.bottom-nav .sell-btn {
  width: 52px; height: 52px; margin-top: -18px; border-radius: 18px; display: grid; place-items: center;
  background: var(--pink); color: #fff; box-shadow: var(--shadow-lg); border: 3px solid var(--surface);
}
.bottom-nav .sell-btn .icon { width: 24px; height: 24px; }
.bottom-nav a.sell { color: var(--text); }
.bottom-nav a.sell.active::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; cursor: pointer;
  text-decoration: none; transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 4px 14px rgba(230, 0, 126, .28); }
.btn-primary:hover { background: var(--pink-strong); }
.btn-accent { background: var(--yellow); color: var(--on-yellow); }
.btn-accent:hover { background: var(--yellow-strong); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink-ink); }
.btn-ghost { background: none; color: var(--pink-ink); }
.btn-ghost:hover { background: var(--pink-wash); }
.btn-dark { background: var(--plum); color: #fff; }
:root[data-theme="dark"] .btn-dark { background: #fff; color: var(--plum); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn .icon { width: 20px; height: 20px; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; }
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; /* 16px stops iOS zoom */
  border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.input-wrap > .icon ~ .input { padding-left: 44px; }
textarea.input { min-height: 110px; resize: vertical; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B5470' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.input.has-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.reveal {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.input-wrap .reveal ~ .input, .input-wrap .input.with-reveal { padding-right: 52px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--pink); }
.phone-input { display: flex; gap: 8px; }
.phone-prefix {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 50px; border-radius: var(--radius);
  border: 1.5px solid var(--border-strong); background: var(--surface-2); font-weight: 650; flex: none;
}
.otp-input { letter-spacing: .5em; text-align: center; font-size: 1.6rem !important; font-weight: 750; font-variant-numeric: tabular-nums; padding-left: 14px !important; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Cards / surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card-flat { box-shadow: none; }
.section { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.see-all { font-weight: 650; font-size: .9rem; display: inline-flex; align-items: center; gap: 2px; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 650; font-size: .9rem; white-space: nowrap;
}
.chip:hover { text-decoration: none; border-color: var(--pink); }
.chip.active { background: var(--plum); border-color: var(--plum); color: #fff; }
:root[data-theme="dark"] .chip.active { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 750; letter-spacing: .02em; }
.badge-yellow { background: var(--yellow); color: var(--on-yellow); }
.badge-pink { background: var(--pink); color: #fff; }
.badge-soft { background: var(--pink-soft); color: var(--pink-ink); }
.dot-badge { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--surface); }

/* Horizontal swipe rows */
.hscroll {
  display: grid; grid-auto-flow: column; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  scroll-padding: 0 var(--gutter);
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* Category tiles */
.cat-row { grid-auto-columns: 76px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); text-align: center; font-size: .75rem; font-weight: 600; line-height: 1.2; }
.cat-tile:hover { text-decoration: none; }
.cat-tile .cat-icon {
  width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center;
  background: var(--pink-wash); border: 1.5px solid var(--border); transition: transform .15s, border-color .15s;
}
.cat-tile:nth-child(3n+2) .cat-icon { background: var(--yellow-soft); }
.cat-tile:hover .cat-icon { transform: translateY(-2px); border-color: var(--pink); }
.cat-icon svg { width: 32px; height: 32px; color: var(--pink-ink); }

/* Hero */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff; padding: 24px 20px 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 201, 60, .55) 0, rgba(255, 201, 60, 0) 55%),
    linear-gradient(140deg, #E6007E 0%, #B80069 60%, #7A0E5A 100%);
  box-shadow: var(--shadow-lg);
}
.hero::after { /* kente-inspired stripe */
  content: ""; position: absolute; right: -20px; bottom: -20px; width: 180px; height: 120px; opacity: .25; transform: rotate(-12deg);
  background:
    repeating-linear-gradient(90deg, #FFC93C 0 14px, transparent 14px 22px, #fff 22px 26px, transparent 26px 40px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 10px, transparent 10px 20px);
  border-radius: 12px;
}
.hero h1 { font-size: 1.65rem; margin-bottom: 8px; max-width: 16ch; }
.hero p { opacity: .95; max-width: 34ch; margin-bottom: 18px; }
.hero .eyebrow { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; margin-bottom: 12px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }

/* Feature trio */
.perks { display: grid; grid-template-columns: 1fr; gap: 10px; }
.perk { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.perk .perk-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow-soft); color: var(--plum); flex: none; }
:root[data-theme="dark"] .perk .perk-icon { color: var(--yellow); }
.perk h3 { margin: 0 0 2px; font-size: .95rem; }
.perk p { margin: 0; font-size: .85rem; color: var(--muted); }

/* Teaser tiles (live / auctions) */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.teaser { border-radius: var(--radius); padding: 14px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; color: var(--text); border: 1px solid var(--border); }
.teaser:hover { text-decoration: none; }
.teaser.t-yellow { background: var(--yellow); color: var(--on-yellow); border-color: transparent; }
.teaser.t-plum { background: var(--plum); color: #fff; border-color: transparent; }
.teaser h3 { margin: 8px 0 2px; }
.teaser p { margin: 0; font-size: .8rem; opacity: .85; }

/* Empty / coming soon */
.empty { text-align: center; padding: 40px 20px; }
.empty .empty-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; display: grid; place-items: center; background: var(--pink-wash); color: var(--pink-ink); }
.empty .empty-icon .icon { width: 36px; height: 36px; }
.empty p { color: var(--muted); max-width: 40ch; margin: 0 auto 20px; }

/* Skeleton product grid */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--pink-wash) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-card .sk-img { aspect-ratio: 3 / 4; }
.sk-card .sk-line { height: 12px; margin-top: 10px; border-radius: 6px; }
.sk-card .sk-line.short { width: 50%; }

/* ---------- Flash toasts ---------- */
.flash-stack { position: fixed; z-index: 60; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); display: grid; gap: 8px; pointer-events: none; }
.flash {
  pointer-events: auto; color: var(--text); display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .95rem; font-weight: 550;
  animation: drop .25s ease-out; max-width: 520px; margin: 0 auto; width: 100%;
}
.flash .icon { width: 20px; height: 20px; margin-top: 1px; }
.flash-success { border-left: 4px solid var(--success); }
.flash-success .icon { color: var(--success); }
.flash-error { border-left: 4px solid var(--danger); }
.flash-error .icon { color: var(--danger); }
.flash-info { border-left: 4px solid var(--yellow-strong); background: var(--info-bg); }
.flash .close { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; width: 28px; height: 28px; display: grid; place-items: center; }
.flash.hide { opacity: 0; transform: translateY(-8px); transition: .25s; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Auth screens ---------- */
.auth-shell { min-height: calc(100vh - var(--header-h) - var(--bottom-nav-h)); display: grid; place-items: start center; padding: 16px 0 40px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .lead { color: var(--muted); margin-bottom: 22px; }
.auth-options { display: grid; gap: 10px; }
.btn-google { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-google:hover { border-color: var(--text); }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); }
.auth-foot a { font-weight: 700; display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.tap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin: 0 -6px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; margin-bottom: 12px; min-height: 44px; }
.terms { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 16px; }

/* Desktop brand panel next to auth forms */
.auth-aside { display: none; }

/* ---------- Account ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--pink-wash), var(--yellow-soft)); border: 1px solid var(--border); }
:root[data-theme="dark"] .profile-head { background: linear-gradient(135deg, var(--pink-soft), #3A2E10); }
.profile-head h1 { font-size: 1.3rem; margin: 0; }
.profile-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; word-break: break-word; }
.profile-head .loc { display: inline-flex; align-items: center; gap: 4px; }
.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--border); }
.menu a, .menu button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 16px; color: var(--text);
  background: none; border: 0; text-align: left; cursor: pointer; font-size: 1rem; font-weight: 550;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu .menu-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--pink-wash); color: var(--pink-ink); flex: none; }
.menu .menu-icon .icon { width: 20px; height: 20px; }
.menu .chev { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }
.menu .meta { margin-left: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.menu .label-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .meta + .chev { margin-left: 4px; }
.menu-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 24px 4px 8px; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: .8rem; font-weight: 700; }
.verified .icon { width: 16px; height: 16px; }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 24px; margin-top: 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-grid h4 { margin: 0 0 8px; font-size: .85rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin: 8px 0 0; }
.copyright { color: var(--muted); font-size: .8rem; margin-top: 20px; }

/* Install table */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.check-list .ok { color: var(--success); }
.check-list .bad { color: var(--danger); }

/* =========================================================================
   Larger screens
   ========================================================================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .teasers { gap: 14px; }
  .hero { padding: 36px 32px; }
  .hero h1 { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .flash-stack { left: auto; right: 20px; width: 400px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .header-bar { height: 68px; }
  .header-search-mobile { display: none; }
  .header-search-desktop { display: block; }
  .desktop-nav { display: flex; gap: 2px; }
  .desktop-nav a { padding: 8px 12px; border-radius: var(--radius-pill); color: var(--text); font-weight: 600; font-size: .95rem; }
  .desktop-nav a:hover, .desktop-nav a.active { background: var(--pink-wash); color: var(--pink-ink); text-decoration: none; }
  .desktop-only { display: inline-grid !important; }
  .grid-products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); overflow: visible; margin: 0; padding: 4px 0; row-gap: 18px; }
  .cat-tile .cat-icon { width: 80px; height: 80px; }
  .hero { padding: 48px 44px; }
  .hero h1 { font-size: 2.6rem; }
  .hero::after { width: 320px; height: 200px; right: 20px; bottom: -40px; }
  .teasers { grid-template-columns: repeat(4, 1fr); }
  main.page { padding-top: 24px; }

  .auth-shell.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1040px; margin: 24px auto; padding: 0;
    border-radius: 28px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); min-height: 600px; place-items: stretch; }
  .auth-shell.split .auth-aside {
    display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; color: #fff; position: relative; overflow: hidden;
    background:
      radial-gradient(90% 70% at 100% 0%, rgba(255, 201, 60, .6) 0, rgba(255, 201, 60, 0) 60%),
      linear-gradient(150deg, #E6007E, #8A0D63);
  }
  .auth-aside h2 { font-size: 2rem; max-width: 14ch; position: relative; }
  .auth-aside p { position: relative; }
  .auth-aside p { opacity: .92; max-width: 34ch; }
  .auth-aside .stripes { position: absolute; top: 40px; left: 44px; right: 44px; height: 14px; border-radius: 4px;
    background: repeating-linear-gradient(90deg, #FFC93C 0 26px, #fff 26px 30px, #2A0F2E 30px 40px, transparent 40px 52px); opacity: .7; }
  .auth-shell.split .auth-card { align-self: center; justify-self: center; padding: 40px; }
  .auth-shell.split .auth-card.card { border: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Marketplace components (Parts 2 to 9)
   ========================================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 480px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.text-pink { color: var(--pink-ink); }
.clamp-1 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.form-page { max-width: 720px; margin: 0 auto; }
.form-section { margin-bottom: 14px; }
.form-section h2 { margin-bottom: 14px; }
.notice { padding: 12px 14px; border-radius: var(--radius); font-size: .92rem; }
.notice-error { background: var(--danger-bg); color: var(--danger); }
.notice-info { background: var(--info-bg); }
.notice-success-card { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; border-left: 4px solid var(--success); }
.input-sm { min-height: 40px; padding: 6px 12px; font-size: .9rem; border-radius: var(--radius-pill); width: auto; }
select.input-sm { padding-right: 36px; }
.money-input { display: flex; align-items: stretch; }
.money-input > span { display: inline-flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--border-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--surface-2); font-weight: 700; color: var(--muted); }
.money-input .input { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-input { max-width: 120px; }

/* Segmented radio buttons */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 650; font-size: .92rem; }
.seg input:checked + span { background: var(--pink); border-color: var(--pink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Uploads */
.dropzone { position: relative; display: block; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--pink-wash); cursor: pointer; }
.dropzone.has-error { border-color: var(--danger); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; color: var(--text); }
.dz-inner .icon { width: 32px; height: 32px; color: var(--pink-ink); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.photo-grid:empty { display: none; }
.photo-cell { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell .cover-badge { position: absolute; left: 6px; top: 6px; }
.photo-actions { position: absolute; right: 4px; top: 4px; display: flex; gap: 4px; }
.photo-actions button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.upload-tile { position: relative; display: block; border: 2px dashed var(--border-strong); border-radius: var(--radius); min-height: 120px; background: var(--surface-2) center / cover no-repeat; cursor: pointer; }
.upload-tile.has-error { border-color: var(--danger); }
.upload-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-tile .tile-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.upload-tile.filled .tile-inner { background: rgba(0,0,0,.35); color: #fff; }
.banner-edit { aspect-ratio: 3 / 1; border-radius: var(--radius); background: linear-gradient(135deg, var(--pink), #8A0D63) center / cover no-repeat; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; margin-bottom: -28px; }
.banner-edit + .avatar-edit { position: relative; padding-left: 12px; }

/* Sizes editor */
.size-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.size-presets .chip { min-height: 34px; padding: 0 12px; cursor: pointer; }
.size-rows { display: grid; gap: 8px; margin-bottom: 6px; }
.size-row { display: grid; grid-template-columns: 1fr 110px 44px; gap: 8px; align-items: center; }

/* Sticky save bar */
.sticky-actions { position: sticky; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px); z-index: 30; display: flex; gap: 10px; padding: 10px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); margin-top: 8px; }
@media (min-width: 960px) { .sticky-actions { bottom: 12px; } }

/* Dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dash-store { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.dash-store:hover { text-decoration: none; }
.dash-nav { margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); min-width: 0; }
.stat:hover { text-decoration: none; }
.stat strong { font-size: 1.35rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 650; }
.stat-sub { font-size: .78rem; color: var(--muted); }
.stat-pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.stat-pink .stat-label, .stat-pink .stat-sub { color: rgba(255,255,255,.85); }
.stat-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.stat-yellow .stat-label, .stat-yellow .stat-sub { color: rgba(42,15,46,.75); }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.setup-card { margin-bottom: 14px; border-left: 4px solid var(--yellow); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist a { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text); font-weight: 600; }
.checklist a:hover { text-decoration: none; color: var(--pink-ink); }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.checklist .done .tick { background: var(--success); border-color: var(--success); color: #fff; }
.checklist .done a { color: var(--muted); text-decoration: line-through; }
.checklist .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.quick { display: flex; align-items: center; gap: 10px; padding: 14px; min-height: 60px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 650; }
.quick:hover { text-decoration: none; border-color: var(--pink); }
.quick .icon { color: var(--pink-ink); }
.empty-inline { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.search-form.mini input { height: 40px; font-size: .95rem; }
@media (min-width: 760px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } .search-form.mini { max-width: 280px; } }

/* List cards (orders, listings) */
.list-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
a.list-card:hover { text-decoration: none; border-color: var(--pink); }
.list-card .thumb { flex: none; }
.list-card .thumb img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.list-card a { color: var(--text); }
.listing-row .status { margin-top: 4px; }
.status { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 750; background: var(--surface-2); color: var(--muted); }
.status-active, .status-completed, .status-delivered, .status-paid-out, .status-approved, .status-ready, .status-sold-auction { background: var(--success-bg); color: var(--success); }
.status-paid, .status-processing, .status-live, .status-pending { background: var(--yellow-soft); color: #7A5500; }
:root[data-theme="dark"] .status-paid, :root[data-theme="dark"] .status-processing, :root[data-theme="dark"] .status-live, :root[data-theme="dark"] .status-pending { color: var(--yellow); }
.status-shipped, .status-scheduled { background: var(--pink-soft); color: var(--pink-ink); }
.status-cancelled, .status-refunded, .status-failed, .status-rejected, .status-hidden, .status-suspended { background: var(--danger-bg); color: var(--danger); }
.menu-pop { position: relative; }
.menu-pop summary { list-style: none; cursor: pointer; font-size: 1.3rem; font-weight: 800; }
.menu-pop summary::-webkit-details-marker { display: none; }
.menu-pop .pop { position: absolute; right: 0; top: 46px; z-index: 20; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: grid; }
.menu-pop .pop a, .menu-pop .pop button { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: none; color: var(--text); font-weight: 600; font-size: .92rem; text-align: left; width: 100%; cursor: pointer; }
.menu-pop .pop a:hover, .menu-pop .pop button:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop .pop .danger { color: var(--danger); }

/* Avatars & ticks */
.avatar-md { width: 52px; height: 52px; font-size: 1.05rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 1.8rem; }
.vtick { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; }
.vtick svg { width: 18px; height: 18px; }

/* Sell landing */
.sell-hero { border-radius: var(--radius-lg); padding: 28px 20px; color: var(--on-yellow); background: radial-gradient(100% 80% at 100% 0%, rgba(230,0,126,.35), transparent 60%), var(--yellow); }
.sell-hero h1 { font-size: 1.7rem; max-width: 18ch; }
.sell-hero p { max-width: 42ch; }
.sell-hero .eyebrow { display: inline-block; background: rgba(42,15,46,.1); padding: 4px 10px; border-radius: var(--radius-pill); font-weight: 700; font-size: .8rem; margin-bottom: 10px; }
.sell-hero .btn-accent { background: var(--plum); color: #fff; }
.sell-hero .btn-outline { background: transparent; border-color: rgba(42,15,46,.4); color: var(--plum); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps h3 { margin: 0 0 2px; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }
.step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } .sell-hero { padding: 44px; } .sell-hero h1 { font-size: 2.4rem; } }

/* ---------- Product cards ---------- */
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.badge-cond { background: rgba(255,255,255,.92); color: var(--plum); }
.sold-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(42,15,46,.45); color: #fff; font-weight: 900; letter-spacing: .15em; font-size: 1.1rem; }
.sold-overlay.big { font-size: 2rem; border-radius: var(--radius-lg); }
.fav-form { position: absolute; right: 6px; top: 6px; margin: 0; }
.fav-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--plum); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.fav-btn .icon { width: 20px; height: 20px; }
.fav-btn.on { color: var(--pink); }

.fav-btn.pop { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }
.pcard-body { display: block; padding: 8px 2px 4px; color: var(--text); }
.pcard-body:hover { text-decoration: none; }
.pcard-title { font-size: .88rem; font-weight: 550; margin: 0 0 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-price { font-size: .95rem; }
.pcard-price s { color: var(--muted); font-size: .8rem; margin-left: 2px; }
.pcard-store { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pcard-store .vtick, .pcard-store .vtick svg { width: 14px; height: 14px; }
.card-row { grid-auto-columns: 46%; }
@media (min-width: 600px) { .card-row { grid-auto-columns: 30%; } }
@media (min-width: 960px) { .card-row { grid-auto-columns: calc(20% - 10px); } }
.load-more-wrap { margin-top: 18px; }

/* Store chips row */
.store-row { grid-auto-columns: 84px; }
.store-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); font-size: .74rem; font-weight: 600; line-height: 1.2; }
.store-chip:hover { text-decoration: none; }
.store-chip img, .store-chip .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pink-soft); }
.store-chip .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-chip .vtick, .store-chip .vtick svg { width: 13px; height: 13px; }
.store-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .store-grid { grid-template-columns: 1fr 1fr; } }
.store-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.store-card:hover { text-decoration: none; border-color: var(--pink); }
.store-card img.avatar { object-fit: cover; }
.chev { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* Live / auctions / reels rows */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #FF2D55; box-shadow: 0 0 0 3px rgba(255,45,85,.25); animation: pulse 1.4s infinite; vertical-align: 1px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,45,85,0); } }
.badge-live { background: #FF2D55; color: #fff; }
.live-row { grid-auto-columns: 62%; }
@media (min-width: 760px) { .live-row { grid-auto-columns: 28%; } }
.live-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--plum); color: #fff; }
.live-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.live-card .badge-live { position: absolute; left: 10px; top: 10px; }
.live-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: grid; gap: 2px; }
.live-card:hover { text-decoration: none; }
.auction-card { display: block; color: var(--text); }
.auction-card:hover { text-decoration: none; }
.countdown-badge { position: absolute; left: 8px; bottom: 8px; background: var(--plum); color: #fff; padding: 3px 9px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.countdown-badge:empty { display: none; }
.reel-row { grid-auto-columns: 34%; }
@media (min-width: 760px) { .reel-row { grid-auto-columns: 16%; } }
.reel-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--plum); color: #fff; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-thumb-meta { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.reel-thumb-store { position: absolute; left: 8px; right: 8px; top: 8px; font-size: .72rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 760px) { .reel-grid { grid-template-columns: repeat(5, 1fr); } }
.announce { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: var(--radius); background: var(--yellow); color: var(--on-yellow); font-weight: 650; font-size: .9rem; margin-top: 12px; }

/* ---------- Search ---------- */
.search-head h1 { margin-bottom: 0; }
.search-head .back-link { margin-bottom: 0; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; }
.active-filters { margin-bottom: 10px; }
.chip-x { gap: 4px; background: var(--pink-wash); border-color: var(--pink-soft); }
.chip-x .icon-sm { width: 14px; height: 14px; }
.cat-row.compact { grid-auto-columns: 70px; margin-bottom: 8px; }
.cat-row.compact .cat-icon { width: 60px; height: 60px; }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 650; }
.cat-card:hover { text-decoration: none; border-color: var(--pink); }
.cat-card .cat-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--pink-wash); }
.cat-card .cat-icon svg { width: 26px; height: 26px; }
.cat-card .chev { margin-left: auto; }

/* Bottom sheet (filters etc.) */
dialog { color: var(--text); }
.sheet { padding: 0; border: 0; width: 100%; max-width: 560px; max-height: 88vh; margin: auto auto 0; border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: var(--shadow-lg); }
.sheet::backdrop { background: rgba(20, 6, 22, .55); }
.sheet[open] { animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .5; } }
.sheet form { display: flex; flex-direction: column; max-height: 88vh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 20px; }
.sheet-head h2 { margin: 0; }
.sheet-body { overflow-y: auto; padding: 8px 20px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--border); }
@media (min-width: 600px) { .sheet { margin: auto; border-radius: 22px; } }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 16px; }
.owner-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 10px 14px; background: var(--yellow-soft); }
.pdp-gallery { min-width: 0; margin: 0 calc(-1 * var(--gutter)); }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 3 / 4; max-height: 78vh; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.1); transition: width .2s; }
.gallery-dots span.on { width: 20px; border-radius: 4px; background: #fff; }
.gallery-count { position: absolute; right: 12px; top: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); }
.gallery-thumbs { display: none; }
.pdp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pdp-badges .badge-cond { background: var(--pink-soft); color: var(--pink-ink); }
.pdp-title { font-size: 1.35rem; font-weight: 750; margin-bottom: 6px; }
.pdp-price { font-size: 1.6rem; letter-spacing: -.02em; }
.pdp-price strong { font-weight: 850; }
.pdp-price s { font-size: 1rem; color: var(--muted); margin-left: 6px; }
.auction-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--plum); color: #fff; margin: 10px 0; }
.auction-banner:hover { text-decoration: none; }
.auction-banner .chev { color: #fff; margin-left: auto; }
.buy-form { margin-top: 14px; }
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.size-picker label { cursor: pointer; }
.size-picker input { position: absolute; opacity: 0; pointer-events: none; }
.size-picker span { display: inline-grid; place-items: center; min-width: 52px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--border-strong); font-weight: 700; background: var(--surface); }
.size-picker input:checked + span { border-color: var(--pink); background: var(--pink-wash); color: var(--pink-ink); box-shadow: 0 0 0 2px var(--pink-soft); }
.size-picker input:focus-visible + span { outline: 3px solid var(--yellow); }
.size-picker .out span { color: var(--muted); text-decoration: line-through; opacity: .6; cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--surface-2); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.stepper input { width: 56px; height: 46px; border: 0; text-align: center; font-weight: 700; background: var(--surface); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-actions { display: flex; gap: 10px; }
.desktop-actions { display: none; }
.pdp-share { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; }
.pdp-share form { margin: 0; }
.info-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 12px 0; }
.info-row { display: flex; gap: 12px; padding: 12px 14px; }
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-row > .icon { color: var(--pink-ink); margin-top: 2px; }
.info-row > div { display: flex; flex-direction: column; gap: 2px; }
.seller-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.seller-card:hover { text-decoration: none; border-color: var(--pink); }
.seller-card img.avatar { object-fit: cover; }
.seller-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.seller-actions form { margin: 0; }
.btn.on { background: var(--pink-wash); border-color: var(--pink-soft); color: var(--pink-ink); }
.pdp-section { margin-top: 22px; }
.prose { color: var(--text); overflow-wrap: anywhere; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.stars { color: var(--yellow-strong); letter-spacing: 1px; }
.stars .off { color: var(--border-strong); }
.review { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review p { margin: 6px 0 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seller-reply { background: var(--surface-2); padding: 8px 12px; border-radius: 10px; font-size: .9rem; }
.report-pop { margin-top: 18px; }
.report-pop summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }
.report-pop .card { margin-top: 8px; }
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 10px var(--gutter) calc(10px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(42,15,46,.08);
}
.action-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.action-price strong { font-size: 1.1rem; }
body.has-action-bar { padding-bottom: calc(76px + var(--safe-bottom)); }
body.has-action-bar .bottom-nav { display: none; }
.lightbox { padding: 0; border: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: #000; }
.lightbox::backdrop { background: #000; }
.lightbox-scroll { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; touch-action: pinch-zoom pan-x pan-y; }
.lightbox-scroll img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: fixed; right: 12px; top: 12px; z-index: 2; background: rgba(255,255,255,.15); color: #fff; }

@media (min-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .pdp-gallery { margin: 0; position: sticky; top: 84px; display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
  .gallery { order: 2; border-radius: var(--radius-lg); overflow: hidden; }
  .gallery-thumbs { display: grid; gap: 8px; order: 1; align-content: start; }
  .gallery-thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 3 / 4; }
  .gallery-thumbs button.on { border-color: var(--pink); }
  .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .desktop-actions { display: flex; margin-top: 8px; }
  .action-bar { display: none; }
  body.has-action-bar { padding-bottom: 0; }
  .pdp-title { font-size: 1.7rem; }
}

/* ---------- Store page ---------- */
.store-hero { margin: 0 calc(-1 * var(--gutter)) 8px; }
.store-banner { aspect-ratio: 3 / 1; max-height: 260px; width: 100%; background: radial-gradient(90% 90% at 100% 0%, rgba(255,201,60,.6), transparent 60%), linear-gradient(135deg, #E6007E, #7A0E5A) center / cover no-repeat; }
.store-id { display: flex; align-items: flex-end; gap: 14px; padding: 0 var(--gutter); margin-top: -40px; }
.store-id .avatar-xl { object-fit: cover; flex: none; }
.store-id-text { min-width: 0; padding-bottom: 4px; }
.store-id h1 { font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.store-id p { margin: 2px 0 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.store-bio { padding: 10px var(--gutter) 0; margin: 0; }
.store-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px var(--gutter); text-align: center; }
.store-stats div { display: flex; flex-direction: column; }
.store-stats strong { font-size: 1.1rem; }
.store-stats span { font-size: .75rem; color: var(--muted); }
.store-actions { display: flex; gap: 8px; padding: 0 var(--gutter); }
.store-actions form { margin: 0; }
.delivery-line { padding: 10px var(--gutter) 0; display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.live-strip { display: flex; align-items: center; gap: 8px; margin: 12px var(--gutter) 0; padding: 10px 14px; border-radius: var(--radius); background: var(--plum); color: #fff; font-weight: 650; }
.live-strip:hover { text-decoration: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 12px 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 14px; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--pink); }
@media (min-width: 960px) {
  .store-hero { margin: 0 0 8px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); padding-bottom: 18px; }
  .store-actions { max-width: 480px; }
}

.count-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .65rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); line-height: 1; }
.nav-icon { position: relative; display: inline-grid; }
.nav-icon .count-badge { top: -6px; right: -10px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }

/* ---------- Cart / checkout / orders ---------- */
.cart-layout { display: grid; gap: 14px; }
.cart-group { padding: 14px; }
.cart-store { display: inline-flex; align-items: center; gap: 6px; color: var(--text); margin-bottom: 6px; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.cart-line .thumb img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.cart-line .grow { display: flex; flex-direction: column; gap: 2px; }
.cart-line.has-problem img { opacity: .5; }
.line-title { color: var(--text); font-weight: 600; }
.line-price { margin-top: 2px; }
.line-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.line-actions form { margin: 0; }
.cart-group-foot { padding-top: 10px; border-top: 1px solid var(--border); text-align: right; }
.cart-summary { position: sticky; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px); box-shadow: var(--shadow); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-row.total { border-top: 1px dashed var(--border-strong); margin-top: 6px; padding-top: 10px; font-size: 1.1rem; }
.pay-logos { margin: 10px 0 0; display: flex; justify-content: center; gap: 6px; align-items: center; }
.btn.disabled { opacity: .5; pointer-events: none; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 340px; align-items: start; } .cart-summary { top: 90px; bottom: auto; } }

.checkout { max-width: 720px; margin: 0 auto; padding-bottom: 90px; }
.step-n.sm { width: 26px; height: 26px; font-size: .85rem; display: inline-grid; vertical-align: 1px; margin-right: 4px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--border-strong); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.radio-card input { width: 20px; height: 20px; accent-color: var(--pink); margin-top: 2px; flex: none; }
.radio-card:has(input:checked) { border-color: var(--pink); background: var(--pink-wash); }
.add-address summary { list-style: none; cursor: pointer; }
.add-address summary::-webkit-details-marker { display: none; }
.add-address[open] summary { margin-bottom: 12px; }
.co-store { padding: 12px 0; border-top: 1px solid var(--border); }
.co-store:first-of-type { border-top: 0; padding-top: 0; }
.co-store-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.co-line { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.co-line img { width: 56px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--surface-2); flex: none; }
.co-line .grow { display: flex; flex-direction: column; }
.co-line a { color: var(--text); }
.delivery-seg { margin: 8px 0 4px; }
.delivery-seg span { min-height: 40px; font-size: .85rem; }
.note-field { margin: 8px 0 0; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.pm { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); }
.pay-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 12px; align-items: center; padding: 10px var(--gutter) calc(10px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(42,15,46,.08); }
@media (min-width: 960px) { .pay-bar { position: static; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: none; } .checkout { padding-bottom: 20px; } }
.success-icon { background: var(--success-bg) !important; color: var(--success) !important; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-head h1 { margin: 0; font-size: 1.3rem; }
.section-title { font-size: 1rem; margin: 22px 0 8px; }
.tracker { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; }
.tracker li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; font-size: .72rem; color: var(--muted); }
.tracker li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.done::before { background: var(--pink); }
.tracker .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--border); z-index: 1; color: #fff; }
.tracker .done .dot { background: var(--pink); border-color: var(--pink); }
.tracker .current .dot { box-shadow: 0 0 0 4px var(--pink-soft); }
.tracker .current .lbl { color: var(--text); font-weight: 750; }
.tracker .time { font-size: .65rem; }
.order-actions { display: grid; gap: 8px; margin: 14px 0; }
.order-actions form { margin: 0; }
.order-actions .card { padding: 14px; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.danger-zone { margin-top: 14px; }
.danger-zone summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 10px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2.2rem; line-height: 1; cursor: pointer; color: var(--border-strong); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--yellow-strong); }
.star-input input:focus-visible + label { outline: 3px solid var(--yellow); border-radius: 6px; }
.thumb-img { width: 56px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--surface-2); flex: none; }
.list-card.needs-action { border-left: 4px solid var(--yellow); }
.pay-due { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; background: var(--yellow-soft); color: var(--text); }
.pay-due:hover { text-decoration: none; }
.col-actions { display: flex; flex-direction: column; align-items: flex-end; }
.col-actions form { margin: 0; }
.withdraw-form { display: flex; gap: 10px; flex-wrap: wrap; }
.withdraw-form .money-input { flex: 1; min-width: 160px; }
.review-card { margin-bottom: 10px; }
.review-card .review { border-bottom: 0; padding-top: 0; }
.store-shortcut { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--text); padding: 14px; }
.store-shortcut:hover { text-decoration: none; border-color: var(--pink); }
.store-shortcut > .icon { color: var(--pink-ink); }

/* ---------- Admin ---------- */
.admin-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.3rem; }
.admin-title .icon { color: var(--pink-ink); }
.alert-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.alert-list a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--yellow-soft); color: var(--text); font-weight: 650; }
.alert-list a:hover { text-decoration: none; background: var(--yellow); }
.alert-list .chev { margin-left: auto; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; align-items: end; height: 160px; margin: 8px 0 26px; border-bottom: 1px solid var(--border); }
.bar-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.bar { width: 70%; max-width: 26px; background: var(--pink); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-col:hover .bar, .bar-col:focus .bar { background: var(--pink-strong); }
.bar-x { position: absolute; bottom: -20px; font-size: .68rem; color: var(--muted); }
.bar-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; white-space: nowrap; background: var(--plum); color: #fff; padding: 6px 10px; border-radius: 10px; font-size: .75rem; line-height: 1.35; text-align: center; box-shadow: var(--shadow); }
.bar-col:hover .bar-tip, .bar-col:focus .bar-tip { display: block; }
.bar-col:first-child .bar-tip { left: 0; transform: none; }
.bar-col:last-child .bar-tip { left: auto; right: 0; transform: none; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.log-pre { white-space: pre-wrap; word-break: break-word; font-size: .75rem; margin: 0; max-height: 320px; overflow: auto; }
.cat-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 8px; }
.cat-edit .cat-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--pink-wash); border-radius: 12px; }
.cat-edit .cat-icon svg { width: 22px; height: 22px; }
.cat-edit input[name=name] { flex: 1; min-width: 140px; }
.verif-card, .payout-card, .report-card { margin-bottom: 12px; display: grid; gap: 8px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.doc-grid a { display: grid; gap: 4px; color: var(--text); text-align: center; }
.doc-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.verif-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verif-actions .input { min-width: 180px; }
.reel-admin { display: grid; gap: 6px; }
.admin-actions .input { width: 100%; border-radius: var(--radius); }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .88em; }

/* ---------- Messages ---------- */
.convo.unread { border-left: 4px solid var(--pink); }
.convo.unread strong { color: var(--text); }
.count-badge.static { position: static; display: inline-grid; margin-top: 4px; border: 0; }
.notif.unread { background: var(--pink-wash); }
.thumb-img.sm { width: 44px; height: 56px; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--header-h) - 1px); margin: -12px calc(-1 * var(--gutter)) -32px; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
.chat-who { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.chat-who:hover { text-decoration: none; }
.chat-who img.avatar { object-fit: cover; }
.chat-product { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text); font-size: .9rem; }
.chat-product:hover { text-decoration: none; }
.chat-product img { width: 40px; height: 52px; object-fit: cover; border-radius: 8px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.chat-safety { display: flex; gap: 6px; align-items: flex-start; font-size: .78rem; color: var(--muted); background: var(--yellow-soft); padding: 8px 12px; border-radius: 12px; margin: 0 0 8px; }
:root[data-theme="dark"] .chat-safety { background: var(--info-bg); }
.bubble { max-width: 78%; padding: 8px 12px 6px; border-radius: 18px; position: relative; overflow-wrap: anywhere; }
.bubble p { margin: 0; }
.bubble img { max-width: 220px; border-radius: 12px; margin-bottom: 4px; }
.bubble time { display: block; font-size: .66rem; opacity: .7; text-align: right; margin-top: 2px; }
.bubble.mine { align-self: flex-end; background: var(--pink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble.sending { opacity: .6; }
.chat-form { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + var(--safe-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.chat-form textarea { min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; padding: 10px 16px; }
.send-btn { background: var(--pink); color: #fff; flex: none; }
.send-btn:hover { background: var(--pink-strong); }
@media (min-width: 960px) { .chat { max-width: 760px; margin: 0 auto; height: calc(100vh - 140px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; } }

/* ---------- Reels ---------- */
body.immersive { background: #000; color: #fff; }
body.immersive main.page { padding: 0; }
body.immersive main.page > .container { max-width: none; padding: 0; }
.reels-page { position: relative; height: calc(100dvh - var(--bottom-nav-h) - var(--safe-bottom)); background: #000; }
@media (min-width: 960px) { .reels-page { height: 100dvh; } }
.reels-back { position: absolute; left: 8px; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 5; color: #fff; background: rgba(0,0,0,.35); }
.reels-title { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 18px); z-index: 4; text-align: center; font-weight: 800; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.reels-empty { color: #fff; padding-top: 30vh; }
.reels-empty p { color: rgba(255,255,255,.75); }
.reel-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.reel-feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; background: #000; }
.reel-video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.reel-tap { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; z-index: 1; }
.reel-sound { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 56px); left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; gap: 6px; align-items: center; background: rgba(0,0,0,.5); padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; pointer-events: none; transition: opacity .3s; }
.reel.unmuted .reel-sound { opacity: 0; }
.reel.paused::after { content: "▶"; position: absolute; z-index: 2; font-size: 3.4rem; color: rgba(255,255,255,.85); pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.reel-info { position: absolute; left: 0; right: 72px; bottom: 0; z-index: 2; padding: 16px 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: grid; gap: 8px; }
.reel-store { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.reel-store:hover { text-decoration: none; }
.reel-store img.avatar { object-fit: cover; border: 2px solid #fff; }
.reel-caption { margin: 0; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.reel-product { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--plum); max-width: 420px; }
.reel-product:hover { text-decoration: none; }
.reel-product img { width: 44px; height: 58px; object-fit: cover; border-radius: 8px; }
.reel-product .grow { display: flex; flex-direction: column; font-size: .85rem; }
.reel-rail { position: absolute; right: 8px; bottom: 24px; z-index: 2; display: grid; gap: 14px; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: #fff; cursor: pointer; font-size: .72rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); min-width: 52px; }
.rail-btn .icon { width: 32px; height: 32px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.rail-btn.on { color: var(--pink); }

@media (min-width: 760px) {
  .reel-feed { max-width: 460px; margin: 0 auto; }
  .reel { border-radius: 0; }
  .reels-page::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(230,0,126,.18), transparent); pointer-events: none; }
}
body.immersive .bottom-nav { background: #000; border-top-color: #222; }
body.immersive .bottom-nav a { color: #bbb; }
body.immersive .bottom-nav a.active { color: #fff; }
body.immersive .sheet { color: var(--text); }
.comments { display: grid; gap: 10px; }
.comment { font-size: .92rem; overflow-wrap: anywhere; }
.comment-form { align-items: center; }
.comment-form .input { flex: 1; }
.video-drop { position: relative; display: block; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--pink-wash); overflow: hidden; cursor: pointer; }
.video-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.video-preview { width: 100%; max-height: 60vh; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.progress { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 12px 0 4px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .2s; }

/* ---------- Auctions ---------- */
.auction-hero { border-radius: var(--radius-lg); padding: 24px 20px; background: var(--plum); color: #fff; margin-top: 8px; position: relative; overflow: hidden; }
.auction-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(var(--yellow), transparent 70%); opacity: .5; }
.auction-hero h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auction-hero p { margin: 0; opacity: .9; max-width: 44ch; }
.auction-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); padding: 4px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.countdown-badge.soon { background: var(--yellow); color: var(--on-yellow); }
.countdown-badge.sold { background: var(--success); }
.countdown-badge.urgent, .bid-timer.urgent { color: #fff; background: #FF2D55; }
.bid-box { margin: 14px 0; display: grid; gap: 10px; border: 2px solid var(--pink-soft); }
.bid-top { display: flex; justify-content: space-between; gap: 12px; }
.bid-top > div { display: flex; flex-direction: column; }
.bid-price { font-size: 1.9rem; letter-spacing: -.02em; font-weight: 850; }
.bid-timer { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 8px; align-self: flex-end; }
.bid-you { margin: 0; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .9rem; }
.bid-you.winning { background: var(--success-bg); color: var(--success); }
.bid-you.outbid { background: var(--danger-bg); color: var(--danger); }
.bid-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bid-quick .chip { cursor: pointer; }
.bid-row { display: flex; gap: 8px; }
.bid-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bid-history li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); align-items: center; }
.bid-history li.new { animation: flashrow 1.2s ease; }
@keyframes flashrow { from { background: var(--yellow-soft); } }
@media (min-width: 960px) { .auction-hero { padding: 36px; } .auction-hero h1 { font-size: 2.2rem; } }

/* ---------- Live ---------- */
.live-hero { background: linear-gradient(135deg, #2A0F2E, #6A0C4C); }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .live-grid { grid-template-columns: repeat(4, 1fr); } }
.live-stage { position: relative; height: 100dvh; background: #000; color: #fff; overflow: hidden; }
body.immersive:not(.no-nav) .live-stage { height: calc(100dvh - var(--bottom-nav-h) - var(--safe-bottom)); }
@media (min-width: 760px) { .live-stage { max-width: 480px; margin: 0 auto; } }
.live-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
.live-video.mirror { transform: scaleX(-1); }
.live-overlay-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 20px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.live-overlay-top .icon-btn { color: #fff; }
.live-host { display: flex; align-items: center; gap: 8px; color: #fff; flex: 1; min-width: 0; font-size: .85rem; line-height: 1.2; }
.live-host:hover { text-decoration: none; }
.live-host img.avatar { object-fit: cover; border: 2px solid #fff; }
.live-viewers { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.live-center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 20px; pointer-events: none; }
.live-center > * { pointer-events: auto; }
.live-center p { background: rgba(0,0,0,.45); padding: 12px 16px; border-radius: 14px; max-width: 300px; }
.live-center p:empty { display: none; }
.live-center a { color: var(--yellow); }
.live-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 30px 10px calc(10px + var(--safe-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.7)); display: grid; gap: 8px; }
.live-chat { max-height: 30vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 25%); -webkit-mask-image: linear-gradient(transparent, #000 25%); padding-right: 60px; }
.live-chat::-webkit-scrollbar { display: none; }
.lmsg { font-size: .88rem; text-shadow: 0 1px 3px rgba(0,0,0,.7); overflow-wrap: anywhere; }
.lmsg strong { color: var(--yellow); }
.lmsg-system, .lmsg-pin { color: #fff; opacity: .85; font-style: italic; font-size: .8rem; }
.live-pinned { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.96); color: var(--plum); }
.live-pinned img { width: 52px; height: 68px; object-fit: cover; border-radius: 8px; }
.live-pinned .grow { display: flex; flex-direction: column; font-size: .85rem; }
.live-pinned form { margin: 0; }
.sheet .live-pinned { border: 1px solid var(--border); margin-bottom: 8px; }
.live-input { display: flex; gap: 6px; align-items: center; }
.live-input .input { flex: 1; min-height: 44px; border-radius: 22px; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.live-input .input::placeholder { color: rgba(255,255,255,.7); }
.live-input .icon-btn { color: #fff; background: rgba(255,255,255,.15); }
.heart-btn { color: #FF5CA8 !important; }
.live-shop-btn { background: rgba(255,255,255,.92); }
.hearts { position: absolute; right: 18px; bottom: 90px; width: 60px; height: 260px; z-index: 4; pointer-events: none; }
.float-heart { position: absolute; bottom: 0; font-size: 1.8rem; color: #FF3D9E; animation: floatup 2.2s ease-out forwards; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
@keyframes floatup { to { transform: translateY(-240px) scale(1.4); opacity: 0; } }
.studio-products { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.studio-prod { flex: none; width: 64px; border: 2px solid transparent; border-radius: 10px; padding: 0; background: rgba(255,255,255,.12); color: #fff; overflow: hidden; cursor: pointer; font-size: .68rem; font-weight: 700; }
.studio-prod img { width: 100%; height: 72px; object-fit: cover; display: block; }
.studio-prod span { display: block; padding: 2px; }
.studio-prod.on { border-color: var(--yellow); }
.studio-controls { display: flex; gap: 8px; align-items: center; }
.studio-controls .icon-btn { color: #fff; background: rgba(255,255,255,.15); }
.studio-controls .icon-btn.off { background: var(--danger); }
.studio-controls .end-btn { background: rgba(0,0,0,.4); color: #fff; border-color: rgba(255,255,255,.5); }
.studio .live-input { margin-bottom: 2px; }
.pick-list { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 12px; }
.pick-list .check { gap: 8px; }
.live-row-card { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; border-left: 4px solid #FF2D55; }

/* ---------- Info pages ---------- */
.prose-page { max-width: 720px; margin: 0 auto; }
.prose-page h2 { margin-top: 26px; }
.prose-page .lead { font-size: 1.1rem; color: var(--muted); }
.prose-page ul { padding-left: 20px; display: grid; gap: 6px; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--pink-ink); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.fee-card { display: flex; align-items: center; gap: 16px; background: var(--yellow); color: var(--on-yellow); border: 0; margin: 10px 0 18px; }
.fee-big { font-size: 3rem; font-weight: 900; letter-spacing: -.03em; }

/* ---------- Verification & trust ---------- */
.verify-steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.verify-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .92rem; }
.verify-steps .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .8rem; font-weight: 800; flex: none; }
.verify-steps .done .tick { background: var(--success); color: #fff; }
.trust-explainer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.trust-explainer h2 { font-size: 1rem; }
.trust-explainer p { font-size: .9rem; color: var(--muted); }
.trusted-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--yellow); color: var(--on-yellow); font-size: .75rem; font-weight: 800; vertical-align: 2px; }
.trusted-badge .icon-sm { width: 14px; height: 14px; }
.verif-form { display: grid; gap: 8px; }
.verif-form .input { width: 100%; border-radius: var(--radius); }

/* ---------- Easy navigation: quick tiles, explore tabs, read aloud ---------- */
.quick-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.qtile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--border); color: var(--text); font-weight: 700; font-size: .82rem; text-align: center; min-height: 88px; justify-content: center; }
.qtile:hover { text-decoration: none; border-color: var(--pink); }
.qtile .qicon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--pink); color: #fff; }
.qtile .qicon .icon { width: 22px; height: 22px; }
.qtile.y .qicon { background: var(--yellow); color: var(--on-yellow); }
.qtile.p .qicon { background: var(--plum); color: #fff; }
.qtile.w .qicon { background: var(--pink-wash); color: var(--pink-ink); }
:root[data-theme="dark"] .qtile.p .qicon { background: #4D2E57; }
@media (min-width: 720px) { .quick-tiles { grid-template-columns: repeat(4, minmax(0, 180px)); } .qtile { flex-direction: row; justify-content: flex-start; padding: 12px 14px; min-height: 0; font-size: .95rem; } }

.tab-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; }
.tab-row::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--surface); border: 1.5px solid var(--border); color: var(--text); font-weight: 700; font-size: .9rem; }
.tab .icon { width: 16px; height: 16px; color: var(--pink-ink); }
.tab:hover { text-decoration: none; border-color: var(--pink); }
.tab.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.tab.active .icon { color: #fff; }
.grid-products.is-loading { opacity: .45; transition: opacity .15s; }
.section-head h2 .icon { color: var(--pink-ink); width: 20px; height: 20px; vertical-align: -3px; }
.section-head h2 .icon.fire { color: #F57C00; }

.read-aloud { display: inline-flex; align-items: center; gap: 8px; }
.read-aloud.speaking { background: var(--pink); color: #fff; border-color: var(--pink); }
.pcard-price strong { font-size: 1.05rem; }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.section-head h2, .search-head h1 { display: flex; align-items: center; gap: 8px; }
.section-head h2 .icon { vertical-align: 0; flex: none; }
.search-head h1 .icon { color: var(--pink-ink); width: 26px; height: 26px; }
:root[data-theme="dark"] .cat-tile:nth-child(3n+2) .cat-icon { background: #3A2E10; }
:root[data-theme="dark"] .cat-tile:nth-child(3n+2) .cat-icon svg { color: var(--yellow); }
