/* ───────────── Design tokens ───────────── */
:root {
  --bg: #f3f5f3;
  --surface: #ffffff;
  --surface-2: #f6f8f6;
  --ink: #0f1a14;
  --ink-2: #33413a;
  --muted: #66746c;
  --line: #e4e9e5;
  --brand: #0b8a5a;
  --brand-strong: #087148;
  --brand-soft: #e5f4ec;
  --brand-ink: #ffffff;
  --accent: #f5b301;
  --danger: #d23b2f;
  --danger-soft: #fdecea;
  --warn-soft: #fff6dc;
  --warn-ink: #7a5600;
  --shadow-sm: 0 1px 2px rgba(15, 26, 20, .06), 0 1px 1px rgba(15, 26, 20, .04);
  --shadow-md: 0 8px 24px rgba(15, 26, 20, .08), 0 2px 6px rgba(15, 26, 20, .05);
  --shadow-lg: 0 24px 60px rgba(15, 26, 20, .18);
  --glass: rgba(255, 255, 255, .82);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --maxw: 560px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f0d;
    --surface: #131a16;
    --surface-2: #19221d;
    --ink: #eef3f0;
    --ink-2: #c9d3cd;
    --muted: #8d9a93;
    --line: #25302a;
    --brand: #19b77a;
    --brand-strong: #13a06a;
    --brand-soft: #123325;
    --brand-ink: #04140c;
    --danger: #ff6b5f;
    --danger-soft: #3a1714;
    --warn-soft: #3a2f10;
    --warn-ink: #f7d779;
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
    --glass: rgba(19, 26, 22, .82);
    color-scheme: dark;
  }
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: var(--brand); }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 26px; height: 26px; }
.icon.filled { fill: currentColor; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff; background: linear-gradient(135deg, #12b07a, #087148); animation: pulse 1.2s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .8; } }

/* ───────────── Shell ───────────── */
.shell { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); position: relative; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }
@media (min-width: 600px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, var(--brand-soft), transparent 60%), var(--bg); }
  .shell { box-shadow: 0 0 0 1px var(--line); }
}

.demo-ribbon { background: var(--warn-soft); color: var(--warn-ink); font-size: 12.5px; font-weight: 600; text-align: center; padding: 6px 12px; padding-top: calc(6px + var(--safe-t)); letter-spacing: .01em; }

/* ───────────── Top bar ───────────── */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); padding: 10px 16px 0; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); min-width: 0; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(135deg, #12b07a, #087148); box-shadow: 0 4px 10px rgba(11, 138, 90, .35); flex: none; }
.logo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 7px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); max-width: 48%; transition: transform .2s var(--ease); }
.loc-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-btn:active { transform: scale(.96); }

.search-row { display: flex; gap: 8px; margin-top: 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; height: 44px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.search .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search .clear { color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: transform .2s var(--ease), background .2s; color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); scroll-snap-align: start; transition: background .25s var(--ease), color .25s, border-color .25s, transform .2s var(--ease); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .icon { width: 17px; height: 17px; }

/* ───────────── Results bar ───────────── */
.results-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; }
.results-bar .count { font-size: 14px; color: var(--muted); font-weight: 500; flex: 1; min-width: 0; }
.results-bar .count b { color: var(--ink); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { width: 36px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-strong); }
.seg .icon { width: 18px; height: 18px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }
.pill button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.pill .icon { width: 13px; height: 13px; }

/* ───────────── Feed (social cards) ───────────── */
.feed { display: flex; flex-direction: column; gap: 14px; padding: 10px 0 8px; }
.post { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); animation: rise .5s var(--ease) both; }
@media (min-width: 600px) { .post { margin: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; flex: none; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.who { min-width: 0; flex: 1; }
.who .name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.who .name .icon { width: 15px; height: 15px; color: var(--brand); }
.who .meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.more-btn:active { background: var(--surface-2); }

.media { position: relative; background: #0d1210; aspect-ratio: 4 / 5; overflow: hidden; }
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; position: relative; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.slide img { opacity: 0; transition: opacity .5s var(--ease); }
.slide img.loaded { opacity: 1; }
.media .price-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: #0f1a14; font-weight: 800; font-size: 18px; letter-spacing: -.01em; padding: 6px 12px; border-radius: 12px; box-shadow: var(--shadow-md); pointer-events: none; }
.media .tag-tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 5px 8px; border-radius: 8px; }
.tag .icon { width: 13px; height: 13px; }
.tag.brand { background: var(--brand); color: #fff; }
.media .counter { position: absolute; top: 12px; right: 12px; pointer-events: none; }
.mute-btn { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mute-btn .icon { width: 18px; height: 18px; }
.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 16px; border-radius: 3px; background: #fff; }

.post-body { padding: 12px 14px 4px; }
.post-title { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.3; }
.post-title button { text-align: left; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fact { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.fact .icon { width: 14px; height: 14px; color: var(--muted); }
.post-desc { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px 10px; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .2s, transform .2s var(--ease), color .2s; }
.act:active { transform: scale(.94); background: var(--surface-2); }
.act.saved { color: #e0245e; }
.act.saved .icon { fill: currentColor; animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.act.primary { margin-left: auto; background: var(--brand); color: var(--brand-ink); padding: 0 14px; }
.act.primary:active { background: var(--brand-strong); }

/* ───────────── Grid ───────────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 10px 16px; }
.card { background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); text-align: left; position: relative; box-shadow: var(--shadow-sm); animation: rise .45s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s; display: block; width: 100%; }
.card:active { transform: scale(.97); }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } }
.card .thumb { aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s var(--ease); }
.card .thumb img.loaded { opacity: 1; }
.card .thumb .tag { position: absolute; top: 8px; left: 8px; }
.card .info { padding: 9px 10px 11px; }
.card .price { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.card .title { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .where { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .heart { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: #0f1a14; box-shadow: var(--shadow-sm); }
.card .heart .icon { width: 18px; height: 18px; }
.card .heart.saved { color: #e0245e; }
.card .heart.saved .icon { fill: currentColor; }

/* ───────────── Empty states ───────────── */
.empty { text-align: center; padding: 56px 28px; color: var(--muted); }
.empty .em-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.empty .em-icon .icon { width: 30px; height: 30px; }
.empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 18px; }
.empty p { margin: 0 0 18px; }

/* ───────────── Buttons ───────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 16px; transition: transform .2s var(--ease), background .2s, box-shadow .2s, opacity .2s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px rgba(11, 138, 90, .3); }
.btn-primary:active { background: var(--brand-strong); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; font-size: 14px; padding: 0 14px; border-radius: 11px; }
.link-btn { color: var(--brand); font-weight: 600; font-size: 14px; }

/* ───────────── Bottom nav ───────────── */
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--maxw); z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--line); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); height: 100%; justify-content: center; position: relative; text-decoration: none; transition: color .2s; }
.nav-item[aria-current="page"] { color: var(--ink); }
.nav-item[aria-current="page"] .icon { stroke-width: 2.4; }
.nav-item .badge { position: absolute; top: 7px; left: calc(50% + 6px); }
.nav-post { display: grid; place-items: center; }
.nav-post span { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 14px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, #12b07a, #087148); box-shadow: 0 8px 18px rgba(11, 138, 90, .35); transition: transform .2s var(--spring); white-space: nowrap; }
.nav-post:active span { transform: scale(.92); }

/* ───────────── Overlays: pages & sheets ───────────── */
.page { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; background: rgba(0, 0, 0, .25); }
.page-inner { width: 100%; max-width: var(--maxw); height: 100%; overflow-y: auto; background: var(--bg); animation: slide-in .38s var(--ease) backwards; overscroll-behavior: contain; position: relative; -webkit-overflow-scrolling: touch; }
.page.closing .page-inner { animation: slide-out .28s var(--ease) both; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out { to { transform: translateX(100%); } }
.page-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 8px 10px; padding-top: calc(8px + var(--safe-t)); background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.page-bar h2 { font-size: 17px; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-bar .icon-btn { background: transparent; border-color: transparent; }
.page-bar.floating { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; margin-bottom: calc(-60px - var(--safe-t)); pointer-events: none; }
.page-bar.floating .icon-btn { background: rgba(255, 255, 255, .92); color: #0f1a14; box-shadow: var(--shadow-md); pointer-events: auto; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.page-bar .spacer { flex: 1; }

.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.backdrop { position: absolute; inset: 0; background: rgba(5, 10, 8, .45); animation: fade .3s var(--ease) both; }
.sheet { position: relative; width: 100%; max-width: var(--maxw); max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--safe-b)); box-shadow: var(--shadow-lg); animation: sheet-up .4s var(--ease) both; overscroll-behavior: contain; }
.sheet-wrap.closing .sheet { animation: sheet-down .26s var(--ease) both; }
.sheet-wrap.closing .backdrop { animation: fade .26s var(--ease) reverse both; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
.sheet .sub { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sheet-foot { position: sticky; bottom: calc(-18px - var(--safe-b)); background: var(--surface); padding: 12px 0 calc(4px + var(--safe-b)); margin-top: 16px; display: flex; gap: 10px; border-top: 1px solid var(--line); }

.menu { display: flex; flex-direction: column; }
.menu button { display: flex; align-items: center; gap: 14px; padding: 14px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); text-align: left; }
.menu button:last-child { border-bottom: 0; }
.menu button.danger { color: var(--danger); }

/* ───────────── Forms ───────────── */
.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; display: block; font-weight: 500; }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.money .input { padding-left: 28px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.opt[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.opt .icon { width: 17px; height: 17px; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.radio input { margin: 3px 0 0; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.radio b { display: block; font-size: 15px; }
.radio small { color: var(--muted); font-size: 13px; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--brand); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.range-row { display: flex; align-items: center; gap: 12px; }
input[type="range"] { flex: 1; accent-color: var(--brand); }

/* ───────────── Location list ───────────── */
.loc-list { display: flex; flex-direction: column; margin-top: 8px; }
.loc-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.loc-item .icon { color: var(--muted); }
.loc-item b { display: block; font-size: 15px; }
.loc-item small { color: var(--muted); }
.loc-item[aria-pressed="true"] b { color: var(--brand-strong); }
.loc-item .tick { margin-left: auto; color: var(--brand); }

/* ───────────── Detail page ───────────── */
.detail .media { aspect-ratio: 1 / 1; }
@media (min-width: 600px) { .detail .media { aspect-ratio: 4 / 3; } }
.detail-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; padding-bottom: calc(100px + var(--safe-b)); }
.price-xl { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.detail-title { font-size: 20px; font-weight: 700; margin: 2px 0 6px; letter-spacing: -.01em; line-height: 1.25; }
.detail-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel h4 { margin: 0 0 10px; font-size: 16px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.specs div { min-width: 0; }
.specs dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.specs dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.desc { white-space: pre-wrap; margin: 0; color: var(--ink-2); }
.seller { display: flex; align-items: center; gap: 12px; }
.seller .stars { color: var(--accent); display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 14px; }
.seller .stars .icon { width: 15px; height: 15px; fill: currentColor; }
.seller small { color: var(--muted); display: block; font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-map { height: 140px; border-radius: 14px; position: relative; overflow: hidden; background:
  radial-gradient(circle at 50% 50%, rgba(11, 138, 90, .22) 0 46px, rgba(11, 138, 90, .08) 47px 70px, transparent 71px),
  repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 29px),
  repeating-linear-gradient(90deg, transparent 0 37px, var(--line) 37px 39px),
  var(--surface-2); }
.mini-map::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.map-cap { font-size: 13px; color: var(--muted); margin-top: 8px; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; background: var(--brand-soft); color: var(--ink-2); }
.notice .icon { color: var(--brand-strong); margin-top: 1px; }
.notice.warn { background: var(--warn-soft); color: var(--warn-ink); }
.notice.warn .icon { color: var(--warn-ink); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice.danger .icon { color: var(--danger); }
.notice b { color: inherit; }
.tips { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.tips li { margin: 4px 0; }
.report-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; align-self: center; padding: 8px; }

.action-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--maxw); z-index: 6; display: flex; gap: 10px; padding: 10px 16px calc(10px + var(--safe-b)); background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--line); }
.action-bar .btn { flex: 1; }
.action-bar .icon-btn { width: 50px; height: 50px; }
.action-bar .icon-btn.saved { color: #e0245e; }
.action-bar .icon-btn.saved .icon { fill: currentColor; animation: pop .45s var(--spring); }

/* ───────────── Chat ───────────── */
.chat { display: flex; flex-direction: column; min-height: 100%; }
.chat-listing { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.chat-listing img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.chat-listing b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-listing small { color: var(--muted); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 12px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 15px; animation: rise .3s var(--ease) both; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.msg-system { align-self: center; font-size: 12.5px; color: var(--muted); text-align: center; max-width: 90%; padding: 6px 10px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.composer { position: sticky; bottom: 0; background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + var(--safe-b)); }
.quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick .chip { height: 32px; font-size: 13px; }
.composer form { display: flex; gap: 8px; }
.composer .input { border-radius: 999px; height: 44px; }
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; transition: transform .2s var(--spring); }
.composer .send:active { transform: scale(.9); }
.composer .send .icon { width: 19px; height: 19px; }

.list { display: flex; flex-direction: column; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; transition: background .2s; animation: rise .4s var(--ease) both; }
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: var(--surface-2); }
.list-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.list-item .li-main { min-width: 0; flex: 1; }
.list-item b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-sub { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-time { font-size: 12px; color: var(--muted); align-self: flex-start; margin-top: 3px; }
.list-item .dot-unread { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }

.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0; padding: 18px 16px 6px; }
.section-sub { color: var(--muted); margin: 0; padding: 0 16px 10px; font-size: 14.5px; }

/* ───────────── Profile ───────────── */
.profile-card { margin: 12px 16px; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, #0f3d2b, #0b8a5a); color: #fff; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.profile-card::after { content: "$1"; position: absolute; right: -10px; bottom: -40px; font-size: 140px; font-weight: 900; opacity: .08; letter-spacing: -.06em; }
.profile-card .row { display: flex; align-items: center; gap: 12px; }
.profile-card .avatar { background: rgba(255, 255, 255, .18); }
.profile-card small { opacity: .8; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 20px; }
.stats span { font-size: 12px; opacity: .85; }
.how { margin: 12px 16px; display: grid; gap: 10px; }
.how-item { display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.how-item .num { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; }
.how-item b { display: block; }
.how-item span { color: var(--muted); font-size: 14px; }
.my-item-actions { display: flex; gap: 6px; }
.status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); }
.status.sold { background: var(--surface-2); color: var(--muted); }
.footer-note { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 24px 8px; }

/* ───────────── Post flow ───────────── */
.steps { display: flex; gap: 6px; padding: 12px 16px 4px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.steps i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.steps i.done::after { transform: scaleX(1); }
.step-label { font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 16px 0; }
.post-form { padding: 10px 16px calc(110px + var(--safe-b)); animation: rise .35s var(--ease) both; }
.post-form h3 { font-size: 24px; letter-spacing: -.02em; margin: 6px 0 4px; }
.post-form > p.sub { color: var(--muted); margin: 0 0 18px; }
.uploader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.up-slot { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; background: var(--surface-2); border: 1px solid var(--line); }
.up-slot img, .up-slot video { width: 100%; height: 100%; object-fit: cover; }
.up-slot .rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; }
.up-slot .rm .icon { width: 15px; height: 15px; }
.up-slot .cover { position: absolute; left: 6px; bottom: 6px; }
.up-add { aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 700; background: var(--surface); transition: border-color .2s, color .2s, transform .2s var(--ease); cursor: pointer; text-align: center; }
.up-add:active { transform: scale(.96); }
.up-add:hover { border-color: var(--brand); color: var(--brand); }
.up-add.big { grid-column: 1 / -1; aspect-ratio: auto; padding: 30px 16px; }
.up-add.big .icon { width: 30px; height: 30px; }
.fee-card { border-radius: var(--radius); padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 17px; }
.line span:first-child { color: var(--ink-2); }
.preview-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.preview-card img, .preview-card .ph { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.preview-card b { display: block; }
.preview-card .p { font-weight: 800; font-size: 18px; }
.preview-card small { color: var(--muted); }

.demo-checkout { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 16px; background: var(--warn-soft); }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn-ink); background: rgba(245, 179, 1, .25); padding: 5px 9px; border-radius: 8px; }
.demo-card { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.demo-card .chipcard { width: 44px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #2a2f2c, #59615c); position: relative; flex: none; }
.demo-card .chipcard::after { content: ""; position: absolute; left: 7px; top: 9px; width: 11px; height: 9px; border-radius: 2px; background: #e8c66a; }
.demo-card b { display: block; font-size: 15px; }
.demo-card small { color: var(--muted); }

.success { text-align: center; padding: 40px 24px calc(40px + var(--safe-b)); }
.success-mark { width: 92px; height: 92px; margin: 10px auto 18px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; animation: pop .6s var(--spring) both; box-shadow: 0 0 0 12px var(--brand-soft); }
.success-mark .icon { width: 46px; height: 46px; stroke-width: 3; }
.success h3 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.02em; }
.success p { color: var(--muted); margin: 0 0 8px; }
.receipt { text-align: left; margin: 20px 0; }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── Toast ───────────── */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; background: #111a15; color: #fff; padding: 12px 14px 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 500; animation: toast-in .4s var(--spring) both; }
.toast.out { animation: toast-out .25s var(--ease) both; }
.toast .icon { color: #3ddc97; }
.toast button { color: #3ddc97; font-weight: 700; margin-left: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

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

/* ───────────── Fixes & refinements ───────────── */
[hidden] { display: none !important; }
.detail .media .tag-tl { top: auto; bottom: 14px; }
@media (max-width: 420px) {
  .logo { font-size: 17.5px; gap: 8px; }
  .loc-btn { font-size: 13px; padding: 6px 9px; }
}
.loc-item { width: 100%; }
.list-item > button { text-align: left; }

/* ───────────── Accounts ───────────── */
.auth { padding-top: 6px; }
.auth-brand { display: flex; justify-content: center; margin: 4px 0 12px; }
.auth-brand .logo-mark { width: 52px; height: 52px; font-size: 20px; border-radius: 16px; box-shadow: 0 10px 24px rgba(11, 138, 90, .3); animation: pop .5s var(--spring) both; }
.auth h3, .auth > .sub { text-align: center; }
.auth-tabs { display: flex; width: 100%; margin: 0 0 16px; }
.auth-tabs button { flex: 1; width: auto; height: 38px; font-weight: 700; font-size: 14px; }
.auth-error { margin-bottom: 14px; animation: shake .4s var(--ease); }
.auth-fine { margin: 14px 8px 2px; color: var(--muted); font-size: 12.5px; text-align: center; text-wrap: balance; }
.auth-fine .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 50px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.pw-toggle:hover { color: var(--ink); background: var(--surface); }
.auth-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.profile-card.guest small { display: block; margin-top: 2px; }
.profile-card .guest-avatar { display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.guest-avatar .icon { width: 26px; height: 26px; }
.guest-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn-light { background: #fff; color: #0f3d2b; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); height: 46px; font-size: 15px; }
.btn-outline-light { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .4); height: 46px; font-size: 15px; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .18); }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 11px; font-weight: 700; }

.msg.sending { opacity: .6; }
.msg.failed { opacity: .7; box-shadow: 0 0 0 2px var(--danger); }
.msg.failed small::after { content: " · not sent"; color: var(--danger); }

.skeleton i, .skeleton b, .skeleton span, .skeleton-circle, .skeleton-text {
  background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 8px;
}
.skeleton i { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.skeleton b { display: block; height: 14px; width: 70%; margin-bottom: 8px; }
.skeleton span { display: block; height: 12px; width: 45%; }
.skeleton-text { width: 140px; height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  .auth-error, .auth-brand .logo-mark, .skeleton i, .skeleton b, .skeleton span, .skeleton-circle, .skeleton-text { animation: none; }
}

/* ───────────── Email links (verify / reset) ───────────── */
.forgot-link { display: inline-block; margin-top: 8px; font-size: 13.5px; }
.link-page { max-width: 420px; margin: 0 auto; padding: 36px 20px calc(40px + var(--safe-b)); text-align: center; animation: rise .4s var(--ease) both; }
.link-page.left { text-align: left; }
.link-page.left .link-mark { margin-left: 0; }
.link-page.in-sheet { padding: 12px 0 0; }
.link-page h1 { font-size: 24px; letter-spacing: -.02em; margin: 18px 0 8px; }
.link-page > p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.link-mark { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); animation: pop .5s var(--spring) both; }
.link-mark .icon { width: 30px; height: 30px; }
.link-mark.good { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px rgba(11, 138, 90, .3); }
.link-mark.bad { background: var(--danger-soft); color: var(--danger); }
.link-actions { display: grid; gap: 10px; margin-top: 8px; }
.link-spinner { width: 36px; height: 36px; margin: 40px auto 14px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.verify-banner { margin: 4px 16px 6px; }
.verify-banner b { display: block; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.verify-actions .btn { height: 34px; font-size: 13.5px; }
.dev-mail { border-style: dashed; color: var(--muted); }
.verified-mark { display: inline-flex; vertical-align: -3px; margin-right: 4px; color: #9ff0c9; }
.verified-mark .icon { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .link-page, .link-mark, .link-spinner { animation: none; } }

/* ───────────── Moderation ───────────── */
.mod-entry { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 4px 16px 8px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: left; transition: transform .2s var(--ease), box-shadow .2s; }
.mod-entry:hover { box-shadow: var(--shadow-md); }
.mod-entry:active { transform: scale(.98); }
.mod-entry-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--bg); flex: none; }
.mod-entry-text { flex: 1; min-width: 0; }
.mod-entry-text b { display: block; font-size: 15.5px; }
.mod-entry-text small { color: var(--muted); font-size: 13px; }
.mod-entry .chev { transform: rotate(180deg); color: var(--muted); }
.badge.static { position: static; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 800; }
.badge.static.hot { background: var(--danger); color: #fff; }
.status.flagged { background: var(--danger-soft); color: var(--danger); }

.admin { padding-bottom: calc(40px + var(--safe-b)); }
.admin-role { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 16px 4px; }
.admin-stats .stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: transform .2s var(--ease); min-height: 64px; }
.admin-stats .stat:active { transform: scale(.97); }
.admin-stats .stat b { font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.admin-stats .stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.admin-stats .stat.hot { background: var(--danger-soft); border-color: transparent; }
.admin-stats .stat.hot b, .admin-stats .stat.hot span { color: var(--danger); }
.admin-stats .stat.skeleton b { width: 28px; height: 20px; }
.admin-stats .stat.skeleton span { width: 48px; }
.admin-tabs { display: flex; gap: 6px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: background .2s, color .2s; }
.admin-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.admin-focus { display: flex; gap: 6px; align-items: flex-start; margin: 8px 16px 4px; font-size: 12.5px; color: var(--muted); }
.admin-focus .icon { flex: none; margin-top: 2px; }

.cases { display: grid; gap: 12px; padding: 10px 16px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); animation: rise .35s var(--ease) both; }
.case.priority { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); box-shadow: 0 0 0 3px var(--danger-soft); }
.case-head { display: flex; gap: 12px; }
.case-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.case-main small { color: var(--muted); font-size: 12.5px; }
.case-title { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 3px; }
.mod-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.mod-pill .icon { width: 12px; height: 12px; }
.mod-pill.ok { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.mod-pill.hidden { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.mod-pill.removed, .mod-pill.priority { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.warn-text { color: var(--danger); font-weight: 700; }
.case-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.reason { display: inline-block; padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.reason.hot { background: var(--danger-soft); color: var(--danger); }
.case-reports { margin-top: 10px; font-size: 13.5px; }
.case-reports summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.case-reports ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.case-reports li { padding: 9px 11px; border-radius: 10px; background: var(--surface-2); }
.case-reports q, .activity q { display: block; margin: 3px 0; color: var(--ink-2); font-style: italic; quotes: "“" "”"; }
.case-reports small, .activity small { display: block; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); font-weight: 500; }
.case-last { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.case-own { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; color: var(--warn-ink); }
.case-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.case-actions .btn { flex: 1 1 auto; min-width: 96px; }

.activity { list-style: none; margin: 0; padding: 10px 16px; }
.activity li { position: relative; display: flex; gap: 12px; padding: 0 0 18px; font-size: 14px; animation: rise .3s var(--ease) both; }
.activity li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.activity li:last-child::before { display: none; }
.act-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; flex: none; background: var(--muted); box-shadow: 0 0 0 3px var(--bg); position: relative; }
.act-hide .act-dot { background: var(--accent); }
.act-remove .act-dot { background: var(--danger); }
.act-restore .act-dot { background: var(--brand); }
.activity .link-btn { font-size: 14px; text-align: left; }
.activity .reason { margin-left: 4px; font-size: 11.5px; padding: 2px 7px; }
@media (max-width: 380px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .case, .activity li { animation: none; } }

/* ───────────── Product Stories & Reels rows ───────────── */
.rail { padding: 10px 0 2px; }
.rail-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin: 0; padding: 0 16px 8px; }
.stories, .reels { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories::-webkit-scrollbar, .reels::-webkit-scrollbar { display: none; }
.story { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px; scroll-snap-align: start; animation: rise .4s var(--ease) both; transition: transform .2s var(--ease); }
.story:active { transform: scale(.95); }
.story-ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--brand), var(--accent), var(--brand)); display: block; }
.story-ring img, .story-ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; border: 2.5px solid var(--bg); background: var(--surface-2); color: var(--muted); }
.story-price { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.story-title { font-size: 11.5px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel { position: relative; flex: none; width: 128px; aspect-ratio: 9 / 16; border-radius: var(--radius-sm); overflow: hidden; background: #0f1a14; scroll-snap-align: start; box-shadow: var(--shadow-sm); animation: rise .4s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s; }
@media (hover: hover) { .reel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } }
.reel:active { transform: scale(.97); }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .tag { position: absolute; top: 8px; left: 8px; }
.reel-info { position: absolute; inset: auto 0 0; padding: 26px 9px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; text-align: left; display: grid; gap: 1px; }
.reel-info b { font-size: 14px; }
.reel-info span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }

/* ───────────── Publishing format picker ───────────── */
.format-list { display: grid; gap: 8px; margin-bottom: 14px; }
.format-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: left; width: 100%; transition: border-color .2s, background .2s, transform .15s var(--ease); }
.format-opt:active:not(:disabled) { transform: scale(.985); }
.format-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.format-opt:disabled { opacity: .55; cursor: not-allowed; }
.format-box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.format-opt[aria-pressed="true"] .format-box { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.format-box .icon { width: 14px; height: 14px; stroke-width: 3; }
.format-main { flex: 1; min-width: 0; }
.format-main b { display: block; font-size: 15px; }
.format-main small { color: var(--muted); font-size: 13px; }
.format-price { font-weight: 800; font-size: 15px; }
.format-price.free { color: var(--brand-strong); }
