/* ============================================
   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;
}

.logo-pulse {
  animation: pulse 2s infinite;
  margin-bottom: var(--space-lg);
}

.favicon-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
}

.brand-name {
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.brand-icon {
  width: 28px;
  height: 28px;
}

.trademark {
  font-size: 0.5em;
  vertical-align: super;
  opacity: 0.7;
}

.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 pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

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

/* ============================================
   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;
}

/* ============================================
   Portal Header
   ============================================ */
.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: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-sm);
  position: sticky;
  top: 60px;
  z-index: 99;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

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

.tab-label {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ============================================
   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);
}

/* ============================================
   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;
}

/* ============================================
   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;
  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: 48px;
  padding: 0 16px;
  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: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.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: inline-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;
}

.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;
}

.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;
}

.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.in_progress {
  background: #8b5cf6;
  color: white;
}

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

.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-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;
}

.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);
}

.tracking-status-text {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.tracking-eta {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.eta-label {
  color: var(--text-secondary);
}

.eta-value {
  font-weight: 700;
  color: var(--success);
}

.tracking-map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.tracking-map {
  height: 300px;
  background: var(--bg-card);
}

.driver-info-card {
  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-lg);
}

.driver-info-card .driver-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-info-card .driver-avatar {
  font-size: 1.5rem;
}

.driver-info-card .driver-details {
  flex: 1;
}

.driver-info-card .driver-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.driver-info-card .driver-vehicle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.driver-actions {
  display: flex;
  gap: var(--space-sm);
}

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

.btn-text {
  background: var(--info);
  border-color: var(--info);
}

/* ============================================
   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);
  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.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 {
    height: 400px;
  }
}

@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;
}

body.light-theme .driver-info-card {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #1a1a2e;
}

body.light-theme .driver-info-card .driver-photo {
  background: #f3f4f6;
}

body.light-theme .driver-info-card .driver-name {
  color: #1a1a2e;
}

body.light-theme .driver-info-card .driver-vehicle {
  color: #6b7280;
}

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

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 {
  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;
}

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

/* 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);
}
