/* ===================================================================
   SAAS AUTO - PLAQUE & HISTORIQUE VEHICULE (DESIGN SYSTEM PREMIUM)
   =================================================================== */

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

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1523;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(26, 37, 62, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.3);

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
  --glow-blue: 0 0 35px rgba(59, 130, 246, 0.3);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background mesh & grid glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% -10%, rgba(59, 130, 246, 0.18), transparent 70%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12), transparent 60%),
              radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Status badge */
.chrome-status-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}

.status-dot.active {
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulse 2s infinite;
}

.status-dot.inactive {
  background: var(--accent-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* MAIN CONTAINER */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  width: 100%;
}

/* HERO SEARCH SECTION */
.hero-section {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* REALISTIC FRENCH LICENSE PLATE INPUT */
.plate-search-wrapper {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.plate-container {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 4px solid #1e293b;
  border-radius: 12px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8),
              inset 0 1px 2px rgba(255, 255, 255, 0.9),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  height: 74px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plate-container:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -8px rgba(6, 182, 212, 0.35),
              0 0 0 2px var(--accent-cyan);
}

.plate-band {
  background: #003399;
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  user-select: none;
  font-weight: 700;
  min-width: 48px;
}

.plate-band.left .euro-stars {
  font-size: 11px;
  color: #ffcc00;
  line-height: 1;
}

.plate-band.left .country-code {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.plate-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 1rem;
}

.plate-input::placeholder {
  color: #94a3b8;
  opacity: 0.5;
}

.plate-band.right {
  min-width: 44px;
}

.plate-band.right .region-logo {
  font-size: 11px;
  opacity: 0.8;
}

.plate-band.right .dept-code {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.plate-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-demo {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-demo:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* PROGRESS / LIVE STEPPER PANEL */
.progress-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  animation: fadeIn 0.3s ease forwards;
}

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

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.progress-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(6, 182, 212, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.stepper-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.step-card.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.step-card.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.step-card.completed .step-icon {
  color: var(--accent-emerald);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-number {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.step-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

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

/* Console logs */
.console-box {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.6;
}

/* RESULTS DASHBOARD */
.dashboard-wrapper {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

/* VEHICLE IDENTITY HEADER CARD */
.vehicle-identity-card {
  background: linear-gradient(135deg, rgba(22, 33, 56, 0.8), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.vehicle-spec-card {
  display: none;
  margin: 1rem 0 2.5rem;
  padding: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22, 32, 51, 0.82), rgba(15, 23, 42, 0.62));
  box-shadow: 0 16px 35px rgba(2, 6, 23, 0.22);
}

.vehicle-spec-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.vehicle-spec-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.vehicle-spec-kicker {
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vehicle-spec-heading h3 {
  margin-top: 0.15rem;
  font-size: 1.05rem;
}

.vehicle-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.7rem;
  padding-top: 1rem;
}

.vehicle-spec-item,
.vehicle-tech-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.vehicle-spec-item span,
.vehicle-tech-row span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.vehicle-spec-item strong,
.vehicle-tech-row strong {
  color: var(--text-main);
  font-size: 0.82rem;
  text-align: right;
}

.vehicle-tech-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.vehicle-meta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mini-plate-badge {
  background: #fff;
  color: #0f172a;
  border: 2px solid #334155;
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.vehicle-vin-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.vin-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.vin-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-copy:hover {
  color: var(--text-main);
}

.vehicle-badges-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Crit'Air official badge */
.critair-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: #ea580c; /* Default Crit'Air 3 orange */
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35);
}

.critair-badge.critair-1 { background: #8b5cf6; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35); }
.critair-badge.critair-2 { background: #eab308; color: #0f172a; box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35); }
.critair-badge.critair-3 { background: #ea580c; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35); }
.critair-badge.critair-4 { background: #991b1b; box-shadow: 0 4px 15px rgba(153, 27, 27, 0.35); }
.critair-badge.critair-5 { background: #475569; box-shadow: 0 4px 15px rgba(71, 85, 105, 0.35); }

/* SYNTHESE GRID */
.section-heading {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-heading svg {
  color: var(--accent-cyan);
}

.synthese-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.metric-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-cyan);
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* PRO USAGES SECTION */
.usages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.usage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  transition: all 0.2s ease;
}

.usage-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.usage-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.usage-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.usage-status.safe {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.usage-status.warning {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.usage-detail {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
  margin-top: 0.7rem;
  text-align: left;
}

.analysis-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin-bottom: 3rem;
}

.analysis-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.analysis-card li {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0.35rem 0;
}

/* TIMELINE SECTION */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  margin-bottom: 3rem;
}

.timeline-notice {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #bae6fd;
}

.timeline-tree {
  position: relative;
  padding-left: 2rem;
}

.timeline-tree::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), rgba(59, 130, 246, 0.2));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  z-index: 2;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.timeline-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.timeline-km-badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.timeline-owner-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.timeline-event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.timeline-details-table {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-k {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.detail-v {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
}

/* HISTORY SIDEBAR DRAWER */
.history-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #090d16;
  border-left: 1px solid var(--border-subtle);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
  z-index: 200;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.history-drawer.open {
  right: 0;
}

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

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.history-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(-2px);
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 199;
}

.overlay.open {
  display: block;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* PRINT STYLES */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .navbar, .hero-section, .progress-panel, .history-drawer, .btn-primary, .btn-secondary, .btn-demo {
    display: none !important;
  }
  .dashboard-wrapper {
    display: block !important;
  }
  .vehicle-identity-card, .metric-card, .timeline-card, .usage-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .plate-container {
    height: 64px;
  }
  .plate-input {
    font-size: 1.6rem;
  }
  .vehicle-identity-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .history-drawer {
    width: 100%;
    right: -100%;
  }
}
.admin-console,.admin-only{display:none}
.progress-hero{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1.5rem;margin:1rem 0;border:1px solid rgba(103,232,249,.18);border-radius:18px;background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(8,47,73,.62));text-align:left}
.progress-hero strong{display:block;font-size:2rem;line-height:1;color:#67e8f9;letter-spacing:-.04em}
.progress-hero small{display:block;color:#94a3b8;margin-top:.35rem}
.progress-orbit{width:54px;height:54px;position:relative;border:2px solid rgba(103,232,249,.18);border-radius:50%;animation:orbit-spin 2.2s linear infinite}
.progress-orbit span{position:absolute;width:7px;height:7px;background:#67e8f9;border-radius:50%;top:-4px;left:22px;box-shadow:0 0 14px #67e8f9}
.progress-orbit span:nth-child(2){top:23px;left:-4px;background:#a7f3d0}.progress-orbit span:nth-child(3){top:46px;left:44px;background:#fcd34d}
@keyframes orbit-spin{to{transform:rotate(360deg)}}
@media print{body{background:white!important;color:#111!important}.no-print,.progress-panel,.btn-secondary{display:none!important}.dashboard-wrapper{display:block!important}}
