/* ═══════════════════════════════════════════════════════════════
   RIDE — Premium Dark UI Design System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --primary:        #0A0909;
  --bg-dark:        #08080A;
  --bg-medium:      #1C1C1C;
  --bg-card:        #2F2F2F;
  --accent:         #FF5E00;
  --accent-hover:   #cc4a00;
  --accent-glow:    rgba(255,94,0,.25);
  --text-primary:   #FFFFFF;
  --text-secondary: #AAAAAA;
  --border:         rgba(255,255,255,.08);
  --glass-bg:       rgba(255,255,255,.04);
  --glass-border:   rgba(255,255,255,.10);
  --danger:         #ff4d6d;
  --success:        #00c97a;
  --warning:        #ffb703;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --shadow-card:    0 4px 30px rgba(0,0,0,.5);
  --shadow-glow:    0 0 20px var(--accent-glow);
  --transition:     all .25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-primary); }
p { color: var(--text-secondary); line-height: 1.65; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* ── Navbar ─────────────────────────────────────────────────── */
.ride-navbar {
  background: rgba(8,8,10,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: .75rem 0;
}

.navbar-brand .brand-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}
.navbar-brand .brand-dot { color: var(--accent); }

.ride-navbar .nav-link {
  color: var(--text-secondary) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .8rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.ride-navbar .nav-link:hover,
.ride-navbar .nav-link.active {
  color: var(--text-primary) !important;
  background: var(--glass-bg);
}
.ride-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.navbar-toggler {
  border: 1px solid var(--border) !important;
  padding: .35rem .55rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.75)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* User Avatar Dropdown */
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  cursor: pointer;
}
.dropdown-menu-dark-custom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  min-width: 200px;
  padding: .5rem;
}
.dropdown-menu-dark-custom .dropdown-item {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  padding: .55rem .9rem;
  transition: var(--transition);
}
.dropdown-menu-dark-custom .dropdown-item:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}
.dropdown-menu-dark-custom .dropdown-divider { border-color: var(--border); }

/* ── Mobile Bottom Nav ──────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,9,9,.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: .5rem 0 .75rem;
  z-index: 999;
}
.bottom-nav .nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav .bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: .65rem;
  font-weight: 500;
  text-decoration: none;
  padding: .3rem .6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-width: 56px;
}
.bottom-nav .bnav-item i { font-size: 1.25rem; }
.bottom-nav .bnav-item:hover,
.bottom-nav .bnav-item.active {
  color: var(--accent);
}
.bottom-nav .bnav-item.bnav-create {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: .5rem 1rem;
  margin-top: -16px;
  box-shadow: var(--shadow-glow);
}
.bottom-nav .bnav-item.bnav-create:hover {
  background: var(--accent-hover);
  color: #fff;
}

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 75px; }
  .ride-navbar .navbar-collapse { display: none !important; }
  .ride-navbar .navbar-toggler { display: none !important; }
}

/* ── Page Wrapper ────────────────────────────────────────────── */
.page-wrapper {
  padding: 2rem 0 3rem;
  min-height: calc(100vh - 64px);
}

/* ── Cards ───────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.glass-card:hover { border-color: rgba(255,94,0,.2); }

.dark-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.dark-card:hover {
  border-color: rgba(255,94,0,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}

/* ── Ride Card ───────────────────────────────────────────────── */
.ride-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ride-card:hover {
  border-color: rgba(255,94,0,.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,94,0,.1);
}
.ride-card-header {
  padding: 1.25rem 1.25rem .75rem;
  border-bottom: 1px solid var(--border);
}
.ride-card-body { padding: 1.25rem; flex: 1; }
.ride-card-footer {
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.2);
}

.ride-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ride-route {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-secondary);
}
.ride-route .route-from,
.ride-route .route-to { font-weight: 600; color: var(--text-primary); }
.ride-route .route-arrow { color: var(--accent); font-size: .75rem; }

.ride-meta {
  display: flex;
  gap: 1rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.ride-meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--text-secondary);
}
.ride-meta-item i { color: var(--accent); font-size: .85rem; }

/* ── Badges ──────────────────────────────────────────────────── */
.ride-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .7rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-adventure { background: rgba(255,107,53,.15); color: #ff6b35; border: 1px solid rgba(255,107,53,.3); }
.badge-highway   { background: rgba(0,178,255,.15);  color: #00B2FF; border: 1px solid rgba(0,178,255,.3); }
.badge-city      { background: rgba(148,103,189,.15); color: #9467bd; border: 1px solid rgba(148,103,189,.3); }
.badge-offroad   { background: rgba(0,201,122,.15);   color: #00c97a; border: 1px solid rgba(0,201,122,.3); }
.badge-default   { background: rgba(170,170,170,.1);  color: #aaa;    border: 1px solid rgba(170,170,170,.2); }

/* Spots indicator */
.spots-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: .5rem;
}
.spots-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .5s ease;
}
.spots-bar-fill.full { background: var(--danger); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: .6rem 1.4rem;
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-accent:active { transform: translateY(0); }

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: .58rem 1.4rem;
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .58rem 1.2rem;
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--glass-border);
}

.btn-danger-soft {
  background: rgba(255,77,109,.1);
  color: var(--danger);
  border: 1px solid rgba(255,77,109,.25);
  border-radius: var(--radius-md);
  padding: .55rem 1.2rem;
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-danger-soft:hover {
  background: rgba(255,77,109,.2);
  border-color: rgba(255,77,109,.4);
}

/* ── Form Controls ───────────────────────────────────────────── */
.form-label {
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: .45rem;
  text-transform: uppercase;
}
.form-control, .form-select {
  background: rgba(255,255,255,.04) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: .65rem 1rem !important;
  font-size: .9rem;
  transition: var(--transition) !important;
}
.form-control:focus, .form-select:focus {
  background: rgba(255,94,0,.05) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  color: var(--text-primary) !important;
  outline: none !important;
}
.form-control::placeholder { color: #555 !important; }
.form-select option { background: var(--bg-card); color: var(--text-primary); }
.form-text { color: var(--text-secondary) !important; font-size: .78rem; }
.invalid-feedback { font-size: .78rem; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Input with icon */
.input-group-text {
  background: rgba(255,255,255,.04) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-secondary) !important;
  border-right: none !important;
}
.input-group .form-control { border-left: none !important; }
.input-group-text i { color: var(--accent); }

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,94,0,.08) 0%, transparent 70%);
  pointer-events: none;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,94,0,.05) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo .logo-text {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-primary);
}
.auth-logo .logo-dot { color: var(--accent); }
.auth-logo p { color: var(--text-secondary); font-size: .85rem; margin-top: .25rem; }
.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.auth-subtitle { color: var(--text-secondary); font-size: .85rem; margin-bottom: 1.75rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
}
.auth-divider span { color: var(--text-secondary); font-size: .8rem; white-space: nowrap; }
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Dashboard Stats ─────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: var(--transition);
}
.stat-card:hover { border-color: rgba(255,94,0,.3); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,94,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: .9rem;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
}

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-bar .form-control,
.filter-bar .form-select {
  flex: 1;
  min-width: 150px;
}

/* ── Section Title ───────────────────────────────────────────── */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Multi-step Form ─────────────────────────────────────────── */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  position: relative;
  flex: 1;
}
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  z-index: 1;
}
.step-label { font-size: .68rem; color: var(--text-secondary); font-weight: 500; text-align: center; }
.step-item.active .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow);
}
.step-item.active .step-label { color: var(--accent); }
.step-item.done .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.step-item.done .step-label { color: var(--success); }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 20px;
  transition: var(--transition);
}
.step-connector.done { background: var(--success); }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeInUp .35s ease; }

/* ── Ride Detail Page ────────────────────────────────────────── */
.ride-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.ride-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .75rem;
}
.route-visual {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,.25);
  border-radius: var(--radius-md);
  margin: 1rem 0;
}
.route-city {
  font-size: 1.1rem;
  font-weight: 700;
}
.route-city span { font-size: .75rem; color: var(--text-secondary); display: block; font-weight: 400; }
.route-line {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.route-line-bar { flex: 1; height: 2px; background: var(--accent); opacity: .4; }
.route-line-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Captain Info */
.captain-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.captain-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

/* ── Profile Page ────────────────────────────────────────────── */
.profile-header {
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}
.profile-avatar-wrap { position: relative; display: inline-block; }
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.profile-avatar-edit {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  cursor: pointer;
}
.profile-name { font-size: 1.35rem; font-weight: 700; margin-top: .75rem; }
.profile-phone { color: var(--accent); font-size: .9rem; font-weight: 600; }

/* Tabs */
.profile-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .65rem 1.2rem;
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
}
.profile-tabs .nav-link:hover { color: var(--text-primary); }
.profile-tabs .nav-link.active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
  background: transparent;
}

/* Bike Card */
.bike-card {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.bike-card:hover { border-color: rgba(255,94,0,.25); }
.bike-icon { font-size: 1.5rem; color: var(--accent); }
.bike-info h6 { font-size: .9rem; font-weight: 700; margin-bottom: .15rem; }
.bike-info p { font-size: .78rem; color: var(--text-secondary); margin: 0; }

/* ── My Rides ────────────────────────────────────────────────── */
.rides-tab-content .nav-link {
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: .5rem 1.2rem;
  font-size: .875rem;
  font-weight: 600;
  margin-right: .5rem;
  transition: var(--transition);
}
.rides-tab-content .nav-link.active,
.rides-tab-content .nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255,94,0,.08);
}

/* ── Toast Notifications ─────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  pointer-events: none;
}
.ride-toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow-card);
  pointer-events: all;
  animation: slideInRight .3s ease;
  font-size: .875rem;
}
.ride-toast.toast-success { border-left: 3px solid var(--success); }
.ride-toast.toast-error   { border-left: 3px solid var(--danger); }
.ride-toast.toast-info    { border-left: 3px solid var(--accent); }
.ride-toast.toast-warning { border-left: 3px solid var(--warning); }
.ride-toast i { font-size: 1.1rem; flex-shrink: 0; }
.ride-toast.toast-success i { color: var(--success); }
.ride-toast.toast-error   i { color: var(--danger); }
.ride-toast.toast-info    i { color: var(--accent); }
.ride-toast.toast-warning i { color: var(--warning); }
.ride-toast span { color: var(--text-primary); flex: 1; }

/* ── Loading Overlay ─────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,10,.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.loading-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── OTP Input ───────────────────────────────────────────────── */
.otp-inputs {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.otp-input {
  width: 52px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--glass-bg) !important;
  border: 2px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  transition: var(--transition) !important;
}
.otp-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  background: rgba(255,94,0,.05) !important;
}
.otp-timer { color: var(--accent); font-weight: 600; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.empty-state i {
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 1rem;
  display: block;
}
.empty-state h5 { color: var(--text-secondary); margin-bottom: .5rem; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.fade-in-up { animation: fadeInUp .4s ease; }

/* ── Utility ─────────────────────────────────────────────────── */
.text-accent  { color: var(--accent) !important; }
.text-muted   { color: var(--text-secondary) !important; }
.bg-dark-card { background: var(--bg-card) !important; }
.border-glass { border-color: var(--glass-border) !important; }
.rounded-lg   { border-radius: var(--radius-lg) !important; }
.rounded-xl   { border-radius: var(--radius-xl) !important; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-medium) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Password strength bar */
.strength-bar { height: 4px; border-radius: 2px; background: var(--border); margin-top: .5rem; overflow: hidden; }
.strength-bar-fill { height: 100%; transition: width .35s ease, background .35s ease; border-radius: 2px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 576px) {
  .auth-card { padding: 1.75rem 1.25rem; border-radius: var(--radius-lg); }
  .ride-hero { padding: 1.25rem; }
  .step-progress { gap: 0; }
  .step-label { display: none; }
  .otp-input { width: 44px; height: 50px; font-size: 1.2rem; }
}
@media (min-width: 992px) {
  .page-wrapper { padding: 2.5rem 0 4rem; }
}
