:root {
  --bg: #f1eff9;
  --sheet: #ffffff;
  --muted: #7c778e;
  --text: #171326;
  --line: #eae7f3;
  --accent: #5445ee;
  --accent2: #3d2fd4;
  --gold: #d4a244;
  --gold-soft: #fdf7ea;
  --green: #15803d;
  --green-soft: #dcfce7;
  --danger: #dc2626;
  --soft: #f4f2fb;
  --font: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  position: fixed;
  inset: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea, select { font-size: 16px; }
[hidden] { display: none !important; }

/* Desktop Shell */
.desktop-shell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.desktop-aside {
  display: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  background: #efeaff;
}

/* Map Layer */
.map-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  isolation: isolate;
  background: #efeaff;
  touch-action: pan-x pan-y;
}
#map {
  position: absolute;
  inset: 0;
  background: #efeaff;
}
#map > ymaps {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.map-fallback {
  display: grid;
  place-items: center;
  height: 45%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* Floating Map UI */
.map-ui {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.map-ui > * { pointer-events: auto; }
.map-hint, .map-pin { pointer-events: none !important; }

.top-brand-pill {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  z-index: 26;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 22px rgba(30, 20, 70, 0.14);
  cursor: pointer;
}
.top-brand-pill img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: block;
}

.route-pill {
  position: absolute;
  top: calc(54px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  border: 0;
  cursor: pointer;
  background: rgba(23, 19, 38, 0.9);
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(23, 19, 38, 0.22);
  white-space: nowrap;
  transition: transform 0.14s ease, background 0.14s ease;
}
.route-pill:active {
  transform: translateX(-50%) scale(0.96);
  background: #5445ee;
}

.map-hint {
  position: absolute;
  top: calc(54px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  z-index: 25;
  box-shadow: 0 6px 20px rgba(40, 30, 80, 0.14);
  white-space: nowrap;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -100%);
  z-index: 22;
  text-align: center;
}
.map-pin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(84, 69, 238, 0.38);
}
.map-pin.is-to .map-pin-badge {
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(212, 162, 68, 0.42);
}
.map-pin i {
  display: block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #171326;
  margin: 0 auto;
}

.pill-orders {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 26;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 22px rgba(30, 20, 70, 0.14);
  cursor: pointer;
}
.pill-orders .cnt {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
}

.fab {
  position: absolute;
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(30, 20, 70, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: bottom 0.22s ease, transform 0.14s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.fab:active { transform: scale(0.93); }
.fab-back { left: 12px; bottom: 0; }
.fab-geo { right: 12px; bottom: 0; }
.fab-geo.is-active {
  color: var(--accent);
  background: #f3f1ff;
  box-shadow: 0 8px 22px rgba(84, 69, 238, 0.26), inset 0 0 0 1.5px rgba(84, 69, 238, 0.32);
}
.fab-geo.is-loading {
  color: var(--accent);
  pointer-events: none;
}
.fab-geo.is-loading .geo-ico {
  animation: geoSpinPulse 0.95s ease-in-out infinite;
}
@keyframes geoSpinPulse {
  0%, 100% { transform: scale(0.88); opacity: 0.55; }
  50% { transform: scale(1.1); opacity: 1; }
}
.fab.static { position: static; transition: none; }

.map-zoom {
  position: absolute;
  right: 12px;
  bottom: 64px;
  z-index: 25;
  width: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(30, 20, 70, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: bottom 0.22s ease, opacity 0.18s ease;
}
.map-zoom-btn {
  width: 44px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.map-zoom-btn + .map-zoom-btn {
  border-top: 1px solid var(--line);
}
.map-zoom-btn:active {
  background: var(--soft);
  color: var(--accent);
}

/* User GPS Radar Dot on Yandex Map */
.ym-me-dot {
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: #0284c7;
  border: 3px solid #ffffff;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.55);
  pointer-events: none;
}
.ym-me-dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.24);
  animation: ymMePulse 2.1s ease-out infinite;
}
@keyframes ymMePulse {
  0% { transform: scale(0.55); opacity: 0.95; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Bottom Sheet */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--sheet);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(30, 20, 70, 0.16);
  height: 60%;
  min-height: 360px;
  max-height: 68%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.22s ease;
}
.sheet[data-size="search"] { height: 88%; max-height: 92%; min-height: 64%; }
.sheet[data-size="mappick"] { height: 34%; max-height: 38%; min-height: 225px; }
.sheet[data-size="when"] { height: 64%; max-height: 76%; min-height: 350px; }
.sheet[data-size="options"] { height: 76%; max-height: 86%; min-height: 400px; }
.sheet[data-size="payment"] { height: 52%; max-height: 62%; min-height: 300px; }
.sheet[data-size="confirm"] { height: 82%; max-height: 90%; min-height: 430px; }

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: #e2dfee;
  margin: 8px auto 4px;
  flex-shrink: 0;
}

.view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.view-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 12px;
}
.view-foot {
  flex-shrink: 0;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}

/* Address Block */
.addr-block {
  position: relative;
  background: var(--soft);
  border-radius: 18px;
  padding: 2px 12px;
  margin-bottom: 8px;
}
.addr-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  text-align: left;
  padding: 9px 36px 9px 0;
  cursor: pointer;
}
.addr-row + .addr-row { border-top: 1px solid #e6e2f2; }
.addr-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(30, 20, 70, 0.08);
}
.addr-dot.from { color: var(--accent); font-weight: 900; }
.addr-dot.to { color: var(--gold); font-weight: 900; }
.addr-text { flex: 1; min-width: 0; }
.addr-city {
  display: block;
  font-weight: 800;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-line {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.addr-line.placeholder { color: var(--accent); font-weight: 700; }

.swap-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e4e0f2;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(30, 20, 70, 0.08);
  z-index: 2;
}
.swap-btn:active { transform: translateY(-50%) scale(0.94); }

.detail-input-wrap {
  margin: -2px 0 8px;
}
.detail-input {
  width: 100%;
  border: 1px dashed #d9d3ee;
  background: #faf9fe;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}
.detail-input:focus {
  border-style: solid;
  border-color: var(--accent);
  background: #fff;
}

/* Mode Categories */
.cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 8px;
  scrollbar-width: none;
  touch-action: pan-x;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  border: 0;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cat.active {
  background: var(--text);
  color: #fff;
}
.cat .cat-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 10.5px;
}

/* Vehicle Classes & Tour Card */
.classes {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 10px;
  scrollbar-width: none;
  touch-action: pan-x;
}
.classes::-webkit-scrollbar { display: none; }
.class-card {
  flex: 0 0 112px;
  border: 1.5px solid transparent;
  background: var(--soft);
  border-radius: 16px;
  padding: 9px 8px 10px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.class-card.active {
  background: #f0edff;
  border-color: var(--accent);
}
.class-card .cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.class-card .ci { font-size: 22px; line-height: 1; }
.class-card .cw {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 999px;
}
.class-card .cn { font-weight: 800; font-size: 13px; margin-top: 6px; }
.class-card .ch {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.class-card .cp {
  font-weight: 900;
  font-size: 13.5px;
  margin-top: 5px;
  color: var(--accent2);
}

.tour-banner {
  background: linear-gradient(135deg, #f5f2ff 0%, #fdf8ec 100%);
  border: 1px solid #e6dff8;
  border-radius: 16px;
  padding: 11px 13px;
  margin-bottom: 10px;
}
.tour-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}
.tour-banner-price { color: var(--accent2); font-size: 16px; font-weight: 900; }
.tour-banner-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

/* When & Guests Row */
.trip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.when-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border: 0;
  border-radius: 14px;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
}
.when-pill-text { flex: 1; min-width: 0; }
.when-pill-label { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.when-pill-val {
  display: block;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--soft);
  border-radius: 14px;
  padding: 7px 9px;
  flex-shrink: 0;
}
.stepper-box span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.stepper-box strong { font-size: 14px; font-weight: 800; min-width: 16px; text-align: center; }
.stepper-box button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2deef;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.active-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.opt-tag {
  border: 0;
  background: #eef2ff;
  color: var(--accent2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Action Bar */
.action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-action {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border: 0;
  border-radius: 15px;
  background: var(--soft);
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-action .badge-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.cta {
  flex: 1;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.cta:hover:not(:disabled) { background: var(--accent2); }
.cta:disabled { opacity: 0.45; cursor: default; }
.cta.secondary {
  background: var(--soft);
  color: var(--text);
}
.cta.whatsapp { background: #16a34a; }
.cta.telegram { background: #0284c7; }
a.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Search View */
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sheet-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.sheet-close {
  border: 0;
  background: var(--soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.search-box-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border-radius: 15px;
  padding: 8px 10px 8px 12px;
  margin-bottom: 8px;
}
.search-box-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-weight: 700;
  font-size: 16px;
}
.sf-clear {
  border: 0;
  background: #e2dfee;
  color: var(--text);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.sf-map {
  flex-shrink: 0;
  border: 0;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(30, 20, 70, 0.08);
  cursor: pointer;
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.fchip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.fchip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gps-row {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: #f5f3ff;
  border-radius: 13px;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 6px;
  cursor: pointer;
}
.gps-row strong { display: block; font-size: 13.5px; color: var(--accent2); }
.gps-row small { display: block; color: var(--muted); font-size: 11.5px; }

.suggest { padding-bottom: 12px; }
.sug {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: none;
  text-align: left;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.sug-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.sug-body { flex: 1; min-width: 0; }
.sug-body b {
  color: var(--text);
  display: block;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sug-body small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sug .km {
  margin-left: auto;
  color: var(--accent2);
  font-weight: 800;
  font-size: 12.5px;
  flex-shrink: 0;
}

/* When, Options, Payment & Confirm Forms */
.day-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.day-chip {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 12px;
  padding: 8px 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.day-chip.active {
  background: #eef0ff;
  border-color: var(--accent);
  color: var(--accent2);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.when-cell {
  display: block;
  background: var(--soft);
  border-radius: 14px;
  padding: 9px 12px;
  margin-bottom: 10px;
}
.field-grid .when-cell { margin-bottom: 0; }
.when-cell span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.when-cell input, .when-cell textarea {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-weight: 700;
  padding: 5px 0 0;
  resize: none;
}
.info-note {
  background: #f0fdf4;
  color: #166534;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Options rows */
.opt-section-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 8px 0 6px;
}
.opt-card {
  background: var(--soft);
  border-radius: 16px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}
.opt-row + .opt-row { border-top: 1px solid #e5e1f1; }
.opt-info b { display: block; font-size: 14px; }
.opt-info small { display: block; font-size: 11.5px; color: var(--muted); }
.free-tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 800;
  margin-left: 4px;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute;
  inset: 0;
  background: #d6d1e6;
  border-radius: 999px;
  transition: 0.18s;
  cursor: pointer;
}
.switch i::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.18s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::before { transform: translateX(20px); }

/* Payment Cards */
.pay-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  background: var(--soft);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 10px;
  text-align: left;
  cursor: pointer;
}
.pay-option.active {
  border-color: var(--accent);
  background: #f0edff;
}
.pay-option:disabled { opacity: 0.5; cursor: not-allowed; }
.pay-option-ico { font-size: 24px; }
.pay-option-body { flex: 1; }
.pay-option-body b { display: block; font-size: 14.5px; }
.pay-option-body small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Confirm Summary */
.confirm-summary {
  background: linear-gradient(135deg, #f4f2ff 0%, #faf8ff 100%);
  border: 1px solid #e4dff6;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.cs-route { font-weight: 800; font-size: 14.5px; line-height: 1.35; }
.cs-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cs-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e0f5;
  font-size: 13px;
}
.cs-price-row strong { font-size: 17px; font-weight: 900; color: var(--accent2); }

.pref-chips {
  display: flex;
  gap: 6px;
  margin: 6px 0 10px;
}
.pchip {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 11px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.pchip.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.add-pax {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 0 10px;
  cursor: pointer;
}

/* Map Pick */
.mp-addr {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: 15px;
  padding: 11px 12px;
  margin-bottom: 10px;
}
.mp-addr small { display: block; color: var(--muted); font-size: 11.5px; }
.mp-addr strong { display: block; font-size: 14.5px; }

/* Full-Screen Overlays (Live Order Tracking, Profile, Auth) */
.screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.screen-title { font-size: 18px; font-weight: 800; }

/* Live Order Screen */
.live-hero {
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(30, 20, 70, 0.06);
}
.live-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.live-id { font-size: 13px; font-weight: 800; color: var(--muted); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0 4px;
}
.tl-step {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.tl-bar {
  height: 5px;
  border-radius: 999px;
  background: #e6e2f2;
  margin-bottom: 5px;
}
.tl-step.done .tl-bar { background: var(--accent); }
.tl-step.done { color: var(--text); }
.tl-step.cancelled .tl-bar { background: var(--danger); }

.driver-card {
  background: linear-gradient(135deg, #1f1646 0%, #31236e 100%);
  color: #fff;
  border-radius: 20px;
  padding: 15px 16px;
  margin-bottom: 12px;
}
.driver-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #c7c0ef; font-weight: 700; }
.driver-name { font-size: 18px; font-weight: 800; margin-top: 3px; }
.driver-car-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.plate-badge {
  background: #fff;
  color: #171326;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.driver-call {
  margin-top: 12px;
  background: #22c55e;
  color: #fff;
  height: auto;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 14.5px;
  text-align: center;
}

.receipt-card {
  background: #fff;
  border-radius: 20px;
  padding: 15px 16px;
  margin-bottom: 12px;
}
.rc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13.5px;
}
.rc-row + .rc-row { border-top: 1px solid var(--line); }
.rc-row span:first-child { color: var(--muted); flex-shrink: 0; }
.rc-row strong { text-align: right; font-weight: 700; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.cbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  border: 1px solid var(--line);
}
.cbtn.wa { background: #ecfdf5; color: #15803d; border-color: #bbf7d0; }
.cbtn.tg { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }

.link-danger {
  width: 100%;
  border: 0;
  background: none;
  color: var(--danger);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px;
  cursor: pointer;
}

/* Profile & Orders History */
.prof-hero {
  background: #fff;
  border-radius: 22px;
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 12px;
}
.avatar-brand {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 10px;
  display: block;
  box-shadow: 0 8px 22px rgba(46, 26, 122, 0.18);
}
.prof-name { border: 0; background: none; font-size: 20px; font-weight: 800; cursor: pointer; }
.prof-mail { color: var(--muted); font-size: 13px; margin-top: 3px; }

.card-list {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 12px;
  overflow: hidden;
}
.li {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.li + .li { border-top: 1px solid var(--line); }
.li-ico { width: 28px; text-align: center; font-size: 18px; }
.li-body { flex: 1; }
.li-body b { display: block; font-size: 14.5px; }
.li-body small { color: var(--muted); font-size: 12px; }

.orders-box {
  background: #fff;
  border-radius: 20px;
  padding: 15px 16px;
  margin-bottom: 12px;
}
.orders-box h3 { font-size: 16px; margin-bottom: 10px; }
.order-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 9px;
  cursor: pointer;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #ece7ff;
  color: var(--accent2);
}
.badge.paid, .badge.ok { background: var(--green-soft); color: var(--green); }
.badge.cancel { background: #fee2e2; color: #b91c1c; }
.empty { text-align: center; color: var(--muted); padding: 20px 8px; font-size: 13.5px; }

/* Auth Screen */
.auth {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #fff;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: calc(16px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.auth-back { margin-bottom: 16px; }
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent2);
  margin-bottom: 24px;
}
.auth h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-lead { color: var(--muted); margin-bottom: 20px; line-height: 1.4; font-size: 14px; }
.auth-field { display: block; margin-bottom: 16px; }
.auth-field span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.auth-field input {
  width: 100%;
  border: 0;
  background: var(--soft);
  border-radius: 15px;
  padding: 15px 16px;
  font-size: 17px;
  font-weight: 700;
  outline: none;
}
.otp { display: flex; gap: 8px; margin: 8px 0 18px; }
.otp input {
  flex: 1;
  min-width: 0;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border: 0;
  background: var(--soft);
  border-radius: 12px;
  outline: none;
}
.auth-hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.auth-call-num { font-size: 26px; font-weight: 800; text-align: center; margin: 4px 0 16px; }
.auth-call-btn { width: 100%; margin-bottom: 12px; }
.auth-resend {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 220;
  background: #171326;
  color: #fff;
  padding: 11px 16px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(23, 19, 38, 0.28);
  max-width: 90%;
  text-align: center;
}

/* Desktop Split Showcase */
@media (min-width: 980px) {
  body {
    background: radial-gradient(circle at 18% 20%, #2b1a70 0%, #17103a 58%, #100b29 100%);
  }
  .desktop-shell {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 32px;
    align-items: center;
    gap: 44px;
  }
  .desktop-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    color: #fff;
    max-width: 520px;
  }
  .da-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .da-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.06em;
  }
  .da-brand img { width: 42px; height: 42px; border-radius: 12px; }
  .da-back {
    color: #cfc9f6;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 999px;
  }
  .da-back:hover { background: rgba(255, 255, 255, 0.15); }
  .desktop-aside h1 {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .desktop-aside h1 span { color: #f0c36d; }
  .da-lead {
    color: #c8c1ee;
    font-size: 15.5px;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .da-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  .da-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    padding: 13px 14px;
  }
  .da-card b { display: block; font-size: 14px; margin-bottom: 4px; color: #fff; }
  .da-card small { display: block; font-size: 12.5px; color: #c4bde8; line-height: 1.35; }
  .da-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .da-phone {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
    margin-right: 8px;
  }
  .da-pill {
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
  }
  .da-pill:hover { background: rgba(255, 255, 255, 0.22); }

  #app {
    flex: 0 0 448px;
    max-width: 448px;
    height: min(860px, calc(100vh - 48px));
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
  .screen, .auth {
    left: auto;
    right: max(32px, calc((100vw - 1140px) / 2 + 32px));
    top: max(24px, calc((100vh - min(860px, calc(100vh - 48px))) / 2));
    bottom: auto;
    height: min(860px, calc(100vh - 48px));
    max-width: 448px;
    margin: 0;
    border-radius: 30px;
  }
}

/* Mountain Excursion Showcase, Elbrus Weather Widget & Promo Code Box */
.tour-weather-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
  border: 1px solid #d8dcf8;
  border-radius: 11px;
  padding: 6px 10px;
  margin-bottom: 7px;
  font-size: 11.5px;
  line-height: 1.3;
}
.tour-weather-bar b {
  color: #1e1b4b;
  font-weight: 800;
  display: block;
}
.tour-weather-bar small {
  color: #475569;
  font-size: 10.5px;
  display: block;
}
.tour-weather-spots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 11px;
  color: var(--accent2);
}
.tour-weather-spots span {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 7px;
  padding: 2px 6px;
  white-space: nowrap;
}

.tour-quick-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 1px 0 7px;
  scrollbar-width: none;
}
.tour-quick-strip::-webkit-scrollbar { display: none; }
.t-chip {
  flex-shrink: 0;
  border: 1px solid #dcd7f4;
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.t-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tour-format-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: #ebe7f8;
  border-radius: 10px;
  padding: 3px;
  margin: 6px 0;
}
.tf-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 6px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.tf-btn.active {
  background: #fff;
  color: var(--accent2);
  box-shadow: 0 2px 6px rgba(30, 20, 70, 0.1);
}

.tour-card-media {
  display: flex;
  gap: 9px;
  align-items: center;
}
.tour-thumb {
  width: 58px;
  height: 58px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ddd6fe;
}
.tour-badge-pill {
  display: inline-block;
  background: #ede9fe;
  color: #4c1d95;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 2px;
}
.tour-hl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.tour-hl-list span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e2ddf5;
  border-radius: 6px;
  padding: 1.5px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
}

.sug-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--soft);
}

.promo-box {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--soft);
  border-radius: 14px;
  padding: 6px 8px 6px 12px;
  margin-bottom: 6px;
}
.promo-box input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.promo-apply-btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.promo-chip {
  border: 1px dashed #b9b0ec;
  background: #f6f4ff;
  color: var(--accent2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.promo-chip.active {
  background: var(--green-soft);
  border-color: var(--green);
  border-style: solid;
  color: var(--green);
}
.opt-tag.promo {
  background: var(--green-soft);
  color: var(--green);
  border-color: #bbf7d0;
}

