:root {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;

  --coral: #FF4D2E;
  --coral-soft: #FFF0ED;
  --coral-grad: linear-gradient(135deg, #FF5E3A 0%, #FF2D55 100%);
  --ocean: #0088FF;
  --ocean-soft: #EBF5FF;
  --ocean-grad: linear-gradient(135deg, #0088FF 0%, #00C2B8 100%);
  --teal: #06B6D4;
  --teal-soft: #ECFEFF;
  --emerald: #10B981;
  --emerald-soft: #ECFDF5;
  --gold: #F59E0B;
  --gold-soft: #FEF3C7;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.16);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --dock-h: 72px;
}

body.dark {
  --bg: #0B1120;
  --surface: #131C31;
  --surface-2: #1E2D4A;
  --text: #F8FAFC;
  --muted: #B0C0D6;
  --border: #263656;
  --coral-soft: rgba(255, 77, 46, 0.18);
  --ocean-soft: rgba(0, 136, 255, 0.18);
  --teal-soft: rgba(6, 182, 212, 0.18);
  --emerald-soft: rgba(16, 185, 129, 0.18);
  --gold-soft: rgba(245, 158, 11, 0.18);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.42;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  outline: none;
}

button { cursor: pointer; }

.hidden { display: none !important; }

.ico {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.app-shell {
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 16px);
}

.tab-panel { display: none; width: 100%; }
.tab-panel.active { display: block; animation: fadeInUp 0.2s ease-out; }
.tab-panel-map.active { display: block; }

@keyframes fadeInUp {
  from { opacity: 0.4; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- HERO ОБЗОР --- */
.hero-stage {
  position: relative;
  z-index: 15;
  width: 100%;
  height: 256px;
  overflow: visible;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-md);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 0 28px 28px;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.45) 0%, rgba(11, 17, 32, 0.08) 38%, rgba(11, 17, 32, 0.82) 100%);
}

.hero-top-controls {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  max-width: 100%;
  padding: calc(env(safe-area-inset-top, 10px) + 10px) 12px 0;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 9px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}

#btnCitySwitch {
  flex: 0 1 auto;
}

#headerCityName {
  min-width: 0;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mini-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-right-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.glass-badge .ico { width: 13px; height: 13px; color: #FBBF24; flex-shrink: 0; }

.glass-icon-btn {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  flex-shrink: 0;
}

.pro-chip-btn {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--coral-grad);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.40);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 374px) {
  #headerCityName { max-width: 82px; }
  .hero-top-controls { padding-inline: 10px; gap: 4px; }
  .hero-right-controls { gap: 4px; }
}

.hero-bottom-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: #FFFFFF;
}

.hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 77, 46, 0.90);
  margin-bottom: 5px;
}

.hero-city-title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hotel-glass-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-align: left;
  color: #FFFFFF;
}

.hotel-pin-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--coral-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hotel-glass-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hotel-glass-text strong {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-glass-text small {
  font-size: 11.5px;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-edit-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  flex-shrink: 0;
}

/* --- КОНТЕНТ ОБЗОРА --- */
.home-content { padding: 14px 14px 12px; }
.page-wrap { padding: calc(env(safe-area-inset-top, 10px) + 14px) 14px 16px; }

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.qa-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px 10px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  min-width: 0;
  transition: transform 0.15s ease;
}

.qa-tile:active { transform: scale(0.96); }

.qa-ico-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.qa-coral .qa-ico-wrap { background: var(--coral-grad); }
.qa-ocean .qa-ico-wrap { background: var(--ocean-grad); }
.qa-teal .qa-ico-wrap { background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%); }
.qa-emerald .qa-ico-wrap { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }

.qa-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.qa-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: 2px;
}

/* Заголовки секций */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 11px;
}

.sec-head-tight { margin: 8px 0 10px; align-items: center; }

.sec-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sec-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.sec-link-btn {
  color: var(--coral);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--coral-soft);
  flex-shrink: 0;
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Карусель «Рядом с отелем» (крупные вертикальные фото-открытки) */
.near-cards-rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 -14px 18px;
  padding-left: 14px;
  padding-right: 14px;
  scrollbar-width: none;
}
.near-cards-rail::-webkit-scrollbar { display: none; }

.near-photo-card {
  position: relative;
  flex: 0 0 184px;
  height: 224px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.near-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.near-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.0) 40%, rgba(15, 23, 42, 0.88) 100%);
}

.near-card-dist {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.near-card-fav {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.near-card-fav.saved { background: var(--coral); }
.near-card-fav.saved svg { fill: #FFFFFF; }

.near-card-copy {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 11px;
  color: #FFFFFF;
}

.near-card-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FCA5A5;
  margin-bottom: 3px;
}

.near-card-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.near-card-price {
  font-size: 11.5px;
  opacity: 0.9;
  margin-top: 3px;
}

/* Витрина блюд */
.dishes-cards-rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  margin: 0 -14px 18px;
  padding: 2px 14px 8px;
  scrollbar-width: none;
}
.dishes-cards-rail::-webkit-scrollbar { display: none; }

.dish-card {
  flex: 0 0 198px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
}

.dish-card-media {
  position: relative;
  height: 110px;
  width: 100%;
  overflow: hidden;
}

.dish-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-price-tag {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.80);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}

.dish-card-body { padding: 10px 11px 12px; }
.dish-card-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 4px;
}
.dish-card-desc {
  font-size: 11.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Поиск, сортировка и фильтры категорий */
.explore-controls-block { margin-bottom: 12px; }

.sort-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.sort-pill-btn .ico { width: 14px; height: 14px; color: var(--ocean); }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.search-ico { color: var(--muted); width: 18px; height: 18px; }
.search-input { flex: 1; min-width: 0; font-size: 14px; }
.search-input::placeholder { color: var(--muted); }
.clear-search { color: var(--muted); display: inline-flex; padding: 2px; }

.cat-pills-rail, .chip-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 2px 14px 6px;
  scrollbar-width: none;
}
.cat-pills-rail::-webkit-scrollbar, .chip-rail::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.cat-pill img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.cat-pill.active {
  background: var(--coral-grad);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(255, 77, 46, 0.30);
}

.chip-btn {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip-btn.active {
  background: var(--text);
  color: var(--surface);
  border-color: transparent;
}

/* 2-КОЛОНОЧНАЯ ФОТО-СЕТКА МЕСТ */
.places-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.place-grid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
}

.pg-media {
  position: relative;
  height: 112px;
  width: 100%;
  overflow: hidden;
}

.pg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-dist-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pg-fav-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pg-fav-btn .ico { width: 14px; height: 14px; }
.pg-fav-btn.saved { background: var(--coral); color: #FFFFFF; }
.pg-fav-btn.saved svg { fill: #FFFFFF; }

.pg-body {
  padding: 9px 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pg-cat-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ocean);
}

.pg-cat-tag.tag-food { color: #EA580C; }
.pg-cat-tag.tag-secret { color: #7C3AED; }
.pg-cat-tag.tag-market { color: #D97706; }

.pg-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pg-meta-row {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.pg-price {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: var(--text);
}

.pg-rating {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--gold);
}

.show-more-wrap { margin-top: 14px; }
.btn-outline-wide {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* --- ВКЛАДКА 2: ПОЛНОЭКРАННАЯ КАРТА --- */
.map-fullscreen-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--dock-h) - 10px);
  min-height: 540px;
  background: #CBE9F4;
  overflow: hidden;
}

body.dark .map-fullscreen-stage { background: #0B192C; }

.map-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.map-viewport:active { cursor: grabbing; }

.map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1200 / 1733;
  transform-origin: 0 0;
  will-change: transform;
}

.map-raster-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.map-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.map-pins-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%) scale(calc(1 / var(--map-zoom, 1)));
  transform-origin: bottom center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 4;
}

.map-pin-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--ocean);
  transition: transform 0.15s ease;
}

.map-pin-food .map-pin-dot { background: #F97316; }
.map-pin-fun .map-pin-dot { background: #0EA5E9; }
.map-pin-secret .map-pin-dot { background: #8B5CF6; }
.map-pin-market .map-pin-dot { background: #EAB308; color: #0F172A; }

.map-pin-dot svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-pin.is-route-step {
  z-index: 10;
}

.map-pin.is-route-step .map-pin-dot {
  width: 28px;
  height: 28px;
  background: var(--coral-grad);
  font-size: 12px;
}

.plan-minimap-canvas .map-pin.is-route-step .map-pin-dot {
  width: 22px;
  height: 22px;
  border-width: 2px;
  font-size: 10.5px;
}

.map-cluster {
  position: absolute;
  transform: translate(-50%, -50%) scale(calc(1 / var(--map-zoom, 1)));
  transform-origin: center center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.90);
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.36);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  font-variant-numeric: tabular-nums;
}

.map-pin.selected { z-index: 12; }
.map-pin.selected .map-pin-dot {
  transform: scale(1.32);
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.28), 0 6px 16px rgba(15, 23, 42, 0.40);
}

.map-pin-tag {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.30);
}

.map-home-pin {
  position: absolute;
  transform: translate(-50%, -100%) scale(calc(1 / var(--map-zoom, 1)));
  transform-origin: bottom center;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.home-pin-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-grad);
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 77, 46, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-pin-dot svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-minimap-canvas .home-pin-dot {
  width: 22px;
  height: 22px;
  border-width: 2px;
}
.plan-minimap-canvas .home-pin-dot svg { width: 11px; height: 11px; }

/* Верхняя панель поверх карты */
.map-top-overlay {
  position: absolute;
  top: calc(env(safe-area-inset-top, 10px) + 10px);
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.map-top-overlay > * { pointer-events: auto; }

.map-top-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  color: #0F172A;
}

body.dark .map-top-pill {
  background: rgba(19, 28, 49, 0.92);
  color: #F8FAFC;
  border: 1px solid var(--border);
}

.map-search-field { flex: 1; min-width: 0; font-size: 13.5px; }

.map-count-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--coral-grad);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.map-chips-rail {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.map-chips-rail::-webkit-scrollbar { display: none; }

.map-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: #0F172A;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

body.dark .map-chip {
  background: rgba(19, 28, 49, 0.90);
  color: #F8FAFC;
  border: 1px solid var(--border);
}

.map-chip.active {
  background: var(--coral-grad);
  color: #FFFFFF;
}

.map-pick-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.map-pick-cancel {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--coral);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 11.5px;
}

/* Боковые контролы карты */
.map-side-controls {
  position: absolute;
  right: 12px;
  top: 118px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.map-fab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.map-fab-pill.sat-active {
  background: rgba(255, 255, 255, 0.96);
  color: #0F172A;
  border: 1.5px solid var(--coral);
}

.map-zoom-group {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-fab-sq {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  font-size: 19px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.map-zoom-group .map-fab-sq {
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #E2E8F0;
}
.map-zoom-group .map-fab-sq:last-child { border-bottom: 0; }

.map-fab-sq.pick-active,
.map-fab-coral {
  background: var(--coral-grad);
  color: #FFFFFF;
}

/* Плавающая нижняя карточка места на карте */
.map-bottom-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 25;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 11px;
  align-items: center;
}

.mbs-thumb {
  width: 84px;
  height: 84px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
}

.mbs-body {
  flex: 1;
  min-width: 0;
}

.mbs-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ocean);
  margin-bottom: 2px;
}

.mbs-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbs-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbs-actions {
  display: flex;
  gap: 7px;
}

/* --- ВКЛАДКА 3: ПЛАН ПО ДНЯМ --- */
.plan-minimap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}

.plan-minimap-viewport {
  position: relative;
  width: 100%;
  height: 184px;
  overflow: hidden;
  background: #CBE9F4;
}

.plan-minimap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1200 / 1733;
  transform-origin: 0 0;
}

.plan-minimap-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.plan-progress-wrap { flex: 1; min-width: 0; }
.plan-progress-label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 5px; }
.plan-progress-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.plan-progress-fill { height: 100%; border-radius: 999px; background: var(--emerald); width: 0%; transition: width 0.25s ease; }

.day-pills-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -14px 14px;
  padding: 2px 14px 4px;
  scrollbar-width: none;
}
.day-pills-rail::-webkit-scrollbar { display: none; }

.day-pill {
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.day-pill.active {
  background: var(--coral-grad);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(255, 77, 46, 0.28);
}

.day-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.timeline-card {
  display: flex;
  gap: 11px;
  padding: 11px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.timeline-card.checked {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, var(--surface) 0%, var(--emerald-soft) 100%);
}

.tl-step-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.tl-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--coral-grad);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-card.checked .tl-num { background: var(--emerald); }

.tl-line { flex: 1; width: 2px; background: var(--border); border-radius: 2px; }

.tl-photo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.tl-body { flex: 1; min-width: 0; }

.tl-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ocean);
}

.tl-title {
  margin: 3px 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.22;
  cursor: pointer;
}

.tl-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.tl-actions { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }

.tl-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tl-icon-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-check-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-check-slot.active {
  background: var(--emerald);
  color: #FFFFFF;
}

/* --- ВКЛАДКА 4: ВАЛЮТА --- */
.rate-ocean-hero {
  border-radius: 22px;
  padding: 16px;
  background: var(--ocean-grad);
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(0, 136, 255, 0.28);
  margin-bottom: 14px;
}

.rate-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.rate-hero-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11.5px;
  font-weight: 800;
}

.rate-hero-source { font-size: 12px; opacity: 0.92; font-weight: 600; }

.rate-hero-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rate-hero-meta {
  font-size: 12.5px;
  opacity: 0.92;
  margin: 4px 0 12px;
  font-variant-numeric: tabular-nums;
}

.mode-switch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.22);
}

.mode-seg {
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 700;
}

.mode-seg.active {
  background: #FFFFFF;
  color: #0F172A;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.currency-field {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface-2);
}

.currency-tag {
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}
.tag-vnd { background: var(--coral-grad); }
.tag-rub { background: var(--ocean-grad); }
.tag-usd { background: var(--emerald); }

.currency-input-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.currency-input-col label { font-size: 11px; color: var(--muted); font-weight: 700; }
.currency-input-col input {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  width: 100%;
}

.currency-sym { font-size: 18px; font-weight: 800; color: var(--muted); }

.quick-vnd-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.vnd-chip {
  padding: 7px 4px;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.vnd-chip.active { background: var(--coral-grad); color: #FFFFFF; }

.chain-accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.chain-acc-btn {
  width: 100%;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
}

.chain-acc-body { padding: 0 14px 14px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }
.field-box { display: flex; flex-direction: column; gap: 4px; }
.field-box label { font-size: 11px; color: var(--muted); font-weight: 700; }
.field-box input {
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
}

.chain-btn-row { display: flex; gap: 7px; align-items: center; justify-content: flex-end; margin-bottom: 8px; }
.chain-summary-box { font-size: 12px; color: var(--muted); line-height: 1.4; }

.money-guides-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mini-guide-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.mini-guide-card img {
  width: 66px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-guide-card strong { display: block; font-size: 13.5px; font-weight: 800; }
.mini-guide-card span { font-size: 11.5px; color: var(--muted); }

/* --- ВКЛАДКА 5: ГАЙДЫ · ФРАЗЫ · ВИДЖЕТЫ · PRO --- */
.guides-segment-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface-2);
  margin-bottom: 14px;
}

.gseg {
  padding: 8px 4px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
}

.gseg.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.gsub-view { display: none; }
.gsub-view.active { display: block; }

.guides-photo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.guide-photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
}

.guide-cover-box {
  position: relative;
  height: 132px;
  width: 100%;
  overflow: hidden;
}

.guide-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-cover-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}

.guide-cover-time {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
}

.guide-card-copy { padding: 12px 14px 14px; }
.guide-card-copy h3 { margin: 0 0 5px; font-size: 16px; font-weight: 800; line-height: 1.24; }
.guide-card-copy p { margin: 0; font-size: 13px; color: var(--muted); }

/* Фразы и таксисту домой */
.taxi-home-banner {
  border-radius: 22px;
  padding: 16px;
  background: var(--coral-grad);
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(255, 77, 46, 0.30);
  margin-bottom: 12px;
}

.taxi-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-bottom: 4px;
}

.taxi-viet-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.taxi-ru-sub { margin: 0 0 12px; font-size: 12.5px; opacity: 0.92; }

.btn-white-pill {
  padding: 9px 15px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 800;
  font-size: 13px;
}

.phrases-stack { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }

.phrase-row-card {
  padding: 13px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.phrase-viet { font-size: 15.5px; font-weight: 800; margin-bottom: 3px; }
.phrase-ru { font-size: 12.5px; color: var(--muted); }

/* Виджеты */
.widgets-grid { display: flex; flex-direction: column; gap: 11px; }
.widget-preview-card {
  padding: 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.w-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.w-badge { font-size: 11px; font-weight: 800; color: var(--muted); }
.w-pill-coral, .w-pill-ocean, .w-pill-emerald, .w-pill-gold {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.w-pill-coral { background: var(--coral-soft); color: var(--coral); }
.w-pill-ocean { background: var(--ocean-soft); color: var(--ocean); }
.w-pill-emerald { background: var(--emerald-soft); color: var(--emerald); }
.w-pill-gold { background: var(--gold-soft); color: #B45309; }
.w-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.w-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 11px; }

/* PRO */
.pro-inline-hero {
  position: relative;
  height: 196px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 14px;
}
.pro-inline-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-inline-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.25) 0%, rgba(11, 17, 32, 0.88) 100%);
}
.pro-inline-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #FFFFFF;
}
.pro-inline-copy h2 { margin: 6px 0 4px; font-size: 20px; font-weight: 800; }
.pro-inline-copy p { margin: 0; font-size: 12.5px; opacity: 0.9; }

.pro-badge-gold {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B 0%, #FB7185 100%);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pro-plans-inline { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.pro-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  text-align: left;
}
.pro-plan-row.active { border-color: var(--coral); background: var(--coral-soft); }
.pro-plan-row strong { display: block; font-size: 14.5px; font-weight: 800; }
.pro-plan-row span { font-size: 12px; color: var(--muted); }
.pro-price-col { font-size: 19px; font-weight: 800; color: var(--coral); flex-shrink: 0; }

.pro-preview-notice {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: 13px;
  margin-bottom: 12px;
}

/* --- КНОПКИ --- */
.btn-coral-wide, .btn-coral-sm, .btn-coral-xs, .btn-soft-sm, .btn-soft-md, .btn-ocean-xs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  border-radius: 14px;
  transition: transform 0.14s ease;
}

.btn-coral-wide {
  width: 100%;
  padding: 13px 16px;
  background: var(--coral-grad);
  color: #FFFFFF;
  font-size: 14.5px;
  box-shadow: 0 8px 20px rgba(255, 77, 46, 0.30);
}

.btn-coral-sm {
  padding: 9px 14px;
  background: var(--coral-grad);
  color: #FFFFFF;
  font-size: 13px;
}

.btn-coral-xs {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--coral-grad);
  color: #FFFFFF;
  font-size: 12px;
}

.btn-ocean-xs {
  padding: 7px 12px;
  border-radius: 11px;
  background: var(--ocean-grad);
  color: #FFFFFF;
  font-size: 12px;
}

.btn-soft-sm {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
}

.btn-soft-md {
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
}

/* --- НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ --- */
.bottom-dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(8px, env(safe-area-inset-bottom, 8px));
  height: 62px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px;
}

body.dark .bottom-dock {
  background: rgba(19, 28, 49, 0.92);
  border-color: var(--border);
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: color 0.15s ease, background 0.15s ease;
}

.dock-btn .ico { width: 20px; height: 20px; }

.dock-btn.active {
  color: var(--coral);
  background: var(--coral-soft);
  font-weight: 800;
}

/* --- МОДАЛКИ И ШТОРКИ --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(11, 17, 32, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.onb-sheet, .bottom-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.onb-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.onb-dots { display: flex; gap: 6px; }
.onb-dot { width: 18px; height: 5px; border-radius: 999px; background: var(--surface-2); transition: width 0.2s, background 0.2s; }
.onb-dot.active { width: 28px; background: var(--coral-grad); }
.onb-step-label { font-size: 12px; font-weight: 800; color: var(--muted); }
.onb-skip-btn { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.onb-pane { display: none; padding: 14px 16px 20px; overflow-y: auto; }
.onb-pane.active { display: block; }

.onb-hero-card {
  position: relative;
  height: 152px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
}
.onb-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onb-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 17, 32, 0.18), rgba(11, 17, 32, 0.86)); }
.onb-hero-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #FFFFFF; }
.onb-brand-line { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #FCA5A5; }
.onb-hero-txt h2 { margin: 2px 0 3px; font-size: 21px; font-weight: 800; }
.onb-hero-txt p { margin: 0; font-size: 12.5px; opacity: 0.9; }

.onb-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  margin-bottom: 11px;
  font-size: 13px;
  font-weight: 700;
}

.lang-seg-group { display: flex; gap: 4px; background: var(--surface); padding: 3px; border-radius: 10px; }
.lang-seg { padding: 4px 11px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--muted); }
.lang-seg.active { background: var(--coral-grad); color: #FFFFFF; }

.onb-city-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }

.onb-city-card {
  padding: 11px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--surface);
  text-align: left;
}
.onb-city-card.active { border-color: var(--coral); background: var(--coral-soft); }
.onb-city-card.locked { opacity: 0.88; background: var(--surface); }
.onb-city-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.onb-city-name { font-size: 14px; font-weight: 800; min-width: 0; }
.onb-city-badge { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--emerald-soft); color: var(--emerald); flex-shrink: 0; white-space: nowrap; }
.onb-city-card.locked .onb-city-badge { background: var(--ocean-soft); color: var(--ocean); }
.onb-city-sub { font-size: 11.5px; color: var(--muted); }

.onb-step-head { margin-bottom: 10px; }
.onb-step-head h2 { margin: 0 0 3px; font-size: 20px; font-weight: 800; }
.onb-step-head p { margin: 0; font-size: 12.5px; color: var(--muted); }

.onb-map-picker {
  position: relative;
  width: 100%;
  height: 224px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: crosshair;
  background: #CBE9F4;
}

.onb-map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1200 / 1733;
  transform-origin: 0 0;
  transition: transform 0.25s ease;
}

.onb-map-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.onb-home-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.marker-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 77, 46, 0.35);
  border: 2px solid #FF4D2E;
  margin-bottom: 2px;
}

.marker-core {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--coral-grad);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.onb-map-hint {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.80);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}

.onb-presets-rail {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.onb-presets-rail::-webkit-scrollbar { display: none; }

.hotel-preset-chip {
  padding: 7px 11px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.hotel-preset-chip.active { background: var(--coral-grad); color: #FFFFFF; }

.onb-inputs-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.clean-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
}

.onb-section-lbl { font-size: 12.5px; font-weight: 800; color: var(--muted); margin: 8px 0 8px; }

.days-choice-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.choice-pill {
  padding: 9px 4px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.choice-pill.active { background: var(--coral-grad); color: #FFFFFF; }

.style-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.style-card {
  padding: 11px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--surface);
  text-align: left;
}
.style-card.active { border-color: var(--coral); background: var(--coral-soft); }
.style-card strong { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 3px; }
.style-card span { font-size: 11.5px; color: var(--muted); display: block; }

.onb-footer { padding-top: 4px; }
.onb-footer-split { display: grid; grid-template-columns: 104px 1fr; gap: 9px; }

/* Модалка деталей места и гайда */
.sheet-hero-wrap { position: relative; height: 210px; width: 100%; flex-shrink: 0; }
.sheet-hero-compact { height: 170px; }
.sheet-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 17, 32, 0.35), rgba(11, 17, 32, 0.85)); }

.sheet-float-btn {
  position: absolute;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.sheet-close-pos { left: 12px; right: auto; }
.sheet-fav-pos { right: 12px; }
.sheet-fav-pos.saved { background: var(--coral); color: #FFFFFF; }
.sheet-fav-pos.saved svg { fill: #FFFFFF; }

.sheet-hero-badges { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.sheet-hero-title-over { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #FFFFFF; }
.sheet-hero-title-over h2 { margin: 4px 0 0; font-size: 19px; font-weight: 800; line-height: 1.2; }

.sheet-scroll-body { padding: 14px 16px 24px; overflow-y: auto; }
.detail-title { margin: 0 0 4px; font-size: 21px; font-weight: 800; line-height: 1.18; }
.detail-addr { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.detail-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.fact-box {
  padding: 9px 10px;
  border-radius: 13px;
  background: var(--surface-2);
}
.fact-box span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.fact-box strong { font-size: 12.5px; font-weight: 800; }

.detail-tip-box {
  padding: 11px 12px;
  border-radius: 15px;
  background: var(--ocean-soft);
  border: 1px solid rgba(0, 136, 255, 0.25);
  font-size: 13px;
  margin-bottom: 12px;
}

.detail-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }

.guide-step-item {
  padding: 11px 12px;
  border-radius: 15px;
  background: var(--surface-2);
  margin-bottom: 8px;
}
.guide-step-item strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.guide-step-item p { margin: 0; font-size: 13px; color: var(--text); }

.detail-badge-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
}
.detail-badge-coral {
  background: var(--coral-grad);
  color: #FFFFFF;
}
.detail-section-box {
  margin-bottom: 12px;
}
.detail-section-box h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.detail-section-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
}
.detail-menu-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.menu-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--surface-2);
}
.menu-item-row strong { display: block; font-size: 13px; font-weight: 800; }
.menu-item-row small { display: block; font-size: 11.5px; color: var(--muted); }
.menu-item-price { font-size: 12.5px; font-weight: 800; color: var(--coral); white-space: nowrap; }
.guide-highlights {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}
.empty-state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 26px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13.5px;
}
.mbs-close-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.onb-home-marker {
  transform: translate(-50%, -100%) scale(calc(1 / var(--onb-map-zoom, 1)));
  transform-origin: bottom center;
}

/* Полноэкранная карточка водителю */
.fs-phrase-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0F172A;
  color: #FFFFFF;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.fs-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--coral-grad);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.fs-viet-huge { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.fs-ru-line { font-size: 17px; color: #CBD5E1; margin-bottom: 8px; }
.fs-pron-line { font-size: 15px; color: #38BDF8; font-weight: 700; margin-bottom: 24px; }
.fs-actions-row { display: flex; gap: 10px; }

.toast-pill {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 10px) + 10px);
  bottom: auto;
  transform: translateX(-50%);
  z-index: 95;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Переключатель языка в шапке */
.header-lang-wrap {
  position: relative;
}
.glass-pill-sm {
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 800;
  gap: 3px;
  flex-shrink: 0;
}
.lang-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 152px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lang-pop-btn {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
}
.lang-pop-btn:hover,
.lang-pop-btn.active {
  background: var(--coral-soft);
  color: var(--coral);
}

/* 5 языков и 5 городов в онбординге */
.lang-seg-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.lang-seg-5 .lang-seg {
  padding: 6px 8px;
  font-size: 12px;
  text-align: center;
}
.onb-city-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
}
.onb-city-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.onb-city-info {
  flex: 1;
  min-width: 0;
}
.onb-city-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Умный поиск отеля в Шаге 2 */
.onb-hotel-search-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.search-bar-compact {
  margin: 0;
}
.onb-search-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.onb-search-status {
  font-size: 11.5px;
  color: var(--muted);
  margin-left: auto;
}
.onb-hotel-results {
  max-height: 180px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.hotel-res-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: transparent;
  color: var(--text);
}
.hotel-res-row:last-child { border-bottom: 0; }
.hotel-res-row:hover { background: var(--surface-2); }
.hotel-res-main strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.hotel-res-main small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.hotel-res-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ocean-soft);
  color: var(--ocean);
  white-space: nowrap;
}

/* Озвучка фраз (TTS) */
.taxi-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.btn-speak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.btn-speak-pill .ico {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.tts-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tts-lang-rail,
.tts-speed-rail {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.tts-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 2px;
}
.tts-pill,
.tts-rate-btn,
.tts-stop-btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--text);
}
.tts-pill.active,
.tts-rate-btn.active {
  background: var(--ocean-grad);
  color: #FFFFFF;
}
.tts-stop-btn {
  background: var(--coral-soft);
  color: var(--coral);
}
.phrase-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.phrase-row-main {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  color: var(--text);
  padding: 0;
}
.phrase-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-phrase-speak {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ocean-soft);
  color: var(--ocean);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-phrase-speak .ico {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.btn-ocean-sm {
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--ocean-grad);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
}
.btn-soft-xs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* Мини-инструменты во вкладке Виджеты */
.tool-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tool-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.tool-sub {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.tool-input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.tool-input-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.tool-chips-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 6px;
}
.tool-pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tool-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text);
}
.tool-pill.active {
  background: var(--coral-grad);
  color: #FFFFFF;
}
.bargain-result-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 12px;
}
.br-col {
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.br-col.br-accent {
  background: var(--coral-soft);
}
.br-col span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.br-col strong { font-size: 17px; font-weight: 800; color: var(--text); }
.br-col small { font-size: 12px; color: var(--ocean); font-weight: 700; }

.emergency-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.emg-row strong { display: block; font-size: 13px; font-weight: 800; }
.emg-row span { display: block; font-size: 11.5px; color: var(--muted); }
.emg-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Pro: сравнение и промокоды */
.pro-compare-card {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pc-head,
.pc-row {
  display: grid;
  grid-template-columns: 1fr 78px 72px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  font-size: 12.5px;
}
.pc-head {
  font-weight: 800;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.pc-row {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.pc-row:last-child { border-bottom: 0; }
.pc-row span:nth-child(2) { color: var(--muted); text-align: center; font-size: 11.5px; }
.pc-pro-col,
.pc-yes {
  text-align: center;
  font-weight: 800;
  color: var(--emerald);
}
.promo-box-card {
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.promo-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.promo-input {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.promo-status-line {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.promo-status-line.ok { color: var(--emerald); }
.promo-status-line.err { color: var(--coral); }
.price-strike {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600;
}
.pro-chip-btn.is-unlocked {
  background: var(--emerald);
  color: #FFFFFF;
}
.cv-eta-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFBF5;
  font-size: 10.5px;
  font-weight: 700;
}
.near-pro-upsell {
  flex: 0 0 220px;
  min-height: 210px;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(145deg, #0F172A, #0D7377);
  color: #FFFBF5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.near-pro-upsell h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.near-pro-upsell p { margin: 0 0 12px; font-size: 12px; color: #CBD5E1; line-height: 1.4; }
.cv-live-box {
  margin: 10px 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.cv-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cv-live-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cv-live-chip {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.widget-lock-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}
.widget-lock-pill.free { background: rgba(16, 185, 129, 0.14); color: #059669; }
.widget-lock-pill.pro { background: rgba(255, 84, 46, 0.14); color: #E03A17; }
.widget-preview-card.locked .btn-coral-sm {
  background: #0F172A;
}
.place-grid-card.pro-locked-card {
  position: relative;
}
.place-grid-card.pro-locked-card .pg-media img {
  filter: blur(2px) brightness(0.84);
}
.pg-pro-lock {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FF542E;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
}
