/* ═══════════════════════════════════════════════════════════
   YGZTUR — Premium Gold & Teal Design System
   ═══════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  /* Colors — Gold & Teal */
  --bg-primary: #080c14;
  --bg-secondary: #0f1520;
  --bg-card: rgba(15, 21, 32, 0.85);
  --bg-card-hover: rgba(20, 30, 48, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #d4a44c;

  /* Accent — Gold */
  --gold: #d4a44c;
  --gold-light: #e8c777;
  --gold-dark: #b8862c;
  --teal: #2ec4b6;
  --teal-light: #45d9cb;
  --teal-dark: #1a9e91;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #d4a44c, #e8c777);
  --gradient-success: linear-gradient(135deg, #2ec4b6, #45d9cb);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-danger: linear-gradient(135deg, #ef4444, #f87171);
  --gradient-info: linear-gradient(135deg, #3b82f6, #60a5fa);
  --gradient-hero: linear-gradient(135deg, #d4a44c 0%, #e8c777 40%, #2ec4b6 100%);
  --gradient-dark-gold: linear-gradient(135deg, rgba(212, 164, 76, 0.15) 0%, rgba(46, 196, 182, 0.08) 100%);

  /* Text */
  --text-primary: #f1f1f1;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #e8c777;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 99rem;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(212, 164, 76, 0.2);
  --shadow-glow-teal: 0 0 30px rgba(46, 196, 182, 0.2);

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(212, 164, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(46, 196, 182, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212, 164, 76, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(212, 164, 76, 0.12);
  padding: 0 var(--space-lg);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.navbar-brand span {
  font-size: 1.5rem;
  -webkit-text-fill-color: initial;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.navbar-nav a,
.navbar-nav button {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav button:hover,
.navbar-nav a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.navbar-nav a.active {
  color: var(--text-accent);
}

.nav-user-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(212, 164, 76, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-accent);
  border: 1px solid rgba(212, 164, 76, 0.2);
}

.nav-user-badge .role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(212, 164, 76, 0.12);
    gap: var(--space-xs);
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-nav a,
  .navbar-nav button {
    width: 100%;
    text-align: left;
    padding: var(--space-md);
  }
}

/* ─── Main Content ─── */
#app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  min-height: calc(100vh - 64px);
}

/* ─── Page Transitions ─── */
.page-enter {
  animation: pageIn 0.4s ease forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Cards (Glassmorphism) ─── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(212, 164, 76, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(212, 164, 76, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(212, 164, 76, 0.5);
}

.btn-success {
  background: var(--gradient-success);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.5);
}

.btn-warning {
  background: var(--gradient-warning);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--gradient-danger);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-accent);
  border: 1px solid rgba(212, 164, 76, 0.3);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(212, 164, 76, 0.08);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: var(--space-lg);
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 164, 76, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

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

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

/* ─── Tables ─── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  background: rgba(212, 164, 76, 0.08);
  color: var(--text-accent);
  font-weight: 600;
  text-align: left;
  padding: var(--space-md);
  white-space: nowrap;
  border-bottom: 1px solid rgba(212, 164, 76, 0.15);
}

.table td {
  padding: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tr:hover td {
  background: rgba(212, 164, 76, 0.03);
  color: var(--text-primary);
}

/* ─── Status Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-confirmed {
  background: rgba(46, 196, 182, 0.15);
  color: #45d9cb;
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.badge-assigned {
  background: rgba(212, 164, 76, 0.15);
  color: #e8c777;
  border: 1px solid rgba(212, 164, 76, 0.3);
}

.badge-in_progress {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-lg);
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(212, 164, 76, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.25s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

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

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

/* ─── Toast Notifications ─── */
.toast-container {
  position: fixed;
  top: 80px;
  right: var(--space-lg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.35s ease;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
}

.toast-success {
  border-left: 3px solid #2ec4b6;
}

.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-info {
  border-left: 3px solid #d4a44c;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Hero / Landing ─── */
.hero {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}

/* ─── Section Titles ─── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title .icon {
  font-size: 1.3rem;
}

/* ─── Vehicle Cards ─── */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.vehicle-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.vehicle-card:hover {
  border-color: rgba(212, 164, 76, 0.3);
  transform: translateY(-2px);
}

.vehicle-card.selected {
  border-color: var(--gold);
  background: rgba(212, 164, 76, 0.08);
  box-shadow: var(--shadow-glow);
}

.vehicle-card .vehicle-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.vehicle-card .vehicle-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.vehicle-card .vehicle-specs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.vehicle-card .vehicle-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vehicle-card .vehicle-price small {
  font-size: 0.8rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
}

/* ─── Stat Cards ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.purple {
  background: rgba(212, 164, 76, 0.12);
}

.stat-icon.green {
  background: rgba(46, 196, 182, 0.12);
}

.stat-icon.blue {
  background: rgba(59, 130, 246, 0.12);
}

.stat-icon.orange {
  background: rgba(245, 158, 11, 0.12);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Trip Cards (Driver Panel) ─── */
.trip-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.trip-card:hover {
  border-color: rgba(212, 164, 76, 0.2);
}

.trip-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.trip-route {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 1rem;
}

.trip-route .arrow {
  color: var(--text-accent);
}

.trip-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

.trip-detail {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.trip-detail .detail-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

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

.trip-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #45d9cb;
}

@media (max-width: 576px) {
  .trip-details {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Premium Redesign
   ═══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.auth-wrapper {
  width: 100%;
  max-width: 460px;
  position: relative;
}

/* Decorative glowing orbs behind login */
.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 164, 76, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

/* Brand header in auth */
.auth-brand {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.auth-brand-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-dark-gold);
  border: 2px solid rgba(212, 164, 76, 0.2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 32px rgba(212, 164, 76, 0.15);
  animation: float 4s ease-in-out infinite;
}

.auth-brand h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.auth-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Auth card */
.auth-card {
  background: rgba(15, 21, 32, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 164, 76, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
}

.auth-card:hover {
  transform: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(212, 164, 76, 0.15);
}

.auth-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.auth-card-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: var(--space-xl);
}

/* Auth form inputs enhanced */
.auth-card .form-control {
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.auth-card .form-control:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(212, 164, 76, 0.1);
}

.auth-card .form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.auth-card .btn-primary {
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.5px;
}

/* Features list on auth page */
.auth-features {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(212, 164, 76, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-footer a:hover {
  color: var(--gold-light);
}

/* Old auth container fallback */
.auth-container {
  max-width: 420px;
  margin: var(--space-2xl) auto;
}

.auth-container .card {
  padding: var(--space-xl);
}

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

/* ─── Price Info Box ─── */
.price-summary {
  background: rgba(212, 164, 76, 0.06);
  border: 1px solid rgba(212, 164, 76, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.price-row.total {
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-row .price-value {
  font-weight: 600;
  color: var(--text-accent);
}

/* ─── Route Info ─── */
.route-info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(46, 196, 182, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(46, 196, 182, 0.15);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.route-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
}

.route-info-item .icon {
  font-size: 1.2rem;
}

.route-info-item .value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--text-accent);
  border-bottom-color: var(--gold);
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.pagination button {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--text-primary);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .page-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Loading Spinner ─── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

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

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  flex-direction: column;
  gap: var(--space-md);
  color: var(--text-muted);
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ─── Payment Section ─── */
.payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover {
  border-color: rgba(212, 164, 76, 0.3);
}

.payment-option.selected {
  border-color: var(--gold);
  background: rgba(212, 164, 76, 0.06);
}

.payment-option input[type="radio"] {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
}

.payment-option-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.payment-option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Step Indicator ─── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

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

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition);
}

.step.active .step-number {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #1a1a1a;
}

.step.done .step-number {
  background: var(--gradient-success);
  border-color: transparent;
  color: #1a1a1a;
}

.step-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: none;
}

.step.active .step-label {
  color: var(--text-primary);
}

@media (min-width: 577px) {
  .step-label {
    display: block;
  }
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border-color);
}

.step-line.done {
  background: var(--gradient-success);
}

/* ─── Utility Classes ─── */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-accent {
  color: var(--text-accent);
}

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

.text-success {
  color: #45d9cb;
}

.text-danger {
  color: #f87171;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

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

.mb-lg {
  margin-bottom: var(--space-lg);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.justify-between {
  justify-content: space-between;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}