:root {
  --yellow: #FACC15;
  --yellow-press: #EAB308;
  --black: #0F172A;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-variant: #F1F5F9;
  --text: #0F172A;
  --muted: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --danger: #DC2626;
  --success: #16A34A;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #111827;
  --surface-variant: #1E293B;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.09);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, button {
  font-family: inherit;
  font-size: 16px; /* Prevents iOS Safari auto-zoom */
}

input, textarea {
  user-select: text;
  -webkit-user-select: text;
}

.hidden {
  display: none !important;
}

/* iOS Install Banner */
.ios-install-banner {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 12px;
  right: 12px;
  z-index: 9500;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.ios-install-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
}

.ios-install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.35;
}

.ios-install-text strong {
  color: var(--yellow);
  font-size: 13px;
}

.icon-btn-sm {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  top: calc(var(--safe-top) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.offline-banner {
  position: fixed;
  top: calc(var(--safe-top) + 66px);
  left: 14px;
  right: 14px;
  z-index: 4000;
  background: var(--danger);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.offline-banner strong {
  display: block;
  font-size: 13px;
}

/* Screens */
.screen {
  position: relative;
  width: 100%;
  height: 100dvh;
}

/* Auth Screen */
.auth-screen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 20px) 22px calc(var(--safe-bottom) + 22px);
  background: var(--surface);
  overflow-y: auto;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.brand-pill {
  background: var(--yellow);
  color: var(--black);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.brand-pill strong {
  font-weight: 900;
  letter-spacing: 0.4px;
}

.brand-pill.shadow {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.lang-pill {
  background: var(--surface-variant);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 26px;
  line-height: 1.4;
}

.phone-input-box {
  display: flex;
  align-items: center;
  background: var(--surface-variant);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0 16px;
  height: 56px;
  transition: border-color 0.15s;
}

.phone-input-box:focus-within {
  border-color: var(--yellow);
}

.phone-prefix {
  font-weight: 800;
  font-size: 17px;
  margin-right: 10px;
  color: var(--text);
}

.phone-input-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.field-group input,
.dialog-card input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface-variant);
  color: var(--text);
  outline: none;
}

.field-group input:focus,
.dialog-card input:focus {
  border-color: var(--yellow);
}

.otp-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: 22px !important;
  font-weight: 900;
}

.avatar-Upload-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}

.avatar-picker {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--surface-variant);
  border: 2.5px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  font-size: 36px;
}

.avatar-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-link {
  display: inline-block;
  margin-top: 8px;
  color: #2563EB;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.otp-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
}

.text-btn:disabled {
  color: var(--muted);
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 25px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}

.btn-primary.btn-lg {
  height: 56px;
  border-radius: 28px;
  font-size: 17px;
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-primary:disabled {
  background: var(--surface-variant);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  height: 46px;
  padding: 0 16px;
  border-radius: 23px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-outline {
  flex: 1;
  height: 44px;
  background: var(--surface-variant);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-danger-outline {
  width: 100%;
  height: 46px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--danger);
  border-radius: 23px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.full-w {
  width: 100%;
}

/* Map & Home Screen */
.map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  opacity: 0.65;
}

/* Center Pin */
.center-pin-wrap {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 500;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.center-pin-wrap.lifting {
  transform: translate(-50%, -118%) scale(1.05);
}

.center-pin-bubble {
  background: var(--black);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.center-pin-head {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.center-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--black);
}

.center-pin-stem {
  width: 3px;
  height: 14px;
  background: var(--black);
}

.center-pin-shadow {
  width: 8px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
}

/* Topbar over Map */
.map-topbar {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  left: 16px;
  right: 16px;
  z-index: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

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

.fab-circle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.top-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EF4444;
  border: 1.5px solid var(--surface);
}

/* Floating Row above bottom sheet */
.floating-map-row {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-bottom) + 312px);
  z-index: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

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

.drivers-pill {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9CA3AF;
}

.online-dot.active {
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Bottom Booking Sheet */
.bottom-booking-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 700;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 10px 12px calc(var(--safe-bottom) + 10px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-variant);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.route-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-dot.hollow {
  border: 2.5px solid var(--text);
}

.route-dot.yellow {
  background: var(--yellow);
}

.address-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-text.placeholder {
  color: var(--muted);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  padding: 2px 6px;
  cursor: pointer;
}

/* Tariffs Row */
.tariffs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tariff-card {
  background: var(--surface-variant);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.tariff-card.selected {
  border-color: var(--yellow);
  background: rgba(250, 204, 21, 0.14);
}

.tariff-card img {
  width: 100%;
  height: 36px;
  object-fit: contain;
  margin-bottom: 2px;
}

.tariff-name {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.tariff-price {
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}

/* Payment Row */
.payment-row {
  width: 100%;
  background: var(--surface-variant);
  border: none;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  cursor: pointer;
}

.payment-left, .payment-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.promo-badge {
  background: #DCFCE7;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
}

.chevron {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

/* Booking Action Row */
.booking-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.square-action-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: var(--surface-variant);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.double-bar {
  width: 18px;
  height: 12px;
  border-top: 3.5px solid currentColor;
  border-bottom: 3.5px solid currentColor;
  border-radius: 2px;
}

.options-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.btn-book {
  flex: 1;
  height: 46px;
  border-radius: 23px;
  font-size: 15px;
}

/* Map Picker Overlay */
.map-picker-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-bottom) + 16px);
  z-index: 850;
  background: var(--surface);
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-picker-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-picker-header small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.map-picker-header strong {
  font-size: 14px;
}

/* Active Ride Sheet */
.active-ride-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 8px 16px calc(var(--safe-bottom) + 14px);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-handle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px 0;
  cursor: pointer;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--muted);
  opacity: 0.35;
}

.collapse-chevron {
  position: absolute;
  right: 4px;
  font-size: 12px;
  color: var(--muted);
}

.ride-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ride-status-header h2 {
  margin: 4px 0 2px;
  font-size: 19px;
  font-weight: 900;
}

.status-pill {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.radar-mini {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  animation: radarPulse 2s infinite ease-out;
}

.radar-ring.r2 {
  animation-delay: 1s;
}

.radar-core {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
}

@keyframes radarPulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}

.timer-banner {
  background: var(--surface-variant);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.driver-info-card {
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plate-badge {
  display: inline-block;
  margin-top: 4px;
  background: #fff;
  color: #0F172A;
  border: 1.5px solid #0F172A;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.rating-pill {
  background: var(--surface);
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
}

.ride-route-card {
  background: var(--surface-variant);
  border-radius: 14px;
  padding: 11px 13px;
  margin: 8px 0;
}

.ride-route-line {
  font-size: 13px;
  margin-bottom: 4px;
}

.ride-price-text {
  font-size: 15px;
  font-weight: 900;
}

.ride-comm-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

/* Modals & Full-Height Sheets */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-sheet {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: var(--bg);
}

.sheet-card.full-height {
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 10px) 16px calc(var(--safe-bottom) + 14px);
}

.sheet-card.bottom-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scroll-y {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-card.scroll-y > * {
  flex-shrink: 0;
}

.sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.sheet-topbar h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.pill-action-btn {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Address Search */
.search-inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.search-field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 0 12px;
  height: 48px;
}

.search-field-wrap.active {
  border-color: var(--yellow);
}

.search-field-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 16px;
}

.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.area-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.results-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.result-item strong {
  display: block;
  font-size: 14px;
}

.result-item small {
  color: var(--muted);
  font-size: 12px;
}

/* Ride Options */
.options-car-preview {
  background: var(--surface-variant);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
}

.options-car-preview img {
  height: 76px;
  object-fit: contain;
}

.toggles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-variant);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.toggle-row strong {
  display: block;
  font-size: 14px;
}

.toggle-row small {
  color: var(--muted);
  font-size: 12px;
}

.toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--yellow);
}

/* Dialog Cards */
.dialog-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.center-text {
  text-align: center;
  align-items: center;
}

.circle-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.circle-badge.danger {
  background: rgba(220, 38, 38, 0.14);
}

.muted-text {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.muted-text.sm {
  font-size: 12.5px;
}

.dialog-actions-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialog-actions-row {
  width: 100%;
  display: flex;
  gap: 8px;
}

.dialog-actions-row > * {
  flex: 1;
}

/* Payment Choices */
.pay-options-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-choice-btn {
  width: 100%;
  background: var(--surface-variant);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.pay-choice-btn.active {
  border-color: var(--yellow);
}

.block-sub {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

/* Chat */
.chat-messages-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: var(--yellow);
  color: var(--black);
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble small {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-top: 3px;
}

.quick-replies-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding-top: 6px;
}

.chat-input-bar input {
  flex: 1;
  height: 46px;
  border-radius: 23px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.btn-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--yellow);
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

/* Call Overlay */
.call-actions-row {
  width: 100%;
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn-call-accept, .btn-call-end {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 24px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn-call-accept {
  background: var(--success);
}

.btn-call-end {
  background: var(--danger);
}

/* Review Stars */
.stars-row {
  display: flex;
  gap: 8px;
}

.stars-row button {
  background: none;
  border: none;
  font-size: 34px;
  color: #CBD5E1;
  cursor: pointer;
  padding: 0;
}

.stars-row button.lit {
  color: var(--yellow);
}

/* Profile Menu */
.profile-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  cursor: pointer;
}

.profile-avatar-lg {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-hero-info strong {
  font-size: 17px;
}

.profile-hero-info span {
  font-size: 13px;
  color: var(--muted);
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
}

.menu-row {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

.menu-row:last-child {
  border-bottom: none;
}

.btn-danger-card {
  width: 100%;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: var(--danger);
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 20px;
}

/* Subpage Content Cards */
.subpage-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 28px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-hero {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #fff;
  border-radius: 20px;
  padding: 20px;
}

.wallet-hero small {
  color: #94A3B8;
  font-size: 12px;
}

.wallet-hero h2 {
  margin: 6px 0 14px;
  font-size: 28px;
  color: var(--yellow);
}

.segment-row {
  display: flex;
  gap: 6px;
  background: var(--surface-variant);
  padding: 4px;
  border-radius: 12px;
}

.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.segment-btn.active {
  background: var(--yellow);
  color: var(--black);
}

/* Custom Car Marker on Leaflet */
.car-map-marker {
  transition: transform 0.35s linear;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}

[data-theme="dark"] .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(94%) contrast(90%);
}
[data-theme="dark"] .leaflet-container {
  background: #0F172A;
}
