:root {
  color-scheme: dark;
  --page: #000b1e;
  --surface: #061428;
  --surface-2: #0a1c36;
  --surface-3: #102748;
  --line: rgba(0, 191, 255, .14);
  --line-strong: rgba(0, 191, 255, .28);
  --text: #e8f4ff;
  --muted: #7f9bb8;
  --soft: #b6d0e8;
  --green: #a6ff00;
  --green-strong: #ccff00;
  --mint: #00bfff;
  --cyan: #00bfff;
  --orange: #ff8000;
  --danger: #ff5a6a;
  --shadow: 0 24px 80px rgba(0, 8, 24, .55);
  --radius-xl: 28px;
  --radius-lg: 21px;
  --radius-md: 15px;
  font-family: "Segoe UI", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -6%, rgba(0, 191, 255, .16), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(166, 255, 0, .10), transparent 28rem),
    radial-gradient(circle at 70% 90%, rgba(255, 128, 0, .07), transparent 24rem),
    var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #10200f;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 11, 30, .9);
  backdrop-filter: blur(22px) saturate(145%);
}

.header-inner,
.page-shell {
  width: min(1540px, calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 9px 25px rgba(0,0,0,.35);
}
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 21px; letter-spacing: -.04em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 12px; }

.view-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.view-tab {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.view-tab:hover { color: var(--text); }
.view-tab.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.view-tab span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--soft);
  font-size: 11px;
}

.live-state {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 208px;
}
.live-state > span:last-child { display: grid; width: 180px; line-height: 1.1; }
.live-state b { font-size: 13px; }
.live-state small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(167, 233, 66, .09), 0 0 20px rgba(167, 233, 66, .35);
}
.is-working .live-dot { background: var(--mint); animation: pulse 1.6s infinite; }
.is-offline .live-dot { background: var(--orange); box-shadow: 0 0 0 5px rgba(255,136,91,.1); }
@keyframes pulse { 50% { transform: scale(.75); opacity: .7; } }

.page-shell { padding: 48px 0 30px; }
.hero {
  min-height: 194px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding: 6px 5px 42px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.065em;
}
.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}
.hero-metrics {
  display: flex;
  gap: 10px;
  margin: 0;
}
.hero-metrics div {
  min-width: 126px;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
}
.hero-metrics dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-metrics dd { margin: 9px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }

.search-strip {
  position: sticky;
  z-index: 40;
  top: 94px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 25, 22, .93);
  box-shadow: 0 16px 45px rgba(0,0,0,.21);
  backdrop-filter: blur(18px);
}
.search-field,
.sort-field {
  min-height: 54px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--surface-3);
}
.search-field:focus-within,
.sort-field:focus-within { border-color: rgba(167, 233, 66, .45); box-shadow: 0 0 0 3px rgba(167,233,66,.08); }
.search-field > span {
  width: 17px;
  height: 17px;
  margin-left: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
}
.search-field > span::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; border-radius: 2px; background: var(--muted); transform: rotate(45deg); }
.search-field input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.search-field input::placeholder { color: #74847e; }
.sort-field { padding: 0 15px; gap: 8px; }
.sort-field span { color: var(--muted); font-size: 12px; }
.sort-field select {
  height: 50px;
  border: 0;
  outline: 0;
  background: var(--surface-3);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.filter-toggle {
  min-width: 120px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-2);
  cursor: pointer;
  font-weight: 750;
}
.filter-toggle:hover { border-color: rgba(167,233,66,.34); background: var(--surface-3); }
.filter-toggle span { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; place-items: center; border-radius: 99px; background: var(--green); color: #11200e; font-size: 11px; }

@media (min-width: 761px) {
  .search-strip { grid-template-columns: minmax(280px, 1fr) auto; }
  .filter-toggle { display: none; }
}

.filters {
  display: grid;
  grid-template-columns: minmax(390px, 1.6fr) minmax(250px, .72fr) minmax(250px, .72fr) minmax(210px, .55fr);
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.filters-heading,
.filter-actions { display: none; }
.filter-block {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}
.filter-block:last-of-type { border-right: 0; }
.filter-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.filter-title b { font-size: 13px; }
.filter-title span { color: var(--muted); font-size: 10px; }
.category-options { display: flex; flex-wrap: wrap; gap: 7px; }
.category-option { position: relative; display: flex; align-items: center; cursor: pointer; }
.category-option input { position: absolute; opacity: 0; pointer-events: none; }
.category-check { display: none; }
.category-name {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--soft);
  font-size: 12px;
  font-weight: 680;
  transition: .15s ease;
}
.category-option small {
  min-width: 18px;
  margin-left: -9px;
  margin-right: 7px;
  color: var(--muted);
  font-size: 9px;
  pointer-events: none;
}
.category-option:hover .category-name { border-color: var(--line-strong); color: var(--text); }
.category-option input:checked + .category-check + .category-name { border-color: rgba(167,233,66,.5); background: rgba(167,233,66,.13); color: var(--green-strong); }
.category-option input:focus-visible + .category-check + .category-name { outline: 2px solid var(--green); outline-offset: 2px; }

.price-range { display: flex; align-items: center; gap: 9px; }
.price-range label {
  min-width: 0;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.price-range label:focus-within { border-color: rgba(167,233,66,.45); }
.price-range label span { color: var(--muted); font-size: 11px; }
.price-range input { width: 100%; min-width: 0; height: 42px; padding: 0 0 0 8px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; }
.price-range i { width: 8px; height: 1px; flex: 0 0 auto; background: var(--muted); }
.region-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--surface-2);
  color: var(--text);
}
.region-field input:focus { border-color: rgba(167,233,66,.45); }
.region-field input::placeholder { color: #708078; }
.delivery-block { display: flex; align-items: center; }
.toggle-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-control { position: relative; width: 48px; height: 28px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface-3); transition: .18s; }
.toggle-control::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #81938c; transition: .18s; }
.toggle-row input:checked + .toggle-control { border-color: var(--green); background: rgba(167,233,66,.18); }
.toggle-row input:checked + .toggle-control::after { transform: translateX(20px); background: var(--green); }
.toggle-row input:focus-visible + .toggle-control { outline: 2px solid var(--green); outline-offset: 3px; }
.toggle-row > span:last-child { display: grid; }
.toggle-row b { font-size: 13px; }
.toggle-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.filters-backdrop { display: none; }

.results { padding-top: 46px; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.results-head h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }
.results-head > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }

.new-items-banner {
  position: fixed;
  z-index: 46;
  top: 176px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 20px);
  min-height: 48px;
  margin: 0;
  padding: 0 8px 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(167,233,66,.34);
  border-radius: 999px;
  background: rgba(17,37,30,.96);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}
.new-items-banner b { padding: 8px 13px; border-radius: 99px; background: var(--green); color: #13210f; font-size: 12px; }
.system-notice { margin: 0 0 18px; padding: 14px 17px; border: 1px solid rgba(255,136,91,.25); border-radius: 13px; background: rgba(255,136,91,.08); color: #ffd3c3; font-size: 13px; }

.items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.listing-card,
.card-skeleton {
  min-width: 0;
  min-height: 625px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
}
.listing-card {
  display: grid;
  grid-template-rows: auto 1fr;
  contain: layout paint;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.listing-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #101916;
  cursor: zoom-in;
}
.card-media img { width: 100%; height: 100%; display: block; object-fit: cover; background: #111b18; transition: transform .35s ease; }
.listing-card:hover .card-media img { transform: scale(1.025); }
.photo-count,
.delivery-badge {
  position: absolute;
  bottom: 13px;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(5,12,10,.76);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 750;
}
.photo-count { right: 13px; }
.delivery-badge { left: 13px; background: rgba(128,188,40,.88); color: #0d190b; border-color: transparent; }
.card-body { min-height: 310px; display: flex; flex-direction: column; padding: 21px 22px 19px; }
.card-meta-top { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.category-label { color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favorite-button,
.modal-favorite {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--soft);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}
.favorite-button:hover,
.is-favorite .favorite-button,
.modal-favorite.is-active { border-color: rgba(255,136,91,.38); color: var(--orange); background: rgba(255,136,91,.08); }
.card-title {
  display: -webkit-box;
  min-height: 57px;
  margin: 9px 0 5px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 790;
  line-height: 1.18;
  letter-spacing: -.032em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.card-title-heading { margin: 0; font: inherit; }
.card-title:hover { color: var(--green-strong); }
.card-price { min-height: 41px; font-size: clamp(25px, 2vw, 32px); font-weight: 850; letter-spacing: -.05em; }
.card-snippet {
  display: -webkit-box;
  min-height: 58px;
  margin: 10px 0 15px;
  overflow: hidden;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.card-facts { min-height: 42px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card-location { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-facts time { color: var(--soft); white-space: nowrap; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 17px; }
.card-actions button,
.card-actions a {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--soft);
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.card-actions button:hover { border-color: rgba(167,233,66,.35); color: var(--green-strong); }
.card-actions a { border-color: transparent; background: var(--green); color: #11200e; }
.card-actions a:hover { background: var(--green-strong); }
.card-actions a span { margin-left: 5px; }

.card-skeleton { position: relative; background: linear-gradient(100deg, var(--surface) 20%, var(--surface-2) 43%, var(--surface) 66%); background-size: 300% 100%; animation: shimmer 1.35s infinite; }
.card-skeleton::before { content: ""; display: block; aspect-ratio: 4/3; background: rgba(255,255,255,.025); }
@keyframes shimmer { to { background-position: -150% 0; } }
.image-unavailable img { opacity: .35; }

.empty-state { max-width: 600px; margin: 75px auto; text-align: center; }
.empty-state h2 { margin: 24px 0 8px; font-size: 29px; letter-spacing: -.04em; }
.empty-state p { margin: 0 auto; color: var(--muted); line-height: 1.6; }
.empty-state button { min-height: 45px; margin-top: 24px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); cursor: pointer; font-weight: 700; }
.empty-radar { position: relative; width: 84px; height: 84px; margin: auto; border: 1px solid rgba(53,217,183,.35); border-radius: 50%; box-shadow: inset 0 0 0 14px rgba(53,217,183,.04), inset 0 0 0 28px rgba(53,217,183,.035); }
.empty-radar::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: conic-gradient(from 5deg, rgba(167,233,66,.5), transparent 25%); }
.empty-radar i { position: absolute; z-index: 1; top: 39px; left: 39px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.page-sentinel { height: 80px; display: grid; place-items: center; }
.page-sentinel span { width: 24px; height: 24px; border: 2px solid transparent; border-top-color: var(--mint); border-radius: 50%; opacity: 0; }
.page-sentinel.is-loading span { opacity: 1; animation: spin .7s linear infinite; }
.items-grid.is-refreshing { opacity: .55; transition: opacity .16s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding: 28px 5px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,7,6,.82); backdrop-filter: blur(16px); }
.modal-panel {
  position: relative;
  width: min(1220px, 100%);
  max-height: calc(100vh - 52px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  overflow: auto;
  background: #0b1613;
  box-shadow: 0 35px 110px rgba(0,0,0,.65);
}
.modal-close {
  position: sticky;
  z-index: 8;
  top: 13px;
  float: right;
  width: 45px;
  height: 45px;
  margin: 13px 13px -58px 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background: rgba(5,11,9,.78);
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-size: 24px;
}
.modal-gallery-wrap { position: relative; clear: both; }
.modal-gallery { display: flex; overflow: auto hidden; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; background: #08100e; }
.modal-gallery::-webkit-scrollbar { display: none; }
.modal-gallery figure { min-width: 100%; height: min(66vh, 680px); margin: 0; display: grid; place-items: center; scroll-snap-align: center; }
.modal-gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; z-index: 3; top: 50%; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(5,12,10,.72); cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(10px); font-size: 32px; }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.gallery-counter { position: absolute; z-index: 3; right: 18px; bottom: 16px; padding: 8px 12px; border-radius: 99px; background: rgba(5,12,10,.78); font-size: 11px; }
.modal-details { padding: clamp(25px, 4vw, 54px); }
.modal-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--mint); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.modal-kicker b { padding: 7px 10px; border-radius: 99px; background: rgba(167,233,66,.13); color: var(--green-strong); font-size: 10px; }
.modal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 13px; }
.modal-title-row h2 { max-width: 900px; margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.055em; }
.modal-favorite { width: 48px; height: 48px; font-size: 26px; }
.modal-price { margin-top: 17px; font-size: clamp(34px, 4vw, 52px); font-weight: 850; letter-spacing: -.055em; }
.modal-place-time { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; color: var(--soft); font-size: 14px; }
.modal-place-time time { color: var(--muted); }
.avito-button { min-height: 52px; width: max-content; display: inline-flex; align-items: center; margin-top: 25px; padding: 0 21px; border-radius: 13px; background: var(--green); color: #12200f; text-decoration: none; font-weight: 800; }
.avito-button:hover { background: var(--green-strong); }
.avito-button span { margin-left: 8px; }
.modal-section { max-width: 950px; margin-top: 44px; }
.modal-section h3 { margin: 0 0 15px; font-size: 24px; letter-spacing: -.035em; }
.full-description { margin: 0; color: #d9e4df; font-size: 17px; line-height: 1.72; white-space: pre-line; overflow-wrap: anywhere; }
.parameter-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.parameter-grid div { min-width: 0; display: grid; grid-template-columns: minmax(110px,.8fr) minmax(0,1.2fr); gap: 14px; padding: 15px 17px; background: var(--surface-2); }
.parameter-grid dt { color: var(--muted); font-size: 12px; }
.parameter-grid dd { margin: 0; color: var(--text); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.seller-line { max-width: 950px; margin-top: 28px; display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.seller-line span { color: var(--muted); font-size: 12px; }
.seller-line small { margin-left: auto; color: var(--green); }
.modal-loading,
.modal-error { min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px; text-align: center; }
.modal-loading span { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
.modal-error h2 { margin: 0; }
.modal-error p { max-width: 520px; margin: 0; color: var(--muted); }
.modal-error a { padding: 13px 18px; border-radius: 12px; background: var(--green); color: #11200e; text-decoration: none; font-weight: 800; }
.modal-open { overflow: hidden; }

.toast { position: fixed; z-index: 150; right: 24px; bottom: 24px; max-width: 380px; padding: 14px 17px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-3); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s; }
.toast.is-visible { opacity: 1; transform: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.favorites-view .filters,
.favorites-view .filter-toggle,
.favorites-view .sort-field,
.favorites-view .search-field { display: none; }
.favorites-view .search-strip { display: none; }
.favorites-view .hero { min-height: 150px; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .view-tabs { order: 3; grid-column: 1 / -1; justify-self: center; margin-top: -13px; transform: translateY(12px); }
  .live-state { grid-column: 2; }
  .site-header { padding-bottom: 12px; }
  .page-shell { padding-top: 56px; }
  .search-strip { top: 134px; }
  .hero { grid-template-columns: 1fr; }
  .hero-metrics { width: 100%; }
  .hero-metrics div { flex: 1; }
  .filters { grid-template-columns: 1.35fr 1fr 1fr; }
  .category-block { grid-row: span 2; }
  .delivery-block { border-top: 1px solid var(--line); }
  .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner,
  .page-shell { width: min(100% - 24px, 1540px); }
  .site-header { position: static; padding-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-inner { min-height: 72px; display: flex; justify-content: space-between; gap: 10px; }
  .brand img { width: 46px; height: 46px; border-radius: 14px; }
  .brand strong { font-size: 19px; }
  .brand small { display: none; }
  .live-state small { display: none; }
  .live-state { width: 145px; }
  .live-state > span:last-child { width: 120px; }
  .view-tabs { position: fixed; z-index: 60; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; order: initial; grid-column: auto; justify-content: stretch; margin: 0; padding: 6px; transform: none; background: rgba(13,25,22,.94); box-shadow: 0 15px 50px rgba(0,0,0,.55); backdrop-filter: blur(18px); }
  .view-tab { flex: 1; }
  .page-shell { padding-top: 28px; padding-bottom: 90px; }
  .hero { min-height: 0; display: block; padding: 6px 2px 28px; }
  .hero h1 { font-size: 40px; }
  .hero-copy { margin-top: 15px; font-size: 15px; }
  .hero-metrics { margin-top: 24px; gap: 7px; }
  .hero-metrics div { min-width: 0; padding: 13px 11px; }
  .hero-metrics dt { font-size: 8px; }
  .hero-metrics dd { margin-top: 6px; font-size: 17px; }
  .search-strip { top: 8px; grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 7px; border-radius: 17px; }
  .search-field { min-width: 0; }
  .search-field input { font-size: 14px; }
  .filter-toggle { min-width: 94px; }
  .sort-field { grid-column: 1 / -1; justify-content: space-between; min-height: 46px; }
  .sort-field select { flex: 1; height: 44px; text-align: right; }
  .filters {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 90vh;
    display: block;
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: 24px 24px 0 0;
    overflow: auto;
    background: #0b1714;
    box-shadow: 0 -24px 80px rgba(0,0,0,.55);
    transform: translateY(105%);
    transition: transform .24s ease;
    overscroll-behavior: contain;
  }
  .filters-open { overflow: hidden; }
  .filters-open .filters { transform: translateY(0); }
  .filters-heading { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 15px; border-bottom: 1px solid var(--line); background: rgba(11,23,20,.94); backdrop-filter: blur(16px); }
  .filters-heading .eyebrow { margin-bottom: 5px; }
  .filters-heading h2 { margin: 0; }
  .filters-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); font-size: 25px; }
  .filter-block { padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-options { display: grid; grid-template-columns: 1fr 1fr; }
  .category-name { width: 100%; min-height: 43px; border-radius: 12px; padding-right: 30px; }
  .category-option small { position: absolute; right: 7px; margin: 0; }
  .filter-title span { display: none; }
  .filter-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; padding: 13px 20px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(11,23,20,.95); backdrop-filter: blur(16px); }
  .filter-actions button { min-height: 48px; border-radius: 12px; font-weight: 750; }
  .reset-button { border: 1px solid var(--line); background: var(--surface-2); }
  .apply-button { border: 0; background: var(--green); color: #12200f; }
  .filters-backdrop { position: fixed; z-index: 80; inset: 0; display: block; background: rgba(2,7,6,.72); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .filters-open .filters-backdrop { opacity: 1; pointer-events: auto; }
  .results { padding-top: 34px; }
  .results-head { display: block; margin-bottom: 16px; }
  .results-head h2 { font-size: 31px; }
  .results-head > p { margin-top: 8px; }
  .new-items-banner { top: 15px; }
  .items-grid { grid-template-columns: 1fr; gap: 16px; }
  .listing-card,
  .card-skeleton { min-height: 595px; border-radius: 22px; }
  .card-body { padding: 18px; }
  .card-title { font-size: 22px; }
  .card-price { font-size: 30px; }
  .card-snippet { font-size: 14px; }
  .site-footer { display: grid; margin-top: 28px; padding-bottom: 18px; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { width: 100%; max-height: 96vh; border-radius: 24px 24px 0 0; }
  .modal-gallery figure { height: min(52vh, 480px); }
  .gallery-arrow { display: grid; width: 42px; height: 42px; place-items: center; }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }
  .modal-details { padding: 25px 19px calc(30px + env(safe-area-inset-bottom)); }
  .modal-title-row h2 { font-size: 33px; }
  .modal-price { font-size: 38px; }
  .full-description { font-size: 16px; }
  .parameter-grid { grid-template-columns: 1fr; }
  .parameter-grid div { grid-template-columns: minmax(100px,.8fr) minmax(0,1.2fr); }
  .avito-button { width: 100%; justify-content: center; }
}

/* Cohesive navigation, predictable stacking and crawlable discovery hub. */
.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.telegram-header-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(0, 191, 255, .18);
  border-radius: 11px;
  background: rgba(0, 191, 255, .055);
  color: var(--mint);
  text-decoration: none;
  font-size: 12px;
}
.telegram-header-link:hover { border-color: rgba(0, 191, 255, .42); background: rgba(0, 191, 255, .1); color: #7ddfff; }
.telegram-header-link span { font-size: 15px; line-height: 1; }

.view-tabs {
  width: 286px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.view-tab {
  width: 100%;
  min-width: 0;
  justify-content: center;
  border: 1px solid transparent;
}
.view-tab.is-active {
  border-color: rgba(215, 239, 228, .09);
  background: linear-gradient(145deg, rgba(34, 57, 49, .98), rgba(24, 43, 36, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 5px 15px rgba(0, 0, 0, .15);
}

.discovery { position: relative; z-index: 4; overflow: visible; }
.search-strip { position: relative; z-index: 8; overflow: visible; }
.category-rail-wrap { z-index: 2; }
.sort-field.is-open { z-index: 120; }
.sort-menu { z-index: 140; }
.filters-open .discovery { z-index: 1; }

.search-field { padding-right: 7px; }
.search-clear {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .055);
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.search-clear:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.search-clear:focus-visible { outline-offset: 1px; }

.category-rail { align-items: stretch; gap: 6px; }
.category-nav-button {
  min-width: 198px;
  flex: 0 0 198px;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, .012);
  text-align: left;
  scroll-snap-align: start;
}
.category-nav-button[data-category=""] { min-width: 126px; flex-basis: 126px; justify-content: center; }
.category-nav-button:hover { border-color: rgba(215, 239, 228, .08); }
.category-nav-button.is-active {
  border-color: rgba(166, 255, 0, .28);
  background: linear-gradient(145deg, rgba(166, 255, 0, .13), rgba(166, 255, 0, .075));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.category-nav-button small { margin-left: auto; }

.seo-hub {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(480px, 1.3fr);
  gap: 26px 38px;
  margin-top: 70px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 33, 27, .88), rgba(8, 20, 16, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.seo-hub-copy h2 { max-width: 540px; margin: 0; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.03; letter-spacing: -.045em; }
.seo-hub-copy > p:last-child { max-width: 600px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.seo-topic-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.seo-topic-links a {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 15px;
  border: 1px solid rgba(215, 239, 228, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .018);
  text-decoration: none;
}
.seo-topic-links a:hover { border-color: rgba(166, 255, 0, .3); background: rgba(166, 255, 0, .055); transform: translateY(-1px); }
.seo-topic-links b { font-size: 13px; }
.seo-topic-links span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.seo-faq { display: grid; align-content: start; gap: 7px; }
.seo-faq details { border: 1px solid rgba(215, 239, 228, .085); border-radius: 12px; background: rgba(255, 255, 255, .015); }
.seo-faq summary { padding: 13px 15px; cursor: pointer; color: var(--soft); font-size: 12px; font-weight: 700; }
.seo-faq p { margin: 0; padding: 0 15px 15px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.telegram-cta {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border: 1px solid rgba(0, 191, 255, .22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 191, 255, .12), rgba(0, 191, 255, .055));
  color: var(--mint);
  text-decoration: none;
}
.telegram-cta:hover { border-color: rgba(0, 191, 255, .48); background: rgba(0, 191, 255, .13); }
.telegram-cta span { font-size: 11px; }
.telegram-cta b { text-align: right; font-size: 13px; }
.site-footer > a { color: var(--mint); font-size: 11px; font-weight: 700; text-decoration: none; }
.site-footer > a:hover { color: #7ddfff; }

@media (max-width: 1180px) {
  .telegram-header-link b { display: none; }
  .telegram-header-link { width: 38px; padding: 0; justify-content: center; }
  .live-state { width: auto; }
  .seo-hub { grid-template-columns: 1fr; }
  .seo-hub-copy { max-width: 760px; }
}

@media (max-width: 760px) {
  .header-actions { margin-left: auto; gap: 10px; }
  .telegram-header-link { min-height: 36px; }
  .view-tabs { width: auto; }
  .search-field kbd { display: none; }
  .category-nav-button,
  .category-nav-button[data-category=""] { min-width: 205px; flex-basis: 205px; justify-content: space-between; }
  .seo-hub { margin-top: 48px; padding: 22px 16px; border-radius: 20px; }
  .seo-topic-links { grid-template-columns: 1fr; }
  .seo-faq { display: block; }
  .seo-faq details + details { margin-top: 7px; }
  .telegram-cta { display: grid; justify-content: stretch; }
  .telegram-cta b { text-align: left; }
  .site-footer { flex-wrap: wrap; gap: 12px; }
  .site-footer > a { width: 100%; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 35px; }
  .hero-metrics div:nth-child(2) { display: none; }
  .category-options { grid-template-columns: 1fr; }
  .card-facts { grid-template-columns: 1fr; }
  .card-actions { grid-template-columns: 1fr; }
  .listing-card, .card-skeleton { min-height: 640px; }
}

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

/* Premium application shell ------------------------------------------------ */
:root {
  --page: #000b1e;
  --surface: #061428;
  --surface-2: #0a1c36;
  --surface-3: #102748;
  --line: rgba(0, 191, 255, .14);
  --line-strong: rgba(0, 191, 255, .28);
  --text: #e8f4ff;
  --muted: #7f9bb8;
  --soft: #b6d0e8;
  --green: #a6ff00;
  --green-strong: #ccff00;
  --mint: #00bfff;
  --cyan: #00bfff;
  --orange: #ff8000;
}

body {
  background:
    radial-gradient(circle at 12% -6%, rgba(0, 191, 255, .16), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(166, 255, 0, .10), transparent 28rem),
    radial-gradient(circle at 70% 90%, rgba(255, 128, 0, .07), transparent 24rem),
    var(--page);
}

button,
select,
input { border-radius: 0; }

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.site-header {
  height: 72px;
  border-bottom-color: rgba(0, 191, 255, .14);
  background: rgba(0, 11, 30, .9);
  box-shadow: 0 8px 35px rgba(0, 8, 24, .35);
  backdrop-filter: blur(24px) saturate(140%);
}

.header-inner,
.page-shell { width: min(1450px, calc(100% - 56px)); }

.header-inner {
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
}

.brand { gap: 11px; }
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .28);
}
.brand strong { font-size: 20px; font-weight: 830; letter-spacing: -.045em; }
.brand small { margin-top: 4px; font-size: 10px; letter-spacing: .035em; }

.view-tabs {
  height: 44px;
  padding: 4px;
  border-color: rgba(221, 241, 232, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}
.view-tab {
  min-height: 34px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 720;
}
.view-tab.is-active { background: #1a2b26; box-shadow: 0 1px 8px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(255, 255, 255, .035); }
.view-tab b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  color: var(--soft);
  font-size: 10px;
}
.view-tab .tab-icon {
  position: relative;
  width: 14px;
  min-width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}
.tab-icon-feed::before,
.tab-icon-feed::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 5px currentColor;
}
.tab-icon-feed::before { top: 1px; }
.tab-icon-favorite::before { content: "♡"; position: absolute; inset: -5px 0 0; font-size: 19px; line-height: 1; }

.live-state { width: auto; min-width: 190px; gap: 10px; }
.live-state > span:last-child { width: auto; min-width: 160px; }
.live-state b { font-size: 12px; }
.live-state small { margin-top: 3px; font-size: 10px; }
.live-dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(166, 255, 0, .09), 0 0 18px rgba(166, 255, 0, .28); }

.page-shell { padding: 38px 0 34px; }
.hero {
  min-height: 236px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  padding: 12px 2px 39px;
}
.hero-copy-block { min-width: 0; }
.eyebrow { color: var(--mint); font-size: 10px; letter-spacing: .18em; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; }
.hero .eyebrow span { width: 21px; height: 1px; background: var(--mint); box-shadow: 7px 0 14px rgba(83, 217, 189, .55); }
.hero h1 {
  max-width: 890px;
  font-size: clamp(39px, 4.25vw, 64px);
  line-height: 1.01;
  letter-spacing: -.06em;
}
.hero h1 em { color: #acbbb5; font-style: normal; font-weight: 610; }
.hero-copy { max-width: 690px; margin-top: 17px; color: #aebdb7; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.55; }
.hero-metrics {
  width: min(100%, 440px);
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 8px;
}
.hero-metrics div {
  min-width: 0;
  padding: 16px 17px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
}
.hero-metrics .metric-freshness { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-metrics dt { font-size: 9px; letter-spacing: .1em; }
.hero-metrics dd { margin-top: 7px; font-size: 23px; font-variant-numeric: tabular-nums; }
.hero-metrics .metric-freshness dd { margin: 0; color: var(--soft); font-size: 14px; letter-spacing: -.02em; }

.discovery {
  position: relative;
  z-index: 34;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(18, 32, 28, .96), rgba(13, 24, 21, .96));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .16);
}
.search-strip {
  position: relative;
  z-index: 1;
  top: auto;
  grid-template-columns: minmax(260px, 1fr) auto minmax(215px, auto);
  gap: 8px;
  padding: 9px;
  border: 0;
  border-radius: 21px 21px 0 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.search-field,
.sort-field {
  min-height: 52px;
  border-color: rgba(221, 241, 232, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
}
.search-field:focus-within,
.sort-field:focus-within { border-color: rgba(166, 255, 0, .38); background: rgba(255, 255, 255, .047); }
.search-field > span { width: 16px; height: 16px; margin-left: 17px; border-width: 1.7px; }
.search-field input { height: 50px; font-size: 15px; }
.search-field kbd {
  margin-right: 12px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #73847d;
  background: rgba(0, 0, 0, .12);
  font-family: inherit;
  font-size: 9px;
  white-space: nowrap;
}
.sort-field { padding: 0 12px 0 15px; }
.sort-field span { font-size: 10px; }
.sort-field select { height: 48px; background: transparent; font-size: 12px; }
.filter-toggle {
  min-width: 122px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
}
.filter-toggle:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .055); }
.filter-toggle i { position: relative; width: 15px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.filter-toggle i::before { content: ""; position: absolute; top: 4px; right: 2px; left: 2px; border-top: 1.5px solid currentColor; }
.filter-toggle i::after { content: ""; position: absolute; top: -3px; left: 3px; width: 3px; height: 3px; border: 1.5px solid currentColor; border-radius: 50%; background: var(--surface-2); box-shadow: 6px 6px 0 -1px var(--surface-2), 6px 6px 0 .5px currentColor; }
.filter-toggle .filter-toggle-label { display: inline; min-width: 0; height: auto; margin: 0; border-radius: 0; background: transparent; color: inherit; font-size: inherit; }
.filter-toggle b {
  min-width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  background: var(--green);
  color: #10200f;
  font-size: 10px;
}

.category-rail-wrap {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 7px 10px 10px 18px;
  border-top: 1px solid rgba(221, 241, 232, .07);
}
.category-rail-label { display: grid; gap: 2px; white-space: nowrap; }
.category-rail-label span { color: var(--soft); font-size: 11px; font-weight: 760; }
.category-rail-label small { color: var(--muted); font-size: 8px; }
.category-rail {
  min-width: 0;
  display: flex;
  gap: 6px;
  padding: 2px 2px 3px;
  overflow: auto hidden;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.category-rail::-webkit-scrollbar { display: none; }
.category-nav-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #a6b6af;
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}
.category-nav-button:hover { background: rgba(255, 255, 255, .035); color: var(--text); }
.category-nav-button.is-active { border-color: rgba(166, 255, 0, .18); background: rgba(166, 255, 0, .09); color: var(--green-strong); }
.category-nav-button small { margin-left: 5px; color: var(--muted); font-size: 8px; }

.applied-filters {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  overflow: auto hidden;
  border-top: 1px solid rgba(221, 241, 232, .07);
  scrollbar-width: none;
}
.applied-filters::-webkit-scrollbar { display: none; }
.applied-filters > span { margin: 0 4px 0 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.applied-filter-chip,
.clear-filter-chips {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  color: var(--soft);
  cursor: pointer;
  font-size: 10px;
}
.applied-filter-chip::after { content: "×"; margin-left: 7px; color: var(--muted); font-size: 14px; }
.applied-filter-chip:hover { border-color: rgba(255, 136, 91, .34); color: var(--text); }
.clear-filter-chips { border-color: transparent; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.filters {
  position: fixed;
  z-index: 92;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  overflow: hidden;
  background: #0c1714;
  box-shadow: -30px 0 90px rgba(0, 0, 0, .48);
  transform: translateX(104%);
  transition: transform .24s cubic-bezier(.22, .8, .26, 1);
}
.filters-open { overflow: hidden; }
.filters-open .filters { transform: translateX(0); }
.filters-heading {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 30px 22px;
  border-bottom: 1px solid var(--line);
}
.filters-heading .eyebrow { margin-bottom: 7px; }
.filters-heading h2 { margin: 0; font-size: 31px; letter-spacing: -.045em; }
.filters-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.filters-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 23px;
}
.filters-content { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; }
.filter-block { padding: 24px 30px; border-right: 0; border-bottom: 1px solid var(--line); }
.filter-title { margin-bottom: 15px; }
.filter-title b { font-size: 13px; }
.filter-title span { font-size: 9px; }
.category-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.category-option { min-width: 0; }
.category-name {
  width: 100%;
  min-height: 42px;
  padding: 0 33px 0 12px;
  border-radius: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-option small { position: absolute; right: 10px; margin: 0; }
.delivery-block { min-height: 91px; }
.filter-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 8px;
  padding: 15px 30px max(15px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(12, 23, 20, .96);
}
.filter-actions button { min-height: 50px; border-radius: 12px; cursor: pointer; font-size: 12px; font-weight: 780; }
.reset-button { border: 1px solid var(--line); background: var(--surface-2); }
.apply-button { border: 0; background: var(--green); color: #11200e; }
.filters-backdrop {
  position: fixed;
  z-index: 88;
  inset: 0;
  display: block;
  background: rgba(2, 7, 6, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  backdrop-filter: blur(5px);
}
.filters-open .filters-backdrop { opacity: 1; pointer-events: auto; }

.results { padding-top: 42px; }
.results-head { align-items: flex-end; margin-bottom: 18px; }
.results-head h2 { font-size: clamp(28px, 2.7vw, 39px); }
.results-meta { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.results-meta > p { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.feed-state-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .025);
  color: var(--soft);
  font-size: 9px;
  font-weight: 740;
  white-space: nowrap;
}
.feed-state-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(166, 255, 0, .08); }
.feed-state-pill.is-loading i { background: var(--mint); animation: pulse 1.2s infinite; }
.feed-state-pill.is-offline i { background: var(--orange); box-shadow: none; }
.system-notice { border-color: rgba(255, 136, 91, .18); background: rgba(255, 136, 91, .055); }
.new-items-banner { top: 92px; }

.empty-state {
  max-width: 570px;
  margin: 74px auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .018);
}
.empty-state .eyebrow { margin-top: 22px; }
.empty-state h2 { margin-top: 0; }

.site-footer {
  min-height: 82px;
  align-items: center;
  margin-top: 45px;
  padding: 22px 2px 5px;
}
.site-footer > div { display: flex; align-items: center; gap: 10px; }
.site-footer img { border-radius: 9px; opacity: .78; }
.site-footer span { display: grid; gap: 2px; }
.site-footer b { color: var(--soft); font-size: 12px; }
.site-footer small { color: var(--muted); font-size: 9px; }
.site-footer p { margin: 0; }

.favorites-view .discovery { display: none; }
.favorites-view .hero { min-height: 176px; padding-bottom: 24px; }
.favorites-view .hero-copy { display: none; }

@media (max-width: 1180px) {
  .site-header { height: 72px; padding-bottom: 0; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .view-tabs { order: initial; grid-column: auto; justify-self: auto; margin: 0; transform: none; }
  .live-state { grid-column: auto; }
  .page-shell { padding-top: 35px; }
  .hero { grid-template-columns: minmax(0, 1fr) 330px; }
  .hero-metrics { width: 330px; }
  .search-strip { top: auto; }
}

@media (max-width: 900px) {
  .header-inner,
  .page-shell { width: min(100% - 32px, 1450px); }
  .live-state > span:last-child { min-width: 0; }
  .live-state small { display: none; }
  .live-state { min-width: 110px; }
  .hero { grid-template-columns: 1fr; gap: 25px; }
  .hero-metrics { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-metrics .metric-freshness { grid-column: auto; display: block; }
  .hero-metrics .metric-freshness dd { margin-top: 7px; }
  .search-strip { grid-template-columns: minmax(0, 1fr) auto; }
  .sort-field { grid-column: 1 / -1; min-height: 44px; }
  .sort-field select { flex: 1; height: 42px; text-align: right; }
  .category-rail-wrap { grid-template-columns: 1fr; gap: 5px; padding-left: 10px; }
  .category-rail-label { display: none; }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    height: 64px;
    background: rgba(8, 15, 13, .97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-inner,
  .page-shell { width: min(100% - 24px, 1450px); }
  .header-inner { min-height: 64px; display: flex; gap: 9px; }
  .brand img { width: 40px; height: 40px; border-radius: 12px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .live-state { width: auto; min-width: 0; margin-left: auto; }
  .live-state > span:last-child { display: none; }
  .view-tabs {
    position: fixed;
    z-index: 60;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    height: 56px;
    justify-content: stretch;
    padding: 5px;
    background: rgba(16, 29, 25, .95);
    box-shadow: 0 14px 45px rgba(0, 0, 0, .52);
    backdrop-filter: blur(20px);
  }
  .view-tab { flex: 1; justify-content: center; }
  .page-shell { padding-top: 23px; padding-bottom: 82px; }
  .hero { display: block; min-height: 0; padding: 3px 1px 25px; }
  .hero h1 { font-size: clamp(36px, 10.7vw, 46px); }
  .hero-copy { max-width: 580px; margin-top: 14px; font-size: 14px; }
  .hero-metrics { margin-top: 21px; gap: 6px; }
  .hero-metrics div { padding: 13px 11px; }
  .hero-metrics dt { font-size: 7px; }
  .hero-metrics dd,
  .hero-metrics .metric-freshness dd { margin-top: 6px; font-size: 16px; }
  .discovery { border-radius: 18px; }
  .search-strip { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 7px; }
  .search-field { min-width: 0; min-height: 48px; }
  .search-field input { height: 46px; padding-right: 8px; font-size: 14px; }
  .search-field kbd { display: none; }
  .filter-toggle { min-width: 48px; width: 48px; min-height: 48px; padding: 0; }
  .filter-toggle .filter-toggle-label { display: none; }
  .filter-toggle b { position: absolute; margin: -30px 0 0 31px; }
  .sort-field { min-height: 42px; padding-left: 12px; }
  .sort-field select { height: 40px; }
  .category-rail-wrap { min-height: 50px; padding: 4px 5px 7px; }
  .category-nav-button { min-height: 34px; }
  .applied-filters { min-height: 44px; padding: 7px; }
  .filters {
    top: auto;
    width: 100%;
    max-height: 92vh;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(104%);
  }
  .filters-open .filters { transform: translateY(0); }
  .filters-heading { padding: 22px 20px 16px; }
  .filters-heading h2 { font-size: 27px; }
  .filter-block { padding: 20px; }
  .filter-actions { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .results { padding-top: 31px; }
  .results-head { display: block; }
  .results-meta { justify-content: space-between; margin-top: 11px; padding: 0; }
  .results-meta > p { overflow: hidden; text-overflow: ellipsis; }
  .new-items-banner { top: 76px; }
  .empty-state { margin: 45px auto; padding: 30px 20px; }
  .site-footer { display: flex; align-items: center; padding-bottom: 10px; }
  .site-footer p { max-width: 190px; text-align: right; }
  .favorites-view .hero { min-height: 0; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 37px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-metrics .metric-freshness { grid-column: 1 / -1; display: flex; }
  .hero-metrics .metric-freshness dd { margin: 0; }
  .category-options { grid-template-columns: 1fr; }
  .results-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .site-footer > div small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .filters,
  .filters-backdrop { transition: none; }
}

/* Dense feed workspace: keep the listings above the fold and show the full
   card beside its gallery on wide screens. */
.modal-gallery { align-items: stretch; }
.modal-gallery figure { position: relative; flex: 0 0 100%; min-width: 0; min-height: 0; overflow: hidden; }
.modal-gallery img { position: absolute; inset: 0; display: block; }

@media (min-width: 901px) {
  .page-shell { padding-top: 24px; }
  .hero {
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 42px;
    padding: 4px 2px 24px;
  }
  .hero h1 { max-width: none; font-size: clamp(38px, 4vw, 56px); line-height: 1; }
  .hero-copy { max-width: 820px; margin-top: 12px; }
  .hero-metrics { width: 410px; grid-template-columns: 112px 112px minmax(0, 1fr); gap: 7px; }
  .hero-metrics div { padding: 13px 14px; }
  .hero-metrics .metric-freshness { grid-column: auto; display: block; }
  .hero-metrics dd,
  .hero-metrics .metric-freshness dd { margin-top: 6px; font-size: 18px; }
  .results { padding-top: 34px; }
  .results-head h2 { font-size: clamp(31px, 3vw, 42px); }

  .modal-panel { width: min(1380px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: hidden; }
  #modal-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr); min-height: 0; }
  .modal-gallery-wrap { min-width: 0; height: calc(100vh - 50px); max-height: 900px; }
  .modal-gallery { height: 100%; }
  .modal-gallery figure { height: 100%; }
  .modal-gallery img { padding: 18px; }
  .modal-details {
    max-height: calc(100vh - 50px);
    overflow: auto;
    padding: clamp(32px, 3.3vw, 50px) clamp(28px, 3vw, 46px);
    border-left: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(16, 31, 26, .98), rgba(10, 21, 18, .99));
    scrollbar-gutter: stable;
  }
  .modal-title-row h2 { font-size: clamp(32px, 3vw, 46px); }
  .modal-price { font-size: clamp(36px, 3vw, 48px); }
  .modal-section { margin-top: 34px; }
  .modal-details .parameter-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(34px, 9.5vw, 43px); }
  .hero-copy { max-width: 640px; }
}

/* Premium interface pass — compact hierarchy, high-legibility controls and
   an image-first gallery without changing the stable card geometry. */
:root {
  --page: #000b1e;
  --surface: #061428;
  --surface-2: #0a1c36;
  --surface-3: #102748;
  --line: rgba(0, 191, 255, .14);
  --line-strong: rgba(0, 191, 255, .28);
  --text: #e8f4ff;
  --muted: #7f9bb8;
  --soft: #b6d0e8;
  --green: #a6ff00;
  --green-strong: #ccff00;
  --mint: #00bfff;
  --cyan: #00bfff;
  --orange: #ff8000;
  --shadow: 0 28px 80px rgba(0, 8, 24, .55);
}

body {
  background:
    radial-gradient(circle at 12% -6%, rgba(0, 191, 255, .16), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(166, 255, 0, .10), transparent 28rem),
    radial-gradient(circle at 70% 90%, rgba(255, 128, 0, .07), transparent 24rem),
    linear-gradient(180deg, #020918 0, var(--page) 34rem);
}

button,
a,
input,
select { transition: border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease, box-shadow .18s ease, transform .18s ease; }

:where(button, a, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.site-header {
  border-bottom-color: rgba(0, 191, 255, .14);
  background: rgba(0, 11, 30, .9);
  box-shadow: 0 10px 38px rgba(0, 8, 24, .35);
}

.header-inner,
.page-shell { width: min(1480px, calc(100% - 52px)); }
.header-inner { min-height: 70px; }
.brand { gap: 11px; }
.brand img { width: 44px; height: 44px; border-radius: 14px; }
.brand strong { font-size: 19px; font-weight: 760; }
.brand small { margin-top: 3px; font-size: 10px; }
.view-tabs { padding: 4px; border-radius: 13px; }
.view-tab { min-height: 38px; padding-inline: 15px; font-size: 13px; font-weight: 680; }
.live-state b { font-size: 12px; font-weight: 720; }
.live-state small { font-size: 10px; }

.page-shell { padding-top: 17px; }
.hero {
  min-height: 106px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 36px;
  padding: 3px 2px 17px;
}
.eyebrow { margin-bottom: 8px; font-size: 11px; font-weight: 740; letter-spacing: .15em; }
.hero h1 { font-size: clamp(37px, 3.65vw, 52px); font-weight: 760; line-height: .98; letter-spacing: -.052em; }
.hero-copy { margin-top: 9px; font-size: 14px; line-height: 1.45; }
.hero-metrics {
  width: 390px;
  grid-template-columns: 104px 104px minmax(0, 1fr);
  gap: 7px;
}
.hero-metrics div {
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .016));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.hero-metrics .metric-freshness { grid-column: auto; display: block; }
.hero-metrics dt { font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.hero-metrics dd,
.hero-metrics .metric-freshness dd { margin-top: 4px; font-size: 18px; font-weight: 740; }
.hero-metrics .metric-freshness dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.discovery {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 34, 28, .94), rgba(10, 24, 19, .97));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .14), inset 0 1px rgba(255, 255, 255, .025);
}
.search-strip { padding: 7px; }
.search-field,
.sort-field,
.filter-toggle { min-height: 48px; }
.search-field input { height: 46px; font-size: 14px; }
.search-field kbd { min-width: 24px; padding: 4px 7px; text-align: center; font-size: 11px; }
.sort-field select { height: 44px; font-size: 12px; }
.filter-toggle { min-height: 48px; }

.category-rail-wrap {
  position: relative;
  min-height: 52px;
  padding-top: 4px;
  padding-bottom: 6px;
}
.category-rail-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 0;
  bottom: 1px;
  width: 46px;
  pointer-events: none;
  border-radius: 0 19px 19px 0;
  background: linear-gradient(90deg, transparent, rgba(10, 24, 19, .96));
}
.category-rail-label span { font-size: 12px; }
.category-rail-label small { font-size: 10px; }
.category-rail { padding-right: 38px; }
.category-nav-button { min-height: 40px; padding-inline: 13px; font-size: 12px; }
.category-nav-button small { font-size: 10px; }
.applied-filter-chip,
.clear-filter-chips { min-height: 34px; font-size: 11px; }

.results { padding-top: 24px; }
.results-head { margin-bottom: 14px; }
.results-head h2 { font-size: clamp(29px, 2.6vw, 38px); font-weight: 740; }
.results-meta > p { font-size: 12px; }
.feed-state-pill { min-height: 30px; font-size: 11px; }

.new-items-banner {
  top: auto;
  right: 26px;
  bottom: 24px;
  left: auto;
  min-height: 50px;
  border-color: rgba(166, 255, 0, .42);
  background: rgba(15, 34, 27, .96);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .05);
  transform: none;
}
.new-items-banner:hover { border-color: rgba(166, 255, 0, .7); transform: translateY(-2px); }

.listing-card {
  position: relative;
  border-color: rgba(215, 239, 228, .105);
  background: linear-gradient(165deg, rgba(14, 31, 25, .99), rgba(9, 23, 18, .99));
  box-shadow: 0 1px rgba(255, 255, 255, .018);
}
.listing-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(166, 255, 0, .65), transparent);
  transition: opacity .2s;
}
.listing-card:hover::after { opacity: 1; }
.listing-card:hover { border-color: rgba(166, 255, 0, .23); transform: translateY(-4px); }
.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(4, 11, 8, .26));
}
.card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, #12271f 18%, #254638 38%, #12271f 58%);
  background-size: 220% 100%;
  animation: shimmer 1.15s ease-in-out infinite;
  transition: opacity .24s ease;
}
.image-ready .card-media::before { opacity: 0; animation: none; }
.card-media img { position: relative; z-index: 1; opacity: 0; transition: opacity .22s ease, transform .35s ease; }
.image-ready .card-media img { opacity: 1; }

.modal-gallery figure,
.gallery-thumb {
  background: linear-gradient(110deg, #10231c 18%, #254438 40%, #10231c 62%);
  background-size: 240% 100%;
  animation: shimmer 1.15s ease-in-out infinite;
}
.modal-gallery img,
.gallery-thumb img { opacity: 0; transition: opacity .2s ease; }
.modal-gallery img.is-loaded,
.gallery-thumb img.is-loaded { opacity: 1; }
.modal-gallery figure.is-image-ready,
.gallery-thumb.is-image-ready { animation: none; }
.delivery-badge,
.photo-count { z-index: 1; min-height: 31px; font-size: 11px; }
.card-body { padding: 20px 21px 18px; }
.category-label { font-size: 12px; font-weight: 740; letter-spacing: .045em; }
.card-title { font-weight: 740; }
.card-price { font-weight: 780; }
.card-snippet { color: #c2d0ca; }
.card-facts { font-size: 13px; }
.card-actions button,
.card-actions a { min-height: 45px; font-size: 13px; }
.card-actions a { box-shadow: inset 0 1px rgba(255, 255, 255, .2); }

.filters { background: linear-gradient(160deg, #0e1d18, #091510); }
.filters-heading h2 { font-weight: 740; }
.filter-title b { font-size: 14px; }
.filter-title span { font-size: 11px; }
.category-name { min-height: 44px; font-size: 13px; }
.category-option small { font-size: 11px; }
.filter-actions button { min-height: 52px; font-size: 13px; }
.apply-button { box-shadow: inset 0 1px rgba(255, 255, 255, .2); }

.modal-backdrop { background: rgba(1, 6, 4, .88); }
.modal-panel { border-color: rgba(215, 239, 228, .2); box-shadow: 0 36px 110px rgba(0, 0, 0, .66); }
.modal-gallery-wrap { background: radial-gradient(circle at 50% 42%, #14221d, #07100d 72%); }
.gallery-arrow { width: 54px; height: 54px; border-color: rgba(255, 255, 255, .2); background: rgba(5, 13, 10, .82); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.gallery-arrow:hover { border-color: rgba(166, 255, 0, .5); background: rgba(17, 35, 28, .94); }
.gallery-thumbs {
  position: absolute;
  z-index: 4;
  right: 80px;
  bottom: 17px;
  left: 80px;
  display: flex;
  justify-content: center;
  gap: 7px;
  overflow: auto hidden;
  padding: 5px;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 13, 10, .8);
  cursor: pointer;
  opacity: .62;
}
.gallery-thumb:hover { opacity: .9; }
.gallery-thumb.is-active { border-color: var(--green); opacity: 1; box-shadow: 0 0 0 2px rgba(166, 255, 0, .13); }
.gallery-thumb img { width: 100%; height: 100%; display: block; border-radius: 8px; object-fit: cover; }
.gallery-counter { right: 18px; bottom: 25px; min-width: 52px; text-align: center; font-size: 12px; }
.modal-details { background: linear-gradient(160deg, rgba(15, 31, 25, .99), rgba(7, 18, 14, .99)); }
.modal-title-row h2 { font-weight: 740; }
.modal-price { font-weight: 790; }
.full-description { color: #d7e1dd; }
.parameter-grid { border-color: rgba(215, 239, 228, .14); background: rgba(215, 239, 228, .1); }
.parameter-grid div { background: rgba(17, 34, 28, .97); }

@media (min-width: 901px) {
  .page-shell { padding-top: 17px; }
  .hero { min-height: 106px; grid-template-columns: minmax(0, 1fr) 390px; gap: 36px; padding: 3px 2px 17px; }
  .hero h1 { font-size: clamp(37px, 3.65vw, 52px); }
  .hero-copy { margin-top: 9px; }
  .hero-metrics { width: 390px; grid-template-columns: 104px 104px minmax(0, 1fr); }
  .hero-metrics div { padding: 10px 12px; }
  .results { padding-top: 24px; }
  .results-head h2 { font-size: clamp(29px, 2.6vw, 38px); }
  .feed-state-pill { display: none; }
  .modal-gallery img { padding: 20px 20px 88px; }
}

@media (max-width: 900px) {
  .header-inner,
  .page-shell { width: min(100% - 28px, 720px); }
  .site-header { height: 64px; }
  .header-inner { min-height: 64px; }
  .brand img { width: 40px; height: 40px; border-radius: 13px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .page-shell { padding-top: 13px; }
  .hero { padding-bottom: 15px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 42px); }
  .hero-copy { margin-top: 9px; font-size: 13px; line-height: 1.42; }
  .hero-metrics { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 13px; }
  .hero-metrics div,
  .hero-metrics .metric-freshness { min-height: 51px; display: block !important; grid-column: auto !important; padding: 8px 9px; }
  .hero-metrics dt { font-size: 10px; }
  .hero-metrics dd,
  .hero-metrics .metric-freshness dd { margin-top: 3px; font-size: 15px; }
  .results { padding-top: 22px; }
  .new-items-banner {
    right: auto;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 50%;
    max-width: calc(100% - 28px);
    transform: translateX(-50%);
  }
  .new-items-banner:hover { transform: translateX(-50%) translateY(-2px); }
  .category-rail-label { display: none; }
  .category-rail-wrap { display: block; min-height: 52px; padding-inline: 5px; }
  .category-nav-button { min-height: 44px; }
  .results-head h2 { font-size: 31px; }
  .listing-card:hover { transform: none; box-shadow: none; }
  .gallery-thumbs { right: 62px; bottom: 10px; left: 62px; justify-content: flex-start; }
  .gallery-thumb { width: 46px; height: 46px; border-radius: 10px; }
  .gallery-counter { right: 10px; bottom: 17px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .new-items-banner { max-width: 120px; min-height: 42px; padding: 5px 10px; }
  .new-items-banner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .new-items-banner b { display: none; }
}

@media (max-width: 430px) {
  html { scrollbar-gutter: auto; }
  .page-shell { padding-top: 9px; }
  .hero { padding-bottom: 14px; }
  .hero .eyebrow { margin-bottom: 7px; font-size: 10px; }
  .hero h1 { max-width: 350px; font-size: 35px; }
  .hero-copy { display: none; }
  .hero-metrics { margin-top: 10px; }
  .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-metrics div:nth-child(2) { display: block !important; }
  .results-meta { gap: 9px; }
  .results { padding-top: 14px; }
  .results-head > div:first-child .eyebrow { display: none; }
  .results-head h2 { font-size: 28px; line-height: 1.06; }
  .results-meta { align-items: center; flex-direction: row; margin-top: 7px; }
  .feed-state-pill { display: none; }
  .results-meta > p { font-size: 11px; }
  .gallery-arrow { width: 44px; height: 44px; font-size: 26px; }
  .gallery-arrow.prev { left: 10px; }
  .gallery-arrow.next { right: 10px; }
  .gallery-thumbs { right: 56px; left: 56px; }
}

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

/* Header event slot: realtime banner stays visible without covering Telegram. */
.header-inner { position: relative; overflow: visible; }
.new-items-banner {
  position: fixed;
  top: 88px;
  right: auto;
  bottom: auto;
  left: 50%;
  z-index: 60;
  width: max-content;
  max-width: min(420px, calc(100vw - 24px));
  min-height: 46px;
  transform: translateX(-50%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3), 0 0 0 1px rgba(166, 255, 0, .08);
}
.new-items-banner:hover { transform: translateX(-50%) translateY(-2px); }
.has-new-items .live-state { visibility: visible; opacity: 1; }

.price-error {
  margin: 10px 0 0;
  color: #ffb8aa;
  font-size: 12px;
  line-height: 1.45;
}

.load-error-state {
  max-width: 660px;
  margin: 38px auto 80px;
  padding: 46px 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(21, 42, 34, .84), rgba(10, 21, 17, .92));
  text-align: center;
  box-shadow: var(--shadow-card);
}
.load-error-state h2 { margin: 10px 0 9px; font-size: 30px; letter-spacing: -.04em; }
.load-error-state > p:last-child { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.6; }
.load-error-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 19px; background: rgba(166, 255, 0, .1); }
.load-error-icon i { width: 25px; height: 25px; border: 2px solid rgba(166, 255, 0, .25); border-top-color: var(--green); border-radius: 50%; animation: spin .9s linear infinite; }

@media (max-width: 900px) {
  .live-state { min-width: 0; }
  .live-state > span:last-child { display: grid; min-width: 0; width: auto; }
  .live-state small { display: none; }
  .live-state b { font-size: 12px; white-space: nowrap; }
  .new-items-banner {
    top: 76px;
    right: auto;
    bottom: auto;
    left: 50%;
    max-width: min(340px, calc(100vw - 20px));
    min-height: 44px;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .new-items-banner:hover { transform: translateX(-50%) translateY(-2px); }
}

@media (max-width: 430px) {
  .new-items-banner { top: 70px; max-width: calc(100vw - 16px); padding: 5px 6px 5px 12px; }
  .new-items-banner span { overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .new-items-banner b { padding: 7px 9px; font-size: 11px; }
  .load-error-state { margin-top: 24px; padding: 36px 20px; border-radius: 22px; }
  .modal-details { position: relative; }
  .modal-kicker { padding-right: 54px; }
  .modal-title-row { display: block; }
  .modal-title-row h2 { max-width: none; font-size: 30px; }
  .modal-favorite { position: absolute; top: 22px; right: 18px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .new-items-banner { width: max-content; max-width: min(360px, calc(100vw - 24px)); min-height: 44px; justify-content: center; gap: 10px; padding: 5px 8px 5px 14px; }
  .new-items-banner span { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .new-items-banner b { display: inline-flex; width: auto; height: auto; padding: 7px 10px; font-size: 11px; }
  .new-items-banner b::after { content: none; }
  .new-items-banner::before { content: none; }
}

/* Native-control replacement and filter ergonomics. */
:where(button, a, label, [role="option"]) {
  -webkit-tap-highlight-color: transparent;
}
:where(button, [role="option"], .category-nav-button) { user-select: none; }

.search-field:focus-within,
.sort-field:focus-within { border-color: rgba(215, 239, 228, .105); box-shadow: none; }
.search-field:has(:focus-visible),
.sort-field:has(:focus-visible),
.region-field:has(:focus-visible),
.price-range label:has(input:focus-visible) {
  border-color: rgba(166, 255, 0, .52);
  box-shadow: 0 0 0 3px rgba(166, 255, 0, .09);
}
:where(.search-field input, .sort-toggle, .region-field input, .region-clear, .price-range input):focus-visible {
  outline: 0 !important;
  outline-offset: 0 !important;
}
.search-field input:focus-visible,
.sort-toggle:focus-visible,
.region-field input:focus-visible,
.region-clear:focus-visible,
.price-range input:focus-visible { outline: 0 !important; outline-offset: 0 !important; }

.sort-field {
  position: relative;
  min-width: 238px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 8px 0 14px;
  overflow: visible;
}
.sort-field.is-open { z-index: 20; border-color: rgba(166, 255, 0, .3); background: rgba(255, 255, 255, .052); }
.sort-field .sort-caption { color: var(--muted); font-size: 10px; }
.sort-toggle {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}
.sort-toggle #sort-value { overflow: hidden; color: inherit; font-size: inherit; text-overflow: ellipsis; white-space: nowrap; }
.sort-toggle i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.sort-field.is-open .sort-toggle i { transform: rotate(225deg) translate(-1px, -1px); }
.sort-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.sort-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  width: 286px;
  padding: 7px;
  border: 1px solid rgba(215, 239, 228, .18);
  border-radius: 15px;
  background: rgba(12, 26, 21, .985);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(22px);
}
.sort-menu button {
  width: 100%;
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 38px 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  position: relative;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  text-align: left;
}
.sort-menu button span { color: inherit; font-size: 13px; font-weight: 720; }
.sort-menu button small { color: var(--muted); font-size: 10px; }
.sort-menu button:hover,
.sort-menu button:focus-visible { outline: 0; background: rgba(255, 255, 255, .055); color: var(--text); }
.sort-menu button.is-selected { border-color: rgba(166, 255, 0, .22); background: rgba(166, 255, 0, .09); color: var(--green-strong); }
.sort-menu button.is-selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--green);
  font-size: 15px;
  transform: translateY(-50%);
}

.price-range input { appearance: textfield; -moz-appearance: textfield; }
.price-range input::-webkit-outer-spin-button,
.price-range input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
input[type="search"]::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.price-range label { transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.price-range label:focus-within { border-color: var(--line); }

.region-combobox { position: relative; }
.region-field {
  min-height: 49px;
  display: flex;
  align-items: center;
  padding: 0 7px 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.region-field > span {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  position: relative;
  opacity: .8;
}
.region-field > span::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  border-top: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
.region-field input {
  width: 100%;
  min-width: 0;
  height: 47px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.region-field input:focus { border-color: transparent; }
.region-clear {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .055);
  color: var(--muted);
  cursor: pointer;
  font-size: 19px;
}
.region-clear:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.region-suggestions {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(310px, 42vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(215, 239, 228, .18);
  border-radius: 14px;
  background: rgba(12, 27, 22, .99);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 255, 0, .28) transparent;
}
.region-suggestions button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  text-align: left;
}
.region-suggestions button:hover,
.region-suggestions button.is-active { background: rgba(166, 255, 0, .09); color: var(--green-strong); }
.region-suggestions button:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px rgba(166, 255, 0, .36); }
.region-suggestions button span { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.region-suggestions button small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.region-suggestions-empty { margin: 0; padding: 16px 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.category-rail-wrap { grid-template-columns: auto minmax(0, 1fr) auto; padding-right: 8px; }
.category-rail-wrap::after { right: 46px; width: 40px; }
.category-rail { padding-right: 26px; scroll-padding-inline: 8px 42px; }
.category-scroll-controls { z-index: 4; display: flex; align-items: center; gap: 4px; }
.category-scroll-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(22, 42, 35, .96);
  color: var(--soft);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.category-scroll-button:hover { border-color: rgba(166, 255, 0, .35); color: var(--green-strong); }

.filters-content {
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(166, 255, 0, .27) transparent;
}
.filters-content::-webkit-scrollbar { width: 8px; }
.filters-content::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 10px; background: rgba(166, 255, 0, .24); background-clip: padding-box; }
.filters-content .filter-block:last-child { padding-bottom: 34px; }
.category-name { padding-right: 52px; }
.category-option small {
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 11px;
  background: linear-gradient(90deg, transparent, rgba(18, 35, 29, .96) 38%);
  text-align: right;
}
.category-more {
  display: none;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, .022);
  color: var(--soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.category-more:hover { border-color: rgba(166, 255, 0, .32); color: var(--green-strong); }

@media (max-width: 900px) {
  .sort-field { min-width: 0; }
  .sort-menu { width: min(286px, calc(100vw - 28px)); }
}

@media (max-width: 760px) {
  .sort-field { grid-template-columns: auto minmax(0, 1fr); padding-right: 7px; }
  .sort-toggle { min-height: 40px; }
  .sort-menu { right: 0; left: 0; width: auto; }
  .category-rail-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 6px; }
  .category-scroll-button { width: 34px; height: 34px; }
  .category-scroll-controls .is-prev { display: none; }
  .category-rail-wrap::after { right: 40px; }
  .filters { max-height: min(94dvh, 860px); }
  .filters-content { padding-bottom: 8px; }
  .category-block:not(.is-expanded) .category-option:nth-child(n + 4) { display: none; }
  .category-more { display: block; }
}

/* Final stacking contract: dropdowns always belong to the top control layer. */
.discovery { overflow: visible; }
.search-strip { position: relative; z-index: 20; overflow: visible; }
.sort-field.is-open { position: relative; z-index: 220; }
.sort-menu { z-index: 240; isolation: isolate; }
.category-rail-wrap { position: relative; z-index: 2; }

/* Equal navigation geometry regardless of label/count length. */
.category-nav-button,
.category-nav-button[data-category=""] {
  width: 198px;
  min-width: 198px;
  max-width: 198px;
  flex: 0 0 198px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.category-nav-button[data-category=""] { justify-content: center; }
.category-nav-button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 761px) {
  .view-tabs { width: 286px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .view-tabs { width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-nav-button,
  .category-nav-button[data-category=""] {
    width: 184px;
    min-width: 184px;
    max-width: 184px;
    flex-basis: 184px;
  }
}

/* ==========================================================================
   Premium refinement layer — realtime pill, Telegram identity, discovery hub.
   This block is intentionally last so it settles the stacking and layout
   contract on top of the historical override layers above.
   ========================================================================== */

/* Telegram identity — proper glyph instead of an arrow. */
.telegram-header-link {
  gap: 8px;
  border-color: rgba(0, 191, 255, .22);
  background: rgba(0, 191, 255, .07);
  font-weight: 720;
}
.telegram-header-link:hover { border-color: rgba(0, 191, 255, .5); background: rgba(0, 191, 255, .12); }
.telegram-header-link .tg-glyph { width: 16px; height: 16px; flex: 0 0 16px; }
.tg-glyph { display: block; }

/* Realtime "new items" pill — floats clear of the header, never covers the
   Telegram control, brand or live-state text. */
.has-new-items .live-state { visibility: visible; opacity: 1; }
.new-items-banner {
  position: fixed;
  z-index: 55;
  top: max(80px, calc(env(safe-area-inset-top) + 80px));
  right: auto;
  bottom: auto;
  left: 50%;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  min-height: 46px;
  padding: 0 8px 0 16px;
  gap: 12px;
  border: 1px solid rgba(166, 255, 0, .45);
  border-radius: 999px;
  background: rgba(6, 20, 40, .97);
  box-shadow: 0 20px 52px rgba(0, 8, 24, .55), 0 0 0 1px rgba(0, 191, 255, .12);
  backdrop-filter: blur(20px) saturate(140%);
  transform: translateX(-50%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.new-items-banner:hover {
  transform: translateX(-50%) translateY(-2px);
  border-color: rgba(166, 255, 0, .78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(166, 255, 0, .2);
}
.new-items-banner::before { content: none !important; }
.new-items-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(166, 255, 0, .14);
  animation: pulse 1.5s infinite;
}
.new-items-banner .new-items-text {
  display: inline;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.new-items-banner b {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--green);
  color: #13210f;
  font-size: 12px;
  font-weight: 780;
}
.new-items-banner b::after { content: none !important; }

@media (max-width: 760px) {
  .new-items-banner {
    top: max(74px, calc(env(safe-area-inset-top) + 74px));
    max-width: calc(100vw - 20px);
  }
}

/* Discovery hub — premium two-column layout with topical icons; the FAQ and
   Telegram call-to-action sit in the copy column so nothing is buried. */
.seo-hub {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 30px 44px;
  margin-top: 64px;
  padding: 38px;
  border-color: rgba(215, 239, 228, .1);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 191, 255, .06), transparent 60%),
    linear-gradient(155deg, rgba(17, 34, 28, .9), rgba(8, 20, 16, .95));
}
.seo-hub-copy {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.seo-hub-copy h2 { font-size: clamp(25px, 2.2vw, 34px); }
.seo-hub-copy > p { margin: 0; max-width: 560px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.seo-topic-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-content: start;
  gap: 9px;
}
.seo-topic-links a {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-color: rgba(215, 239, 228, .09);
  background: rgba(255, 255, 255, .02);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.seo-topic-links a:hover {
  border-color: rgba(166, 255, 0, .32);
  background: rgba(166, 255, 0, .06);
  transform: translateY(-2px);
}
.seo-topic-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(166, 255, 0, .1);
  color: var(--green-strong);
}
.seo-topic-icon svg { display: block; }
.seo-topic-text { display: grid; gap: 3px; min-width: 0; }
.seo-topic-text b { font-size: 13.5px; font-weight: 740; }
.seo-topic-text span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.seo-faq { grid-column: 1; align-content: start; gap: 8px; }
.seo-faq-title { margin: 0 0 2px; color: var(--soft); font-size: 13px; font-weight: 760; letter-spacing: .02em; }
.seo-faq details { border-color: rgba(215, 239, 228, .09); background: rgba(255, 255, 255, .018); transition: border-color .18s ease; }
.seo-faq details[open] { border-color: rgba(166, 255, 0, .26); }
.seo-faq summary { padding: 13px 16px; font-size: 12.5px; }
.seo-faq summary::marker { color: var(--green); }

/* Telegram call-to-action inside the discovery copy. */
.telegram-cta {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px 18px;
  border-color: rgba(0, 191, 255, .26);
  background: linear-gradient(135deg, rgba(0, 191, 255, .14), rgba(0, 191, 255, .05));
}
.telegram-cta:hover { border-color: rgba(0, 191, 255, .5); background: rgba(0, 191, 255, .16); transform: translateY(-1px); }
.telegram-cta .telegram-cta-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 191, 255, .16);
  color: #7ddfff;
  font-size: 0;
}
.telegram-cta .telegram-cta-text { display: grid; gap: 3px; min-width: 0; text-align: left; }
.telegram-cta .telegram-cta-text span { color: var(--mint); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.telegram-cta .telegram-cta-text b { color: var(--text); font-size: 14px; font-weight: 760; }
.telegram-cta .telegram-cta-arrow { color: var(--mint); font-size: 20px; transition: transform .18s ease; }
.telegram-cta:hover .telegram-cta-arrow { transform: translateX(3px); }

@media (max-width: 1180px) {
  .seo-hub { grid-template-columns: 1fr; }
  .seo-hub-copy,
  .seo-topic-links,
  .seo-faq { grid-column: 1; grid-row: auto; }
  .seo-topic-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .seo-hub { margin-top: 44px; padding: 24px 18px; }
  .seo-topic-links { grid-template-columns: 1fr; }
}

/* Reachable pagination — a few auto-loads, then an explicit control so the
   discovery hub and footer are never pushed out of reach by the live feed. */
.load-more-row { display: flex; justify-content: center; margin-top: 10px; }
.load-more-button {
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.load-more-button:hover {
  border-color: rgba(166, 255, 0, .42);
  background: rgba(166, 255, 0, .07);
  color: var(--green-strong);
  transform: translateY(-1px);
}
.load-more-button:active { transform: translateY(0); }

/* === 2026-07-16 palette + topic rail + icon pass ======================= */
:root {
  --page: #000b1e !important;
  --surface: #061428 !important;
  --surface-2: #0a1c36 !important;
  --surface-3: #102748 !important;
  --line: rgba(0, 191, 255, .16) !important;
  --line-strong: rgba(0, 191, 255, .32) !important;
  --text: #e8f4ff !important;
  --muted: #7f9bb8 !important;
  --soft: #b6d0e8 !important;
  --green: #a6ff00 !important;
  --green-strong: #ccff00 !important;
  --mint: #00bfff !important;
  --cyan: #00bfff !important;
  --orange: #ff8000 !important;
  --shadow: 0 28px 80px rgba(0, 8, 24, .55) !important;
}

body {
  background:
    radial-gradient(circle at 12% -6%, rgba(0, 191, 255, .18), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(166, 255, 0, .11), transparent 26rem),
    radial-gradient(circle at 70% 95%, rgba(255, 128, 0, .09), transparent 24rem),
    linear-gradient(180deg, #020918 0, var(--page) 28rem) !important;
}

.site-header {
  background: rgba(0, 11, 30, .94) !important;
  border-bottom-color: rgba(0, 191, 255, .16) !important;
}

.topic-rail {
  margin: 8px 0 28px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(0, 191, 255, .16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(0, 191, 255, .08), transparent 42%),
    linear-gradient(180deg, #071833, #041022);
}

.topic-rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.topic-rail-head h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.04em;
}

.telegram-cta-compact {
  min-height: 44px;
  width: max-content;
  padding: 0 14px;
  gap: 10px;
  border-radius: 999px;
}

.topic-rail .seo-topic-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.topic-rail .seo-topic-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 191, 255, .14);
  border-radius: 16px;
  background: rgba(0, 11, 30, .55);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.topic-rail .seo-topic-links a:hover {
  border-color: rgba(166, 255, 0, .4);
  background: rgba(0, 191, 255, .08);
  transform: translateY(-1px);
}

.topic-rail .seo-topic-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(0, 191, 255, .12);
  color: var(--cyan);
}

.topic-rail .seo-topic-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topic-rail .seo-topic-text b {
  color: var(--text);
  font-size: 14px;
  letter-spacing: -.02em;
}

.topic-rail .seo-topic-text span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-faq-panel {
  margin: 36px 0 18px;
  padding: 22px 22px 8px;
  border: 1px solid rgba(0, 191, 255, .12);
  border-radius: 20px;
  background: rgba(6, 20, 40, .72);
}

.seo-faq-panel > h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.seo-faq details {
  border-color: rgba(0, 191, 255, .12) !important;
}

.seo-hub { display: none !important; }

.tab-icon-feed::before,
.tab-icon-feed::after {
  background: var(--cyan) !important;
  box-shadow: none !important;
}

.tab-icon-favorite::before {
  content: "" !important;
  width: 14px;
  height: 14px;
  border: 1.7px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: transparent;
}

.search-field > span {
  border: 1.8px solid var(--cyan) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.search-field > span::after {
  background: var(--cyan) !important;
}

.filter-toggle i {
  background:
    linear-gradient(currentColor, currentColor) 0 3px / 100% 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 100% 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 0 13px / 100% 1.6px no-repeat !important;
}

.filter-toggle i::before,
.filter-toggle i::after {
  background: var(--lime) !important;
  border: 0 !important;
}

.sort-toggle i {
  border-color: var(--cyan) transparent transparent !important;
  background: transparent !important;
}

.empty-radar {
  border-color: rgba(0, 191, 255, .28) !important;
  box-shadow: inset 0 0 0 1px rgba(166, 255, 0, .12) !important;
}

.empty-radar i {
  background: var(--lime) !important;
  box-shadow: 0 0 0 6px rgba(166, 255, 0, .12) !important;
}

.category-nav-button.is-active {
  background: var(--green) !important;
  color: #10200f !important;
}

.delivery-badge {
  background: rgba(166, 255, 0, .9) !important;
  color: #10200f !important;
}

.new-items-banner {
  border-color: rgba(166, 255, 0, .5) !important;
  background: rgba(6, 20, 40, .97) !important;
}

@media (max-width: 980px) {
  .topic-rail .seo-topic-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topic-rail { padding: 16px 14px 12px; }
  .topic-rail-head { align-items: start; flex-direction: column; }
  .topic-rail .seo-topic-links { grid-template-columns: 1fr; }
}
