/* ═══════════════════════════════════════════════════════════════
   Аукционит miniapp — Hybrid V2+V3
   Cinematic dark theme, gold accents, Cormorant Garamond display.
   Lives at /miniapp/app/ on aukcionit.ru. Loaded inside Telegram WebApp.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #060606;
  --bg-2: #0c0c0d;
  --bg-3: #141414;
  --bg-card: #14110d;
  --ink: #f4ede0;
  /* Подняли контраст — на маленьких экранах ink-soft был на грани, --muted терялся. */
  --ink-soft: #c2b9a8;
  --muted: #8a8073;
  --gold: #c9a55b;
  --gold-2: #e6c884;
  --line: #2b2620;
  --line-2: #3a3327;
  --buy: #6ee7b7;
  --watch: #fde047;
  --skip: #ef4444;
  --fav: #fde047;
  --waitlist: #a78bfa;

  /* Синий = ПРОВЕРЕННЫЙ ФАКТ из официального реестра (torgi, Росреестр,
     Реестр залогов, ЕГРН). Золото = НАШЕ: бренд, кнопки, оценка ИИ.
     Разделение несёт смысл, а не украшает: подписчик платит за доверие к
     находкам, поэтому обязан с одного взгляда отличать факт от догадки модели.
     Вердикт (buy/watch/skip) — третий слой, самый громкий, его не трогаем.
     Синим красим ТОЛЬКО факты: зальём им всё — и он снова станет фоном. */
  --trust: #5aa2f0;
  --trust-2: #9ccbff;
  --trust-bg: #0d1826;
  --trust-line: #24456e;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  overscroll-behavior: none;
}
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column;
}

button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ═══ Top bar ═══ */
.topbar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-mid {
  display: flex; align-items: center; gap: 9px;
  flex: 1; justify-content: center;
}
.logo {
  width: 22px; height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(201,165,91,.4));
}
.topbar h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem; font-weight: 600;
  margin: 0; color: var(--ink); letter-spacing: -.01em;
}
.topbar h1 em { color: var(--gold); font-style: italic; }
.icon-btn {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink); font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background .15s ease;
}
.icon-btn:active { background: var(--line); }
.icon-btn[hidden] { display: none; }

/* ═══ Screens ═══ */
#main {
  flex: 1 1 auto; position: relative;
  overflow: hidden;
  display: flex;
}
.screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
}
.screen.is-active { display: flex; }
.scroll {
  flex: 1 1 auto; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}
.scroll::-webkit-scrollbar { width: 0; }

/* ═══ Common headings ═══ */
.sec { padding: 0 22px; margin-top: 24px; }
.sec-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.sec-title h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  /* На мобильнике серифы тонкие — поднимаем кегль и вес, чтобы читалось. */
  font-size: 1.55rem; font-weight: 700; margin: 0; color: var(--ink);
  letter-spacing: -.01em;
  text-rendering: optimizeLegibility;
}
.sec-title h2 em { color: var(--gold); font-style: italic; }
.sec-title .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-soft); letter-spacing: .08em;
  text-transform: uppercase;
}
.sec-title .see-all {
  font-size: 12px; color: var(--gold); font-weight: 600;
  cursor: pointer;
}
.sec-title .see-all::after { content: " →"; }
.sec-label {
  font-size: 11.5px; letter-spacing: .16em; color: var(--ink-soft);
  text-transform: uppercase; font-weight: 700;
  margin: 22px 22px 8px;
}
/* Заголовок секции с проверенными данными — называем источник вслух.
   «Факты · torgi.gov.ru» синим против золотого «Что говорит ИИ» ниже: два
   заголовка подряд показывают, где кончается реестр и начинается модель. */
.sec-label.is-trust { color: var(--trust); }

/* ═══ Hero ═══ */
.hero {
  margin: 14px 22px 0;
  border-radius: 18px; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  cursor: pointer;
}
.hero-photo {
  height: 200px;
  background: linear-gradient(135deg, #3a3327 0%, #1f1c17 100%);
  position: relative;
  display: flex; align-items: flex-end; padding: 14px;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 60%);
}
.vstamp {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  padding: 5px 11px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink); z-index: 1;
}
.ev {
  position: absolute; top: 12px; right: 12px;
  background: var(--buy); color: #06231a;
  padding: 5px 12px; border-radius: 100px;
  font-weight: 700; font-size: 12px;
  box-shadow: 0 6px 20px rgba(110,231,183,.3);
  z-index: 1;
}
.ev.is-waitlist { background: var(--waitlist); color: #1e0a4a; box-shadow: 0 6px 20px rgba(167,139,250,.3); }
.ev.is-watch { background: var(--watch); color: #3c2e00; box-shadow: 0 6px 20px rgba(253,224,71,.3); }
.hero-photo .art {
  position: absolute; right: 18px; bottom: 26px;
  font-size: 56px; opacity: .35;
}
.hero-photo .title {
  position: relative; z-index: 1; color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem; font-weight: 600; line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-body { padding: 14px 16px; }
.hero-prices {
  display: flex; align-items: baseline; gap: 10px;
  font-family: "JetBrains Mono", monospace; margin-bottom: 12px;
  flex-wrap: wrap;
}
.hero-prices .start { font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.hero-prices .arr { color: var(--muted); font-size: 14px; }
.hero-prices .market { font-size: 13px; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 8px; }

/* ═══ Buttons ═══ */
.btn-gold {
  flex: 1; padding: 12px;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #1c1206; border: 0; border-radius: 10px;
  font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s ease;
}
.btn-gold:active { transform: scale(.97); }
.btn-line {
  padding: 12px 16px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-size: 14px;
  transition: background .15s ease;
}
.btn-line:active { background: var(--line); }

/* Проверка по официальному реестру (Реестр залогов, ЕГРН/Росреестр) — синий:
   это запрос к государственной базе, а не к модели. Пользователь должен видеть
   разницу между «ИИ считает» (золотая кнопка «Выгодно ли брать?») и
   «реестр отвечает». */
.btn-line.is-registry {
  color: var(--trust-2);
  border-color: var(--trust-line);
  background: var(--trust-bg);
}
.btn-line.is-registry:active { background: #122034; }

/* Ответ реестра. Модификаторы .is-clean / .is-alert ставит app.js: чисто или
   найдено обременение. Сам факт ответа — синий, а вот НАЙДЕННЫЙ залог обязан
   гореть красным: это риск, ради которого проверку и жмут. */
.registry-result {
  border-left: 2px solid var(--trust-line);
  padding-left: 9px;
  color: var(--trust-2);
}
.registry-result.is-clean { border-left-color: var(--buy); color: var(--buy); }
.registry-result.is-alert { border-left-color: var(--skip); color: var(--skip); }

/* ═══ Horizontal carousel ═══ */
.h-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 22px;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { display: none; }
.mini-card {
  flex: 0 0 200px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  cursor: pointer;
}
.mini-card-photo {
  height: 100px;
  background: linear-gradient(135deg, #2a2520, #1f1c17);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 26px;
}
.mini-card-photo .vstamp {
  position: absolute; top: 7px; left: 7px;
  background: rgba(0,0,0,.6);
  padding: 3px 7px; border-radius: 4px;
  font-size: 10px; color: var(--ink); font-weight: 600;
}
.mini-card-body { padding: 10px 11px 12px; }
.mini-card-title {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  line-height: 1.25; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.mini-card-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "JetBrains Mono", monospace;
}
.mini-card-meta .price { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.mini-card-meta .ev { font-size: 10.5px; color: var(--buy); font-weight: 600;
  position: static; padding: 0; background: none; box-shadow: none;
}

.deck-cta {
  flex: 0 0 140px;
  background: linear-gradient(135deg, rgba(201,165,91,.15), rgba(201,165,91,.04));
  border: 1px dashed rgba(201,165,91,.45);
  border-radius: 14px; padding: 16px 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 6px; cursor: pointer;
}
.deck-cta .ico { font-size: 26px; }
.deck-cta .label {
  font-size: 11.5px; font-weight: 700; color: var(--gold);
  letter-spacing: .06em; text-transform: uppercase;
}
.deck-cta .sub {
  font-size: 10.5px; color: var(--ink-soft);
  line-height: 1.35;
}

/* ═══ Pre-trade list / Favorites compact ═══ */
.list { padding: 0 22px; }
.list-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.list-item:last-child { border-bottom: 0; }
.list-thumb {
  width: 50px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, #2a2520, #1f1c17);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex: 0 0 auto;
}
.list-body { flex: 1; min-width: 0; }
.list-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.list-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 600; color: var(--gold);
  flex: 0 0 auto;
}

/* ═══ Status / Trial card ═══ */
.status {
  margin: 22px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(201,165,91,.12), rgba(201,165,91,.02));
  border: 1px solid rgba(201,165,91,.35);
  border-radius: 16px;
}
.status .label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 5px;
}
.status .title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem; font-weight: 600; color: var(--ink);
  margin-bottom: 6px; line-height: 1.2;
}
.status .title em { color: var(--gold); font-style: italic; }
.status .copy {
  font-size: 12px; color: var(--ink-soft); margin-bottom: 12px;
  line-height: 1.45;
}
.progress-bar {
  height: 5px; background: var(--bg-3); border-radius: 100px;
  overflow: hidden; margin-bottom: 12px;
}
.progress-bar .fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 100px;
}
.tariff-strip { display: flex; gap: 5px; }
.tariff-mini {
  flex: 1; padding: 9px 4px;
  text-align: center;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease;
}
.tariff-mini:active { background: rgba(201,165,91,.1); }
.tariff-mini.is-current {
  border-color: var(--gold);
  background: rgba(201,165,91,.08);
}
.tariff-mini .n {
  font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 3px;
}
.tariff-mini.is-current .n { color: var(--gold); }
.tariff-mini.gold-name .n { color: var(--gold); }
.tariff-mini .p {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.tariff-mini .u { font-size: 9.5px; color: var(--muted); }

/* ═══ Quick actions ═══ */
.quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 0 22px;
}
.quick-btn {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
}
.quick-btn:active { background: var(--bg-3); }
.quick-btn .ico { font-size: 18px; }
.quick-btn .label { font-size: 13px; font-weight: 600; }
.quick-btn .sub { font-size: 11px; color: var(--muted); }

.footer-actions {
  margin: 24px 22px 22px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.footer-actions a { color: var(--gold); cursor: pointer; }

/* ═══ DECK ═══ */
.deck-progress {
  height: 2px; background: var(--bg-3);
  margin: 6px 22px 4px;
  border-radius: 100px; overflow: hidden;
}
.deck-progress .fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 100px;
  transition: width .3s ease;
}
.deck-wrap {
  flex: 1 1 auto;
  position: relative;
  padding: 8px 18px 4px;
}
.deck { position: relative; height: 100%; }
.scard {
  position: absolute; inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px -10px rgba(0,0,0,.55);
  transform-origin: bottom center;
  will-change: transform;
  touch-action: none;
}
.scard.back-2 { transform: scale(.92) translateY(18px); opacity: .3; z-index: 1; }
.scard.back-1 { transform: scale(.96) translateY(9px); opacity: .65; z-index: 2; }
.scard.front  { z-index: 3; transition: transform .2s ease, opacity .2s ease; }
.scard.dragging { transition: none; }
.scard.fly-right { transform: translate(140%, 0) rotate(20deg); opacity: 0; }
.scard.fly-left  { transform: translate(-140%, 0) rotate(-20deg); opacity: 0; }
.scard.fly-up    { transform: translateY(-130%) scale(1.05); opacity: 0; }

.verdict-stamp {
  position: absolute; z-index: 10;
  padding: 9px 16px;
  border: 3px solid;
  border-radius: 10px;
  font-weight: 800; font-size: 19px;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .1s ease;
}
.verdict-stamp.right {
  top: 24px; left: 24px;
  border-color: var(--fav); color: var(--fav);
  transform: rotate(-10deg);
}
.verdict-stamp.left {
  top: 24px; right: 24px;
  border-color: var(--skip); color: var(--skip);
  transform: rotate(10deg);
}
.verdict-stamp.up {
  top: 24px; left: 50%;
  /* «Открыть на торгах» — наше действие, поэтому золото: тот же цвет, что у
     кнопки .btn-gold «Открыть на torgi.gov.ru». Синий тут был бы враньём —
     он теперь означает проверенный факт, а не действие. */
  border-color: var(--gold); color: var(--gold);
  transform: translateX(-50%);
}

.scard-photo {
  height: 48%;
  background: linear-gradient(135deg, #3a3327 0%, #1f1c17 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.scard-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 60%);
}
.scard-photo .art { font-size: 76px; opacity: .35; }
.scard-photo .stamp-row {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; z-index: 2;
}
.stamp-pill {
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  color: var(--ink); padding: 4px 10px; border-radius: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
}
.ev-floater {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  background: var(--buy); color: #06231a;
  padding: 7px 16px; border-radius: 100px;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 8px 24px rgba(110,231,183,.4);
  white-space: nowrap;
}
.ev-floater.is-watch { background: var(--watch); color: #3c2e00; box-shadow: 0 8px 24px rgba(253,224,71,.4); }
.ev-floater.is-waitlist { background: var(--waitlist); color: #1e0a4a; box-shadow: 0 8px 24px rgba(167,139,250,.4); }

.scard-body { padding: 24px 20px 18px; height: 52%; display: flex; flex-direction: column; }
.scard-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem; font-weight: 600; line-height: 1.15;
  color: var(--ink); margin: 0 0 6px;
}
.scard-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 9px; }
/* «Находки рядом» (Avito-style): метка соседнего региона. */
.nearby-tag {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gold, #c9a55b);
  border: 1px solid var(--gold, #c9a55b); border-radius: 5px;
  padding: 0 4px; margin-left: 3px; vertical-align: middle; opacity: .85;
}
.scard-prices {
  display: flex; align-items: baseline; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  padding: 9px 11px;
  background: var(--bg-3);
  border-radius: 9px;
  margin-bottom: 10px;
}
.scard-prices .start { font-size: 1rem; font-weight: 700; color: var(--ink); }
.scard-prices .arr { color: var(--muted); }
.scard-prices .market { font-size: 12px; color: var(--ink-soft); }
.scard-prices .market b { color: var(--gold); font-weight: 600; }
.scard-reason {
  font-size: 11.5px; color: var(--ink-soft); line-height: 1.5;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.scard-reason b { color: var(--ink); font-weight: 600; }

.deck-actions {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  padding: 14px 22px calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.action-col { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.action-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--ink); font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .12s ease;
}
.action-btn:active { transform: scale(.92); }
.action-btn.skip { color: var(--skip); border-color: rgba(239,68,68,.4); box-shadow: 0 8px 22px rgba(239,68,68,.16); }
.action-btn.fav { color: var(--fav); border-color: rgba(253,224,71,.45); box-shadow: 0 8px 22px rgba(253,224,71,.16); }
.action-btn.open {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1c1206; border-color: transparent;
  font-size: 22px; font-weight: 800;
  box-shadow: 0 12px 32px rgba(201,165,91,.42);
}
.action-hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; color: var(--muted); letter-spacing: .12em;
  text-transform: uppercase;
}

/* ═══ Settings / filter ═══ */
.set-block { padding: 8px 18px 16px; }
.set-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.set-chip {
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-soft);
  padding: 10px 15px; border-radius: 100px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .12s ease;
}
.set-chip.is-on { border-color: var(--gold); background: rgba(201,165,91,.13); color: var(--ink); }
.set-chip--lock { opacity: .5; }
.set-dist { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 6px; }
.set-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ═══ Deck empty state ═══ */
.deck-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 30px; text-align: center;
  gap: 10px;
}
.deck-empty .emoji { font-size: 60px; filter: grayscale(.3); margin-bottom: 6px; }
.deck-empty h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem; font-weight: 600;
  color: var(--ink); margin: 0;
  line-height: 1.1;
}
.deck-empty h2 em { color: var(--gold); font-style: italic; }
.deck-empty p {
  font-size: 13.5px; color: var(--ink-soft);
  margin: 0 0 12px; line-height: 1.5;
}
.end-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; width: 100%; max-width: 320px; margin-bottom: 18px;
}
.end-stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 6px;
}
.end-stat .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem; font-weight: 700; color: var(--ink);
  line-height: 1;
}
.end-stat.gold .num { color: var(--gold); }
.end-stat .label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px; font-weight: 600;
}

/* ═══ DETAIL ═══ */
.detail-hero {
  position: relative; height: 220px;
  margin: 14px 22px 14px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #3a3327, #1f1c17);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; opacity: .9;
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 50%);
}
.gallery-dots {
  position: absolute; bottom: 12px; left: 12px; z-index: 1;
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-soft);
  background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 6px;
}
.ev-big {
  position: absolute; bottom: 12px; right: 12px; z-index: 1;
  background: var(--buy); color: #06231a;
  padding: 7px 14px; border-radius: 100px;
  font-weight: 800; font-size: 12.5px;
}
.ev-big.is-watch { background: var(--watch); color: #3c2e00; }
.ev-big.is-waitlist { background: var(--waitlist); color: #1e0a4a; }

.detail-head { padding: 0 22px; }
.detail-head h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem; font-weight: 600;
  margin: 0 0 5px; line-height: 1.12; color: var(--ink);
}
.detail-head h1 em { color: var(--gold); font-style: italic; }
.detail-head .sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.detail-prices {
  display: flex; gap: 10px;
  padding: 13px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; margin: 0 22px 14px;
  font-family: "JetBrains Mono", monospace;
}
.detail-prices .col { flex: 1; }
.detail-prices .col .l {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.detail-prices .col .v {
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
/* Ядро всей затеи: две цены рядом. Слева синяя — факт с torgi (столько стоит
   вход). Справа золотая — догадка модели (столько, по её мнению, стоит рынок).
   Раньше отличались только подписью «оценка ИИ», теперь видно цветом. */
.detail-prices .col.gold .v { color: var(--gold); }
.detail-prices .col.trust .v { color: var(--trust-2); }
.detail-prices .col.trust .l { color: var(--trust); }
.detail-prices .div { width: 1px; background: var(--line); }

/* Факты лота (VIN, пробег, год) — данные с torgi, а не мнение модели.
   Отсюда синяя подложка и синие подписи: блок читается как «это проверено». */
.facts-grid {
  margin: 0 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--trust-line); border: 1px solid var(--trust-line);
  border-radius: 12px; overflow: hidden;
}
.facts-grid > div { background: var(--trust-bg); padding: 11px 13px; }
.facts-grid .l { font-size: 10.5px; color: var(--trust); margin-bottom: 2px; }
.facts-grid .v {
  font-size: 12.5px; font-family: "JetBrains Mono", monospace;
  color: var(--ink);
}
.facts-grid .v.green { color: var(--buy); font-family: "Inter", sans-serif; font-weight: 600; }
.facts-grid .v.red { color: var(--skip); font-family: "Inter", sans-serif; font-weight: 600; }

.reasoning-block {
  margin: 0 22px;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 12px; color: var(--ink-soft); line-height: 1.6;
}
.reasoning-block p { margin: 0 0 8px; }
.reasoning-block p:last-child { margin: 0; }
.reasoning-block b { color: var(--ink); font-weight: 600; }

/* Чек-лист «Перед ставкой» — что проверить перед торгами. */
.checklist { margin: 0 22px; display: flex; flex-direction: column; gap: 7px; }
.check-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.45;
  padding: 9px 11px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line, rgba(255,255,255,.06));
  border-radius: 9px;
}
.check-item .ci-ico { font-size: 14px; line-height: 1.3; flex-shrink: 0; }

/* «Как купить» — пошаговый план из данных лота. Номера шагов — синие (--trust):
   план собран из фактов реестра (площадка, задаток, даты), не из мнения ИИ. */
.plan { margin: 0 22px; display: flex; flex-direction: column; gap: 8px; }
.plan-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-line);
  border-radius: 9px;
}
.ps-num {
  flex-shrink: 0;
  width: 20px; height: 20px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--trust-2);
  border: 1px solid var(--trust-line); border-radius: 50%;
}
.ps-body { min-width: 0; }
.ps-title { font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 3px; }
.ps-text { font-size: 12px; color: var(--ink-soft); line-height: 1.45; }

.detail-bottom {
  position: sticky; bottom: 0;
  padding: 12px 22px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: linear-gradient(0deg, var(--bg) 75%, transparent);
  display: flex; gap: 8px;
}

/* ═══ FAVORITES ═══ */
.fav-list { padding: 14px 22px 22px; }
.fav-item {
  display: flex; gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.fav-item:last-child { border-bottom: 0; }
.fav-thumb {
  width: 74px; height: 74px; flex: 0 0 auto;
  border-radius: 11px;
  background: linear-gradient(135deg, #2a2520, #1f1c17);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--muted);
}
.fav-thumb .ev-mini {
  position: absolute; bottom: -7px; right: -5px;
  background: var(--buy); color: #06231a;
  padding: 2px 6px; border-radius: 100px;
  font-size: 10px; font-weight: 700;
}
.fav-thumb .ev-mini.is-waitlist { background: var(--waitlist); color: #1e0a4a; }
.fav-thumb .ev-mini.is-watch { background: var(--watch); color: #3c2e00; }
.fav-body { flex: 1; min-width: 0; }
.fav-title {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  line-height: 1.25; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fav-meta { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.fav-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
}
.fav-price-row .p { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.fav-price-row .market { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.fav-price-row .deadline { font-size: 11px; color: var(--watch); }
/* Realty-находка: бейдж выгоды в заголовке + короткий разбор. */
.fav-item.is-find { background: linear-gradient(90deg, rgba(232,71,75,.05), transparent); }
.realty-tag {
  display: inline-block; vertical-align: middle;
  font-size: 9.5px; font-weight: 800; letter-spacing: .01em;
  padding: 1px 6px; border-radius: 100px; margin-right: 3px;
  background: var(--buy); color: #06231a;
}
.realty-tag.is-watch { background: var(--watch); color: #3c2e00; }
.realty-tag.is-waitlist { background: var(--waitlist); color: #1e0a4a; }
.realty-why {
  font-size: 11px; color: var(--ink-soft); line-height: 1.35; margin-top: 5px;
}
.fav-empty {
  text-align: center; padding: 80px 30px;
  color: var(--ink-soft);
}
.fav-empty .ico { font-size: 56px; opacity: .55; margin-bottom: 12px; }
.fav-empty h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600; color: var(--ink); margin: 0 0 8px;
  font-size: 1.4rem;
}

/* ═══ PROFILE ═══ */
.profile-card {
  margin: 14px 22px 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.profile-row {
  display: flex; justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.profile-row:last-child { border-bottom: 0; }
.profile-row .l { color: var(--ink-soft); font-size: 14px; }
.profile-row .v {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700; color: var(--ink); font-size: 14px;
}

.tariffs-list { padding: 0 22px; }
.tariff-card {
  display: block;
  padding: 15px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.tariff-card.is-current {
  border-color: var(--gold);
  background: rgba(201,165,91,.06);
}
.tariff-card .row1 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tariff-card .name {
  font-size: 14px; font-weight: 700; color: var(--ink);
  letter-spacing: .04em;
}
.tariff-card.is-current .name { color: var(--gold); }
.tariff-card .price {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700; font-size: 15px; color: var(--gold);
}
.tariff-card .desc {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.5;
}
/* Тумблер периода оплаты (Месяц | Год) */
.pay-period {
  display: flex; gap: 6px; margin: 0 22px 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px;
}
.pp-opt {
  flex: 1; padding: 9px 0; border: 0; background: transparent;
  color: var(--ink-soft); font-size: 13px; font-weight: 700;
  border-radius: 9px; cursor: pointer; font-family: inherit;
}
.pp-opt.is-active { background: rgba(201,165,91,.14); color: var(--gold); }
.pp-save { font-size: 10.5px; color: var(--buy); font-weight: 800; margin-left: 2px; }
/* Популярный тир + подпись ₽/день·экономия */
.tariff-card.pop { border-color: rgba(201,165,91,.5); background: rgba(201,165,91,.05); }
.tariff-card .badge-pop {
  display: inline-block; margin-left: 7px; vertical-align: middle;
  font-size: 9.5px; font-weight: 800; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 100px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2, #e0b866)); color: #1a1206;
}
.tariff-card .price .per { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.permo-wrap { margin-bottom: 6px; }
.permo { font-size: 11.5px; color: var(--gold); font-weight: 600; }

/* ═══ Toast ═══ */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.toast.is-show { opacity: 1; }
.toast[hidden] { display: none; }

/* ── Vertical toggle (Авто / Недвижимость) ── */
.vtoggle {
  position: relative;
  display: flex;
  margin: 12px 16px 2px;
  padding: 4px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
}
/* Скользящая плашка активной опции — едет влево/вправо с лёгким «отскоком». */
.vtoggle::before {
  content: '';
  position: absolute; z-index: 0;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: linear-gradient(125deg, #e8474b, #f5814a);
  box-shadow: 0 5px 18px rgba(232,71,75,.45), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .28s cubic-bezier(.34, 1.45, .5, 1);
}
.vtoggle.pos2::before { transform: translateX(100%); }
.vtoggle-opt {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px;
  border: none; border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: color .2s ease;
}
.vtoggle-opt.is-active { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.vtoggle-opt.is-soon { color: var(--muted); }
.vtoggle-opt.is-soon:active { background: var(--line); }
.vtoggle-soon {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--line-2); color: var(--gold-2);
  padding: 2px 5px; border-radius: 5px;
}

/* ═══ Экран входа / регистрации (веб-аккаунт без Telegram) ═══ */
/* В режиме входа прячем общую шапку — экран самодостаточен. */
body.is-auth .topbar { display: none; }

#screen-auth {
  align-items: center; justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
.auth-wrap {
  width: 100%; max-width: 380px;
  margin: auto;
  padding: 40px 26px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 8px;
}
.auth-brand img {
  width: 30px; height: 30px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201,165,91,.45));
}
.auth-brand span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em;
}
.auth-brand span em { color: var(--gold); font-style: italic; }
.auth-sub {
  text-align: center; color: var(--ink-soft);
  font-size: 13.5px; line-height: 1.4;
  margin: 0 auto 22px; max-width: 280px;
}
.auth-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1; padding: 10px 8px;
  border: none; border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.auth-tab.is-active {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1206;
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px; /* 16px — чтобы iOS не зумил при фокусе */
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease;
  -webkit-user-select: text; user-select: text;
}
.auth-input::placeholder { color: var(--muted); }
.auth-input:focus { border-color: var(--gold); }
.auth-captcha { min-height: 0; }
.auth-captcha[hidden] { display: none; }
.auth-error {
  color: var(--skip);
  font-size: 13px; line-height: 1.4;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px;
  padding: 9px 12px;
}
.auth-error[hidden] { display: none; }
#auth-submit { margin-top: 4px; padding: 15px; font-size: 13px; }
.auth-foot {
  text-align: center; color: var(--muted);
  font-size: 12.5px; line-height: 1.45;
  margin: 16px auto 0; max-width: 280px;
}
.auth-foot b { color: var(--ink-soft); }

/* ═══ Баннер «подтвердите почту» (веб-аккаунт) ═══ */
.verify-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 2px;
  padding: 11px 13px;
  background: linear-gradient(180deg, rgba(201,165,91,.14), rgba(201,165,91,.07));
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.verify-banner[hidden] { display: none; }
.verify-banner .vb-ico { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.verify-banner .vb-text {
  flex: 1 1 auto; min-width: 0;
  font-size: 12.5px; line-height: 1.35; color: var(--ink-soft);
}
.verify-banner .vb-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0; border-radius: 9px;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #1c1206; font-weight: 700; font-size: 11.5px;
  cursor: pointer; white-space: nowrap;
}
.verify-banner .vb-btn:active { transform: scale(.97); }
.verify-banner .vb-btn:disabled { opacity: .6; }

/* ═══ Десктоп/планшет: мобильный апп-шелл центрируем колонкой ═══ */
/* Мини-апп свёрстан под ширину телефона (Telegram WebApp). В широком браузере
   (веб-версия без Telegram) НЕ растягиваем на весь экран — иначе кнопки тянутся
   через всю ширину, а фото (фикс. высота) показывает лишь тонкую полоску.
   Центрируем колонкой ~440px на приглушённом фоне — стандартный приём
   мобильных веб-приложений (app shell: шапка + скролл-контент). */
@media (min-width: 480px) {
  html {
    background: radial-gradient(120% 80% at 50% 0%, #17130c 0%, #0a0908 45%, #050505 100%);
  }
  body {
    max-width: 440px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  }
}

/* ═══ Платная стена (locked находки) ═══ */
.paywall {
  text-align: center;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(201,165,91,.13), rgba(201,165,91,.04));
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.paywall .pw-ico { font-size: 30px; line-height: 1; }
.paywall .pw-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 6px 0 5px;
  letter-spacing: -.01em;
}
.paywall .pw-sub { color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; margin: 0 auto 15px; max-width: 320px; }
.paywall .pw-btn { width: 100%; padding: 14px; font-size: 13px; }
/* На закрытой детали приглушаем цены (●●●) — взгляд ведём к CTA «Оформить». */
#screen-detail.is-locked .detail-prices { opacity: .5; }

/* ═══ ONBOARDING wizard (новичок: марка → бюджет → регион → находки) ═══ */
body.is-onboarding .topbar { display: none; }
#screen-onboarding { padding: 0; }
.ob-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 4px;
}
.ob-dots { display: flex; gap: 6px; }
.ob-dots span {
  width: 24px; height: 4px; border-radius: 100px; background: var(--bg-3);
  transition: background .2s ease;
}
.ob-dots span.is-on { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.ob-skip {
  background: transparent; border: 0; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 4px 2px;
}
.ob-scroll {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 20px 16px;
}
.ob-scroll::-webkit-scrollbar { width: 0; }
.ob-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem; font-weight: 600; color: var(--ink);
  margin: 6px 0 6px; letter-spacing: -.01em;
}
.ob-title em { color: var(--gold); font-style: italic; }
.ob-sub { color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; margin: 0 0 16px; }
.ob-foot {
  display: flex; gap: 8px;
  padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: linear-gradient(0deg, var(--bg) 75%, transparent);
}
.ob-foot .btn-line { flex: 0 0 auto; }
.ob-foot .btn-gold { flex: 1; }
/* результат */
.ob-result-head { text-align: center; margin: 6px 0 18px; }
.ob-result-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.2rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.ob-result-cap { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.ob-card {
  display: flex; gap: 11px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; margin-bottom: 8px; cursor: pointer;
}
.ob-card:active { background: var(--bg-3); }
.ob-card-thumb {
  width: 56px; height: 56px; border-radius: 9px; flex: 0 0 auto;
  background: var(--bg-3); display: flex; align-items: center; justify-content: center;
  font-size: 26px; background-size: cover; background-position: center;
}
.ob-card-body { flex: 1; min-width: 0; }
.ob-card-title { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-card-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ob-card-ev { font-size: 12.5px; font-weight: 700; color: var(--gold); margin-top: 3px; }
.ob-empty { text-align: center; color: var(--ink-soft); padding: 26px 10px; }
.ob-empty .ico { font-size: 38px; }
.ob-empty h3 { color: var(--ink); margin: 10px 0 6px; font-size: 1.3rem; }
.ob-empty p { font-size: 13.5px; line-height: 1.45; margin: 0 auto; max-width: 300px; }

/* ═══ REALTY лента-дискавери (вкладка «Недвижимость») ═══ */
.realty-hint {
  margin: 0 18px 12px; padding: 11px 13px;
  background: rgba(201,165,91,.07); border: 1px solid var(--line);
  border-radius: 12px; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft);
}
#realty-list, #cars-list { padding: 0 18px 8px; }
/* Суб-тумблер (Находки/Все авто) — НЕ красный пилл, а лёгкие таб-вкладки
   с золотым скользящим подчёркиванием. Чтобы не сливался с главным тумблером. */
.vtoggle--sub {
  margin: 0 16px 12px;
  padding: 0 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.vtoggle--sub::before {
  top: auto; bottom: -1px; left: 2px;
  height: 2.5px; width: calc(50% - 2px);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 10px rgba(201, 165, 91, .5);
}
.vtoggle--sub .vtoggle-opt { padding: 8px 6px; font-size: 13px; }
.vtoggle--sub .vtoggle-opt.is-active { color: var(--gold-2); text-shadow: none; }
.vtoggle--sub .vtoggle-opt:not(.is-active) { color: var(--muted); }
.realty-empty { text-align: center; color: var(--ink-soft); padding: 34px 16px; }
.realty-empty .ico { font-size: 40px; }
.realty-empty p { font-size: 13.5px; line-height: 1.45; margin: 10px auto 0; max-width: 290px; }

/* ═══ «Проверить лот» в «Все авто» (монетизация) ═══ */
.car-check-btn {
  margin-top: 8px; width: 100%; padding: 9px;
  background: rgba(201,165,91,.12); color: var(--gold);
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.car-check-btn:disabled { opacity: .7; }
.car-check-result {
  margin-top: 8px; padding: 10px 11px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 9px;
}
.cr-verdict { font-size: 13px; font-weight: 700; color: var(--buy, #6ee7b7); }
.cr-verdict.is-watch { color: var(--gold); }
.cr-verdict.is-waitlist { color: var(--ink-soft); }
.cr-line { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.cr-line b { color: var(--ink); }
.cr-reason { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.cr-risks { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; }
.cr-risk { font-size: 11.5px; color: var(--ink-soft); }
.cr-paywall { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.cr-pay-btn {
  margin-top: 7px; width: 100%; padding: 9px;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #1c1206; border: 0; border-radius: 9px;
  font-weight: 700; font-size: 12px; cursor: pointer;
}

/* ═══ «Показать на карте» + модалка (недвижка/земля) ═══ */
.btn-map {
  width: 100%; margin: 8px 0 2px; padding: 11px;
  background: rgba(201,165,91,.10); color: var(--gold-2);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s ease;
}
.btn-map:active { background: rgba(201,165,91,.18); }
.btn-map[hidden] { display: none; }

body.modal-open { overflow: hidden; }

.map-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
}
.map-modal[hidden] { display: none; }
.map-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.66); backdrop-filter: blur(3px);
}
.map-modal-sheet {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,.6);
  animation: mapSheetUp .22s ease;
}
@keyframes mapSheetUp { from { transform: translateY(14px); opacity: .4; } to { transform: none; opacity: 1; } }
.map-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.map-modal-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.map-modal-x {
  width: 30px; height: 30px; flex: 0 0 auto;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer;
}
.map-modal-x:active { background: var(--line); }
.map-modal-addr {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.4;
  margin-bottom: 10px;
}
.map-modal-frame {
  width: 100%; height: 58vh; max-height: 460px;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
}
.map-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-modal-open { width: 100%; margin-top: 10px; text-align: center; }
