/* =====================================================================================
   Classifieds design system — "Neighbourhood market"
   Photo-first, price-forward, calm chrome. Bootstrap 5.3 grid/utilities + this token layer.
   Type: Bricolage Grotesque (display, prices) + Onest (UI/body). Light + dark via [data-bs-theme].
   Mobile-first: 360 → 768 → 1280.
   ===================================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../vendor/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../vendor/fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../vendor/fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------------------------------------------------------------- */
:root {
  /* palette */
  --ink: #15211c;            /* text on light, deep green-charcoal */
  --brand: #0b7a5b;          /* market green: links, primary actions, active states */
  --brand-strong: #06614a;
  --brand-soft: #e2f2eb;
  --sun: #ffc23d;            /* featured, highlights, the Sell button */
  --sun-strong: #f2a900;
  --sun-soft: #fff4d6;
  --coral: #e8553e;          /* urgent, favourites, errors */
  --coral-soft: #fde6e1;
  --mint: #1f9d6b;

  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-2: #eef0ea;
  --line: #e1e4dc;
  --text: var(--ink);
  --muted: #5c6862;

  /* legacy aliases (inline styles in older views use these) */
  --ultra: var(--brand);
  --ultra-600: var(--brand-strong);
  --ultra-100: var(--brand-soft);
  --tag: var(--sun);
  --tag-600: var(--sun-strong);
  --mist: var(--surface-2);

  --font-display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-1: 0 1px 2px rgba(21, 33, 28, .06);
  --shadow-2: 0 12px 28px -14px rgba(21, 33, 28, .28);
  --shadow-3: 0 28px 64px -28px rgba(21, 33, 28, .42);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
  --hdr-h: 64px;
  --tabbar-h: 64px;
  --gutter: 1rem;

  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1rem;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-primary: #0b7a5b;
  --bs-primary-rgb: 11, 122, 91;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 11, 122, 91;
  --bs-link-hover-color: var(--brand-strong);
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: var(--text);
}

[data-bs-theme="dark"] {
  --ink: #e6eee9;
  --brand: #3cc893;
  --brand-strong: #6ddcb0;
  --brand-soft: #13342a;
  --sun: #ffc94f;
  --sun-strong: #ffd877;
  --sun-soft: #3a2f12;
  --coral: #ff7a63;
  --coral-soft: #3d1e18;
  --mint: #45cf95;

  --bg: #0e1512;
  --surface: #151e1a;
  --surface-2: #1c2722;
  --line: #27342e;
  --text: #e6eee9;
  --muted: #93a39b;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 14px 34px -14px rgba(0, 0, 0, .75);
  --shadow-3: 0 30px 70px -26px rgba(0, 0, 0, .85);

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-primary: #3cc893;
  --bs-primary-rgb: 60, 200, 147;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 60, 200, 147;
  --bs-link-hover-color: var(--brand-strong);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: var(--text);
}

/* ---------- Base ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.55;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.12;
}
h1 { font-size: clamp(1.9rem, 5.2vw, 3.25rem); font-stretch: 90%; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.95rem); font-stretch: 92%; }
h3 { font-size: 1.25rem; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 0; box-shadow: var(--focus); border-radius: var(--radius-xs); }
::selection { background: var(--sun); color: #15211c; }
img { max-width: 100%; }
.text-muted, .text-body-secondary { color: var(--muted) !important; }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.text-bg-primary { background-color: var(--brand) !important; color: #fff !important; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
[x-cloak], [wire\:cloak] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.min-w-0 { min-width: 0; }
.container-xl { --bs-gutter-x: 2rem; }
@media (min-width: 768px) { .container-xl { --bs-gutter-x: 3rem; } }

/* ---------- Buttons ------------------------------------------------------------------ */
.btn { font-weight: 600; border-radius: 999px; padding: .62rem 1.2rem; letter-spacing: -.005em; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .8rem 1.55rem; font-size: 1.02rem; }
.btn-sm { padding: .38rem .85rem; font-size: .86rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-strong); --bs-btn-hover-border-color: var(--brand-strong);
  --bs-btn-active-bg: var(--brand-strong); --bs-btn-active-border-color: var(--brand-strong); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0e1512; --bs-btn-hover-color: #0e1512; --bs-btn-active-color: #0e1512; --bs-btn-disabled-color: #0e1512; }
.btn-tag, .btn-sun { background: var(--sun); border: 1px solid var(--sun); color: #15211c; }
.btn-tag:hover, .btn-sun:hover, .btn-tag:focus-visible { background: var(--sun-strong); border-color: var(--sun-strong); color: #15211c; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-soft { background: var(--brand-soft); color: var(--brand-strong); border: 1px solid transparent; }
.btn-soft:hover { background: var(--brand); color: #fff; }
[data-bs-theme="dark"] .btn-soft:hover { color: #0e1512; }
.btn-icon { width: 2.6rem; height: 2.6rem; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; }
.btn-link { color: var(--brand); }
.btn-outline-light { --bs-btn-color: var(--text); --bs-btn-border-color: var(--line); }

/* ---------- Forms -------------------------------------------------------------------- */
.form-control, .form-select { background-color: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 70%, var(--muted)); border-radius: var(--radius-sm); padding: .7rem .9rem; color: var(--text); min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: var(--focus); background-color: var(--surface); color: var(--text); }
.form-control::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.form-control:disabled, .form-select:disabled { background-color: var(--surface-2); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-text { color: var(--muted); font-size: .84rem; }
.form-check-input { border-color: color-mix(in srgb, var(--line) 50%, var(--muted)); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: var(--focus); border-color: var(--brand); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }
.input-group-text { background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--line) 70%, var(--muted)); color: var(--muted); }
textarea.form-control { min-height: 140px; }
.form-select-sm { min-height: 40px; padding-top: .4rem; padding-bottom: .4rem; }

.parsley-errors-list { list-style: none; padding: 0; margin: .35rem 0 0; font-size: .82rem; color: var(--coral); font-weight: 600; }
.parsley-error { border-color: var(--coral) !important; }
.parsley-success { border-color: var(--mint) !important; }
.invalid-msg { color: var(--coral); font-size: .82rem; font-weight: 600; margin-top: .3rem; }

/* ---------- Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-main { display: flex; align-items: center; gap: .75rem; min-height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand span:last-child { font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; letter-spacing: -.035em; font-stretch: 88%; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 11px; background: var(--brand); flex: none; display: block; }
.brand-mark::before { content: ""; position: absolute; left: 8px; top: 8px; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sun); }
.brand-mark::after { content: ""; position: absolute; left: 14px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.brand-mark i { display: none; }
.nav-search { flex: 1; max-width: 620px; position: relative; display: none; }
@media (min-width: 768px) { .nav-search { display: block; } }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav-link-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .93rem; position: relative; }
.nav-link-pill:hover { background: var(--surface-2); color: var(--text); }
.nav-link-pill i { font-size: 1.1rem; }
.hdr-mobile-search { padding: 0 0 .75rem; }
@media (min-width: 768px) { .hdr-mobile-search { display: none; } }
.hdr-cats { border-top: 1px solid var(--line); display: none; }
@media (min-width: 992px) { .hdr-cats { display: block; } }
.hdr-cats .container-xl { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.hdr-cats .container-xl::-webkit-scrollbar { display: none; }
.hdr-cats a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .75rem; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 550; white-space: nowrap; border-bottom: 2px solid transparent; }
.hdr-cats a:hover { color: var(--text); }
.hdr-cats a.active { color: var(--text); border-bottom-color: var(--brand); }
.hdr-cats a i { color: var(--brand); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; overflow: hidden; font-family: var(--font-display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.35rem; }
.dot-badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Search ----------------------------------------------------------------- */
.search-compact { position: relative; }
.search-compact i.lead-ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-compact .form-control { border-radius: 999px; padding-left: 2.6rem; background: var(--surface-2); border-color: transparent; min-height: 44px; }
.search-compact .form-control:focus { background: var(--surface); border-color: var(--brand); }
.searchbar { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .45rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: stretch; box-shadow: var(--shadow-3); color: var(--text); }
.searchbar .field { flex: 1 1 220px; display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; border-radius: 12px; min-width: 0; }
.searchbar .field:focus-within { background: var(--surface-2); }
.searchbar .field i { color: var(--muted); }
.searchbar .field label { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); line-height: 1; padding-top: .55rem; }
.searchbar .field .form-control, .searchbar .field .form-select { border: 0; background: transparent; min-height: 30px; padding: .15rem 0 .5rem; box-shadow: none !important; font-weight: 550; }
.searchbar .field .form-select { background-position: right 0 center; padding-right: 1.25rem; }
.searchbar .sep { width: 1px; background: var(--line); margin: .5rem 0; flex: none; }
.searchbar .btn { border-radius: 12px; padding-inline: 1.4rem; }
@media (max-width: 575.98px) { .searchbar .sep { display: none; } .searchbar .field { flex-basis: 100%; } .searchbar .btn { flex: 1 1 100%; } }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3); z-index: 1040; padding: .4rem; max-height: 70vh; overflow: auto; color: var(--text); }
.suggest a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--radius-xs); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 550; }
.suggest a:hover, .suggest a.active { background: var(--surface-2); }
.suggest small { color: var(--muted); font-weight: 500; margin-left: auto; }
.suggest .grp { font-size: .74rem; font-weight: 600; color: var(--muted); padding: .5rem .7rem .2rem; }

/* ---------- Mobile tab bar ------------------------------------------------------------ */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 1030; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
@media (min-width: 992px) { .tabbar { display: none; } }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
.tabbar a i { font-size: 1.3rem; line-height: 1; }
.tabbar a.active { color: var(--brand); }
.tabbar .tab-post { position: relative; }
.tabbar .tab-post span.fab { position: absolute; top: -18px; width: 54px; height: 54px; border-radius: 18px; background: var(--sun); color: #15211c; display: grid; place-items: center; font-size: 1.55rem; box-shadow: 0 0 0 5px var(--surface), var(--shadow-2); }
.tabbar .tab-post em { font-style: normal; margin-top: 34px; color: var(--text); }

/* ---------- Home hero: search + live photo wall ------------------------------------------- */
.hero { position: relative; padding: 2rem 0 2.25rem; overflow: hidden; }
@media (min-width: 992px) { .hero { padding: 3.25rem 0 3.5rem; } }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; } }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.1rem); line-height: .98; font-stretch: 82%; font-weight: 750; letter-spacing: -.035em; max-width: 13ch; margin-bottom: 1rem; }
.hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin-bottom: 1.5rem; }
.hero-popular { margin-top: 1rem; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.hero-popular a { color: var(--text); font-weight: 550; }
.hero-stats { display: flex; gap: 1.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-stats div { font-size: .88rem; color: var(--muted); }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); letter-spacing: -.02em; font-weight: 700; }

.hero-wall { position: relative; height: 470px; display: none; grid-template-columns: repeat(3, 1fr); gap: .75rem; border-radius: var(--radius-xl); overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
@media (min-width: 992px) { .hero-wall { display: grid; } }
.wall-col { display: flex; flex-direction: column; gap: .75rem; animation: wall-up 60s linear infinite; }
.wall-col:nth-child(2) { animation-duration: 75s; animation-direction: reverse; }
.wall-col:nth-child(3) { animation-duration: 68s; }
.hero-wall:hover .wall-col { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wall-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; flex: none; }
.wall-item:nth-child(3n+2) { aspect-ratio: 1; }
.wall-item img { width: 100%; height: 100%; object-fit: cover; }
.wall-item span { position: absolute; left: .5rem; bottom: .5rem; background: var(--surface); color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: .9rem; padding: .2rem .55rem; border-radius: 8px; box-shadow: var(--shadow-1); }
.hero-strip { display: flex; gap: .6rem; overflow-x: auto; margin-top: 1.5rem; scrollbar-width: none; }
.hero-strip::-webkit-scrollbar { display: none; }
.hero-strip .wall-item { width: 116px; aspect-ratio: 4 / 5; }
@media (min-width: 992px) { .hero-strip { display: none; } }

/* small page hero (plans, static pages) */
.page-hero { padding: 2.25rem 0 1.75rem; }
.page-hero p { color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.hero-tag { display: inline-flex; align-items: center; gap: .4rem; background: var(--sun-soft); color: var(--text); font-weight: 600; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; }

/* ---------- Sections --------------------------------------------------------------- */
.section { padding: 2rem 0; }
@media (min-width: 992px) { .section { padding: 2.75rem 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.section-head .arrows { display: flex; gap: .4rem; }

/* ---------- Category grid ----------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cat-card { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; transition: border-color .15s, background-color .15s; min-width: 0; }
.cat-card:hover { border-color: var(--brand); color: var(--text); }
.cat-card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .35rem; background: var(--brand-soft); color: var(--brand-strong); }
.cat-card:nth-child(5n+2) .ico { background: var(--sun-soft); color: #8a5d00; }
.cat-card:nth-child(5n+3) .ico { background: var(--coral-soft); color: #b43a26; }
.cat-card:nth-child(5n+4) .ico { background: #e4ecfb; color: #2f5bb7; }
.cat-card:nth-child(5n+5) .ico { background: #efe7fb; color: #6b3fb3; }
[data-bs-theme="dark"] .cat-card:nth-child(5n+2) .ico { color: var(--sun); }
[data-bs-theme="dark"] .cat-card:nth-child(5n+3) .ico { color: var(--coral); }
[data-bs-theme="dark"] .cat-card:nth-child(5n+4) .ico { background: #1a2640; color: #8fb2ff; }
[data-bs-theme="dark"] .cat-card:nth-child(5n+5) .ico { background: #2a1f3d; color: #c6a6ff; }
.cat-card b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }
.cat-card .cnt { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-card .subs { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
@media (min-width: 768px) { .cat-card .subs { display: block; } }

/* old home rail (kept for compatibility) */
.cat-scroller { display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none; }
.cat-tile { flex: 0 0 104px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .5rem; text-align: center; text-decoration: none; color: var(--text); }
.cat-tile .ico { width: 42px; height: 42px; margin: 0 auto .4rem; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.cat-tile b { display: block; font-size: .8rem; font-weight: 600; }

/* ---------- Ad cards --------------------------------------------------------------- */
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .65rem; }
@media (min-width: 768px) { .ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1rem; } }
@media (min-width: 1200px) { .ad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .ad-grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ad-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ad-card { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.ad-card > a:not(.fav-btn) { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.ad-card .media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; }
.ad-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ad-card:hover .media img { transform: scale(1.035); }
.ad-card .body { padding: .6rem .15rem 0; display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.ad-card .price { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ad-card .price small { font-family: var(--font-body); font-weight: 500; font-size: .74rem; color: var(--muted); margin-left: .3rem; letter-spacing: 0; }
.ad-card .price.ask { font-size: 1rem; color: var(--muted); font-weight: 600; }
.ad-card h3 { font-family: var(--font-body); font-size: .93rem; font-weight: 500; letter-spacing: 0; margin: 0; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card .specs { display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-size: .78rem; color: var(--muted); }
.ad-card .specs span + span::before { content: "·"; margin-right: .5rem; }
.ad-card .meta { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; margin-top: .15rem; min-width: 0; }
.ad-card .meta .loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-card .flags { position: absolute; top: .55rem; left: .55rem; z-index: 2; display: flex; gap: .3rem; flex-wrap: wrap; }
.ad-card .ph-count { position: absolute; left: .55rem; bottom: .55rem; z-index: 2; }
.ad-card.is-featured .media { box-shadow: 0 0 0 2px var(--sun); }
.ad-card.is-highlight .body { background: var(--sun-soft); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: .55rem .55rem .5rem; margin-top: .2rem; }

.chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 600; padding: .22rem .5rem; border-radius: 7px; line-height: 1.1; }
.chip-featured { background: var(--sun); color: #15211c; }
.chip-urgent { background: var(--coral); color: #fff; }
.chip-photos { background: rgba(15, 22, 19, .66); color: #fff; backdrop-filter: blur(6px); }
.chip-soft { background: var(--surface-2); color: var(--text); }
.fav-btn { position: absolute; top: .5rem; right: .5rem; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: #15211c; display: grid; place-items: center; box-shadow: var(--shadow-1); transition: transform .15s, color .15s; }
.fav-btn:hover { transform: scale(1.08); color: var(--coral); }
.fav-btn.on { color: var(--coral); }
/* legacy price tag (kept for any custom views) */
.price-tag { font-family: var(--font-display); font-weight: 700; }

/* list view (listing page toggle) */
.view-list .ad-grid { grid-template-columns: 1fr; gap: .75rem; }
.view-list .ad-card > a:not(.fav-btn) { flex-direction: row; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.view-list .ad-card .media { width: 38%; max-width: 220px; flex: none; border-radius: var(--radius-sm); }
.view-list .ad-card .body { padding: .2rem .2rem .2rem 0; }
.view-list .ad-card h3 { font-size: 1rem; font-weight: 600; }
.view-list .ad-card .fav-btn { top: 1rem; right: auto; left: calc(min(38%, 220px) - 2.1rem); }
@media (min-width: 768px) { .view-list .ad-card .price { font-size: 1.4rem; } }

/* horizontal rails (featured, similar) */
.hrail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
.hrail::-webkit-scrollbar { display: none; }
.hrail > * { scroll-snap-align: start; }
@media (min-width: 576px) { .hrail { grid-auto-columns: 42%; } }
@media (min-width: 992px) { .hrail { grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; } }
@media (min-width: 1400px) { .hrail { grid-auto-columns: calc((100% - 4 * 1rem) / 5); } }

.skeleton { background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -150% 0; } }
.sk-card .a { aspect-ratio: 4/3; border-radius: var(--radius); } .sk-card .b { height: 18px; width: 40%; margin: .7rem 0 .45rem; } .sk-card .c { height: 12px; width: 80%; }

/* ---------- Listing page ------------------------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: .6rem; opacity: .7; }
.listing-head { padding: 1rem 0 .5rem; }
.listing-head h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); margin: .3rem 0 .15rem; }
.listing-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 992px) { .listing-layout { grid-template-columns: 272px minmax(0, 1fr); gap: 2rem; } }
.filters-pane { background: var(--surface); }
@media (min-width: 992px) {
  .filters-pane { position: sticky; top: calc(var(--hdr-h) + 56px); max-height: calc(100vh - var(--hdr-h) - 72px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); scrollbar-width: thin; }
  .filters-pane .offcanvas-header { display: none; }
}
.filters-pane .offcanvas-body { padding: 1.1rem; }
.filter-group { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group > h6 { font-family: var(--font-body); font-weight: 600; font-size: .9rem; letter-spacing: 0; margin: 0 0 .6rem; }
.filters-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: .85rem 1.1rem; display: flex; gap: .5rem; }
.results-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .6rem 0; position: sticky; top: var(--hdr-h); z-index: 20; background: var(--bg); }
@media (min-width: 992px) { .results-bar { top: calc(var(--hdr-h) + 45px); } }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.view-toggle button { border: 0; background: transparent; width: 36px; height: 34px; border-radius: 999px; color: var(--muted); }
.view-toggle button.on { background: var(--surface-2); color: var(--text); }
.sidebar-sticky { position: sticky; top: calc(var(--hdr-h) + 1rem); }
@media (min-width: 992px) { .sidebar-sticky { top: calc(var(--hdr-h) + 60px); } }
.pill-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: .4rem .85rem; border-radius: 999px; font-size: .86rem; font-weight: 550; cursor: pointer; text-decoration: none; transition: border-color .15s, background-color .15s; display: inline-flex; align-items: center; gap: .3rem; }
.pill:hover { border-color: var(--brand); color: var(--text); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill .cnt { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pill.active .cnt { color: inherit; opacity: .7; }
.subcat-row { display: flex; gap: .45rem; overflow-x: auto; padding: .25rem 0 .5rem; scrollbar-width: none; }
.subcat-row::-webkit-scrollbar { display: none; }
.subcat-row .pill { white-space: nowrap; }
.sticky-bar { position: sticky; top: var(--hdr-h); z-index: 20; background: var(--bg); padding: .6rem 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.active-filters .pill { padding: .3rem .7rem; font-size: .82rem; background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }
.load-more-wrap { text-align: center; padding: 2rem 0; }
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty .big { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 22px; display: grid; place-items: center; font-size: 2rem; background: var(--brand-soft); color: var(--brand-strong); }
.empty h3 { color: var(--text); font-size: 1.3rem; }
.featured-band { background: var(--sun-soft); border-radius: var(--radius-lg); padding: 1rem; margin-bottom: 1.5rem; }
.featured-band .band-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }

/* ---------- Ad detail -------------------------------------------------------------- */
.detail-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 992px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; } }
.gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.gallery .stage { aspect-ratio: 4/3; display: grid; place-items: center; background: #0f1613; }
.gallery .stage img { width: 100%; height: 100%; object-fit: contain; }
.gallery .counter { position: absolute; right: .75rem; bottom: .75rem; }
.gallery .thumbs { display: flex; gap: .5rem; padding: .6rem; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); scrollbar-width: thin; }
.gallery:has(.thumbs) .stage { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.gallery .thumbs button { flex: 0 0 76px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; opacity: .6; background: none; }
.gallery .thumbs button.on { border-color: var(--brand); opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery .nav-btn { position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #15211c; display: grid; place-items: center; box-shadow: var(--shadow-2); }
.gallery .prev { left: .75rem; } .gallery .next { right: .75rem; }
.detail-price { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 750; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.detail-title { font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; margin: .6rem 0 .5rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .87rem; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.15rem 1.25rem; }
.panel + .panel { margin-top: 1rem; }
.panel > h2, .panel > .h5 { font-size: 1.15rem; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
@media (min-width: 768px) { .spec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec-list div { background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .75rem; min-width: 0; }
.spec-list dt { color: var(--muted); font-weight: 500; font-size: .78rem; }
.spec-list dd { margin: 0; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.seller-card { display: flex; gap: .9rem; align-items: center; }
.contact-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 1025; background: var(--surface); border-top: 1px solid var(--line); padding: .6rem var(--gutter); display: flex; gap: .6rem; }
@media (min-width: 992px) { .contact-bar { display: none; } }
.description { white-space: pre-line; line-height: 1.75; font-size: 1rem; }
.safety-list { list-style: none; padding: 0; margin: .5rem 0 .75rem; display: grid; gap: .4rem; font-size: .88rem; color: var(--muted); }
.safety-list li { display: flex; gap: .5rem; }
.safety-list i { color: var(--brand); }

/* ---------- Dashboard pieces ---------------------------------------------------------- */
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem; position: relative; overflow: hidden; height: 100%; }
.stat-card .label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.stat-card .value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: .25rem; }
.stat-card .ico { position: absolute; right: .9rem; top: .9rem; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-size: 1.1rem; }
.stat-card.tone-tag .ico { background: var(--sun-soft); color: #8a5d00; }
.stat-card.tone-mint .ico { background: #e4ecfb; color: #2f5bb7; }
.stat-card.tone-coral .ico { background: var(--coral-soft); color: #b43a26; }
[data-bs-theme="dark"] .stat-card.tone-tag .ico { color: var(--sun); }
[data-bs-theme="dark"] .stat-card.tone-mint .ico { background: #1a2640; color: #8fb2ff; }
[data-bs-theme="dark"] .stat-card.tone-coral .ico { color: var(--coral); }

.dash-nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.dash-nav::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .dash-nav { flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .5rem; } }
.dash-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .93rem; white-space: nowrap; }
.dash-nav a:hover { color: var(--text); background: var(--surface-2); }
.dash-nav a.on { color: var(--text); background: var(--brand-soft); }
.dash-nav a.on i { color: var(--brand); }

.status-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live, .status-paid, .status-active, .status-confirmed { background: var(--brand-soft); color: var(--brand-strong); }
.status-pending, .status-pending_payment, .status-grace, .status-draft, .status-partially_paid, .status-awaiting_payment, .status-detected, .status-waiting { background: var(--sun-soft); color: #8a5d00; }
.status-expired, .status-cancelled, .status-removed, .status-failed, .status-needs_review, .status-removed_by_admin, .status-removed_by_user, .status-removed_by_moderator { background: var(--coral-soft); color: #b43a26; }
.status-sold { background: #e4ecfb; color: #2f5bb7; }
[data-bs-theme="dark"] .status-pending, [data-bs-theme="dark"] .status-pending_payment, [data-bs-theme="dark"] .status-grace, [data-bs-theme="dark"] .status-draft,
[data-bs-theme="dark"] .status-partially_paid, [data-bs-theme="dark"] .status-awaiting_payment, [data-bs-theme="dark"] .status-detected, [data-bs-theme="dark"] .status-waiting { color: var(--sun); }
[data-bs-theme="dark"] .status-expired, [data-bs-theme="dark"] .status-cancelled, [data-bs-theme="dark"] .status-removed, [data-bs-theme="dark"] .status-failed,
[data-bs-theme="dark"] .status-needs_review, [data-bs-theme="dark"] .status-removed_by_admin, [data-bs-theme="dark"] .status-removed_by_user { color: var(--coral); }
[data-bs-theme="dark"] .status-sold { background: #1a2640; color: #8fb2ff; }

/* Row lists — the no-<table> replacement (stacked cards on mobile, grid rows on desktop) */
.rows { display: flex; flex-direction: column; gap: .55rem; }
.row-item { display: grid; gap: .5rem .9rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .95rem; grid-template-columns: 1fr; }
a.row-item:hover { border-color: var(--brand); }
.row-item .cell { min-width: 0; }
.row-item .cell > .k { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.row-item .cell.actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.row-head { display: none; }
@media (min-width: 992px) {
  .rows.cols-ads .row-item, .rows.cols-ads .row-head { grid-template-columns: 64px minmax(0, 3fr) 1fr 1fr 1fr auto; }
  .rows.cols-orders .row-item, .rows.cols-orders .row-head { grid-template-columns: 1.1fr 1.6fr 1fr 1fr 1fr auto; }
  .rows.cols-tx .row-item, .rows.cols-tx .row-head { grid-template-columns: 1.2fr 2.2fr 1fr 1fr; }
  .rows.cols-4 .row-item, .rows.cols-4 .row-head { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rows.cols-5 .row-item, .rows.cols-5 .row-head { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rows.cols-6 .row-item, .rows.cols-6 .row-head { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rows[style*="--n"] .row-item, .rows[style*="--n"] .row-head { grid-template-columns: repeat(var(--n), minmax(0, 1fr)) minmax(120px, auto); }
  .row-head { display: grid; gap: .9rem; padding: 0 .95rem; font-size: .76rem; font-weight: 600; color: var(--muted); }
  .row-item .cell > .k { display: none; }
}
.row-thumb { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }

/* ---------- Post ad --------------------------------------------------------------- */
.post-wrap { max-width: 880px; margin-inline: auto; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.1rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .step-card { padding: 1.6rem 1.75rem; } }
.step-card > header { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.1rem; }
.step-card > header .n { width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-family: var(--font-display); }
[data-bs-theme="dark"] .step-card > header .n { color: #0e1512; }
.step-card > header h2 { font-size: 1.2rem; margin: 0; }
.step-card > header small { color: var(--muted); display: block; font-weight: 400; font-family: var(--font-body); }
.cat-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 576px) { .cat-pick { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .cat-pick { grid-template-columns: repeat(4, 1fr); } }
.cat-pick button { display: flex; align-items: center; gap: .55rem; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: .65rem .75rem; font-weight: 550; font-size: .88rem; transition: border-color .15s, background-color .15s; }
.cat-pick button:hover { border-color: var(--brand); }
.cat-pick button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.cat-pick button i { font-size: 1.15rem; color: var(--brand); }
.dropzone { border: 2px dashed color-mix(in srgb, var(--line) 50%, var(--muted)); border-radius: var(--radius); padding: 1.6rem 1rem; text-align: center; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.dropzone i { font-size: 2rem; display: block; color: var(--brand); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .75rem; }
@media (min-width: 576px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 2px solid transparent; cursor: grab; }
.photo.main { border-color: var(--sun); }
.photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(15, 22, 19, .75); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.photo .badge-main { position: absolute; left: 4px; bottom: 4px; background: var(--sun); color: #15211c; font-size: .66rem; font-weight: 700; padding: .12rem .45rem; border-radius: 6px; }
.photo.sortable-ghost { opacity: .35; }
.service-opt { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem .95rem; cursor: pointer; background: var(--surface); transition: border-color .15s, background-color .15s; width: 100%; text-align: left; color: var(--text); }
.service-opt:hover { border-color: var(--brand); }
.service-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.service-opt .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-soft); color: #8a5d00; font-size: 1.2rem; flex: none; }
[data-bs-theme="dark"] .service-opt .ico { color: var(--sun); }
.service-opt .price { margin-left: auto; font-weight: 700; white-space: nowrap; font-family: var(--font-display); }
.summary-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 30; background: #15211c; color: #fff; border-radius: var(--radius-lg); padding: .85rem 1rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-3); }
[data-bs-theme="dark"] .summary-bar { background: #223029; }
@media (min-width: 992px) { .summary-bar { bottom: 1rem; } }
.summary-bar .tot { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.summary-bar small { color: rgba(255, 255, 255, .7); display: block; line-height: 1.1; }
.summary-lines { font-size: .88rem; }
.summary-lines div { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px dashed var(--line); }

/* ---------- Checkout ---------------------------------------------------------------- */
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.pay-card .head { background: #15211c; color: #fff; padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
[data-bs-theme="dark"] .pay-card .head { background: #223029; }
.pay-card .btc-amt { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.qr-box { background: #fff; padding: 12px; border-radius: var(--radius); display: inline-block; border: 1px solid var(--line); }
.qr-box svg, .qr-box img { display: block; width: 220px; height: 220px; }
.copy-field { display: flex; gap: .4rem; align-items: stretch; }
.copy-field code { flex: 1; min-width: 0; word-break: break-all; background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .75rem; font-size: .82rem; color: var(--text); border: 1px dashed var(--line); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); display: inline-block; animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 61, .7); } 100% { box-shadow: 0 0 0 12px rgba(255, 194, 61, 0); } }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; color: var(--muted); font-weight: 500; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .32rem; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 1.1rem; bottom: -.1rem; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text); } .timeline li.done::before { background: var(--brand); }
.timeline li.now { color: var(--text); } .timeline li.now::before { background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 194, 61, .35); }

/* ---------- Plans ------------------------------------------------------------------- */
.plan-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-3); }
.plan.featured::before { content: "Best value"; position: absolute; top: -13px; left: 1.3rem; background: var(--sun); color: #15211c; font-weight: 600; font-size: .78rem; padding: .22rem .8rem; border-radius: 999px; }
.plan .p { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; flex: 1; }
.plan li { padding: .32rem 0 .32rem 1.6rem; position: relative; font-size: .93rem; }
.plan li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--brand); }

/* ---------- Chat -------------------------------------------------------------------- */
.chat-wrap { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .chat-wrap { grid-template-columns: 340px 1fr; } }
.bubble { max-width: 82%; padding: .55rem .85rem; border-radius: 18px 18px 18px 5px; background: var(--surface-2); font-size: .94rem; line-height: 1.45; width: fit-content; }
.bubble.me { margin-left: auto; background: var(--brand); color: #fff; border-radius: 18px 18px 5px 18px; }
[data-bs-theme="dark"] .bubble.me { color: #0e1512; }
.bubble time { display: block; font-size: .68rem; opacity: .7; margin-top: .15rem; }

/* ---------- Home: sell band, cities ----------------------------------------------------- */
.sell-band { background: var(--sun-soft); border-radius: var(--radius-xl); padding: 1.75rem 1.4rem; display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .sell-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding: 2.5rem; align-items: center; } }
.sell-band h2 { margin-bottom: .5rem; }
.sell-band p { color: var(--muted); margin-bottom: 1.25rem; }
.sell-steps { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 768px) { .sell-steps { grid-template-columns: repeat(3, 1fr); } }
.sell-steps li { background: var(--surface); border-radius: var(--radius-lg); padding: 1rem 1.1rem; counter-increment: s; }
.sell-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: .6rem; }
[data-bs-theme="dark"] .sell-steps li::before { color: #0e1512; }
.sell-steps b { display: block; margin-bottom: .15rem; }
.sell-steps span { color: var(--muted); font-size: .9rem; }
.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
@media (min-width: 768px) { .city-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.city-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 550; min-width: 0; }
.city-list a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-list a:hover { color: var(--brand); }
.city-list small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.state-cloud { columns: 2; column-gap: 1.5rem; font-size: .9rem; }
@media (min-width: 768px) { .state-cloud { columns: 4; } }
@media (min-width: 1200px) { .state-cloud { columns: 6; } }
.state-cloud a { display: block; padding: .2rem 0; color: var(--muted); text-decoration: none; }
.state-cloud a:hover { color: var(--brand); }

/* ---------- Footer ------------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--brand); }
.site-footer h6 { color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: .92rem; letter-spacing: 0; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .brand { color: var(--text); }
.site-footer .foot-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Auth ---------------------------------------------------------------------- */
.auth-shell { min-height: calc(100vh - var(--hdr-h)); display: grid; place-items: center; padding: 2rem var(--gutter); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 2rem 1.6rem; box-shadow: var(--shadow-2); }
.auth-card h1 { font-size: 1.9rem; }

/* ---------- Overlays, toasts, misc -------------------------------------------------------- */
.toast-stack { position: fixed; right: 1rem; bottom: calc(var(--tabbar-h) + 1rem); z-index: 2000; display: grid; gap: .5rem; max-width: min(92vw, 360px); }
@media (min-width: 992px) { .toast-stack { bottom: 1.25rem; } }
.toast-item { background: #15211c; color: #fff; padding: .75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-3); font-weight: 500; font-size: .92rem; display: flex; gap: .6rem; align-items: center; animation: toast-in .25s ease; }
[data-bs-theme="dark"] .toast-item { background: #26352e; }
.toast-item.ok i { color: #6ddcb0; } .toast-item.err i { color: #ff8f7a; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.install-banner { position: fixed; left: 1rem; right: 1rem; bottom: calc(var(--tabbar-h) + 1rem); z-index: 1500; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .8rem 1rem; box-shadow: var(--shadow-3); display: flex; gap: .8rem; align-items: center; }
@media (min-width: 992px) { .install-banner { left: auto; max-width: 420px; bottom: 1.25rem; } }
.offcanvas, .offcanvas-lg { --bs-offcanvas-bg: var(--surface); --bs-offcanvas-color: var(--text); }
.offcanvas { background: var(--surface); color: var(--text); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.modal-content { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--line); color: var(--text); }
.dropdown-menu { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-2); padding: .4rem; background: var(--surface); }
.dropdown-item { border-radius: var(--radius-xs); font-weight: 500; font-size: .92rem; color: var(--text); padding: .5rem .7rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--text); }
.alert { border-radius: var(--radius); }
.progress-thin { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-thin > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s; }
.kbd { font-family: ui-monospace, monospace; font-size: .8em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .4rem; }
.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .82rem; font-weight: 500; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.page-title { font-size: clamp(1.6rem, 4.2vw, 2.3rem); margin-bottom: .25rem; }
.card-soft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
[wire\:loading] { display: none; }
.top-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand); z-index: 3000; transition: width .25s ease, opacity .3s; opacity: 0; }
.top-progress.on { opacity: 1; }
.badge.text-bg-primary { background: var(--brand) !important; }

/* ---------- Admin shell -------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 1030; background: var(--surface); border-bottom: 1px solid var(--line); height: var(--hdr-h); }
.admin-shell { display: block; min-height: 100vh; }
.admin-side { background: #12201a; color: #c3d0c9; width: 264px; padding: 1rem .8rem; }
.admin-side .brand { color: #fff; padding: .4rem .6rem 1rem; }
.admin-side a.item { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 12px; color: #c3d0c9; text-decoration: none; font-weight: 500; font-size: .93rem; }
.admin-side a.item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-side a.item.active { background: #1d3a2f; color: #fff; }
.admin-side a.item.active i { color: var(--sun); }
.admin-side .grp { font-size: .72rem; font-weight: 600; color: #7f948a; padding: 1rem .75rem .35rem; }
@media (min-width: 992px) {
  .admin-shell { display: grid; grid-template-columns: 264px 1fr; }
  .admin-side { position: sticky; top: 0; height: 100vh; overflow: auto; }
}
.admin-main { padding: 1.25rem var(--gutter) 3rem; min-width: 0; }
@media (min-width: 992px) { .admin-main { padding: 1.75rem 2rem 3rem; } }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.bar-chart { display: flex; align-items: end; gap: 4px; height: 140px; }
.bar-chart .b { flex: 1; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; opacity: .85; transition: opacity .15s; }
.bar-chart .b:hover { opacity: 1; }
.bar-chart .b span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .68rem; font-weight: 600; background: #15211c; color: #fff; padding: .1rem .4rem; border-radius: 6px; white-space: nowrap; display: none; margin-bottom: 4px; }
.bar-chart .b:hover span { display: block; }
.bar-labels { display: flex; gap: 4px; font-size: .64rem; color: var(--muted); margin-top: .35rem; }
.bar-labels span { flex: 1; text-align: center; overflow: hidden; }
.log-line { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .75rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wall-col { animation: none !important; }
}
@media print { .site-header, .tabbar, .site-footer, .contact-bar { display: none !important; } body { padding: 0; } }

/* utilities used by the views */
.flex-none { flex: none; }
@media (min-width: 992px) { .filters-pane { background-color: var(--surface) !important; } }
.hero-grid > * { min-width: 0; }
.form-select.rounded-pill { padding-left: 1rem; padding-right: 2.25rem; }

/* ---------- v3 fixes ------------------------------------------------------------------ */
/* theme toggle shows the mode you will switch to */
.theme-btn { border: 0; color: var(--text); background: transparent; }
.theme-btn:hover { background: var(--surface-2); color: var(--text); }
.theme-ico-light { display: none; }
[data-bs-theme="dark"] .theme-ico-light { display: inline; }
[data-bs-theme="dark"] .theme-ico-dark { display: none; }

/* account menu (Alpine, no Popper) */
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: transparent; color: var(--muted); padding: 2px 4px 2px 2px; border-radius: 999px; margin-left: .25rem; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.acct-btn i { font-size: .75rem; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1060; width: min(280px, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: .4rem; }
.acct-head { display: flex; gap: .7rem; align-items: center; padding: .6rem .6rem .75rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .65rem; border: 0; background: transparent; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; text-align: left; }
.acct-menu a i, .acct-menu button i { color: var(--muted); font-size: 1rem; width: 1.1rem; }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a:focus-visible, .acct-menu button:focus-visible { background: var(--surface-2); }
.acct-menu .danger, .acct-menu .danger i { color: var(--coral); }
.acct-menu hr { margin: .3rem 0; border-color: var(--line); opacity: 1; }

/* buttons inside input groups keep the input's shape and border */
.input-group > .btn { border-radius: var(--radius-sm); }
.input-group > .btn-ghost { border-color: color-mix(in srgb, var(--line) 70%, var(--muted)); background: var(--surface-2); }
.input-group > .form-control:focus { z-index: 3; }

/* buttons on the dark summary bar */
.btn-on-dark { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }

/* pills that wrap a radio / checkbox reflect the choice instantly (no server round trip) */
.pill:has(> input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill:has(> input:focus-visible) { box-shadow: var(--focus); }
.pill.active:has(> input:not(:checked)) { background: var(--surface); border-color: var(--line); color: var(--text); }

/* Bootstrap bits that need theme-aware colours */
.text-success { color: var(--mint) !important; }
.text-warning { color: #b37800 !important; }
[data-bs-theme="dark"] .text-warning { color: var(--sun) !important; }
.btn-close:focus { box-shadow: var(--focus); }
.form-check-label { cursor: pointer; }
.form-check-input { cursor: pointer; transition: none; }
.form-check-input:not(:checked) { background-color: var(--surface); }
.nav-tabs, .nav-pills { --bs-nav-link-color: var(--muted); --bs-nav-link-hover-color: var(--text); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand); }
.list-group { --bs-list-group-bg: var(--surface); --bs-list-group-border-color: var(--line); --bs-list-group-color: var(--text); --bs-list-group-action-hover-bg: var(--surface-2); --bs-list-group-active-bg: var(--brand-soft); --bs-list-group-active-color: var(--text); --bs-list-group-active-border-color: var(--line); }
.badge.text-bg-secondary { background: var(--surface-2) !important; color: var(--text) !important; }

/* rich text (Trix) editor + rendered descriptions */
.rich-editor { border: 1px solid color-mix(in srgb, var(--line) 70%, var(--muted)); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.rich-editor:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.rich-editor.parsley-error { border-color: var(--coral); }
.rich-editor trix-toolbar { padding: .4rem .5rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rich-editor trix-toolbar .trix-button-row { flex-wrap: wrap; gap: .25rem; overflow-x: visible; }
.rich-editor trix-toolbar .trix-button-group { border: 0; margin: 0; background: transparent; }
.rich-editor trix-toolbar .trix-button-group--file-tools,
.rich-editor trix-toolbar .trix-button--icon-attach,
.rich-editor trix-toolbar .trix-button--icon-code,
.rich-editor trix-toolbar .trix-button-group-spacer { display: none; }
.rich-editor trix-toolbar .trix-button { border: 0; border-radius: 8px; background: transparent; margin: 0 1px; }
.rich-editor trix-toolbar .trix-button:not(:first-child) { border-left: 0; }
.rich-editor trix-toolbar .trix-button.trix-active { background: var(--brand-soft); }
.rich-editor trix-toolbar .trix-button:hover { background: var(--surface); }
[data-bs-theme="dark"] .rich-editor trix-toolbar .trix-button--icon::before { filter: invert(1); opacity: .8; }
[data-bs-theme="dark"] .rich-editor trix-toolbar .trix-button--icon.trix-active::before { opacity: 1; }
.rich-editor trix-toolbar .trix-dialog { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-2); border-radius: var(--radius-sm); }
.rich-editor trix-toolbar .trix-input--dialog { background: var(--surface); color: var(--text); border-color: var(--line); }
.rich-editor trix-editor { border: 0; min-height: 200px; padding: .8rem .9rem; color: var(--text); line-height: 1.65; }
.rich-editor trix-editor:empty:not(:focus)::before { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.rich-editor trix-editor h1 { font-size: 1.2rem; }
.rich-text { line-height: 1.75; font-size: 1rem; overflow-wrap: anywhere; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text h1, .rich-text h2, .rich-text h3 { font-size: 1.15rem; margin: 1.1rem 0 .4rem; }
.rich-text ul, .rich-text ol { padding-left: 1.3rem; }
.rich-text blockquote { border-left: 3px solid var(--line); padding-left: .9rem; color: var(--muted); }
.rich-text pre { background: var(--surface-2); padding: .75rem; border-radius: var(--radius-sm); white-space: pre-wrap; }
.rich-text div { margin-bottom: .75rem; }

/* compact footer on inner pages */
.site-footer.is-compact { padding: 1.1rem 0; margin-top: 2.5rem; }
.foot-compact { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; font-size: .87rem; }
.foot-compact nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.foot-compact .brand span:last-child { font-size: 1.05rem; }
.foot-compact .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.foot-compact .brand-mark::before { left: 6px; top: 6px; width: 14px; height: 14px; }
.foot-compact .brand-mark::after { left: 10.5px; top: 10px; width: 5px; height: 5px; }
.service-opt { align-items: center; }
.service-opt .svc-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--line) 50%, var(--muted)); display: grid; place-items: center; flex: none; color: transparent; font-size: .85rem; }
.service-opt.on .svc-check { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-bs-theme="dark"] .service-opt.on .svc-check { color: #0e1512; }
.service-opt .price { margin-left: auto; }

/* ---------- Home: shop by location -------------------------------------------------------- */
.loc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.25rem; }
@media (min-width: 992px) { .loc-panel { padding: 2rem; } }
.loc-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.loc-head h2 { margin: 0; }
.loc-head p { margin: .25rem 0 0; color: var(--muted); }
.loc-find { position: relative; flex: 1 1 260px; max-width: 340px; }
.loc-find i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.loc-find .form-control { padding-left: 2.4rem; border-radius: 999px; background: var(--surface-2); border-color: transparent; }
.loc-find .form-control:focus { background: var(--surface); }
.loc-tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; margin-bottom: 1.1rem; }
.loc-tabs::-webkit-scrollbar { display: none; }
.loc-tabs button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: .45rem .95rem; font-weight: 550; font-size: .9rem; white-space: nowrap; }
.loc-tabs button span { opacity: .7; font-weight: 500; margin-left: .2rem; }
.loc-tabs button:hover { color: var(--text); border-color: var(--muted); }
.loc-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.state-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 576px) { .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .state-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.state-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; min-width: 0; background: var(--bg); transition: border-color .15s; }
.state-card:hover { border-color: var(--brand); }
.state-link { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; }
.state-link:hover { color: var(--text); }
.state-link .abbr { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; flex: none; }
.state-link b { display: block; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state-link small { color: var(--muted); font-size: .8rem; }
.state-link i { color: var(--muted); font-size: .85rem; }
.state-cities { display: flex; flex-wrap: wrap; gap: .1rem .75rem; margin: .5rem 0 0 calc(40px + .7rem); font-size: .84rem; }
.state-cities a { color: var(--muted); text-decoration: none; }
.state-cities a:hover { color: var(--brand); text-decoration: underline; }

/* hero polish */
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
  background: radial-gradient(60% 70% at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.hero { isolation: isolate; }
.hero-popular a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; }
.hero-popular a:hover { border-color: var(--brand); color: var(--text); }
.hero-popular { align-items: center; gap: .4rem; }
.hero-popular span { margin-right: .2rem; }
.smart-banner { display: flex; gap: .7rem; align-items: flex-start; margin-top: .75rem; padding: .7rem .9rem; border-radius: var(--radius); background: var(--brand-soft); color: var(--text); font-size: .92rem; }
.smart-banner i { color: var(--brand); font-size: 1.1rem; line-height: 1.3; }
.smart-banner a { margin-left: .25rem; }
.smart-banner > div { min-width: 0; overflow-wrap: anywhere; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; padding: .7rem 1.2rem; }
.btn-google:hover { background: #f6f8f7; color: #1f1f1f; border-color: #c4c7c5; }
[data-bs-theme="dark"] .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
[data-bs-theme="dark"] .btn-google:hover { background: #1e1f20; color: #e3e3e3; }

/* ---------- v4: SweetAlert2 + Fancybox + favourites ---------------------------------------- */
.swal2-popup.swal-pop { border-radius: var(--radius-xl); font-family: var(--font-body); padding: 1.5rem 1.25rem; }
.swal2-popup.swal-pop .swal2-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 1.45rem; }
.swal2-popup.swal-pop .swal2-html-container { font-size: .98rem; }
.swal2-popup.swal-pop.swal2-toast { border-radius: var(--radius); padding: .65rem .9rem; box-shadow: var(--shadow-3); border: 1px solid var(--line); }
.swal2-popup.swal-pop.swal2-toast .swal2-title { font-family: var(--font-body); font-size: .93rem; font-weight: 600; letter-spacing: 0; }
.swal2-styled.swal-ok, .swal2-styled.swal-cancel { border-radius: 999px !important; font-weight: 600; padding: .6rem 1.3rem; }
.swal2-styled.swal-cancel { color: var(--text) !important; }
.swal-list { text-align: left; margin: .25rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.swal2-container { z-index: 2100; }
.stage-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.stage-link img { width: 100%; height: 100%; object-fit: contain; }
.fancybox__container { --fancybox-bg: rgba(10, 16, 13, .94); }
.fav-inline.on, .fav-inline.on i { color: var(--coral); }
.photo a { cursor: zoom-in; }

/* =====================================================================================
   v4 — COMPACT LAYOUT. Denser type scale, more cards per row, tighter sections.
   ===================================================================================== */
:root { --hdr-h: 58px; --radius: 12px; --radius-lg: 16px; --radius-xl: 22px; }
html { font-size: 15px; }
@media (min-width: 1400px) { .container-xl { max-width: 1400px; } }
body { line-height: 1.5; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.section { padding: 1.4rem 0; }
@media (min-width: 992px) { .section { padding: 1.8rem 0; } }
.section-head { margin-bottom: .8rem; }
.section-head p { font-size: .9rem; }
.btn { padding: .52rem 1.05rem; }
.btn-lg { padding: .68rem 1.35rem; font-size: 1rem; }
.form-control, .form-select { min-height: 44px; padding: .58rem .8rem; }
.panel { padding: 1rem 1.1rem; }
.step-card { padding: 1.1rem 1rem; }
@media (min-width: 768px) { .step-card { padding: 1.3rem 1.4rem; } }
.hdr-cats a { padding: .55rem .7rem; font-size: .87rem; }

/* hero: shorter, still photo-led */
.hero { padding: 1.6rem 0 1.4rem; }
@media (min-width: 992px) { .hero { padding: 2.4rem 0 2rem; } }
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); margin-bottom: .7rem; }
.hero .lead { font-size: 1rem; margin-bottom: 1.1rem; }
.hero-wall { height: 390px; }
.hero-stats { margin-top: 1.2rem; gap: 1.4rem; }
.hero-stats b { font-size: 1.3rem; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* category strip: one row of compact tiles (scrolls on phones) */
.cat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.cat-strip::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .cat-strip { grid-auto-flow: row; grid-template-columns: repeat(10, minmax(0, 1fr)); overflow: visible; } }
.cat-tile2 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: .75rem .4rem .65rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.cat-tile2:hover { border-color: var(--brand); color: var(--text); transform: translateY(-2px); }
.cat-tile2 .ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: var(--brand-soft); color: var(--brand-strong); }
.cat-tile2:nth-child(5n+2) .ico { background: var(--sun-soft); color: #8a5d00; }
.cat-tile2:nth-child(5n+3) .ico { background: var(--coral-soft); color: #b43a26; }
.cat-tile2:nth-child(5n+4) .ico { background: #e4ecfb; color: #2f5bb7; }
.cat-tile2:nth-child(5n+5) .ico { background: #efe7fb; color: #6b3fb3; }
[data-bs-theme="dark"] .cat-tile2:nth-child(5n+2) .ico { color: var(--sun); }
[data-bs-theme="dark"] .cat-tile2:nth-child(5n+3) .ico { color: var(--coral); }
[data-bs-theme="dark"] .cat-tile2:nth-child(5n+4) .ico { background: #1a2640; color: #8fb2ff; }
[data-bs-theme="dark"] .cat-tile2:nth-child(5n+5) .ico { background: #2a1f3d; color: #c6a6ff; }
.cat-tile2 b { font-size: .8rem; font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile2 small { font-size: .72rem; color: var(--muted); }

/* denser card grid + cards */
.ad-grid { gap: .9rem .6rem; }
@media (min-width: 768px) { .ad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem .8rem; } }
@media (min-width: 1200px) { .ad-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ad-grid.dense { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 992px) and (max-width: 1199.98px) { .listing-layout .ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .listing-layout .ad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .listing-layout .ad-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ad-card .media { border-radius: 10px; }
.ad-card .body { padding-top: .45rem; gap: .1rem; }
.ad-card .price { font-size: 1.05rem; }
.ad-card .price small { font-size: .7rem; }
.ad-card h3 { font-size: .86rem; line-height: 1.3; }
.ad-card .meta, .ad-card .specs { font-size: .73rem; }
.ad-card .fav-btn { width: 32px; height: 32px; top: .4rem; right: .4rem; font-size: .9rem; }
.ad-card .flags { top: .4rem; left: .4rem; }
.chip { font-size: .66rem; padding: .18rem .45rem; }
.hrail { grid-auto-columns: 46%; gap: .7rem; }
@media (min-width: 576px) { .hrail { grid-auto-columns: 31%; } }
@media (min-width: 992px) { .hrail { grid-auto-columns: calc((100% - 4 * .8rem) / 5); gap: .8rem; } }
@media (min-width: 1400px) { .hrail { grid-auto-columns: calc((100% - 5 * .8rem) / 6); } }

/* promoted bands (home + category pages) */
.promo-band { border-radius: var(--radius-xl); padding: .9rem; margin-bottom: 1.2rem; border: 1px solid transparent; }
@media (min-width: 768px) { .promo-band { padding: 1.1rem 1.2rem; } }
.promo-featured { background: linear-gradient(135deg, var(--sun-soft), color-mix(in srgb, var(--sun-soft) 40%, var(--surface))); border-color: color-mix(in srgb, var(--sun) 35%, transparent); }
.promo-premium { background: linear-gradient(135deg, color-mix(in srgb, #8b5cf6 12%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, #8b5cf6 28%, transparent); margin-top: .5rem; }
.promo-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; flex-wrap: wrap; }
.promo-badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--sun); color: #15211c; font-weight: 700; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; }
.promo-badge.premium { background: #7c3aed; color: #fff; }
.promo-band .ad-card .body { background: transparent; }

/* listing page density */
.listing-head { padding: .7rem 0 .3rem; }
.listing-head h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
@media (min-width: 992px) { .listing-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; } }
.filters-pane .offcanvas-body { padding: .9rem; }
.filter-group { padding: .7rem 0; }
.filter-group > h6 { font-size: .85rem; margin-bottom: .45rem; }
.pill { padding: .32rem .75rem; font-size: .82rem; }

/* shop by location: state cards with city badges */
.loc-panel { padding: 1rem; }
@media (min-width: 992px) { .loc-panel { padding: 1.4rem 1.5rem; } }
.state-grid { gap: .55rem; }
.state-card { padding: .65rem .7rem .7rem; background: var(--surface); }
.state-link { gap: .6rem; }
.state-link .abbr { width: 36px; height: 36px; border-radius: 11px; font-size: .85rem; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; }
[data-bs-theme="dark"] .state-link .abbr { color: #0e1512; }
.state-link b { font-size: .93rem; }
.state-link small { display: block; font-size: .74rem; }
.city-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem; }
.city-badges .lbl { font-size: .8rem; font-weight: 600; color: var(--text); margin-right: .25rem; align-self: center; }
.city-badges .lbl i { color: var(--coral); }
.city-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 550; line-height: 1.4;
  background: var(--surface-2); color: var(--text); text-decoration: none; border: 1px solid transparent; transition: border-color .15s, background-color .15s; }
.city-badge:hover { border-color: var(--brand); color: var(--text); background: var(--brand-soft); }
.city-badge .num { font-size: .68rem; color: var(--muted); font-weight: 500; }
.city-badge.hot { background: var(--brand-soft); color: var(--brand-strong); padding: .28rem .7rem; font-size: .8rem; }
.city-badge.hot .num { color: inherit; opacity: .75; }
.state-cities { display: none; }

/* sell band + footer compact */
.sell-band { padding: 1.3rem 1.1rem; gap: 1rem; }
@media (min-width: 992px) { .sell-band { padding: 1.8rem 2rem; } }
.sell-steps li { padding: .8rem .9rem; }
.site-footer { margin-top: 2rem; padding: 2rem 0 1.2rem; }

/* ad detail density */
.detail-layout { gap: 1.2rem; }
@media (min-width: 992px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 1.5rem; } }
.detail-price { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.detail-title { font-size: 1.08rem; }

/* =====================================================================================
   v5 — finder, promo carousels, category spotlights, coupons, tighter rhythm
   ===================================================================================== */

/* State -> City -> Category -> Subcategory finder */
.finder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: .4rem; box-shadow: var(--shadow-2); }
.finder-field { position: relative; min-width: 0; border-radius: 11px; padding: .38rem .65rem .2rem; background: var(--surface-2); border: 1px solid transparent; transition: border-color .15s, background-color .15s; }
.finder-field:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: var(--focus); }
.finder-field label { display: flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 650; color: var(--muted); line-height: 1.1; margin: 0; }
.finder-field label i { color: var(--brand); font-size: .75rem; }
.finder-field label .opt { font-weight: 450; opacity: .8; }
.finder-field .form-select, .finder-field .form-control { border: 0; background-color: transparent; box-shadow: none !important; padding: .1rem 1.3rem .3rem 0; min-height: 30px; font-size: .9rem; font-weight: 560; color: var(--text); }
.finder-field .form-control { padding-right: 0; }
.finder-field .form-select { background-position: right .1rem center; }
.finder-field .form-select:disabled { color: var(--muted); opacity: 1; background-color: transparent; }
.finder-q { grid-column: 1 / -1; }
.finder-go { grid-column: 1 / -1; border-radius: 11px; font-weight: 650; min-height: 44px; }
@media (min-width: 992px) {
  .finder:not(.finder-hero) { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr) auto; }
  .finder:not(.finder-hero) .finder-q, .finder:not(.finder-hero) .finder-go { grid-column: auto; }
  .finder:not(.finder-hero) .finder-go { padding-inline: 1.3rem; }
}
.finder-hero { box-shadow: var(--shadow-3); max-width: 600px; }
@media (min-width: 576px) { .finder-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .finder-hero .finder-q { grid-column: 1 / 2; } .finder-hero .finder-go { grid-column: 2 / 3; min-height: 100%; } }
.listing-head .finder { margin-bottom: .2rem; }

/* tighter hero */
.hero { padding: 1.4rem 0 1.6rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: .6rem; }
.hero .lead { font-size: 1rem; margin-bottom: 1rem; }
.hero-popular { margin-top: .75rem; }
.hero-stats { margin-top: 1rem; }

/* promo carousels */
.promo-band { position: relative; overflow: hidden; }
.promo-head { gap: .7rem; margin-bottom: .7rem; flex-wrap: nowrap; }
.promo-title { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-sub { margin: .1rem 0 0; font-size: .78rem; color: var(--muted); display: none; }
@media (min-width: 576px) { .promo-sub { display: block; } .promo-title { font-size: 1.15rem; } }
.promo-badge { flex: none; }
.promo-more { font-size: .85rem; font-weight: 650; text-decoration: none; margin-right: .35rem; white-space: nowrap; }
.rail-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-grid; place-items: center;
  font-size: .85rem; flex: none; transition: background-color .15s, border-color .15s, opacity .15s; }
.rail-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.rail-btn:disabled { opacity: .35; }
.rail-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.promo-premium .promo-badge { background: #7c3aed; color: #fff; }
.promo-deal { background: linear-gradient(135deg, var(--coral-soft), color-mix(in srgb, var(--coral-soft) 35%, var(--surface))); border-color: color-mix(in srgb, var(--coral) 30%, transparent); }
.promo-deal .promo-badge { background: var(--coral); color: #fff; }
.promo-urgent .promo-badge { background: var(--coral); color: #fff; }
.promo-featured .ad-card .media { box-shadow: 0 0 0 2px color-mix(in srgb, var(--sun) 70%, transparent); }
.promo-premium .ad-card .media { box-shadow: 0 0 0 2px color-mix(in srgb, #8b5cf6 55%, transparent); }
[data-bs-theme="dark"] .promo-premium .promo-badge { background: #8b5cf6; }

/* category spotlights: panel + rail */
.spot { display: grid; gap: .8rem; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); padding: .8rem; }
@media (min-width: 992px) { .spot { grid-template-columns: 250px minmax(0, 1fr); padding: 1rem; gap: 1rem; align-items: start; } }
.spot-panel { border-radius: var(--radius-lg); padding: .9rem; display: flex; flex-direction: column; gap: .35rem; background: var(--spot-bg); color: var(--text); }
@media (min-width: 992px) { .spot-panel { min-height: 100%; padding: 1.1rem; } }
.spot-0 { --spot-bg: var(--brand-soft); --spot-ink: var(--brand-strong); }
.spot-1 { --spot-bg: var(--sun-soft); --spot-ink: #8a5a00; }
.spot-2 { --spot-bg: var(--coral-soft); --spot-ink: #b43a26; }
[data-bs-theme="dark"] .spot-1 { --spot-ink: var(--sun); }
[data-bs-theme="dark"] .spot-2 { --spot-ink: var(--coral); }
.spot-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--surface); color: var(--spot-ink); }
.spot-panel h2 { font-size: 1.25rem; margin: .3rem 0 0; font-stretch: 85%; letter-spacing: -.01em; }
.spot-panel p { margin: 0; color: var(--muted); font-size: .8rem; }
.spot-subs { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.spot-subs a { font-size: .76rem; font-weight: 560; padding: .2rem .55rem; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; border: 1px solid transparent; }
.spot-subs a:hover { border-color: var(--spot-ink); color: var(--spot-ink); }
.spot-actions { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .55rem; }
.spot-cta { background: var(--spot-ink); color: var(--surface); border: 0; font-weight: 650; border-radius: 999px; padding: .35rem .85rem; }
.spot-cta:hover { color: var(--surface); filter: brightness(1.08); }
@media (min-width: 992px) { .spot-rail { grid-auto-columns: calc((100% - 3 * .8rem) / 4); } }
@media (min-width: 1400px) { .spot-rail { grid-auto-columns: calc((100% - 4 * .8rem) / 5); } }

/* compact section rhythm */
.section { padding: 1.1rem 0; }
@media (min-width: 992px) { .section { padding: 1.4rem 0; } }
.section-head { margin-bottom: .75rem; }
.section-head h2 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.section-head p { font-size: .85rem; }

/* checkout coupons */
.coupon-line { color: var(--brand); }
.coupon-line .amt, .coupon-line b { color: var(--brand); }
.coupon-box { border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: var(--radius); padding: .7rem .8rem; margin-top: .8rem; background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.coupon-box .toggle { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 650; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.coupon-box .input-group .form-control { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.coupon-box .applied { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.coupon-box .code-tag { font-family: var(--font-display); font-weight: 700; letter-spacing: .05em; background: var(--brand); color: var(--surface); border-radius: 8px; padding: .15rem .55rem; font-size: .85rem; }

.finder-summary { display: none; }
@media (max-width: 991.98px) {
  .finder:not(.finder-hero):not(.is-open) { display: block; padding: 0; border: 0; box-shadow: none; background: none; }
  .finder:not(.finder-hero):not(.is-open) > :not(.finder-summary) { display: none; }
  .finder-summary { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: .55rem .75rem; color: var(--text); font-size: .88rem; font-weight: 560; }
  .finder-summary i { color: var(--brand); }
  .finder-summary b { margin-left: auto; color: var(--brand); font-size: .8rem; flex: none; }
}

/* recently viewed (home) */
.recent-band { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: .7rem .8rem; }
.recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.recent-head h2 { font-size: .95rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .4rem; }
.recent-head h2 i { color: var(--brand); }
.recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: .5rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.recent-row::-webkit-scrollbar { display: none; }
.recent-item { display: flex; align-items: center; gap: .55rem; padding: .35rem; border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--text); scroll-snap-align: start; border: 1px solid transparent; }
.recent-item:hover { border-color: var(--brand); color: var(--text); }
.recent-item img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; background: var(--line); }
.recent-item b { display: block; font-family: var(--font-display); font-size: .92rem; line-height: 1.2; }
.recent-item small { display: block; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* automatic SEO content under listings */
.seo-block { margin-top: 1.6rem; display: grid; gap: .9rem; }
.seo-block h2 { font-size: 1rem; font-weight: 700; margin: 0 0 .45rem; }
.seo-intro, .seo-faq, .seo-links { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1rem; }
.seo-intro p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; max-width: 80ch; }
.seo-faq details { border-top: 1px solid var(--line); padding: .55rem 0; }
.seo-faq details:first-of-type { border-top: 0; }
.seo-faq summary { font-weight: 600; font-size: .9rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: .5rem; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.seo-faq details[open] summary::after { content: "–"; }
.seo-faq details p { margin: .4rem 0 0; color: var(--muted); font-size: .86rem; }
.seo-links > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.seo-links a { font-size: .8rem; padding: .25rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; border: 1px solid transparent; }
.seo-links a:hover { border-color: var(--brand); color: var(--brand); }


/* ===== Round 9 ===== */
/* Checkout: stack QR above fields so nothing is squeezed in the 7/12 column */
.pay-card { min-width: 0; }
.pay-card .head { flex-wrap: wrap; }
.pay-card .btc-amt { font-size: clamp(1.25rem, 4.5vw, 1.75rem); overflow-wrap: anywhere; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; justify-items: stretch; }
.pay-grid .qr-box svg, .pay-grid .qr-box img { width: min(220px, 60vw); height: auto; aspect-ratio: 1; }
.copy-field code { min-width: 0; overflow-wrap: anywhere; }
.copy-field .btn { flex: 0 0 auto; }
@media (min-width: 992px) { .pay-summary { position: sticky; top: 84px; } }

/* Perfect circles: fixed square, no padding, centred glyph, same shape on hover/focus/active, light + dark */
.btn.btn-icon, .btn-icon, .fav-btn, .rail-btn, .gallery .nav-btn, .theme-btn.btn-icon, .circle-btn {
  aspect-ratio: 1 / 1; padding: 0 !important; border-radius: 50% !important; line-height: 1; flex: none;
  display: inline-grid; place-items: center; overflow: hidden; min-width: 0;
}
.btn.btn-icon { width: 2.6rem; height: 2.6rem; }
.fav-btn { display: grid; width: 36px; height: 36px; }
.ad-card .fav-btn { width: 32px; height: 32px; }
.rail-btn { width: 34px; height: 34px; }
.gallery .nav-btn { width: 44px; height: 44px; display: grid; }
.gallery .nav-btn.prev, .gallery .nav-btn:first-of-type { left: .6rem; }
.gallery .nav-btn.next, .gallery .nav-btn:last-of-type { right: .6rem; }
.fav-btn i, .rail-btn i, .gallery .nav-btn i, .btn-icon i { line-height: 1; display: block; pointer-events: none; }
.fav-btn:hover, .fav-btn:focus-visible, .fav-btn:active, .rail-btn:hover, .rail-btn:active, .gallery .nav-btn:hover, .gallery .nav-btn:active, .btn-icon:hover, .btn-icon:active { border-radius: 50% !important; }
.gallery .nav-btn:hover { transform: scale(1.06); background: #fff; color: var(--coral); }
[data-bs-theme="dark"] .fav-btn { background: rgba(21, 33, 28, .88); color: #e9efe9; }
[data-bs-theme="dark"] .fav-btn:hover, [data-bs-theme="dark"] .fav-btn.on { color: var(--coral); background: rgba(21, 33, 28, .98); }
[data-bs-theme="dark"] .gallery .nav-btn { background: rgba(21, 33, 28, .9); color: #e9efe9; }
[data-bs-theme="dark"] .gallery .nav-btn:hover { background: rgba(21, 33, 28, 1); color: var(--coral); }
[data-bs-theme="dark"] .rail-btn:hover:not(:disabled) { background: var(--surface-2); }
.btn-icon.btn-soft:hover, .btn-icon.btn-ghost:hover { background: var(--surface-2); color: var(--brand); }
.avatar, .avatar img { border-radius: 50%; aspect-ratio: 1 / 1; }

/* Dashboard menu in an offcanvas */
.dash-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; position: sticky; top: 56px; z-index: 20; background: var(--bg); padding: .5rem 0; }
.dash-menu-btn { position: relative; display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; flex: none; }
.dash-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--bg); }
.dash-offcanvas { width: min(320px, 88vw); background: var(--surface); }
.dash-offcanvas .dash-nav { display: flex; flex-direction: column; overflow: visible; background: transparent; border: 0; padding: 0; gap: .15rem; }
.dash-offcanvas .dash-nav a { padding: .7rem .85rem; }
.dash-wallet { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .85rem; margin-bottom: .75rem; border-radius: 14px; background: var(--brand-soft); color: var(--text); text-decoration: none; font-size: .9rem; }

/* ===== Welcome credit banner ===== */
.credit-banner { position: relative; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; padding: 1.15rem 1.35rem; border-radius: var(--radius-lg); color: #fff; overflow: hidden;
  background: radial-gradient(circle at 12% 120%, rgba(255, 214, 102, .35) 0 18%, transparent 19%), radial-gradient(circle at 96% -20%, rgba(255, 255, 255, .22) 0 16%, transparent 17%), linear-gradient(115deg, #0f7a5c 0%, #17a37a 48%, #2f6df0 120%);
  box-shadow: 0 12px 30px -14px rgba(15, 122, 92, .75); }
.credit-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#ffffff55 1.2px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(100deg, transparent 40%, #000); opacity: .5; }
.credit-banner > * { position: relative; z-index: 1; }
.credit-banner .cb-gift { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); animation: cbPulse 3.2s ease-in-out infinite; }
.credit-banner .cb-text { flex: 1 1 260px; min-width: 0; }
.credit-banner h2 { font-size: clamp(1.1rem, 2.6vw, 1.45rem); margin: 0 0 .15rem; color: #fff; letter-spacing: -.02em; }
.credit-banner h2 b { background: #ffd666; color: #3b2a00; padding: .02em .38em; border-radius: 8px; }
.credit-banner p { margin: 0; opacity: .92; font-size: .93rem; max-width: 60ch; }
.credit-banner .cb-cta { flex: none; font-weight: 700; text-decoration: none; }
.credit-compact { padding: .8rem 1rem; margin-bottom: 1rem; }
.credit-compact .cb-gift { width: 40px; height: 40px; font-size: 1.15rem; }
.credit-compact h2 { font-size: 1.05rem; } .credit-compact p { font-size: .85rem; }
@keyframes cbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .credit-banner .cb-gift { animation: none; } }
@media (max-width: 575.98px) { .credit-banner .cb-cta { width: 100%; } }

/* Signed-in devices */
.device-list { display: grid; gap: .5rem; }
.device-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2, transparent); }
.device-row .ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }

/* ===== UI polish (round 10) ===== */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ad-card { transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) { .ad-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55); } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ad-card { transition: none; } .ad-card:hover { transform: none; } }
.referral-card .copy-field { display: flex; align-items: center; gap: .5rem; padding: .45rem .55rem .45rem .85rem; border: 1px dashed var(--border); border-radius: 14px; background: var(--surface-2, transparent); }
.referral-card .copy-field code { font-size: .85rem; color: var(--text); background: none; }
.admin-side .item .badge { font-size: .68rem; }
.admin-side .item { display: flex; align-items: center; gap: .55rem; }

/* ===== Round 11 ===== */
.bonus-hint { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 12px; font-size: .88rem; background: linear-gradient(100deg, rgba(255, 214, 102, .22), rgba(23, 163, 122, .14)); border: 1px solid rgba(255, 214, 102, .45); }
.bonus-hint i { color: #e0a800; }
.share-menu .dropdown-menu { min-width: 190px; border-radius: 14px; padding: .35rem; }
.share-menu .dropdown-item { border-radius: 10px; font-size: .9rem; }
.summary-bar small b { color: inherit; }

/* Offcanvas panels (messages, promote) */
.chat-offcanvas { --bs-offcanvas-width: min(440px, 100vw); }
@media (max-width: 991.98px) { .chat-offcanvas { background: var(--surface); } .chat-offcanvas .panel { border: 0; border-radius: 0; box-shadow: none; min-height: calc(100dvh - 64px) !important; } .chat-offcanvas .offcanvas-body { overflow: hidden; } }
.promote-offcanvas { --bs-offcanvas-width: min(440px, 100vw); background: var(--surface); }
.promote-offcanvas .offcanvas-footer { background: var(--surface); }

/* ===== Slow-load overlay ===== */
#slow-loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(8, 14, 12, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
#slow-loader[hidden] { display: none; }
#slow-loader.on { opacity: 1; }
.sl-card { display: grid; justify-items: center; gap: .35rem; padding: 1.4rem 1.8rem; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); max-width: 86vw; text-align: center; }
.sl-title { font-weight: 700; font-size: 1.05rem; }
.sl-sub { color: var(--muted); font-size: .85rem; }
.sl-orbit { position: relative; width: 74px; height: 74px; margin-bottom: .4rem; }
.sl-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; }
.sl-orbit i:nth-child(1) { border-top-color: var(--brand); animation: slSpin 1s linear infinite; }
.sl-orbit i:nth-child(2) { inset: 9px; border-right-color: var(--coral, #ff6b57); animation: slSpin 1.4s linear infinite reverse; }
.sl-orbit i:nth-child(3) { inset: 18px; border-bottom-color: #ffd666; animation: slSpin 1.9s linear infinite; }
.sl-orbit b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.15rem; color: var(--brand); animation: slPulse 1.6s ease-in-out infinite; }
@keyframes slSpin { to { transform: rotate(360deg); } }
@keyframes slPulse { 50% { transform: scale(.82); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .sl-orbit i, .sl-orbit b { animation-duration: 3s; } }

/* header: labelled actions */
.acct-btn { padding: 3px 10px 3px 3px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.acct-name { font-weight: 600; font-size: .9rem; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sell { padding: .4rem .8rem; font-size: .9rem; white-space: nowrap; }
@media (max-width: 575.98px) { .btn-sell { padding: .35rem .65rem; } .hdr-actions { gap: .15rem; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .nav-link-pill { padding: .5rem .6rem; font-size: .88rem; } }

/* ===== Credit banner v2: compact, single row ===== */
.credit-banner { flex-wrap: nowrap; gap: .8rem; padding: .7rem .9rem .7rem .8rem; border-radius: 16px; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.credit-banner .cb-gift { width: 38px; height: 38px; font-size: 1.1rem; }
.credit-banner .cb-text { flex: 1 1 auto; }
.credit-banner h2 { font-size: clamp(.95rem, 2.2vw, 1.12rem); margin: 0; line-height: 1.25; }
.credit-banner h2 b { padding: 0 .3em; border-radius: 6px; }
.credit-banner p { font-size: .82rem; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-banner .cb-cta { padding: .38rem .85rem; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.credit-compact { padding: .55rem .7rem; }
.credit-compact p { display: none; }
@media (max-width: 575.98px) {
  .credit-banner { gap: .6rem; padding: .6rem .65rem; }
  .credit-banner .cb-gift { width: 34px; height: 34px; font-size: 1rem; }
  .credit-banner p { display: none; }
  .credit-banner .cb-cta { width: auto; padding: .35rem .7rem; font-size: .8rem; }
}

/* ===== Responsive guards (all pages) ===== */
html, body { max-width: 100%; overflow-x: clip; }
img, video, svg, canvas, iframe { max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, .ad-title, .text-break-any { overflow-wrap: anywhere; }
.container-xl, .container { padding-inline: max(.9rem, env(safe-area-inset-left)); }
.modal-dialog { margin: .75rem auto; }
.offcanvas { max-width: 100vw; }
.swal2-popup { max-width: 94vw; }
.btn-group, .hdr-actions { flex-wrap: nowrap; }
.form-control, .form-select { min-width: 0; }
@media (max-width: 575.98px) {
  h1, .h1 { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }
  .card-body, .panel { padding: .9rem; }
  .btn-lg { padding: .6rem 1rem; font-size: 1rem; }
  .d-flex.gap-3.flex-nowrap-sm { flex-wrap: wrap; }
  [style*="min-width:220px"], [style*="min-width:150px"] { min-width: 0 !important; width: 100%; }
}
@media (max-width: 360px) { .hdr-actions .theme-btn { display: none; } .acct-btn { padding-right: 3px; } }

#to-top { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 1030; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 8px 22px -10px rgba(0,0,0,.6); display: grid; place-items: center; }
#to-top[hidden] { display: none; }
@media (min-width: 992px) { #to-top { bottom: 24px; right: 24px; } }
#offline-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 2100; padding: .5rem 1rem; text-align: center; background: #b42318; color: #fff; font-size: .88rem; }
#offline-bar[hidden] { display: none; }

/* ===== My ads: labelled actions ===== */
.labelled-actions { gap: .35rem !important; }
.labelled-actions .btn { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; font-size: .82rem; white-space: nowrap; }
.labelled-actions .btn span { display: inline; }
@media (min-width: 992px) { .rows.cols-ads .row-item, .rows.cols-ads .row-head { grid-template-columns: 64px minmax(0, 2.4fr) .9fr .7fr .9fr minmax(0, 2.6fr); } .labelled-actions { max-width: 420px; margin-left: auto; } }
@media (max-width: 575.98px) { .labelled-actions { justify-content: flex-start !important; } .labelled-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ===== Spacing: credit banner and wallet chips ===== */
.credit-banner { margin: 0 0 1.1rem; }
.container-xl > .credit-banner:first-child, .dash-content > .credit-banner:first-child { margin-top: .25rem; }
.dash-wallet { margin: 0 0 .9rem; }
.dash-wallet b { white-space: nowrap; }
.credit-banner .cb-text { padding-right: .25rem; }
@media (max-width: 575.98px) { .credit-banner { margin-bottom: .9rem; } .dash-wallet { margin-bottom: .75rem; padding: .65rem .8rem; } }

/* ===== Verified badge ===== */
.verified-badge { display: inline-flex; align-items: center; gap: .2rem; margin-left: .35rem; padding: .08rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 700; vertical-align: middle; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }

/* ===== Trust & Safety ===== */
.safety-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .safety-grid { grid-template-columns: 1fr 1fr; } }
.safety-tile { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.safety-tile:hover { border-color: var(--brand); color: var(--text); transform: translateY(-1px); }
.safety-tile .st-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--brand-soft); color: var(--brand); }
.safety-tile.is-urgent .st-ico { background: #fde8e6; color: #b42318; }
.safety-tile small { font-size: .82rem; }
.safety-emergency { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 14px; background: #fde8e6; color: #7a1a12; font-size: .9rem; }
.safety-emergency i { margin-top: .15rem; }
.safety-emergency a { color: inherit; font-weight: 700; }
:root[data-theme="dark"] .safety-emergency, :root:not([data-theme="light"]) .safety-emergency { background: #3a1613; color: #ffd7d2; }
.safety-form .invalid-msg { color: #d92d20; font-size: .82rem; margin-top: .25rem; }

/* ===== Entry confirmation gate ===== */
.site-gate { position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; padding: 1rem; background: rgba(6, 12, 10, .82); backdrop-filter: blur(8px); }
.site-gate[hidden] { display: none; }
html.gate-open { overflow: hidden; }
.gate-card { width: min(440px, 100%); padding: 1.6rem 1.4rem 1.3rem; border-radius: 24px; text-align: center; background: var(--surface); color: var(--text); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--border); }
.gate-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 1.6rem; background: var(--brand-soft); color: var(--brand); margin-bottom: .6rem; }
.gate-card h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.gate-card p { color: var(--muted); font-size: .93rem; margin: 0 0 1.1rem; }
.gate-actions { display: grid; gap: .5rem; }
.admin-photo-del { position: absolute; top: .6rem; right: .6rem; z-index: 5; }
