/* ============================================
   BMW VIN Decoder - Stylesheet
   Clean BMW M-inspired redesign
   ============================================ */

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

html,
body {
  margin: 0;
  padding: 0;
  background: #0a0d11;
}

.bmw-vin-decoder {
  --m-light-blue: #6dcff6;
  --m-dark-blue: #1f4b99;
  --m-red: #e64b4b;
  --bg: #090c10;
  --bg-elevated: #10161d;
  --panel: rgba(17, 23, 31, 0.78);
  --panel-strong: rgba(13, 18, 24, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f6f8;
  --muted: #98a5b3;
  --muted-strong: #b7c2cc;
  --success: #59c887;
  --error: #ff6a6a;
  --warning: #ffb347;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 20px 64px rgba(0, 0, 0, 0.42);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s ease;
}

.bmw-vin-decoder *,
.bmw-vin-decoder *::before,
.bmw-vin-decoder *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bmw-vin-decoder {
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    linear-gradient(180deg, #0a0d11 0%, #0d1218 42%, #0a0d11 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bmw-vin-decoder::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 72px),
    linear-gradient(rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 72px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.bmw-vin-decoder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 4px;
  background: linear-gradient(90deg, var(--m-light-blue) 0 33%, var(--m-dark-blue) 33% 66%, var(--m-red) 66% 100%);
  z-index: 2;
}

.bmw-vin-decoder > * {
  position: relative;
  z-index: 1;
}

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

.bmw-vd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(8, 11, 15, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.bmw-vd-header.bmw-vd-header--scrolled {
  background: rgba(8, 11, 15, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.bmw-vd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bmw-vd-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.bmw-vd-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 42%, transparent 43%),
    conic-gradient(from 0deg, #ffffff 0 90deg, #68c4f5 90deg 180deg, #ffffff 180deg 270deg, #68c4f5 270deg 360deg);
  box-shadow: inset 0 0 0 4px #0b0f13;
}

.bmw-vd-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.bmw-vd-logo-text span {
  font-size: 0.95rem;
  color: var(--muted-strong);
  letter-spacing: 0.12em;
}

.bmw-vd-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.bmw-vd-nav-links a {
  position: relative;
  padding: 10px 14px;
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.bmw-vd-nav-links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--m-light-blue), var(--m-dark-blue), var(--m-red));
  transition: transform var(--transition-fast);
}

.bmw-vd-nav-links a:hover,
.bmw-vd-nav-links a:focus-visible {
  color: var(--text);
}

.bmw-vd-nav-links a:hover::after,
.bmw-vd-nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.bmw-vd-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.bmw-vd-menu-btn svg {
  width: 22px;
  height: 22px;
}

.bmw-vd-hero {
  --hero-beam-x: 67%;
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 92px 0 92px;
  overflow: hidden;
  background: transparent;
}

.bmw-vd-hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bmw-vd-hero-atmosphere::before {
  display: none;
}

.bmw-vd-hero-beam {
  position: absolute;
  top: -72px;
  bottom: 152px;
  left: var(--hero-beam-x);
  width: 96px;
  transform: translateX(-50%);
}

.bmw-vd-hero-beam::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 244, 208, 0.08), rgba(255, 196, 70, 0.03));
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  mask: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  box-shadow:
    0 0 4px rgba(255, 236, 184, 0.12),
    0 0 8px rgba(255, 189, 58, 0.08);
  opacity: 0.42;
}

.bmw-vd-hero-beam::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg,
      rgba(255, 249, 228, 0.98) 0%,
      rgba(255, 220, 120, 0.98) 24%,
      rgba(255, 184, 44, 0.94) 68%,
      rgba(255, 136, 22, 0.9) 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  mask: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  box-shadow:
    0 0 6px rgba(255, 248, 220, 0.34),
    0 0 12px rgba(255, 213, 104, 0.2),
    0 0 18px rgba(255, 170, 34, 0.1);
  clip-path: inset(0 0 100% 0);
  animation: bmwLedCascade 2.8s steps(28, end) infinite;
}

.bmw-vd-hero-flare {
  position: absolute;
  left: var(--hero-beam-x);
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.92;
}

.bmw-vd-hero-flare--top {
  display: none;
}

.bmw-vd-hero-flare--bottom {
  display: none;
}

.bmw-vd-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  grid-template-areas:
    "copy spacer"
    "console console";
  row-gap: clamp(116px, 18vh, 168px);
  align-items: start;
  z-index: 2;
}

.bmw-vd-hero-copy {
  grid-area: copy;
  max-width: 620px;
  text-align: left;
}

.bmw-vd-hero h1 {
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-size: clamp(3.7rem, 7vw, 5.9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.bmw-vd-hero h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 88%;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(109, 207, 246, 0.92) 24%,
      rgba(31, 75, 153, 0.86) 58%,
      rgba(230, 75, 75, 0.8) 82%,
      rgba(255, 255, 255, 0) 100%);
  box-shadow:
    0 0 8px rgba(109, 207, 246, 0.16),
    0 0 14px rgba(31, 75, 153, 0.14),
    0 0 18px rgba(230, 75, 75, 0.1);
}

.bmw-vd-gradient-text {
  background: linear-gradient(90deg, #f8fbff 0%, var(--m-light-blue) 18%, #4f86ff 58%, #7287ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bmw-vd-hero-subtitle {
  max-width: 520px;
  color: rgba(243, 246, 248, 0.76);
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  line-height: 1.75;
  text-wrap: balance;
}

.bmw-vd-hero-console {
  grid-area: console;
  position: relative;
  max-width: 980px;
  margin-top: 8px;
}

.bmw-vd-hero-console::before {
  display: none;
}

.bmw-vd-input-section {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(15, 18, 24, 0.96), rgba(9, 12, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 64px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bmw-vd-input-section::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 214, 112, 0.82), rgba(255, 248, 224, 0.34) 32%, rgba(255, 184, 46, 0.72) 68%, rgba(255, 126, 22, 0.56));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.bmw-vd-input-section::after {
  display: none;
}

.bmw-vd-input-wrapper {
  display: flex;
  gap: 14px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.bmw-vd-input-group {
  position: relative;
  flex: 1;
}

.bmw-vd-input {
  width: 100%;
  min-height: 70px;
  padding: 20px 108px 20px 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  outline: none;
  background: rgba(6, 9, 13, 0.88);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.bmw-vd-input::placeholder {
  color: rgba(147, 159, 174, 0.82);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}

.bmw-vd-input:focus {
  border-color: rgba(109, 207, 246, 0.56);
  background: rgba(7, 10, 14, 0.96);
  box-shadow:
    0 0 0 1px rgba(109, 207, 246, 0.2),
    0 0 30px rgba(109, 207, 246, 0.12);
}

.bmw-vd-input.bmw-vd-input--valid {
  border-color: rgba(109, 207, 246, 0.74);
  box-shadow:
    0 0 0 1px rgba(109, 207, 246, 0.26),
    0 0 34px rgba(109, 207, 246, 0.16);
}

.bmw-vd-input.bmw-vd-input--invalid {
  border-color: rgba(230, 75, 75, 0.82);
  box-shadow:
    0 0 0 1px rgba(230, 75, 75, 0.22),
    0 0 26px rgba(230, 75, 75, 0.14);
}

.bmw-vd-input-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.54);
  pointer-events: none;
}

.bmw-vd-input-counter {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bmw-vd-input-counter.bmw-vd-input-counter--complete {
  color: var(--m-light-blue);
}

.bmw-vd-decode-btn {
  position: relative;
  min-width: 210px;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(74, 131, 255, 0.96), rgba(23, 80, 187, 0.98));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.bmw-vd-decode-btn::before {
  content: '';
  position: absolute;
  inset: auto 10% -42px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 207, 246, 0.42) 0%, rgba(31, 75, 153, 0.26) 44%, transparent 74%);
  filter: blur(18px);
}

.bmw-vd-decode-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.bmw-vd-decode-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 24px rgba(109, 207, 246, 0.24),
    0 0 38px rgba(31, 75, 153, 0.22),
    0 16px 34px rgba(0, 0, 0, 0.3);
  filter: saturate(1.08);
}

.bmw-vd-decode-btn:active {
  transform: translateY(0);
}

.bmw-vd-decode-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bmw-vd-decode-btn--pulse {
  box-shadow:
    0 0 18px rgba(109, 207, 246, 0.24),
    0 0 34px rgba(31, 75, 153, 0.18),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.bmw-vd-decode-btn--loading {
  pointer-events: none;
}

.bmw-vd-decode-btn--loading .bmw-vd-btn-text {
  opacity: 0;
}

.bmw-vd-decode-btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffffff;
  animation: bmwSpin 0.7s linear infinite;
}

.bmw-vd-input-hint {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
}

.bmw-vd-input-hint[hidden] {
  display: none;
}

.bmw-vd-input-hint--error {
  color: var(--error);
}

@keyframes bmwLedCascade {
  0% {
    clip-path: inset(0 0 100% 0);
    opacity: 0.18;
  }

  10% {
    opacity: 1;
  }

  58% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }

  76% {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }

  100% {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }
}

@keyframes bmwHeroPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

@keyframes bmwFaqNeonDrift {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scaleX(0.94);
    filter: blur(16px);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1.05);
    filter: blur(20px);
  }
}

@keyframes bmwFaqNeonLine {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) scaleX(0.88);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.04);
  }
}

.bmw-vd-results {
  display: none;
  padding: 28px 0 88px;
}

.bmw-vd-results.bmw-vd-results--visible {
  display: block;
  animation: bmwFadeInUp 0.45s ease-out;
}

.bmw-vd-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.bmw-vd-results-title h2,
.bmw-vd-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.bmw-vd-result-vin-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--m-light-blue);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.bmw-vd-result-vin-tag:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.bmw-vd-result-vin-tag svg {
  width: 15px;
  height: 15px;
}

.bmw-vd-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.bmw-vd-result-card,
.bmw-vd-breakdown-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bmw-vd-result-card {
  padding: 22px;
  opacity: 0;
  transform: translateY(18px);
  animation: bmwCardIn 0.45s ease-out forwards;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.bmw-vd-result-card:hover,
.bmw-vd-breakdown-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.bmw-vd-result-card--hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  background:
    linear-gradient(135deg, rgba(109, 207, 246, 0.08), rgba(31, 75, 153, 0.08) 60%, rgba(230, 75, 75, 0.06));
}

.bmw-vd-result-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bmw-vd-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--m-light-blue);
  flex-shrink: 0;
}

.bmw-vd-result-card-label,
.bmw-vd-positions,
.bmw-vd-section-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bmw-vd-result-card-value {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.bmw-vd-result-card-extra {
  color: var(--m-light-blue);
  font-size: 1.02rem;
  font-weight: 700;
}

.bmw-vd-result-card-sub {
  margin-top: 7px;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.bmw-vd-result-card-status--valid {
  color: var(--success);
}

.bmw-vd-result-card-status--invalid {
  color: var(--error);
}

.bmw-vd-breakdown,
.bmw-vd-faq {
  padding: 84px 0;
}

.bmw-vd-breakdown {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 16%, rgba(109, 207, 246, 0.1), transparent 22%),
    radial-gradient(circle at 22% 78%, rgba(31, 75, 153, 0.08), transparent 20%),
    radial-gradient(circle at 60% 70%, rgba(230, 75, 75, 0.05), transparent 18%);
}

.bmw-vd-breakdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.04), transparent 28%);
  pointer-events: none;
}

/* ---- Content / Guide Section ---- */

.bmw-vd-content {
  position: relative;
  padding: 84px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 22%, rgba(109, 207, 246, 0.06), transparent 20%),
    radial-gradient(circle at 78% 72%, rgba(31, 75, 153, 0.05), transparent 18%),
    radial-gradient(circle at 52% 48%, rgba(230, 75, 75, 0.03), transparent 16%);
}

.bmw-vd-content .bmw-vd-section-header {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-bottom: 38px;
}

.bmw-vd-content .bmw-vd-section-header h2 {
  position: relative;
  display: inline-block;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-transform: uppercase;
}

.bmw-vd-content .bmw-vd-section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 88%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(109, 207, 246, 0.92) 24%,
      rgba(31, 75, 153, 0.86) 58%,
      rgba(230, 75, 75, 0.8) 82%,
      rgba(255, 255, 255, 0) 100%);
  box-shadow:
    0 0 8px rgba(109, 207, 246, 0.14),
    0 0 14px rgba(31, 75, 153, 0.12),
    0 0 18px rgba(230, 75, 75, 0.08);
}

.bmw-vd-content .bmw-vd-section-header p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(243, 246, 248, 0.7);
  font-size: 1.04rem;
  line-height: 1.75;
}

.bmw-vd-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.bmw-vd-content-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 18, 24, 0.98), rgba(9, 12, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.bmw-vd-content-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(109, 207, 246, 0.38), rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.02));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.bmw-vd-content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(255, 255, 255, 0.03),
    0 22px 56px rgba(0, 0, 0, 0.42);
}

.bmw-vd-content-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 1px solid rgba(109, 207, 246, 0.22);
  border-radius: 14px;
  background: rgba(109, 207, 246, 0.06);
  color: var(--m-light-blue);
}

.bmw-vd-content-card:nth-child(2) .bmw-vd-content-card-icon {
  border-color: rgba(31, 75, 153, 0.3);
  background: rgba(31, 75, 153, 0.08);
  color: #4f86ff;
}

.bmw-vd-content-card:nth-child(3) .bmw-vd-content-card-icon {
  border-color: rgba(230, 75, 75, 0.22);
  background: rgba(230, 75, 75, 0.06);
  color: var(--m-red);
}

.bmw-vd-content-card:nth-child(4) .bmw-vd-content-card-icon {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.bmw-vd-content-card:nth-child(5) .bmw-vd-content-card-icon {
  border-color: rgba(109, 207, 246, 0.22);
  background: rgba(109, 207, 246, 0.06);
  color: var(--m-light-blue);
}

.bmw-vd-content-card:nth-child(6) .bmw-vd-content-card-icon {
  border-color: rgba(31, 75, 153, 0.3);
  background: rgba(31, 75, 153, 0.08);
  color: #4f86ff;
}

.bmw-vd-content-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.bmw-vd-content-card p {
  color: rgba(243, 246, 248, 0.68);
  font-size: 0.95rem;
  line-height: 1.78;
}

/* ---- End Content Section ---- */

.bmw-vd-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bmw-vd-faq .bmw-vd-section-header {
  max-width: 920px;
  margin-bottom: 34px;
}

.bmw-vd-faq .bmw-vd-section-header h2 {
  position: relative;
  display: inline-block;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-transform: uppercase;
  z-index: 1;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.06),
    0 0 18px rgba(109, 207, 246, 0.04);
}

.bmw-vd-faq .bmw-vd-section-header h2::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 58%;
  width: 110%;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(109, 207, 246, 0.12) 22%,
      rgba(31, 75, 153, 0.14) 56%,
      rgba(230, 75, 75, 0.1) 86%,
      rgba(255, 255, 255, 0) 100%);
  filter: blur(18px);
  opacity: 0.95;
  z-index: -2;
  animation: bmwFaqNeonDrift 6.2s ease-in-out infinite;
}

.bmw-vd-faq .bmw-vd-section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 88%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(109, 207, 246, 0.86) 24%,
      rgba(31, 75, 153, 0.84) 58%,
      rgba(230, 75, 75, 0.78) 82%,
      rgba(255, 255, 255, 0) 100%);
  box-shadow:
    0 0 10px rgba(109, 207, 246, 0.22),
    0 0 18px rgba(31, 75, 153, 0.18),
    0 0 24px rgba(230, 75, 75, 0.14);
  opacity: 0.95;
  z-index: -1;
  animation: bmwFaqNeonLine 4s ease-in-out infinite;
}

.bmw-vd-section-header {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.bmw-vd-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bmw-vd-section-label svg {
  color: var(--m-light-blue);
}

.bmw-vd-section-header p {
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 1rem;
}

.bmw-vd-breakdown .bmw-vd-section-header {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-bottom: 38px;
}

.bmw-vd-breakdown .bmw-vd-section-header h2 {
  position: relative;
  display: inline-block;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-transform: uppercase;
}

.bmw-vd-breakdown .bmw-vd-section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 88%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(109, 207, 246, 0.92) 24%,
      rgba(31, 75, 153, 0.86) 58%,
      rgba(230, 75, 75, 0.8) 82%,
      rgba(255, 255, 255, 0) 100%);
  box-shadow:
    0 0 8px rgba(109, 207, 246, 0.14),
    0 0 14px rgba(31, 75, 153, 0.12),
    0 0 18px rgba(230, 75, 75, 0.08);
}

.bmw-vd-breakdown .bmw-vd-section-header p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(243, 246, 248, 0.7);
  font-size: 1.04rem;
  line-height: 1.75;
}

.bmw-vd-breakdown-stage {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 50px;
  padding: 34px 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 20, 27, 0.96), rgba(9, 12, 17, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 22px 58px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bmw-vd-breakdown-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(109, 207, 246, 0.72), rgba(255, 255, 255, 0.22) 32%, rgba(31, 75, 153, 0.66) 68%, rgba(230, 75, 75, 0.48));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.bmw-vd-breakdown-stage::after {
  display: none;
}

.bmw-vd-vin-chars {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 28px;
  z-index: 1;
  overflow: visible;
  padding: 0 2px 4px;
}

.bmw-vd-vin-chars::before {
  display: none;
}

.bmw-vd-vin-char {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.98), rgba(10, 13, 18, 0.98));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.bmw-vd-vin-char::after {
  content: attr(data-pos);
  position: absolute;
  bottom: -22px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.bmw-vd-vin-char--wmi,
.bmw-vd-vin-char--vds,
.bmw-vd-vin-char--check,
.bmw-vd-vin-char--vis {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 3px 0 0 rgba(255, 255, 255, 0.28);
}

.bmw-vd-vin-char--wmi {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 3px 0 0 var(--m-light-blue),
    0 0 16px rgba(109, 207, 246, 0.08);
}

.bmw-vd-vin-char--vds {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 3px 0 0 var(--m-dark-blue),
    0 0 16px rgba(31, 75, 153, 0.08);
}

.bmw-vd-vin-char--check {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 3px 0 0 var(--m-red),
    0 0 16px rgba(230, 75, 75, 0.08);
}

.bmw-vd-vin-char--vis {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 3px 0 0 rgba(255, 255, 255, 0.86),
    0 0 14px rgba(255, 255, 255, 0.06);
}

.bmw-vd-vin-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.bmw-vd-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(243, 246, 248, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bmw-vd-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.bmw-vd-legend-dot--wmi { background: var(--m-light-blue); }
.bmw-vd-legend-dot--vds { background: var(--m-dark-blue); }
.bmw-vd-legend-dot--check { background: var(--m-red); }
.bmw-vd-legend-dot--vis { background: #ffffff; }

.bmw-vd-breakdown-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.bmw-vd-breakdown-grid::before {
  display: none;
}

.bmw-vd-breakdown-card {
  --card-accent: rgba(109, 207, 246, 0.88);
  --card-glow: rgba(109, 207, 246, 0.18);
  position: relative;
  grid-column: span 6;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 18, 24, 0.98), rgba(9, 12, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 18px rgba(255, 255, 255, 0.02),
    0 0 56px rgba(0, 0, 0, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.38);
  z-index: 1;
}

.bmw-vd-breakdown-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--card-accent), rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0.03));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.bmw-vd-breakdown-card::after {
  display: none;
}

.bmw-vd-breakdown-card--wmi {
  --card-accent: var(--m-light-blue);
  --card-glow: rgba(109, 207, 246, 0.24);
}

.bmw-vd-breakdown-card--wmi::after {
  left: -70px;
  bottom: 12px;
}

.bmw-vd-breakdown-card--vds {
  --card-accent: var(--m-dark-blue);
  --card-glow: rgba(31, 75, 153, 0.22);
}

.bmw-vd-breakdown-card--vds::after {
  right: -76px;
  bottom: 10px;
}

.bmw-vd-breakdown-card--check {
  --card-accent: var(--m-red);
  --card-glow: rgba(230, 75, 75, 0.18);
  grid-column: span 4;
}

.bmw-vd-breakdown-card--check::after {
  left: -70px;
  bottom: 24px;
}

.bmw-vd-breakdown-card--vis {
  --card-accent: rgba(255, 255, 255, 0.88);
  --card-glow: rgba(255, 255, 255, 0.14);
  grid-column: span 8;
}

.bmw-vd-breakdown-card--vis::after {
  right: -82px;
  bottom: 18px;
}

.bmw-vd-breakdown-card--wmi .bmw-vd-breakdown-code,
.bmw-vd-breakdown-card--wmi h3 {
  color: var(--m-light-blue);
}

.bmw-vd-breakdown-card--vds .bmw-vd-breakdown-code,
.bmw-vd-breakdown-card--vds h3 {
  color: #4f86ff;
}

.bmw-vd-breakdown-card--check .bmw-vd-breakdown-code,
.bmw-vd-breakdown-card--check h3 {
  color: var(--m-red);
}

.bmw-vd-breakdown-card--vis .bmw-vd-breakdown-code,
.bmw-vd-breakdown-card--vis h3 {
  color: #ffffff;
}

.bmw-vd-breakdown-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.bmw-vd-breakdown-code {
  min-width: 52px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.06em;
}

.bmw-vd-breakdown-card h3 {
  margin-bottom: 2px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bmw-vd-positions {
  margin-bottom: 0;
}

.bmw-vd-breakdown-card p {
  color: rgba(243, 246, 248, 0.72);
  max-width: 40ch;
  font-size: 0.98rem;
  line-height: 1.75;
}

.bmw-vd-breakdown-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(255, 255, 255, 0.03),
    0 22px 56px rgba(0, 0, 0, 0.42);
}

.bmw-vd-faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bmw-vd-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bmw-vd-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border: none;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.bmw-vd-faq-question:hover {
  color: var(--m-light-blue);
}

.bmw-vd-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.bmw-vd-faq-icon svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.bmw-vd-faq-item.bmw-vd-faq-item--open .bmw-vd-faq-icon {
  border-color: rgba(109, 207, 246, 0.3);
}

.bmw-vd-faq-item.bmw-vd-faq-item--open .bmw-vd-faq-icon svg {
  transform: rotate(45deg);
}

.bmw-vd-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.bmw-vd-faq-item.bmw-vd-faq-item--open .bmw-vd-faq-answer {
  max-height: 500px;
  padding-bottom: 22px;
}

.bmw-vd-faq-answer p {
  color: var(--muted-strong);
  font-size: 0.97rem;
  line-height: 1.85;
}

.bmw-vd-footer {
  padding: 34px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bmw-vd-footer p {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.85;
}

.bmw-vd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.bmw-vd-reveal.bmw-vd-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.bmw-vd-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(11, 16, 22, 0.9);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s ease;
  z-index: 1000;
}

.bmw-vd-toast.bmw-vd-toast--visible {
  transform: translateX(-50%) translateY(0);
}

.bmw-vd-toast--success {
  border-color: rgba(89, 200, 135, 0.25);
}

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

@keyframes bmwFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bmwCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .bmw-vd-header {
    padding: 10px 0;
  }

  .bmw-vd-nav-links {
    display: none;
  }

  .bmw-vd-nav-links.bmw-vd-nav-links--open {
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(8, 11, 15, 0.96);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .bmw-vd-menu-btn {
    display: inline-flex;
  }

  .bmw-vd-hero {
    --hero-beam-x: 74%;
    min-height: auto;
    padding: 64px 0 48px;
  }

  .bmw-vd-hero-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "console";
    row-gap: 96px;
  }

  .bmw-vd-hero-copy {
    max-width: 700px;
  }

  .bmw-vd-hero h1,
  .bmw-vd-hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .bmw-vd-hero-beam {
    bottom: 180px;
    width: 140px;
  }

  .bmw-vd-hero-flare--bottom {
    width: 460px;
    height: 170px;
  }

  .bmw-vd-hero-console {
    max-width: none;
  }

  .bmw-vd-input-wrapper {
    flex-direction: column;
  }

  .bmw-vd-decode-btn {
    min-height: 58px;
    width: 100%;
  }

  .bmw-vd-results-header {
    align-items: flex-start;
  }

  .bmw-vd-result-card--hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .bmw-vd-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .bmw-vd-breakdown-stage {
    padding: 28px 18px 24px;
    border-radius: 28px;
  }

  .bmw-vd-breakdown-card,
  .bmw-vd-breakdown-card--check,
  .bmw-vd-breakdown-card--vis {
    grid-column: auto;
    min-height: 0;
  }

  .bmw-vd-breakdown,
  .bmw-vd-faq,
  .bmw-vd-content {
    padding: 68px 0;
  }

  .bmw-vd-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .bmw-vd-container {
    padding: 0 16px;
  }

  .bmw-vd-hero {
    --hero-beam-x: 84%;
    padding: 52px 0 40px;
  }

  .bmw-vd-hero-shell {
    row-gap: 68px;
  }

  .bmw-vd-hero-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
  }

  .bmw-vd-hero h1 {
    font-size: 2.95rem;
    line-height: 0.98;
  }

  .bmw-vd-hero h1::after {
    width: 100%;
    bottom: -12px;
  }

  .bmw-vd-hero-subtitle {
    font-size: 1rem;
  }

  .bmw-vd-hero-beam {
    top: 18px;
    bottom: 220px;
    width: 54px;
  }

  .bmw-vd-hero-beam::before {
    width: 5px;
  }

  .bmw-vd-hero-beam::after {
    width: 8px;
    top: 0;
    bottom: 0;
    height: auto;
  }

  .bmw-vd-hero-flare--top {
    width: 150px;
    height: 120px;
  }

  .bmw-vd-hero-flare--bottom {
    width: 300px;
    height: 120px;
  }

  .bmw-vd-input-section,
  .bmw-vd-breakdown-stage,
  .bmw-vd-result-card,
  .bmw-vd-breakdown-card,
  .bmw-vd-content-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bmw-vd-breakdown-stage {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bmw-vd-vin-chars {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 8px;
    padding: 0 0 6px;
  }

  .bmw-vd-input {
    min-height: 58px;
    padding: 16px 88px 16px 44px;
    font-size: 1rem;
  }

  .bmw-vd-breakdown-top {
    gap: 12px;
  }

  .bmw-vd-breakdown-code {
    min-width: 42px;
    font-size: 1.7rem;
  }

  .bmw-vd-breakdown-card h3 {
    font-size: 1.6rem;
  }

  .bmw-vd-vin-char {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 0.92rem;
    margin-bottom: 12px;
  }

  .bmw-vd-vin-legend {
    gap: 10px;
  }

  .bmw-vd-legend-item {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .bmw-vd-vin-char::after {
    bottom: -16px;
    font-size: 0.5rem;
  }

  .bmw-vd-faq-question {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bmw-vin-decoder *,
  .bmw-vin-decoder *::before,
  .bmw-vin-decoder *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
