/* ============================================
   Customer Portal - Mobile-First CSS
   ============================================ */

/* CSS Variables - Theme */
:root {
  /* Colors - Luxury Gold & Black */
  --primary: #c9a227;
  --primary-light: #d4b84a;
  --primary-dark: #a68821;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;
  --gold: #c9a227;
  
  /* Backgrounds */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: #151515;
  --bg-card-hover: #1e1e1e;
  --bg-input: #0f0f0f;
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Borders */
  --border: #333;
  --border-focus: #c9a227;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Safe areas for mobile */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x pan-y;
  color-scheme: dark;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Loading Screen
   ============================================ */
.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.screen.active {
  display: flex;
}

#loadingScreen {
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.loading-content {
  text-align: center;
  animation: fadeIn 0.5s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Splash orb (behind everything) ── */
.splash-orb {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #c9a227, #d4af37, #667eea, #764ba2, #c9a227);
  filter: blur(60px);
  opacity: 0.4;
  animation: orbRotate 4s linear infinite;
}
@keyframes orbRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Logo container with rings ── */
.splash-logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.splash-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: ringPulse 2s ease-out infinite;
}
.splash-ring:nth-child(1) { width: 180px; height: 180px; border-image: linear-gradient(135deg, #c9a227, #d4af37, #f4d03f) 1; animation-delay: 0s; }
.splash-ring:nth-child(2) { width: 220px; height: 220px; border-image: linear-gradient(135deg, #667eea, #764ba2) 1; animation-delay: 0.5s; }
.splash-ring:nth-child(3) { width: 260px; height: 260px; border-image: linear-gradient(135deg, #c9a227, #667eea) 1; animation-delay: 1s; }
@keyframes ringPulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

.logo-pulse {
  width: 160px;
  height: auto;
  position: relative;
  z-index: 2;
}
.favicon-logo {
  width: 160px;
  height: auto;
  max-width: 85vw;
  border-radius: 0;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.5));
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.02); } }

/* ── Shimmer text ── */
.splash-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #c9a227, #d4af37, #f4d03f, #d4af37, #c9a227);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
  margin-bottom: 16px;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ── Bouncing dots ── */
.splash-dots {
  display: flex;
  gap: 8px;
}
.splash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a227;
  animation: dotBounce 1.4s ease-in-out infinite;
}
.splash-dot:nth-child(1) { animation-delay: 0s; }
.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

/* keep loading-spinner for any other uses */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: var(--space-lg) auto 0;
}
.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Booking Overlay + Confirmation
   ============================================ */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.booking-overlay.visible { opacity: 1; pointer-events: auto; }

.booking-overlay .overlay-logo {
  width: 160px;
  height: auto;
  max-width: 70vw;
  position: relative;
  z-index: 2;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.5));
}
.booking-overlay .overlay-spinner { display: none; }
.booking-overlay .overlay-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #c9a227, #d4af37, #f4d03f, #d4af37, #c9a227);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
  margin-bottom: 16px;
  text-align: center;
}

/* Confirmation state */
.booking-overlay .confirmation-content {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.5s ease;
}
.booking-overlay.confirmed .booking-progress { display: none; }
.booking-overlay.confirmed .confirmation-content { display: flex; }

.booking-overlay .confirm-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 3px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  animation: scaleIn 0.4s ease;
}
.booking-overlay .confirm-check svg {
  width: 36px;
  height: 36px;
  stroke: var(--success);
  stroke-width: 3;
  fill: none;
}
@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.booking-overlay .confirm-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.booking-overlay .confirm-number {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.booking-overlay .confirm-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}
.booking-overlay .confirm-btn {
  padding: 12px 32px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.booking-overlay .confirm-btn:hover {
  background: var(--primary-light);
}

/* ============================================
   Auth Screen - Luxury Gold & Black Theme
   ============================================ */
#authScreen {
  justify-content: center;
  align-items: center;
}

.auth-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, #0a0a0a 50%, #0a0a0a 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(25, 25, 45, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 12px;
}

.auth-logo {
  width: auto;
  max-height: 55px;
  height: auto;
  margin-bottom: 8px;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form {
  display: none;
  animation: fadeIn 0.3s ease;
  width: 100%;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
  color: var(--text-primary);
}

/* Form Groups */
.form-group {
  margin-bottom: var(--space-lg);
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  background: var(--bg-input);
  border: 1px solid #333;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

/* Password Input with Toggle */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--gold);
}

.form-description {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Auth Buttons */
.auth-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: var(--space-md);
}

.auth-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--primary-dark));
  color: #000;
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.auth-btn-google {
  background: #fff;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #ddd;
}

.auth-btn-google:hover {
  background: #f8f8f8;
  border-color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-btn-google svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #333;
}

.auth-divider span {
  padding: 0 var(--space-md);
}

.auth-switch {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--text-secondary);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
  border-top: 1px solid #222;
}

.btn-link {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: inherit;
  text-decoration: none;
  padding: 12px 16px;
  margin: -12px -16px;
  font-weight: 500;
  transition: color 0.2s;
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.3);
  touch-action: manipulation;
}

.btn-link:hover,
.btn-link:active {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Form Options Row (Remember Me + Forgot Password) */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: 8px;
}

/* Remember Me Checkbox */
.remember-me-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}

.remember-me-label:hover {
  color: var(--text-color);
}

.remember-me-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color, #6366f1);
  cursor: pointer;
  margin: 0;
}

/* Forgot Password Link */
.forgot-password-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}

.forgot-password-link:hover {
  color: var(--gold);
}

/* Auth Footer */
.auth-footer {
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-footer a {
  color: var(--gold);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Header Brand Row — Company Logo + Powered By + Software Logo
   ============================================ */
.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 6px var(--space-md);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(201, 162, 39, 0.02) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}
.header-brand-logo {
  height: 28px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}
.header-brand-stmt {
  font-size: 10px;
  font-weight: 600;
  color: rgba(201, 162, 39, 0.7);
  font-style: italic;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ============================================
   Floating Hamburger Menu Button
   ============================================ */
.user-menu-dropdown {
  position: fixed;
  top: 58px;
  right: 12px;
  z-index: 300;
}

/* ============================================
   Portal Header (hidden — kept for JS compat)
   ============================================ */
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + var(--safe-top));
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.header-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.header-right {
  display: flex;
  gap: var(--space-sm);
}

/* New Two-Row Header Layout */
.header-top-row {
  width: 100%;
  text-align: center;
  padding: var(--space-sm) 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0.05) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.header-welcome-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #c9a227;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.header-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  width: 100%;
}

.header-logo-small {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.header-customer-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.header-user-menu {
  margin-left: auto;
  padding-right: var(--space-md);
}

/* Role Badge */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
}
.role-badge.account-badge {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(245, 87, 108, 0.4);
}

/* Updated portal header for two-row layout */
.portal-header.two-row-header {
  flex-direction: column;
  padding: 0;
  padding-top: var(--safe-top);
}

.portal-header.two-row-header .header-left,
.portal-header.two-row-header .header-right {
  display: none;
}

/* ============================================
   Welcome Banner
   ============================================ */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

.welcome-greeting {
  font-size: 0.9rem;
  opacity: 0.9;
}

.welcome-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: var(--space-xs);
}

/* ============================================
   Memo Notifications
   ============================================ */
.memo-notifications {
  padding: 0 var(--space-md);
  animation: slideDown 0.3s ease-out;
}

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

.memo-banner {
  animation: fadeIn 0.3s ease-out;
}

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

/* ============================================
   Tab Navigation
   ============================================ */
.tab-nav {
  display: flex;
  background: linear-gradient(180deg, rgba(11, 17, 33, 0.95) 0%, rgba(9, 14, 28, 0.9) 100%);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px 8px;
  padding-top: var(--safe-top);
  position: sticky;
  top: 0;
  z-index: 99;
  justify-content: space-evenly;
  gap: 8px;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(221, 229, 243, 0.84);
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tab-btn:hover {
  color: #f8fbff;
  border-color: rgba(134, 179, 255, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.tab-btn.active {
  color: #ffffff;
  background: linear-gradient(145deg, rgba(40, 103, 255, 0.42), rgba(21, 61, 176, 0.65));
  border-color: rgba(157, 197, 255, 0.85);
  box-shadow: 0 8px 20px rgba(7, 36, 107, 0.42), inset 0 0 0 1px rgba(222, 236, 255, 0.35);
}

.tab-icon {
  font-size: 1.18rem;
  line-height: 1;
}

.tab-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-wrap: balance;
}

/* ============================================
   Tab Content
   ============================================ */
.tab-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--space-xl) + var(--safe-bottom));
}

.tab-panel {
  display: none;
  padding: var(--space-md);
  animation: fadeIn 0.2s ease;
}

.tab-panel.active {
  display: block;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.account-number-badge {
  display: inline-block;
  margin-left: var(--space-md);
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--color-text-secondary, #aaa);
  vertical-align: middle;
  letter-spacing: 0.5px;
}

body.light-theme .account-number-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #555;
}

/* ============================================
   Form Elements
   ============================================ */
.form-section {
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Read-only flight scheduled-arrival display field */
.flight-time-display {
  cursor: not-allowed;
  letter-spacing: 0.5px;
  font-weight: 500;
  background: rgba(148, 163, 184, 0.10);
}
.flight-time-display:focus { outline: none; box-shadow: none; }
.flight-time-display.verified {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
  color: #065f46 !important;
  font-weight: 700 !important;
  border-color: #6ee7b7 !important;
  letter-spacing: 0.5px;
  cursor: default;
}

/* ============================================
   Dark Mode (default) — select/option/dropdown
   Browser dropdowns need explicit bg+color
   ============================================ */
select,
select option,
.form-select option {
  background-color: #1a1a1a;
  color: #f8fafc;
}

select option:checked,
.form-select option:checked {
  background-color: #333;
  color: #f8fafc;
}

select option:hover,
.form-select option:hover {
  background-color: #2a2a2a;
}

/* Dark mode date/time picker overrides */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  color-scheme: dark;
}

/* Number input stepper buttons */
.count-input {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

/* Custom tip input (no .form-input class) */
#customTipAmount {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Input with inline button (verify button) */
.input-with-button {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.input-with-button .form-input {
  flex: 1;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.btn-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  flex-shrink: 0;
  padding: 0 10px;
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-verify:hover {
  background: var(--primary-dark, #1a56db);
}

.btn-verify:active {
  transform: scale(0.95);
}

.btn-verify:disabled {
  background: var(--text-muted);
  border-color: var(--text-muted);
  cursor: not-allowed;
}

.btn-verify.verified {
  background: var(--success, #10b981);
  border-color: var(--success, #10b981);
}

.btn-verify.error {
  background: var(--error, #ef4444);
  border-color: var(--error, #ef4444);
}

.optional-tag {
  font-weight: 400;
  color: var(--text-muted);
}

.password-wrapper {
  position: relative;
}

.btn-show-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Full-width buttons in menus, modals, and action bars */
.menu-item,
.modal .btn,
.modal-footer .btn,
.modal-body .btn,
.account-actions .btn,
.trip-actions .btn {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-large {
  width: 100%;
  padding: var(--space-lg);
  font-size: 1.1rem;
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
}

/* ============================================
   Passenger Selector
   ============================================ */
.passenger-selector {
  display: flex;
  gap: var(--space-sm);
}

.passenger-selector .form-select {
  flex: 1;
}

.passenger-count-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.count-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.count-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.count-input {
  width: 60px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
   Address Selector
   ============================================ */
.address-selector {
  margin-bottom: var(--space-sm);
}

.address-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.address-input-group:not(.hidden) {
  display: flex !important;
}

.address-search-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
}

.address-search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.address-search-wrapper .form-input {
  flex: 1;
  padding-left: 40px;
  min-height: 48px;
}

.address-suggestions {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.address-suggestions.active {
  display: block;
}

.address-suggestion-item {
  padding: var(--space-md);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover {
  background: var(--bg-card-hover);
}

.address-suggestion-item .suggestion-main {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.address-suggestion-item .suggestion-secondary {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.address-suggestion-item .suggestion-type {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 6px;
  background: var(--primary);
  color: white;
  border-radius: 3px;
  margin-right: 6px;
}

.address-input-group .form-input {
  flex: 1;
}

.btn-map {
  flex-shrink: 0;
}

.btn-gps {
  flex-shrink: 0;
  color: #6366f1;
}

.saved-addresses {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* Selected Address Display */
.selected-address-container {
  margin-top: var(--space-sm);
}

.selected-address-display {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

/* Green highlighted card when address is selected - clickable to change */
.selected-address-display.selected-address-green {
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid #10b981;
  cursor: pointer;
  transition: all 0.2s ease;
}

.selected-address-display.selected-address-green:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.selected-address-display .address-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.selected-address-display .address-text-only {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.btn-change-address {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-change-address:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.selected-address-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.selected-address-item .address-icon {
  font-size: 1.25rem;
}

.selected-address-item .address-content {
  flex: 1;
}

.selected-address-item .address-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.selected-address-item .address-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.selected-address-display .clear-selection,
.clear-selection-btn {
  background: none;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.selected-address-display .clear-selection:hover,
.clear-selection-btn:hover {
  background: #fef2f2;
  border-color: var(--danger);
  color: var(--danger);
}

.saved-address-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.saved-address-item:hover {
  border-color: var(--primary);
}

.saved-address-item.selected {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 2px var(--primary);
}

.saved-address-item.collapsed {
  display: none;
}

.saved-address-item.selected::after {
  content: '✓';
  margin-left: auto;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.address-icon {
  font-size: 1.25rem;
}

.address-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.address-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.address-delete {
  color: var(--danger);
  background: none;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  padding: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.6;
  flex-shrink: 0;
  transition: all 0.2s;
}

.address-delete:hover {
  opacity: 1;
  border-color: var(--danger);
  background: #fef2f2;
}

/* Selected address display (shown after selecting from dropdown) */
.selected-address-container {
  margin-top: var(--space-sm);
}

.selected-address-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.selected-address-item .address-content {
  flex: 1;
  min-width: 0;
}

.selected-address-item .address-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #166534;
}

.selected-address-item .address-text {
  font-size: 0.85rem;
  color: #15803d;
  word-wrap: break-word;
}

/* ============================================
   Airport Details
   ============================================ */
.airport-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-sm);
}

.airport-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--info);
}

.airport-icon {
  font-size: 1.25rem;
}

.flight-verification {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.verification-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.verification-status.verified {
  color: var(--success);
}

.verification-status.error {
  color: var(--danger);
}

.flight-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================
   Stops
   ============================================ */
.stops-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.stops-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.no-stops {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.stop-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.stop-number {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warning);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 8px;
}

.stop-address {
  flex: 1;
  font-size: 0.9rem;
}

.stop-address-wrapper {
  flex: 1;
  min-width: 0;
}

.stop-quick-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.stop-address-input {
  width: 100%;
}

.stop-selected-address {
  transition: all 0.2s ease;
}

.stop-selected-address:hover {
  background: rgba(99, 102, 241, 0.15);
}

.stop-label-badge {
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  font-size: 12px;
}

.stop-remove {
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-top: 4px;
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.stop-remove:hover {
  opacity: 1;
}

/* ============================================
   Vehicle Type Selector
   ============================================ */
.vehicle-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.vehicle-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vehicle-type-option:hover {
  border-color: var(--primary-light);
}

.vehicle-type-option.selected {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.vehicle-type-option.locked {
  cursor: default;
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
}

.vehicle-type-option.locked:hover {
  border-color: var(--primary);
}

.vehicle-type-locked-notice {
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 500;
}

.vehicle-icon {
  font-size: 2rem;
}

.vehicle-name {
  font-weight: 600;
  text-align: center;
}

.vehicle-capacity {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   Trip Type Selector (Hourly vs Point-to-Point)
   ============================================ */
.trip-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.trip-type-option {
  display: block;
  cursor: pointer;
}

.trip-type-option input[type="radio"] {
  display: none;
}

.trip-type-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  opacity: 0.6;
}

.trip-type-option input[type="radio"]:checked + .trip-type-content {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  opacity: 1;
}

.trip-type-option:hover .trip-type-content {
  border-color: var(--primary-light);
  opacity: 0.9;
}

.trip-type-icon {
  font-size: 1.75rem;
}

.trip-type-label {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.trip-type-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Hourly Options */
.hourly-options {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-input);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.hourly-options.hidden {
  display: none;
}

.hours-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}

.hours-selector .count-input {
  width: 80px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
   Price Display
   ============================================ */
.price-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.price-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.price-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Booking Buttons
   ============================================ */
.booking-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ============================================
   Trips List
   ============================================ */
.trips-filter {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.filter-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Row that holds the Upcoming/Past/All filter + icon-only view toggle */
.trips-filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.trips-filter-row .trips-filter {
  flex: 1;
  margin-bottom: 0;
}

/* Trips filter dropdown (replaces Upcoming/Past/All buttons) */
.trips-filter-select {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  padding-right: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}
.trips-filter-select:hover,
.trips-filter-select:focus {
  border-color: var(--primary);
  outline: none;
}
body.light-theme .trips-filter-select {
  background-color: #ffffff;
  border-color: #d1d5db;
  color: #1a1a2e;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1a2e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
body.light-theme .trips-filter-select:hover,
body.light-theme .trips-filter-select:focus {
  border-color: var(--primary);
}

/* View toggle (icon-only: Expanded / Collapsed / Calendar) */
.trips-view-toggle {
  display: inline-flex;
  gap: 2px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2px;
  flex-shrink: 0;
}
.trips-view-toggle .view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-md) - 4px);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.12s ease;
  opacity: 0.85;
}
.trips-view-toggle .view-btn:hover { opacity: 1; color: var(--primary); }
.trips-view-toggle .view-btn.active {
  opacity: 1;
  background: var(--bg-hover, rgba(201, 162, 39, 0.15));
  color: var(--primary);
}
.trips-view-toggle .view-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
.trips-view-toggle .view-btn-label {
  display: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.trips-view-toggle .view-btn.active .view-btn-label {
  display: inline;
}

/* Collapsed list rows */
.trips-list.view-collapsed { gap: var(--space-xs); }
.trip-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.trip-row:hover { border-color: var(--primary-light); }
.trip-row-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.trip-row-date .row-date { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.trip-row-date .row-time { font-size: 0.75rem; color: var(--text-secondary); }
.trip-row-main { min-width: 0; }
.trip-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.trip-row-top .row-conf { font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); }
.trip-row-route {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.trip-row-route .row-pax { color: var(--text-primary); font-weight: 500; margin-right: 4px; }
.trip-row-route .row-arrow { opacity: 0.5; }
.trip-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.trip-row-actions .btn { padding: 6px 10px; font-size: 0.85rem; }

/* Calendar view */
.trips-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.cal-month-label { font-weight: 700; font-size: 1.05rem; }
.cal-nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1;
}
.cal-nav-btn:hover { background: var(--bg-hover, rgba(255,255,255,0.05)); }
.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-weekdays { margin-bottom: 4px; }
.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cal-day {
  min-height: 72px;
  padding: 4px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-secondary);
  overflow: hidden;
}
.cal-day-empty { background: transparent; border-color: transparent; }
.cal-day-num { font-weight: 600; color: var(--text-primary); font-size: 0.8rem; margin-bottom: 2px; }
.cal-day.has-trips { cursor: pointer; border-color: var(--primary-light); background: rgba(59, 130, 246, 0.06); }
.cal-day.has-trips:hover { background: rgba(59, 130, 246, 0.14); }
.cal-day.is-today { outline: 2px solid var(--primary); outline-offset: -2px; }
.cal-day.selected { background: rgba(59, 130, 246, 0.22); }
.cal-day-trip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.68rem;
  color: var(--primary);
}
.cal-day-more { font-size: 0.66rem; opacity: 0.75; }
.cal-day-detail {
  margin-top: var(--space-md);
}
.cal-day-detail:empty { display: none; }
.cal-day-detail-header {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .cal-day { min-height: 56px; padding: 3px 4px; }
  .cal-day-trip, .cal-day-more { display: none; }
  .trip-row { grid-template-columns: 60px 1fr; }
  .trip-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

.trips-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.trip-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all 0.2s ease;
}

.trip-card:hover {
  border-color: var(--primary-light);
}

.trip-date {
  font-weight: 600;
}

.trip-time {
  font-size: 1.25rem;
  color: var(--primary-light);
}

.trip-status {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.trip-status.confirmed {
  background: var(--success);
  color: white;
}

.trip-status.pending {
  background: var(--warning);
  color: var(--bg-primary);
}

.trip-status.completed {
  background: var(--secondary);
  color: white;
}

.trip-status.cancelled {
  background: var(--danger);
  color: white;
}

.trip-status.assigned {
  background: #3b82f6;
  color: white;
}

.trip-status.enroute,
.trip-status.on_the_way,
.trip-status.in_progress {
  background: #8b5cf6;
  color: white;
  animation: statusPulse 2s infinite;
}

.trip-status.arrived,
.trip-status.driver_waiting_at_pickup,
.trip-status.driver_circling {
  background: #10b981;
  color: white;
}

.trip-status.waiting,
.trip-status.waiting_at_pickup {
  background: #f59e0b;
  color: white;
}

.trip-status.passenger_onboard,
.trip-status.customer_in_car,
.trip-status.driving_passenger {
  background: #06b6d4;
  color: white;
}

.trip-status.done {
  background: var(--secondary);
  color: white;
}

.trip-status.offered,
.trip-status.accepted {
  background: #6366f1;
  color: white;
}

.trip-active-badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  background: #ef4444;
  color: white;
  animation: statusPulse 1.5s infinite;
  letter-spacing: 0.5px;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.trip-payment-badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 4px;
}

.trip-payment-badge.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.trip-payment-badge.unpaid {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.trip-route {
  margin-bottom: var(--space-md);
}

.route-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.route-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.route-marker.pickup {
  background: var(--success);
  color: white;
}

.route-marker.dropoff {
  background: var(--danger);
  color: white;
}

.route-marker.waypoint {
  background: var(--warning, #f5a623);
  color: white;
}

.route-address {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trip-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Trip Card Enhanced Styles */
.trip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.trip-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trip-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.trip-confirmation {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.trip-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-light);
}

/* Driver Info Section */
.trip-passenger-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.trip-driver-section {
  margin-bottom: var(--space-md);
}

.trip-driver-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trip-driver-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
}

.trip-driver-info .driver-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-light);
}

.trip-driver-info .driver-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-driver-info .driver-initials {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.trip-driver-info .driver-details {
  flex: 1;
  min-width: 0;
}

.trip-driver-info .driver-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.driver-vehicle-type {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 500;
}

.driver-fleet-vehicle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.driver-license-plate {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Vehicle Info (no driver assigned) */
.trip-vehicle-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.vehicle-icon {
  font-size: 1.2rem;
}

.vehicle-type {
  color: var(--text-primary);
  font-weight: 500;
}

.fleet-vehicle {
  color: var(--text-muted);
}

/* ============================================
   Tracking
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

.empty-hint {
  font-size: 0.875rem;
  margin-top: var(--space-sm);
}

.active-tracking {
  animation: fadeIn 0.3s ease;
}

.active-trip-subtabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.active-trip-subtab-btn {
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.75);
  color: #cbd5e1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.active-trip-subtab-btn.active {
  background: rgba(37, 99, 235, 0.35);
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.8);
}

.active-trip-tab-panel {
  display: none;
}

.active-trip-tab-panel.active {
  display: block;
}

#activeTripDetailsPanel {
  padding: 12px;
  max-height: calc(100svh - 130px);
  overflow-y: auto;
}

.tracking-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.status-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 2px solid var(--border);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.status-step.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}

.status-step.complete {
  background: var(--success);
  border-color: var(--success);
}

.status-connector {
  width: 30px;
  height: 2px;
  background: var(--border);
}

/* ============================================
   Full-Screen Tracking Map + Overlays
   ============================================ */

/* When track tab is active, make it fill the screen */
#trackTab.active {
  padding: 0;
  position: relative;
}

.tracking-map-fullscreen {
  position: relative;
  width: 100%;
  height: calc(100svh - 60px); /* svh = Safari-safe viewport height */
  height: calc(100vh - 60px); /* fallback for older browsers */
}

@supports (height: 100svh) {
  .tracking-map-fullscreen {
    height: calc(100svh - 60px);
  }
}

/* Customer blue dot (current location) — legacy, kept for backward compat */
.customer-blue-dot {
  width: 18px;
  height: 18px;
  background: #4285F4;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.3), 0 2px 6px rgba(0,0,0,0.3);
  animation: blueDotPulse 2s ease-in-out infinite;
}

@keyframes blueDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.3), 0 2px 6px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(66, 133, 244, 0.15), 0 2px 6px rgba(0,0,0,0.3); }
}

/* Customer blinking beacon (stick figure, orange/coral) */
.customer-beacon-marker {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-beacon-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.25);
  border: 2px solid rgba(255, 107, 53, 0.6);
  animation: beaconPulse 1.6s ease-out infinite;
}

.customer-beacon-icon {
  position: relative;
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation: beaconBlink 1.6s ease-in-out infinite;
  z-index: 1;
}

@keyframes beaconPulse {
  0%   { transform: scale(0.8); opacity: 0.9; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

@keyframes beaconBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.tracking-map {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
}

#trackTab.inactive-map-mode #activeTracking {
  display: block;
}

#trackTab.inactive-map-mode #mapOverlayTop,
#trackTab.inactive-map-mode #driverInfoCard,
#trackTab.inactive-map-mode #driverDistancePanel {
  display: none !important;
}

#trackTab.inactive-map-mode #noActiveTrip {
  position: absolute;
  top: 16px;
  left: 12px;
  right: 12px;
  z-index: 12;
  margin: 0;
  padding: 12px 14px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

#trackTab.inactive-map-mode #noActiveTrip .empty-icon {
  display: none;
}

#trackTab.inactive-map-mode #noActiveTrip p {
  margin: 0;
}

#trackTab.inactive-map-mode #noActiveTrip .empty-hint {
  margin-top: 4px;
  font-size: 0.82rem;
}

/* --- Top overlay: Status + ETA --- */
.map-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

/* Left block: steps + status consolidated */
.map-overlay-status-block {
  display: inline-flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 10px 16px 12px;
  pointer-events: auto;
}

/* Steps inline (inside consolidated block) */
.map-overlay-steps-inline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 6px;
}

.map-overlay-status {
  display: flex;
  flex-direction: column;
}

.overlay-status-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.overlay-status-text {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

/* Right block: ETA + countdown stacked */
.map-overlay-right {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}

.map-overlay-eta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 20px;
  min-width: 80px;
}

.overlay-eta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.overlay-eta-value {
  font-size: 24px;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
}

/* --- Pickup countdown overlay (now inside right block) --- */
.map-overlay-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 16px;
}

.countdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.countdown-value {
  font-size: 20px;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
}

/* --- Progress steps --- */
.map-overlay-steps {
  /* Legacy class — kept for JS compatibility but layout moved inline */
  display: none;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.step-dot span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.step-dot small {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.step-dot.active,
.step-dot.complete {
  opacity: 1;
}

.step-dot.active span {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.5);
}

.step-dot.complete span {
  background: rgba(22, 163, 74, 0.2);
  color: #16a34a;
}

.step-line {
  width: 12px;
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 2px;
  margin-bottom: 14px; /* align with dot center */
}

/* --- Driver info overlay — bottom --- */
.map-overlay-driver {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 14px 16px;
  z-index: 10;
}

.overlay-driver-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overlay-driver-avatar {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.overlay-driver-details {
  flex: 1;
  min-width: 0;
}

.overlay-driver-name {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-driver-vehicle {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-driver-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.overlay-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s;
}

.overlay-action-btn:active {
  transform: scale(0.92);
}

.overlay-call {
  background: #22c55e;
}

.overlay-text {
  background: #3b82f6;
}

/* --- Mapbox map controls — styled --- */
.tracking-map .mapboxgl-ctrl-bottom-right {
  bottom: 80px; /* clear driver info card */
  right: 4px;
}

.tracking-map .mapboxgl-ctrl-group {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden;
}

.tracking-map .mapboxgl-ctrl-group button {
  background: transparent !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
}

.tracking-map .mapboxgl-ctrl-group button + button {
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.tracking-map .mapboxgl-ctrl-group button:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

.tracking-map .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
  filter: none;
}

.tracking-map .mapboxgl-ctrl-geolocate {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
  width: 36px !important;
  height: 36px !important;
}

.tracking-map .mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon {
  filter: none;
}

.tracking-map .mapboxgl-ctrl-geolocate:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   Account Section
   ============================================ */
.account-section {
  margin-bottom: var(--space-xl);
}

.subsection-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.profile-card {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.saved-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.saved-item-icon {
  font-size: 1.25rem;
}

.saved-item-content {
  flex: 1;
}

.saved-item-name {
  font-weight: 600;
}

.saved-item-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.saved-item-delete {
  color: var(--danger);
  background: none;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.6;
  flex-shrink: 0;
  transition: all 0.2s;
}

.saved-item-delete:hover {
  opacity: 1;
  border-color: var(--danger);
  background: #fef2f2;
}

/* Favorite star button */
.saved-item-favorite,
.address-favorite {
  background: none;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  padding: 6px;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.2s;
  color: #9ca3af;
  flex-shrink: 0;
}

.saved-item-favorite:hover,
.address-favorite:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: #f59e0b;
  color: #f59e0b;
}

.saved-item-favorite.favorite-active,
.address-favorite.favorite-active {
  opacity: 1;
  color: #f59e0b;
  border-color: #f59e0b;
  background: #fef3c7;
}

/* ============================================
   Trip Completed Overlay
   ============================================ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.overlay-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.thank-you-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.thank-you-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--space-md);
}

.thank-you-header h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.tip-section,
.comment-section,
.rating-section {
  margin-bottom: var(--space-lg);
}

.tip-section h3,
.comment-section h3,
.rating-section h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.tip-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tip-btn {
  flex: 1;
  min-width: 60px;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tip-btn:hover {
  border-color: var(--primary-light);
}

.tip-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.custom-tip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.currency {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.star {
  font-size: 2rem;
  cursor: pointer;
  filter: grayscale(1);
  transition: all 0.2s ease;
}

.star:hover,
.star.active {
  filter: grayscale(0);
  transform: scale(1.1);
}

.review-link {
  text-align: center;
  margin: var(--space-xl) 0;
}

.review-link p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.thank-you-footer {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-logo {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
}

.footer-message {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.footer-company {
  color: var(--text-secondary);
}

/* ============================================
   Modals
   ============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-large {
  max-width: 600px;
  max-height: 80vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.1rem;
}

.modal-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

.btn-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: var(--space-md);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}

.modal-footer .btn {
  flex: 1;
}

/* Booking Review Modal */
.booking-review-section {
  margin-bottom: 16px;
}

.booking-review-section:last-child {
  margin-bottom: 0;
}

.booking-review-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 600;
}

.booking-review-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.booking-review-route {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking-review-stop {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.booking-review-stop:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
}

.booking-review-stop:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.booking-review-stop.stop-middle {
  border-radius: 0;
  border-bottom: none;
  background: var(--bg-card-hover);
}

.booking-review-stop .stop-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.booking-review-stop .stop-address {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.booking-review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary)));
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.booking-review-total .total-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.booking-review-total .total-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

/* Map Selection */
.selection-map {
  height: 300px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.selected-address {
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.selected-address .address-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: block;
  margin-bottom: var(--space-xs);
}

/* ============================================
   Preferences
   ============================================ */
.pref-section {
  margin-bottom: var(--space-lg);
}

.pref-section h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.toggle-label span:first-child {
  color: var(--text-primary);
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  position: relative;
  transition: all 0.2s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toggle-label input:checked + .toggle-switch {
  background: var(--primary);
}

.toggle-label input:checked + .toggle-switch::after {
  left: 25px;
  background: white;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
  position: fixed;
  bottom: calc(100px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.info {
  background: #1e40af;
  color: white;
}

.toast.success {
  background: var(--success);
  color: white;
}

.toast.error {
  background: var(--danger);
  color: white;
}

.toast.warning {
  background: var(--warning);
  color: var(--bg-primary);
}

/* ============================================
   Utilities
   ============================================ */
.hidden {
  display: none !important;
}

/* Home address option in dropdown */
.home-address-option {
  font-weight: 500;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.home-address-option.hidden {
  display: none !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .booking-buttons {
    flex-direction: row;
  }
  
  .booking-buttons .btn {
    flex: 1;
  }
  
  .tracking-map-fullscreen {
    height: calc(100svh - 60px);
    height: calc(100vh - 60px);
  }
  @supports (height: 100svh) {
    .tracking-map-fullscreen {
      height: calc(100svh - 60px);
    }
  }
}

@media (max-width: 380px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .tab-label {
    display: none;
  }
  
  .tab-icon {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
}

/* ============================================
   Trip Edit/Cancel Modals
   ============================================ */

.notice-banner {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.notice-banner.warning {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.notice-banner.danger {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notice-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.notice-text strong {
  color: var(--text-primary);
}

.cancel-trip-summary {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
}

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

.summary-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.summary-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.confirm-text {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--text-secondary);
  font-weight: 500;
}

.modal-header.danger-header {
  background: rgba(220, 53, 69, 0.1);
  border-bottom: 1px solid rgba(220, 53, 69, 0.3);
}

.modal-header.danger-header h2 {
  color: #ff6b7a;
}

/* Trip Actions Row */
.trip-actions {
  display: flex;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.trip-actions .btn {
  flex: 1;
  min-width: 80px;
}

.trip-actions .btn-danger {
  background: transparent;
  border: 1px solid var(--error);
  color: var(--error);
}

.trip-actions .btn-danger:hover {
  background: var(--error);
  color: white;
}

.trip-actions .btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.trip-actions .btn-secondary:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

/* ============================================
   Large Text Mode - Enhanced Readability
   Applied globally for better accessibility
   ============================================ */

/* Base font size increase */
html {
  font-size: 18px; /* Base up from 16px */
}

/* Form inputs - larger and more readable */
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  font-size: 1.1rem !important;
  padding: 14px 16px !important;
  min-height: 52px;
}

/* Labels */
.form-label,
label {
  font-size: 1rem !important;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Buttons */
.btn,
button {
  font-size: 1.1rem !important;
  padding: 14px 24px !important;
  min-height: 52px;
}

/* Section titles */
.section-title,
.card-title,
h2 {
  font-size: 1.5rem !important;
}

h3 {
  font-size: 1.25rem !important;
}

/* Body text */
p, span, div {
  font-size: inherit;
}

/* Trip cards */
.trip-card-title {
  font-size: 1.2rem !important;
}

.trip-card-info {
  font-size: 1rem !important;
}

/* Toast messages */
.toast {
  font-size: 1rem !important;
  padding: 16px 20px !important;
}

/* Navigation */
.nav-item {
  font-size: 0.95rem !important;
}

/* Placeholder text */
::placeholder {
  font-size: 1rem !important;
}

/* Address search and autocomplete */
.address-suggestion,
.autocomplete-item {
  font-size: 1rem !important;
  padding: 14px 16px !important;
}

/* Modal content */
.modal-header h2 {
  font-size: 1.4rem !important;
}

.modal-body {
  font-size: 1.05rem !important;
}

/* Error messages */
.form-error,
.error-message {
  font-size: 0.95rem !important;
}

/* Checkbox and radio labels */
.checkbox-label,
.radio-label {
  font-size: 1rem !important;
}

/* Vehicle type cards */
.vehicle-type-name {
  font-size: 1.1rem !important;
}

.vehicle-type-price {
  font-size: 1.2rem !important;
}

/* Passenger and luggage counts */
.passenger-count,
.luggage-count {
  font-size: 1.1rem !important;
}

/* Phone input */
.phone-input {
  font-size: 1.1rem !important;
}

.country-dial-code {
  font-size: 1rem !important;
}

/* ============================================
   Account Tab Styles
   ============================================ */
.account-section {
  background: var(--card-bg, #1a1a2e);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.account-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: var(--accent-color, #d4af37);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.profile-info-card {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 16px;
}

.profile-info-card .form-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: default;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-input {
  width: 50px;
  height: 40px;
  padding: 2px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.color-value {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-secondary, #999);
}

.account-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.account-actions .btn {
  flex: 1;
}

/* ============================================
   Light/Dark Theme Variables
   ============================================ */
:root {
  --accent-color: #d4af37;
}

body.light-theme {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --card-bg: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  color-scheme: light;
}

body.light-theme .portal-container {
  background: var(--bg-primary);
  color: var(--text-primary);
}

body.light-theme .portal-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

body.light-theme .tab-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

body.light-theme .tab-btn {
  color: var(--text-secondary);
}

body.light-theme .tab-btn.active {
  color: var(--accent-color);
}

body.light-theme .tab-content {
  background: var(--bg-primary);
}

body.light-theme .form-section,
body.light-theme .booking-form-container,
body.light-theme .account-section,
body.light-theme .trip-card,
body.light-theme .modal-content {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

body.light-theme .form-input,
body.light-theme .form-select,
body.light-theme .form-textarea {
  background: #f9f9f9;
  color: var(--text-primary);
  border-color: var(--border-color);
}

body.light-theme .form-label {
  color: var(--text-primary);
}

body.light-theme .section-title {
  color: var(--text-primary);
}

body.light-theme .pref-section h4 {
  color: var(--text-primary);
}

body.light-theme .toggle-label span:first-child {
  color: var(--text-primary);
}

/* Light theme for auth screens */
body.light-theme .auth-container {
  background: var(--bg-primary);
}

body.light-theme .auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

body.light-theme .auth-title {
  color: var(--text-primary);
}

body.light-theme .auth-form label {
  color: var(--text-primary);
}

body.light-theme .auth-form input {
  background: #f9f9f9;
  color: var(--text-primary);
  border-color: var(--border-color);
}

body.light-theme .auth-form input::placeholder {
  color: #999;
}

body.light-theme .auth-switch span {
  color: var(--text-secondary);
}

body.light-theme .screen {
  background: var(--bg-primary) !important;
}

body.light-theme .loading-content p {
  color: var(--text-primary) !important;
}

/* ============================================
   Light Theme - Comprehensive Field Coverage
   Ensures ALL fields, hidden or visible, are
   properly styled in light mode
   ============================================ */
body.light-theme input,
body.light-theme select,
body.light-theme textarea,
body.light-theme input[type="text"],
body.light-theme input[type="email"],
body.light-theme input[type="password"],
body.light-theme input[type="tel"],
body.light-theme input[type="number"],
body.light-theme input[type="date"],
body.light-theme input[type="time"],
body.light-theme .count-input {
  background: #f9f9f9 !important;
  color: #1a1a2e !important;
  border-color: #d1d5db !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: #9ca3af !important;
}

body.light-theme .address-selector select,
body.light-theme .passenger-selector select {
  background: #f9f9f9 !important;
  color: #1a1a2e !important;
  border-color: #d1d5db !important;
}

/* ============================================
   Light Theme — select/option/dropdown
   ============================================ */
body.light-theme select,
body.light-theme select option,
body.light-theme .form-select option {
  background-color: #ffffff !important;
  color: #1a1a2e !important;
}

body.light-theme select option:checked,
body.light-theme .form-select option:checked {
  background-color: #e5e7eb !important;
  color: #1a1a2e !important;
}

/* Light mode date/time picker and scrollbar */
body.light-theme input[type="date"],
body.light-theme input[type="time"],
body.light-theme input[type="datetime-local"] {
  color-scheme: light;
}

/* Light mode count-input and custom tip */
body.light-theme .count-input,
body.light-theme #customTipAmount {
  background: #f9f9f9 !important;
  color: #1a1a2e !important;
  border-color: #d1d5db !important;
}

/* Light mode checkboxes and radio buttons */
body.light-theme input[type="checkbox"],
body.light-theme input[type="radio"] {
  accent-color: var(--accent-color, #d4af37);
}

/* Light mode modal inputs and selects */
body.light-theme .modal-content input,
body.light-theme .modal-content select,
body.light-theme .modal-content textarea {
  background: #f9f9f9 !important;
  color: #1a1a2e !important;
  border-color: #d1d5db !important;
}

body.light-theme .modal-content input::placeholder,
body.light-theme .modal-content textarea::placeholder {
  color: #9ca3af !important;
}

/* Light mode autocomplete/autofill */
body.light-theme input:-webkit-autofill,
body.light-theme input:-webkit-autofill:hover,
body.light-theme input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f9f9f9 inset !important;
  -webkit-text-fill-color: #1a1a2e !important;
  caret-color: #1a1a2e !important;
}

/* Light mode form section labels and hints */
body.light-theme .form-group label {
  color: #1a1a2e;
}

body.light-theme .form-hint {
  color: #6b7280;
}

body.light-theme .vehicle-type-option {
  background: #f9f9f9;
  border-color: #d1d5db;
  color: #1a1a2e;
}

body.light-theme .vehicle-type-option.selected {
  background: #e8f5e9;
  border-color: #4caf50;
}

body.light-theme .trip-type-option {
  background: #f9f9f9;
  border-color: #d1d5db;
  color: #1a1a2e;
}

body.light-theme .trip-type-option input:checked + .trip-type-content {
  background: #e8f5e9;
  border-color: #4caf50;
}

body.light-theme .trip-type-desc {
  color: #666;
}

body.light-theme .price-display {
  background: #f0fdf4;
  color: #1a1a2e;
  border-color: #d1d5db;
}

body.light-theme .price-label {
  color: #374151;
}

body.light-theme .price-amount {
  color: #1a1a2e;
}

body.light-theme .price-hint {
  color: #6b7280;
}

body.light-theme .stops-container {
  background: #f9f9f9;
  border-color: #d1d5db;
}

body.light-theme .airport-details {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #1a1a2e;
}

body.light-theme .airport-header {
  color: #0369a1;
}

body.light-theme .count-btn {
  background: #e5e7eb !important;
  color: #1a1a2e !important;
  border-color: #d1d5db !important;
}

body.light-theme .btn-secondary {
  background: #f3f4f6;
  color: #1a1a2e;
  border-color: #d1d5db;
}

body.light-theme .btn-verify {
  background: #e5e7eb;
  color: #1a1a2e;
  border-color: #d1d5db;
}

body.light-theme .form-hint {
  color: #6b7280;
}

body.light-theme .selected-address-container {
  background: #f0fdf4;
  color: #1a1a2e;
  border-color: #86efac;
}

body.light-theme .selected-address-display {
  background: #ffffff;
  border-color: #d1d5db;
}

body.light-theme .selected-address-display.selected-address-green {
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid #10b981;
}

body.light-theme .selected-address-display.selected-address-green:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #059669;
}

body.light-theme .selected-address-display .address-text-only {
  color: #1a1a2e;
}

body.light-theme .btn-change-address {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

body.light-theme .btn-change-address:hover {
  background: #e5e7eb;
  color: #6366f1;
  border-color: #6366f1;
}

body.light-theme .saved-addresses {
  background: #f9f9f9;
  color: #1a1a2e;
}

body.light-theme .saved-address-item,
body.light-theme .selected-address-item {
  background: #ffffff;
  border-color: #d1d5db;
  color: #1a1a2e;
}

body.light-theme .saved-address-item:hover,
body.light-theme .selected-address-item:hover {
  background: #f3f4f6;
  border-color: #6366f1;
}

body.light-theme .address-label {
  color: #1a1a2e;
}

body.light-theme .address-text {
  color: #4b5563;
}

body.light-theme .address-search-wrapper {
  background: #ffffff;
  border-color: #d1d5db;
}

body.light-theme .address-search-wrapper .search-icon {
  color: #6b7280;
}

body.light-theme .optional-flight-section {
  background: rgba(99, 102, 241, 0.06) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

body.light-theme .optional-flight-section span,
body.light-theme .optional-flight-section p {
  color: #4b5563 !important;
}

body.light-theme .filter-btn {
  background: #f3f4f6;
  color: #1a1a2e;
  border-color: #d1d5db;
}

body.light-theme .filter-btn.active {
  background: var(--accent-color);
  color: white;
}

body.light-theme .empty-state {
  color: #6b7280;
}

body.light-theme .luggage-section {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

body.light-theme .luggage-section span[style*="color: #f59e0b"],
body.light-theme .luggage-section span[style*="color: white"] {
  color: #92400e !important;
}

body.light-theme .luggage-btn {
  color: #1a1a2e !important;
}

body.light-theme #meetGreetSection {
  background: rgba(99, 102, 241, 0.06) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

body.light-theme #meetGreetSection span[style*="color: white"],
body.light-theme #meetGreetSection p[style*="color: rgba(255,255,255"] {
  color: #374151 !important;
}

body.light-theme .optional-flight-section {
  background: rgba(99, 102, 241, 0.05) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
}

body.light-theme .optional-flight-section p {
  color: #6b7280 !important;
}

body.light-theme #tripTypeLocked {
  color: #6b7280 !important;
}

body.light-theme .notice-text {
  color: #374151;
}

body.light-theme .modal-content {
  background: #ffffff !important;
  color: #1a1a2e !important;
}

body.light-theme .cancel-trip-summary {
  background: #f3f4f6;
}

body.light-theme .summary-label {
  color: #6b7280;
}

body.light-theme .summary-value {
  color: #1a1a2e;
}

body.light-theme .confirm-text {
  color: #4b5563;
}

body.light-theme .pref-section h4 {
  color: #1a1a2e;
}

body.light-theme .toggle-switch {
  background: #d1d5db;
}

body.light-theme .profile-info-card .form-input {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #1a1a2e !important;
}

body.light-theme .billing-history-item {
  background: #f9f9f9;
  border-color: #e5e7eb;
  color: #1a1a2e;
}

/* ============================================
   Light Theme — Track Tab
   ============================================ */
body.light-theme #trackTab {
  color: #1a1a2e;
}

body.light-theme .tracking-status-bar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

body.light-theme .tracking-status-text {
  color: #1a1a2e;
}

body.light-theme .tracking-eta .eta-label {
  color: #6b7280;
}

body.light-theme .tracking-eta .eta-value {
  color: #059669;
}

body.light-theme .status-step {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

body.light-theme .status-step.active {
  background: var(--accent-color, #d4af37);
  border-color: var(--accent-color, #d4af37);
  color: #ffffff;
}

body.light-theme .status-step.complete {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

body.light-theme .status-connector {
  background: #d1d5db;
}

body.light-theme .tracking-map {
  background: #f3f4f6;
}

/* Light theme map overlays — base styles already use white bg + dark text, no overrides needed */

body.light-theme .empty-state p {
  color: #6b7280;
}

/* ============================================
   My Trips — view toggle + collapsed + calendar
   Theme-aware overrides
   ============================================ */

/* Dark mode explicit (default). White icons / white text. */
.trips-view-toggle .view-btn { color: #f8fafc; opacity: 1; }
.trips-view-toggle .view-btn:hover { color: var(--primary); }
.trips-view-toggle .view-btn.active {
  color: var(--primary);
  background: rgba(201, 162, 39, 0.18);
}
.trips-view-toggle .view-btn svg {
  stroke: currentColor;
  stroke-width: 2.25;
  fill: none;
}

/* Light-theme overrides — force black icons/text */
body.light-theme .trips-view-toggle { border-color: #d1d5db; }
body.light-theme .trips-view-toggle .view-btn { color: #1a1a2e; }
body.light-theme .trips-view-toggle .view-btn:hover { color: var(--primary-dark); }
body.light-theme .trips-view-toggle .view-btn.active {
  color: var(--primary-dark);
  background: rgba(201, 162, 39, 0.22);
}

/* Collapsed row — light theme */
body.light-theme .trip-row {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #1a1a2e;
}
body.light-theme .trip-row-date .row-date,
body.light-theme .trip-row-top .row-conf,
body.light-theme .trip-row-route .row-pax { color: #1a1a2e; }
body.light-theme .trip-row-date .row-time,
body.light-theme .trip-row-route { color: #4b5563; }
body.light-theme .trip-row:hover { border-color: var(--primary); }

/* Calendar — light theme */
body.light-theme .trips-calendar {
  background: #ffffff;
  border-color: #e5e7eb;
}
body.light-theme .cal-month-label { color: #1a1a2e; }
body.light-theme .cal-nav-btn {
  border-color: #d1d5db;
  color: #1a1a2e;
}
body.light-theme .cal-nav-btn:hover { background: #f3f4f6; }
body.light-theme .cal-weekday { color: #4b5563; }
body.light-theme .cal-day {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #4b5563;
}
body.light-theme .cal-day-num { color: #1a1a2e; }
body.light-theme .cal-day.has-trips {
  background: rgba(201, 162, 39, 0.08);
  border-color: var(--primary-light);
}
body.light-theme .cal-day.has-trips:hover { background: rgba(201, 162, 39, 0.18); }
body.light-theme .cal-day-trip { color: var(--primary-dark); }
body.light-theme .cal-day-detail-header { color: #1a1a2e; }


body.light-theme .empty-hint {
  color: #9ca3af;
}

body.light-theme #trackTab .section-title {
  color: #1a1a2e;
}

/* ============================================
   Light Theme — Comprehensive White/Yellow Text Fix
   Override inline styles and remaining CSS that use
   white or yellow text which is unreadable in light mode
   ============================================ */

/* --- Catch-all: override ALL inline color:white / color:#fff / color:#ffffff --- */
/* Excludes: buttons with colored bg, badges, toasts, banners */
body.light-theme [style*="color: white"]:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-verify):not(.trip-status):not(.toast):not(.route-marker):not(.filter-btn):not(.status-notification-banner):not(.user-menu-login-btn),
body.light-theme [style*="color:#fff"]:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-verify):not(.trip-status):not(.toast):not(.route-marker):not(.filter-btn):not(.status-notification-banner):not(.user-menu-login-btn),
body.light-theme [style*="color: #fff"]:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-verify):not(.trip-status):not(.toast):not(.route-marker):not(.filter-btn):not(.status-notification-banner):not(.user-menu-login-btn),
body.light-theme [style*="color:#ffffff"]:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-verify):not(.trip-status):not(.toast):not(.route-marker):not(.filter-btn):not(.status-notification-banner):not(.user-menu-login-btn),
body.light-theme [style*="color: #ffffff"]:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-verify):not(.trip-status):not(.toast):not(.route-marker):not(.filter-btn):not(.status-notification-banner):not(.user-menu-login-btn) {
  color: #1a1a2e !important;
}

/* --- Override inline rgba(255,255,255,...) text --- */
body.light-theme [style*="color: rgba(255"] {
  color: #374151 !important;
}

/* --- Override inline yellow/amber text --- */
body.light-theme [style*="color: yellow"],
body.light-theme [style*="color:yellow"],
body.light-theme [style*="color: #f59e0b"],
body.light-theme [style*="color:#f59e0b"],
body.light-theme [style*="color: #fbbf24"],
body.light-theme [style*="color:#fbbf24"],
body.light-theme [style*="color: #fcd34d"],
body.light-theme [style*="color:#fcd34d"],
body.light-theme [style*="color: #eab308"],
body.light-theme [style*="color:#eab308"] {
  color: #92400e !important;
}

/* --- Loading screen text --- */
body.light-theme #loadingSubtitle {
  color: #1a1a2e !important;
  text-shadow: none !important;
}

/* --- Luggage / Meet & Greet buttons (transparent bg, white text) --- */
body.light-theme .luggage-btn {
  color: #1a1a2e !important;
  border-color: #d1d5db !important;
}

/* --- Price display area --- */
body.light-theme .price-label {
  color: #374151 !important;
}
body.light-theme .price-amount {
  color: #1a1a2e !important;
}
body.light-theme .price-hint {
  color: #6b7280 !important;
}

/* --- Booking review totals --- */
body.light-theme .booking-review-total,
body.light-theme .booking-review-total .total-amount {
  color: #1a1a2e !important;
}

/* --- Trip driver initials on avatar --- */
body.light-theme .trip-driver-info .driver-initials {
  color: white !important; /* Keep white on colored avatar bg */
}

/* --- Yellow status text (unpaid, pending) — darken for readability --- */
body.light-theme .trip-payment-badge.unpaid {
  color: #92400e;
  background: rgba(245, 158, 11, 0.15);
}
body.light-theme .billing-history-item .bh-status.pending {
  color: #92400e;
  background: rgba(245, 158, 11, 0.15);
}

/* --- Favorite star icons (yellow) — darken --- */
body.light-theme .saved-item-favorite:hover,
body.light-theme .address-favorite:hover {
  color: #b45309 !important;
  border-color: #b45309 !important;
}
body.light-theme .saved-item-favorite.favorite-active,
body.light-theme .address-favorite.favorite-active {
  color: #b45309 !important;
  border-color: #b45309 !important;
}

/* --- User Menu (injected <style>) overrides --- */
body.light-theme .hamburger-icon {
  color: #1a1a2e !important;
}
body.light-theme .user-info-brief .user-name {
  color: #1a1a2e !important;
}
body.light-theme .user-name-full {
  color: #1a1a2e !important;
}
body.light-theme .user-email {
  color: #6b7280 !important;
}
body.light-theme .avatar-initials {
  color: white !important; /* Keep white on colored avatar bg */
}
body.light-theme .menu-item {
  width: 100%;
  display: flex;
  color: #1a1a2e !important;
}
body.light-theme .menu-item:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4f46e5 !important;
}
body.light-theme .menu-item:focus {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #4f46e5 !important;
}
body.light-theme .password-modal-header h3 {
  color: #1a1a2e !important;
}
body.light-theme .password-modal-close {
  color: #6b7280 !important;
}
body.light-theme .password-modal-close:hover {
  color: #1a1a2e !important;
}
body.light-theme .password-modal-form label {
  color: #374151 !important;
}
body.light-theme .password-modal-form .form-input {
  background: #f9f9f9 !important;
  border-color: #d1d5db !important;
  color: #1a1a2e !important;
}
body.light-theme .password-modal-actions .btn-secondary {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #1a1a2e !important;
}
body.light-theme .password-modal-header {
  border-bottom-color: #e5e7eb !important;
}

/* --- Chevron / dropdown arrows --- */
body.light-theme .chevron-icon {
  color: #6b7280 !important;
}

/* --- user-menu dropdown panel bg --- */
body.light-theme .user-menu-dropdown {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}
body.light-theme .user-menu-header {
  background: #f9fafb !important;
  border-bottom-color: #e5e7eb !important;
}

/* --- General text-shadow removal in light mode --- */
body.light-theme [style*="text-shadow"] {
  text-shadow: none !important;
}

/* ============================================
   Green / Orange Field Status Highlighting
   Green = filled / selected
   Orange = empty / not yet filled
   ============================================ */
.form-section .form-input.field-filled,
.form-section .form-select.field-filled,
.form-section .form-textarea.field-filled {
  border-color: #86efac !important;
  background: rgba(34, 197, 94, 0.06) !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-section .form-input.field-empty,
.form-section .form-select.field-empty,
.form-section .form-textarea.field-empty {
  border-color: #fb923c !important;
  background: rgba(251, 146, 60, 0.06) !important;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.12);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

body.light-theme .form-section .form-input.field-filled,
body.light-theme .form-section .form-select.field-filled,
body.light-theme .form-section .form-textarea.field-filled {
  background: #f0fdf4 !important;
  border-color: #4ade80 !important;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

body.light-theme .form-section .form-input.field-empty,
body.light-theme .form-section .form-select.field-empty,
body.light-theme .form-section .form-textarea.field-empty {
  background: #fff7ed !important;
  border-color: #fb923c !important;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.15);
}

/* Vehicle type card highlighting */
.vehicle-type-option.field-filled {
  border-color: #4ade80 !important;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
}

/* ============================================
   Billing History Styles (Account Tab)
   ============================================ */
.billing-history-list {
  max-height: 400px;
  overflow-y: auto;
}

.billing-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.billing-history-item .bh-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.billing-history-item .bh-conf {
  font-weight: 600;
  font-size: 0.95rem;
}

.billing-history-item .bh-date {
  font-size: 0.8rem;
  color: var(--text-secondary, #999);
}

.billing-history-item .bh-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
}

.billing-history-item .bh-status.paid {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.billing-history-item .bh-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.billing-history-item .bh-status.late_cancel {
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b7a;
}

.billing-history-item .bh-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.billing-history-item .bh-amount {
  font-weight: 700;
  font-size: 1.05rem;
}

.bh-pay-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 5px 12px;
  background: #c9a227;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.bh-pay-btn:hover { background: #b8941f; }

.bh-view-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 5px 12px;
  background: transparent;
  color: #818cf8;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(129,140,248,0.4);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.bh-view-btn:hover { background: rgba(129,140,248,0.1); }

/* Late Cancel Modal */
.late-cancel-warning {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.late-cancel-warning .lc-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.late-cancel-warning .lc-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ff6b7a;
  margin-bottom: 8px;
}

.late-cancel-warning .lc-message {
  font-size: 0.9rem;
  color: var(--text-secondary, #999);
  line-height: 1.5;
}

/* ============================================
   Trip Summary Overlay
   ============================================ */
.trip-summary-content {
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.trip-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.trip-summary-top h2 {
  margin: 0;
  font-size: 1.3rem;
}

.trip-summary-top .btn-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.ts-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.ts-conf {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ts-date {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.ts-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.ts-section {
  margin-bottom: var(--space-md);
}

.ts-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.ts-driver {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ts-driver-name {
  font-weight: 600;
  color: var(--text-primary);
}

.ts-driver-vehicle,
.ts-driver-plate {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ts-route .route-point {
  margin-bottom: var(--space-xs);
}

.ts-route .route-address {
  font-size: 0.9rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.ts-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--primary-light);
}

.ts-tl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: var(--space-sm);
}

.ts-tl-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ts-tl-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.ts-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.ts-detail {
  display: flex;
  flex-direction: column;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
}

.ts-detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ts-detail-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-light);
}

.ts-fare {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-input);
  border-radius: var(--radius-lg);
}

/* ========== TSA Wait Times Widget ========== */
.tsa-widget {
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(13, 19, 33, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.tsa-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: default;
  user-select: none;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}

.tsa-widget-icon {
  font-size: 18px;
}

.tsa-widget-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.tsa-widget-arrow {
  font-size: 12px;
  color: var(--text-muted, #888);
  transition: transform 0.3s;
}

.tsa-widget-arrow.open {
  transform: rotate(180deg);
}

.tsa-widget-close {
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tsa-widget-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.7);
}

.tsa-widget-body {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tsa-terminal {
  margin-bottom: 12px;
}

.tsa-terminal:last-child {
  margin-bottom: 0;
}

.tsa-terminal-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tsa-checkpoint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.tsa-checkpoint.green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.tsa-checkpoint.yellow {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.25);
}

.tsa-checkpoint.red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.tsa-checkpoint.closed {
  background: rgba(107, 114, 128, 0.08);
  border-color: rgba(107, 114, 128, 0.2);
}

.tsa-cp-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsa-cp-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tsa-checkpoint.closed .tsa-cp-initial {
  background: rgba(107, 114, 128, 0.3);
  color: #888;
}

.tsa-cp-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.tsa-cp-status {
  font-size: 12px;
  color: #aaa;
}

.tsa-cp-wait {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tsa-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tsa-dot.green { background: #22c55e; }
.tsa-dot.yellow { background: #eab308; }
.tsa-dot.red { background: #ef4444; }
.tsa-dot.closed { background: #6b7280; }

.tsa-dot:not(.closed) {
  animation: tsaPulse 2s infinite;
}

@keyframes tsaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.tsa-wait-text {
  font-size: 13px;
  font-weight: 700;
}

.tsa-wait-text.green { color: #22c55e; }
.tsa-wait-text.yellow { color: #eab308; }
.tsa-wait-text.red { color: #ef4444; }
.tsa-wait-text.closed { color: #6b7280; }

.tsa-widget-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tsa-timestamp {
  font-size: 11px;
  color: var(--text-muted, #888);
}

.tsa-source-link {
  font-size: 11px;
  color: var(--primary-light, #6366f1);
  text-decoration: none;
}

.tsa-source-link:hover {
  text-decoration: underline;
}

.tsa-loading {
  text-align: center;
  color: var(--text-muted, #999);
  font-size: 13px;
  padding: 16px;
}

.tsa-error {
  text-align: center;
  color: var(--text-muted, #999);
  font-size: 12px;
  padding: 12px;
}

/* ============================================
   Light Theme — Tip / Gratuity request buttons
   (Thank-you overlay). In dark mode the buttons
   use --bg-card (#151515) which becomes unreadable
   black boxes in light mode. Provide a soft light
   gradient + dark text so the buttons are legible.
   ============================================ */
body.light-theme .tip-section h3 {
  color: #1a1a2e;
}

body.light-theme .tip-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%) !important;
  border: 1px solid #d1d5db !important;
  color: #1a1a2e !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.light-theme .tip-btn:hover {
  background: linear-gradient(135deg, #fafbfc 0%, #e5e7eb 100%) !important;
  border-color: var(--accent-color, #d4af37) !important;
  color: #1a1a2e !important;
}

body.light-theme .tip-btn.active {
  background: linear-gradient(135deg, #f6e6a8 0%, #d4af37 100%) !important;
  border-color: #b8941f !important;
  color: #1a1a2e !important;
  font-weight: 600;
}

body.light-theme .custom-tip {
  color: #1a1a2e;
}

body.light-theme .custom-tip .currency {
  color: #374151;
}

body.light-theme #customTipAmount {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
  color: #1a1a2e !important;
  border: 1px solid #d1d5db !important;
}

body.light-theme #customTipAmount::placeholder {
  color: #9ca3af !important;
}
