:root {
  color-scheme: light;
  --midnight: #07172f;
  --midnight-2: #0c2446;
  --blue: #1d67ff;
  --cyan: #35d4ff;
  --blue-soft: #dbe8ff;
  --silver: #f4f8ff;
  --ink: #102033;
  --muted: #637083;
  --line: #d9e2ef;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --success: #1f9d70;
  --warning: #c77b15;
  --shadow: 0 18px 50px rgba(7, 23, 47, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--midnight);
  color: var(--ink);
}

body.has-offer-overlay {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.auth-screen {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 520px);
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(7, 23, 47, 0.98), rgba(9, 25, 52, 0.88)),
    radial-gradient(circle at 22% 18%, rgba(53, 212, 255, 0.22), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(29, 103, 255, 0.34), transparent 36%),
    var(--midnight);
  color: #fff;
}

.auth-screen::before,
.auth-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-screen::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 70%);
}

.auth-screen::after {
  width: 56vw;
  height: 56vw;
  right: -22vw;
  top: -24vw;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(53, 212, 255, 0.12);
}

.intro-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 92px;
  transform: skewY(-5deg);
  pointer-events: none;
  opacity: 0;
  animation: roadReveal 900ms ease 160ms forwards;
}

.road-line {
  position: absolute;
  inset: 44px 0 auto;
  height: 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.7) 42px 92px, transparent 92px 140px),
    linear-gradient(90deg, transparent, rgba(53, 212, 255, 0.38), rgba(255, 255, 255, 0.74), transparent);
  box-shadow: 0 0 28px rgba(53, 212, 255, 0.6);
  animation: roadFlow 1900ms linear infinite;
}

.road-line::before,
.road-line::after {
  content: "";
  position: absolute;
  top: -28px;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
}

.road-line::before {
  left: 8%;
}

.road-line::after {
  right: 4%;
  top: 26px;
}

.hero-cab {
  position: absolute;
  left: -180px;
  top: 10px;
  width: 152px;
  height: 62px;
  filter: drop-shadow(0 18px 28px rgba(53, 212, 255, 0.24));
  animation: cabDrive 5200ms cubic-bezier(0.16, 0.84, 0.22, 1) 240ms infinite;
}

.second-cab {
  top: 48px;
  width: 178px;
  height: 58px;
  filter: drop-shadow(0 18px 28px rgba(29, 103, 255, 0.22));
  animation-delay: 2300ms;
  animation-duration: 6400ms;
}

.cab-body {
  position: absolute;
  left: 12px;
  right: 10px;
  bottom: 14px;
  height: 34px;
  border-radius: 9px 18px 10px 10px;
  background: linear-gradient(135deg, #ffffff, #9ed5ff 56%, #1d67ff);
}

.second-cab .cab-body {
  left: 10px;
  right: 8px;
  bottom: 13px;
  height: 30px;
  border-radius: 20px 9px 10px 18px;
  background: linear-gradient(135deg, #35d4ff, #ffffff 48%, #1d67ff);
}

.second-cab .cab-body::before {
  left: 50px;
  top: -20px;
  width: 64px;
  height: 25px;
  border-radius: 22px 22px 5px 5px;
  background: linear-gradient(135deg, #dff7ff, #ffffff);
  clip-path: polygon(0 100%, 18% 0, 82% 0, 100% 100%);
}

.cab-body::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -18px;
  width: 52px;
  height: 24px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(135deg, #ffffff, #bde8ff);
  clip-path: polygon(14% 100%, 28% 0, 76% 0, 100% 100%);
}

.cab-light {
  position: absolute;
  right: -72px;
  top: 26px;
  width: 76px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(53, 212, 255, 0.8), transparent);
  filter: blur(2px);
}

.cab-wheel {
  position: absolute;
  bottom: 7px;
  width: 22px;
  height: 22px;
  border: 5px solid #07172f;
  border-radius: 50%;
  background: #35d4ff;
  animation: wheelSpin 520ms linear infinite;
}

.cab-wheel.left {
  left: 30px;
}

.cab-wheel.right {
  right: 28px;
}

.second-cab .cab-wheel.left {
  left: 38px;
}

.second-cab .cab-wheel.right {
  right: 36px;
}

.brand-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 92px);
  animation: brandIn 720ms ease both;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(53, 212, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), inset 0 0 22px rgba(53, 212, 255, 0.16);
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -65%;
  width: 46%;
  height: 180%;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(28deg);
  animation: logoSheen 2500ms ease-in-out 1200ms infinite;
}

.brand-mark svg {
  width: 54px;
  height: 54px;
}

.logo-road {
  fill: rgba(255, 255, 255, 0.94);
}

.logo-lane,
.logo-spark {
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-width: 5;
}

.logo-spark {
  stroke-width: 4;
}

.brand-name,
.brand-tag {
  display: block;
}

.brand-name {
  color: #fff;
  font-size: 1.24rem;
  font-weight: 950;
}

.brand-tag {
  margin-top: 3px;
  color: #a9c5ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  margin: 34px 0 8px;
  color: #a9c5ff;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.8rem, 6.3vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.brand-copy {
  max-width: 520px;
  margin: 28px 0 0;
  color: #dce7ff;
  font-size: 1.1rem;
  line-height: 1.6;
}

.brand-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.brand-stats span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce7ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-card {
  position: relative;
  z-index: 2;
  align-self: center;
  margin: 24px;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.91)),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.26);
  animation: authWindowIn 780ms cubic-bezier(0.17, 0.88, 0.24, 1) 360ms both;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #fff);
}

.auth-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}

.progress-dot {
  height: 4px;
  border-radius: 999px;
  background: #dbe4f0;
  overflow: hidden;
}

.progress-dot.is-active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 18px rgba(53, 212, 255, 0.3);
}

.auth-heading {
  margin-bottom: 20px;
}

.auth-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-heading h2 {
  margin: 8px 0 8px;
  color: var(--midnight);
  font-size: 1.7rem;
  line-height: 1.1;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-step {
  animation: stepIn 240ms ease both;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4ff;
}

.mode-button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.mode-button.is-active {
  background: #fff;
  color: var(--midnight);
  box-shadow: 0 10px 22px rgba(7, 23, 47, 0.08);
}

.auth-tabs,
.segmented,
.schedule-row,
.driver-tabs {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
}

.auth-tab,
.segment,
.time-chip,
.driver-tab,
.ghost-action,
.save-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  padding: 0 14px;
  font-weight: 800;
}

.auth-tabs {
  grid-template-columns: repeat(2, 1fr);
}

.auth-tab {
  display: grid;
  min-height: 78px;
  grid-auto-flow: row;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.auth-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(7, 23, 47, 0.08);
}

.auth-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--silver);
  color: var(--midnight);
  font-weight: 950;
}

.phone-icon::before {
  content: "";
  width: 13px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.phone-icon::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.email-icon::before {
  content: "";
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background:
    linear-gradient(32deg, transparent 46%, currentColor 47% 53%, transparent 54%) 0 2px / 50% 11px no-repeat,
    linear-gradient(-32deg, transparent 46%, currentColor 47% 53%, transparent 54%) 100% 2px / 50% 11px no-repeat;
}

.email-icon::after {
  content: none;
}

.email-icon {
  background: var(--silver);
  color: var(--midnight);
}

.google-icon {
  background: #fff;
  box-shadow: inset 0 0 0 1px #dce4ef;
}

.google-icon svg,
.apple-icon svg {
  width: 20px;
  height: 20px;
}

.apple-icon {
  background: #07172f;
  color: #fff;
}

.apple-icon svg {
  fill: currentColor;
}

.social-auth-box {
  display: grid;
  place-items: center;
  min-height: 72px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(29, 103, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(244, 248, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.oauth-button-slot {
  display: grid;
  place-items: center;
  min-height: 44px;
}

.oauth-setup {
  display: grid;
  gap: 6px;
  text-align: center;
}

.oauth-setup strong {
  color: var(--midnight);
}

.oauth-setup span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.apple-oauth-button {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(280px, 100%);
  min-height: 44px;
  border: 1px solid #111827;
  border-radius: 999px;
  background: #05070b;
  color: #fff;
  font-weight: 900;
}

.is-active,
.auth-tab.is-active,
.segment.is-active,
.time-chip.is-active,
.driver-tab.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.profile-step {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.profile-step .field {
  margin-top: 0;
}

.profile-step .primary-action {
  margin-top: 4px;
}

.field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  height: 48px;
  line-height: 48px;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 103, 255, 0.12);
}

.field-grid,
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-step .field-grid {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.primary-action {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(29, 103, 255, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(29, 103, 255, 0.34);
  filter: saturate(1.08);
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
}

.step-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(29, 103, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.step-card strong {
  color: var(--midnight);
}

.step-card span {
  color: var(--muted);
  line-height: 1.45;
}

.form-error {
  margin: 10px 0 0;
  color: #c93232;
  font-weight: 800;
}

.account-warning {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(201, 50, 50, 0.18);
  border-radius: 8px;
  background: rgba(255, 241, 241, 0.92);
  color: #b4232d;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.action-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  align-items: end;
}

.action-row .primary-action,
.action-row .ghost-action {
  margin-top: 18px;
}

.photo-picker {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(29, 103, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(244, 248, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.photo-picker > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.photo-button {
  position: relative;
  min-height: 98px;
  display: grid;
  grid-template-rows: 42px auto;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(29, 103, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96)),
    #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.photo-button:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 103, 255, 0.38);
  box-shadow: 0 14px 28px rgba(29, 103, 255, 0.12);
}

.photo-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.camera-symbol,
.file-symbol {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf4ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(29, 103, 255, 0.13), 0 10px 18px rgba(29, 103, 255, 0.12);
}

.camera-symbol::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 24px;
  height: 17px;
  border: 2px solid var(--blue);
  border-radius: 7px;
  background: #fff;
}

.camera-symbol::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: #fff;
  box-shadow: -6px -8px 0 -3px var(--blue);
}

.file-symbol::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 18px;
  height: 25px;
  border: 2px solid var(--blue);
  border-radius: 5px;
  background: #fff;
}

.file-symbol::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, #bde8ff 0 49%, var(--blue) 50%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.profile-step .segmented {
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  gap: 8px;
  margin-top: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4ff;
}

.profile-step .segment {
  min-height: 46px;
  border-radius: 7px;
  background: transparent;
}

.profile-step .segment.is-active {
  background: #fff;
  box-shadow: 0 10px 22px rgba(7, 23, 47, 0.08);
}

.taxi-screen {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  background: var(--surface-soft);
}

.side-menu {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at 30% 0, rgba(53, 212, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #07172f, #0a1e3b);
  color: #fff;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.profile-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #fff;
  color: var(--midnight);
  font-weight: 900;
}

.profile-card span {
  display: block;
  color: #b9c8df;
  margin-top: 3px;
}

.menu-list {
  display: grid;
  gap: 6px;
}

.menu-item,
.driver-cta {
  position: relative;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  text-align: left;
  background: transparent;
  color: #dce7ff;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.menu-item::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(53, 212, 255, 0.7);
  box-shadow: 0 0 14px rgba(53, 212, 255, 0.45);
}

.menu-item:hover,
.driver-cta:hover {
  transform: translateX(3px);
}

.menu-item.is-active {
  background: #fff;
  color: var(--midnight);
}

.driver-cta {
  margin-top: auto;
  text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 16px 34px rgba(29, 103, 255, 0.28);
}

.workspace {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.topbar strong {
  font-size: 1.28rem;
}

.icon-button {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--midnight);
}

.icon-button.round {
  margin-left: auto;
  font-weight: 900;
  color: var(--blue);
}

.content-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px;
  transition: grid-template-columns 220ms ease;
}

.content-grid.section-mode {
  grid-template-columns: 1fr;
}

.map-panel,
.panel {
  min-height: calc(100vh - 110px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.map-panel {
  min-height: calc(100vh - 110px);
}

.map-canvas {
  position: relative;
  min-height: calc(100vh - 112px);
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 34%, rgba(53, 212, 255, 0.24), transparent 20%),
    radial-gradient(circle at 68% 60%, rgba(29, 103, 255, 0.22), transparent 24%),
    linear-gradient(28deg, transparent 48%, rgba(53, 212, 255, 0.32) 49%, rgba(53, 212, 255, 0.32) 51%, transparent 52%),
    linear-gradient(116deg, transparent 44%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.8) 47%, transparent 48%),
    linear-gradient(90deg, rgba(7, 23, 47, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 23, 47, 0.08) 1px, transparent 1px),
    #dfefff;
  background-size: auto, auto, auto, auto, 54px 54px, 54px 54px, auto;
}

.real-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 360ms ease;
}

.map-canvas.has-real-map .real-map {
  opacity: 1;
}

.map-canvas.loading-real-map::before {
  opacity: 0.35;
}

.map-canvas.has-real-map::before,
.map-canvas.has-real-map::after,
.map-canvas.has-real-map .sea-zone,
.map-canvas.has-real-map .district,
.map-canvas.has-real-map .street,
.map-canvas.has-real-map .map-pin,
.map-canvas.has-real-map .car,
.map-canvas.has-real-map .route-line {
  display: none;
}

.mapboxgl-control-container {
  position: relative;
  z-index: 8;
}

.mapbox-marker {
  position: relative;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #1d67ff, #05b9ff);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), 0 0 0 7px rgba(29, 103, 255, 0.16);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.mapbox-marker span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1;
}

.mapbox-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 10px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.26);
  transform: translateX(-50%) scaleX(1.7);
  filter: blur(2px);
}

.mapbox-marker.destination {
  background: linear-gradient(145deg, #7c3cff, #c45cff);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), 0 0 0 7px rgba(124, 60, 255, 0.16);
}

.mapbox-marker.stop {
  width: 24px;
  height: 24px;
  border-width: 2px;
  background: linear-gradient(145deg, #00b894, #35d4ff);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26), 0 0 0 6px rgba(0, 184, 148, 0.14);
}

.mapbox-marker.stop span {
  font-size: 0.72rem;
}

.locate-me-btn {
  position: absolute;
  right: 18px;
  bottom: 122px;
  z-index: 9;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 23, 47, 0.92);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.locate-me-btn span {
  position: relative;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
}

.locate-me-btn span::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.user-location-marker {
  position: relative;
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #19d3ff;
  box-shadow: 0 0 0 10px rgba(25, 211, 255, 0.22), 0 12px 26px rgba(0, 0, 0, 0.3);
}

.user-location-marker span {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(25, 211, 255, 0.34);
  animation: locatePulse 1.8s ease-out infinite;
}

@keyframes locatePulse {
  0% { transform: scale(0.45); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.driver-map-marker {
  position: relative;
  width: 30px;
  height: 19px;
  border-radius: 10px 13px 5px 5px;
  background:
    radial-gradient(circle at 7px 17px, #07172f 0 3px, transparent 4px),
    radial-gradient(circle at 21px 17px, #07172f 0 3px, transparent 4px),
    linear-gradient(135deg, #fff, #bde8ff 56%, var(--blue));
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(255, 255, 255, 0.16);
  transform: rotate(-8deg) translateZ(0);
  opacity: 0.74 !important;
  pointer-events: none !important;
}

.driver-map-marker span::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -5px;
  width: 12px;
  height: 8px;
  border-radius: 10px 10px 3px 3px;
  background: #fff;
  clip-path: polygon(8% 100%, 28% 0, 78% 0, 100% 100%);
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(62deg, transparent 10%, rgba(255, 255, 255, 0.72) 10.5%, transparent 11.2%),
    linear-gradient(132deg, transparent 26%, rgba(29, 103, 255, 0.28) 26.5%, transparent 27.2%),
    linear-gradient(12deg, transparent 64%, rgba(255, 255, 255, 0.68) 64.4%, transparent 65%),
    linear-gradient(88deg, transparent 38%, rgba(53, 212, 255, 0.24) 38.4%, transparent 39%);
  opacity: 0.9;
}

.map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 42%, rgba(7, 23, 47, 0.14));
  pointer-events: none;
}

.sea-zone {
  position: absolute;
  right: -12%;
  top: -8%;
  width: 45%;
  height: 118%;
  border-radius: 48% 0 0 54%;
  background:
    linear-gradient(135deg, rgba(53, 212, 255, 0.6), rgba(29, 103, 255, 0.68)),
    #72dbff;
  box-shadow: inset 22px 0 44px rgba(255, 255, 255, 0.24), -20px 0 60px rgba(53, 212, 255, 0.18);
}

.sea-zone::before,
.sea-zone::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 18%;
  height: 2px;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
}

.sea-zone::before {
  top: 28%;
}

.sea-zone::after {
  top: 62%;
}

.district {
  position: absolute;
  z-index: 2;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--midnight);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(7, 23, 47, 0.1);
}

.old-town { left: 34%; top: 28%; }
.arcadia-zone { right: 18%; bottom: 24%; }
.tairova-zone { left: 13%; bottom: 26%; }
.port-zone { left: 9%; top: 62%; }

.street {
  position: absolute;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--midnight);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.street.main { left: 18%; top: 26%; transform: rotate(-28deg); }
.street.sea { right: 10%; top: 50%; transform: rotate(18deg); }
.street.port { left: 9%; bottom: 16%; }
.street.center { left: 42%; top: 42%; transform: rotate(-8deg); }
.street.rail { left: 23%; top: 52%; transform: rotate(11deg); }

.map-pin,
.car {
  position: absolute;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(7, 23, 47, 0.2);
}

.map-pin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--midnight);
  color: #fff;
  font-weight: 900;
  z-index: 7;
  animation: pinPulse 2200ms ease-in-out infinite;
}

.pin-a { left: 28%; top: 35%; }
.pin-b { right: 24%; bottom: 28%; background: var(--blue); }

.route-line {
  position: absolute;
  left: 32%;
  top: 41%;
  width: 38%;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #fff);
  transform: rotate(28deg);
  transform-origin: left;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 0 22px rgba(53, 212, 255, 0.78);
}

.car {
  z-index: 4;
  width: 34px;
  height: 22px;
  background: #fff;
  animation: mapCarFloat 2800ms ease-in-out infinite;
}

.car::before {
  content: "";
  position: absolute;
  inset: 5px 7px;
  border-radius: 4px;
  background: var(--blue);
}

.car-one { left: 20%; bottom: 32%; transform: rotate(24deg); }
.car-two { right: 30%; top: 24%; transform: rotate(-12deg); }
.car-three { left: 48%; bottom: 16%; transform: rotate(-22deg); animation-delay: 900ms; }

.map-hud {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 7;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(7, 23, 47, 0.78);
  color: #fff;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 34px rgba(7, 23, 47, 0.18);
}

.map-hud span {
  color: #a9c5ff;
  font-size: 0.82rem;
}

.map-class-strip {
  position: absolute;
  left: 0;
  right: 460px;
  bottom: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 30px 18px 18px;
  border-radius: 22px 22px 0 0;
  background: rgba(18, 18, 20, 0.94);
  box-shadow: 0 -20px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  transition: transform 220ms ease, opacity 220ms ease;
}

.class-panel-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 46px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
  padding: 0;
}

.map-class-strip.is-collapsed {
  transform: translateY(calc(100% - 25px));
}

.map-class-strip.is-collapsed .class-card {
  pointer-events: none;
  opacity: 0;
}

.workspace.driver-order-view .map-class-strip {
  display: none;
}

.workspace.passenger-active-ride .map-class-strip,
.workspace.passenger-active-ride .route-card,
.workspace.passenger-active-ride .comment-card,
.workspace.passenger-active-ride .price-glass,
.workspace.passenger-active-ride .order-button {
  display: none;
}

.workspace.passenger-active-ride .ride-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 14px;
}

.workspace.passenger-active-ride .active-order-panel.ride-confirmed {
  margin-top: 0;
}

.panel {
  padding: 20px;
  overflow-y: auto;
  animation: panelSlide 240ms ease both;
}

.section-mode .panel {
  min-height: calc(100vh - 110px);
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(219, 232, 255, 0.7)),
    var(--surface);
}

.section-mode .info-panel,
.section-mode .driver-panel {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.route-stack {
  display: grid;
}

.ride-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 9;
  width: min(420px, calc(100% - 36px));
  max-height: calc(100vh - 146px);
  display: grid;
  align-content: start;
  gap: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 255, 0.72)),
    var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(7, 23, 47, 0.18);
}

.ride-card,
.price-glass {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(7, 23, 47, 0.08);
}

.comment-card label {
  display: grid;
  gap: 8px;
}

.comment-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.comment-card textarea {
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(29, 103, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.comment-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 103, 255, 0.12);
}

.route-card {
  display: grid;
  gap: 10px;
}

.route-point {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}

.address-field {
  position: relative;
  min-width: 0;
}

.route-point > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--midnight);
  color: #fff;
  font-weight: 950;
}

.route-point.destination > span {
  background: var(--blue);
}

.route-point input {
  min-height: 44px;
  border-color: rgba(29, 103, 255, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

.address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 25;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(29, 103, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(7, 23, 47, 0.16);
  backdrop-filter: blur(16px);
}

.address-suggestions.is-open {
  display: grid;
}

.address-suggestions button {
  min-height: 54px;
  display: grid;
  gap: 3px;
  border: 0;
  border-bottom: 1px solid rgba(217, 226, 239, 0.8);
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.address-suggestions button strong,
.address-suggestions button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-suggestions button span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.address-suggestions button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.compact-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-action {
  min-height: 34px;
  border: 1px solid rgba(29, 103, 255, 0.18);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(219, 232, 255, 0.8);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.ghost-action {
  width: 100%;
  margin-top: 12px;
}

.save-row,
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.save-chip {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.section-title span {
  color: var(--blue);
  font-weight: 900;
}

.class-card,
.check-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 78px;
  padding: 12px;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.map-class-strip .class-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 86px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.map-class-strip .class-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.map-class-strip .class-card.is-selected {
  border-color: rgba(53, 212, 255, 0.26);
  background: linear-gradient(145deg, #0b78b8, #075e91);
  box-shadow: 0 16px 34px rgba(0, 132, 209, 0.34);
}

.map-class-strip .class-card strong {
  font-size: 0.86rem;
  line-height: 1.1;
}

.map-class-strip .class-card em {
  display: none;
}

.chip-icon,
.option-pill > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 950;
}

.class-card span {
  display: block;
  color: inherit;
  font-size: 0.84rem;
}

.vehicle-icon {
  position: relative;
  width: 68px;
  height: 36px;
  display: block;
  color: #fff;
}

.vehicle-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 17px;
  border-radius: 11px 14px 7px 7px;
  background: linear-gradient(135deg, #f6f7f8, #9ba7b4);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.standard-car::before {
  left: 11px;
  right: 11px;
  height: 15px;
  border-radius: 10px 12px 6px 6px;
  background: linear-gradient(135deg, #f8fafc, #b0b8c1);
}

.standard-car i::before {
  left: 25px;
  top: 6px;
  width: 20px;
  height: 14px;
}

.vehicle-icon::after,
.vehicle-icon i::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 11px;
  height: 11px;
  border: 3px solid #1f2329;
  border-radius: 50%;
  background: #dfe7ef;
}

.vehicle-icon::after {
  left: 15px;
}

.vehicle-icon i::after {
  right: 15px;
}

.vehicle-icon i::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 4px;
  width: 24px;
  height: 16px;
  border-radius: 14px 14px 3px 3px;
  background: linear-gradient(135deg, #ffffff, #cbd5df);
  clip-path: polygon(8% 100%, 26% 0, 78% 0, 100% 100%);
}

.comfort-car::before {
  left: 7px;
  right: 7px;
  height: 18px;
  border-radius: 13px 16px 7px 7px;
  background: linear-gradient(135deg, #f5f9fc, #8795a4);
}

.comfort-car i::before {
  left: 21px;
  top: 3px;
  width: 29px;
  height: 17px;
}

.business-car::before {
  left: 3px;
  right: 3px;
  height: 16px;
  border-radius: 16px 22px 6px 6px;
  background: linear-gradient(135deg, #ffffff, #45515f);
}

.business-car i::before {
  left: 18px;
  width: 34px;
  background: linear-gradient(135deg, #ffffff, #aab4bf);
}

.plus-car::before {
  left: 1px;
  right: 1px;
  height: 21px;
  border-radius: 7px 16px 6px 6px;
  background: linear-gradient(135deg, #ffffff, #35d979 46%, #596777);
}

.plus-car i::before {
  left: 12px;
  width: 36px;
  height: 18px;
  border-radius: 5px;
  clip-path: none;
  background: linear-gradient(90deg, #79e36f 0 48%, #dfe7ef 48%);
}

.plus-car::after,
.plus-car i::after {
  background: #dff7ff;
}

.details-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  margin-top: 16px;
  align-items: end;
}

.ride-options {
  display: grid;
  grid-template-columns: repeat(3, 64px) 1fr;
  gap: 8px;
  align-items: center;
}

.option-pill {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.option-pill input {
  display: none;
}

.passenger-symbol::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 13px 0 5px #fff; transform: translateY(-7px); }
.child-symbol::before { content: ""; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; box-shadow: inset 0 -6px 0 rgba(255,255,255,.28); }
.pet-symbol::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: -8px -7px 0 #fff, 8px -7px 0 #fff, -5px 7px 0 3px #fff, 5px 7px 0 3px #fff; }
.home-symbol::before { content: ""; width: 18px; height: 14px; background: #fff; clip-path: polygon(50% 0, 100% 38%, 88% 38%, 88% 100%, 12% 100%, 12% 38%, 0 38%); }
.work-symbol::before { content: ""; width: 19px; height: 15px; border: 3px solid #fff; border-radius: 3px; box-shadow: inset 0 5px 0 rgba(255,255,255,.35); }
.gym-symbol::before { content: ""; width: 24px; height: 8px; border-left: 5px solid #fff; border-right: 5px solid #fff; box-shadow: inset 0 3px 0 #fff; }
.shop-symbol::before { content: ""; width: 20px; height: 17px; border: 3px solid #fff; border-top: 7px solid #fff; border-radius: 3px; }
.custom-symbol::before { content: ""; width: 18px; height: 18px; background: linear-gradient(#fff 0 0) center / 4px 18px no-repeat, linear-gradient(#fff 0 0) center / 18px 4px no-repeat; }

.check-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.check-tile input {
  width: 18px;
  min-height: 18px;
}

.schedule-row {
  margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.ride-options .schedule-row {
  margin-top: 0;
}

.price-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.price-glass span {
  color: var(--muted);
  font-weight: 800;
}

.price-glass strong {
  color: var(--blue);
  font-size: 1.35rem;
}

.price-glass em {
  width: 100%;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
}

.info-panel h2,
.driver-panel h2 {
  margin: 0 0 14px;
}

.section-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 23, 47, 0.96), rgba(29, 103, 255, 0.78)),
    var(--midnight);
  color: #fff;
}

.section-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -78px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.section-hero span {
  color: #9eeaff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-hero h2,
.section-hero p {
  margin: 0;
}

.section-hero h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-hero p {
  max-width: 620px;
  color: #dce7ff;
  line-height: 1.55;
}

.feature-grid,
.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.list-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 23, 47, 0.08);
  overflow: hidden;
}

.action-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.list-card span {
  color: var(--muted);
}

.list-card em {
  justify-self: start;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.accent-card {
  border-color: rgba(29, 103, 255, 0.26);
  background: linear-gradient(135deg, #ffffff, #eef6ff);
}

.address-card::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 22px rgba(29, 103, 255, 0.22);
}

.add-address-card {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px dashed rgba(29, 103, 255, 0.45);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 34px rgba(7, 23, 47, 0.06);
}

.add-address-card > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  padding-bottom: 3px;
}

.add-address-card em {
  color: var(--muted);
  font-style: normal;
}

.address-create-form {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  border: 1px solid rgba(29, 103, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(7, 23, 47, 0.08);
}

.address-create-form input {
  margin: 0;
}

.address-card {
  grid-template-columns: 44px 1fr auto;
  align-items: center;
}

.address-card .address-icon {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.address-card::before {
  display: none;
}

.interactive-box {
  margin-top: 16px;
}

.call-panel,
.chat-panel,
.text-panel,
.faq-panel,
.wallet-card,
.metric-card,
.driver-order-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(29, 103, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(7, 23, 47, 0.08);
}

.driver-route-preview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(29, 103, 255, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(7, 23, 47, 0.08);
}

.driver-route-preview:empty {
  display: none;
}

.driver-route-preview em {
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.call-panel strong {
  color: #c93232;
  font-size: 2.8rem;
}

.call-panel a,
.chat-panel a {
  color: var(--blue);
  font-weight: 900;
}

.chat-panel textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.message.admin {
  justify-self: start;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.setting-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setting-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.setting-row.danger button:last-child {
  color: #c93232;
}

.driver-panel {
  position: relative;
  overflow: hidden;
}

.driver-panel::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: 18px;
  width: 110px;
  height: 34px;
  border-radius: 18px 26px 8px 8px;
  background:
    radial-gradient(circle at 24px 35px, #101826 0 8px, transparent 9px),
    radial-gradient(circle at 84px 35px, #101826 0 8px, transparent 9px),
    linear-gradient(135deg, #fff, #9eeaff 48%, var(--blue));
  box-shadow: 0 14px 30px rgba(29, 103, 255, 0.24);
  animation: driverCabRun 6s linear infinite;
}

.screen-transition {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(7, 23, 47, 0.3);
  backdrop-filter: blur(8px);
}

.screen-transition.run .transition-cab {
  animation: transitionCab 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.transition-cab {
  position: absolute;
  left: -180px;
  width: 156px;
  height: 48px;
  border-radius: 18px 26px 9px 9px;
  background:
    radial-gradient(circle at 34px 42px, #07172f 0 10px, transparent 11px),
    radial-gradient(circle at 118px 42px, #07172f 0 10px, transparent 11px),
    linear-gradient(135deg, #fff, #9eeaff 52%, var(--blue));
  box-shadow: 0 20px 44px rgba(53, 212, 255, 0.35);
}

.transition-cab::before {
  content: "";
  position: absolute;
  left: 44px;
  top: -18px;
  width: 58px;
  height: 25px;
  border-radius: 18px 18px 4px 4px;
  background: #fff;
  clip-path: polygon(10% 100%, 28% 0, 76% 0, 100% 100%);
}

.driver-tabs {
  position: relative;
  z-index: 2;
  order: 2;
  border: 1px solid rgba(29, 103, 255, 0.16);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: initial;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.driver-tab {
  min-width: 0;
  padding: 0 6px;
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  white-space: nowrap;
}

.driver-panel {
  display: flex;
  flex-direction: column;
}

.driver-feed {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(29, 103, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(7, 23, 47, 0.08);
}

.driver-panel.order-detail-mode .driver-tabs {
  display: none;
}

.driver-panel.order-detail-mode {
  align-self: start;
}

.driver-line-hero {
  position: relative;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
}

.driver-line-hero span,
.driver-line-hero h2 {
  grid-column: 1;
}

.driver-line-hero em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 104px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(181, 255, 36, 0.65);
  border-radius: 999px;
  background: linear-gradient(135deg, #d7ff3d, #8dffbf);
  color: #081022;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(34, 219, 119, 0.24);
}

.driver-order-card {
  position: relative;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid rgba(29, 103, 255, 0.12);
  border-radius: 0;
  padding: 14px 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9));
  box-shadow: none;
  overflow: hidden;
  touch-action: pan-y;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    max-height 220ms ease,
    padding 220ms ease;
}

.driver-order-card:focus-visible {
  outline: 3px solid rgba(53, 212, 255, 0.55);
  outline-offset: -3px;
}

.driver-order-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(229, 243, 255, 0.96));
}

.driver-order-card:last-child {
  border-bottom: 0;
}

.driver-order-card.is-dismissing {
  opacity: 0;
  transform: translateX(120%) scale(0.98);
}

.driver-order-card.is-swiping {
  box-shadow: -12px 0 28px rgba(29, 103, 255, 0.12);
}

.driver-swipe-hint {
  position: absolute;
  inset: 0 auto 0 0;
  width: 92px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(53, 212, 255, 0.22), rgba(29, 103, 255, 0.16));
  color: var(--blue);
  font-weight: 950;
  opacity: 0;
  transform: translateX(-100%);
  transition: 160ms ease;
  pointer-events: none;
}

.driver-order-card.is-swiping .driver-swipe-hint {
  opacity: 1;
  transform: translateX(-6px);
}

.driver-client-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.driver-client-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.75), transparent 32%),
    linear-gradient(135deg, var(--midnight), var(--blue));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(7, 23, 47, 0.18);
}

.driver-client-side strong,
.driver-client-side span,
.driver-client-side em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-client-side strong {
  font-size: 0.78rem;
  line-height: 1.1;
}

.driver-client-side span,
.driver-client-side em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

.driver-order-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.driver-order-topline {
  display: grid;
  grid-template-columns: 1fr auto 32px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.driver-order-topline span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.driver-order-topline strong {
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}

.order-hide-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(29, 103, 255, 0.08);
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 950;
}

.driver-order-main h3,
.driver-order-main p {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.driver-order-main h3 {
  font-size: 1.02rem;
  font-weight: 950;
}

.driver-order-main p {
  font-size: 0.96rem;
  font-weight: 850;
}

.driver-order-main > em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.driver-order-card .bid-row {
  position: relative;
  z-index: 1;
  grid-column: 2;
  margin-top: 4px;
}

.driver-private-note {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(29, 103, 255, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(29, 103, 255, 0.1), rgba(53, 212, 255, 0.1));
}

.driver-private-note strong {
  color: var(--midnight);
  font-size: 1rem;
}

.driver-private-note span {
  color: var(--muted);
  line-height: 1.35;
  font-weight: 800;
}

.bid-offer-field {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(29, 103, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.bid-offer-field span {
  color: var(--ink);
  font-weight: 950;
}

.bid-offer-field input {
  margin: 0;
  width: 100%;
  height: 52px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 950;
}

.bid-offer-field em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.driver-empty-card {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(29, 103, 255, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.driver-empty-card strong {
  color: var(--ink);
}

.driver-status-toast {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border: 1px solid rgba(201, 50, 50, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(255, 122, 122, 0.12), rgba(255, 255, 255, 0.86));
  color: #c93232;
  box-shadow: 0 14px 34px rgba(201, 50, 50, 0.08);
  animation: toastIn 260ms ease both;
}

.driver-status-toast span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.metric-card strong,
.wallet-card strong {
  color: var(--blue);
  font-size: 2rem;
}

.ride-companion {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 6;
  width: 210px;
  height: 150px;
  pointer-events: none;
  animation: companionIn 900ms ease 700ms both;
}

.companion-bubble {
  position: absolute;
  right: 70px;
  top: 0;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--midnight);
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(7, 23, 47, 0.16);
}

.companion-person {
  position: absolute;
  right: 14px;
  bottom: 22px;
  width: 72px;
  height: 94px;
}

.companion-person .head {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffd9c0;
}

.companion-person .cap {
  position: absolute;
  left: 17px;
  top: 8px;
  width: 45px;
  height: 20px;
  border-radius: 18px 18px 6px 6px;
  background: var(--midnight);
  z-index: 2;
}

.companion-person .body {
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.companion-person .arm {
  position: absolute;
  left: 2px;
  top: 52px;
  width: 36px;
  height: 10px;
  border-radius: 999px;
  background: #ffd9c0;
  transform-origin: right;
  animation: wave 1100ms ease-in-out infinite;
}

.companion-cab {
  position: absolute;
  left: -12px;
  bottom: 4px;
  width: 156px;
  height: 44px;
  border-radius: 18px 24px 10px 10px;
  background: linear-gradient(135deg, #fff, #bde8ff 52%, var(--blue));
  box-shadow: 0 16px 32px rgba(29, 103, 255, 0.2);
  animation: bottomCab 5200ms linear infinite;
}

.companion-cab::before {
  content: "";
  position: absolute;
  left: 44px;
  top: -18px;
  width: 58px;
  height: 24px;
  border-radius: 18px 18px 4px 4px;
  background: #fff;
  clip-path: polygon(10% 100%, 28% 0, 76% 0, 100% 100%);
}

.companion-cab::after,
.companion-cab span::before {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 22px;
  height: 22px;
  border: 5px solid var(--midnight);
  border-radius: 50%;
  background: var(--cyan);
}

.companion-cab::after {
  left: 28px;
}

.companion-cab span::before {
  right: 28px;
}

.driver-content {
  order: 1;
  margin-top: 0;
  flex: 1;
}

.driver-hero.compact {
  padding: 18px;
  min-height: auto;
}

.driver-hero.compact h2 {
  margin: 5px 0 0;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
}

.driver-hero.compact p {
  display: none;
}

.bid-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.client-price-badge,
.order-stops {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.client-price-badge strong {
  color: var(--blue);
}

.order-stops span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(53, 212, 255, 0.12);
  color: var(--midnight);
  font-size: 0.86rem;
}

.driver-order-main .order-stops {
  grid-column: auto;
  gap: 6px;
}

.driver-order-main .order-stops span {
  padding: 5px 8px;
  font-size: 0.78rem;
}

.bid-row input,
.bid-row button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  justify-content: center;
  text-align: center;
}

.bid-row .mini-action,
.bid-row .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 950;
}

.driver-order-card .bid-row .mini-action,
.driver-order-card .bid-row .primary-action {
  box-shadow: none;
}

.driver-order-card .bid-row .primary-action {
  box-shadow: 0 10px 22px rgba(29, 103, 255, 0.22);
}

.driver-detail-sheet,
.active-order-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(29, 103, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(7, 23, 47, 0.1);
}

.active-order-panel {
  position: relative;
  z-index: 3;
  margin-top: 14px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.active-order-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--order-progress, 100%);
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #7c3cff);
  transition: width 240ms linear;
}

.active-order-panel.offer-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: min(560px, 100vw);
  z-index: 75;
  margin: 0 auto;
  border-radius: 0 0 16px 16px;
  border-top: 0;
  box-shadow: 0 28px 80px rgba(7, 23, 47, 0.24);
}

.offer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7, 23, 47, 0.18);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.active-order-panel.ride-confirmed {
  box-shadow: 0 14px 32px rgba(7, 23, 47, 0.12);
}

.client-profile-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.client-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 1000;
  background: linear-gradient(145deg, var(--midnight), var(--blue));
  box-shadow: 0 14px 28px rgba(29, 103, 255, 0.22);
}

.client-profile-row strong {
  display: block;
  font-size: 1.08rem;
}

.client-profile-row span {
  color: var(--muted);
  font-weight: 800;
}

.client-contact-actions,
.driver-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.round-contact {
  min-height: 46px;
  border: 1px solid rgba(29, 103, 255, 0.18);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  text-decoration: none;
  font-weight: 900;
}

.cancel-order {
  border-color: rgba(201, 50, 50, 0.18);
  background: rgba(255, 122, 122, 0.08);
  color: #c93232;
}

.phone-mini-icon,
.chat-mini-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
}

.phone-mini-icon {
  clip-path: polygon(18% 0, 48% 0, 58% 28%, 44% 38%, 62% 60%, 75% 48%, 100% 64%, 100% 94%, 82% 100%, 56% 88%, 24% 56%, 6% 22%);
}

.chat-mini-icon {
  clip-path: polygon(8% 8%, 92% 8%, 92% 66%, 58% 66%, 36% 90%, 38% 66%, 8% 66%);
}

.accepted-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #16a34a, #35d4ff);
  color: #fff;
  font-weight: 1000;
}

.accepted-badge.waiting {
  background: linear-gradient(135deg, var(--blue), #7c3cff);
}

.accepted-badge.expired {
  background: linear-gradient(135deg, #c93232, #ff7a7a);
}

.offer-list {
  display: grid;
  gap: 10px;
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(29, 103, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.ride-chat {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(29, 103, 255, 0.12);
  padding-top: 12px;
  min-width: 0;
  width: 100%;
}

.ride-chat-log {
  display: grid;
  gap: 8px;
  max-height: 178px;
  overflow: auto;
  padding-right: 4px;
  min-width: 0;
}

.ride-message {
  justify-self: start;
  max-width: 88%;
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(7, 23, 47, 0.06);
  color: var(--ink);
}

.ride-message.mine {
  justify-self: end;
  background: linear-gradient(135deg, var(--blue), #35d4ff);
  color: #fff;
}

.ride-message.system {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  text-align: center;
  color: var(--muted);
  background: rgba(53, 212, 255, 0.1);
}

.ride-message strong,
.ride-message span {
  display: block;
}

.ride-message strong {
  font-size: 0.76rem;
  opacity: 0.78;
  margin-bottom: 2px;
}

.ride-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.ride-chat-compose input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  min-height: 56px;
  font-size: 16px;
}

.ride-chat-compose .primary-action {
  width: 100%;
  min-height: 56px;
  justify-content: center;
}

.offer-card > strong {
  color: var(--blue);
  font-size: 1.12rem;
  font-weight: 1000;
  white-space: nowrap;
}

.offer-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.offer-action-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(29, 103, 255, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  margin: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  font-weight: 1000;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
}

.offer-action-button.is-secondary {
  background: #fff;
  color: var(--ink);
}

.offer-action-button.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #156bff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(29, 103, 255, 0.24);
}

.offer-action-button:active {
  transform: translateY(1px);
}

.driver-live-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.driver-live-line span {
  width: 42px;
  height: 24px;
  border-radius: 12px 16px 6px 6px;
  background:
    radial-gradient(circle at 10px 22px, #07172f 0 4px, transparent 5px),
    radial-gradient(circle at 31px 22px, #07172f 0 4px, transparent 5px),
    linear-gradient(135deg, #fff, #bde8ff 55%, var(--blue));
  animation: driverMiniMove 1.8s ease-in-out infinite;
}

@keyframes driverMiniMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@media (max-width: 520px) {
  .active-order-panel.offer-toast {
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    padding: 14px;
  }

  .ride-chat-compose {
    grid-template-columns: 1fr;
  }

  .driver-order-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .driver-client-avatar {
    width: 48px;
    height: 48px;
  }

  .bid-row {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .client-price-badge,
  .order-stops {
    grid-column: 1 / -1;
  }

  .driver-order-card .bid-row {
    grid-column: 1 / -1;
  }

  .driver-order-topline {
    grid-template-columns: 1fr auto 28px;
    gap: 6px;
  }

  .driver-order-topline strong {
    font-size: 1.22rem;
  }

  .order-hide-button {
    width: 28px;
    height: 28px;
  }
}

body.dark {
  --ink: #eef5ff;
  --muted: #aebbd0;
  --line: #243b5d;
  --surface: #0c1d38;
  --surface-soft: #07172f;
  --blue-soft: #102f63;
  color-scheme: dark;
}

body.dark input,
body.dark textarea,
body.dark .class-card,
body.dark .check-tile,
body.dark .icon-button,
body.dark .auth-tab,
body.dark .segment,
body.dark .time-chip,
body.dark .driver-tab,
body.dark .ghost-action,
body.dark .save-chip,
body.dark .list-card,
body.dark .add-address-card,
body.dark .address-create-form,
body.dark .ride-card,
body.dark .price-glass,
body.dark .call-panel,
body.dark .chat-panel,
body.dark .text-panel,
body.dark .faq-panel,
body.dark .wallet-card,
body.dark .metric-card,
body.dark .driver-order-card,
body.dark .driver-route-preview,
body.dark .photo-button,
body.dark .photo-picker,
body.dark .mode-switch,
body.dark .profile-step .segmented,
body.dark .step-card {
  border-color: rgba(110, 143, 190, 0.32);
  background: rgba(9, 25, 48, 0.92);
  color: var(--ink);
}

body.dark .profile-step .segment.is-active {
  background: rgba(29, 103, 255, 0.24);
}

body.dark .account-warning {
  border-color: rgba(255, 117, 117, 0.28);
  background: rgba(82, 24, 32, 0.72);
  color: #ffb8bd;
}

body.dark .taxi-screen,
body.dark .workspace {
  background: #07172f;
}

body.dark .topbar,
body.dark .panel,
body.dark .ride-panel {
  background:
    linear-gradient(135deg, rgba(11, 26, 49, 0.92), rgba(5, 14, 30, 0.9)),
    #07172f;
  color: var(--ink);
}

body.dark .ride-panel {
  border-color: rgba(110, 143, 190, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

body.dark .map-class-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 13, 0.96);
}

body.dark .map-class-strip .class-card {
  background: transparent;
}

body.dark .map-class-strip .class-card.is-selected {
  background: linear-gradient(145deg, #0c6da8, #06486f);
}

body.dark .active-order-panel,
body.dark .driver-detail-sheet {
  background: rgba(10, 22, 44, 0.9);
  border-color: rgba(53, 212, 255, 0.22);
}

body.dark .offer-card,
body.dark .driver-empty-card {
  background: rgba(13, 29, 57, 0.82);
}

body.dark .driver-status-toast {
  border-color: rgba(255, 122, 122, 0.24);
  background: linear-gradient(135deg, rgba(116, 31, 42, 0.72), rgba(13, 29, 57, 0.82));
  color: #ffb8bd;
}

body.dark .driver-feed {
  border-color: rgba(53, 212, 255, 0.18);
  background: rgba(5, 14, 30, 0.92);
}

body.dark .driver-order-card {
  border-color: rgba(110, 143, 190, 0.2);
  background: linear-gradient(135deg, rgba(9, 25, 48, 0.96), rgba(6, 18, 38, 0.92));
}

body.dark .driver-order-card:hover {
  background: linear-gradient(135deg, rgba(13, 35, 67, 0.98), rgba(8, 23, 49, 0.94));
}

body.dark .order-hide-button {
  background: rgba(255, 255, 255, 0.08);
  color: #c4d4ef;
}

body.dark .driver-swipe-hint {
  background: linear-gradient(135deg, rgba(53, 212, 255, 0.18), rgba(29, 103, 255, 0.22));
  color: #9eeaff;
}

body.dark .driver-private-note,
body.dark .bid-offer-field {
  border-color: rgba(53, 212, 255, 0.18);
  background: rgba(12, 33, 63, 0.76);
}

body.dark .driver-private-note strong,
body.dark .bid-offer-field span {
  color: var(--ink);
}

body.dark .ride-message {
  background: rgba(255, 255, 255, 0.08);
}

body.dark .ride-message.mine {
  background: linear-gradient(135deg, #1d67ff, #35d4ff);
}

body.dark .ride-chat-compose input {
  background: rgba(7, 23, 47, 0.92);
  border-color: rgba(53, 212, 255, 0.22);
  color: #f8fbff;
}

body.dark .order-stops span {
  background: rgba(53, 212, 255, 0.14);
  color: #dff8ff;
}

body.dark .comment-card textarea,
body.dark .route-point input {
  border-color: #243b5d;
  background: rgba(7, 23, 47, 0.7);
  color: var(--ink);
}

body.dark .address-suggestions {
  border-color: rgba(110, 143, 190, 0.32);
  background: rgba(9, 25, 48, 0.98);
}

body.dark .address-suggestions button {
  border-color: rgba(110, 143, 190, 0.18);
  color: var(--ink);
}

body.dark .address-suggestions button:hover {
  background: rgba(29, 103, 255, 0.26);
  color: #fff;
}

body.dark .address-suggestions button:hover span {
  color: #dce7ff;
}

body.dark .map-canvas {
  background:
    radial-gradient(circle at 28% 34%, rgba(53, 212, 255, 0.16), transparent 20%),
    radial-gradient(circle at 68% 60%, rgba(29, 103, 255, 0.22), transparent 24%),
    linear-gradient(28deg, transparent 48%, rgba(53, 212, 255, 0.22) 49%, rgba(53, 212, 255, 0.22) 51%, transparent 52%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #09203e;
  background-size: auto, auto, auto, 54px 54px, 54px 54px, auto;
}

body.dark .mapboxgl-ctrl-group {
  background: rgba(16, 39, 70, 0.92);
}

body.dark .mapboxgl-ctrl button {
  filter: invert(1);
}

body.dark .section-mode .panel {
  background:
    linear-gradient(135deg, rgba(12, 29, 56, 0.98), rgba(16, 47, 99, 0.66)),
    var(--surface);
}

body.dark .district,
body.dark .street,
body.dark .companion-bubble {
  background: rgba(12, 29, 56, 0.82);
  color: var(--ink);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authWindowIn {
  from {
    opacity: 0;
    transform: translateX(44px) translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes roadReveal {
  from {
    opacity: 0;
    transform: translateY(24px) skewY(-5deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) skewY(-5deg);
  }
}

@keyframes cabDrive {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.92);
  }

  10% {
    opacity: 1;
  }

  72% {
    opacity: 1;
    transform: translateX(calc(100vw - 210px)) scale(1);
  }

  86%,
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 220px)) scale(1);
  }
}

@keyframes roadFlow {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 140px 0, 0 0;
  }
}

@keyframes wheelSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logoSheen {
  0%,
  42% {
    transform: translateX(0) rotate(28deg);
  }

  68%,
  100% {
    transform: translateX(290%) rotate(28deg);
  }
}

@keyframes pinPulse {
  0%,
  100% {
    box-shadow: 0 10px 20px rgba(7, 23, 47, 0.2), 0 0 0 0 rgba(29, 103, 255, 0.28);
  }

  50% {
    box-shadow: 0 10px 20px rgba(7, 23, 47, 0.2), 0 0 0 10px rgba(29, 103, 255, 0);
  }
}

@keyframes mapCarFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 8px -5px;
  }
}

@keyframes panelSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes companionIn {
  from {
    opacity: 0;
    transform: translateX(44px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(16deg);
  }
}

@keyframes bottomCab {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-28px);
  }
}

@keyframes driverCabRun {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(100vw + 260px));
  }
}

@keyframes transitionCab {
  0% {
    transform: translateX(0) scale(0.96);
  }

  18% {
    transform: translateX(28vw) scale(1);
  }

  100% {
    transform: translateX(calc(100vw + 220px)) scale(1);
  }
}

@media (max-width: 1050px) {
  .taxi-screen {
    grid-template-columns: 1fr;
  }

  .side-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    z-index: 20;
  }

  .side-menu.is-open {
    transform: translateX(0);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.section-mode {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .map-canvas {
    min-height: 420px;
  }

  .ride-panel {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: none;
  }

  .map-class-strip {
    right: 0;
  }

  .panel {
    min-height: auto;
  }

  .ride-companion {
    display: none;
  }
}

@media (max-width: 760px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 42vh;
    padding-bottom: 72px;
  }

  .auth-card {
    margin: -34px 14px 18px;
  }

  .intro-road {
    bottom: auto;
    top: 34%;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .brand-mark svg {
    width: 46px;
    height: 46px;
  }

  .auth-tabs {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .auth-tab {
    min-height: 58px;
    grid-auto-flow: column;
    grid-template-columns: 34px 1fr;
    justify-items: start;
  }

  .mode-switch,
  .photo-actions,
  .action-row {
    grid-template-columns: 1fr;
  }

  .photo-button {
    min-height: 76px;
    grid-template-columns: 42px 1fr;
    grid-template-rows: 1fr;
    justify-items: start;
    padding: 0 14px;
    text-align: left;
  }

  .content-grid,
  .topbar {
    padding-inline: 12px;
  }

  .field-grid,
  .details-grid,
  .save-row,
  .class-grid,
  .schedule-row,
  .ride-options,
  .feature-grid,
  .address-grid {
    grid-template-columns: 1fr;
  }

  .map-class-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding-inline: 10px;
  }

  .map-class-strip .class-card {
    min-height: 78px;
    padding-inline: 4px;
  }

  .vehicle-icon {
    width: 58px;
    transform: scale(0.88);
  }

  .section-hero {
    padding: 18px;
  }

  h1 {
    font-size: 3rem;
  }
}
