/* ==========================================================================
   ROYAL LANE VIP - DISPATCH & RESERVATION MANAGEMENT SYSTEM
   Executive Obsidian & 24K Gold Design System (Zero Tables - 100% Responsive)
   ========================================================================== */

:root {
  /* Clean White Executive Dispatch Theme */
  --bg: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-input: #FFFFFF;
  --bg-header: rgba(255, 255, 255, 0.98);

  --gold: #0F172A;
  --gold-light: #334155;
  --gold-glow: rgba(15, 23, 42, 0.06);
  --gold-soft: #F1F5F9;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-gold: #CBD5E1;

  --text-main: #0F172A;
  --text-cream: #1E293B;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --emerald: #059669;
  --emerald-bg: #ECFDF5;
  --emerald-border: #A7F3D0;

  --amber: #D97706;
  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;

  --red: #DC2626;
  --red-bg: #FEF2F2;
  --red-border: #FECACA;

  --blue: #0284C7;
  --blue-bg: #F0F9FF;
  --blue-border: #BAE6FD;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 12px rgba(0, 0, 0, 0.06);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset & Zero Overflow Guarantee */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font: inherit;
  color: var(--text-main);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   TOP BAR (EXECUTIVE OBSIDIAN HEADER)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + var(--safe-top)) 20px 12px;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger Button */
.hamburger-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  border-color: var(--border-gold);
  background: var(--bg-surface-elevated);
}

.hamburger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.hamburger-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Sound Mode Pill */
.sound-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.sound-mode-btn:hover {
  border-color: var(--border-gold);
  color: var(--text-main);
}

/* Topbar Admin Chip */
.topbar-admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 10px 4px 6px;
  border-radius: 24px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
}

.topbar-admin-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}

.topbar-admin-initial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.topbar-admin-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-signout-btn {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.topbar-signout-btn:hover {
  color: var(--red);
  background: var(--red-bg);
}

/* In-app Topbar Connect Gmail Button */
.topbar-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 20px;
  background: #FFFFFF;
  color: #1F2937;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-signin-btn:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.topbar-signin-btn:active {
  transform: translateY(0);
}

.topbar-signin-btn svg,
.google-sign-in-btn svg {
  flex-shrink: 0;
}

/* In-app Drawer Connect Gmail Box */
.drawer-signin-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-signin-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.google-sign-in-btn.small {
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  gap: 8px;
}

/* ==========================================================================
   SIDE NAVIGATION DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  transition: opacity 0.25s ease;
}

.menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-header {
  padding: calc(18px + var(--safe-top)) 20px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
}

.drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.06em;
}

.drawer-subtitle {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.drawer-close-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.drawer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-section-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 16px 4px 6px;
}

.drawer-section-label:first-child {
  margin-top: 4px;
}

.drawer-nav-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.drawer-nav-btn:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.drawer-nav-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  font-weight: 800;
}

.nav-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.nav-badge.danger {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}

.drawer-action-btn,
.drawer-tool-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: all 0.15s ease;
}

.drawer-action-btn:hover,
.drawer-tool-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.drawer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
}

.drawer-stat-item .d-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
}

.drawer-stat-item .d-stat-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.drawer-admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 6px;
}

.drawer-admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}

.drawer-admin-initial {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.drawer-admin-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.drawer-admin-email {
  font-size: 11px;
  color: var(--text-muted);
}

.drawer-signout-btn {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   ALARM & PUSH BANNERS
   ========================================================================== */
.alarm-banner {
  margin: 12px 20px 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: pulseAlarm 2s ease-in-out infinite;
}

@keyframes pulseAlarm {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.45); }
}

.alarm-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red);
}

.alarm-text {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  margin-top: 2px;
}

.push-status-banner {
  margin: 12px 20px 0;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.push-status-banner.blocked {
  background: var(--red-bg);
  border-color: var(--red-border);
}

.push-status-banner.active {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
}

.psb-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.psb-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   DISPATCH TOOLBAR: SEARCH & TABS
   ========================================================================== */
.dispatch-toolbar {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-box-wrap {
  position: relative;
  width: 100%;
}

.search-box-wrap input,
#laSearchInput {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-box-wrap input:focus,
#laSearchInput:focus {
  border-color: var(--gold);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.tabs-control-row {
  width: 100%;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.tab:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.tab.active {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tab-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--amber);
  color: #000;
}

.tab-badge.gray {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ==========================================================================
   METRICS & STATS STRIP
   ========================================================================== */
.stats-strip,
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 4px 20px 14px;
}

@media (max-width: 768px) {
  .stats-strip,
  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 4px 14px 12px;
    gap: 8px;
  }
}

.stat-box,
.stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}

.stat-box:hover,
.stat:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.stat-box.alert {
  border-color: var(--amber-border);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.stat-box.alert .stat-number {
  color: var(--amber);
}

.stat-number,
.stat span {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label,
.stat small {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ==========================================================================
   RESERVATIONS LUXURY CARDS GRID (ZERO TABLES - ZERO OVERFLOW)
   ========================================================================== */
.ride-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  padding: 8px 20px calc(80px + var(--safe-bottom));
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 640px) {
  .ride-list {
    grid-template-columns: 1fr;
    padding: 8px 12px calc(80px + var(--safe-bottom));
    gap: 12px;
  }
}

/* The Luxury Executive Card */
.rl-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.rl-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Top Accent Bar */
.rl-card-accent {
  height: 3px;
  width: 100%;
  background: var(--amber);
}

.rl-card.assigned .rl-card-accent {
  background: var(--emerald);
}

.rl-card.cancelled .rl-card-accent {
  background: var(--red);
}

.rl-card-inner {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* Header: Ref badge + Passenger + Status Pill */
.rl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.rl-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.rl-conf-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  background: #F1F5F9;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.rl-pax-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.rl-pax-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.rl-status-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.rl-status-pill.unassigned {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.rl-status-pill.assigned {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

/* Meta Strip: Date, Time, Vehicle, Fare */
.rl-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
}

.rl-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.rl-gold-time {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
}

.rl-meta-item.fare {
  margin-left: auto;
}

.rl-fare-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Route Card (Clean Timeline With Zero Overflow) */
.rl-route-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.rl-route-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.rl-route-pin {
  font-size: 12px;
  line-height: 1.4;
  flex-shrink: 0;
}

.rl-route-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.rl-route-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.rl-route-tag.gold {
  color: var(--gold);
}

.rl-route-addr {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Notes & Specs Strip */
.rl-notes-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.rl-note-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rl-note-tag.flight {
  color: var(--blue);
  border-color: var(--blue-border);
  background: var(--blue-bg);
}

.rl-note-tag.seats {
  color: var(--emerald);
  border-color: var(--emerald-border);
  background: var(--emerald-bg);
}

.rl-note-tag.notes {
  color: var(--amber);
  border-color: var(--amber-border);
  background: var(--amber-bg);
}

/* Chauffeur Assignment Strip */
.rl-dispatch-box {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.rl-dispatch-box.unassigned {
  border-color: var(--amber-border);
  background: rgba(245, 158, 11, 0.06);
}

.rl-dispatch-box.assigned {
  border-color: var(--emerald-border);
  background: rgba(16, 185, 129, 0.06);
}

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

.rl-dispatch-driver {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.rl-driver-badge-icon {
  font-size: 20px;
  line-height: 1;
}

.rl-driver-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.rl-driver-veh {
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 600;
}

.rl-dispatch-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rl-quick-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.rl-quick-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-gold);
}

.rl-quick-btn.phone {
  color: var(--blue);
  border-color: var(--blue-border);
}

.rl-quick-btn.wa {
  color: var(--emerald);
  border-color: var(--emerald-border);
}

.rl-quick-btn.reassign {
  color: var(--gold);
  border-color: var(--border-gold);
}

.rl-dispatch-unassigned {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.rl-unassigned-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber);
}

.rl-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulseDot 1.5s infinite;
}

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

.rl-btn-assign-hero {
  background: #0284C7;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
  margin-left: auto;
}

.rl-btn-assign-hero:hover {
  background: #0369A1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Card Footer: Passenger Contact & Actions */
.rl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.rl-pax-phone {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.15s;
}

.rl-pax-phone:hover {
  color: var(--blue);
}

.rl-footer-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-btn-details {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  background: #F1F5F9;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}

.rl-btn-details:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.rl-btn-delete {
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  transition: all 0.15s;
}

.rl-btn-delete:hover {
  color: var(--red);
  background: var(--red-bg);
}

/* Empty State */
.rl-empty-state,
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rl-empty-icon {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 4px;
}

.rl-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.rl-empty-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Floating Action Button (+ New Res) */
.la-fab {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  z-index: 45;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.la-fab:hover {
  transform: scale(1.06);
  background: #1E293B;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

/* ==========================================================================
   OTHER MODULES: CORPORATE, DRIVERS, FLEET & SETTLEMENT CARDS
   ========================================================================== */
.section-head {
  padding: 16px 20px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.section-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.company-list,
.driver-list,
.vehicle-list,
.settle-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  padding: 10px 20px calc(80px + var(--safe-bottom));
}

@media (max-width: 640px) {
  .company-list,
  .driver-list,
  .vehicle-list,
  .settle-list {
    grid-template-columns: 1fr;
    padding: 10px 12px calc(80px + var(--safe-bottom));
  }
}

.company-card,
.driver-card,
.vehicle-card,
.settle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
}

.company-card:hover,
.driver-card:hover,
.vehicle-card:hover,
.settle-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

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

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.company-code-badge {
  font-size: 11px;
  font-weight: 800;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 2px 6px;
  border-radius: 4px;
}

.plate-badge {
  font-size: 11.5px;
  font-weight: 800;
  background: #000;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Generic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn.gold {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 800;
}

.btn.gold:hover {
  background: #1E293B;
}

.btn.ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: var(--bg-surface-elevated);
}

.btn.danger {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
}

.btn.danger:hover {
  background: var(--red);
  color: #FFF;
}

.btn.green {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
}

.btn.green:hover {
  background: var(--emerald);
  color: #000;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-inline {
  padding: 8px 14px;
  font-size: 12.5px;
}

.row-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.row-btns .btn {
  flex: 1;
}

/* Status Chips */
.chip {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip.pending {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.chip.confirmed,
.chip.accepted,
.chip.assigned {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.chip.cancelled {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.chip.completed {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tag.gold {
  color: var(--gold);
  font-weight: 700;
}

/* ==========================================================================
   MODALS, DIALOGS & SLIDE-OUT SHEETS (EXECUTIVE DARK GLASSMORPHISM)
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 20px calc(20px + var(--safe-bottom));
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  color: var(--text-main);
  animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 680px) {
  .sheet {
    left: 50%;
    right: auto;
    width: 620px;
    transform: translateX(-50%);
    border-radius: var(--radius-xl);
    bottom: 40px;
    max-height: 85dvh;
    border-bottom: 1px solid var(--border);
  }
}

.sheet.small {
  z-index: 75;
}

@media (min-width: 680px) {
  .sheet.small {
    width: 520px;
  }
}

.grabber {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  margin: 0 auto 16px;
}

.sheet h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sheet form label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 12px 0 4px;
}

.sheet form input,
.sheet form select,
.sheet form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13.5px;
}

.sheet form input:focus,
.sheet form select:focus,
.sheet form textarea:focus {
  border-color: #0F172A;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

/* Detail Sheet Internal Blocks */
.ref {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 12px;
}

.block h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.kv:last-child {
  border-bottom: 0;
}

.kv span:first-child {
  color: var(--text-muted);
}

.kv span:last-child {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.addr-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
}

.addr {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin: 2px 0 8px;
  word-break: break-word;
}

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

.quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s;
}

.quick a svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.quick a:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-gold);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.actions .btn {
  width: 100%;
}

/* Real-time In-App Reservation Alert Modal */
.new-booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 120;
  border: 1px solid var(--border);
}

.new-booking-modal-head {
  background: #F8FAFC;
  color: var(--text-main);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.new-booking-modal-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.new-booking-modal-body {
  padding: 18px;
}

/* Route Bullets (Zero Emojis) */
.rl-route-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.rl-route-bullet.pickup {
  background: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.rl-route-bullet.stop {
  background: #D97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.rl-route-bullet.dropoff {
  background: #DC2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  border: 1px solid #1E293B;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 150;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Admin Google Sign-in Overlay */
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: #F8FAFC;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-auth-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  margin: auto;
}

.admin-auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-logo-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-main);
  text-transform: uppercase;
}

.admin-logo-subtitle {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.admin-auth-badge {
  display: inline-block;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.admin-auth-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.google-sign-in-btn {
  width: 100%;
  background: #FFFFFF;
  color: #1F2937;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.google-sign-in-btn:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.google-sign-in-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  padding: 0 10px;
}

.instant-access-btn {
  width: 100%;
  background: #F1F5F9;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.instant-access-btn:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}

.auth-error-msg {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
  font-size: 12.5px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 18px;
  text-align: left;
}

@media (max-width: 480px) {
  .admin-auth-overlay {
    padding: 16px;
  }
  .admin-auth-card {
    padding: 28px 18px;
    border-radius: 16px;
  }
  .admin-logo-title {
    font-size: 17px;
  }
  .admin-auth-desc {
    font-size: 12px;
  }
  .google-sign-in-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}
