:root {
  --bg: #0b0f14;
  --panel: rgba(12, 18, 28, 0.92);
  --card: rgba(12, 18, 28, 0.78);
  --card2: #0f1823;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 215, 0, 0.12);
  --primary: #3b82f6;
  --danger: #ef4444;
  --success: #22c55e;
  --gold: #ffd700;
  --gold2: #ffc400;
  --gold1: #ffd700;
  --goldGlow: rgba(255, 215, 0, 0.18);
  --goldLine: rgba(255, 215, 0, 0.2);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --r: 18px;
  --btnRadius: 16px;
}

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

html,
body {
  height: 100%;
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255, 215, 0, 0.05), transparent 40%),
    linear-gradient(180deg, #050607, #0b0f14, #07090c);
  background-attachment: fixed;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.04), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.03), transparent 60%);
  mix-blend-mode: overlay;
  opacity: 0.22;
}

.app-shell,
.map-layout,
.panel,
.panel-body,
.map-area {
  max-width: 100%;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent !important;
  padding-top: 60px;
}

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

.app-ready {
  display: flex !important;
}

/* =========================
   Topbar
========================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(34, 197, 94, 0.65));
  box-shadow: var(--shadow);
  font-weight: 800;
}

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-title,
.modal-title,
.panel-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffd700, #ffc400, #fff1a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.brand-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.panel-title {
  font-size: 16px;
  padding-bottom: 6px;
}

.panel-title::after,
.modal-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, #ffd700, transparent);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-actions::-webkit-scrollbar {
  display: none;
}

.top-actions .btn {
  height: 34px;
  padding: 0 10px;
  min-width: max-content !important;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 13px;
  flex: 0 0 auto;
}

.top-actions-menu {
  flex: 0 0 auto;
  overflow: visible;
}

.pill-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.spacer {
  height: 24px;
  flex: 0 0 24px;
}

#toastRoot {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 21000;
  pointer-events: none;
}

#toastRoot .toast {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 10px;
  pointer-events: auto;
}

/* =========================
   Auth Pages
========================= */

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-shell .auth-container {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 12px 20px;
}

.auth-shell .card,
.auth-shell .card-lite {
  width: min(520px, calc(100vw - 18px));
  max-width: calc(100vw - 18px);
  margin: 0 auto;
}

.auth-shell .card {
  padding: 14px 12px;
}

.auth-shell .form {
  gap: 10px;
}

.auth-shell .form-row {
  gap: 6px;
}

.auth-shell .input,
.auth-shell input,
.auth-shell select {
  height: 44px;
  line-height: 44px;
  font-size: 14px;
}

.auth-shell .btn.primary,
.auth-shell button[type="submit"] {
  height: 46px;
}

.auth-shell .vehicle-grid {
  gap: 8px;
  padding: 2px 0 6px;
}

.auth-shell .vehicle {
  flex: 0 0 96px;
  min-width: 96px;
  padding: 8px 6px;
  gap: 6px;
}

.auth-shell .vehicle-thumb {
  height: 56px;
}

.auth-shell .vehicle .nm {
  font-size: 11px;
}

.segmented {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.12);
}

.seg-btn {
  flex: 1;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.seg-btn.active {
  background: linear-gradient(180deg, #ffd700, #ffb300);
  color: #111;
  border-color: #ffd700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.14);
  color: #fff;
  font-weight: 700;
}

/* =========================
   Layout / Map
========================= */

.map-layout {
  min-height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.map-area {
  position: relative;
  z-index: 1;
  flex: 0 0 36vh;
  min-height: 210px;
  max-width: 100%;
  overflow: hidden;
}

.map,
#map {
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
}

.leaflet-container {
  background: #0b0f14;
}

.leaflet-top,
.leaflet-bottom {
  z-index: 400 !important;
}

.map-fabs {
  position: absolute;
  right: 12px;
  bottom: 80px;
  left: auto;
  top: auto;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 22, 32, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  position: relative;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  margin-top: -14px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid rgba(255, 215, 0, 0.22);
  background: linear-gradient(180deg, rgba(10, 16, 26, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
}

.panel::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
  pointer-events: none;
}

.panel-head {
  padding: 16px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.panel-body {
  width: 100%;
  max-width: 100%;
  padding: 14px 10px 18px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* =========================
   Cards / Text / Form
========================= */

.panel,
.card,
.card-lite {
  color: rgba(255, 255, 255, 0.92);
}

.panel p,
.card p,
.card-lite p,
.panel .muted,
.card .muted,
.card-lite .muted,
.panel small,
.card small,
.card-lite small {
  color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
}

.muted.small b {
  color: #d35400; /* لون مميز */
}

.card,
.card-lite {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(255, 215, 0, 0.06), transparent 55%),
    linear-gradient(160deg, rgba(18, 26, 40, 0.84), rgba(10, 14, 20, 0.92));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.52);
}

.card {
  padding: 16px 10px;
}

.card-lite {
  padding: 14px 12px;
}

.card::after,
.card-lite::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 0, 0.1),
    inset 0 0 22px rgba(255, 215, 0, 0.05);
  pointer-events: none;
}

.form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.label-inline {
  color: var(--muted);
  font-size: 12px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
  min-height: 16px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

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

.divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

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

.input,
input,
select,
textarea {
  background: linear-gradient(145deg, rgba(14, 22, 34, 0.95), rgba(8, 14, 22, 0.95));
  border: 1px solid rgba(255, 215, 0, 0.18);
  color: #fff;
  border-radius: 16px;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.input,
input,
select {
  height: 48px;
  line-height: 48px;
  padding: 0 14px;
  font-size: 15px;
}

textarea,
textarea.input {
  padding: 10px 12px;
  height: auto;
  min-height: 92px;
}

.select-wrap {
  position: relative;
  width: 100%;
  margin: 0;
}

.select-wrap::after {
  content: "⌄";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  pointer-events: none;
  line-height: 1;
}

.select-wrap select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 14px 0 40px !important;

  direction: rtl !important;
  text-align: right !important;
  text-align-last: right !important;

  font-size: 15px !important;
  color: #fff !important;

  border-radius: 16px !important;
  border: 1px solid rgba(255, 215, 0, 0.18) !important;
  box-sizing: border-box !important;

  background: linear-gradient(145deg, rgba(14, 22, 34, 0.95), rgba(8, 14, 22, 0.95)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.35) !important;

  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.select-wrap select::-ms-expand {
  display: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow:
    0 0 0 3px rgba(255, 215, 0, 0.14),
    0 14px 30px rgba(0, 0, 0, 0.45);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.input-group .input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

/* =========================
   Buttons
========================= */

.btn {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 215, 0, 0.22);
  background: linear-gradient(180deg, rgba(18, 26, 40, 0.88), rgba(10, 14, 20, 0.92));
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn:active {
  transform: scale(0.98);
}

.btn.small {
  height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 13px;
}

.btn.primary {
  background: linear-gradient(180deg, #ffd700, #ffb300);
  color: #111;
}

.btn.success {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(16, 40, 26, 0.92));
  border-color: rgba(34, 197, 94, 0.35);
}

.btn.danger {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.26), rgba(40, 14, 16, 0.92));
  border-color: rgba(239, 68, 68, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 215, 0, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.3);
  box-shadow: none;
}

.btn.search-btn,
.search-btn {
  width: 44px;
  height: 44px;
  min-width: 42px;
  padding: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn.map-btn,
.map-btn {
  min-width: 70px;
  font-size: 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.price {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 4px;
  color: #ffd700;
}

.slider,
input[type="range"] {
  width: 100%;
  height: 28px;
  margin-top: 6px;
  accent-color: var(--gold);
}

/* =========================
   Search Results / List
========================= */

.search-results {
  position: relative;
  margin-top: 8px;
  border: 1px solid rgba(255, 215, 0, 0.18) !important;
  background: rgba(8, 12, 20, 0.96) !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  z-index: 50;
}

.search-results.hidden {
  display: none !important;
}

.search-item {
  width: 100%;
  text-align: right;
  color: #fff !important;
  background: transparent;
  border: 0;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.list-item,
.ride-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-item {
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.55);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
}

.list-item.active {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.toast {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(18, 28, 40, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  z-index: 2000;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* =========================
   Vehicle Cards
========================= */

.vehicle-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  width: 100%;
  max-width: 100%;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.vehicle-grid::-webkit-scrollbar {
  height: 8px;
}

.vehicle-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.vehicle {
  flex: 0 0 130px;
  min-width: 130px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vehicle-thumb {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.vehicle-img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.vehicle .nm {
  font-size: 13px;
  color: #ccc;
}

.vehicle.active .nm {
  color: #fff;
  font-weight: 600;
}

.vehicle.active .vehicle-img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* =========================
   Modal / Bottom Sheets
========================= */

.modal.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
}

.modal > .modal-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
  padding: 0;
}

.modal-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  background: rgba(18, 24, 33, 0.98);
  z-index: 2;
}

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

.stars {
  display: flex;
  gap: 10px;
  font-size: 28px;
  direction: ltr;
}

.star {
  cursor: pointer;
  opacity: 0.45;
  user-select: none;
}

.star.active {
  opacity: 1;
}

#rateModal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.58);
}

#rateModal.show {
  display: flex;
}

#rateModal .modal {
  position: relative;
  inset: auto;
  width: min(560px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: 85vh;
  overflow: auto;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  background: rgba(18, 24, 33, 0.98);
}

.history-sheet,
.chat-sheet {
  position: fixed;
  left: 50%;
  top: auto;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 22px 22px 0 0;
  padding: 16px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.history-sheet {
  width: min(720px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: 78vh;
  overflow: auto;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(255, 215, 0, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(16, 22, 32, 0.98), rgba(10, 14, 20, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.18);
}

.history-item {
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

#driverHistoryList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-sheet {
  width: min(760px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(59, 130, 246, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(16, 22, 32, 0.98), rgba(10, 14, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chat-sheet .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 4px 2px;
}

.chat-msg {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 15px;
  word-break: break-word;
}

.chat-msg.mine {
  align-self: flex-end;
  background: #22c55e;
  color: #fff;
  border-bottom-left-radius: 6px;
}

.chat-msg.other {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat-compose {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 20, 0.98);
  position: relative;
  z-index: 2;
}

.chat-compose .input {
  height: 46px;
  min-width: 0;
  width: 100%;
}

.chat-compose .btn {
  height: 46px;
  min-width: 92px;
}

.chat-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 10px;
}

.chat-text {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.8;
}

.chat-name {
  font-weight: 600;
}

.chat-time {
  opacity: 0.7;
  font-size: 11px;
  white-space: nowrap;
}

#chatClosePassenger,
#chatCloseDriver {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* =========================
   Drawer
========================= */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 12, 0.55), rgba(2, 6, 12, 0.72));
  backdrop-filter: blur(8px) saturate(120%);
  z-index: 1200;
  opacity: 1;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100vh;
  background:
    radial-gradient(1200px 340px at 20% 0%, rgba(255, 215, 0, 0.08), transparent 56%),
    radial-gradient(700px 260px at 100% 20%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(16, 22, 32, 0.94), rgba(8, 12, 20, 0.98));
  border-left: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow:
    -24px 0 48px rgba(0, 0, 0, 0.52),
    inset 1px 0 0 rgba(255, 255, 255, 0.04);
  z-index: 1300;
  transform: translateX(108%);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  backdrop-filter: blur(16px) saturate(120%);
  overflow-y: auto;
}

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

.drawer-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.drawer-title {
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, #ffd700, #ffc400, #fff1a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-sub {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
}

.drawer-close {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.drawer-item {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 18px;
  text-align: right;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.drawer-item.danger {
  background: linear-gradient(180deg, rgba(120, 18, 28, 0.72), rgba(70, 12, 18, 0.92));
  border-color: rgba(239, 68, 68, 0.34);
}

.menu-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(255, 215, 0, 0.08);
  backdrop-filter: blur(10px);
}

/* =========================
   Profile / Wallet
========================= */

.profile-card {
  background: linear-gradient(145deg, #0f172a, #020617);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 16px;
}

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

.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.profile-name {
  font-size: 16px;
  font-weight: bold;
}

.profile-sub {
  font-size: 12px;
  color: var(--muted);
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  gap: 10px;
}

.profile-stat {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-stat .n {
  display: block;
  font-weight: bold;
  font-size: 14px;
}

.profile-stat .t {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.profile-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.wallet-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
}

.wallet-box .label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.wallet-box .value {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
}

#passengerWalletInfo,
#passengerAccountInfo,
#driverAccountInfo,
#driverWalletStatsModal {
  width: 100%;
}

.card,
.card-lite,
.modal-card,
.profile-card {
  overflow: visible;
}

#driverWalletStatsModal.wallet-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* =========================
   Map markers
========================= */

.gps-marker,
.car-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gps-dot {
  width: 22px;
  height: 22px;
  background: #ffd700;
  border-radius: 50%;
  position: relative;
  border: 3px solid #000;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(255, 215, 0, 0.9);
}

.gps-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: rgba(255, 215, 0, 0.45);
  border-radius: 50%;
  animation: gpsPulse 1.6s infinite;
}

@keyframes gpsPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  70% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.car-marker {
  width: 34px;
  height: 34px;
  border-radius: 18px;
  background: rgba(10, 14, 20, 0.9);
  border: 2px solid rgba(255, 215, 0, 0.85);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(255, 215, 0, 0.1);
  transform-origin: 50% 50%;
}

.car-marker::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.14);
  animation: carPulse 1.6s infinite;
  z-index: -1;
}

.car-marker svg {
  width: 18px;
  height: 18px;
  display: block;
}

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

.searching-ride-card {
  position: relative;
  overflow: visible;
  border-radius: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin: 0;
}

/* ============ الرادار ============ */
.searching-radar {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.searching-radar .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.7);
  animation: radarPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.searching-radar .ring:nth-child(1) { animation-delay: 0s; }
.searching-radar .ring:nth-child(2) { animation-delay: 1s; }
.searching-radar .ring:nth-child(3) { animation-delay: 2s; }

.searching-radar .outer-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 165px;
  height: 165px;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 175, 55, 0.35);
  animation: spinSlow 20s linear infinite;
}

.searching-radar .center-dot {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD700 0%, #D4AF37 45%, #8B6914 100%);
  box-shadow:
    0 0 25px rgba(212, 175, 55, 0.85),
    0 0 50px rgba(212, 175, 55, 0.4),
    0 0 80px rgba(212, 175, 55, 0.15);
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: centerGlow 2s ease-in-out infinite;
}

.searching-radar .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 1);
  transform-origin: 0 0;
  animation: dotOrbit 4.5s ease-in-out infinite;
}

.searching-radar .dot:nth-child(5) { animation-delay: 0s; }
.searching-radar .dot:nth-child(6) { animation-delay: 0.9s; }
.searching-radar .dot:nth-child(7) { animation-delay: 1.8s; }
.searching-radar .dot:nth-child(8) { animation-delay: 2.7s; }
.searching-radar .dot:nth-child(9) { animation-delay: 3.6s; }

/* ============ العنوان ============ */
.searching-title {
  font-size: 19px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.searching-sub {
  font-size: 12.5px;
  color: #a0a0a0;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 22px;
  padding: 0 8px;
}

/* ============ الشرائح ============ */
.searching-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.search-stat {
  background: rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.search-stat .n {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.search-stat .t {
  display: block;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

/* ============ شريط التقدم ============ */
.searching-progress {
  width: 100%;
  height: 4px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.searching-progress span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #D4AF37, #FFD700, #D4AF37, transparent);
  border-radius: 999px;
  animation: progressSlide 1.5s ease-out infinite;
}

/* ============ ملخص الرحلة ============ */
.searching-summary {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.08);
}

.searching-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  color: #d0d0d0;
}

.searching-row .muted {
  color: #888;
  font-size: 12px;
}

.searching-row b {
  color: #FFD700;
  font-weight: 600;
  text-align: left;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searching-note {
  font-size: 11.5px;
  color: #777;
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(212, 175, 55, 0.12);
}

/* ============ الأنيميشنات ============ */
@keyframes radarPulse {
  0% {
    width: 70px;
    height: 70px;
    opacity: 1;
    border-width: 2px;
  }
  100% {
    width: 220px;
    height: 220px;
    opacity: 0;
    border-width: 1px;
  }
}

@keyframes spinSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes centerGlow {
  0%, 100% {
    box-shadow:
      0 0 25px rgba(212, 175, 55, 0.85),
      0 0 50px rgba(212, 175, 55, 0.4),
      0 0 80px rgba(212, 175, 55, 0.15);
  }
  50% {
    box-shadow:
      0 0 35px rgba(212, 175, 55, 1),
      0 0 70px rgba(212, 175, 55, 0.6),
      0 0 100px rgba(212, 175, 55, 0.3);
  }
}

@keyframes dotOrbit {
  0% {
    transform: rotate(0deg) translateX(88px) scale(0.3);
    opacity: 0;
  }
  50% {
    transform: rotate(180deg) translateX(88px) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) translateX(88px) scale(0.3);
    opacity: 0;
  }
}

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

@media (max-width: 640px) {
  .history-sheet,
  .chat-sheet {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
  }

  .chat-sheet {
    height: 78vh;
    padding: 12px;
    border-radius: 20px 20px 0 0;
  }

  .chat-msg {
    max-width: 88%;
    font-size: 14px;
  }

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

  .searching-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell .auth-container {
    align-items: flex-start;
    padding-top: 14px;
  }

  .auth-shell .vehicle {
    flex: 0 0 100px;
    min-width: 100px;
  }

  .auth-shell .vehicle-thumb {
    height: 62px;
  }
}

@media (max-width: 520px) {
  .grid2 {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel,
  .card,
  .card-lite {
    backdrop-filter: none !important;
  }

  .topbar {
    height: 54px;
    padding: 8px 8px;
    gap: 6px;
  }

  .brand-title,
  .brand-sub {
    max-width: 120px;
  }

  .user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .map-area {
    flex: 0 0 30vh;
    min-height: 180px;
  }

  .panel-head {
    padding: 10px 12px 8px;
    align-items: flex-start;
  }

  .panel-body {
    padding: 8px 8px 12px;
  }

  .map-fabs {
    right: 10px;
    bottom: 80px;
  }

  .btn.map-btn,
  .map-btn {
    min-width: 64px;
    height: 40px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 14px;
  }

  .btn.search-btn,
  .search-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .side-drawer {
    width: min(330px, 90vw);
    padding: 16px 12px 14px;
  }

  .menu-btn {
    width: 42px;
    height: 42px;
    font-size: 22px;
    border-radius: 14px;
  }

  .drawer-title {
    font-size: 20px;
  }

  .drawer-item {
    min-height: 52px;
    font-size: 15px;
    border-radius: 16px;
  }

  .drawer-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
  }

  .pill-status {
    font-size: 11px;
    min-height: 34px;
    padding: 0 10px;
  }

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

  .wallet-box .value {
    font-size: 24px;
  }

  #driverWalletStatsModal.wallet-cards {
    grid-template-columns: 1fr;
  }

  .auth-shell .auth-container {
    padding: 12px 10px 18px;
  }

  .auth-shell .card,
  .auth-shell .card-lite {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .auth-shell .card {
    padding: 14px 10px;
  }

  .auth-shell .segmented {
    gap: 6px;
    padding: 5px;
  }

  .auth-shell .seg-btn,
  .auth-shell #resetPasswordBtn {
    min-height: 40px;
    font-size: 13px;
  }

  .auth-shell .vehicle-grid {
    gap: 8px;
  }

  .auth-shell .vehicle {
    flex: 0 0 92px;
    min-width: 92px;
    padding: 8px 6px;
  }

  .auth-shell .vehicle-thumb {
    height: 56px;
  }

  .auth-shell .vehicle .nm {
    font-size: 11px;
  }
}

/* =========================
   FIX: Driver page actions layout
========================= */

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

.panel .actions .btn {
  min-width: 0;
  width: 100%;
}

/* لو كان السطر فيه زر واحد فقط يمتد بعرض السطر */
.panel .actions .btn:only-child {
  grid-column: 1 / -1;
}

/* =========================
   FIX: Auth page top area spacing/alignment
========================= */

.auth-shell .topbar {
  min-height: 56px;
  height: 56px;
  padding: 8px 10px;
}

.auth-shell .top-actions {
  flex: 0 0 auto;
  min-width: auto;
  overflow: visible;
  gap: 6px;
}

.auth-shell .brand {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-shell .auth-container {
  align-items: flex-start;
  padding-top: 14px;
}

.auth-shell .card {
  margin-top: 10px;
}

.auth-shell .segmented {
  flex-wrap: wrap;
}

.auth-shell .segmented > * {
  min-width: 0;
}

.auth-shell #resetPasswordBtn {
  width: 100%;
}

/* =========================
   FIX: Auth form fields balance
========================= */

.auth-shell .grid2 {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-shell .form-row {
  width: 100%;
}

.auth-shell input,
.auth-shell select,
.auth-shell .input {
  width: 100%;
}

/* =========================
   Mobile tuning
========================= */

@media (max-width: 640px) {
  .panel .actions {
    grid-template-columns: 1fr 1fr;
  }

  .auth-shell .topbar {
    min-height: 62px;
  }

  .auth-shell .auth-container {
    padding-top: 12px;
  }
}

@media (max-width: 520px) {
  .panel .actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .panel .actions .btn {
    min-width: 0 !important;
    font-size: 14px;
    padding: 0 10px;
  }

  .auth-shell .topbar {
    align-items: center;
    min-height: 60px;
    padding: 8px;
  }

  .auth-shell .brand-title {
    max-width: 90px;
  }

  .auth-shell .brand-sub {
    max-width: 90px;
  }

  .auth-shell .top-actions {
    gap: 4px;
  }

  .auth-shell .badge {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .auth-shell .segmented {
    gap: 6px;
  }

  .auth-shell .seg-btn {
    min-height: 40px;
    font-size: 13px;
  }

  .auth-shell #resetPasswordBtn {
    min-height: 40px;
    font-size: 13px;
  }

  .auth-shell .grid2 {
    grid-template-columns: 1fr;
  }
}

.auth-shell #passengerExtras,
.auth-shell #passengerExtrasLogin,
.auth-shell #driverExtras,
.auth-shell #driverExtrasLogin {
  padding: 0 !important;
  overflow: visible !important;
}

.auth-shell #passengerExtras .grid2,
.auth-shell #passengerExtrasLogin .grid2,
.auth-shell #driverExtras .grid2,
.auth-shell #driverExtrasLogin .grid2 {
  width: 100%;
  margin: 10px 0 0 0 !important;
  gap: 10px;
}

.auth-shell #passengerExtras .form-row,
.auth-shell #passengerExtrasLogin .form-row,
.auth-shell #driverExtras .form-row,
.auth-shell #driverExtrasLogin .form-row {
  width: 100%;
  margin: 0;
  padding: 0;
}

.auth-shell #passengerExtras .select-wrap,
.auth-shell #passengerExtrasLogin .select-wrap,
.auth-shell #driverExtras .select-wrap,
.auth-shell #driverExtrasLogin .select-wrap {
  width: 100%;
  margin: 0;
}
/* FIX AUTH INNER CARDS */
.auth-shell .card {
  overflow: visible !important;
}

.auth-shell #passengerExtras,
.auth-shell #passengerExtrasLogin,
.auth-shell #driverExtras,
.auth-shell #driverExtrasLogin {
  width: calc(100% - 6px) !important;
  margin: 8px auto 0 !important;
  padding: 14px 12px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.auth-shell #passengerExtras::after,
.auth-shell #passengerExtrasLogin::after,
.auth-shell #driverExtras::after,
.auth-shell #driverExtrasLogin::after {
  inset: 0 !important;
  border-radius: 20px !important;
}

.auth-shell #passengerExtras .grid2,
.auth-shell #passengerExtrasLogin .grid2,
.auth-shell #driverExtras .grid2,
.auth-shell #driverExtrasLogin .grid2 {
  width: 100% !important;
  margin: 10px 0 0 0 !important;
  gap: 10px !important;
}

.auth-shell #passengerExtras .form-row,
.auth-shell #passengerExtrasLogin .form-row,
.auth-shell #driverExtras .form-row,
.auth-shell #driverExtrasLogin .form-row {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.auth-shell #passengerExtras .select-wrap,
.auth-shell #passengerExtrasLogin .select-wrap,
.auth-shell #driverExtras .select-wrap,
.auth-shell #driverExtrasLogin .select-wrap {
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 520px) {
  .auth-shell #passengerExtras,
  .auth-shell #passengerExtrasLogin,
  .auth-shell #driverExtras,
  .auth-shell #driverExtrasLogin {
    width: calc(100% - 4px) !important;
    padding: 12px 10px !important;
  }
}

#btnRequest,
.request-btn {
  background: linear-gradient(180deg, #ffd700, #ffb300) !important;
  color: #111 !important;
  border: 1px solid rgba(255, 215, 0, 0.45) !important;
  box-shadow:
    0 10px 28px rgba(255, 215, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

#btnRequest:hover,
.request-btn:hover {
  filter: brightness(1.03);
}

#btnRequest:active,
.request-btn:active {
  transform: scale(0.98);
}

#btnRequest:disabled,
.request-btn:disabled {
  opacity: 0.55;
  box-shadow: none !important;
}

/* إزالة الإطار الذهبي من كارت "حالة الطلب" */
.ride-status-card {
  border: none !important;
  background: #050607 !important;
  box-shadow: none !important;
}

.ride-status-card::after {
  display: none !important;
}

/* ========== Custom Alert Modal ========== */
.custom-alert {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.custom-alert.hidden {
  display: none !important;
}

.custom-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.custom-alert-card {
  position: relative;
  z-index: 1;
  width: min(420px, 90vw);
  background: linear-gradient(160deg, #1a1814 0%, #0E0D08 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 26px 20px 20px;
  text-align: center;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(212, 175, 55, 0.12);
  animation: alertPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes alertPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.custom-alert-icon {
  font-size: 44px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.custom-alert-message {
  color: #fff;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
  font-weight: 500;
}

.custom-alert-card .btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  border-radius: 16px;
}

/* ========== Custom Select Bottom Sheet ========== */
.custom-select-sheet {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.custom-select-sheet.hidden { display: none !important; }

.custom-select-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.custom-select-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100vw);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: #000000;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  animation: sheetUp 0.25s ease-out;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.custom-select-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  flex: 0 0 auto;
  background: #000000;   /* ← ← ← السطر الجديد */
}
.custom-select-title {
  color: #FFD700;
  font-size: 16px;
  font-weight: 700;
}
.custom-select-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-select-options {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px 0 20px;
  background: #000000;   /* ← ← ← السطر الجديد */
}
.custom-select-option {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: inherit;
}
.custom-select-option:active {
  background: rgba(212, 175, 55, 0.1);
}
.custom-select-option.active {
  color: #FFD700;
  background: rgba(212, 175, 55, 0.08);
}
.custom-select-option.active::after {
  content: "✓";
  color: #FFD700;
  font-weight: 700;
}

/* ==========================================
   🎨 Driver Professional Ride UI
   ========================================== */

.ride-status-card {
  border: none !important;
  background: #0E0D08 !important;
  box-shadow: none !important;
}
.ride-status-card::after {
  display: none !important;
}

/* شارة الحالة */
.drv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid transparent;
  font-family: inherit;
}
.drv-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.drv-badge-new {
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  border-color: rgba(34, 197, 94, 0.3);
}
.drv-badge-offered {
  background: rgba(168, 85, 247, 0.12);
  color: #C084FC;
  border-color: rgba(168, 85, 247, 0.3);
}
.drv-badge-accepted {
  background: rgba(212, 175, 55, 0.12);
  color: #FFD700;
  border-color: rgba(212, 175, 55, 0.3);
}
.drv-badge-arrived {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.3);
}
.drv-badge-started {
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  border-color: rgba(34, 197, 94, 0.3);
}
.drv-badge-done {
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  border-color: rgba(255, 255, 255, 0.08);
}

/* شبكة السعر والمسافة */
.drv-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.drv-meta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
}
.drv-meta-value {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #FFD700;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.drv-meta-label {
  display: block;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.5px;
}

/* تفاصيل المسار */
.drv-route {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drv-route-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #d0d0d0;
  line-height: 1.5;
}
.drv-route-icon {
  flex-shrink: 0;
  font-size: 15px;
}
.drv-route-row > span:last-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* بيانات الراكب */
.drv-passenger {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.drv-passenger.hidden { display: none !important; }
.drv-passenger-title {
  color: #22C55E;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.drv-passenger-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #d0d0d0;
  padding: 3px 0;
}
.drv-passenger-row b { color: #fff; font-weight: 600; }

/* حقل اقتراح السعر */
.drv-offer-wrap {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drv-offer-wrap.hidden { display: none !important; }
.drv-offer-wrap .input {
  height: 50px;
  font-size: 17px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

/* الزر الأساسي */
.drv-primary-btn {
  width: 100%;
  height: 62px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(180deg, #FFD700 0%, #D4AF37 100%);
  color: #0E0D08;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  box-shadow:
    0 10px 28px rgba(212, 175, 55, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.12s ease;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.drv-primary-btn:active { transform: scale(0.97); }
.drv-primary-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}
.drv-primary-btn.drv-blue {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
  box-shadow:
    0 10px 28px rgba(59, 130, 246, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.drv-primary-btn.drv-green {
  background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
  color: #fff;
  box-shadow:
    0 10px 28px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* الأزرار الثانوية */
.drv-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.drv-secondary-btn {
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  transition: background 0.12s ease;
}
.drv-secondary-btn:active { background: rgba(255, 255, 255, 0.1); }
.drv-secondary-btn.drv-danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.06);
}
.drv-secondary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* الأزرار القديمة المخفية */
.drv-hidden-actions {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================
   🎨 Professional Rides List
   ========================================== */

.drv-ride-item {
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.drv-ride-item:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.05);
}

.drv-ride-item.active {
  border-color: rgba(212, 175, 55, 0.55);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 2px rgba(212, 175, 55, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Header */
.drv-ride-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.drv-ride-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

.drv-ride-badge.new {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  border-color: rgba(34, 197, 94, 0.25);
}

.drv-ride-badge.mine {
  background: rgba(212, 175, 55, 0.1);
  color: #FFD700;
  border-color: rgba(212, 175, 55, 0.3);
}

.drv-ride-price {
  font-size: 20px;
  font-weight: 900;
  color: #FFD700;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Meta chips */
.drv-ride-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.drv-ride-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ccc;
  font-size: 11px;
  font-weight: 600;
}

.drv-ride-chip.gold {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
  color: #FFD700;
}

/* ==========================================
   Route - Premium Style
   ========================================== */

.drv-ride-route {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  border-top: 1px dashed rgba(212, 175, 55, 0.12);
  margin-top: 4px;
}

.drv-ride-route-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.drv-ride-route-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 32px;
}

.drv-ride-route-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.drv-ride-route-dot.green {
  background: #22C55E;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.15),
    0 0 10px rgba(34, 197, 94, 0.6);
}

.drv-ride-route-dot.red {
  background: #EF4444;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.15),
    0 0 10px rgba(239, 68, 68, 0.6);
}

.drv-ride-route-label {
  font-size: 10px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.5px;
}

.drv-ride-route-text {
  flex: 1;
  font-size: 12.5px;
  color: #e0e0e0;
  line-height: 1.5;
  padding-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.drv-ride-route-row.pickup .drv-ride-route-text {
  color: #d0d0d0;
}

.drv-ride-route-row.dropoff .drv-ride-route-text {
  color: #fff;
  font-weight: 600;
}

/* خط رأسي يربط بين النقطتين */
.drv-ride-route-line {
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg,
    rgba(34, 197, 94, 0.5) 0%,
    rgba(212, 175, 55, 0.3) 50%,
    rgba(239, 68, 68, 0.5) 100%
  );
  margin-right: 5px;
  margin-top: -2px;
  margin-bottom: -2px;
  border-radius: 2px;
}
