﻿* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --dark: #253338;
  --dark-2: #1b262b;
  --dark-3: #33454c;
  --orange: #00c853;
  --orange-d: #00a846;
  --white: #fff;
  --bg: #f2f3f4;
  --line: #e7eaec;
  --muted: #7b868d;
  --green: #2fb344;
  --red: #e5484d;
  --volt: #00c853;
  --volt-2: #fa8348;
  --volt-bg: #0b111c;
  --radius: 16px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --navsafe: env(safe-area-inset-bottom, 0px);
  --topsafe: env(safe-area-inset-top, 0px);
}
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; outline: none; }
button:focus, button:focus-visible, button:active,
.nav-item:focus, .nav-item:focus-visible, a:focus { outline: none; -webkit-tap-highlight-color: transparent; }
.nav-item { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-family: var(--font-logo); font-weight: 700; letter-spacing: -0.2px; color: var(--dark);
}
.wordmark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); transform: translateY(-1px); }
.logo-badge {
  width: 46px; height: 46px; border-radius: 13px; background: var(--dark); color: #fff;
  display: grid; place-items: center; position: relative; flex: none;
  font-family: var(--font-logo); font-weight: 700; font-size: 26px; letter-spacing: -1px;
}
.logo-badge::after {
  content: ""; position: absolute; right: 9px; bottom: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--orange);
}
.logo-badge.lg { width: 54px; height: 54px; font-size: 30px; border-radius: 16px; }

/* ---------- Map ---------- */
#map { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* ---------- OpenStreetMap маркеры ---------- */
.leaflet-container { font-family: var(--font); background: #e9edec; }
/* Убираем сетку белых линий между тайлами: обычное смешивание + перекрытие
   тайлов на 1px (см. osm.js). Leaflet по умолчанию ставит plus-lighter, который
   в паре с перекрытием даёт светлые линии. */
.leaflet-container img.leaflet-tile { mix-blend-mode: normal !important; }
.osm-car-img, .osm-car-wrap, .osm-ab-wrap, .eta-marker-wrap { background: none; border: none; }
.osm-car-img { filter: drop-shadow(0 3px 4px rgba(0,0,0,0.35)); }
.osm-car-img.free { filter: drop-shadow(0 0 7px rgba(0,200,83,0.85)) drop-shadow(0 3px 4px rgba(0,0,0,0.35)); }
.osm-car-img img { display: block; width: 40px; height: 38px; pointer-events: none; user-select: none; }
.osm-car {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.28);
}
.osm-car svg { width: 18px; height: 18px; }
.osm-ab {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 12px; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* ETA-плашка — сама является указателем места на карте */
.eta-marker { width: 240px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: grab; }
.eta-tip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px;
  padding: 6px 13px 6px 6px; box-shadow: 0 6px 20px rgba(37,51,56,0.24);
  font-weight: 700; font-size: 13px; color: var(--dark); white-space: nowrap;
}
.eta-leg { width: 3px; height: 14px; background: var(--orange); border-radius: 2px; }
.eta-ic {
  width: 24px; height: 24px; border-radius: 7px; background: var(--green);
  display: grid; place-items: center; flex: none;
}
.eta-ic svg { width: 16px; height: 16px; display: block; }

/* Точка реальной геолокации пассажира: синяя точка с пульсацией */
.me-dot-wrap { background: none; border: none; }
.me-dot {
  position: absolute; left: 2px; top: 2px; box-sizing: border-box;
  width: 14px; height: 14px; border-radius: 50%;
  background: #1a73e8; border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.45);
}
.me-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  background: rgba(26,115,232,.28);
  animation: mePulse 2s ease-out infinite;
}
@keyframes mePulse { 0% { transform: scale(.35); opacity: .95; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Landing ---------- */
.landing {
  position: fixed; inset: 0; overflow: auto;
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(255,255,255,0.20), transparent 60%),
    radial-gradient(900px 520px at 105% 115%, rgba(0,0,0,0.18), transparent 60%),
    linear-gradient(158deg, #18bd53 0%, #07973f 46%, #045f29 100%);
  display: flex; align-items: flex-start; justify-content: center; padding: 30px 24px 44px;
}
.landing-inner { max-width: 960px; width: 100%; margin: auto; }
.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.brand h1 { font-size: 34px; letter-spacing: -1px; color: #fff; }
.brand p { color: rgba(255,255,255,0.9); font-size: 15px; margin-top: 4px; }
.brand-logo { width: 62px; height: 62px; border-radius: 18px; flex: none; display: block; filter: drop-shadow(0 12px 24px rgba(0,40,18,0.35)); }
.landing .wordmark { color: #fff; }
.landing .wordmark .dot { background: #b7ff6b; }
.landing .logo-badge { background: #fff; color: var(--orange-d); }
.landing .logo-badge::after { background: #b7ff6b; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card-link {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border-radius: 18px; padding: 24px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 22px 44px rgba(2,45,22,0.28);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card-link:hover { transform: translateY(-4px); box-shadow: 0 30px 56px rgba(2,45,22,0.4); border-color: #b7ff6b; }
.card-link .ico { font-size: 40px; }
.card-link h2 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -0.4px; color: var(--dark); }
.card-link p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card-link .go { margin-top: 18px; }
.pill {
  background: linear-gradient(180deg, #16c857, #00a846); color: #fff;
  padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 20px rgba(0,168,70,0.32);
}
.card-link:hover .pill { filter: brightness(1.06); }
.features { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.features span {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(4px);
}
.features span b { color: #b7ff6b; }

/* ---------- Landing: скачать и установить ---------- */
.dl {
  margin-top: 24px; background: #fff; border-radius: 20px; padding: 24px 26px 26px;
  box-shadow: 0 26px 54px rgba(2,45,22,0.34);
}
.dl + .dl { margin-top: 18px; }
.dl h3 {
  font-size: 19px; letter-spacing: -0.3px; color: var(--dark); margin-bottom: 15px;
  display: flex; align-items: center; gap: 10px;
}
.dl h3 .dl-ic {
  width: 30px; height: 30px; border-radius: 9px; background: #e7f8ee; color: #00a846;
  display: grid; place-items: center; flex: none;
}
.dl h3 .dl-ic svg { width: 18px; height: 18px; }
.dl-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-btn {
  display: inline-flex; flex-direction: column; text-decoration: none; min-width: 190px;
  background: linear-gradient(180deg, #16c857, #00a846); color: #fff;
  padding: 12px 20px; border-radius: 13px; box-shadow: 0 12px 24px rgba(0,168,70,0.34);
  transition: transform .15s ease, filter .15s ease;
}
.dl-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.dl-btn b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dl-btn small { font-size: 11.5px; opacity: 0.88; margin-top: 2px; font-weight: 600; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 11px; margin: 2px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; color: #3e4f57; font-size: 14.5px; line-height: 1.5; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%; background: #e7f8ee; color: #00a846;
  font-weight: 800; font-size: 14px; display: grid; place-items: center;
}
.steps li b { color: var(--dark); }
.dl .note { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { background: #eef2f3; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: #40525a; }
.dl-foot { text-align: center; margin-top: 22px; }

/* ---------- SEO-блок лендинга ---------- */
.seo {
  margin-top: 26px; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px; padding: 22px 24px; color: #eaf3ee; text-align: left;
}
.seo h2 { color: #fff; font-size: 19px; margin: 0 0 12px; }
.seo h3 { color: #fff; font-size: 15.5px; margin: 18px 0 10px; }
.seo p { font-size: 14px; line-height: 1.65; color: #d9e6df; margin: 0 0 12px; }
.seo p b, .seo li b { color: #b7ff6b; }
.seo ul { margin: 0 0 12px; padding-left: 20px; }
.seo li { font-size: 14px; line-height: 1.6; color: #d9e6df; margin-bottom: 6px; }
.seo .seo-note { color: #b7ff6b; font-weight: 600; margin-top: 14px; }
.hub-mini {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  color: #fff; font-weight: 700; font-size: 14px; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3); padding: 10px 18px; border-radius: 999px;
}
.hub-mini:hover { background: rgba(255,255,255,0.26); }

/* ---------- Passenger ---------- */
.p-top {
  position: fixed; top: calc(2px + var(--topsafe, env(safe-area-inset-top, 0px))); left: 0; right: 0; z-index: 36;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
}
.menu-btn {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 10px; background: transparent; flex: none;
  display: grid; place-content: center; gap: 4px;
}
.menu-btn i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--dark); box-shadow: 0 1px 1px rgba(255,255,255,0.6); transition: .15s; }
.menu-btn:hover i { background: var(--orange); }
.p-addr {
  pointer-events: none; flex: 1; min-width: 0; text-align: center; font-weight: 800; font-size: 17px; letter-spacing: -0.2px;
  color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9);
}
.p-spacer { width: 44px; }
/* ---------- Drawer (left menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 55; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim {
  position: absolute; inset: 0; background: rgba(20,28,31,0.42);
  opacity: 0; transition: opacity .25s ease;
}
.drawer.open .drawer-scrim { opacity: 1; }
.drawer { position: fixed; inset: 0; z-index: 55; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim {
  position: absolute; inset: 0; background: rgba(20,28,31,0.42);
  opacity: 0; transition: opacity .25s ease;
}
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: 86%; max-width: 340px;
  background: #fff; box-shadow: 8px 0 30px rgba(20,28,31,0.25);
  transform: translateX(-102%); transition: transform .28s cubic-bezier(.22,.7,.3,1);
  display: flex; flex-direction: column; overflow: auto;
  padding-bottom: var(--navsafe, env(safe-area-inset-bottom, 0px));
}
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer .prof {
  padding: calc(16px + var(--topsafe, env(safe-area-inset-top, 0px))) 16px 14px; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.prof-photo {
  position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: #3a4a50; cursor: pointer; overflow: hidden; margin-bottom: 10px;
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-photo-ph { position: absolute; display: grid; place-items: center; color: #c7d0d4; }
.prof-photo-ph svg { width: 28px; height: 28px; }
.prof-photo-badge {
  position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 700;
  padding: 2px 0; background: rgba(0,0,0,0.5); letter-spacing: .2px;
}
.prof-name { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.prof-phone { color: #c7d0d4; font-size: 13px; font-weight: 600; padding: 3px 0 0; }
.prof-balance {
  margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: var(--green); border-radius: 13px; padding: 10px 14px; color: #fff;
}
.prof-balance small { display: block; font-size: 11px; opacity: .9; }
.prof-balance b { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }
.pb-topup {
  background: rgba(255,255,255,0.22); color: #fff; border: none; border-radius: 9px;
  padding: 8px 13px; font-weight: 700; font-size: 13px;
}
.pb-topup:hover { background: rgba(255,255,255,0.34); }

.drawer-list { padding: 6px; display: flex; flex-direction: column; }
.ditem {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
  text-align: left; text-decoration: none; color: var(--dark); font-weight: 600; font-size: 14px;
  background: none; border: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
  cursor: pointer;
}
.ditem:active { background: #f5f5f5; }
@media (hover: hover) {
  .ditem:hover { background: #f2f3f4; }
}
.di-ic {
  width: 32px; height: 32px; border-radius: 9px; background: #eef1f2; display: grid; place-items: center;
  flex: none; color: var(--dark);
}
.di-ic svg { width: 18px; height: 18px; }

/* ETA-плашка-«прицел»: стоит в центре видимой части карты, остриём указывает точку */
.eta-plate {
  position: fixed; left: 50%; z-index: 35;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
  transition: top .25s ease;
}
.eta-plate .eta-tip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px;
  padding: 6px 13px 6px 6px; box-shadow: 0 8px 24px rgba(37,51,56,0.28);
  font-weight: 700; font-size: 13px; color: var(--dark); white-space: nowrap;
}
.eta-plate .eta-ic {
  width: 24px; height: 24px; border-radius: 7px; background: var(--green);
  display: grid; place-items: center; flex: none;
}
.eta-plate .eta-ic svg { width: 16px; height: 16px; display: block; }
.eta-plate .eta-leg { width: 3px; height: 12px; background: var(--orange); border-radius: 0 0 2px 2px; }

/* Кнопка «показать меня» (управление камерой карты) */
.map-fab {
  position: fixed; top: calc(72px + var(--topsafe, env(safe-area-inset-top, 0px))); right: 16px; z-index: 30;
  width: 44px; height: 44px; border-radius: 13px; background: #fff; color: var(--dark);
  box-shadow: 0 6px 22px rgba(37,51,56,0.16); display: grid; place-items: center;
  transition: color .12s, transform .12s, bottom .25s ease, top .25s ease;
}
.map-fab:hover { color: var(--orange); }
.map-fab:active { transform: scale(0.96); background: rgba(0,0,0,0.06); }
.map-fab svg { width: 22px; height: 22px; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(37,51,56,0.18);
  padding: 8px 14px calc(8px + var(--navsafe, env(safe-area-inset-bottom, 0px))); max-height: 72vh; overflow: auto;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1); will-change: transform;
}
.sheet.collapsed { transform: translateY(calc(100% - var(--peek, 52px))); }
.sheet.collapsed .grab { margin-top: 6px; }
/* В свёрнутом виде под блоком адресов оставляем пустой отступ под системную
   панель — так строка «Сейчас / На время» не «торчит» снизу. */
.sheet.collapsed .addr-box { padding-bottom: calc(4px + var(--navsafe, env(safe-area-inset-bottom, 0px))); }
@media (min-width: 900px) {
  .sheet { left: 24px; right: auto; bottom: 24px; width: 400px; border-radius: 22px; max-height: 92vh; }
}
.grab { width: 40px; height: 4px; border-radius: 4px; background: #d8dcde; margin: 2px auto 10px; }
.sheet h2 { font-size: 18px; letter-spacing: -0.3px; margin-bottom: 2px; }
.sheet .sub { color: var(--muted); font-size: 12px; margin-bottom: 8px; }

.addr-box { background: #f4f5f6; border-radius: 13px; padding: 4px; margin-bottom: 8px; }
.addr-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.addr-row + .addr-row { border-top: 1px solid #e7eaec; }
.addr-row .mk { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.addr-row input {
  border: none; background: transparent; font-size: 15px; width: 100%; outline: none;
  color: var(--dark); font-weight: 600; cursor: pointer;
}
.addr-row.active { background: #fff; box-shadow: 0 0 0 2px var(--orange); }
.mk.a { background: var(--dark); } .mk.b { background: var(--orange); }
.mk.mid {
  background: #fff; border: 2px solid var(--dark); color: var(--dark); width: 15px; height: 15px;
  display: grid; place-items: center; font-size: 9px; font-weight: 800; line-height: 1;
}
.addr-in { flex: 1; min-width: 0; }
.addr-row .pod {
  flex: none; width: 74px; border: none; background: #eef1f2; border-radius: 8px; padding: 8px 10px;
  font-size: 13px; color: var(--dark); font-weight: 600; outline: none; cursor: text; text-align: center;
}
.addr-row .pod:focus { background: #fff; box-shadow: 0 0 0 2px var(--orange); }
.addr-row .pod::placeholder { color: #9aa6ab; font-weight: 500; }
.row-del {
  flex: none; width: 28px; height: 28px; border-radius: 8px; background: #eef1f2; color: var(--muted);
  font-size: 17px; line-height: 1; display: grid; place-items: center;
}
.row-del:hover { background: #e2e5e7; color: var(--red); }
.add-stop {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  padding: 8px; margin-top: 4px; border-radius: 10px; background: none; color: var(--orange);
  font-weight: 700; font-size: 13px;
}
.add-stop:hover { background: #fff; }

/* Когда (сейчас / на время) */
.when-wrap { margin-bottom: 12px; }
.when-row { display: flex; align-items: center; gap: 8px; }
.when-lbl { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: auto; }
.when-chip {
  padding: 8px 14px; border-radius: 10px; background: #f2f3f4; color: var(--dark);
  font-weight: 700; font-size: 13px;
}
.when-chip.sel { background: var(--dark); color: #fff; }
.when-input {
  width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 15px; font-family: inherit; color: var(--dark); outline: none;
}
.when-input:focus { border-color: var(--orange); }

/* Улучшенный выбор времени предзаказа: пресеты + шаг ±15 мин. */
.when-wrap.open { background: #f7f8f8; border-radius: 14px; padding: 10px 10px 12px; }
.when-panel { margin-top: 10px; }
.when-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.when-preset {
  padding: 8px 12px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line);
  color: var(--dark); font-weight: 600; font-size: 12.5px; cursor: pointer; transition: .12s;
}
.when-preset:hover { border-color: #cfd5d7; }
.when-preset.sel { background: var(--dark); border-color: var(--dark); color: #fff; }
.when-pick { display: flex; align-items: stretch; gap: 8px; }
.when-step {
  flex: none; width: 54px; border-radius: 11px; border: 1px solid var(--line); background: #fff;
  color: var(--dark); font-weight: 800; font-size: 13px; cursor: pointer;
}
.when-step:active { transform: scale(0.96); }
.when-pick-mid { flex: 1; min-width: 0; }
.when-pick-val { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.when-pick-mid .when-input { margin-top: 0; }


.tariffs { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.tariff {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px;
  border: 2px solid transparent; background: #f7f8f8; cursor: pointer; transition: .12s;
}
.tariff:hover { background: #f1f3f3; }
.tariff.sel { border-color: var(--dark); background: #fff; }
.tariff .em { font-size: 21px; width: 30px; text-align: center; }
.tariff .info { flex: 1; }
.tariff .info b { display: block; font-size: 14px; }
.tariff .info span { color: var(--muted); font-size: 12px; }
.tariff .price { font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--dark); }
.tariff.sel .price { color: var(--orange); }

.btn {
  width: 100%; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: var(--dark); color: #fff; transition: transform .05s;
}
.btn:hover { background: var(--dark-3); }
.btn, .d-btn, .map-fab, .ad-banner, .auth-submit, .cam-shoot, .doc-slot, .d-gps, .wa-btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
}
.btn.orange { background: var(--orange); color: #fff; }
.btn.orange:hover { background: var(--orange-d); }
.btn.ghost { background: #f2f3f4; color: var(--red); font-weight: 700; }
.btn.ghost:hover { background: #eceef0; }
.btn.green { background: var(--green); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Driver card (passenger) */
.dc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dc-ava {
  width: 54px; height: 54px; border-radius: 50%; background: var(--dark); color: #fff;
  display: grid; place-items: center; font-size: 24px; flex: none;
}
.dc-head b { font-size: 17px; display: block; }
.dc-head .m { color: var(--muted); font-size: 13px; }
.dc-rate { margin-left: auto; text-align: right; }
.dc-rate b { font-size: 16px; }
.car-row { display: flex; align-items: center; gap: 12px; background: #f4f5f6; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.car-row .em { font-size: 26px; }
.car-row b { display: block; font-size: 15px; }
.car-row span { color: var(--muted); font-size: 13px; }
.plate {
  margin-left: auto; background: #fff; border: 2px solid var(--dark); border-radius: 8px;
  padding: 4px 9px; font-weight: 800; letter-spacing: 1px; font-size: 13px;
}
.status-line {
  display: flex; align-items: center; gap: 10px; background: #eefaf1; border: 1px solid #cdecd6;
  color: #0a7d3a; border-radius: 12px; padding: 11px 13px; font-size: 14px; font-weight: 700; margin-bottom: 16px;
}
.eta { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.eta small { font-size: 15px; font-weight: 600; color: var(--muted); }

.actions-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.mini { background: #f4f5f6; border: none; border-radius: 12px; padding: 13px; font-size: 13px; font-weight: 700; text-align: center; font-family: inherit; cursor: pointer; color: var(--dark); }
.mini:hover { background: #eceef0; }

/* Карточка водителя: фото, авто, номер, заказ */
.dc-photo {
  width: 58px; height: 58px; border-radius: 50%; flex: none; position: relative;
  overflow: hidden; background: var(--dark); display: grid; place-items: center;
}
.dc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-photo-fb { font-size: 26px; }
.dc-info { min-width: 0; }
.dc-name { display: flex; align-items: center; gap: 8px; }
.dc-name b { font-size: 17px; }
.dc-rate-badge {
  background: #e9f7ee; color: #0a7d3a; font-size: 12px; font-weight: 800;
  border-radius: 20px; padding: 2px 8px; white-space: nowrap;
}
.dc-car { color: #46535a; font-size: 13px; font-weight: 600; margin-top: 2px; }
.dc-order { color: var(--muted); font-size: 12px; margin-top: 2px; }
.dc-plate {
  display: inline-block; margin-top: 5px; background: #fff; border: 2px solid var(--dark);
  border-radius: 7px; padding: 2px 8px; font-weight: 800; letter-spacing: 1px; font-size: 12px;
}

/* Быстрые действия во время ожидания — компактные круглые иконки */
.wait-actions { display: flex; gap: 10px; margin: 2px 0 2px; }
.wa-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; border: none; padding: 0; font-family: inherit;
  transition: transform .1s ease, background .12s;
}
.wa-btn:active { transform: scale(.93); }
.wa-btn svg { width: 22px; height: 22px; }
.wa-btn.chat { background: #f4f5f6; color: var(--dark); }
.wa-btn.chat:hover { background: #eceef0; }
.wa-btn.go { background: var(--orange); color: #fff; }
.wa-btn.go:disabled { opacity: .6; }
.wait-actions.solo { justify-content: center; flex-direction: column; align-items: center; gap: 6px; margin: 10px 0 4px; }
.wa-btn.go.solo { width: 58px; height: 58px; box-shadow: 0 6px 16px rgba(0, 200, 83, .32); }
.wa-btn.go.solo svg { width: 28px; height: 28px; }
.wa-lbl { font-size: 13px; font-weight: 700; color: #0a7d3a; }
.wa-btn.go.done { background: #e9f7ee; color: #0a7d3a; }

/* Push-уведомление (всплывающая плашка сверху) */
.push {
  position: fixed; left: 50%; top: calc(12px + var(--topsafe, env(safe-area-inset-top, 0px))); transform: translateX(-50%) translateY(-140%);
  z-index: 200; display: flex; align-items: center; gap: 12px;
  min-width: 260px; max-width: min(92vw, 420px);
  background: #0f1216; color: #fff; padding: 12px 16px; border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32); cursor: pointer;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1); opacity: 0;
}
.push.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.push-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.push-tx { display: flex; flex-direction: column; min-width: 0; }
.push-tx b { font-size: 14px; }
.push-tx span { font-size: 13px; opacity: .82; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Оценка поездки: варианты */
.rate-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.rate-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 14px; font-size: 13px; font-weight: 700; font-family: inherit;
  color: var(--dark); cursor: pointer; transition: .12s;
}
.rate-chip.sel { background: #eefaf1; border-color: var(--orange); color: #0a7d3a; }

/* Причины отмены заказа */
.reason-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.reason {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; font-size: 14px; font-weight: 700;
  cursor: pointer; background: #fff; transition: .12s;
}
.reason.sel { border-color: var(--orange); background: #eefaf1; }
.reason .rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9ced2; flex: none; }
.reason.sel .rd { border-color: var(--orange); box-shadow: inset 0 0 0 5px var(--orange); }
.cancel-comment {
  width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 14px; font-size: 14px; font-family: inherit; color: var(--dark);
  outline: none; resize: vertical; min-height: 64px; background: #fff;
}
.cancel-comment:focus { border-color: var(--orange); }
.cancel-comment::placeholder { color: #9aa6ab; }
.call-b.accept { background: #2fb344; }

/* Интернет-звонок водителю */
.overlay.call {
  background: linear-gradient(180deg, #10201b 0%, #0b111c 100%); color: #fff;
  align-items: center; justify-content: center; z-index: 80;
}
.call-screen { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; }
.call-ava {
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden; position: relative;
  background: #24343a; display: grid; place-items: center; animation: pulse 1.8s infinite;
}
.call-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call-ava .dc-photo-fb { font-size: 56px; }
.call-name { font-size: 26px; font-weight: 800; margin-top: 16px; }
.call-sub { color: rgba(255,255,255,.7); font-size: 15px; }
.call-status { margin-top: 18px; color: #7ee0a6; font-weight: 700; font-size: 15px; }
.call-timer { font-size: 15px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.call-btns { display: flex; gap: 22px; margin-top: 30px; }
.call-b { width: 64px; height: 64px; border-radius: 50%; border: none; font-size: 24px; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; font-family: inherit; }
.call-b.end { background: #e5484d; }

/* Шапка чата с водителем */
.ov-driver { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ov-driver .dc-photo { width: 42px; height: 42px; }
.ov-driver h2 { font-size: 17px; }
.ov-driver small { color: var(--muted); font-size: 12px; }

/* Приложение водителя: сообщение от пассажира */
.d-chat-note {
  background: rgba(0,200,83,.14); border: 1px solid rgba(0,200,83,.35); color: #d6f5e3;
  border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-top: 8px;
  display: flex; gap: 8px; align-items: center;
}

/* Публичная страница отслеживания поездки */
body.track-page { background: #0b111c; }
.track-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: calc(14px + var(--topsafe, env(safe-area-inset-top, 0px))) 16px 14px;
  background: linear-gradient(180deg, rgba(11,17,28,.92), rgba(11,17,28,0)); pointer-events: none;
}
.track-driver {
  pointer-events: auto; background: #fff; border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.track-driver .dc-photo { width: 46px; height: 46px; }
.track-note {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + var(--navsafe, env(safe-area-inset-bottom, 0px))); z-index: 40;
  background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.searching { text-align: center; padding: 8px 0 6px; }
.pulse {
  width: 88px; height: 88px; border-radius: 50%; margin: 8px auto 16px;
  background: rgba(0,200,83,0.16); display: grid; place-items: center; position: relative;
}
.pulse::after {
  content: "🚕"; font-size: 34px; width: 62px; height: 62px; border-radius: 50%;
  background: var(--dark); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(0,200,83,0.5); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,200,83,0.45); }
  70% { box-shadow: 0 0 0 16px rgba(0,200,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,200,83,0); }
}

.stars { display: flex; gap: 10px; justify-content: center; font-size: 34px; margin: 16px 0 20px; }
.stars span { cursor: pointer; color: #d5dade; transition: transform .1s; }
.stars span:hover, .stars span.on { color: var(--orange); transform: scale(1.1); }

/* ---------- Driver (Gett Driver) ---------- */
body.driver { background: var(--dark-2); color: #fff; }
.d-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  background: transparent;
}
.d-brand { display: flex; align-items: center; gap: 10px; }
.d-brand .logo-badge { width: 38px; height: 38px; font-size: 21px; border-radius: 11px; }
.d-brand .wordmark { color: #fff; font-size: 19px; }
.pill-toggle {
  display: flex; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 4px;
  font-weight: 700; font-size: 14px; margin-left: auto;
}
.pill-toggle button { padding: 9px 16px; border-radius: 999px; color: #b7c0c4; font-weight: 700; }
.pill-toggle button.on { background: var(--orange); color: #fff; }
.pill-toggle button.on.off { background: var(--dark-3); color: #fff; }
.d-earn { text-align: right; margin-left: 4px; }
.d-earn small { color: #8b979d; font-size: 12px; display: block; }
.d-earn b { font-size: 20px; }

.d-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--dark-2); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.55);
  max-height: 78vh; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .26s cubic-bezier(.22,.61,.36,1);
}
@media (min-width: 900px) { .d-sheet { left: 20px; right: auto; bottom: 20px; width: 390px; border-radius: 22px; } }
.d-sheet h2 { font-size: 20px; margin-bottom: 4px; letter-spacing: -0.3px; }
.d-sheet .sub { color: #8b979d; font-size: 14px; margin-bottom: 16px; }

.order-card {
  border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 16px;
  margin-bottom: 10px; background: rgba(255,255,255,0.04);
}
.order-card.active { border-color: rgba(0,200,83,0.5); background: rgba(0,200,83,0.07); }
.order-card .oc-top { display: flex; align-items: center; margin-bottom: 12px; }
.oc-pickup { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 5px 10px; border-radius: 10px; background: rgba(255,179,0,.13); border: 1px solid rgba(255,179,0,.35); color: #ffc233; font-size: 12.5px; font-weight: 700; }
.oc-pickup b { color: #ffd54f; }
.order-card .price { font-size: 24px; font-weight: 800; color: var(--orange); letter-spacing: -0.5px; }
.order-card .dist { margin-left: auto; color: #9aa6ab; font-size: 13px; font-weight: 600; }
.rt { display: flex; gap: 12px; margin-bottom: 14px; }
.rt .line { display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.rt .line .d { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rt .line .bar { width: 2px; flex: 1; background: rgba(255,255,255,0.2); margin: 3px 0; min-height: 20px; }
.rt .line .d.a { background: #fff; } .rt .line .d.b { background: var(--orange); }
.rt .texts { flex: 1; }
.rt .texts b { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; }
.rt .texts .t2 { margin-top: 14px; }

.oc-btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.d-btn { border-radius: 12px; font-weight: 700; font-size: 15px; padding: 14px; transition: .12s; }
.d-btn.y { background: var(--orange); color: #fff; }
.d-btn.y:hover { background: var(--orange-d); }
.d-btn.dark { background: rgba(255,255,255,0.1); color: #fff; }
.d-btn.dark:hover { background: rgba(255,255,255,0.16); }
.d-btn.red { background: rgba(229,72,77,0.16); color: #ff7b80; }
.d-btn.ghost { background: transparent; color: #b7c0c4; border: 1px solid rgba(255,255,255,0.2); }
.d-btn.ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.d-btn.full { width: 100%; margin-top: 10px; }

/* Заказы на время */
.order-card.sched .sched-when { color: #fff; font-weight: 800; font-size: 15px; }
.order-card.sched.mine { border-color: rgba(0,200,83,0.5); }
.sched-meta { display: flex; gap: 10px; flex-wrap: wrap; color: #9aa6ab; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.sched-meta span { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 3px 9px; }
.oc-actions { display: flex; align-items: center; gap: 10px; }
.oc-actions .d-btn { flex: 1; }
.sched-tag { flex: 1; color: var(--volt); font-weight: 700; font-size: 14px; }
.sched-unread { background: #e53935; color: #fff; font-weight: 800; font-size: 12px; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }

.d-status {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700;
  color: var(--orange); margin-bottom: 14px;
}
.d-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.empty { text-align: center; color: #8b979d; padding: 30px 10px; font-size: 15px; }
.empty .em { font-size: 40px; display: block; margin-bottom: 10px; }

.drivers-list { display: flex; flex-direction: column; gap: 6px; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.05); cursor: pointer; border: 2px solid transparent; }
.dl-row.sel { border-color: var(--orange); }
.dl-row .ava { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; }
.dl-row b { font-size: 14px; }
.dl-row .st { margin-left: auto; }

.order-summary { display: flex; gap: 12px; }

.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--navsafe)); transform: translateX(-50%) translateY(20px);
  background: var(--dark); color: #fff; padding: 13px 22px; border-radius: 12px; font-size: 14px;
  opacity: 0; transition: .25s; z-index: 100; pointer-events: none; box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border-left: 4px solid var(--orange);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.free { background: rgba(0,200,83,0.18); color: var(--orange); }
.badge.busy { background: rgba(255,255,255,0.14); color: #dfe4e6; }
.badge.off { background: rgba(255,255,255,0.08); color: #8b979d; }

/* ---------- Gett: vehicle class picker ---------- */
.class-hero {
  display: flex; align-items: center; gap: 16px; background: #f4f5f6;
  border-radius: 18px; padding: 16px 18px; margin-bottom: 14px;
}
.class-hero .hero-car { width: 126px; height: 54px; flex: none; color: var(--dark); }
.class-hero .hero-info { flex: 1; min-width: 0; }
.class-hero .hero-info b { font-size: 18px; display: block; letter-spacing: -0.3px; }
.class-hero .hero-info span { color: var(--muted); font-size: 13px; }
.class-hero .hero-price { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.class-hero .hero-eta { font-size: 13px; color: var(--muted); font-weight: 600; }

.class-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 10px; }
.class-row::-webkit-scrollbar { height: 0; }
.class-card {
  flex: none; width: 106px; border: 2px solid #e7eaec; border-radius: 11px;
  padding: 8px 7px 7px; text-align: center; cursor: pointer; background: #fff; transition: .12s;
}
.class-card:hover { border-color: #cfd6d9; }
.class-card.sel { border-color: var(--orange); background: #eefaf1; }
.class-card svg { width: 78px; height: 33px; color: var(--dark); }
.class-card b { display: block; font-size: 11.5px; margin-top: 4px; font-weight: 700; }
.class-card span { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.class-card.sel span { color: var(--orange); }
.class-card em { display: block; font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted); line-height: 1.2; margin-top: 3px; }
.class-card em + em { margin-top: 2px; }

/* Адреса с подсказками */
.addr-row input { cursor: text; }
.addr-row input::placeholder { color: var(--muted); font-weight: 500; }
.suggests { margin: -8px 0 14px; display: flex; flex-direction: column; max-height: 44vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.suggests:empty { display: none; }
.sugg-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 6px 4px; }
.sugg-h:first-child { padding-top: 4px; }
.sugg { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; }
.sugg:last-child { border-bottom: none; }
.sugg:hover { background: #f7f8f8; }
.sugg .pin { width: 32px; height: 32px; border-radius: 9px; background: #f2f3f4; display: grid; place-items: center; flex: none; font-size: 15px; }
.sugg .tx { min-width: 0; }
.sugg .tx b { display: block; font-size: 14px; }
.sugg .tx span { color: var(--muted); font-size: 12px; }

/* Нижняя строка: оплата · заказать · опции */
.pay-row { display: flex; align-items: stretch; gap: 10px; margin-top: 4px; }
/* Форма «тарифы»: содержимое прокручивается, а кнопки прижаты к самому низу
   формы (с небольшим отступом), поэтому не «залезают» на тарифы. */
.sheet.has-footer { display: flex; flex-direction: column; overflow: hidden; }
.sheet.has-footer .sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.sheet.has-footer .pay-row {
  flex: none; margin-top: 8px; padding-top: 10px; background: #fff;
  box-shadow: 0 -10px 14px -12px rgba(37, 51, 56, 0.28);
}
.pay-btn {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 68px; padding: 8px 10px; border-radius: 12px; background: #f4f5f6; border: 2px solid transparent;
  font-weight: 700; font-size: 11px; color: var(--dark);
}
.pay-btn:hover { background: #eceef0; }
.pay-btn svg { width: 24px; height: 24px; }
.order-btn { flex: 1; }
.opt-btn {
  flex: none; width: 58px; border-radius: 12px; background: #f4f5f6; display: grid; place-items: center; position: relative; color: var(--dark);
}
.opt-btn:hover { background: #eceef0; }
.opt-btn svg { width: 24px; height: 24px; }
.opt-btn .cnt {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}

/* Панели оплаты / опций */
.menu-panel { background: #f7f8f8; border-radius: 14px; padding: 6px; margin-bottom: 10px; }
.menu-panel .mp-title { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 10px 4px; text-transform: uppercase; letter-spacing: .04em; }
.pay-item, .opt-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; cursor: pointer; }
.pay-item:hover, .opt-item:hover { background: #fff; }
.pay-item.sel, .opt-item.sel { background: #fff; }
.pay-item svg { width: 26px; height: 26px; flex: none; }
.opt-item .em { width: 26px; text-align: center; font-size: 20px; flex: none; }
.opt-item > svg, .pay-item > svg { width: 26px; height: 26px; flex: none; color: var(--dark); }
.opt-item .oi { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--dark); }
.opt-item .oi svg { width: 20px; height: 20px; }
.opt-item .tick { width: 20px; height: 20px; font-size: 12px; }
/* Компактная сетка опций — всё влезает на экран */
.menu-panel.opts-grid { padding: 7px; margin-bottom: 8px; }
.opt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.opt-cols .opt-item {
  padding: 7px 9px; gap: 7px; background: #fff; border-radius: 10px;
  border: 1.5px solid transparent; min-height: 40px;
}
.opt-cols .opt-item:hover { background: #fbfbfb; }
.opt-cols .opt-item.sel { background: #eefaf1; border-color: var(--volt); }
.opt-cols .opt-item.sel .oi { color: var(--volt); }
.opt-cols .opt-item .oi { width: 20px; height: 20px; }
.opt-cols .opt-item .oi svg { width: 18px; height: 18px; }
.opt-cols .opt-item .tick { display: none; }
.opt-cols .opt-item .nm { font-size: 12px; line-height: 1.12; font-weight: 600; }

/* Открыты «Оплата»/«Опции» — форма выдвигается вверх почти на весь экран,
   чтобы панель и кнопки были видны целиком (не «западали» под низ телефона). */
.sheet.panel-open { max-height: 92vh; }
/* Когда открыты «Опции» — ужимаем весь экран, чтобы всё влезло без прокрутки */
.sheet.opts-open { padding-top: 8px; }
.sheet.opts-open .grab { margin: 2px auto 8px; }
.sheet.opts-open .addr-box { margin-bottom: 8px; }
.sheet.opts-open .addr-row { padding: 7px 12px; }
.sheet.opts-open .when-wrap { margin-bottom: 8px; }
.sheet.opts-open .class-row { margin-bottom: 8px; }
.sheet.opts-open .class-card { padding: 6px 7px; border-radius: 10px; }
.sheet.opts-open .class-card svg { width: 64px; height: 26px; }
.sheet.opts-open .class-card b { margin-top: 2px; font-size: 11px; }
.sheet.opts-open .class-card em { font-size: 9.5px; line-height: 1.1; }
.sheet.opts-open .pay-row { margin-top: 6px; }
.pay-item .nm, .opt-item .nm { flex: 1; font-weight: 600; font-size: 14px; }
.pay-item .tick, .opt-item .tick {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid #cfd6d9; display: grid; place-items: center;
  color: #fff; font-size: 13px; flex: none;
}
.pay-item.sel .tick, .opt-item.sel .tick { background: var(--orange); border-color: var(--orange); }

/* ---------- History overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; padding-top: var(--topsafe, env(safe-area-inset-top, 0px)); }
.overlay-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.overlay-head h2 { font-size: 19px; letter-spacing: -0.3px; }
.overlay-head .back {
  width: 40px; height: 40px; border-radius: 12px; background: #f0f2f3; flex: none;
  display: grid; place-items: center; cursor: pointer;
}
.overlay-head .back svg { width: 19px; height: 19px; }
.overlay-head .ov-call {
  width: 40px; height: 40px; border-radius: 12px; border: none; flex: none; margin-left: auto;
  background: #00C853; color: #fff; font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
}
.overlay-head .ov-call:active { transform: scale(0.94); }
.overlay.dark .overlay-head .ov-call { background: #00C853; }
.overlay-body { flex: 1; overflow: auto; padding: 14px 18px calc(40px + var(--navsafe, env(safe-area-inset-bottom, 0px))); }
.overlay .summary { background: var(--dark); color: #fff; border-radius: 18px; padding: 20px; margin-bottom: 16px; }
.overlay .summary small { color: #9aa6ab; font-size: 13px; }
.overlay .summary b { font-size: 30px; display: block; letter-spacing: -0.8px; margin-top: 4px; }
.trip { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trip .tp-date { color: var(--muted); font-size: 12px; width: 62px; flex: none; font-weight: 600; }
.trip .tp-main { flex: 1; min-width: 0; }
.trip .tp-route { font-size: 14px; font-weight: 600; }
.trip .tp-route .arr { color: var(--orange); }
.trip .tp-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.trip .tp-price { font-weight: 800; white-space: nowrap; }
.trip .tp-price.cancel { color: var(--muted); }
.overlay .none { text-align: center; color: var(--muted); padding: 60px 20px; }
.overlay .none .em { font-size: 44px; display: block; margin-bottom: 12px; }

.overlay.dark { background: var(--dark-2); color: #fff; }
.overlay.dark .overlay-head { border-color: rgba(255,255,255,0.1); }
.overlay.dark .overlay-head .back { background: rgba(255,255,255,0.1); }
.overlay.dark .overlay-body { color: #fff; }
.overlay.dark .trip { border-color: rgba(255,255,255,0.08); }
.overlay.dark .summary { background: var(--orange); }
.overlay.dark .summary small { color: rgba(255,255,255,0.8); }

/* ---------- История: подробные карточки ---------- */
.hist-sec { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 16px 2px 8px; }
.trip-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: #fff; }
.trip-card.canceled { opacity: .85; }
.tc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tc-date { color: var(--muted); font-size: 12px; font-weight: 600; }
.tc-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tc-badge.ok { background: rgba(47,179,68,0.14); color: var(--green); }
.tc-badge.cancel { background: rgba(229,72,77,0.12); color: #e5484d; }
.tc-route { margin-bottom: 12px; }
.tc-pt { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 4px 0; }
.tc-pt .mk { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tc-pt .mk.a { background: var(--green); }
.tc-pt .mk.b { background: var(--orange); }
.tc-rows { border-top: 1px dashed var(--line); padding-top: 8px; }
.trip-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; }
.trip-row span { color: var(--muted); }
.trip-row b { font-weight: 700; text-align: right; }
.trip-row b.ok { color: var(--green); }
.tc-price { margin-top: 10px; text-align: right; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.tc-price.cancel { color: var(--muted); }

/* История водителя: цвет выполненных/отменённых */
.trip { cursor: pointer; }
.trip.is-done .tp-price { color: var(--green); }
.trip.is-cancel .tp-price { color: #e5484d; }
.trip.is-cancel .tp-route { color: var(--muted); }
.td-note { color: var(--muted); font-size: 12px; margin-top: 8px; text-align: right; }

.overlay.dark .trip-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.overlay.dark .tc-date { color: rgba(255,255,255,0.6); }
.overlay.dark .trip-row span { color: rgba(255,255,255,0.6); }
.overlay.dark .td-note { color: rgba(255,255,255,0.55); }
.overlay.dark .hist-sec { color: rgba(255,255,255,0.65); }

/* Баланс: отрицательное значение и предупреждения */
.money-card b.neg { color: #e5484d; }
.bal-warn { border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; margin: 4px 0 12px; }
.bal-warn.warn { background: rgba(245,158,11,0.14); color: #b45309; }
.bal-warn.danger { background: rgba(229,72,77,0.12); color: #e5484d; }

/* ---------- Строка промокода в заказе ---------- */
.promo-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(47,179,68,0.1); color: var(--green); font-weight: 700; font-size: 13px;
  border-radius: 12px; padding: 10px 14px; margin-bottom: 10px;
}

/* ---------- Промокоды ---------- */
.promo-hint { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.promo-msg { font-size: 13px; font-weight: 600; margin-top: 12px; min-height: 18px; }
.promo-msg.ok { color: var(--green); }
.promo-msg.err { color: #e5484d; }
.promo-list { margin-top: 22px; }
.promo-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.promo-item b { font-size: 14px; letter-spacing: .5px; }
.promo-item span { color: var(--muted); font-size: 13px; text-align: right; }

/* Компактная строка промокода в приложении водителя (одна строка, без переполнения). */
.drv-promo-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-top: 1px solid var(--line); font-size: 12px; cursor: pointer;
  overflow: hidden;
}
.drv-promo-item:first-child { border-top: none; }
.drv-promo-item b {
  flex: 0 0 auto; font-size: 12px; letter-spacing: .3px;
  max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drv-promo-item span {
  flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 11px;
  text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drv-promo-item .dp-act { flex: 0 0 auto; font-weight: 700; color: #00c853; }
.drv-promo-item.used { cursor: default; }
.drv-promo-item.used b { color: #8a9aa3; }
.drv-promo-item.used .dp-act { color: #e5484d; }
.drv-promo-item .dp-timer { flex: 0 0 auto; color: #e5484d; font-weight: 700; }

/* ---------- Поддержка: чат ---------- */
.overlay-body.chat-body { display: flex; flex-direction: column; overflow: hidden; padding-bottom: calc(26px + var(--navsafe, env(safe-area-inset-bottom, 0px))); }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 0 12px; }
.bubble { max-width: 78%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.35; word-wrap: break-word; }
.bubble.op { align-self: flex-start; background: #f0f1f2; color: var(--dark); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--orange); color: #fff; border-bottom-right-radius: 5px; }
.chat-empty { color: var(--muted); text-align: center; font-size: 13px; padding: 30px 16px; margin: auto; }
.chat-input { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; font-family: inherit; outline: none; }
.chat-input input:focus { border-color: var(--orange); }
.chat-input button {
  width: 48px; border: none; border-radius: 14px; background: var(--orange); color: #fff; font-size: 18px;
  display: grid; place-items: center; flex: none;
}
.chat-input button:hover { filter: brightness(1.05); }
.opt-item .nm small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.overlay-body .opt-item { border: 1px solid var(--line); margin-bottom: 10px; }

/* ---------- Настройки: формы ---------- */
.form-block { background: #f7f8f8; border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.form-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.fld { display: block; margin-bottom: 12px; }
.fld:last-child { margin-bottom: 0; }
.fld span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.fld input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: inherit; background: #fff; outline: none;
}
.fld input:focus { border-color: var(--orange); }

/* ---------- Рекламный баннер в меню ---------- */
.drawer-foot { margin-top: auto; padding: 8px 8px 22px; }
.ad-banner {
  position: relative; display: block; border-radius: 14px; overflow: hidden; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,200,83,0.28);
}
.ad-banner img { display: block; width: 100%; height: 88px; object-fit: cover; }
.ad-banner-txt {
  position: absolute; left: 14px; bottom: 12px; right: 14px; color: #fff;
  display: flex; flex-direction: column; gap: 1px; text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.ad-banner-txt b { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.ad-banner-txt span { font-size: 11px; font-weight: 600; opacity: .95; }

/* ---------- Заставка при запуске (TAXI VOLT) ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 36%, #ffffff 0%, #e9f9ef 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .5s ease; opacity: 1;
}
#splash.hide { opacity: 0; pointer-events: none; }
.splash-logo { width: 130px; height: 130px; border-radius: 24px; animation: voltPop .7s cubic-bezier(.2,.9,.3,1.25) both; filter: drop-shadow(0 16px 30px rgba(0,200,83,.35)); }
.splash-name {
  font-family: var(--font-logo); font-weight: 700; font-size: 32px; letter-spacing: 3px;
  animation: voltUp .6s ease .25s both;
}
.splash-name span { color: var(--dark); }
.splash-name b { color: var(--volt); margin-left: 6px; letter-spacing: 3px; }
.splash-tag { color: #7b868d; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; animation: voltUp .6s ease .4s both; }
@keyframes voltPop { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes voltUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ad-banner:active { transform: scale(0.99); }

/* ---------- Ожидание (бесплатное / платное) ---------- */
.wait-box { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.wait-box.free { background: #eefaf1; border: 1px solid #cdecd6; }
.wait-box.paid { background: #fdecec; border: 1px solid #f6c9c9; }
.wait-clock {
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px;
  min-width: 62px; text-align: center; letter-spacing: 0.5px;
}
.wait-box.free .wait-clock { color: var(--green); }
.wait-box.paid .wait-clock { color: var(--red); }
.wait-tx { display: flex; flex-direction: column; gap: 1px; }
.wait-tx b { font-size: 14px; }
.wait-tx span { font-size: 12px; color: var(--muted); }
.wait-fee { margin-left: auto; font-weight: 800; font-size: 16px; color: var(--red); }

/* ---------- Мульти-заказ у пассажира: водитель доедет после текущей поездки ---------- */
.p-queued {
  display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
  background: #fff5e6; border: 1px solid #f6dcb0;
}
.p-queued .pq-ic { font-size: 22px; flex: none; }
.p-queued b { display: block; font-size: 14px; color: #7a4a00; }
.p-queued span { font-size: 12px; color: #a8763a; }

.d-wait {
  margin: 0 0 10px; padding: 9px 12px; border-radius: 12px;
  background: rgba(0,200,83,0.16); color: #d7fbe4; font-weight: 700; font-size: 13px;
}

/* ===========================================================================
   Приложение водителя: заставка, вход/регистрация, фотоконтроль
   =========================================================================== */

/* ---------- Заставка водителя ---------- */
.splash-driver { background: radial-gradient(circle at 50% 34%, #ffffff 0%, #e9f9ef 72%); }
.splash-bar {
  width: 128px; height: 4px; border-radius: 4px; background: #dbe6df; overflow: hidden;
  margin-top: 4px; animation: voltUp .6s ease .5s both;
}
.splash-bar i {
  display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--volt);
  animation: splashSlide 1.1s ease-in-out infinite;
}
@keyframes splashSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ---------- Экран входа / регистрации ---------- */
.overlay.auth {
  background: radial-gradient(circle at 50% 0%, #1b262b 0%, #0b111c 68%);
  align-items: center; justify-content: center; overflow: auto;
  padding: var(--topsafe, env(safe-area-inset-top, 0px)) 0 calc(var(--navsafe, env(safe-area-inset-bottom, 0px)));
}
.auth-wrap {
  width: 100%; max-width: 430px; padding: 22px 20px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.auth-logo { width: 60px; height: 60px; }
.auth-logo svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 22px rgba(0,200,83,.4)); animation: voltPop .6s both; }
.auth-brand {
  font-family: var(--font-logo); font-weight: 700; font-size: 21px; letter-spacing: 1.5px; color: #fff;
  display: flex; align-items: baseline; gap: 4px;
}
.auth-brand b { color: var(--volt); }
.auth-brand i { font-style: normal; font-size: 11px; letter-spacing: 1.2px; color: #8b979d; text-transform: uppercase; margin-left: 4px; }
.auth-tabs { display: flex; width: 100%; background: rgba(255,255,255,.07); border-radius: 12px; padding: 3px; margin-top: 4px; }
.auth-tab { flex: 1; padding: 9px; border-radius: 9px; color: #b7c0c4; font-weight: 700; font-size: 14px; transition: .15s; }
.auth-tab.active { background: var(--volt); color: #fff; }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.auth-field { display: flex; flex-direction: column; gap: 3px; }
.auth-field span { font-size: 12px; color: #9aa6ab; font-weight: 600; padding-left: 2px; }
.auth-field input {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff;
  border-radius: 10px; padding: 10px 12px; font-size: 15px; outline: none; transition: border-color .15s;
}
.auth-field input::placeholder { color: #6b767c; }
.auth-field input:focus { border-color: var(--volt); }
.auth-err { color: #ff7b80; font-size: 12px; min-height: 15px; text-align: center; }
.auth-submit { background: var(--volt); color: #fff; border-radius: 12px; padding: 12px; font-weight: 800; font-size: 16px; transition: .12s; }
.auth-submit:active { transform: scale(.985); }
.auth-submit:disabled { opacity: .6; }
.auth-note { color: #6f7a80; font-size: 11px; text-align: center; margin-top: 2px; line-height: 1.35; }
.reg-only { display: none; }
@media (max-height: 720px) {
  .auth-wrap { padding: 14px 18px 16px; gap: 6px; }
  .auth-logo { width: 46px; height: 46px; }
  .auth-brand { font-size: 18px; }
  .auth-form { gap: 6px; }
  .auth-field input { padding: 8px 11px; }
  .auth-submit { padding: 10px; }
  .auth-note { display: none; }
}

/* ---------- Камера ---------- */
.overlay.cam { background: #000; }
.cam-title {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 18px 20px 30px;
  text-align: center; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(180deg, rgba(0,0,0,.65), transparent);
}
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-frame { position: absolute; inset: 9% 7%; border: 2px dashed rgba(255,255,255,.55); border-radius: 20px; pointer-events: none; }
.cam-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 30px 42px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
}
.cam-cancel { color: #fff; font-weight: 700; font-size: 15px; padding: 10px 16px; }
.cam-shoot { width: 74px; height: 74px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.35); transition: .1s; }
.cam-shoot:active { transform: scale(.93); }
.cam-flip { color: #fff; font-size: 26px; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.16); }

/* ---------- Документы (сетка фото) ---------- */
.docs-progress { margin-bottom: 14px; }
.dp-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.dp-bar i { display: block; height: 100%; background: var(--volt); transition: width .35s ease; }
.dp-tx { color: #9aa6ab; font-size: 13px; margin-top: 7px; }
.dp-tx b { color: #fff; }
.doc-group { margin-top: 16px; }
.doc-group-t { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: #8b979d; margin-bottom: 10px; font-weight: 700; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 430px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
.doc-slot {
  position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  padding: 9px 6px; color: #dfe4e6; transition: transform .12s, border-color .15s, background .15s;
}
.doc-slot:active { transform: scale(.97); }
.doc-slot.done { border-color: rgba(0,200,83,.55); background: rgba(0,200,83,.1); }
.doc-slot.rejected { border-color: rgba(229,72,77,.7); background: rgba(229,72,77,.12); }
.ds-rej {
  position: absolute; top: 6px; left: 6px; background: #e5484d; color: #fff; font-size: 9px;
  font-weight: 800; padding: 2px 6px; border-radius: 20px; letter-spacing: .3px; text-transform: uppercase;
}
.doc-slot.busy { opacity: .55; }
.ds-ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: rgba(0,0,0,.28); display: grid; place-items: center; overflow: hidden; }
.ds-ph img { width: 100%; height: 100%; object-fit: cover; }
.ds-ph i { font-size: 26px; font-style: normal; }
.ds-lbl { font-size: 11.5px; line-height: 1.2; color: #c7d0d4; }
.ds-chk {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--volt); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 800;
}

/* ---------- Заметки / баннеры фотоконтроля ---------- */
.pc-note { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; line-height: 1.4; }
.pc-note.ok { background: rgba(0,200,83,.14); color: #7fe0a6; }
.pc-note.info { background: rgba(90,160,255,.14); color: #a9c8ff; }
.pc-note.warn { background: rgba(250,131,72,.16); color: #ffbe93; }
.pc-note.danger { background: rgba(229,72,77,.16); color: #ff9a9e; }
.pc-bigcap { color: #c7d0d4; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }

.pc-banner {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px;
  font-size: 13px; font-weight: 600; margin-bottom: 8px; line-height: 1.35;
}
.pc-banner .pcb-ic { font-size: 16px; flex: none; }
.pc-banner.info { background: rgba(0,200,83,.13); color: #7fe0a6; }
.pc-banner.warn { background: rgba(250,131,72,.15); color: #ffbe93; }
.pc-banner.danger { background: rgba(229,72,77,.16); color: #ff9a9e; }
.pc-okline { text-align: center; color: #7fe0a6; font-weight: 700; font-size: 13px; padding: 8px; }

/* ---------- Центр фотоконтроля ---------- */
.hub-card {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; margin-bottom: 10px;
}
.hub-card.danger { border-color: rgba(229,72,77,.5); background: rgba(229,72,77,.1); }
.hub-card.warn { border-color: rgba(250,131,72,.45); }
.hub-ic { font-size: 24px; }
.hub-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-tx b { font-size: 15px; }
.hub-tx span { font-size: 12.5px; color: #9aa6ab; }
.hub-btn { margin-left: auto; background: rgba(255,255,255,.12); color: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 13px; }

/* ---------- Driver: радар, свайп, нижняя навигация ---------- */
body.driver { --navh: 68px; --navsafe: env(safe-area-inset-bottom, 0px); }

.d-top { justify-content: space-between; align-items: center; }
.d-top .d-earn { margin-left: auto; }

.d-radar {
  position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none; margin-top: 22px;
  background: radial-gradient(circle at 50% 42%, #00e05d, #00a844);
  box-shadow: 0 5px 16px rgba(0,200,83,.45); display: grid; place-items: center;
}
.d-radar[hidden] { display: none; }
.d-radar.dim { background: radial-gradient(circle at 50% 42%, #8a959c, #5c666d); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.d-radar.blocked { background: radial-gradient(circle at 50% 42%, #ff5c4d, #c62828); box-shadow: 0 5px 16px rgba(198,40,40,.5); }
.d-radar.blocked .radar-sweep { animation: none; opacity: .28; }
.radar-core { width: 11px; height: 11px; border-radius: 50%; background: #fff; z-index: 2; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.radar-sweep {
  position: absolute; inset: 3px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,.75), rgba(255,255,255,0) 38%);
  animation: radarSpin 2.2s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 4px, #000 5px);
          mask: radial-gradient(circle, transparent 4px, #000 5px);
}
.d-radar.dim .radar-sweep { animation: none; opacity: .25; }
@keyframes radarSpin { to { transform: rotate(360deg); } }

.d-sheet { bottom: calc(var(--navh) + var(--navsafe)); max-height: 70vh; }
@media (min-width: 900px) { .d-sheet { bottom: calc(20px + var(--navh) + var(--navsafe)); } }

.d-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; height: calc(var(--navh) + var(--navsafe));
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(15,22,26,.98); border-top: 1px solid rgba(255,255,255,.07);
  padding-bottom: var(--navsafe);
}
.nav-item {
  background: none; color: #7d888e; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 8px 2px; font-size: 9.5px; font-weight: 600;
  line-height: 1.05; text-align: center; transition: color .12s;
}
.nav-item .ni-ic { width: 22px; height: 22px; display: grid; place-items: center; }
.nav-item .ni-ic svg { width: 22px; height: 22px; }
.nav-item .ni-lbl { max-width: 100%; }
.nav-item.on { color: var(--volt); }
.nav-item.on .ni-ic { filter: drop-shadow(0 0 6px rgba(0,200,83,.5)); }
.ni-photo { width: 23px; height: 23px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.ni-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ni-photo-fb { font-size: 14px; line-height: 1; }
.nav-item.on .ni-photo { box-shadow: 0 0 0 2px var(--volt); }

/* Красный счётчик заказов на время над иконкой */
.nav-item .ni-ic { position: relative; }
.nav-badge {
  position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: #e53935; color: #fff; font-size: 10px; font-weight: 800;
  line-height: 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.nav-badge[hidden] { display: none; }

/* GPS-кружок над формой водителя */
.d-gps {
  position: fixed; right: 16px; z-index: 45; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(15,22,26,.96); color: var(--volt); display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 8px 22px rgba(0,0,0,.5);
  transition: transform .12s;
}
.d-gps:active { transform: scale(.94); }
.d-gps svg { width: 24px; height: 24px; }
.d-gps.locating { color: #fff; background: var(--volt); }

.swipe-on {
  position: relative; height: 68px; margin-top: 16px; border-radius: 16px;
  background: linear-gradient(135deg, #00d15a, #00a844); overflow: hidden;
  user-select: none; touch-action: none; box-shadow: 0 8px 22px rgba(0,200,83,.28);
}
.swipe-on .swipe-knob {
  position: absolute; top: 7px; left: 7px; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; z-index: 2; cursor: grab;
  box-shadow: 0 3px 10px rgba(0,0,0,.25); touch-action: none; will-change: transform;
}
.swipe-on.dragging .swipe-knob { cursor: grabbing; }
.swipe-knob svg { width: 26px; height: 26px; color: #10181c; }
.swipe-label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; pointer-events: none; color: #fff;
}
.swipe-label b { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.swipe-label small { font-size: 11.5px; opacity: .9; margin-top: 1px; }

.d-line-msg {
  position: fixed; left: 0; right: 0; bottom: calc(var(--navh) + var(--navsafe) + 12px); z-index: 44;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 14px;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: .22s;
}
.d-line-msg.show { opacity: 1; transform: none; pointer-events: auto; }
.d-line-msg button {
  font-weight: 800; font-size: 14px; padding: 13px 18px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0,0,0,.45); white-space: nowrap;
}
.d-line-msg .lm-stay { background: #fff; color: #07240f; }
.d-line-msg .lm-leave { background: rgba(229,72,77,.95); color: #fff; }

/* Стрелка-навигатор собственного авто */
.osm-arrow svg { display: block; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.osm-arrow { transition: filter .3s; }
.osm-arrow.arrow-online svg { filter: drop-shadow(0 0 10px rgba(255,193,7,.75)) drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.osm-arrow.arrow-blocked svg { filter: drop-shadow(0 0 10px rgba(229,57,53,.75)) drop-shadow(0 4px 5px rgba(0,0,0,.45)); }

/* Баннер навигатора */
.nav-banner {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 47;
  display: flex; align-items: center; gap: 8px; max-width: 92%;
  background: rgba(13,20,24,.96); color: #fff; border-radius: 14px; padding: 10px 12px 10px 14px;
  font-size: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08);
}
.nav-banner[hidden] { display: none; }
.nav-banner .nb-ic { font-size: 17px; }
.nav-banner b { color: #fff; }
.nav-banner span { color: #c7d0d4; }
.nav-banner #navStop {
  margin-left: 6px; background: rgba(229,72,77,.92); color: #fff; font-weight: 700;
  font-size: 13px; padding: 8px 13px; border-radius: 999px;
}

.money-card { background: linear-gradient(135deg, rgba(0,200,83,.16), rgba(0,200,83,.05)); border: 1px solid rgba(0,200,83,.35); border-radius: 18px; padding: 22px; margin: 4px 0 14px; text-align: center; }
.money-card small { color: #9fb0aa; font-size: 13px; display: block; margin-bottom: 6px; }
.money-card b { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.money-card.bal { background: linear-gradient(135deg, rgba(41,121,255,.16), rgba(41,121,255,.05)); border-color: rgba(41,121,255,.35); }
.money-card.bal b { font-size: 34px; }
.money-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money-card.compact { margin: 0; padding: 14px 14px; text-align: left; }
.money-card.compact small { margin-bottom: 4px; }
.money-card.compact b { font-size: 20px; letter-spacing: -.5px; }
.prof-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.prof-photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 30px; flex: none; }
.prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-head h2 { font-size: 19px; }
.prof-head small { color: #9aa6ab; font-size: 13px; }
.prof-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; color: #9aa6ab; }
.prof-row b { color: #fff; font-weight: 700; }
.chat-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); margin-bottom: 8px; cursor: pointer; }
.chat-row .cr-ava { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 18px; flex: none; position: relative; overflow: hidden; }
.chat-row .cr-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chat-row .cr-main { min-width: 0; flex: 1; }
.chat-row .cr-main b { display: block; font-size: 14px; }
.chat-row .cr-main small { color: #9aa6ab; font-size: 12.5px; }
.chat-row .cr-badge { background: var(--volt); color: #06210f; font-weight: 800; font-size: 12px; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
.chat-row.unread .cr-badge { background: #e53935; color: #fff; }
.chat-row.unread .cr-main small { color: #fff; font-weight: 600; }

/* ---------- Профиль водителя: новая структура ---------- */
.prof-head2 { display: flex; align-items: center; gap: 12px; margin: 2px 0 2px; }
.prof-head2 .prof-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 24px; flex: none; }
.prof-head2 .prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-name { flex: 1; min-width: 0; }
.prof-name h2 { font-size: 18px; margin: 0 0 3px; white-space: normal; overflow: visible; text-overflow: clip; word-break: break-word; line-height: 1.15; }
.prof-patro { font-size: 14px; font-weight: 600; color: #c7d0d4; margin: 0 0 3px; line-height: 1.15; }
.prof-rating { color: #ffc233; font-size: 13px; font-weight: 800; }
.prof-phone { color: #e8eef1; font-size: 13.5px; font-weight: 700; white-space: nowrap; margin-left: 8px; }
.prof-sec { margin: 9px 0; }
.prof-sec-title { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #8b98a0; margin: 0 2px 5px; }
.prof-toggle { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.05); margin-bottom: 6px; cursor: pointer; }
.prof-toggle .pt-ic { font-size: 18px; width: 24px; text-align: center; flex: none; display: flex; align-items: center; justify-content: center; color: var(--volt); }
.prof-toggle .pt-ic svg { width: 20px; height: 20px; }
.prof-toggle .pt-nm { flex: 1; font-size: 14px; }
.prof-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.prof-toggle .switch { width: 44px; height: 26px; border-radius: 999px; background: #3a4449; position: relative; transition: background .18s; flex: none; }
.prof-toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; }
.prof-toggle input:checked + .switch { background: var(--volt); }
.prof-toggle input:checked + .switch::after { transform: translateX(18px); }
.prof-toggle.on { background: rgba(0,200,83,.12); }
.prof-toggle.on .pt-ic { color: var(--volt); }
.prof-toggle.on .pt-nm { color: #57d98a; }
.prof-toggle.off { background: rgba(255,255,255,.04); }
.prof-toggle.off .pt-ic { color: #6b747b; }
.prof-toggle.off .pt-nm { color: #8b93a1; }
.car-banner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; text-align: left; cursor: pointer; }
.car-banner .cb-ic { font-size: 24px; flex: none; }
.car-banner .cb-tx { flex: 1; min-width: 0; }
.car-banner .cb-tx b { display: block; font-size: 15px; }
.car-banner .cb-tx small { color: #9aa6ab; font-size: 12.5px; }
.car-banner .cb-arrow { color: #9aa6ab; font-size: 22px; }
.pc-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,.05); margin-bottom: 4px; cursor: pointer; color: #fff; text-align: left; }
.pc-row .pc-ic { font-size: 14px; }
.pc-row .pc-nm { flex: 1; font-size: 13px; }
.pc-row .pc-st { font-size: 11px; font-weight: 700; }
.pc-row.ok .pc-st { color: #33d17a; }
.pc-row.bad { background: rgba(229,72,77,.12); }
.pc-row.bad .pc-st { color: #ff6b6b; }

/* Свёрнутый блок «Тарифы и опции» + Ф.И.О. */
.prof-sec-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; color: #fff; cursor: pointer; padding: 0; }
.prof-sec-head .prof-sec-title { margin: 0; }
.prof-sec .sec-arrow { color: #8b98a0; font-size: 22px; line-height: 1; transition: transform .18s; }
.prof-sec.open .sec-arrow { transform: rotate(90deg); }
.prof-sec .prof-collapse { display: none; margin-top: 8px; }
.prof-sec.open .prof-collapse { display: block; }
.prof-fio { margin: 14px 2px 12px; font-size: 12.5px; color: #8b98a0; }
.prof-fio b { color: #e8eef1; font-size: 14px; }

/* Системные чаты водителя */
.chat-row.sys { background: rgba(255,255,255,.08); }
.chat-row.sys .cr-ava.sys-ic { background: rgba(255,255,255,.14); }
.feed-item { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); margin-bottom: 8px; }
.feed-item .fi-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.feed-item .fi-head b { font-size: 14.5px; }
.feed-item .fi-head span { font-size: 11.5px; color: #8b98a0; white-space: nowrap; }
.feed-item .fi-text { font-size: 13px; color: #c7d0d4; line-height: 1.35; }

/* Пассажир в карточке заказа (водитель) */
.oc-pax { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; }
.oc-pax-photo { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.oc-pax-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-pax-photo .dc-photo-fb { font-size: 20px; }
.oc-pax b { font-size: 14.5px; }
.oc-pax .oc-pax-star { color: #ffc233; font-size: 13px; font-weight: 800; margin-left: auto; }

/* ---------- Компактная загрузка фото (фотоконтроль) ---------- */
.docs-overlay .overlay-body { padding: 6px 10px calc(16px + var(--navsafe, env(safe-area-inset-bottom, 0px))); overflow: hidden auto; scrollbar-width: none; }
.docs-overlay .overlay-body::-webkit-scrollbar { width: 0; height: 0; }
.docs-overlay .overlay-head { padding: calc(10px + var(--topsafe, env(safe-area-inset-top, 0px))) 14px 10px; }
.docs-overlay .overlay-head h2 { font-size: 15px; }
.docs-overlay .docs-progress { margin-bottom: 5px; }
.docs-overlay .dp-bar { height: 5px; }
.docs-overlay .dp-tx { font-size: 11px; margin-top: 4px; }
.docs-overlay .doc-group { margin: 0 0 6px; }
.docs-overlay .doc-group-t { font-size: 9px; margin-bottom: 3px; }
.docs-overlay .doc-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
.docs-overlay .doc-slot { padding: 4px 3px; gap: 3px; border-radius: 8px; }
.docs-overlay .ds-ph { width: 44px; height: 44px; aspect-ratio: auto; border-radius: 6px; margin: 0 auto; }
.docs-overlay .ds-ph i { font-size: 15px; }
.docs-overlay .ds-lbl { font-size: 8.5px; line-height: 1.05; }
.docs-overlay .ds-chk { width: 14px; height: 14px; font-size: 9px; top: 4px; right: 4px; }
.docs-overlay .pc-note { padding: 6px 9px; font-size: 11.5px; margin-bottom: 6px; }
.docs-overlay .d-btn.full { margin-top: 6px; padding: 11px; }
@media (max-width: 360px) { .docs-overlay .doc-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Коэффициент спроса ---------- */
.surge-badge {
  position: absolute; top: 34px; right: 14px;
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  background: #43a047; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  font-family: inherit; cursor: default;
}
.surge-badge b { font-size: 17px; font-weight: 800; line-height: 1; }
.surge-badge small { font-size: 8.5px; opacity: .9; text-transform: uppercase; letter-spacing: .3px; }
.surge-badge.hot { animation: surgePulse 1.2s ease-in-out infinite; }
@keyframes surgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }

.oc-coef {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px;
  font-size: 12px; font-weight: 800; color: #1b1b1b;
}

/* ---------- Мульти-заказ: предложение и очередь ---------- */
.multi-offer {
  position: fixed; left: 12px; right: 12px;
  top: calc(var(--topsafe, env(safe-area-inset-top, 0px)) + 96px);
  z-index: 1200; color: #fff; border-radius: 16px; padding: 12px 14px;
  background: linear-gradient(135deg, #0b7a44, #0f9d58);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  animation: multiIn .22s ease-out;
}
.multi-offer[hidden] { display: none; }
@keyframes multiIn { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.multi-offer .mo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.multi-offer .mo-tag { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.multi-offer .mo-price { font-size: 18px; font-weight: 800; }
.multi-offer .mo-route { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.multi-offer .mo-route b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-offer .mo-route .mo-arrow { opacity: .8; flex: none; }
.multi-offer .mo-route .t2 { opacity: .85; }
.multi-offer .mo-meta { font-size: 11.5px; opacity: .9; margin-top: 5px; }
.multi-offer .mo-btns { display: flex; gap: 8px; margin-top: 10px; }
.multi-offer .mo-btns .d-btn { flex: 1; }

.queue-btn {
  position: fixed; top: 74px; right: 14px; z-index: 40;
  display: flex; align-items: center; gap: 6px;
  background: #111827; color: #fff; border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 12px;
  font: 700 13px/1 Quicksand, system-ui, sans-serif;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.queue-btn[hidden] { display: none; }
.queue-btn .qb-ic { font-size: 14px; }
.queue-btn b {
  background: #00C853; color: #fff; border-radius: 999px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
body.driver.day .queue-btn { background: #fff; color: #1b2a31; border-color: #dfe3e5; }
.queue-card .q-note { margin-top: 8px; font-size: 12px; color: #8b93a1; }

/* ---------- Вспышка экрана при новом заказе ---------- */
.order-flash {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, #fff8d6 0%, #ffd54a 55%, #ff9f1c 100%);
  opacity: 0; animation: orderFlash .95s ease-out forwards;
}
@keyframes orderFlash {
  0% { opacity: 0; }
  5% { opacity: .95; }
  13% { opacity: 0; }
  22% { opacity: .9; }
  30% { opacity: 0; }
  40% { opacity: .85; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Срочный заказ (оверлей 15 сек) ---------- */
.urgent-ov {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,12,14,.72); backdrop-filter: blur(2px);
}
.urgent-flash {
  position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none;
  animation: urgentFlash .6s linear infinite;
}
@keyframes urgentFlash { 0%,100% { opacity: 0; } 50% { opacity: .18; } }
.urgent-card {
  position: relative; z-index: 2; width: min(94vw, 420px);
  background: #20262b; color: #eef3f4; border-radius: 20px;
  padding: 16px 16px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
  animation: urgentPop .25s ease-out;
}
@keyframes urgentPop { from { transform: scale(.9); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.urgent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.urgent-tag { font-size: 13px; font-weight: 800; letter-spacing: .5px; color: #ffcc00; }
.urgent-ring {
  --p: 1; width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(#e53935 calc(var(--p) * 360deg), rgba(255,255,255,.14) 0);
  display: flex; align-items: center; justify-content: center;
}
.urgent-ring b { width: 36px; height: 36px; border-radius: 50%; background: #20262b; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.urgent-price { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.urgent-meta { font-size: 13px; color: #9fb0b6; margin: 8px 0 12px; }
/* Тёмные карточки (срочный заказ / завершение) всегда со светлым текстом,
   независимо от дневной темы формы. */
.urgent-card .rt .texts b { color: #eef3f4; }
.urgent-card .rt .texts .t2 { color: #cfd8dc; }
.urgent-card .rt .line .d.a { background: #fff; }
.urgent-card .rt .line .bar { background: rgba(255,255,255,.22); }
.urgent-card .oc-pax-photo { background: rgba(255,255,255,.12); }
.finish-card .stars { font-size: 30px; }
.finish-head { font-size: 18px; font-weight: 800; }
.finish-fare { font-size: 34px; font-weight: 800; color: #00e676; margin: 6px 0 2px; }
.finish-sub { font-size: 13px; color: #9fb0b6; }
.finish-client { display: flex; justify-content: space-between; margin: 12px 0; font-size: 14px; }
.finish-label { font-size: 13px; color: #9fb0b6; }
.finish-comment, .rate-comment {
  width: 100%; box-sizing: border-box; margin: 10px 0; padding: 10px 12px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: inherit; font: inherit; resize: vertical;
}
.rate-comment { border-color: rgba(0,0,0,.14); background: #f2f4f5; color: #1b1b1b; }

/* ---------- Повышенный спрос у пассажира ---------- */
.surge-line {
  margin: 8px 0; padding: 9px 12px; border-radius: 12px;
  color: #1b1b1b; font-size: 13px; font-weight: 700;
}

/* ---------- Ожидание ---------- */
.d-wait.paid { background: rgba(251,140,0,.16); color: #ffb74d; }

/* ===========================================================================
   Шторка водителя: тело, ручка-стрелка, сворачивание
   =========================================================================== */
.d-sheet-body { padding: 8px 18px 24px; overflow: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .d-sheet-body { padding-top: 4px; } }

.sheet-grab {
  flex: none; width: 100%; height: 40px; display: grid; place-items: center;
  background: transparent; color: #9aa6ab; cursor: pointer;
  transition: transform .26s;
}
.sheet-grab .sg-arrow { font-size: 22px; line-height: 1; transition: transform .26s; }
.sheet-grab:active { opacity: .7; }
.d-sheet-body > .grab { display: none; }
.d-sheet.collapsed { transform: translateY(calc(100% - 52px)); box-shadow: 0 -6px 22px rgba(0,0,0,.45); }
.d-sheet.collapsed .sheet-grab { transform: translateY(6px); }
.d-sheet.collapsed .sg-arrow { transform: rotate(180deg); }
.d-sheet.collapsed .d-sheet-body { pointer-events: none; }

/* Компактные тарифы и опции в профиле (в две колонки) */
.prof-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.prof-cols .prof-toggle { margin-bottom: 0; padding: 6px 9px; font-size: 12.5px; border-radius: 9px; gap: 7px; }
.prof-cols .prof-toggle .pt-ic { font-size: 15px; width: 18px; }
.prof-cols .prof-toggle .pt-ic svg { width: 16px; height: 16px; }
.prof-cols .prof-toggle .pt-nm { font-size: 12.5px; }
.prof-cols .prof-toggle .switch { width: 38px; height: 22px; }
.prof-cols .prof-toggle .switch::after { width: 16px; height: 16px; top: 3px; left: 3px; }
.prof-cols .prof-toggle input:checked + .switch::after { transform: translateX(16px); }

/* Компактный профиль: метаданные и блок условия работы */
.prof-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.prof-park { font-size: 11.5px; font-weight: 700; color: #9fb0b6; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.prof-mod { color: #fdd835; background: rgba(253,216,53,.09); border-color: rgba(253,216,53,.32); }
.prof-sec { margin: 7px 0; }
.car-banner { padding: 11px 13px; border-radius: 14px; }
.work-info { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.work-info .wi-park { display: flex; align-items: center; gap: 9px; font-size: 16px; margin-bottom: 8px; }
.work-info .wi-park .wi-ic { font-size: 20px; }
.work-info .wi-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.work-info .wi-row span { color: #9fb0b6; }
.work-info .wi-row b { font-weight: 700; white-space: nowrap; }
.work-info .wi-total { border-top: 2px solid rgba(0,200,83,.45); }
.work-info .wi-total b { color: #00c853; font-size: 16px; }

/* ===========================================================================
   Дневная тема (светлая форма). Тёмная — по умолчанию.
   =========================================================================== */
body.driver.day { background: #eef1f2; color: #1b262b; }
body.driver.day .d-top { background: transparent; }
body.driver.day .d-brand .wordmark { color: #1b262b; }
body.driver.day .d-brand .logo-badge { background: #1b262b; }
body.driver.day .pill-toggle { background: rgba(0,0,0,.06); }
body.driver.day .pill-toggle button { color: #5a666c; }
body.driver.day .d-earn small { color: #7b868d; }
body.driver.day .d-earn b { color: #1b262b; }

body.driver.day .d-sheet { background: #fff; box-shadow: 0 -12px 40px rgba(20,30,40,.18); color: #1b262b; }
body.driver.day .d-sheet h2 { color: #1b262b; }
body.driver.day .d-sheet .sub { color: #7b868d; }
body.driver.day .sheet-grab { color: #8b98a0; }

body.driver.day .order-card { background: #f4f6f7; border-color: #e7eaec; }
body.driver.day .order-card.active { background: #eafaef; border-color: rgba(0,200,83,.55); }
body.driver.day .order-card .dist { color: #6c777d; }
body.driver.day .d-sheet .rt .texts b { color: #1b262b; }
body.driver.day .d-sheet .rt .line .bar { background: #d4dade; }
body.driver.day .d-sheet .rt .line .d.a { background: #33454c; }
body.driver.day .sched-meta span { background: #eef1f2; color: #6c777d; }
body.driver.day .order-card.sched .sched-when { color: #1b262b; }
body.driver.day .empty { color: #8b979d; }
body.driver.day .d-status { color: var(--orange-d); }

body.driver.day .d-btn.dark { background: #eef1f2; color: #1b262b; }
body.driver.day .d-btn.dark:hover { background: #e3e7e9; }
body.driver.day .d-btn.ghost { color: #5a666c; border-color: #cfd6d9; }
body.driver.day .d-btn.ghost:hover { background: #f0f2f3; color: #1b262b; }
body.driver.day .d-btn.red { background: #fdeaea; color: #c62828; }

body.driver.day .d-wait { color: #0f7a3d; }
body.driver.day .d-wait.paid { color: #b26a00; }

body.driver.day .dl-row { background: #f4f6f7; }
body.driver.day .dl-row .ava { background: #e7eaec; }

body.driver.day .d-nav { background: rgba(255,255,255,.98); border-top-color: #e7eaec; }
body.driver.day .nav-item { color: #8b98a0; }
body.driver.day .ni-photo { background: #e7eaec; }

body.driver.day .d-gps { background: rgba(255,255,255,.98); border-color: #dfe3e5; color: var(--orange-d); }
body.driver.day .d-gps.locating { background: var(--orange); color: #fff; }
body.driver.day .d-radar.dim { background: radial-gradient(circle at 50% 42%, #b8c0c5, #8a959c); }
body.driver.day .d-radar.blocked { background: radial-gradient(circle at 50% 42%, #ff5c4d, #c62828); box-shadow: 0 5px 16px rgba(198,40,40,.4); }

/* Профиль, чаты, заказы — светлые поверхности днём */
body.driver.day .prof-sec-head { color: #1b262b; }
body.driver.day .prof-phone { color: #33454c; }
body.driver.day .prof-patro { color: #5a666c; }
body.driver.day .prof-fio b { color: #1b262b; }
body.driver.day .prof-toggle { background: #f4f6f7; }
body.driver.day .prof-toggle .switch { background: #cfd6d9; }
body.driver.day .prof-toggle input:checked + .switch { background: var(--volt); }
body.driver.day .prof-toggle.on { background: #e3f6ea; }
body.driver.day .prof-toggle.on .pt-nm { color: #1e8e4e; }
body.driver.day .prof-toggle.on .pt-ic { color: #1e8e4e; }
body.driver.day .prof-toggle.off { background: #eef1f2; }
body.driver.day .prof-toggle.off .pt-nm { color: #8b98a0; }
body.driver.day .prof-toggle.off .pt-ic { color: #98a3aa; }
body.driver.day .car-banner { background: #f4f6f7; border-color: #e7eaec; color: #1b262b; }
body.driver.day .prof-park { color: #5a666c; background: #eef1f2; border-color: #e7eaec; }
body.driver.day .prof-mod { color: #8a6d00; background: #fff7dc; border-color: #f2e2a0; }
body.driver.day .work-info { background: #f4f6f7; border-color: #e7eaec; }
body.driver.day .work-info .wi-row { border-top-color: #e2e7ea; }
body.driver.day .work-info .wi-row span { color: #5a666c; }
body.driver.day .pc-row { background: #f4f6f7; color: #1b262b; }
body.driver.day .pc-row .pc-st { color: #1b262b; }
body.driver.day .pc-row.ok .pc-st { color: #1e8e4e; }
body.driver.day .pc-row.bad { background: #fdeaea; }
body.driver.day .chat-row { background: #f4f6f7; }
body.driver.day .chat-row.sys { background: #eef1f2; }
body.driver.day .chat-row.sys .cr-ava.sys-ic { background: #e2e7e9; }
body.driver.day .chat-row .cr-ava { background: #e7eaec; }
body.driver.day .chat-row.unread .cr-main small { color: #c62828; }
body.driver.day .feed-item { background: #f4f6f7; }
body.driver.day .feed-item .fi-text { color: #46535a; }
body.driver.day .d-sheet .oc-pax-photo { background: #e7eaec; }
body.driver.day .money-card small { color: #4c7a5c; }

/* Ночная карта: инвертируем светлые тайлы OSM (маркеры и маршруты не затрагиваются) */
body.driver.night .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.92) saturate(.85); }


/* ---------- Скачать карту (офлайн) ---------- */
.mapdl-ov .overlay-body{display:flex;flex-direction:column}
.mapdl-search{padding:0 0 10px}
.mapdl-search input{width:100%;box-sizing:border-box;height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;font-size:16px;padding:0 14px;outline:none}
.mapdl-search input:focus{border-color:#00C853}
.mapdl-hint{font-size:13px;line-height:1.45;color:#9fb0b6;padding:0 2px 12px}
.mapdl-list{display:flex;flex-direction:column;gap:8px;padding-bottom:16px}
.mapdl-item{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;text-align:left;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:#fff;font-size:15px}
.mapdl-item:active{background:rgba(0,200,83,.14)}
.mapdl-item .mi-ic{font-size:20px;flex:0 0 auto}
.mapdl-item .mi-tx{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.mapdl-item .mi-tx b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mapdl-item .mi-tx small{color:#9fb0b6;font-size:12px;margin-top:2px}
.mapdl-item .mi-arrow{color:#00C853;font-size:18px;flex:0 0 auto}
.mapdl-progress{padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.25)}
.mapdl-progress .mpp-top{display:flex;justify-content:space-between;font-size:14px;font-weight:600;color:#fff;margin-bottom:8px}
.mapdl-progress .mpp-bar{height:10px;border-radius:6px;background:rgba(255,255,255,.12);overflow:hidden}
.mapdl-progress .mpp-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#00C853,#00E676);transition:width .3s}
.mapdl-progress .mpp-sub{font-size:12px;color:#9fb0b6;margin:8px 0 12px}
