/*
 * Listora — public website styles
 * Developed by Anow Hosting Web · https://anowhosting.com
 *
 * Brand colours (--brand, --accent, --hero) and fonts are printed by the layout
 * from Admin › Appearance; everything else derives from them.
 */
:root {
  --brand: #2343d0;
  --accent: #ffc23d;
  --hero: #13226b;
  --bg: #f3f4f9;
  --surface: #ffffff;
  --surface-2: #eceff8;
  --line: #dfe3ef;
  --fg: #11163a;
  --fg-2: #4f5677;
  --fg-3: #7d84a3;
  --brand-ink: color-mix(in srgb, var(--brand) 55%, #0b1030);
  --brand-soft: color-mix(in srgb, var(--brand) 11%, #fff);
  --on-brand: #ffffff;
  --accent-ink: #2b1c00;
  --ok: #0f7d55;
  --ok-soft: #dff4ea;
  --hot: #d6400c;
  --hot-soft: #ffece2;
  --warn: #a86500;
  --warn-soft: #fff4d6;
  --hero-2: color-mix(in srgb, var(--hero) 78%, var(--brand));
  --hero-dot: rgba(255, 255, 255, 0.09);
  --on-hero: #ffffff;
  --on-hero-2: rgba(255, 255, 255, 0.74);
  --scrim: rgba(10, 14, 36, 0.48);
  --shadow-sm: 0 1px 2px rgba(17, 22, 58, 0.06);
  --shadow: 0 1px 2px rgba(17, 22, 58, 0.05), 0 10px 28px -14px rgba(17, 22, 58, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(17, 22, 58, 0.35);
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Noto Sans Tamil", "Noto Sans Sinhala", "Noto Sans Devanagari", "Noto Sans Arabic", "Noto Sans SC";
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --pill: 999px;
  --top-h: 64px;
  --tab-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e1f; --surface: #121834; --surface-2: #1a2145; --line: #262e57;
    --fg: #eef0fb; --fg-2: #a9b0cf; --fg-3: #7a82a6;
    --brand: color-mix(in srgb, var(--brand-base, #2343d0) 62%, #fff);
    --brand-ink: color-mix(in srgb, var(--brand-base, #2343d0) 30%, #fff);
    --brand-soft: color-mix(in srgb, var(--brand-base, #2343d0) 26%, #0a0e1f);
    --on-brand: #0a0e1f;
    --ok: #44cf93; --ok-soft: #10301f; --hot: #ff8a5c; --hot-soft: #3a1d12; --warn: #ffc85a; --warn-soft: #362806;
    --hero: color-mix(in srgb, var(--hero-base, #13226b) 70%, #000);
    --hero-dot: rgba(255, 255, 255, 0.07);
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e1f; --surface: #121834; --surface-2: #1a2145; --line: #262e57;
  --fg: #eef0fb; --fg-2: #a9b0cf; --fg-3: #7a82a6;
  --brand: color-mix(in srgb, var(--brand-base, #2343d0) 62%, #fff);
  --brand-ink: color-mix(in srgb, var(--brand-base, #2343d0) 30%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand-base, #2343d0) 26%, #0a0e1f);
  --on-brand: #0a0e1f;
  --ok: #44cf93; --ok-soft: #10301f; --hot: #ff8a5c; --hot-soft: #3a1d12; --warn: #ffc85a; --warn-soft: #362806;
  --hero: color-mix(in srgb, var(--hero-base, #13226b) 70%, #000);
  --hero-dot: rgba(255, 255, 255, 0.07);
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 var(--f-body), var(--f-script);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 18px; border-radius: var(--pill);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px rgba(255, 170, 0, 0.7); }
.btn--accent:hover { filter: brightness(1.04); }
.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--fg-3); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--ok { background: var(--ok); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { height: 36px; padding-inline: 14px; font-size: 14px; }
.btn--lg { height: 52px; padding-inline: 24px; font-size: 16px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--pill);
  display: inline-grid; place-items: center; color: var(--fg-2);
  transition: background-color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--fg); }
.icon-btn .dot { position: absolute; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding-inline: 12px 14px; border-radius: var(--pill);
  background: var(--surface-2); color: var(--fg); font-weight: 600; font-size: 14px;
  max-width: 100%; min-width: 0;
}
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill:hover { background: var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding-inline: 14px; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--fg-2); white-space: nowrap;
}
.chip:hover { border-color: var(--fg-3); color: var(--fg); }
.chip.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.flag { width: 22px; height: auto; aspect-ratio: 3 / 2; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); flex: none; object-fit: cover; }
.flag--lg { width: 30px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { height: var(--top-h); display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; color: var(--fg); flex: none; }
.logo svg { width: 30px; height: 30px; }
.topbar .pill--loc { max-width: 230px; }
.topbar__search { flex: 1; max-width: 460px; min-width: 0; }
.topbar__spacer { flex: 1; }
.topbar__actions { display: flex; align-items: center; gap: 4px; }
.region-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 10px 12px; border-radius: var(--pill); font-weight: 700; font-size: 13px; color: var(--fg-2); border: 1.5px solid var(--line); }
.region-btn:hover { color: var(--fg); border-color: var(--fg-3); }
.region-btn .flag { width: 20px; }
.only-sm { display: none !important; }
@media (max-width: 899px) {
  .hide-sm { display: none !important; }
  .only-sm { display: inline-flex !important; }
  .topbar__in { gap: 8px; height: 58px; }
  .logo { font-size: 21px; }
  .logo svg { width: 26px; height: 26px; }
}

/* mini search field */
.field-search { position: relative; display: flex; align-items: center; }
.field-search input {
  width: 100%; height: 42px; border-radius: var(--pill); border: 1.5px solid var(--line);
  background: var(--surface); padding-inline: 42px 16px; font-size: 15px; outline: none;
}
.field-search input:focus { border-color: var(--brand); }
.field-search .i { position: absolute; inset-inline-start: 14px; color: var(--fg-3); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, var(--hero-dot) 1.2px, transparent 1.6px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--hero) 0%, var(--hero-2) 100%);
  color: var(--on-hero);
}
.hero__tag {
  position: absolute; inset-inline-end: -40px; top: 26px; width: 300px; opacity: 0.12; transform: rotate(-14deg);
  pointer-events: none;
}
[dir="rtl"] .hero__tag { transform: rotate(14deg) scaleX(-1); }
.hero__in { position: relative; padding-block: 44px 52px; display: grid; gap: 18px; justify-items: start; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--on-hero-2); letter-spacing: 0.02em; }
.hero__eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62, 224, 143, 0.22); }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); line-height: 1.04; font-weight: 800; max-width: 17ch; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.bigsearch {
  width: 100%; max-width: 860px; display: flex; align-items: center; gap: 6px;
  background: var(--surface); border-radius: var(--pill); padding: 6px; box-shadow: var(--shadow-lg);
  color: var(--fg);
}
.bigsearch__loc { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding-inline: 14px; border-radius: var(--pill); font-weight: 700; font-size: 14px; color: var(--fg); max-width: 34%; min-width: 0; }
.bigsearch__loc:hover { background: var(--surface-2); }
.bigsearch__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bigsearch__sep { width: 1px; height: 28px; background: var(--line); flex: none; }
.bigsearch input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; font-size: 16px; padding-inline: 10px; }
.bigsearch .btn { height: 48px; padding-inline: 22px; }
.trending { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--on-hero-2); font-weight: 600; }
.trending button { height: 30px; padding-inline: 12px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.1); color: var(--on-hero); font-weight: 600; font-size: 13px; border: 1px solid rgba(255, 255, 255, 0.16); }
.trending button:hover { background: rgba(255, 255, 255, 0.18); }
@media (max-width: 719px) {
  .hero__in { padding-block: 26px 30px; gap: 14px; }
  .hero__tag { width: 190px; top: 10px; inset-inline-end: -50px; }
  .bigsearch { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px; }
  .bigsearch__loc { max-width: 100%; width: 100%; justify-content: flex-start; height: 40px; background: var(--surface-2); }
  .bigsearch__sep { display: none; }
  .bigsearch input { height: 46px; }
  .bigsearch .btn { width: 46px; padding: 0; }
  .bigsearch .btn span { display: none; }
}

/* ---------- sections ---------- */
.sec { padding-block: 34px 0; }
.sec:last-of-type { padding-block-end: 40px; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-block-end: 16px; }
.sec__head h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 750; }
.sec__head p { color: var(--fg-2); font-size: 14px; margin-block-start: 2px; }
.link { color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.link:hover { text-decoration: underline; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.cat {
  display: grid; justify-items: center; gap: 8px; padding: 16px 6px 14px; text-align: center;
  background: var(--surface); border-radius: var(--r); border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.cat__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); }
.cat__ic .i { width: 26px; height: 26px; }
.cat b { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.cat small { font-size: 12px; color: var(--fg-3); font-weight: 600; }
@media (max-width: 1023px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .cats { gap: 6px 4px; }
  .cat { background: transparent; border: 0; padding: 4px 0; }
  .cat:hover { box-shadow: none; }
  .cat__ic { width: 56px; height: 56px; border-radius: 18px; }
  .cat b { font-size: 12px; font-weight: 650; }
  .cat small { display: none; }
  .cats.is-collapsed .cat:nth-child(n+8):not(.cat--more) { display: none; }
}
.cat--more { display: none; }
@media (max-width: 719px) { .cats.is-collapsed .cat--more { display: grid; } }

/* rails */
.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 16px) / 4)); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 4px 12px; margin-block-end: -12px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { position: absolute; top: 34%; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; color: var(--fg); }
.rail__nav--prev { inset-inline-start: -14px; }
.rail__nav--next { inset-inline-end: -14px; }
@media (max-width: 719px) {
  .rail__track { grid-auto-columns: 78%; gap: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .rail__nav { display: none; }
}

/* ad card */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card--feat { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding-inline: 8px; border-radius: var(--r-xs); font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.badge .i { width: 13px; height: 13px; }
.badge--feat { background: var(--accent); color: var(--accent-ink); }
.badge--urgent { background: var(--hot); color: #fff; }
.badge--new { background: var(--ok); color: #fff; }
.fav {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #11163a; box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.fav:hover { transform: scale(1.08); }
.fav.is-on { color: #e5364b; }
.fav.is-on .i { fill: currentColor; }
.pics { position: absolute; bottom: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding-inline: 8px; border-radius: var(--r-xs); background: rgba(10, 14, 36, 0.66); color: #fff; font-size: 12px; font-weight: 700; }
.pics .i { width: 13px; height: 13px; }
.card__body { padding: 12px 14px 14px; display: grid; gap: 4px; min-width: 0; }
.price { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--fg); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price small { font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--fg-3); }
.card__title { font-family: var(--f-body); font-size: 14.5px; font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card__meta { font-size: 13px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 6px; padding-block-start: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.card__foot span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__foot .i { width: 14px; height: 14px; }
.vtick { color: var(--brand); }
.vtick .i { width: 15px; height: 15px; }
@media (max-width: 719px) {
  .card__body { padding: 10px 10px 12px; }
  .price { font-size: 16.5px; }
  .card__title { font-size: 13.5px; }
  .card__meta { font-size: 12px; }
  .card__foot { font-size: 11.5px; }
  .fav { width: 32px; height: 32px; }
  .badge { height: 22px; font-size: 10.5px; padding-inline: 6px; }
}

/* list layout */
.grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.grid.is-list .card { flex-direction: row; }
.grid.is-list .card__media { width: 260px; flex: none; aspect-ratio: 4 / 3; }
.grid.is-list .card__body { flex: 1; align-content: start; padding: 16px 18px; }
.grid.is-list .card__title { -webkit-line-clamp: 1; min-height: 0; font-size: 16px; }
@media (max-width: 719px) {
  .grid.is-list .card__media { width: 38%; }
  .grid.is-list .card__body { padding: 10px 12px; }
  .grid.is-list .card__title { -webkit-line-clamp: 2; font-size: 13.5px; }
}

/* promos */
.promos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.promo { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px; align-content: start; justify-items: start; min-height: 200px; }
.promo h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; max-width: 16ch; }
.promo p { font-size: 15px; max-width: 34ch; }
.promo .btn { margin-block-start: 6px; }
.promo--sell { background: var(--accent); color: var(--accent-ink); }
.promo--sell p { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.promo--boost { background: var(--surface); border: 1px solid var(--line); }
.promo--boost p { color: var(--fg-2); }
.promo__art { position: absolute; inset-inline-end: 18px; bottom: -8px; width: 150px; opacity: 0.9; pointer-events: none; }
.promo--boost .promo__art { width: 170px; bottom: 14px; }
.ladder { display: grid; gap: 6px; }
.ladder div { height: 22px; border-radius: 6px; background: var(--surface-2); display: flex; align-items: center; padding-inline: 8px; font-size: 11px; font-weight: 800; color: var(--fg-3); }
.ladder div.is-top { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 719px) {
  .promos { grid-template-columns: minmax(0, 1fr); }
  .promo { padding: 22px; min-height: 0; }
  .promo h3 { font-size: 21px; }
  .promo__art { width: 104px; }
  .promo--boost .promo__art { width: 118px; }
  .promo p { max-width: 24ch; }
}

/* cities */
.cities { display: flex; flex-wrap: wrap; gap: 8px; }
.cities .chip small { color: var(--fg-3); font-weight: 600; }

/* trust + app */
.trust { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.trust__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.trust__box h3 { font-size: 20px; }
.trust__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trust__item { display: grid; gap: 8px; align-content: start; font-size: 14px; color: var(--fg-2); }
.trust__item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.app-box { background: var(--hero); color: var(--on-hero); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.app-box p { color: var(--on-hero-2); max-width: 30ch; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--on-hero); font-weight: 700; font-size: 13px; }
.store small { display: block; font-size: 10px; font-weight: 600; opacity: .75; line-height: 1; }
.store span { line-height: 1.15; }
.app-box .qr { position: absolute; inset-inline-end: 22px; top: 22px; width: 76px; height: 76px; border-radius: 10px; background: #fff; padding: 6px; }
@media (max-width: 899px) {
  .trust { grid-template-columns: minmax(0, 1fr); }
  .app-box .qr { display: none; }
}
@media (max-width: 719px) { .trust__items { grid-template-columns: minmax(0, 1fr); } .trust__item { grid-template-columns: 40px 1fr; align-items: center; } }

/* ---------- footer ---------- */
.footer { margin-block-start: 48px; background: var(--surface); border-top: 1px solid var(--line); padding-block: 36px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer h4 { font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-block-end: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--fg-2); }
.footer li button:hover { color: var(--fg); text-decoration: underline; }
.footer__brand p { color: var(--fg-2); font-size: 14px; max-width: 34ch; margin-block-start: 10px; }
.footer__bar { margin-block-start: 28px; padding-block-start: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--fg-3); }
.footer__region { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 899px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 899px) { .footer { padding-block-end: calc(28px + var(--tab-h) + env(safe-area-inset-bottom, 0px)); } }

/* ---------- mobile tab bar ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: none;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar__in { height: var(--tab-h); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.tab { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--fg-3); padding-block: 6px; position: relative; }
.tab .i { width: 23px; height: 23px; }
.tab.is-on { color: var(--brand); }
.tab--post .tab__fab { width: 54px; height: 54px; margin-block-start: -26px; border-radius: 18px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -8px rgba(255, 170, 0, 0.8), 0 0 0 5px var(--surface); }
.tab--post .tab__fab .i { width: 26px; height: 26px; stroke-width: 2.6; }
.tab__badge { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 10px; display: grid; place-items: center; padding-inline: 4px; }
@media (max-width: 899px) { .tabbar { display: block; } }

/* ---------- search page ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-3); font-weight: 600; padding-block: 18px 6px; }
.crumbs button:hover { color: var(--fg); }
.crumbs .i { width: 14px; height: 14px; }
.search-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding-block: 4px 16px; }
.search-head h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.025em; }
.search-head p { color: var(--fg-2); font-size: 14px; }
.layout-search { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 899px) { .layout-search { grid-template-columns: minmax(0, 1fr); } .layout-search > aside { display: none; } }
.filters { position: sticky; top: calc(var(--top-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 18px; max-height: calc(100vh - var(--top-h) - 32px); overflow: auto; }
.fgroup { display: grid; gap: 10px; }
.fgroup + .fgroup { padding-block-start: 16px; border-top: 1px solid var(--line); }
.fgroup h4 { font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-3); }
.flist { display: grid; gap: 2px; }
.flist button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--fg-2); font-weight: 600; text-align: start; }
.flist button:hover { background: var(--surface-2); color: var(--fg); }
.flist button.is-on { background: var(--brand-soft); color: var(--brand); }
.flist small { color: var(--fg-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.frange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input, .select, .textarea {
  width: 100%; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface);
  padding-inline: 12px; font-size: 15px; outline: none; min-width: 0;
}
.textarea { height: auto; min-height: 120px; padding-block: 10px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { height: 32px; font-size: 13px; padding-inline: 12px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--fg-2); cursor: pointer; }
.toggle input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background-color .15s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; box-shadow: var(--shadow-sm); }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { inset-inline-start: 21px; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-block-end: 14px; }
.toolbar__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.toolbar__chips::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--pill); padding: 3px; flex: none; }
.seg button { width: 34px; height: 32px; border-radius: var(--pill); display: grid; place-items: center; color: var(--fg-3); }
.seg button.is-on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.sort-select { height: 36px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); padding-inline: 12px 30px; font-size: 14px; font-weight: 600; color: var(--fg); flex: none; max-width: 190px; }
@media (max-width: 899px) {
  .toolbar { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 30; background: var(--bg); margin-inline: -16px; padding: 10px 16px; margin-block-end: 6px; }
  .sort-select { display: none; }
}
.empty { text-align: center; padding: 56px 16px; display: grid; gap: 10px; justify-items: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.empty .ic .i { width: 30px; height: 30px; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--fg-2); max-width: 40ch; }
.pager { display: flex; justify-content: center; gap: 6px; margin-block-start: 28px; }
.pager button { min-width: 40px; height: 40px; border-radius: var(--r-sm); font-weight: 700; color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); padding-inline: 10px; }
.pager button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.inline-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--brand-soft); flex-wrap: wrap; }
.inline-cta b { font-family: var(--f-display); font-size: 18px; color: var(--brand-ink); }
.inline-cta p { color: var(--fg-2); font-size: 14px; }

/* ---------- ad detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-block-end: 24px; }
@media (max-width: 999px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.gallery { display: grid; gap: 10px; }
.gallery__main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10; }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery__count { position: absolute; bottom: 12px; inset-inline-end: 12px; height: 28px; padding-inline: 10px; border-radius: var(--pill); background: rgba(10, 14, 36, 0.7); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #11163a; display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery__nav--prev { inset-inline-start: 12px; }
.gallery__nav--next { inset-inline-end: 12px; }
.gallery__top { position: absolute; top: 12px; inset-inline: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.gallery__top > * { pointer-events: auto; }
.gallery__acts { display: flex; gap: 8px; }
.gallery__acts button, .gallery__back { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #11163a; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(17, 22, 58, 0.18); -webkit-tap-highlight-color: transparent; transition: transform .15s ease; }
.gallery__acts button:active, .gallery__back:active { transform: scale(.92); }
.gallery__back { display: none; }
@media (max-width: 899px) { .gallery__back { display: grid; } }
.gallery__acts button.is-on { color: #e5364b; }
.gallery__acts button.is-on .i { fill: currentColor; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.thumbs button { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; opacity: 0.62; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .15s; }
.thumbs button.is-on { opacity: 1; outline-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) {
  .detail-wrap { padding-inline: 0; }
  .gallery__main { border-radius: 0; aspect-ratio: 4 / 3; }
  .thumbs, .gallery__nav { display: none; }
  .detail .panel { border-radius: 0; border-inline: 0; padding: 18px 16px; }
  .detail { gap: 10px; }
  .detail-wrap > .sec { padding-inline: 16px; }
}
.ad-head { display: grid; gap: 10px; }
.ad-head h1 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.ad-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.ad-price .price { font-size: clamp(26px, 3.2vw, 34px); }
.tag-neg { display: inline-flex; align-items: center; height: 26px; padding-inline: 10px; border-radius: var(--pill); background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 800; }
.ad-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--fg-3); font-weight: 600; }
.ad-sub span { display: inline-flex; align-items: center; gap: 5px; }
.ad-sub .i { width: 15px; height: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-block: 18px 6px; }
.fact { background: var(--surface-2); border-radius: var(--r); padding: 12px; display: grid; gap: 2px; }
.fact .i { color: var(--brand); width: 20px; height: 20px; margin-block-end: 4px; }
.fact small { font-size: 12px; color: var(--fg-3); font-weight: 700; }
.fact b { font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-block-start: 8px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--fg-3); font-weight: 600; }
.specs dd { margin: 0; font-weight: 700; text-align: end; }
@media (max-width: 719px) { .specs { grid-template-columns: minmax(0, 1fr); } }
.h-sec { font-size: 18px; font-weight: 750; margin-block: 22px 10px; }
.desc { color: var(--fg-2); white-space: pre-line; max-width: 68ch; }
.desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.seller { display: grid; gap: 14px; }
.seller__top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 19px; color: #fff; flex: none; background: var(--brand); }
.avatar--sm { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
.seller__name { display: grid; gap: 2px; min-width: 0; }
.seller__name b { font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.seller__name small { color: var(--fg-3); font-size: 13px; font-weight: 600; }
.seller__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.seller__stats div { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 4px; display: grid; }
.seller__stats b { font-size: 15px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.seller__stats b .i { width: 14px; height: 14px; color: #f2a900; fill: #f2a900; }
.seller__stats small { font-size: 11.5px; color: var(--fg-3); font-weight: 600; }
.contact { display: grid; gap: 8px; }
.phone-reveal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line); text-align: start; width: 100%; }
.phone-reveal .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }
.phone-reveal b { display: block; font-size: 16px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.phone-reveal small { color: var(--fg-3); font-size: 12.5px; font-weight: 600; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn--wa { background: #1fae5b; color: #fff; }
.safety { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--hot-soft); font-size: 13.5px; color: var(--fg-2); }
.safety .i { color: var(--hot); width: 22px; height: 22px; }
.safety b { color: var(--fg); display: block; margin-block-end: 2px; }
.side { display: grid; gap: 14px; position: sticky; top: calc(var(--top-h) + 16px); }
@media (max-width: 999px) { .side { position: static; } }
.map {
  position: relative; height: 170px; border-radius: var(--r); overflow: hidden; margin-block-start: 10px;
  background:
    linear-gradient(90deg, transparent 49%, var(--line) 49% 51%, transparent 51%) 0 0 / 64px 100%,
    linear-gradient(0deg, transparent 49%, var(--line) 49% 51%, transparent 51%) 0 0 / 100% 54px,
    linear-gradient(28deg, transparent 47%, color-mix(in srgb, var(--accent) 55%, var(--surface-2)) 47% 53%, transparent 53%),
    var(--surface-2);
}
.map__pin { position: absolute; left: 50%; top: 50%; translate: -50% -80%; display: grid; justify-items: center; gap: 6px; }
.map__pin span { background: var(--surface); padding: 5px 10px; border-radius: var(--pill); font-weight: 700; font-size: 13px; box-shadow: var(--shadow); white-space: nowrap; }
.map__pin i.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 24%, transparent); }
.ad-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 18px; }
.mbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 46; display: none;
  background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 8px; grid-template-columns: 1fr 1fr 1fr;
}
.mbar .btn { height: 48px; padding-inline: 8px; font-size: 14.5px; }
@media (max-width: 899px) {
  body.has-mbar .mbar { display: grid; }
  body.has-mbar .tabbar { display: none; }
}

/* ---------- post ad ---------- */
.post { max-width: 860px; margin-inline: auto; padding-block: 22px 40px; }
.post h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.025em; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-block: 18px 22px; }
.step { display: grid; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--fg-3); }
.step i.bar { height: 5px; border-radius: 3px; background: var(--line); display: block; }
.step.is-done i.bar, .step.is-on i.bar { background: var(--brand); }
.step.is-on { color: var(--fg); }
@media (max-width: 719px) { .step span { display: none; } .step.is-on span { display: inline; white-space: nowrap; } }
.post .panel { display: grid; gap: 18px; }
.post h2 { font-size: 20px; font-weight: 750; }
.pick-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pick-cats button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); border: 1.5px solid var(--line); text-align: start; font-weight: 700; font-size: 14px; }
.pick-cats button:hover { border-color: var(--fg-3); }
.pick-cats button.is-on { border-color: var(--brand); background: var(--brand-soft); }
.pick-cats .cat__ic { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.pick-cats .cat__ic .i { width: 21px; height: 21px; }
@media (max-width: 719px) { .pick-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-row { display: grid; gap: 6px; }
.form-row label, .label { font-weight: 700; font-size: 14px; }
.form-row .hint { color: var(--fg-3); font-size: 13px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 719px) { .form-2 { grid-template-columns: minmax(0, 1fr); } }
.price-field { display: flex; gap: 8px; }
.price-field .select { width: 128px; flex: none; }
.price-preview { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 14px; }
.drop { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--fg-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(10, 14, 36, 0.7); color: #fff; display: grid; place-items: center; }
.photo .badge { position: absolute; bottom: 6px; inset-inline-start: 6px; }
@media (max-width: 719px) { .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan { display: grid; gap: 6px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line); text-align: start; align-content: start; }
.plan.is-on { border-color: var(--brand); background: var(--brand-soft); }
.plan b { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.plan small { color: var(--fg-2); font-size: 13px; }
.plan .price { font-size: 18px; }
@media (max-width: 719px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.post__nav { display: flex; justify-content: space-between; gap: 10px; margin-block-start: 6px; }
.review { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 719px) { .review { grid-template-columns: minmax(0, 1fr); } }
.success { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 40px 16px; }
.success .ic { width: 84px; height: 84px; border-radius: 28px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.success .ic .i { width: 42px; height: 42px; }
.success h2 { font-size: 28px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- chats ---------- */
.chats { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--top-h) - 48px); min-height: 520px; margin-block: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chats__list { border-inline-end: 1px solid var(--line); overflow: auto; }
.chats__list h2 { font-size: 20px; padding: 18px 18px 10px; }
.thread-item { display: flex; gap: 12px; padding: 12px 18px; width: 100%; text-align: start; align-items: center; }
.thread-item:hover, .thread-item.is-on { background: var(--surface-2); }
.thread-item img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.thread-item div { min-width: 0; flex: 1; display: grid; }
.thread-item b { font-size: 14.5px; display: flex; justify-content: space-between; gap: 8px; }
.thread-item b time { font-size: 12px; color: var(--fg-3); font-weight: 600; }
.thread-item span { font-size: 13px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item small { font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread { min-width: 20px; height: 20px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.convo { display: grid; grid-template-rows: auto auto 1fr auto; min-height: 0; }
.convo__head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.convo__head div { display: grid; min-width: 0; }
.convo__head small { color: var(--ok); font-weight: 700; font-size: 12.5px; }
.convo__ad { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--surface-2); font-size: 14px; }
.convo__ad img { width: 44px; height: 34px; border-radius: 8px; object-fit: cover; }
.convo__ad div { display: grid; min-width: 0; flex: 1; }
.convo__ad span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgs { overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; background: var(--surface-2); align-self: flex-start; border-end-start-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-end-start-radius: 18px; border-end-end-radius: 6px; }
.msg time { display: block; font-size: 11px; opacity: 0.65; margin-block-start: 2px; }
.msg--offer { background: var(--accent); color: var(--accent-ink); }
.msg--offer b { font-family: var(--f-display); font-size: 18px; display: block; }
.day { align-self: center; font-size: 12px; color: var(--fg-3); font-weight: 700; padding-block: 6px; }
.composer { border-top: 1px solid var(--line); padding: 10px 14px; display: grid; gap: 8px; }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { height: 32px; padding-inline: 12px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; white-space: nowrap; }
.composer form { display: flex; gap: 8px; }
.composer input { flex: 1; min-width: 0; height: 44px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); padding-inline: 16px; outline: none; }
.composer input:focus { border-color: var(--brand); }
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; flex: none; }
@media (max-width: 899px) {
  .chats { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 58px - var(--tab-h) - env(safe-area-inset-bottom, 0px)); margin: 0 -16px; border-radius: 0; border-inline: 0; border-block: 0; min-height: 0; }
  .chats.show-convo .chats__list { display: none; }
  .chats:not(.show-convo) .convo { display: none; }
}

/* ---------- sheets / modals ---------- */
.layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.layer__scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade .2s ease; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: min(86vh, 760px);
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; animation: rise .25s cubic-bezier(.2, .9, .3, 1);
}
.sheet--wide { max-width: 760px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.sheet__head h3 { font-size: 20px; font-weight: 800; }
.sheet__body { overflow: auto; padding: 4px 20px 20px; display: grid; gap: 14px; align-content: start; }
.sheet__foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.grabber { display: none; }
@media (max-width: 719px) {
  .layer { place-items: end stretch; padding: 0; }
  .sheet { max-width: none; border-radius: 22px 22px 0 0; max-height: 90vh; animation: up .28s cubic-bezier(.2, .9, .3, 1); }
  .sheet { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .sheet__head h3 { font-size: 18px; }
  .tabs button .i { display: none; }
  .tabs button { font-size: 13px; }
  .region-sum b { font-size: 13px; }
  .grabber { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
  .sheet__head { padding-block-start: 10px; }
  .sheet__foot .btn { flex: 1; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes up { from { transform: translateY(100%); } }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--pill); }
.tabs button { flex: 1; height: 38px; border-radius: var(--pill); font-weight: 700; font-size: 14px; color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.tabs button.is-on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.opt-list { display: grid; gap: 2px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-align: start; width: 100%; }
.opt:hover { background: var(--surface-2); }
.opt.is-on { background: var(--brand-soft); }
.opt__main { flex: 1; min-width: 0; display: grid; }
.opt__main b { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__main small { color: var(--fg-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__end { font-size: 12px; font-weight: 800; color: var(--fg-3); white-space: nowrap; }
.opt .check { color: var(--brand); }
.opt-group { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); padding: 12px 12px 4px; }
.tr-badge { font-size: 11px; font-weight: 800; height: 22px; padding-inline: 8px; border-radius: var(--pill); display: inline-flex; align-items: center; white-space: nowrap; }
.tr-badge--full { background: var(--ok-soft); color: var(--ok); }
.tr-badge--soon { background: var(--surface-2); color: var(--fg-3); }
.region-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.region-sum div { background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.region-sum small { font-size: 11.5px; font-weight: 800; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.05em; }
.region-sum b { font-size: 14px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.note { font-size: 12.5px; color: var(--fg-3); }
.social { display: grid; gap: 8px; }
.social .btn { justify-content: center; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 13px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.phone-input { display: flex; gap: 8px; }
.phone-input .cc { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding-inline: 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line); font-weight: 700; flex: none; }
.phone-input .input { height: 48px; }

/* toast */
.toast { position: fixed; inset-inline: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; justify-items: center; pointer-events: none; padding-inline: 16px; }
.toast div { background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: var(--pill); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); display: inline-flex; align-items: center; gap: 8px; animation: rise .25s ease; max-width: 100%; }
@media (max-width: 899px) { .toast { bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom, 0px)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* long labels in some languages must wrap instead of widening the page */
.side, .detail > * { min-width: 0; }
.seller .link { white-space: normal; }
.contact .btn { white-space: normal; text-align: center; line-height: 1.2; min-width: 0; }

/* =====================================================================
   Website additions
   ===================================================================== */
a.link, .prose a { color: var(--brand); }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--danger { background: var(--hot); color: #fff; }
.btn--link { background: none; color: var(--brand); padding-inline: 0; height: auto; }
.btn .i { width: 1.1em; height: 1.1em; }
.btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--accent::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--accent:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.gradient-buttons .btn--brand { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--hero))); }
.gradient-buttons .btn--accent { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ff7a00)); }

/* header extras */
.topbar__in { position: relative; }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--pill); padding: 3px 10px 3px 3px; border: 1.5px solid var(--line); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { border-color: var(--fg-3); }
.user-menu__panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; transform-origin: top right; animation: menu .16s var(--ease); }
@keyframes menu { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.user-menu__panel a, .user-menu__panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--fg-2); text-align: start; }
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--surface-2); color: var(--fg); }
.user-menu__head { padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.user-menu__head small { color: var(--fg-3); font-size: 12.5px; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { width: 32px; height: 32px; border-radius: 50%; font-size: 13px; }
.avatar--lg { width: 84px; height: 84px; border-radius: 26px; font-size: 30px; }
.icon-btn { position: relative; }
.count-dot { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding-inline: 4px; border: 2px solid var(--surface); }

/* flash messages */
.flash-stack { position: fixed; top: calc(var(--top-h) + 12px + env(safe-area-inset-top, 0px)); inset-inline: 0; z-index: 70; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.flash { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 560px; width: 100%; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: rise .3s var(--ease); }
.flash .i { margin-top: 1px; }
.flash--success .i { color: var(--ok); }
.flash--warning .i, .flash--error .i { color: var(--hot); }
.flash button { margin-inline-start: auto; color: var(--fg-3); }
.flash.is-leaving { opacity: 0; transform: translateY(-6px); transition: .25s var(--ease); }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); font-size: 14px; background: var(--surface-2); color: var(--fg-2); }
.alert--error { background: var(--hot-soft); color: var(--hot); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert ul { margin: 0; padding-inline-start: 18px; }

/* forms */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 700; font-size: 14px; }
.field .hint { color: var(--fg-3); font-size: 12.5px; }
.field .error { color: var(--hot); font-size: 13px; font-weight: 600; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--hot); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d84a3' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-inline-end: 34px; }
[dir="rtl"] .select { background-position: left 12px center; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 2px 0 0; flex: none; }
.input-group { display: flex; gap: 8px; }
.input-group > :first-child { flex: none; }
.input-icon { position: relative; }
.input-icon .i { position: absolute; inset-inline-start: 13px; top: 50%; translate: 0 -50%; color: var(--fg-3); }
.input-icon .input { padding-inline-start: 40px; }
.pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; display: grid; place-items: center; color: var(--fg-3); border-radius: 50%; }
.otp-input { letter-spacing: .5em; font-size: 22px; font-weight: 800; text-align: center; height: 56px; font-variant-numeric: tabular-nums; }

/* auth pages */
.auth { min-height: calc(100vh - var(--top-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth__art { position: relative; overflow: hidden; color: var(--on-hero); background: radial-gradient(circle at 1px 1px, var(--hero-dot) 1.2px, transparent 1.6px) 0 0 / 18px 18px, linear-gradient(160deg, var(--hero), var(--hero-2)); padding: 56px; display: grid; align-content: end; gap: 14px; }
.auth__art h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }
.auth__art p { color: var(--on-hero-2); max-width: 36ch; }
.auth__stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.auth__stats b { display: block; font-family: var(--f-display); font-size: 24px; color: var(--accent); }
.auth__stats small { color: var(--on-hero-2); font-weight: 600; }
.auth__tag { position: absolute; top: 40px; inset-inline-end: -60px; width: 340px; opacity: .1; transform: rotate(-14deg); }
.auth__main { display: grid; place-items: center; padding: 40px 20px; }
.auth__card { width: 100%; max-width: 420px; display: grid; gap: 18px; }
.auth__card h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.auth__card > p { color: var(--fg-2); }
.auth__switch { text-align: center; font-size: 14px; color: var(--fg-2); }
@media (max-width: 899px) { .auth { grid-template-columns: 1fr; } .auth__art { display: none; } .auth__main { padding-block: 28px 100px; } }
.social .btn { gap: 10px; }
.btn--google { background: var(--surface); border: 1.5px solid var(--line); color: var(--fg); }
.btn--facebook { background: #1877f2; color: #fff; }

/* page shell for dashboard */
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding-block: 24px 18px; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--fg-2); }
.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-block-end: 40px; }
.dash-nav { position: sticky; top: calc(var(--top-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 650; font-size: 14.5px; color: var(--fg-2); transition: background-color .15s, color .15s; }
.dash-nav a:hover { background: var(--surface-2); color: var(--fg); }
.dash-nav a.is-on { background: var(--brand-soft); color: var(--brand); }
.dash-nav a .badge-count { margin-inline-start: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding-inline: 6px; }
.dash-nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@media (max-width: 899px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dash-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; border-radius: var(--r); padding: 6px; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a { white-space: nowrap; flex: none; }
  .dash-nav hr { display: none; }
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 4px; }
.stat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.stat b { font-family: var(--f-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--fg-3); font-weight: 600; font-size: 13px; }
@media (max-width: 719px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; }
.box__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.box__head h2 { font-size: 18px; font-weight: 750; }
.tabs-line { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs-line a { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--fg-3); border-bottom: 2.5px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs-line a.is-on { color: var(--fg); border-bottom-color: var(--brand); }
.tabs-line small { background: var(--surface-2); border-radius: 10px; padding: 1px 7px; font-size: 11.5px; }

/* my ads rows */
.rows { display: grid; gap: 10px; }
.row-ad { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.row-ad img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.row-ad h3 { font-family: var(--f-body); font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ad__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--fg-3); font-weight: 600; margin-top: 4px; }
.row-ad__meta span { display: inline-flex; gap: 4px; align-items: center; }
.row-ad__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 719px) { .row-ad { grid-template-columns: 88px minmax(0, 1fr); } .row-ad img { width: 88px; } .row-ad__actions { grid-column: 1 / -1; justify-content: flex-start; } }
.status { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding-inline: 9px; border-radius: var(--pill); font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--fg-2); text-transform: capitalize; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--active, .status--paid, .status--approved { background: var(--ok-soft); color: var(--ok); }
.status--pending, .status--awaiting_approval { background: var(--warn-soft); color: var(--warn); }
.status--rejected, .status--failed, .status--cancelled { background: var(--hot-soft); color: var(--hot); }
.status--sold { background: var(--brand-soft); color: var(--brand); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* notifications list */
.notes { display: grid; }
.note-row { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.note-row:last-child { border-bottom: 0; }
.note-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.note-row b { display: block; font-size: 14.5px; }
.note-row p { color: var(--fg-2); font-size: 14px; }
.note-row time { color: var(--fg-3); font-size: 12px; font-weight: 600; }
.note-row.is-unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-inline-start: 6px; vertical-align: middle; }

/* listing form */
.wizard { max-width: 900px; margin-inline: auto; padding-block: 22px 60px; }
.wizard__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-block: 16px 20px; }
.wizard__panel { display: none; }
.wizard__panel.is-on { display: grid; gap: 18px; animation: fadeUp .3s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.cat-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-pick label { cursor: pointer; }
.cat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pick .tile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; background: var(--surface); transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.cat-pick label:hover .tile { border-color: var(--fg-3); }
.cat-pick input:checked + .tile { border-color: var(--brand); background: var(--brand-soft); }
.cat-pick input:focus-visible + .tile { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.cat-pick .cat__ic { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.sub-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-pick input { position: absolute; opacity: 0; pointer-events: none; }
.sub-pick span { display: inline-flex; height: 38px; align-items: center; padding-inline: 14px; border-radius: var(--pill); border: 1.5px solid var(--line); font-weight: 650; font-size: 14px; cursor: pointer; background: var(--surface); }
.sub-pick input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
@media (max-width: 719px) { .cat-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wizard__steps { gap: 4px; } }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 719px) { .fields-grid { grid-template-columns: minmax(0, 1fr); } }
.uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.upload { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); cursor: grab; touch-action: none; }
.upload img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.upload.is-dragging { opacity: .4; }
.upload.is-uploading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.1s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.upload__bar { position: absolute; inset-inline: 8px; bottom: 8px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.upload__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upload button { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(10, 14, 36, .7); color: #fff; display: grid; place-items: center; }
.upload .badge { position: absolute; bottom: 6px; inset-inline-start: 6px; }
.drop input[type=file] { display: none; }
.price-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
.score { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.ring { --v: 0; --c: var(--ok); width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line) 0); transition: --v .6s; position: relative; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface-2); }
.ring b { position: relative; font-family: var(--f-display); font-size: 22px; font-weight: 800; }
.checks { display: grid; gap: 6px; font-size: 13.5px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; list-style: none; color: var(--fg-2); }
.checks ul { margin: 0; padding: 0; display: grid; gap: 6px; }
.checks .i { margin-top: 2px; }
.checks .pass .i { color: var(--ok); }
.checks .partial .i { color: var(--warn); }
.checks .fail .i { color: var(--fg-3); }
.wizard__nav { display: flex; justify-content: space-between; gap: 10px; }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding-block: 12px; margin-top: 8px; z-index: 5; }
@media (max-width: 899px) { .sticky-actions { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); } }

/* city autocomplete */
.ac { position: relative; }
.ac__list { position: absolute; inset-inline: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; z-index: 30; padding: 4px; }
.ac__list button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 9px 10px; border-radius: var(--r-sm); text-align: start; font-size: 14px; }
.ac__list button:hover, .ac__list button.is-active { background: var(--surface-2); }

/* seller page */
.shop-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-block: 22px 18px; }
.shop-head h1 { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.shop-head p { color: var(--fg-2); max-width: 70ch; }
.shop-head__stats { display: flex; gap: 22px; margin-inline-start: auto; }
.shop-head__stats div { display: grid; text-align: center; }
.shop-head__stats b { font-family: var(--f-display); font-size: 22px; }
.shop-head__stats small { color: var(--fg-3); font-weight: 600; }

/* content pages */
.prose { max-width: 72ch; color: var(--fg-2); font-size: 16px; line-height: 1.7; }
.prose h2, .prose h3 { color: var(--fg); margin: 1.6em 0 .5em; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--fg); }
.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 44px); margin-block: 22px 40px; }

/* ad slots */
.ad-slot { margin-block: 22px; min-height: 90px; display: grid; place-items: center; overflow: hidden; border-radius: var(--r); }
.ad-slot--grid { grid-column: 1 / -1; margin-block: 0; }

/* skeleton / misc */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 60%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--r-sm); }
@keyframes sk { to { background-position: -200% 0; } }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-block: 28px 8px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; border-radius: var(--r-sm); font-weight: 700; color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); padding-inline: 10px; display: grid; place-items: center; }
.pagination .is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pagination .is-off { opacity: .45; }
.reveal { animation: fadeUp .45s var(--ease) both; }
.grid > .card { animation: fadeUp .4s var(--ease) both; }
.grid > .card:nth-child(2) { animation-delay: .03s; } .grid > .card:nth-child(3) { animation-delay: .06s; } .grid > .card:nth-child(4) { animation-delay: .09s; }
.grid > .card:nth-child(5) { animation-delay: .12s; } .grid > .card:nth-child(6) { animation-delay: .15s; } .grid > .card:nth-child(n+7) { animation-delay: .18s; }
.fav.pop .i { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.sold-ribbon { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 14, 36, .45); color: #fff; font-family: var(--f-display); font-size: 22px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.verified-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding-inline: 8px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.footer__social { display: flex; gap: 8px; margin-top: 14px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--fg-2); transition: transform .15s var(--ease), color .15s; }
.footer__social a:hover { color: var(--brand); transform: translateY(-2px); }
.footer ul a:hover { color: var(--fg); text-decoration: underline; }
.lang-flags { display: flex; gap: 6px; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.cookie { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 75; max-width: 520px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--fg-2); }
@media (max-width: 899px) { .cookie { bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom, 0px)); } }
.region-picker .opt-list { max-height: 46vh; overflow: auto; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.filter-fields { display: grid; gap: 10px; }
[x-cloak] { display: none !important; }
.trending .trend { height: 30px; padding-inline: 12px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.1); color: var(--on-hero); font-weight: 600; font-size: 13px; border: 1px solid rgba(255, 255, 255, 0.16); display: inline-flex; align-items: center; transition: background-color .15s; }
.trending .trend:hover { background: rgba(255, 255, 255, 0.2); }
.card__title a { color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .fav, .card .badges, .card .pics { z-index: 2; }
.logo__img { height: 34px; width: auto; }
.logo__img--dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo__img--light { display: none; } :root:not([data-theme="light"]) .logo__img--dark { display: block; } }
:root[data-theme="dark"] .logo__img--light { display: none; }
:root[data-theme="dark"] .logo__img--dark { display: block; }
.theme-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: block; } :root:not([data-theme="light"]) .theme-moon { display: none; } }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio input:checked + .chip { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip-radio input:focus-visible + .chip { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.flist a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--fg-2); font-weight: 600; }
.flist a:hover { background: var(--surface-2); color: var(--fg); }
.flist a.is-on { background: var(--brand-soft); color: var(--brand); }
.flist a small { color: var(--fg-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.crumbs a:hover { color: var(--fg); }
.viewer { position: fixed; inset: 0; z-index: 95; background: rgba(5, 7, 18, .94); opacity: 0; transition: opacity .2s var(--ease); }
.viewer.is-on { opacity: 1; }
.viewer__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.viewer__close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); inset-inline-end: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; }
.gallery__track img { cursor: zoom-in; }
a.map { display: block; }
.seller__top { color: inherit; }
.chips .chip.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.opt .check { color: var(--brand); display: inline-flex; }
.msg--offer.me { background: var(--accent); color: var(--accent-ink); }
.convo__ad { color: inherit; }
.chats__list .thread-item { color: inherit; }
.unread { background: none; color: var(--brand); font-size: 14px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 719px) { .form-2 { grid-template-columns: minmax(0, 1fr); } }
.plan-card { cursor: pointer; display: grid; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card .plan { height: 100%; transition: border-color .15s, background-color .15s, transform .15s var(--ease), box-shadow .15s; }
.plan-card:hover .plan { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-card input:checked + .plan { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.plan-card input:focus-visible + .plan { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.plan .i { color: var(--pc, var(--brand)); }
.success .ic .i { width: 42px; height: 42px; }

/* very narrow screens and large text / zoom settings */
.sec__head > div { min-width: 0; }
.sec__head > .link { flex: none; }
.promo > :not(.promo__art) { position: relative; z-index: 1; }
@media (max-width: 479px) {
  .promo--boost .promo__art { display: none; }
  .promo--sell .promo__art { width: 84px; opacity: .35; }
  .promo p { max-width: none; }
}
@media (max-width: 359px) {
  .topbar__actions [data-theme-toggle] { display: none; }
  .region-btn span { display: none; }
  .region-btn { padding-inline: 10px; }
  .sec__head { flex-wrap: wrap; align-items: start; }
}
@media (max-width: 299px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}
.chip { max-width: 100%; }

/* ---------- checkout extras: coupon, wallet, business plans ---------- */
.coupon { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.coupon label { font-weight: 700; font-size: 14px; }
.coupon__row { display: flex; gap: 8px; }
.coupon__row .input { flex: 1; min-width: 0; }
.coupon__msg { font-size: 13.5px; font-weight: 650; min-height: 1em; }
.coupon__msg.is-ok { color: var(--ok); }
.coupon__msg.is-bad { color: var(--hot); }
.wallet-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 22px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(135deg, var(--hero, #13226b), var(--brand)); }
.wallet-hero small { opacity: .8; font-weight: 650; }
.wallet-hero b { display: block; font-family: var(--f-display); font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wallet-hero .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.wallet-hero .ic .i { width: 28px; height: 28px; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-chips button { height: 36px; padding-inline: 14px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.amount-chips button:hover { border-color: var(--brand); color: var(--brand); }
.tx { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--fg-2); }
.tx .ic.is-in { background: var(--ok-soft); color: var(--ok); }
.tx b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx small { color: var(--fg-3); font-size: 12.5px; }
.tx .amt { font-weight: 800; font-variant-numeric: tabular-nums; text-align: end; }
.tx .amt.is-in { color: var(--ok); }
.tx .amt small { display: block; font-weight: 600; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--fg-2); }
.perks li { display: flex; gap: 8px; align-items: flex-start; }
.perks .i { color: var(--ok); flex: none; width: 16px; height: 16px; margin-top: 2px; }
.member-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 18px; border-radius: var(--r-lg); background: var(--brand-soft); border: 1.5px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.member-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.biz-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding-inline: 9px; border-radius: 99px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--accent) 24%, transparent); color: color-mix(in srgb, var(--accent) 35%, var(--fg)); vertical-align: middle; }
.biz-chip .i { width: 14px; height: 14px; }
.vtick--biz { color: color-mix(in srgb, var(--accent) 55%, var(--fg)); }
.shop-banner { height: clamp(120px, 24vw, 240px); border-radius: var(--r-lg); background: var(--surface-2) center / cover no-repeat; margin-bottom: -40px; }
.shop-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 14px; color: var(--fg-2); }
.shop-links a, .shop-links span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- maps ---------- */
.map--live, .map--pick { height: 260px; z-index: 0; }
.map--live.is-live .map__pin, .map--pick .map__pin { display: none; }
.map--pick { height: 280px; margin-block-start: 6px; cursor: crosshair; }
.map-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-block-start: 8px; }
.map-actions .note { min-width: 0; }
.map .leaflet-control-attribution { font-size: 10.5px; }
.near-me.is-busy .i { animation: spin 1s linear infinite; }
@media (max-width: 719px) { .map--live, .map--pick { height: 220px; } }
.box .box { padding: 0; border: 0; border-radius: 0; background: none; }
.demo-logins { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.demo-logins b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.demo-logins__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo-logins__row .btn { padding-inline: 8px; font-size: 13.5px; height: auto; min-height: 44px; white-space: normal; line-height: 1.2; }
@media (max-width: 380px) { .demo-logins__row { grid-template-columns: minmax(0, 1fr); } }
