/* 2T Ride Experience — Map through trip completion */

.screen.ride {
  --ig-white: #ffffff;
  --ig-surface: #fafafa;
  --ig-line: rgba(0, 0, 0, 0.06);
  --ig-muted: #dbdbdb;
  --ig-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.06);
  --ig-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.04), 0 14px 36px rgba(0, 0, 0, 0.08);
  background: #ebe8e2;
  isolation: isolate;
  overflow: hidden;
}

/* ── Map Canvas — styled city (future: mapbox/google via MAP_CONFIG) ── */
.map-canvas {
  position: absolute;
  inset: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
  background: #eceae6;
}

.map-city {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  filter: saturate(0.7) contrast(0.96) brightness(1.04);
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 14%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.72) 10%, transparent 22%);
}

.map-canvas.leaflet-on::before {
  display: none;
}

.map-canvas.mapbox-on::before,
.map-canvas.map-mapbox-mode::before {
  display: none;
}

/* Route — prominent, only when destination is set */
.map-route-wrap {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.map-route-wrap.visible { opacity: 1; }

.map-route-wrap svg {
  width: 100%;
  height: 100%;
}

.route-path-glow,
.route-path-casing {
  display: none;
}

.route-path {
  fill: none;
  stroke: #22c55e;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  opacity: 0.92;
}

/* Location pins */
.loc-pin {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.loc-pin .dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  background: #22c55e;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
  z-index: 2;
}

.loc-pin .lbl {
  padding: 0;
  background: none;
  border: none;
  font-size: 8px;
  font-weight: 700;
  color: #5c6672;
  max-width: 110px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 3px #ebe8e2, 0 0 3px #ebe8e2, 1px 1px 0 #ebe8e2;
  box-shadow: none;
}

.loc-pin.pickup {
  left: 23%;
  bottom: 14%;
  transform: translateX(-50%);
}

.loc-pin.pickup .pulse-ring {
  display: none;
}

.loc-pin.destination {
  left: 68%;
  top: 25%;
  opacity: 0;
  transform: translate(-50%, 8px);
}

.loc-pin.destination.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loc-pin.destination .dot {
  background: #2563eb;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  width: 14px;
  height: 14px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

/* Live vehicle on map — professional top-down */
.map-vehicle {
  --v-angle: 0deg;
  position: absolute;
  z-index: 17;
  display: none;
  width: 30px;
  height: 38px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map-vehicle.visible {
  display: block;
}

.map-vehicle-shadow {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 24px;
  height: 5px;
  margin-left: -12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  transform: rotate(calc(var(--v-angle) * -1));
}

.map-vehicle-sprite {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 48px;
  margin: -27px 0 0 -18px;
  object-fit: contain;
  transform: rotate(var(--v-angle));
  will-change: transform;
  z-index: 2;
}

.map-vehicle.is-tuk .map-vehicle-sprite {
  width: 22px;
  height: 28px;
  margin: -16px 0 0 -11px;
}

.map-vehicle.route-vehicle {
  left: 68%;
  top: 25%;
}

.map-vehicle.driver-vehicle {
  left: 58%;
  top: 34%;
}

.map-vehicle.tracking {
  transition: none;
}

.map-vehicle.tracking .map-vehicle-sprite {
  transition: transform 0.18s ease-out;
  transform: rotate(var(--v-angle, 0deg));
}

.map-vehicle.tracking .map-vehicle-shadow {
  transition: transform 0.18s ease-out;
  transform: rotate(calc(var(--v-angle, 0deg) * -1));
}

.map-canvas.trip-live .map-city {
  animation: mapDriftLive 14s ease-in-out infinite alternate;
}

@keyframes mapDriftLive {
  from { transform: scale(1.01) translate(0, 0); }
  to   { transform: scale(1.03) translate(-5px, -6px); }
}

/* Map controls */
.map-controls {
  position: absolute;
  z-index: 20;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.map-controls--top {
  justify-content: flex-start;
  right: auto;
}

.map-controls--ride {
  direction: ltr;
  justify-content: space-between;
}

.map-gps-fab {
  position: absolute;
  z-index: 21;
  right: 16px;
  bottom: calc(58% + 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: bottom 0.48s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease, transform 0.35s ease;
}

.map-gps-fab > * {
  pointer-events: auto;
}

.map-btn--fab {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

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

/* ── 2T Icon System (icons.js) ── */
.ui-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ui-icon--xs { width: 14px; height: 14px; }
.ui-icon--sm { width: 18px; height: 18px; }
.ui-icon--md { width: 22px; height: 22px; }
.ui-icon--lg { width: 28px; height: 28px; }

.map-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 18px rgba(15, 23, 42, 0.12);
  display: grid;
  place-items: center;
  color: #1e293b;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.map-btn .ui-icon {
  width: 22px;
  height: 22px;
}

.map-btn--gps {
  color: #1769ff;
}

.map-btn--gps .ui-icon {
  width: 23px;
  height: 23px;
}

.map-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.1);
}

.map-btn--home {
  color: #1e293b;
}

.map-btn--home:active {
  background: rgba(243, 245, 247, 0.95);
}

.map-eta-chip {
  position: absolute;
  z-index: 18;
  left: 16px;
  top: 68px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 24px rgba(37, 99, 235, 0.12);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.25s, border-color 0.25s;
  pointer-events: none;
}

.map-eta-chip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-chip-live {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.map-chip-live.on {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: chipPulse 1.6s ease-in-out infinite;
}

@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.08); }
}

.map-chip-eta,
.map-chip-dist {
  font-size: 12px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
  letter-spacing: 0.01em;
}

.map-chip-dist {
  color: #64748b;
  font-weight: 700;
}

.map-chip-sep {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.map-eta-chip.arrived {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(16, 185, 129, 0.35);
}

.map-eta-chip.arrived-pickup .map-chip-eta {
  color: #059669;
}

.map-eta-chip.arrived-dest .map-chip-eta {
  color: #047857;
  font-size: 13px;
}

/* ── Driver track actions — عمودي يسار، أسفل الخريطة (فوق الكارت) ── */
.driver-track-actions--map {
  position: absolute;
  z-index: 22;
  left: max(14px, env(safe-area-inset-left, 0px));
  right: auto;
  top: auto;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  background: none;
  border: none;
  box-shadow: none;
  animation: driverTrackMapIn 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes driverTrackMapIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.driver-track-actions--map[hidden] {
  display: none !important;
}

.driver-track-actions--map .driver-track-act {
  pointer-events: auto;
}

.driver-track-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
}

.driver-track-act {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 56px;
  padding: 0;
  border: none;
  background: transparent;
  font-weight: 700;
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.driver-track-act:active {
  transform: scale(0.94);
}

.driver-track-act-pad {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.driver-track-act:active .driver-track-act-pad {
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.driver-track-act .ui-icon--fi {
  font-size: 17px;
  line-height: 1;
}

.driver-track-act-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #64748b;
}

.driver-track-act--chat .driver-track-act-pad {
  color: #2563eb;
  background: linear-gradient(180deg, #f0f6ff 0%, #fff 100%);
  border-color: rgba(37, 99, 235, 0.12);
}

.driver-track-act--chat.has-unread .driver-track-act-pad {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}

.driver-track-act--call .driver-track-act-pad {
  color: #059669;
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
  border-color: rgba(5, 150, 105, 0.12);
}

.driver-track-act--cancel .driver-track-act-pad {
  color: #dc2626;
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  border-color: rgba(220, 38, 38, 0.1);
}

.driver-track-act--cancel .driver-track-act-label {
  color: #b91c1c;
}

.driver-track-act-badge {
  position: absolute;
  top: 0;
  inset-inline-start: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  font-style: normal;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  line-height: 1;
  transform: translateX(-50%);
}

.driver-track-act-badge[hidden] {
  display: none !important;
}

/* ── Driver side stack — legacy map FAB (unused) ── */
.driver-side-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: driverSideIn 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.driver-side-stack[hidden] {
  display: none !important;
}

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

.driver-side-btn {
  position: relative;
}

.driver-side-btn .ui-wrap {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: none;
  background: transparent;
}

.driver-side-btn .ui-icon {
  width: 22px;
  height: 22px;
}

.driver-side-btn--chat {
  color: #1769ff;
}

.driver-side-btn--chat.has-unread {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 18px rgba(15, 23, 42, 0.12),
    0 0 0 2px rgba(23, 105, 255, 0.28);
}

.driver-side-btn--call {
  color: var(--2t-accent-dark, #059669);
}

.driver-side-btn--call .ui-wrap--call {
  background: transparent;
  color: inherit;
}

.driver-side-btn--call .ui-icon {
  filter: none;
}

.driver-side-btn--cancel {
  color: #e5484d;
}

.driver-side-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  line-height: 1;
}

.map-canvas.trip-tracking .map-gps-fab {
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(28% + max(12px, env(safe-area-inset-bottom, 0px)));
  gap: 8px;
}

.map-canvas.trip-arrived .map-gps-fab {
  bottom: calc(32% + max(12px, env(safe-area-inset-bottom, 0px)));
}

.map-canvas.trip-boarding .map-gps-fab {
  bottom: calc(34% + max(12px, env(safe-area-inset-bottom, 0px)));
}

/* زر العودة للقائمة — نفس أسلوب الرجوع */
.t2-nav-home-btn,
.map-btn--home {
  color: #1e293b;
}

.t2-nav-home-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 18px rgba(15, 23, 42, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.t2-nav-home-btn .ui-icon {
  width: 22px;
  height: 22px;
}

.t2-nav-home-btn:active {
  transform: scale(0.94);
  background: rgba(243, 245, 247, 0.95);
}

.account-home {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f5f7;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #485465;
}

.account-home:active {
  transform: scale(0.94);
  background: #e8ecf0;
}

.captain-head--nav {
  direction: ltr;
}

.captain-head--nav .captain-head-text {
  flex: 1;
  direction: rtl;
}

.map-canvas.trip-tracking .map-eta-chip.visible {
  top: 62px;
}

/* ── حالة تتبع الكابتn ── */
.driver-track-status {
  position: absolute;
  z-index: 19;
  left: 16px;
  right: 72px;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(23, 105, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 24px rgba(15, 23, 42, 0.1);
  animation: driverSideIn 0.32s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.driver-track-status[hidden] {
  display: none !important;
}

.driver-track-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1769ff;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.18);
  flex-shrink: 0;
  animation: chipPulse 1.6s ease-in-out infinite;
}

.driver-track-status.is-arrived {
  border-color: rgba(25, 169, 116, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 24px rgba(25, 169, 116, 0.14);
}

.driver-track-status.is-arrived .driver-track-status-dot {
  background: #19a974;
  box-shadow: 0 0 0 4px rgba(25, 169, 116, 0.22);
  animation: none;
}

.driver-track-status-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.driver-track-status-copy strong {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.driver-track-status-copy small {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.3;
}

.driver-track-status.is-arrived .driver-track-status-copy strong {
  color: #15803d;
}

.driver-track-status.is-arrived .driver-track-status-copy small {
  color: #059669;
}

.driver-track-status.is-cancelled {
  border-color: rgba(229, 72, 77, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 24px rgba(229, 72, 77, 0.16);
}

.driver-track-status.is-cancelled .driver-track-status-dot {
  background: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.2);
  animation: none;
}

.driver-track-status.is-cancelled .driver-track-status-copy strong {
  color: #be123c;
}

.driver-track-status.is-cancelled .driver-track-status-copy small {
  color: #e11d48;
}

@media (max-width: 460px) {
  .driver-track-status {
    left: 12px;
    right: 68px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    padding: 11px 12px;
  }
}

.ui-chip {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ui-chip--eta,
.ui-chip--clock {
  background: #ecfdf5;
  color: #19a974;
}

.ui-chip--route {
  background: #ecfdf5;
  color: #19a974;
}

.ui-chip--wallet {
  background: #fff4e5;
  color: #c27803;
}

.ui-chip--arrived {
  background: #e8f7ef;
  color: #19a974;
}

/* ── Bottom Sheet ── */
.ride-sheet {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 56%;
  border-radius: 20px 20px 0 0;
  background: var(--ig-white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  border-top: 1px solid var(--ig-line);
}

.ride-sheet.phase-plan {
  max-height: 58%;
}

.ride-sheet.phase-search {
  max-height: 52%;
}

.ride-sheet.phase-driver {
  max-height: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  border: none;
  box-shadow: none;
  overflow: hidden;
  transition:
    max-height 0.48s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.38s ease;
}

.ride-sheet.phase-driver.driver-sub-approach,
.ride-sheet.phase-driver.driver-sub-arrived,
.ride-sheet.phase-driver.driver-sub-boarding {
  opacity: 1;
  pointer-events: auto;
  border-top: 1px solid var(--ig-line);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.ride-sheet.phase-driver.driver-sub-approach {
  max-height: 28%;
}

.ride-sheet.phase-driver.driver-sub-arrived {
  max-height: 30%;
  border-top-color: rgba(25, 169, 116, 0.22);
}

.ride-sheet.phase-driver.driver-sub-boarding {
  max-height: 34%;
  border-top-color: rgba(23, 105, 255, 0.2);
}

.ride-sheet.phase-driver.driver-sub-leaving,
.ride-sheet.phase-driver.phase-handoff {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  border: none;
  box-shadow: none;
}

.ride-sheet.phase-driver .sheet-handle {
  margin-top: 8px;
}

.ride-sheet.phase-driver .sheet-body {
  padding: 2px 16px max(14px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.ride-sheet.phase-driver.driver-sub-approach .sheet-handle,
.ride-sheet.phase-driver.driver-sub-approach .sheet-body,
.ride-sheet.phase-driver.driver-sub-arrived .sheet-handle,
.ride-sheet.phase-driver.driver-sub-arrived .sheet-body,
.ride-sheet.phase-driver.driver-sub-boarding .sheet-handle,
.ride-sheet.phase-driver.driver-sub-boarding .sheet-body {
  display: block;
}

.ride-sheet.phase-handoff {
  transition:
    max-height 0.56s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.42s ease;
}

.ride-arrival-stack {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  top: 108px;
  z-index: 740;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.26s ease;
}

.ride-arrival-stack[hidden] {
  display: none !important;
}

.ride-arrival-stack.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ride-arrival-alert {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px 12px 10px;
  border: 1px solid #dbe2ea;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 12px 28px rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.ride-arrival-alert-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ride-arrival-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid rgba(25, 169, 116, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.ride-arrival-alert-check {
  width: 16px;
  height: 9px;
  border-left: 3px solid #19a974;
  border-bottom: 3px solid #19a974;
  transform: rotate(-45deg) translateY(-1px);
  border-radius: 1px;
}

.ride-arrival-alert-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ride-arrival-alert-copy strong {
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.ride-arrival-alert-copy small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ride-arrival-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}

.driver-arrival-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 4px;
}

.driver-arrival-hero-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid rgba(25, 169, 116, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.driver-arrival-hero-check {
  width: 16px;
  height: 9px;
  border-left: 3px solid #19a974;
  border-bottom: 3px solid #19a974;
  transform: rotate(-45deg) translateY(-1px);
  border-radius: 1px;
}

.driver-arrival-hero strong {
  margin: 0 !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

.driver-arrival-sub {
  margin-top: 4px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
}

.driver-arrival-quick-btn {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}

.driver-arrival-quick-btn .driver-arrival-quick-label {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.driver-arrival-quick-btn.is-primary {
  background: linear-gradient(180deg, #1fbf84 0%, #19a974 100%);
  border-color: #15966a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(25, 169, 116, 0.18);
}

.driver-arrival-quick-btn.is-primary .driver-arrival-quick-label {
  color: #fff;
}

.driver-arrival-quick-btn.is-sent {
  background: #ecfdf5;
  border-color: rgba(25, 169, 116, 0.28);
  color: #15803d;
  box-shadow: none;
}

.driver-arrival-quick-btn.is-sent.is-primary {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

.driver-arrival-quick-btn.is-sent.is-primary .driver-arrival-quick-label {
  color: #fff;
}

.driver-arrival-quick-btn.is-muted {
  opacity: 0.45;
}

.driver-arrival-quick-btn:active:not(.is-sent) {
  transform: scale(0.98);
}

/* ── كارت تتبع الكابتn (ثابت) ── */
.driver-stage-panel {
  padding: 2px 4px 6px;
}

.driver-stage-views {
  min-height: 96px;
  position: relative;
}

.driver-stage-panel.is-switching .driver-stage-view.active {
  animation: driverStageSwap 0.44s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes driverStageSwap {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.driver-stage-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.driver-stage-step {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 0.35s ease, transform 0.35s ease;
}

.driver-stage-step.is-on {
  background: #1769ff;
  transform: scaleX(1.08);
}

.driver-stage-panel--arrived .driver-stage-step.is-on {
  background: #19a974;
}

.driver-stage-panel--boarding .driver-stage-step.is-on {
  background: #1769ff;
}

.driver-stage-step.is-done {
  background: #19a974;
}

.driver-stage-view {
  display: none;
  text-align: center;
  padding: 0 12px 8px;
  animation: driverStageIn 0.38s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.driver-stage-view.active {
  display: block;
}

@keyframes driverStageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.driver-stage-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.driver-stage-kicker-label {
  color: inherit;
}

.driver-stage-plate {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

.driver-stage-view strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.driver-stage-view span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.45;
}

.driver-stage-name {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}

.driver-stage-sub,
.driver-stage-eta {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.driver-stage-view--approach .driver-stage-plate {
  background: #eef4ff;
  border-color: rgba(23, 105, 255, 0.14);
  color: #1769ff;
}

.driver-stage-view--arrived .driver-stage-plate {
  background: #ecfdf5;
  border-color: rgba(25, 169, 116, 0.16);
  color: #15803d;
}

.driver-stage-view--boarding .driver-stage-plate {
  background: #eef4ff;
  border-color: rgba(23, 105, 255, 0.14);
  color: #1769ff;
}

.driver-stage-view--arrived .driver-stage-kicker {
  color: #94a3b8;
}

.driver-stage-view--arrived .driver-stage-kicker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.driver-stage-view--arrived .driver-stage-kicker-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19a974;
  box-shadow: 0 0 0 0 rgba(25, 169, 116, 0.45);
  animation: driverArrivedPulse 1.6s ease infinite;
  flex-shrink: 0;
}

@keyframes driverArrivedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 169, 116, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(25, 169, 116, 0); }
}

.driver-stage-view--boarding .driver-stage-kicker,
.driver-stage-view--boarding strong {
  color: #1769ff;
}

.driver-stage-view--boarding .driver-stage-kicker {
  color: #1769ff;
}

.map-canvas.trip-arrived .driver-track-status {
  bottom: calc(30% + 10px);
  transition:
    bottom 0.48s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.35s ease,
    transform 0.35s ease;
}

.map-canvas.trip-handoff .driver-track-status.is-leaving {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.map-canvas.trip-handoff .map-gps-fab {
  opacity: 0.55;
  transform: scale(0.94) translateY(6px);
  pointer-events: none;
}

.map-canvas.trip-handoff .driver-side-stack {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.ride-sheet.phase-active {
  max-height: 72%;
  transition:
    max-height 0.56s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.42s ease;
}

.ride-sheet.sheet-enter-active {
  animation: sheetEnterActive 0.62s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes sheetEnterActive {
  from { transform: translateY(22px); opacity: 0.82; }
  to { transform: none; opacity: 1; }
}

.sheet-handle {
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--ig-muted);
  margin: 10px auto 0;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 24px;
  scrollbar-width: none;
}

.sheet-body::-webkit-scrollbar { display: none; }

.sheet-phase { display: none; }
.sheet-phase.active { display: block; animation: sheetIn 0.32s ease both; }

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Route inputs */
.route-card {
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  border-radius: 16px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.route-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid #eceef2;
}

.route-row:last-child { border-bottom: 0; }

.route-map-hint {
  margin: 8px 2px 2px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.5;
}

.route-map-hint[hidden] {
  display: none;
}

.ui-pin {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ui-pin--from { color: #121417; }
.ui-pin--to   { color: #19a974; }

.ui-pin .ui-icon {
  width: 16px;
  height: 16px;
}

.route-row input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #121417;
  text-align: right;
}

.route-row--dest {
  align-items: center;
}

.dest-note-wrap {
  margin-top: 8px;
  padding-inline: 36px 8px;
}

.dest-note-wrap input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}

.dest-note-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #9aa3af;
}

.dest-hit {
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(25, 169, 116, 0.16);
  color: inherit;
  font-weight: 800;
}

.route-row input::placeholder { color: #9aa1a9; font-weight: 600; }

.route-gps {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  color: #1769ff;
  border: 1px solid rgba(23, 105, 255, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.route-gps .ui-icon {
  width: 22px;
  height: 22px;
}

.route-gps:active {
  transform: scale(0.96);
  border-color: rgba(23, 105, 255, 0.28);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

/* Recent places */
.recent-block {
  margin-bottom: 14px;
}

.recent-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  color: #485465;
}

.recent-block.empty .recent-label {
  color: #9aa1a9;
}

.recent-empty {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9aa1a9;
  line-height: 1.6;
  padding: 2px 0 4px;
}

.quick-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.quick-row::-webkit-scrollbar { display: none; }

.quick-chip {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f5f7;
  border: 1px solid #e8eaee;
  font-size: 12px;
  font-weight: 800;
  color: #364153;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.quick-chip:active,
.quick-chip.selected {
  background: #eef4ff;
  border-color: rgba(23, 105, 255, 0.35);
  color: #1769ff;
}

/* Service cards */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.section-label {
  font-size: 13px;
  font-weight: 900;
  color: #121417;
  margin: 0;
}

.vehicle-badge {
  padding: 5px 11px;
  border-radius: 999px;
  background: #f3f5f7;
  font-size: 11px;
  font-weight: 900;
  color: #485465;
}

.section-hint {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #9aa1a9;
}

.section-hint.done {
  display: none;
}

.service-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  transition: opacity 0.3s;
}

.service-list.locked {
  opacity: 0.42;
  pointer-events: none;
  filter: grayscale(0.2);
}

.service-card {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 10px 6px;
  border-radius: 16px;
  background: var(--ig-white);
  border: 1px solid var(--ig-line);
  box-shadow: var(--ig-shadow);
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.service-card:active { transform: scale(0.99); }

.service-card.selected {
  border-color: #1769ff;
  box-shadow: 0 4px 16px rgba(23, 105, 255, 0.1);
  background: var(--ig-white);
}

.service-card img,
.service-card .service-vehicle-img {
  width: 132px;
  height: 96px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: none;
}


.service-card .info b {
  display: block;
  font-family: Cairo, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}

.service-card .info small {
  display: block;
  font-size: 11px;
  color: #747b86;
  font-weight: 700;
  line-height: 1.5;
}

.service-card .meta {
  text-align: left;
  direction: ltr;
}

.service-card .meta strong {
  display: block;
  font-size: 15px;
  color: #121417;
}

.service-card .meta span {
  display: block;
  font-size: 11px;
  color: #19a974;
  font-weight: 800;
  margin-top: 2px;
}

/* Trip summary — compact strip */
.trip-strip {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 16px;
  background: #f4f6f9;
}

.trip-strip.visible,
.trip-strip.live {
  display: flex;
}

.trip-strip.visible {
  animation: sheetIn 0.28s ease both;
}

.trip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ui-chip--clock {
  background: #eef8f2;
  color: #19a974;
}

.trip-chip strong {
  font-size: 12px;
  font-weight: 900;
  color: #1e293b;
  direction: ltr;
  letter-spacing: 0.01em;
}

.trip-chip.price strong {
  color: #1769ff;
}

.trip-strip.live {
  background: #f8fafc;
}

/* Request button */
.btn-request {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: #1769ff;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(23, 105, 255, 0.35);
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
}

.btn-request:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-request:not(:disabled):active {
  transform: scale(0.98);
}

/* ── Searching phase ── */
.search-panel {
  text-align: center;
  padding: 8px 0 16px;
}

.search-radar {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
}

.search-radar .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(23, 105, 255, 0.25);
}

.search-radar .ring:nth-child(2) {
  inset: 12px;
  border-color: rgba(23, 105, 255, 0.4);
}

.search-radar .ring:nth-child(3) {
  inset: 24px;
  border-color: rgba(23, 105, 255, 0.6);
}

.search-radar .core {
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: #1769ff;
  animation: radarPulse 1.4s ease-in-out infinite;
}

@keyframes radarPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}

.search-radar .sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(23, 105, 255, 0.35) 60deg, transparent 120deg);
  animation: radarSweep 1.8s linear infinite;
}

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

.search-panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.search-panel p {
  margin: 0 0 20px;
  font-size: 13px;
  color: #747b86;
  font-weight: 700;
  line-height: 1.7;
}

.search-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.search-step {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e4ea;
  transition: background 0.3s, transform 0.3s;
}

.search-step.active {
  background: #1769ff;
  transform: scale(1.25);
}

.search-step.done { background: #19a974; }

.btn-cancel {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  background: #f3f5f7;
  color: #e5484d;
  font-weight: 900;
  font-size: 14px;
}

/* Surge offer (no AI branding) */
.surge-offer {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fffbf0;
  border: 1px solid #f5e6b8;
  text-align: center;
}

.surge-offer.visible { display: block; }

.surge-offer b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #7a5600;
}

.surge-offer p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #8a7340;
  font-weight: 700;
  line-height: 1.6;
}

.btn-surge {
  width: 100%;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8d48a;
  color: #7a5600;
  font-weight: 900;
  font-size: 13px;
}

/* ── Driver matched sheet ── */
.driver-sheet { padding: 2px 0 4px; }

.driver-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 900;
  color: #15803d;
}

.status-dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #19a974;
  box-shadow: 0 0 0 5px rgba(25, 169, 116, 0.2);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.driver-eta-chip {
  margin-right: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1769ff;
  font-size: 12px;
}

.driver-sheet--track {
  padding-bottom: 4px;
}

.driver-track-card {
  position: relative;
  border-radius: 22px;
  background: var(--ig-white);
  border: 1px solid rgba(18, 20, 23, 0.07);
  box-shadow:
    0 2px 4px rgba(18, 20, 23, 0.04),
    0 16px 40px rgba(18, 20, 23, 0.1);
  overflow: hidden;
}

.driver-track-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #19a974 0%, #22c55e 35%, #1769ff 100%);
}

.driver-track-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 0;
}

.driver-track-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #15803d;
  letter-spacing: -0.01em;
}

.driver-track-eta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, #eef4ff 0%, #e3edff 100%);
  border: 1px solid rgba(23, 105, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.driver-track-eta-val {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #1769ff;
  letter-spacing: -0.03em;
}

.driver-track-eta-unit {
  font-size: 11px;
  font-weight: 800;
  color: #5b7fd6;
}

.driver-track-body {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px 18px;
}

.driver-track-avatar {
  width: 76px;
  height: 76px;
}

.driver-track-avatar .avatar-photo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.14);
}

.driver-track-copy {
  min-width: 0;
  padding-top: 2px;
}

.driver-track-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #1769ff;
  margin-bottom: 3px;
}

.driver-track-copy > strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.driver-track-card .driver-rating-row {
  margin-bottom: 12px;
}

.driver-track-veh-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(18, 20, 23, 0.06);
}

.driver-track-veh-thumb {
  width: 72px;
  height: 48px;
  object-fit: contain;
  object-position: center bottom;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(18, 20, 23, 0.14));
}

.driver-track-veh-copy {
  min-width: 0;
  flex: 1;
}

.driver-track-veh-copy b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #121417;
  margin-bottom: 4px;
}

.driver-track-veh-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.driver-track-veh-sub > span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: #747b86;
}

.driver-track-plate {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 8px;
  background: #121417;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  direction: ltr;
}

.driver-track-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(18, 20, 23, 0.07);
  background: #fafbfc;
}

.driver-track-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 900;
  color: #121417;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(18, 20, 23, 0.07);
  transition: background 0.15s ease;
}

.driver-track-tool:first-child {
  border-left: 0;
}

.driver-track-tool:active {
  background: rgba(18, 20, 23, 0.04);
}

.driver-track-tool-icon .ui-wrap {
  width: 20px;
  height: 20px;
}

.driver-track-tool--chat {
  color: #1769ff;
}

.driver-track-tool--chat.has-unread {
  background: rgba(23, 105, 255, 0.06);
}

.driver-track-tool--call {
  color: #15803d;
}

.driver-track-tool--cancel {
  color: #b91c1c;
  font-size: 12px;
}

.driver-track-tool-badge {
  position: absolute;
  top: 8px;
  left: 12px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  display: grid;
  place-items: center;
  border: 2px solid #fafbfc;
}

.driver-hero {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.driver-chat-fab {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #1769ff;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(23, 105, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.driver-chat-fab:active {
  transform: scale(0.96);
}

.driver-chat-fab.has-unread {
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.22), 0 8px 22px rgba(23, 105, 255, 0.35);
}

.driver-chat-fab-icon .ui-wrap {
  width: 24px;
  height: 24px;
}

.driver-chat-fab-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  display: grid;
  place-items: center;
  border: 2px solid var(--ig-white);
}

.avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.avatar-photo {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(18, 20, 23, 0.12);
}

.avatar-verified {
  position: absolute;
  bottom: -4px;
  left: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #19a974;
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid var(--ig-white);
}

.avatar-verified .ui-icon {
  width: 12px;
  height: 12px;
}

.driver-hero-text strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.driver-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.driver-rating-row .rating {
  font-size: 13px;
  font-weight: 900;
  direction: ltr;
}

.rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #262626;
}

.rating-inline .ui-star {
  width: 14px;
  height: 14px;
  color: #f59e0b;
}

.rating-inline span {
  font-weight: 900;
}

.driver-rating-row .trips {
  font-size: 11px;
  color: #747b86;
  font-weight: 700;
}

.driver-phone {
  font-size: 12px;
  color: #747b86;
  font-weight: 700;
  direction: ltr;
  display: inline-block;
}

.driver-vehicle-card {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px 12px 8px;
  border-radius: 16px;
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  margin-bottom: 14px;
}

.driver-vehicle-card img {
  width: 120px;
  height: 88px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: none;
}

.driver-vehicle-meta b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.driver-vehicle-meta span {
  display: block;
  font-size: 11px;
  color: #747b86;
  font-weight: 700;
  line-height: 1.5;
}

.plate-badge {
  padding: 8px 10px;
  border-radius: 12px;
  background: #121417;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  direction: ltr;
}

/* Trip actions — visual hierarchy */
.trip-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.trip-actions.has-safety {
  margin-bottom: 10px;
}

.trip-actions--no-call {
  margin-top: 2px;
}

.trip-actions--no-call .trip-actions-sub {
  width: 100%;
}

.trip-actions--no-chat.has-safety .trip-actions-sub {
  grid-template-columns: 1fr 1fr;
}

.trip-act {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  font-weight: 800;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.trip-act:active {
  transform: scale(0.97);
}

.ui-wrap {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.act-label {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

/* Icon pods — دائرية احترافية */
.trip-act-iconpod {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trip-act-iconpod .ui-wrap {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 14px rgba(15, 23, 42, 0.08);
}

.trip-act-iconpod .ui-icon {
  width: 22px;
  height: 22px;
}

.trip-act-iconpod--call .ui-wrap--call {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.trip-act-iconpod--chat .ui-wrap--chat {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  color: #19a974;
}

.trip-act-iconpod--share .ui-wrap--share {
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
  color: #475569;
}

.trip-act-iconpod--safety .ui-wrap--safety {
  background: linear-gradient(145deg, #fff1f1 0%, #ffe4e4 100%);
  color: #dc2626;
}

/* Primary — call */
.trip-act.call {
  width: 100%;
  height: 56px;
  gap: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #19a974 0%, #16a34a 100%);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 28px rgba(25, 169, 116, 0.28);
}

.trip-act-iconpod--call {
  width: 40px;
  height: 40px;
}

.trip-act.call .act-label {
  font-size: 15px;
  font-weight: 900;
}

.trip-actions-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trip-actions.has-safety .trip-actions-sub {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Secondary actions — icon tiles */
.trip-act.chat,
.trip-act.share,
.trip-act.safety {
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #334155;
}

.trip-act-iconpod--chat,
.trip-act-iconpod--share,
.trip-act-iconpod--safety {
  width: 52px;
  height: 52px;
}

.trip-act-badge {
  position: absolute;
  top: -1px;
  inset-inline-end: -1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.35);
  z-index: 2;
}

.trip-act-badge[hidden] {
  display: none;
}

.trip-act.safety .act-label {
  color: #b91c1c;
}

/* ── Active trip ── */
.live-trip { padding: 2px 0; }

.live-status-card {
  margin-bottom: 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef1f5;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.status-stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.status-stepper--live .step.done,
.status-stepper--live .step.on {
  background: #19a974;
}

.status-stepper .step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e8eaee;
  transition: background 0.35s;
}

.status-stepper .step.done { background: #19a974; }
.status-stepper .step.on  { background: #19a974; }

.live-status-card strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
  color: #0f172a;
}

.live-status-card p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  line-height: 1.6;
}

.live-trip-timer--inline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.live-trip-timer-kicker {
  justify-self: start;
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
  white-space: nowrap;
  line-height: 1.2;
}

.live-trip-timer-dist {
  justify-self: end;
  font-size: 11px;
  font-weight: 800;
  color: #166534;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: end;
}

.live-trip-timer-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  direction: ltr;
  justify-self: center;
}

.live-trip-timer-digit {
  min-width: 28px;
  padding: 4px 5px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d1fae5;
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #16a34a;
  text-align: center;
}

.live-trip-timer-colon {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: #22c55e;
}

.live-trip-timer.is-done {
  background: #f0fdf4;
  border-color: #86efac;
}

.live-trip-timer.is-done .live-trip-timer-digit {
  color: #15803d;
}

.live-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.live-stats-row--duo {
  grid-template-columns: repeat(2, 1fr);
}

.live-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef1f5;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.live-stat-card .ui-chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.live-stat-card strong {
  font-size: 13px;
  font-weight: 900;
  color: #1e293b;
  direction: ltr;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.2;
}

.live-stat-card--price strong {
  color: #c27803;
  font-size: 12px;
}

.live-stat-card--price .ui-chip--wallet {
  background: #fff7ed;
  color: #ea580c;
}

.trip-strip.live {
  margin-bottom: 12px;
}

.route-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ig-surface);
  border: 1px solid var(--ig-line);
  margin-bottom: 14px;
}

.route-line-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.route-line-item + .route-line-item { margin-top: 10px; }

.route-line-item .ui-pin {
  margin-top: 2px;
}

.route-line-item span {
  display: block;
  font-size: 10px;
  color: #9aa1a9;
  font-weight: 800;
  margin-bottom: 2px;
}

.route-line-item b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #364153;
  line-height: 1.45;
}

.progress-track { display: none; }

.btn-finish {
  width: 100%;
  height: 52px;
  border-radius: 18px;
  background: #121417;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}

/* ── Modals ── */
.ride-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: end center;
  padding: 20px;
  background: rgba(18, 20, 23, 0.45);
  backdrop-filter: blur(10px);
}

.ride-modal--chat {
  place-items: stretch;
  padding: 0;
  background: var(--ig-white);
  backdrop-filter: none;
}

.ride-modal--chat.open {
  display: flex;
  flex-direction: column;
}

.ride-modal.open { display: grid; animation: fadeIn 0.25s ease; }

.ride-modal--chat.open {
  display: flex;
  animation: chatIn 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ride-modal .panel {
  width: 100%;
  border-radius: 20px;
  background: var(--ig-white);
  padding: 20px;
  box-shadow: var(--ig-shadow-lg);
  animation: slideUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

#receiptModal {
  place-items: end center;
  padding: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#receiptModal.open {
  display: grid;
  animation: receiptBackdropIn 0.28s ease;
}

#receiptModal .receipt-panel {
  width: 100%;
  max-width: 520px;
  max-height: min(76%, 620px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbe2ea;
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  background: #fff;
  padding: 14px 18px max(18px, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12);
  animation: receiptSheetUp 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

#receiptModal .receipt-panel::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #dbe2ea;
}

@keyframes receiptBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes receiptSheetUp {
  from {
    opacity: 0.92;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ride-modal--chat .chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  animation: none;
}

.chat-head {
  padding: 12px 16px 14px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--ig-line);
  flex-shrink: 0;
}

.chat-head-text {
  flex: 1;
  min-width: 0;
}

.chat-head-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.chat-head-status {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #19a974;
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head strong { flex: 1; font-size: 16px; }

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.12s;
}

.modal-close:active {
  background: #e2e8f0;
  transform: scale(0.96);
}

.modal-close .ui-icon {
  width: 18px;
  height: 18px;
}

/* Chat */
.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.ride-modal:not(.ride-modal--chat) .chat-body {
  max-height: 200px;
  margin-bottom: 12px;
  padding: 0;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}

.chat-quick button {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f5f7;
  border: 1px solid rgba(18, 20, 23, 0.06);
  font-size: 12px;
  font-weight: 800;
  color: #374151;
  white-space: nowrap;
}

.chat-quick button:active {
  background: #eef4ff;
  transform: scale(0.98);
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.chat-msg.them {
  background: #f3f5f7;
  align-self: flex-start;
}

.chat-msg.me {
  background: #121417;
  color: #fff;
  align-self: flex-end;
}

.chat-compose {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--ig-line);
  background: #f7f8fa;
  flex-shrink: 0;
}

.ride-modal:not(.ride-modal--chat) .chat-compose {
  padding: 8px;
  border-radius: 16px;
  border-top: none;
  margin: 0 0 12px;
}

.chat-compose input {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #1769ff;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(23, 105, 255, 0.28);
}

.chat-send:active {
  transform: scale(0.96);
}

.chat-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
}

/* Safety */
.safety-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: #747b86;
  font-weight: 700;
  line-height: 1.6;
}

.safety-emergency {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  background: #e5484d;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 12px;
  box-shadow: 0 10px 28px rgba(229, 72, 77, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.safety-emergency .ui-wrap--alert {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.safety-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.safety-act {
  height: 52px;
  border-radius: 16px;
  background: #f7f8fa;
  font-weight: 900;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #334155;
}

.ui-wrap--safety-route {
  background: #f0fdf4;
  color: #19a974;
}

.ui-wrap--safety-share,
.ui-wrap--safety-support {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.ui-wrap--safety-share {
  background: #e8f1ff;
  color: #1769ff;
}

.ui-wrap--safety-support {
  background: #eef8f2;
  color: #19a974;
}

/* Receipt */
.receipt-driver {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  background: #f8fafc;
  margin-bottom: 10px;
}

.receipt-driver img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.receipt-driver strong {
  display: block;
  font-size: 14px;
}

.receipt-driver span {
  font-size: 12px;
  font-weight: 800;
}

.receipt-driver .rating-inline .ui-star {
  width: 13px;
  height: 13px;
}

.receipt-route {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  background: #fff;
  margin-bottom: 10px;
}

.receipt-route p {
  margin: 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 11px;
  font-weight: 700;
  color: #485465;
  line-height: 1.45;
}

.receipt-route p + p { margin-top: 8px; }

.receipt-route .ui-pin {
  margin-top: 1px;
}

.receipt-grid .item strong.is-digital {
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #16a34a;
}

.receipt-head {
  text-align: center;
  margin-bottom: 14px;
}

.receipt-success-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid rgba(25, 169, 116, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.receipt-success-check {
  width: 18px;
  height: 10px;
  border-left: 3px solid #19a974;
  border-bottom: 3px solid #19a974;
  transform: rotate(-45deg) translateY(-1px);
  border-radius: 1px;
}

.receipt-head h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.receipt-head p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 700;
}

.receipt-head .check {
  display: none;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.receipt-grid .item {
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  background: #f8fafc;
  text-align: center;
}

.receipt-grid .item span {
  display: block;
  font-size: 10px;
  color: #747b86;
  font-weight: 800;
  margin-bottom: 3px;
}

.receipt-grid .item strong {
  font-size: 15px;
  direction: ltr;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(25, 169, 116, 0.16);
  background: linear-gradient(180deg, #f0fdf7 0%, #ecfdf5 100%);
  margin-bottom: 12px;
}

.receipt-total-row span {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
}

.receipt-total-row strong {
  font-size: 21px;
  direction: ltr;
  color: #15803d;
  font-weight: 900;
}

.rating-row {
  text-align: center;
  margin-bottom: 14px;
}

.rating-row span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #747b86;
  margin-bottom: 10px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.rating-stars button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe2ea;
  display: grid;
  place-items: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.rating-stars button .ui-star {
  width: 18px;
  height: 18px;
  color: #cbd5e1;
}

.rating-stars button.on {
  background: #fffbeb;
  border-color: #fcd34d;
  transform: scale(1.06);
}

.rating-stars button.on .ui-star {
  color: #f59e0b;
}

.btn-new-trip {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  background: #19a974;
  color: #fff;
  font-weight: 900;
  font-size: 14.5px;
  box-shadow: 0 8px 18px rgba(25, 169, 116, 0.22);
}

.btn-new-trip:active {
  transform: scale(0.99);
}

/* Toast feedback */
.ride-toast {
  position: absolute;
  z-index: 60;
  top: 72px;
  left: 20px;
  right: 20px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #334155;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  border: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.ride-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ride-toast--danger {
  background: #be123c;
  color: #fff;
  box-shadow: 0 10px 28px rgba(190, 18, 60, 0.28);
}

.loc-pin.pickup { z-index: 16; }
.loc-pin.destination { z-index: 16; }
.map-route-wrap { z-index: 9; }

.service-list:not(.locked) .service-card.selected {
  transform: translateY(-1px);
}

.btn-request:not(:disabled) {
  letter-spacing: 0.2px;
}

/* Payment methods */
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.pay-method {
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--ig-line);
  background: var(--ig-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #485465;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pay-method .ui-chip {
  width: 18px;
  height: 18px;
}

.pay-method.on {
  border-color: #1769ff;
  background: #eef4ff;
  color: #1769ff;
}

.pay-method--soon {
  opacity: 0.55;
  position: relative;
}

.pay-soon {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 900;
  color: #9a7200;
  font-style: normal;
}

.chat-beta-note {
  margin: 0;
  padding: 8px 14px 12px;
  font-size: 10px;
  font-weight: 700;
  color: #747b86;
  text-align: center;
}

.captain-pending-banner {
  margin: 0 20px 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff8e6;
  border: 1px solid #f0dfa8;
}

.captain-pending-banner.rejected {
  background: #fff4f4;
  border-color: #ffd5d5;
}

.captain-pending-banner strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
}

.captain-pending-banner p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #747b86;
  line-height: 1.45;
}

.captain-pending-banner[hidden] {
  display: none !important;
}

.safety-act--wide {
  width: 100%;
  margin-top: 10px;
}

/* Account screens */
.screen.account {
  background: #fff;
  overflow: auto;
  z-index: 5;
}

.account-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--ig-line);
  direction: ltr;
}

.account-head strong {
  text-align: center;
  font-size: 16px;
}

.account-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f5f7;
  display: grid;
  place-items: center;
  color: #485465;
}

.account-body {
  padding: 20px 20px 32px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2ea, #fff6da);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--olive, #66745b);
}

.profile-hero b {
  display: block;
  font-size: 20px;
}

.profile-hero span {
  font-size: 13px;
  color: #747b86;
  font-weight: 700;
}

.account-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 14px;
  border-radius: 16px;
  background: #f8f9fb;
  border: 1px solid var(--ig-line);
}

.stat-card span {
  display: block;
  font-size: 11px;
  color: #747b86;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-card strong {
  font-size: 18px;
  color: #1769ff;
}

.account-menu {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.account-menu-item {
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--ig-line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  color: #121417;
  transition: background 0.15s, border-color 0.15s;
}

.account-menu-item:active {
  background: #f8fafc;
}

.account-menu-item .ui-chip {
  width: 22px;
  height: 22px;
  color: #1769ff;
}

.support-card {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--ig-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.04);
}

.support-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.support-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #11845f;
  background: rgba(25, 169, 116, 0.1);
  box-shadow: inset 0 0 0 1px rgba(25, 169, 116, 0.12);
}

.support-card-head strong {
  display: block;
  color: #121417;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.support-card-head small,
.support-card-info span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.support-card-info {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.support-card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.support-card-actions button {
  min-height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(25, 169, 116, 0.16);
  background: rgba(236, 253, 245, 0.86);
  color: #11845f;
  font-size: 12px;
  font-weight: 900;
}

.support-card-actions button:active {
  transform: scale(0.98);
  background: rgba(220, 252, 231, 0.96);
}

.account-note {
  text-align: center;
  font-size: 11px;
  color: #9aa1a9;
  font-weight: 700;
  margin: 0;
}

.about-hero {
  text-align: center;
  padding: 8px 0 18px;
}

.about-brand {
  font-size: 34px;
  line-height: 1;
}

.about-tagline {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}

.about-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--ig-line);
  background: #fff;
}

.about-meta div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.about-meta dt {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.about-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.about-copy {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
  color: #475569;
}

.about-legal {
  margin: 0 0 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f4;
  text-align: center;
}

.about-links {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.about-link-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: rgba(236, 253, 245, 0.86);
  color: #11845f;
  font-family: Cairo, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.about-link-btn--ghost {
  background: #fff;
  border-color: var(--ig-line);
  color: #334155;
}

.about-link-btn:active {
  transform: scale(0.99);
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--ig-line);
  background: #fff;
  box-shadow: 0 8px 24px #1214170a;
}

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

.history-rating {
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #eab308;
  direction: ltr;
  text-align: left;
}

.history-card-top strong {
  font-size: 16px;
  color: #1769ff;
  direction: ltr;
}

.history-card-top span {
  font-size: 11px;
  color: #9aa1a9;
  font-weight: 700;
}

.history-route {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #485465;
}

.history-route em {
  font-style: normal;
  color: #9aa1a9;
  font-size: 11px;
  margin-left: 6px;
}

.history-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
  font-size: 11px;
  font-weight: 800;
  color: #747b86;
}

.history-reorder {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  background: #1769ff;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.history-empty {
  text-align: center;
  color: #9aa1a9;
  font-size: 13px;
  font-weight: 700;
  padding: 40px 20px;
}

.nav-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d4e4ff;
  color: #1769ff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-chip:active {
  background: #dceaff;
}

@media (max-width: 460px) {
  .ride-sheet.phase-plan { max-height: 62%; }
  .ride-sheet.phase-search { max-height: 56%; }
  .ride-sheet.phase-driver.driver-sub-approach { max-height: 30%; }
  .ride-sheet.phase-driver.driver-sub-arrived { max-height: 32%; }
  .ride-sheet.phase-driver.driver-sub-boarding { max-height: 36%; }
  .ride-sheet.phase-active { max-height: 70%; }
  .map-canvas.trip-tracking .map-gps-fab {
    bottom: calc(30% + max(10px, env(safe-area-inset-bottom, 0px)));
  }
  .map-canvas.trip-arrived .map-gps-fab {
    bottom: calc(34% + max(10px, env(safe-area-inset-bottom, 0px)));
  }
  .map-canvas.trip-boarding .map-gps-fab {
    bottom: calc(36% + max(10px, env(safe-area-inset-bottom, 0px)));
  }
  .map-eta-chip { top: 62px; left: 12px; }
  .map-controls { top: 12px; left: 12px; right: 12px; }
  .map-gps-fab { right: 10px; bottom: calc(60% + 12px); }
}

/* شاشة اختيار المركبة → choose-pro.css */

.captain-zone {
  margin-top: 20px;
  padding-bottom: 28px;
  display: grid;
  gap: 10px;
}

.captain-zone-label {
  margin: 0 2px 2px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.captain-entry-below {
  margin-top: 20px;
  padding-bottom: 28px;
}

.captain-entry-below-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: right;
  transition: border-color 0.2s, background 0.2s, transform 0.12s;
}

.captain-entry-below-btn:active {
  transform: scale(0.99);
  background: #f1f5f9;
  border-color: #c8dafc;
}

.captain-entry-below-btn--hub {
  background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%);
  border-color: #c5d9f7;
}

.captain-entry-below-btn--hub:active {
  background: #eef4ff;
  border-color: #a8c4f5;
}

.captain-entry-below-btn .choose-entry-icon,
.captain-entry-below-btn .ui-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.captain-entry-below-copy b {
  display: block;
  font-size: 14px;
  color: #1769ff;
  margin-bottom: 3px;
}

.captain-entry-below-copy em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  line-height: 1.5;
}

.captain-entry-below-arrow {
  font-size: 20px;
  color: #94a3b8;
  line-height: 1;
  transform: rotate(180deg);
}

.account-menu-item .ui-wrap {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.ui-wrap--menu-history {
  background: #eef8f2;
  color: #19a974;
}

.ui-wrap--menu-reorder {
  background: #eef4ff;
  color: #1769ff;
}

.account-logout {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #fecaca;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  transition: background 0.15s, transform 0.12s;
}

.account-logout:active {
  background: #fef2f2;
  transform: scale(0.99);
}

.ui-wrap--profile-logout {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fee2e2;
  color: #dc2626;
}

/* ── Captain registration ── */
.captain-entry-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f7fb;
  border: 1px solid #dce6f5;
  color: #1769ff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.captain-entry-link:active {
  background: #eaf0fb;
  border-color: #c5d9f7;
}

.screen.captain {
  background: #fff;
  display: none;
  overflow: hidden;
  z-index: 6;
}

.screen.captain.on {
  display: flex;
  flex-direction: column;
}

.captain-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 12px;
  border-bottom: 1px solid #e8eaee;
  flex-shrink: 0;
}

.captain-back {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f3f5f7;
  display: grid;
  place-items: center;
  color: #485465;
}

.captain-head-text strong {
  display: block;
  font-size: 18px;
}

.captain-head-text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #747b86;
  font-weight: 700;
}

.captain-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 28px;
  -webkit-overflow-scrolling: touch;
}

.captain-intro {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.75;
  color: #747b86;
  font-weight: 700;
}

.captain-field {
  display: block;
  margin-bottom: 12px;
}

.captain-field > span,
.captain-field > legend {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #5c6672;
}

.captain-field input,
.captain-field select {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #e8eaee;
  background: #fafbfc;
  font-weight: 800;
  color: #121417;
  box-shadow: 0 6px 18px rgba(18, 20, 23, 0.04);
}

.captain-field input:focus,
.captain-field select:focus {
  border-color: #1769ff;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.1);
}

.captain-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}

.captain-vehicle-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cap-vehicle-opt {
  position: relative;
  display: block;
  cursor: pointer;
}

.cap-vehicle-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cap-vehicle-opt span {
  display: grid;
  place-items: center;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e8eaee;
  background: #fafbfc;
  font-size: 13px;
  font-weight: 900;
  color: #485465;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.cap-vehicle-opt input:checked + span {
  border-color: #1769ff;
  background: #eef4ff;
  color: #1769ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.08);
}

.captain-uploads {
  margin: 18px 0 12px;
}

.captain-uploads-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: #121417;
}

.captain-upload {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px dashed #d5dde8;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.captain-upload:active {
  background: #f3f6fa;
  border-color: #1769ff;
}

.captain-upload.has-file {
  border-style: solid;
  border-color: rgba(23, 105, 255, 0.28);
  background: #f7faff;
}

.captain-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef4ff;
  color: #1769ff;
  display: grid;
  place-items: center;
}

.captain-upload-icon .ui-chip {
  width: 20px;
  height: 20px;
}

.captain-upload-text b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.captain-upload-text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #9aa1a9;
  font-weight: 700;
}

.captain-upload-preview {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e8eaee;
}

.captain-legal {
  margin: 8px 0 14px;
  font-size: 11px;
  line-height: 1.6;
  color: #9aa1a9;
  font-weight: 700;
  text-align: center;
}

.captain-phone-gate {
  margin: 0 0 14px;
}

.captain-otp-send {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.18);
}

.captain-otp-send:disabled {
  opacity: 0.65;
}

.captain-otp-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.captain-otp-panel[hidden] {
  display: none !important;
}

.captain-otp-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.5;
}

.captain-otp-hint.demo-code strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #15803d;
}

.captain-phone-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.5;
}

.captain-otp-field {
  margin-bottom: 0;
}

.captain-otp-field input {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 18px;
}

.captain-submit {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  background: #1769ff;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(23, 105, 255, 0.22);
}

.captain-submit:disabled {
  opacity: 0.65;
}

.captain-success-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 28px;
}

.captain-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #19a974;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.captain-success-icon .ui-icon {
  width: 36px;
  height: 36px;
}

.captain-success-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.captain-success-body > p {
  margin: 0;
  font-size: 15px;
  color: #485465;
  font-weight: 800;
  line-height: 1.7;
}

.captain-success-sub {
  margin: 12px 0 24px !important;
  font-size: 12px !important;
  color: #9aa1a9 !important;
  font-weight: 700 !important;
  max-width: 280px;
}

.captain-toast {
  position: absolute;
  z-index: 80;
  left: 20px;
  right: 20px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #121417;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.captain-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Leaflet / Mapbox map */
.map-canvas.map-leaflet-mode .map-city,
.map-canvas.map-leaflet-mode .map-route-wrap,
.map-canvas.map-mapbox-mode .map-city,
.map-canvas.map-mapbox-mode .map-route-wrap,
.leaflet-on .map-city,
.leaflet-on .map-route-wrap,
.mapbox-on .map-city,
.mapbox-on .map-route-wrap {
  opacity: 0 !important;
  pointer-events: none;
}

.map-canvas.mapbox-failed .map-city {
  opacity: 1 !important;
}

.leaflet-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.map-modern .leaflet-tile-pane {
  filter: none;
}

.map-modern .leaflet-control-attribution {
  margin: 0 8px 88px 0 !important;
  padding: 4px 8px !important;
  border-radius: 10px 10px 0 0 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 9px !important;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55) !important;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
}

.leaflet-pin-marker {
  background: none !important;
  border: none !important;
}

.map-pin {
  position: relative;
  pointer-events: none;
}

.leaflet-overlay-pane path.map-route-shadow {
  filter: blur(4px);
}

.leaflet-overlay-pane path.map-route-main {
  filter: none !important;
}

.leaflet-on .loc-pin,
.leaflet-on .map-vehicle,
.mapbox-on .loc-pin,
.mapbox-on .map-vehicle {
  display: none !important;
}

.leaflet-on .map-controls,
.leaflet-on .map-eta-chip {
  z-index: 20;
}

.leaflet-driver-marker {
  background: none !important;
  border: none !important;
}

.map-driver-pin {
  position: relative;
  width: 48px;
  height: 64px;
  transform: rotate(var(--bearing, 0deg));
  transition: transform 0.22s ease-out;
  will-change: transform;
}

.map-driver-pin img {
  position: relative;
  z-index: 2;
  display: block;
  width: 48px;
  height: 64px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 5px 10px rgba(18, 20, 23, 0.28));
}

.map-driver-pin--sonata img {
  width: 48px;
  height: 72px;
}

.map-driver-tag {
  position: absolute;
  left: 50%;
  bottom: -2px;
  z-index: 3;
  transform: translateX(-50%) rotate(calc(var(--bearing, 0deg) * -1));
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(18, 20, 23, 0.82);
  color: #fff;
  font-family: Cairo, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(18, 20, 23, 0.22);
}

.map-driver-shadow {
  position: absolute;
  left: 50%;
  bottom: 3px;
  z-index: 1;
  width: 30px;
  height: 9px;
  margin-left: -15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(2px);
  transform: rotate(calc(var(--bearing, 0deg) * -1));
}

.map-driver-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 105, 255, 0.22), transparent 68%);
  animation: mapDriverPulse 2.4s ease-in-out infinite;
}

@keyframes mapDriverPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1.06); }
}

/* تك تك — نقطة تفاعلية على الخريطة */
.leaflet-driver-marker--tuk {
  pointer-events: auto;
}

.map-driver-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.map-driver-dot:active .map-driver-dot-core {
  transform: scale(0.92);
}

.map-driver-dot-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.22);
  animation: tukDotPulse 2s ease-out infinite;
}

.map-driver-dot-core {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
  transition: transform 0.15s ease;
}

.map-driver-dot-label {
  position: absolute;
  top: 42px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(18, 20, 23, 0.88);
  color: #fff;
  font-family: Cairo, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(18, 20, 23, 0.2);
  pointer-events: none;
}

@keyframes tukDotPulse {
  0% { transform: scale(0.7); opacity: 0.85; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* OTP login */
.otp-block {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.otp-send {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  background: #f3f6ff;
  color: #1769ff;
  font-weight: 900;
  font-size: 14px;
}

.otp-send:disabled { opacity: 0.5; }

.otp-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #747b86;
  font-weight: 700;
}

.otp-hint.demo-code {
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #c5d9f7;
  color: #475569;
}

.otp-hint.demo-code b {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.otp-hint.demo-code strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #1769ff;
  direction: ltr;
  line-height: 1.1;
}

.otp-hint.demo-code small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.otp-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 90;
  padding: 12px 16px;
  border-radius: 14px;
  background: #121417;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.otp-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Profile edit */
.profile-edit-block {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-edit-field {
  display: grid;
  gap: 6px;
}

.profile-edit-field span {
  font-size: 12px;
  color: #747b86;
  font-weight: 800;
}

.profile-edit-field input {
  height: 48px;
  border: 1px solid #e8eaee;
  border-radius: 14px;
  padding: 0 14px;
  font-weight: 800;
  background: #fff;
}

.profile-save-btn {
  height: 44px;
  border-radius: 14px;
  background: #151719;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

/* Cancel active trip */
.btn-cancel-trip {
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #fff5f5;
  color: #e5484d;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid #ffd6d8;
}
