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

/* ============================================
   CSS Custom Properties — Design Tokens
   ============================================ */
:root {
  /* Background layers */
  --bg-primary: #06060b;
  --bg-secondary: #0d0d14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-card-solid: #111119;

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #8a8a9a;
  --text-tertiary: #55556a;
  --text-accent: #00d4aa;

  /* Accent colors */
  --accent-primary: #00d4aa;
  --accent-secondary: #0088ff;
  --accent-gradient: linear-gradient(135deg, #00d4aa, #0088ff);
  --accent-gradient-reverse: linear-gradient(135deg, #0088ff, #00d4aa);
  --accent-orange: #ff6b35;
  --accent-red: #ef4444;
  --accent-green: #22c55e;
  --accent-yellow: #eab308;

  /* Kentekenplaat */
  --plate-yellow: #f0b504;
  --plate-blue: #003399;
  --plate-border: #000000;

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.15);
  --shadow-glow-blue: 0 0 30px rgba(0, 136, 255, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

::selection {
  background: rgba(0, 212, 170, 0.3);
  color: var(--text-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-secondary); }

img { max-width: 100%; height: auto; }

.hidden { display: none !important; }

/* ============================================
   Background Effects
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0, 136, 255, 0.05), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(0, 212, 170, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Layout Container
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(6, 6, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: var(--space-sm) 0;
  background: rgba(6, 6, 11, 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo .logo-icon {
  font-size: 1.5rem;
}

.nav-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}


/* ============================================
   Website Logo
   ============================================ */
.logo-img {
  display: block;
  width: 320px;
  height: auto;
  max-width: 42vw;
  object-fit: contain;
}

.nav-logo:hover .logo-img {
  transform: scale(1.025);
  filter: drop-shadow(0 6px 20px rgba(239, 68, 68, 0.22));
}

.navbar.scrolled .logo-img {
  width: 260px;
  height: auto;
}

@media (max-width: 768px) {
  .logo-img {
    width: 220px;
    height: auto;
    max-width: 66vw;
  }

  .navbar.scrolled .logo-img {
    width: 190px;
    height: auto;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================
   License Plate Input
   ============================================ */
.plate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.plate-input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 340px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--plate-border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(240, 181, 4, 0.2);
  transition: box-shadow var(--transition-base), transform var(--transition-spring);
}

.plate-input-wrapper:focus-within {
  box-shadow: var(--shadow-lg), 0 0 60px rgba(240, 181, 4, 0.35);
  transform: scale(1.02);
}

.plate-eu-strip {
  width: 42px;
  min-width: 42px;
  background: var(--plate-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0;
}

.plate-eu-strip .eu-stars {
  font-size: 10px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
}

.plate-eu-strip .eu-country {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.plate-input {
  flex: 1;
  background: var(--plate-yellow);
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 3px;
  /* Compensate for 42px EU strip on the left so text is truly centered */
  padding: 0 var(--space-md);
  padding-left: 0;
  padding-right: 42px;
}

.plate-input::placeholder {
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: 3px;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-width: 240px;
  height: 52px;
}

.search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.search-btn:hover::before {
  left: 100%;
}

.search-btn:active {
  transform: translateY(0);
}

.search-btn .btn-icon {
  font-size: 1.1rem;
}

.hero-trust {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.stat-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Results Section
   ============================================ */
.results-section {
  padding: calc(80px + var(--space-xl)) 0 var(--space-3xl);
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-xl);
}

.back-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

#results-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ============================================
   Result Cards
   ============================================ */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  animation: slideUp 0.5s ease forwards;
  opacity: 0;
  transition: border-color var(--transition-base);
}

.result-card:hover {
  border-color: rgba(0, 212, 170, 0.15);
}

.result-card-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.result-card-header .card-icon {
  font-size: 1.4rem;
}

.result-card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-card-body {
  padding: var(--space-xl);
}

/* ============================================
   Hero Card (top result)
   ============================================ */
.hero-card {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(0, 136, 255, 0.08));
  border-color: rgba(0, 212, 170, 0.2);
}

.hero-card .result-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-card-top {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}

.hero-card-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-card-right {
  width: 100%;
}

.vehicle-make-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand-logo-img {
  height: 38px;
  max-width: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.vehicle-image-container {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.vehicle-image-container.has-image {
  border-color: rgba(0, 212, 170, 0.3);
}

.vehicle-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-image-container:hover .vehicle-photo {
  transform: scale(1.05);
}

.vehicle-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.photo-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.wiki-credit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.wiki-credit:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.9);
}

.vehicle-description {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--glass-border);
}

.wiki-extract {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.wiki-link {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* ============================================
   Status Overview Grid
   ============================================ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.status-item:nth-child(3n) {
  border-right: none;
}

.status-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.status-info {
  display: flex;
  flex-direction: column;
}

.status-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.status-value {
  font-size: 0.9rem;
  font-weight: 700;
}

.status-good .status-value { color: var(--accent-green); }
.status-warning .status-value { color: var(--accent-yellow); }
.status-bad .status-value { color: var(--accent-red); }

@media (max-width: 900px) {
  .hero-card-top {
    grid-template-columns: 1fr;
  }
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .status-item:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
  }
  .status-item:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
  .status-item {
    border-right: none !important;
  }
}


/* ============================================
   Quick Stats Row
   ============================================ */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.quick-stat-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  animation: slideUp 0.5s ease forwards;
  opacity: 0;
  transition: all var(--transition-base);
}

.quick-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 170, 0.2);
}

.quick-stat-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.quick-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.quick-stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
  font-weight: 500;
}

/* Row 2: 5-column vehicle spec stats */
.quick-stats-row2 {
  grid-template-columns: repeat(5, 1fr);
  margin-top: calc(var(--space-md) * -0.25);
}

.quick-stats-row2 .quick-stat-card {
  padding: var(--space-md) var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.quick-stats-row2 .quick-stat-icon {
  font-size: 1.1rem;
}

.quick-stats-row2 .quick-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.quick-stats-row2 .quick-stat-label {
  font-size: 0.72rem;
}

/* ============================================
   Data Rows (inside cards)
   ============================================ */
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.data-grid.single-col {
  grid-template-columns: 1fr;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

.data-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.data-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* ============================================
   APK Status
   ============================================ */
.apk-status-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.apk-status-bar.valid {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.apk-status-bar.expired {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.apk-status-icon {
  font-size: 2rem;
}

.apk-status-text h3 {
  font-size: 1rem;
  font-weight: 700;
}

.apk-status-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.apk-status-bar.valid h3 { color: var(--accent-green); }
.apk-status-bar.expired h3 { color: var(--accent-red); }

.gebreken-list {
  list-style: none;
}

.gebreken-item {
  padding: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gebreken-item:last-child { border-bottom: none; }

.gebreken-item .gebrek-text { color: var(--text-secondary); }
.gebreken-item .gebrek-date {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* ============================================
   Zuinigheidslabel & Badges
   ============================================ */
.zuinigheid-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.zuinigheid-A { background: #00873e; }
.zuinigheid-B { background: #4caf50; }
.zuinigheid-C { background: #8bc34a; }
.zuinigheid-D { background: #cddc39; color: #000; }
.zuinigheid-E { background: #ff9800; }
.zuinigheid-F { background: #f44336; }
.zuinigheid-G { background: #b71c1c; }

.euro-norm-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid rgba(0, 136, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

.wam-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.wam-badge.active {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent-green);
}

.wam-badge.inactive {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

/* ============================================
   Terugroepactie indicator
   ============================================ */
.recall-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.recall-badge.active {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--accent-yellow);
}

.recall-badge.none {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent-green);
}

/* ============================================
   Loading Section
   ============================================ */
.loading-section {
  padding: calc(80px + var(--space-xl)) 0 var(--space-3xl);
  min-height: 100vh;
}

.loading-text {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  font-size: 1rem;
  animation: pulse 1.5s ease infinite;
}

.skeleton-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  overflow: hidden;
  position: relative;
}

.skeleton-line {
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.skeleton-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.5s ease infinite;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long { width: 85%; }
.skeleton-line.full { width: 100%; }
.skeleton-line.thick { height: 28px; }

/* ============================================
   Error Section
   ============================================ */
.error-section {
  padding: calc(80px + var(--space-xl)) 0 var(--space-3xl);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
  max-width: 400px;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.error-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

#error-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.retry-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-content p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-content a {
  color: var(--text-secondary);
}

.footer-content a:hover {
  color: var(--accent-primary);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Staggered animation delays for result cards */
.result-card:nth-child(1) { animation-delay: 0.0s; }
.result-card:nth-child(2) { animation-delay: 0.08s; }
.result-card:nth-child(3) { animation-delay: 0.16s; }
.result-card:nth-child(4) { animation-delay: 0.24s; }
.result-card:nth-child(5) { animation-delay: 0.32s; }
.result-card:nth-child(6) { animation-delay: 0.40s; }
.result-card:nth-child(7) { animation-delay: 0.48s; }
.result-card:nth-child(8) { animation-delay: 0.56s; }

.quick-stat-card:nth-child(1) { animation-delay: 0.05s; }
.quick-stat-card:nth-child(2) { animation-delay: 0.12s; }
.quick-stat-card:nth-child(3) { animation-delay: 0.19s; }
.quick-stat-card:nth-child(4) { animation-delay: 0.26s; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-stats-row2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .plate-input-wrapper {
    width: 100%;
    max-width: 320px;
    height: 64px;
  }

  .plate-input {
    font-size: 1.5rem;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-card .result-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .hero-card .vehicle-make {
    font-size: 1.4rem;
  }

  .result-card-header {
    padding: var(--space-md) var(--space-lg);
  }

  .result-card-body {
    padding: var(--space-lg);
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .quick-stats-row2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .quick-stat-value {
    font-size: 1.3rem;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ============================================
   Timeline Component
   ============================================ */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  padding-left: 28px;
  margin-top: var(--space-sm);
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 12px;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
}

.timeline-badge {
  position: absolute;
  left: -28px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 2;
}

.timeline-content {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.timeline-warning .timeline-content {
  border-color: rgba(234, 179, 8, 0.3);
  background: rgba(234, 179, 8, 0.05);
}

.timeline-highlight .timeline-content {
  border-color: rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.05);
}

/* ============================================
   Market Links Grid
   ============================================ */
.market-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-md);
}

.market-link-btn {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-base);
  text-decoration: none;
}

.market-link-btn span {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.market-link-btn small {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.market-link-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.market-link-btn.markt-google:hover {
  border-color: #4285F4;
  box-shadow: 0 0 25px rgba(66, 133, 244, 0.2);
}

.market-link-btn.markt-marktplaats:hover {
  border-color: #ff6e00;
  box-shadow: 0 0 25px rgba(255, 110, 0, 0.2);
}

.market-link-btn.markt-gaspedaal:hover {
  border-color: #00d4aa;
  box-shadow: 0 0 25px rgba(0, 212, 170, 0.2);
}

.market-link-btn.markt-autoscout:hover {
  border-color: #ffce00;
  box-shadow: 0 0 25px rgba(255, 206, 0, 0.2);
}

.market-link-btn.markt-finnik:hover {
  border-color: #0088ff;
  box-shadow: 0 0 25px rgba(0, 136, 255, 0.2);
}

/* ============================================
   Explainer Grid
   ============================================ */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.explainer-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.explainer-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.explainer-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   Koopscore Badge & Grid Component
   ============================================ */
.koopscore-badge-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.koopscore-circle {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 50%;
  border: 4px solid var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.koopscore-number {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.koopscore-max {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 600;
}

.koopscore-headline h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.koopscore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.koopscore-box {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.koopscore-box.pros-box {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.2);
}

.koopscore-box.cons-box {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.2);
}

.koopscore-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.koopscore-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.koopscore-box li {
  font-size: 0.83rem;
  line-height: 1.4;
}

.pros-box li { color: #86efac; }
.cons-box li { color: #fca5a5; }

/* ============================================
   Tellerstand & Oordeel Component
   ============================================ */
.teller-oordeel-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.teller-oordeel-box .teller-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.teller-oordeel-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.teller-oordeel-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.oordeel-logisch {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.oordeel-logisch h3 strong { color: var(--accent-green); }

.oordeel-onlogisch {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.oordeel-onlogisch h3 strong { color: var(--accent-red); }

.oordeel-geen {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.3);
}

.oordeel-geen h3 strong { color: var(--accent-yellow); }

.apk-status-bar.warning-bar {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.apk-status-bar.warning-bar h3 {
  color: var(--accent-yellow);
}

/* ============================================
   Results Top Bar & Quick Search
   ============================================ */
.results-top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  width: 100%;
}

.results-top-bar .back-btn {
  margin-bottom: 0;
  justify-self: start;
}

.results-quick-search {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-self: center;
}

.mini-plate {
  width: 220px !important;
  height: 44px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: var(--plate-yellow, #fdb913) !important;
  border: 2px solid #000 !important;
  flex-shrink: 0 !important;
}

.mini-plate .plate-eu-strip {
  width: 24px !important;
  min-width: 24px !important;
  height: 100% !important;
  padding: 2px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--plate-blue, #003399) !important;
}

.mini-plate .plate-eu-strip .eu-stars {
  font-size: 6px !important;
  line-height: 1 !important;
  color: #fff !important;
}

.mini-plate .plate-eu-strip .eu-country {
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #fff !important;
  margin-top: 1px !important;
}

.mini-plate .plate-input {
  flex: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  font-family: 'JetBrains Mono', monospace, sans-serif !important;
  letter-spacing: 1px !important;
  padding: 0 6px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  border: none !important;
  background: transparent !important;
  color: #000 !important;
  outline: none !important;
}

.mini-plate .plate-input::placeholder {
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
  color: rgba(0, 0, 0, 0.45) !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

.mini-btn {
  min-width: auto !important;
  height: 44px !important;
  padding: 0 var(--space-md) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-md) !important;
  background: var(--accent-gradient) !important;
  color: #06060b !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  transition: all var(--transition-fast) !important;
  flex-shrink: 0 !important;
}

.mini-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-glow) !important;
}

/* ============================================
   Redesigned Search History Component
   ============================================ */
.search-history-wrapper {
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 600px;
  background: rgba(13, 13, 20, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-left: auto;
  margin-right: auto;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: var(--space-xs);
}

.clear-history-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.clear-history-btn:hover {
  color: #ff4d4d;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
}

.history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.history-chip-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.history-chip-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary, #00d4aa);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25);
}

.mini-plate-badge {
  display: flex;
  align-items: center;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid #000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.mini-eu-blue {
  width: 14px;
  background: var(--plate-blue, #003399);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.mini-plate-text {
  background: var(--plate-yellow, #fdb913);
  color: #000000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0 6px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.mini-chip-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mini-chip-model {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.mini-chip-year {
  font-size: 0.72rem;
  color: var(--text-secondary, #94a3b8);
  font-weight: 500;
}

/* ============================================
   Mobile Responsive Rules (max-width: 640px)
   ============================================ */
@media (max-width: 640px) {
  .results-top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
  }

  .results-top-bar .back-btn {
    align-self: flex-start;
  }

  .results-quick-search {
    width: 100%;
    justify-content: center;
    gap: var(--space-xs);
  }

  .mini-plate {
    flex: 1 !important;
    max-width: 220px !important;
  }

  .search-history-wrapper {
    padding: var(--space-md);
  }

  .history-chips {
    gap: var(--space-xs);
  }

  .history-chip-card {
    padding: 5px 10px 5px 5px;
  }
}

/* Full-Width Banner Hero Card */
.full-banner-hero {
  padding: 0 !important;
  overflow: hidden;
}

.hero-image-banner-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background: var(--bg-card-solid);
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.hero-image-banner-wrapper .vehicle-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-image-banner-wrapper .wiki-credit {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hero-image-banner-wrapper .wiki-credit:hover {
  background: var(--accent-primary);
  color: #000;
}

.hero-card-body-stacked {
  padding: var(--space-lg) var(--space-xl) !important;
}

@media (max-width: 640px) {
  .hero-image-banner-wrapper {
    height: 240px;
  }
}

/* ============================================
   Homepage Top Bars & Trust Badges
   ============================================ */

.compare-alert-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
}

.compare-alert-bar strong {
  color: #ffffff;
  text-decoration: underline;
}

.popular-today-bar {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  /* Prevent bar from causing horizontal scroll on page */
  overflow: hidden;
  width: 100%;
}

.popular-header {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 var(--space-md);
}

.popular-fire {
  font-size: 1rem;
}

/* Wrapper provides the fade-edge effect on mobile */
.popular-chips-scroller {
  position: relative;
  width: 100%;
}

.popular-chips-scroller::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(10,10,15,0.95));
  pointer-events: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.popular-chips {
  display: flex;
  flex-wrap: wrap;            /* Desktop: wrap to multiple rows */
  justify-content: center;
  gap: var(--space-xs);
  margin-top: 4px;
  padding: 2px 4px;
}

.popular-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;        /* Never break chip text */
  flex-shrink: 0;
}

.popular-chip:hover {
  background: rgba(0, 212, 170, 0.12);
  border-color: rgba(0, 212, 170, 0.4);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Active chip (merk al gezocht) */
.popular-chip.chip-active {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.5);
  color: var(--accent-primary);
}

.chip-count {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.popular-chip.chip-active .chip-count {
  color: var(--accent-primary);
  font-weight: 700;
}

.hero-trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   3x3 Feature Grid & Counter Badge
   ============================================ */

.features-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .features-grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid-3x3 {
    grid-template-columns: 1fr;
  }
}

.feature-card-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.feature-card-item:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 212, 170, 0.1);
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.feature-card-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.feature-card-item p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checks-counter-badge {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  display: inline-block;
  margin: 0 auto;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

.pulse-green {
  color: #22c55e;
  font-size: 1.1rem;
}

/* ============================================
   Why Us & 3-Step Process & Data Sources
   ============================================ */

.why-us-section {
  padding: var(--space-2xl) 0;
}

.why-us-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.why-us-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.why-us-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.why-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.why-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.why-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.how-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .how-steps-grid {
    grid-template-columns: 1fr;
  }
}

.how-step-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
}

.step-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ef4444;
  display: block;
  margin-bottom: var(--space-xs);
}

.how-step-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.how-step-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.datasources-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.ds-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.ds-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.ds-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.ds-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.ds-list li::before {
  content: "•";
  color: var(--accent-primary);
  position: absolute;
  left: 0;
}

.ds-list strong {
  color: var(--text-primary);
}

.ds-disclaimer {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.pc-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.pc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pc-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* ============================================
   Popular Brands & FAQ Accordions
   ============================================ */

.faq-section {
  padding: var(--space-2xl) 0;
}

.brands-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.brands-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.brand-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.faq-main-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-primary);
}

.faq-question {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 4px;
}

/* ============================================
   Compare Section Modal & Side-by-Side Table
   ============================================ */
.compare-alert-bar {
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.compare-alert-bar:hover {
  transform: scale(1.02);
  background: rgba(0, 212, 170, 0.15);
}

.compare-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 6, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.compare-modal-content {
  position: relative;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  background: var(--bg-card-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.compare-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.compare-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.compare-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.compare-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.compare-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.compare-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.compare-inputs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.compare-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compare-input-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.mini-compare-plate {
  width: 200px;
  height: 52px;
}

.mini-compare-plate .plate-input {
  font-size: 1.2rem;
}

.compare-vs-badge {
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent-primary);
  padding: 6px 12px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 50%;
  margin-top: 18px;
}

.compare-submit-btn {
  margin-top: 18px;
  height: 52px;
  min-width: 180px;
}

.compare-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.sample-compare-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sample-compare-chip:hover {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent-primary);
  border-color: rgba(0, 212, 170, 0.3);
}

.compare-loading, .compare-error {
  text-align: center;
  padding: var(--space-xl);
  font-size: 0.95rem;
}

.compare-error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.compare-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  font-size: 0.88rem;
  vertical-align: middle;
}

.compare-table th:last-child, .compare-table td:last-child {
  border-right: none;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.compare-vehicle-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.winner-cell {
  background: rgba(34, 197, 94, 0.08) !important;
  color: #4ade80 !important;
  font-weight: 700;
}

.koopscore-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #000;
}

/* Compare Table Authentic License Plate Badge */
.compare-plate-graphic {
  display: inline-flex;
  align-items: center;
  height: 36px;
  background: #f0b504;
  border: 2px solid #000000;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin: 0 auto var(--space-xs) auto;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-weight: 800;
}

.compare-plate-eu {
  background: #2b4c9c;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  border-right: 1.5px solid #000000;
}

.compare-plate-text {
  color: #000000;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0 10px;
  text-transform: uppercase;
}

/* View Full Vehicle Report Button */
.view-full-rapport-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-sm);
  padding: 8px 16px;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.4);
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  max-width: 220px;
}

.view-full-rapport-btn:hover {
  background: var(--accent-primary);
  color: #000000;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
  transform: translateY(-1px);
}




