/* Hlídač vozu — light theme inspired by Carvago + Carvertical */

:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --bg-4: #e2e8f0;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-faint: #94a3b8;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-50: #eff6ff;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-primary: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
}

/* Dashboard / app pages — keep light theme too, just layout-specific tweaks */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === TOP NAV (light) === */

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.85);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo-link { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo .brand-accent { color: var(--primary); }

.topnav { display: flex; gap: 28px; align-items: center; }
.topnav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s;
}
.topnav a:hover { color: var(--text); }
.topnav a.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.topnav a.btn-nav:hover { background: var(--primary-hover); color: #fff; }

/* === HERO === */

.hero {
  background:
    radial-gradient(ellipse 1000px 600px at 50% 0%, var(--primary-50), transparent 70%),
    var(--bg);
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 24px;
  max-width: 820px;
  color: var(--text);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 36px;
  line-height: 1.6;
}

.hero-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-center h1, .hero-center .lead { margin-left: auto; margin-right: auto; }

/* VIN input — big & prominent */
.vin-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.vin-hero:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), var(--shadow-xl);
}
.vin-hero .vin-icon {
  font-size: 22px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.vin-hero input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.5px;
  padding: 16px 4px;
  background: transparent;
  text-transform: uppercase;
  color: var(--text);
  min-width: 0;
}
.vin-hero input::placeholder { color: var(--text-faint); text-transform: none; letter-spacing: 0; }
.vin-hero button {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.vin-hero button:hover { background: var(--primary-hover); transform: translateY(-1px); }

.vin-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.vin-hint a { font-weight: 600; }

/* === HERO RESULT CARD (po VIN lookupu) === */

.hero-result {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s ease-out;
}

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

.hero-result.loading {
  text-align: center;
  padding: 48px 32px;
  font-size: 16px;
  color: var(--text-muted);
}
.hero-result.error {
  background: #fef2f2;
  border-color: #fecaca;
  text-align: center;
  color: #991b1b;
}
.hero-result.error strong { display: block; font-size: 18px; margin-bottom: 8px; }

.hr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.hr-head .veh-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  color: var(--text);
}
.hr-head .veh-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hr-head .veh-meta span::before {
  content: '·';
  margin-right: 12px;
  color: var(--text-faint);
}
.hr-head .veh-meta span:first-child::before { content: ''; margin: 0; }
.hr-head .veh-cat {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hr-stk {
  background: linear-gradient(135deg, var(--primary-50), #fff);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hr-stk .stk-icon { font-size: 36px; flex-shrink: 0; }
.hr-stk .stk-body { flex: 1; }
.hr-stk .stk-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.hr-stk .stk-date {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hr-stk .stk-status {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.hr-stk .stk-status.ok { color: var(--success); }
.hr-stk .stk-status.warn { color: var(--warning); }
.hr-stk .stk-status.danger { color: var(--danger); }

.hr-stk.danger { background: linear-gradient(135deg, #fef2f2, #fff); border-color: #fecaca; }
.hr-stk.warn { background: linear-gradient(135deg, #fffbeb, #fff); border-color: #fde68a; }

.hr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.hr-stat {
  background: var(--bg-3);
  border-radius: 10px;
  padding: 12px 14px;
}
.hr-stat .lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.hr-stat .val { font-size: 14px; font-weight: 600; color: var(--text); }

.hr-cta {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.hr-cta h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.3px;
}
.hr-cta p {
  font-size: 14px;
  margin: 0 0 16px;
  opacity: 0.95;
}
.hr-cta .btn-primary {
  background: #fff;
  color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hr-cta .btn-primary:hover { background: #f1f5f9; }

.hero-result button.reset {
  margin-top: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.hero-result button.reset:hover { color: var(--text); }

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === BUTTONS === */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--text-muted);
}


.btn-ghost {
  display: inline-block;
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 14px;
  text-decoration: underline;
}

.btn-danger {
  background: #fef2f2;
  color: #b91c1c !important;
  border: 1px solid #fecaca;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.btn-danger:hover { background: #fee2e2; }


.hint { color: var(--text-dim); font-size: 13px; margin-top: 14px; }

/* === TRUST PILLARS === */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.trust-item .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
.trust-item .lbl {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* === SECTIONS === */

.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.section.alt { background: var(--bg-2); }
.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 12px;
  color: var(--text);
}
.section h2.centered { text-align: center; }
.section .section-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 56px;
  max-width: 600px;
}
.section .section-lead.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-eyebrow.centered { text-align: center; }

/* === STEPS (how it works) === */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: all 0.2s;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.step .step-num {
  position: absolute;
  top: -16px;
  left: 28px;
  background: var(--primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-primary);
}
.step .step-icon { font-size: 38px; margin-bottom: 14px; display: block; }
.step h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.step p { color: var(--text-muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* === FEATURES === */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  transition: all 0.2s;
}
.feature:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  font-size: 30px;
  margin-bottom: 14px;
  display: inline-block;
  width: 52px;
  height: 52px;
  line-height: 52px;
  background: var(--primary-50);
  border-radius: 12px;
  text-align: center;
}
.feature h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.feature p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* === ALTERNATING SPLIT SECTIONS (Carvertical-style) === */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 80px 0;
}
.split.reverse > :first-child { order: 2; }
.split-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}
.split-text p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 12px; }
.split-text .checklist { list-style: none; padding: 0; margin: 20px 0; }
.split-text .checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  color: var(--text);
  font-size: 15px;
}
.split-text .checklist li::before {
  content: '✓';
  background: var(--primary);
  color: #fff;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.split-visual {
  background: linear-gradient(135deg, var(--primary-50), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-visual.mock-card {
  background:
    radial-gradient(ellipse 400px 200px at 30% 30%, var(--primary-light), transparent),
    linear-gradient(135deg, #f8fafc, #fff);
}

/* Mock dashboard card preview */
.mock-vehicle {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  width: 100%;
  max-width: 340px;
}
.mock-vehicle .mvh {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px; margin-bottom: 14px;
}
.mock-vehicle .mvh-title { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.mock-vehicle .mvh-meta { font-size: 12px; color: var(--text-dim); }
.mock-vehicle .mv-evt {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.mock-vehicle .mv-evt:last-child { border-bottom: none; }
.mock-vehicle .mv-evt .em { font-size: 20px; }
.mock-vehicle .mv-evt .lbl { flex: 1; font-size: 13px; font-weight: 600; }
.mock-vehicle .mv-evt .pill {
  background: var(--primary-light); color: var(--primary);
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.mock-vehicle .mv-evt .pill.warn { background: #fef3c7; color: #92400e; }
.mock-vehicle .mv-evt .pill.danger { background: #fee2e2; color: #b91c1c; }

/* === PRICING === */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
  content: 'NEJOBLÍBENĚJŠÍ';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.price-tagline { font-size: 13px; color: var(--text-muted); margin: 0 0 24px; }
.price-amount {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -1.5px;
  color: var(--text);
}
.price-amount .currency {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 600;
}
.price-period { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }
.price-features { list-style: none; padding: 0; margin: 0 0 32px; }
.price-features li {
  font-size: 14px;
  padding: 8px 0;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.price-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}
.price-card .btn-primary,
.price-card .btn-secondary { width: 100%; justify-content: center; margin-top: auto; }

/* === FAQ === */

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: all 0.15s;
}
.faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.faq summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  outline: none;
  padding-right: 28px;
  position: relative;
  color: var(--text);
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 14px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* === CTA BAR === */

.cta-bar {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  padding: 80px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 0 auto;
  max-width: 980px;
}
.cta-bar h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -1px;
}
.cta-bar p {
  font-size: 17px;
  margin: 0 0 28px;
  opacity: 0.95;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-bar .btn-primary {
  background: #fff;
  color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta-bar .btn-primary:hover { background: #f1f5f9; }

/* === TESTIMONIALS === */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.testimonial .stars { color: #fbbf24; font-size: 16px; margin-bottom: 12px; }
.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial .author .avatar {
  width: 36px; height: 36px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonial .author .name { font-weight: 600; font-size: 14px; color: var(--text); }
.testimonial .author .role { font-size: 12px; color: var(--text-dim); }

/* === FOOTER === */

.footer {
  padding: 60px 0 40px;
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--primary); }
.footer p { margin: 8px 0; line-height: 1.7; }
.footer .small { font-size: 12px; color: var(--text-dim); margin-top: 16px; }

/* === FORMS === */

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin: 16px 0 6px;
}
.form-row { margin-bottom: 14px; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* === AUTH PAGES (light) === */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 600px 400px at 50% 0%, var(--primary-50), transparent 70%),
    var(--bg);
}
.auth-wrap {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 24px;
  width: 100%;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.5px; }
.auth-card .lead { color: var(--text-muted); margin: 0 0 28px; font-size: 15px; }
.auth-card .btn-primary { width: 100%; justify-content: center; margin-top: 18px; }
.auth-card .links { margin-top: 24px; font-size: 14px; color: var(--text-muted); text-align: center; }

/* === DASHBOARD (dark, unchanged) === */

body.dashboard {
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, var(--primary-50), transparent 70%),
    var(--bg);
}
.dash-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.dash-header .container { display: flex; align-items: center; justify-content: space-between; }
.dash-header .topnav .user-email { color: var(--text-muted); font-size: 14px; }
.dash-main { padding: 40px 0 80px; }

.dash-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.summary-card .label {
  font-size: 12px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.summary-card .value { font-size: 28px; font-weight: 800; color: var(--text); }
.summary-card .value .small { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.dash-section { margin-bottom: 40px; }
.dash-section-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.dash-section-head h2 { font-size: 20px; margin: 0; }

/* Vehicle cards (dashboard) */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.vehicle-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.vehicle-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.vehicle-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.vh-nick { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.vh-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.vh-actions { display: flex; gap: 6px; }
.vh-actions button {
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 12px;
}
.vh-actions button:hover { color: var(--text); border-color: var(--primary); }

.events-list { padding: 12px 0; }
.event-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: none; }
.event-icon { font-size: 22px; }
.event-info { flex: 1; min-width: 0; }
.event-title { font-weight: 600; font-size: 14px; margin: 0; }
.event-date { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.event-countdown {
  background: var(--bg-2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.event-countdown.danger  { background: #fee2e2; color: #b91c1c; }
.event-countdown.warning { background: #fef3c7; color: #92400e; }
.event-countdown.ok      { background: #d1fae5; color: #065f46; }
.event-row .ev-trash {
  background: transparent; border: none; color: var(--text-dim); cursor: pointer;
  padding: 4px 6px; font-size: 14px;
}
.event-row .ev-trash:hover { color: #b91c1c; }

.add-event-btn {
  display: block;
  width: calc(100% - 44px);
  margin: 0 22px 18px;
  padding: 10px;
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.add-event-btn:hover { border-color: var(--primary); color: var(--primary-hover); }

.empty-state {
  background: #fff;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { color: var(--text-muted); margin: 0 0 24px; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-xl);
}
.modal h2 { margin: 0 0 16px; font-size: 22px; }
.modal-close {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 24px; cursor: pointer; float: right; line-height: 1;
}
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-progress { display: flex; gap: 4px; margin-bottom: 20px; }
.wizard-progress span { flex: 1; height: 4px; background: var(--border); border-radius: 2px; }
.wizard-progress span.active { background: var(--primary); }

.banner {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin: 12px 0;
}
.banner-info {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  color: var(--primary);
}
.banner-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.banner-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tier-badge.free        { background: #e2e8f0; color: #475569; }
.tier-badge.premium     { background: var(--primary-light); color: var(--primary); }
.tier-badge.autoservice { background: #ede9fe; color: #6d28d9; }

@media (max-width: 768px) {
  .hero { padding: 40px 0 60px; }
  .section { padding: 60px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .vin-hero { flex-direction: column; padding: 16px; }
  .vin-hero button { width: 100%; }
  .topbar .container { height: 60px; }
  .topnav { gap: 16px; }
  .topnav a:not(.btn-nav) { display: none; }
}
