/* ============================================================
   BLUE PERMIS PWA — app.css
   ============================================================ */

/* ---- Variables ---- */
:root {
  --brand:        #0D3B8E;
  --brand-light:  #1E5BFF;
  --accent:       #3DA5FF;
  --success:      #10B981;
  --warning:      #F59E0B;
  --danger:       #EF4444;
  --purple:       #8B5CF6;

  /* Layout */
  --header-h:     56px;
  --nav-h:        0px;

  /* Light theme */
  --bg:           #F2F5FB;
  --bg-card:      #FFFFFF;
  --bg-input:     #EEF1F9;
  --text:         #0F172A;
  --text-sub:     #64748B;
  --text-muted:   #9CA3AF;
  --border:       rgba(0,0,0,0.07);
  --shadow-sm:    0 2px 8px rgba(13,59,142,0.08);
  --shadow-md:    0 4px 20px rgba(13,59,142,0.12);
  --shadow-lg:    0 8px 40px rgba(13,59,142,0.16);
  --nav-bg:       #FFFFFF;
  --header-bg:    #FFFFFF;
  --transition:   all 0.2s ease;
}

[data-theme="dark"] {
  --bg:           #0B1120;
  --bg-card:      #1A253A;
  --bg-input:     #243048;
  --text:         #F0F4FF;
  --text-sub:     #8A9BBF;
  --text-muted:   #566480;
  --border:       rgba(255,255,255,0.07);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
  --nav-bg:       #111827;
  --header-bg:    #111827;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #0a1c5a 0%, #0D3B8E 50%, #1E5BFF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1000;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.splash.fade-out { opacity: 0; transform: scale(1.05); pointer-events: none; }
.splash.hidden { display: none; }

.splash-circle {
  width: 96px; height: 96px;
  background: #ffffff;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 14px rgba(255,255,255,0.08), 0 0 0 28px rgba(255,255,255,0.04);
}
.splash-circle i { font-size: 2.2rem; color: #0D3B8E; }
.splash-title { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.splash-sub { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.splash-loader {
  position: absolute; bottom: 60px;
  width: 120px; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px; overflow: hidden;
}
.splash-loader-bar {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  animation: splashLoad 1.8s ease-in-out forwards;
}
@keyframes splashLoad {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app { display: flex; flex-direction: column; height: 100dvh; height: 100vh; }
.app.hidden { display: none; }

/* ---- Header ---- */
.app-header {
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s;
  position: relative; z-index: 10;
}
.header-left { display: flex; align-items: center; gap: 0.5rem; }
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.header-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.btn-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--brand); color: #fff; }
.btn-icon.hidden { display: none; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Screens container ---- */
.screens {
  flex: 1; overflow: hidden; position: relative;
}
.screen {
  position: absolute; inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
  -webkit-overflow-scrolling: touch;
}
.screen.active { display: block; }
.screen-content { padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }

/* Sub-screens */
.sub-screen { display: none; }
.sub-screen.active { display: block; }

/* ---- Bottom nav (supprimé — navigation via hamburger) ---- */
.bottom-nav { display: none; }
.bottom-nav {
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: flex-start;
  padding-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
  transition: background 0.3s;
  position: relative; z-index: 10;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.65rem; font-weight: 600;
  transition: var(--transition);
  position: relative;
}
.nav-btn i { font-size: 1.2rem; transition: var(--transition); }
.nav-btn.active { color: var(--brand-light); }
.nav-btn.active i { transform: translateY(-1px); }
.nav-btn.active::before {
  content: '';
  position: absolute; top: -8px;
  width: 28px; height: 3px;
  background: var(--brand-light);
  border-radius: 0 0 3px 3px;
}
/* /bottom-nav */

/* ============================================================
   COMMON COMPONENTS
   ============================================================ */

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s;
}

/* Section header */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.25rem 0 0.75rem;
}
.section-header h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.section-header a { font-size: 0.8rem; color: var(--brand-light); font-weight: 600; }

/* Buttons */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem; font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(13,59,142,0.3);
}
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--bg-input);
  color: var(--text);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem; font-weight: 700;
  transition: var(--transition);
}
.btn-danger {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem; font-weight: 700;
}
.full-width { width: 100%; }
.btn-text { font-size: 0.85rem; font-weight: 600; color: var(--brand-light); }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem; font-weight: 700;
}
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-upcoming { background: rgba(30,91,255,0.1); color: var(--brand-light); }
.badge-done { background: var(--bg-input); color: var(--text-muted); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }

/* Progress bar */
.progress-bar-wrap {
  height: 5px; background: var(--bg-input); border-radius: 4px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1A253A; color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-size: 0.85rem; font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Toggle switch */
.toggle-switch {
  width: 44px; height: 26px;
  background: var(--bg-input);
  border-radius: 13px;
  padding: 2px;
  transition: background 0.3s;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch.active { background: var(--brand-light); }
.toggle-thumb {
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.toggle-switch.active .toggle-thumb { transform: translateX(18px); }

/* ============================================================
   HOME SCREEN
   ============================================================ */
.greeting { margin-bottom: 1.25rem; }
.greeting h2 { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.greeting p { font-size: 0.875rem; color: var(--text-sub); margin-top: 2px; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat-mini {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 0.85rem 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer; transition: var(--transition);
}
.stat-mini:active { transform: scale(0.96); }
.stat-mini-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.stat-mini-icon.blue   { background: rgba(30,91,255,0.12); color: var(--brand-light); }
.stat-mini-icon.green  { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-mini-icon.orange { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-mini-value { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-mini-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

/* Reservation preview card */
.card-reservation-preview {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.25rem;
  cursor: pointer; transition: var(--transition);
  border: 1px solid rgba(30,91,255,0.15);
}
.card-reservation-preview:active { transform: scale(0.98); }
.card-reservation-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.card-reservation-info { flex: 1; min-width: 0; }
.card-res-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.card-res-date { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-top: 1px; }
.card-res-vehicle { font-size: 0.78rem; color: var(--text-sub); }
.card-reservation-arrow { color: var(--text-muted); font-size: 0.75rem; }

/* Progress card (code progress) */
.progress-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border-left: 3px solid var(--brand-light);
}
.progress-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.progress-card-theme { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.progress-card-score { font-size: 0.82rem; font-weight: 800; color: var(--brand-light); }
.progress-card-action { margin-top: 0.65rem; font-size: 0.8rem; font-weight: 600; color: var(--brand-light); }
.progress-card-action i { margin-right: 0.3rem; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quick-action-btn {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.quick-action-btn:active { transform: scale(0.96); }
.qa-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #fff;
  margin-bottom: 0.3rem;
}
.code-action .qa-icon { background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.location-action .qa-icon { background: linear-gradient(135deg, #0F7A6E, #10B981); }
.quick-action-btn span { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.quick-action-btn small { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================================
   CODE SCREEN
   ============================================================ */
/* Score ring header */
.score-header {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.25rem;
}
.score-ring-wrap { position: relative; width: 90px; height: 90px; flex-shrink: 0; }
.score-ring { width: 90px; height: 90px; transform: rotate(0deg); }
.score-ring-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 900; color: var(--text);
}
.score-details h3 { font-size: 0.95rem; font-weight: 800; color: var(--text); }
.score-details p { font-size: 0.78rem; color: var(--text-sub); margin: 3px 0 6px; }

/* Action cards */
.action-cards { display: flex; flex-direction: column; gap: 0.65rem; margin: 1rem 0; }
.action-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 1rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer; transition: var(--transition);
}
.action-card:active { transform: scale(0.98); }
.ac-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.ac-icon.blue   { background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.ac-icon.purple { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
.ac-icon.green  { background: linear-gradient(135deg, #065F46, #10B981); }
.ac-content { flex: 1; }
.ac-content h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.ac-content p { font-size: 0.75rem; color: var(--text-sub); margin-top: 1px; }
.ac-arrow { color: var(--text-muted); font-size: 0.75rem; }

/* Theme list */
.theme-list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex; align-items: center; gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer; transition: var(--transition);
}
.theme-item:active { transform: scale(0.98); }
.theme-icon {
  width: 34px; height: 34px;
  background: var(--bg-input);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--brand-light); flex-shrink: 0;
}
.theme-info { flex: 1; }
.theme-info span { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.theme-bar {
  margin-top: 4px; height: 4px;
  background: var(--bg-input); border-radius: 4px; overflow: hidden;
}
.theme-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 4px;
}
.theme-pct { font-size: 0.78rem; font-weight: 800; color: var(--text-sub); }

/* ---- QUIZ ---- */
.quiz-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.quiz-progress-info { font-size: 0.82rem; font-weight: 700; color: var(--text-sub); white-space: nowrap; }
.quiz-progress-bar { flex: 1; height: 5px; background: var(--bg-input); border-radius: 4px; overflow: hidden; }
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 4px; transition: width 0.4s ease;
}
.btn-text-icon { color: var(--text-muted); font-size: 1rem; padding: 4px; }

.quiz-question-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
  min-height: 140px;
}
.quiz-theme-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(30,91,255,0.1);
  color: var(--brand-light);
  border-radius: 20px;
  font-size: 0.7rem; font-weight: 700;
  margin-bottom: 0.85rem;
}
.quiz-question-text {
  font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.5;
}

.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.quiz-option {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}
.quiz-option:active { transform: scale(0.98); }
.quiz-option.correct { border-color: var(--success); background: rgba(16,185,129,0.08); }
.quiz-option.wrong   { border-color: var(--danger);  background: rgba(239,68,68,0.08); }
.quiz-option.disabled { pointer-events: none; opacity: 0.5; }
.option-letter {
  width: 30px; height: 30px;
  background: var(--bg-input);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800; color: var(--text-sub);
  flex-shrink: 0;
  transition: var(--transition);
}
.quiz-option.correct .option-letter { background: var(--success); color: #fff; }
.quiz-option.wrong   .option-letter { background: var(--danger);  color: #fff; }
.option-text { font-size: 0.88rem; font-weight: 600; color: var(--text); }

.quiz-explanation {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.quiz-explanation.hidden { display: none; }
.explanation-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.explanation-header i { font-size: 1rem; }
.explanation-header.success { color: var(--success); }
.explanation-header.error   { color: var(--danger); }
#expl-text { font-size: 0.82rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 1rem; }

/* ---- RESULT ---- */
.result-screen {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 2rem 1rem;
}
.result-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
.result-icon.success { background: rgba(16,185,129,0.15); color: var(--success); }
.result-icon.fail    { background: rgba(239,68,68,0.15);  color: var(--danger); }
.result-score { font-size: 3rem; font-weight: 900; color: var(--brand-light); margin: 0.5rem 0; }
#result-title { font-size: 1.3rem; font-weight: 800; color: var(--text); }
#result-msg { font-size: 0.88rem; color: var(--text-sub); margin: 0.5rem 0 1.5rem; }
.result-actions { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }

/* ---- STATS ---- */
.stats-overview {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 0.75rem; margin-bottom: 0.5rem;
}
.stat-block {
  background: var(--bg-card);
  border-radius: 14px; padding: 1rem;
  box-shadow: var(--shadow-sm); text-align: center;
}
.stat-block-value { font-size: 1.5rem; font-weight: 900; color: var(--brand-light); }
.stat-block-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

.theme-stats-list { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-stat-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card);
  border-radius: 12px; padding: 0.8rem 1rem;
  box-shadow: var(--shadow-sm);
}
.theme-stat-name { font-size: 0.8rem; font-weight: 600; color: var(--text); width: 130px; flex-shrink: 0; }
.theme-stat-bar { flex: 1; height: 6px; background: var(--bg-input); border-radius: 4px; overflow: hidden; }
.theme-stat-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.6s ease;
}
.theme-stat-fill.blue   { background: var(--brand-light); }
.theme-stat-fill.green  { background: var(--success); }
.theme-stat-fill.orange { background: var(--warning); }
.theme-stat-fill.red    { background: var(--danger); }
.theme-stat-pct { font-size: 0.78rem; font-weight: 800; width: 36px; text-align: right; }
.theme-stat-pct.blue   { color: var(--brand-light); }
.theme-stat-pct.green  { color: var(--success); }
.theme-stat-pct.orange { color: var(--warning); }
.theme-stat-pct.red    { color: var(--danger); }

/* ============================================================
   LOCATION SCREEN
   ============================================================ */
/* Vehicle card */
.vehicle-card {
  background: linear-gradient(135deg, #0a1c5a 0%, #0D3B8E 60%, #1358CC 100%);
  border-radius: 20px;
  padding: 1.25rem 1.25rem 0.75rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(13,59,142,0.35);
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}
.vehicle-card::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.vehicle-card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.vehicle-type-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem; font-weight: 800;
  margin-bottom: 0.5rem;
}
.vehicle-info h3 { font-size: 1.35rem; font-weight: 800; }
.vehicle-info p { font-size: 0.78rem; opacity: 0.7; margin-top: 2px; }
.vehicle-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; }
.vehicle-status i { font-size: 0.5rem; }
.vehicle-status.available { color: #6EE7B7; }
.vehicle-icon-wrap { text-align: right; position: relative; z-index: 1; margin-top: -10px; }
.vehicle-icon-large { font-size: 4rem; opacity: 0.25; display: inline-block; }

/* Next reservation */
.next-resa-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer; transition: var(--transition);
  margin-bottom: 1rem;
}
.next-resa-card:active { transform: scale(0.98); }
.next-resa-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem; font-weight: 700; color: var(--text);
}
.next-resa-header i { color: var(--brand-light); }
.next-resa-header .badge { margin-left: auto; }
.next-resa-details { display: flex; flex-direction: column; gap: 0.4rem; }
.resa-detail-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--text-sub); }
.resa-detail-item i { color: var(--brand-light); width: 14px; text-align: center; }

.location-actions { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 0.5rem; }

/* Tarif chips */
.tarif-chips { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.6rem; }
.tarif-chip {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 0.8rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
}
.tarif-chip.featured { border-color: var(--brand-light); background: rgba(30,91,255,0.08); }
.tarif-chip-price { display: block; font-size: 1rem; font-weight: 900; color: var(--brand-light); }
.tarif-chip-label { display: block; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

/* Toggle group (BVM/BVA) */
.toggle-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.25rem;
}
.toggle-btn {
  background: var(--bg-input);
  border-radius: 10px;
  padding: 0.65rem;
  font-size: 0.82rem; font-weight: 700; color: var(--text-sub);
  transition: var(--transition);
}
.toggle-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
}

/* Week calendar */
.week-calendar {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 0.4rem; margin-bottom: 0.25rem;
}
.cal-day {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.55rem 0.2rem;
  border-radius: 10px;
  cursor: pointer; transition: var(--transition);
  background: var(--bg-card);
}
.cal-day.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
}
.cal-day.today { border: 2px solid var(--brand-light); }
.cal-day-name { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.cal-day.active .cal-day-name { color: rgba(255,255,255,0.7); }
.cal-day-num { font-size: 0.9rem; font-weight: 800; color: var(--text); margin-top: 2px; }
.cal-day.active .cal-day-num { color: #fff; }

/* Time slots */
.time-slots { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; margin-bottom: 0.25rem; }
.time-slot {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 0.65rem 0.4rem;
  text-align: center;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
  color: var(--text);
}
.time-slot.active { border-color: var(--brand-light); color: var(--brand-light); background: rgba(30,91,255,0.08); }
.time-slot.taken { opacity: 0.35; pointer-events: none; text-decoration: line-through; }

/* Duration chips */
.duration-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.duration-chip {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem; font-weight: 700;
  background: var(--bg-input);
  color: var(--text-sub);
  transition: var(--transition);
}
.duration-chip.active { background: var(--brand-light); color: #fff; }

/* Booking summary */
.booking-summary {
  background: var(--bg-card);
  border-radius: 14px; padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.summary-row { display: flex; justify-content: space-between; align-items: center; }
.summary-row span { font-size: 0.88rem; font-weight: 600; color: var(--text-sub); }
.summary-price { font-size: 1.35rem; font-weight: 900; color: var(--brand-light); }

/* Reservations list */
.resa-list { display: flex; flex-direction: column; gap: 0.65rem; }
.resa-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 1rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.resa-card.upcoming { cursor: pointer; border-left: 3px solid var(--brand-light); }
.resa-card.upcoming:active { transform: scale(0.98); }
.resa-card.past { opacity: 0.65; }
.resa-card-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 44px;
}
.resa-day { font-size: 1.4rem; font-weight: 900; color: var(--text); line-height: 1; }
.resa-month { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.resa-card-info { flex: 1; }
.resa-card-title { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.resa-card-time { font-size: 0.75rem; color: var(--text-sub); margin: 3px 0 5px; display: flex; align-items: center; gap: 0.4rem; }
.resa-arrow { color: var(--text-muted); font-size: 0.75rem; }

/* Reservation detail */
.detail-vehicle-card {
  background: linear-gradient(135deg, #0a1c5a 0%, #0D3B8E 100%);
  border-radius: 20px; padding: 1.75rem;
  text-align: center; color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 30px rgba(13,59,142,0.35);
}
.detail-vehicle-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 0.75rem;
}
.detail-vehicle-card h3 { font-size: 1.3rem; font-weight: 800; }
.detail-vehicle-card p { font-size: 0.82rem; opacity: 0.7; margin-top: 4px; }

.detail-info-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.detail-info-row {
  background: var(--bg-card);
  border-radius: 12px; padding: 0.85rem 1rem;
  display: flex; align-items: center; gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.detail-info-icon {
  width: 34px; height: 34px;
  background: rgba(30,91,255,0.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-light); font-size: 0.85rem; flex-shrink: 0;
}
.detail-info-label { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.detail-info-value { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-top: 2px; }

.unlock-section { text-align: center; margin: 1.25rem 0; }
.unlock-hint { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.btn-unlock {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.btn-unlock.unlocked { border-color: var(--success); background: rgba(16,185,129,0.08); }
.unlock-icon {
  width: 64px; height: 64px;
  background: var(--bg-input);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--text-sub);
  transition: var(--transition);
}
.btn-unlock.unlocked .unlock-icon { background: var(--success); color: #fff; }
#unlock-text { font-size: 0.88rem; font-weight: 700; color: var(--text); }

/* Confirm screen */
.confirm-screen {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 2rem 1rem;
}
.confirm-icon {
  width: 80px; height: 80px;
  background: rgba(16,185,129,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--success);
  margin-bottom: 1.25rem;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.confirm-screen h2 { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.confirm-screen p { font-size: 0.88rem; color: var(--text-sub); margin: 0.5rem 0 1rem; }
.confirm-details {
  background: var(--bg-input);
  border-radius: 14px; padding: 1rem 1.25rem;
  width: 100%; margin-bottom: 1.5rem;
  text-align: left;
}
.confirm-detail-row {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
}
.confirm-detail-row:last-child { border: none; }
.confirm-detail-row strong { color: var(--text); }

/* ============================================================
   PROFILE SCREEN
   ============================================================ */
.profile-header {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}
.profile-avatar-large {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 1.35rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px rgba(13,59,142,0.3);
}
.profile-header h2 { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.profile-header p { font-size: 0.8rem; color: var(--text-sub); margin: 3px 0 8px; }

.profile-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem 0.5rem;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border: none; }
.profile-stat-val { font-size: 1.25rem; font-weight: 900; color: var(--brand-light); }
.profile-stat-label { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

/* Settings */
.settings-list { display: flex; flex-direction: column; gap: 0.5rem; }
.setting-row {
  background: var(--bg-card);
  border-radius: 14px; padding: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.setting-left { display: flex; align-items: center; gap: 0.85rem; }
.setting-left span { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.setting-icon {
  width: 36px; height: 36px;
  background: var(--bg-input);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.setting-icon.dark-icon  { background: rgba(139,92,246,0.12); color: var(--purple); }
.setting-icon.notif-icon { background: rgba(245,158,11,0.12); color: var(--warning); }
.text-muted { color: var(--text-muted); font-size: 0.75rem; }

.app-info { text-align: center; font-size: 0.72rem; color: var(--text-muted); padding: 1rem 0 0.5rem; }

/* ============================================================
   SPLASH LOGO
   ============================================================ */
.splash-logo-img {
  width: 72px; height: 72px;
  object-fit: contain;
}

/* ============================================================
   SIDE MENU DRAWER
   ============================================================ */
.side-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.side-overlay.open { opacity: 1; pointer-events: all; }

.side-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--bg-card);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 6px 0 30px rgba(0,0,0,0.25);
}
.side-menu.open { transform: translateX(0); }

.side-header {
  background: linear-gradient(135deg, #060e2a 0%, #0D3B8E 100%);
  padding: 3.5rem 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 0.85rem;
  flex-shrink: 0;
}
.side-logo-img {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 4px;
}
.side-logo-img img { width: 38px; height: 38px; object-fit: contain; }
.side-logo-img i { font-size: 1.5rem; color: #fff; }
.side-user-info { color: #fff; min-width: 0; }
.side-user-name { font-size: 0.95rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-email { font-size: 0.72rem; opacity: 0.55; margin-top: 2px; }

.side-nav { flex: 1; padding: 0.5rem 0 1rem; }
.side-section {
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted);
  padding: 1rem 1.25rem 0.3rem;
}
.side-item {
  width: 100%;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text); text-align: left;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.side-item i { width: 18px; text-align: center; font-size: 0.9rem; color: var(--text-muted); flex-shrink: 0; transition: var(--transition); }
.side-item:hover { background: var(--bg-input); }
.side-item.active { color: var(--brand-light); border-left-color: var(--brand-light); background: rgba(30,91,255,0.07); }
.side-item.active i { color: var(--brand-light); }
.side-item.danger { color: var(--danger); }
.side-item.danger i { color: var(--danger); }

/* Cart badge on header btn */
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px;
  background: var(--danger); color: #fff;
  border-radius: 8px; padding: 0 4px;
  font-size: 0.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; line-height: 1;
}

/* ============================================================
   SHOP SCREEN
   ============================================================ */
.shop-cats {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding-bottom: 0.5rem; margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cat {
  padding: 0.42rem 1rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  background: var(--bg-input); color: var(--text-sub);
  transition: var(--transition);
}
.shop-cat.active { background: var(--brand-light); color: #fff; }

.shop-grid { display: flex; flex-direction: column; gap: 0.65rem; padding-bottom: 6rem; }

.shop-product-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex; align-items: center; gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.shop-product-card:active { transform: scale(0.98); }
.shop-product-card.in-cart { border-color: var(--brand-light); background: rgba(30,91,255,0.04); }

.product-icon-wrap {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(30,91,255,0.1); color: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.product-icon-wrap.green  { background: rgba(16,185,129,0.12); color: var(--success); }
.product-icon-wrap.purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.product-icon-wrap.orange { background: rgba(245,158,11,0.12); color: var(--warning); }

.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.product-desc { font-size: 0.72rem; color: var(--text-sub); margin: 2px 0 5px; line-height: 1.4; }
.product-prices { display: flex; align-items: baseline; gap: 0.5rem; }
.product-price { font-size: 1rem; font-weight: 900; color: var(--brand-light); }
.product-old-price { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; }

.product-badge {
  position: absolute; top: 0.55rem; right: 0.55rem;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem; border-radius: 20px;
  background: var(--warning); color: #fff;
}
.product-badge.blue  { background: var(--brand-light); }
.product-badge.green { background: var(--success); }

.product-add-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(30,91,255,0.12); color: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; transition: var(--transition);
}
.product-add-btn.added { background: var(--success); color: #fff; }
.product-add-btn:active { transform: scale(0.88); }

/* Cart bottom bar */
.cart-bar {
  position: sticky; bottom: 0; left: 0; right: 0;
  background: var(--brand);
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(13,59,142,0.3);
  z-index: 50; border-radius: 16px 16px 0 0;
}
.cart-count { font-size: 0.72rem; color: rgba(255,255,255,0.65); display: block; }
.cart-total  { font-size: 1.1rem; font-weight: 900; color: #fff; }
.cart-checkout-btn {
  background: #fff; color: var(--brand);
  padding: 0.6rem 1.1rem; border-radius: 10px;
  font-size: 0.82rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.4rem; white-space: nowrap;
}

/* Cart detail sub-screen */
.cart-items { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.cart-item {
  background: var(--bg-card); border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex; align-items: center; gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.cart-item-icon { width: 34px; height: 34px; background: var(--bg-input); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.88rem; color: var(--brand-light); }
.cart-item-info { flex: 1; }
.cart-item-name  { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.cart-item-price { font-size: 0.8rem; font-weight: 800; color: var(--brand-light); }
.cart-remove-btn { color: var(--danger); font-size: 0.85rem; padding: 6px; }

.cart-summary { background: var(--bg-card); border-radius: 14px; padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 800; color: var(--text); }
.cart-total-price { color: var(--brand-light); }

/* ============================================================
   DRIVING MODE OVERLAY
   ============================================================ */
.driving-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #04091e 0%, #081647 40%, #0D3B8E 100%);
  z-index: 300;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.driving-overlay.open { transform: translateY(0); }

/* Header */
.drv-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(3rem, env(safe-area-inset-top, 3rem)) 1.25rem 0.75rem;
  flex-shrink: 0;
}
.drv-title { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.6); text-align: center; }
.drv-timer-wrap { text-align: right; }
.drv-timer { font-size: 1.15rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.drv-timer-label { font-size: 0.6rem; color: rgba(255,255,255,0.4); font-weight: 600; }
.btn-icon-light {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75);
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.btn-icon-light:active { background: rgba(255,255,255,0.2); }

/* Vehicle info */
.drv-vehicle-info { text-align: center; padding: 0.5rem 1rem 0; flex-shrink: 0; }
.drv-vehicle-icon-wrap {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: rgba(255,255,255,0.85);
  margin: 0 auto 0.6rem;
}
.drv-vehicle-name { font-size: 1.15rem; font-weight: 800; color: #fff; }
.drv-vehicle-sub  { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Lock button area */
.drv-lock-area {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
}
.pulse-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.pulse-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(61,165,255,0.25);
  animation: pulseExp 2.4s ease-out infinite;
}
.pulse-ring.r1 { width: 128px; height: 128px; }
.pulse-ring.r2 { width: 180px; height: 180px; animation-delay: 0.8s; }
.pulse-rings.locked .pulse-ring { border-color: rgba(239,68,68,0.2); }
@keyframes pulseExp {
  0%   { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4);  opacity: 0; }
}

.drv-lock-btn {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(61,165,255,0.15);
  border: 2.5px solid rgba(61,165,255,0.45);
  color: #3DA5FF; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); position: relative; z-index: 1;
  box-shadow: 0 0 40px rgba(61,165,255,0.25), inset 0 0 20px rgba(61,165,255,0.05);
}
.drv-lock-btn.locked {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
  color: var(--danger);
  box-shadow: 0 0 40px rgba(239,68,68,0.2), inset 0 0 20px rgba(239,68,68,0.05);
}
.drv-lock-btn:active { transform: scale(0.9); }

.drv-lock-status { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.6); margin-top: 1rem; }
.drv-lock-hint   { font-size: 0.7rem; color: rgba(255,255,255,0.35); margin-top: 0.35rem; }

/* Info grid */
.drv-info-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0.6rem; padding: 0 1.25rem; margin-bottom: 1rem; flex-shrink: 0;
}
.drv-info-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 0.85rem 0.5rem; text-align: center;
}
.drv-info-item i { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 0.3rem; display: block; }
.di-val   { display: block; font-size: 0.92rem; font-weight: 800; color: #fff; }
.di-label { font-size: 0.6rem;  font-weight: 600; color: rgba(255,255,255,0.35); margin-top: 2px; display: block; }

/* Fuel bar */
.drv-fuel-bar { height: 4px; background: rgba(255,255,255,0.12); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.drv-fuel-fill { height: 100%; background: #10B981; border-radius: 4px; width: 75%; }

/* Actions */
.drv-actions {
  display: grid; grid-template-columns: 1fr 2fr; gap: 0.65rem;
  padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}
.drv-emergency {
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3);
  color: var(--danger); border-radius: 14px; padding: 0.9rem;
  font-size: 0.78rem; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.drv-emergency i { font-size: 1.1rem; }
.drv-terminate {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; border-radius: 14px; padding: 0.9rem;
  font-size: 0.88rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
