/* =====================================================================================================================
   ECUWORKS 2026 — HOMEPAGE SECTIONS, VEHICLE SELECTOR, DUAL-RING DYNO DIAL, GLOBE & DEALER DIRECTORY
   Pendle-Style 100svh Mandatory Snap Architecture across Mobile (320x568+), Tablet & Desktop
   ===================================================================================================================== */

/* ---------- 1. HERO SECTION (#home) ---------- */
.cx-proof {
  display: none;
  list-style: none;
  margin: calc(var(--gap-h) + 6px) 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.cx-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px 0 11px;
  border-radius: 999px;
  background: rgba(12, 18, 26, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font: 700 13px/1 var(--f-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8eff6;
}

.cx-proof svg {
  width: 17px;
  height: 17px;
  color: var(--red);
}

@media (min-width: 700px) and (min-height: 680px) {
  .cx-proof {
    display: flex;
  }
}

.cx-foot--hero {
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
}

/* Hero & Section 06 Vehicle Lookup Card (.cx-reg) */
.cx-reg {
  position: relative;
  width: 100%;
  max-width: 860px;
  padding: 12px 12px 11px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(21, 29, 39, 0.88), rgba(9, 13, 19, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--red);
  box-shadow: var(--card-shadow), 0 0 60px -16px rgba(var(--red-rgb), 0.58);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.cx-reg--compact {
  max-width: 600px;
}

@media (min-width: 700px) {
  .cx-reg {
    padding: 14px 16px 12px;
    border-radius: 20px;
  }
}

.cx-reg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-bottom: 8px;
}

.cx-reg__label {
  font: 700 11px/15px var(--f-ui);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #ffb3b9;
}

@media (min-width: 700px) {
  .cx-reg__head {
    margin-bottom: 10px;
  }
  .cx-reg__label {
    font-size: 12.5px;
    letter-spacing: 0.16em;
  }
}

.cx-reg__sub {
  font: 600 11.5px/1.2 var(--f-ui);
  letter-spacing: 0.05em;
  color: var(--muted);
}

@media (max-width: 767px) {
  .cx-reg__sub {
    display: none;
  }
}

/* Always 2x2 on phones (320px+) so 4 dropdowns stay compact inside 100svh */
.vs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

@media (min-width: 960px) {
  .vs-grid {
    gap: 8px;
  }
  .vs-grid--hero {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: center;
  }
}

.vs-sel {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.vs-sel.is-off {
  opacity: 0.48;
}

.vs-sel__n {
  position: absolute;
  left: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font: 700 11px/1 var(--f-ui);
  color: #cbd5e1;
  background: rgba(10, 14, 20, 0.8);
  box-shadow: inset 0 0 0 1.5px rgba(203, 213, 225, 0.4);
  pointer-events: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 700px) {
  .vs-sel__n {
    left: 9px;
    width: 21px;
    height: 21px;
    font-size: 11.5px;
  }
}

.vs-sel.is-done .vs-sel__n {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(var(--red-rgb), 0.85);
}

.vs-sel select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 22px 0 30px;
  border: 0;
  border-radius: 11px;
  appearance: none;
  font: 700 13px/1.2 var(--f-ui);
  letter-spacing: 0.02em;
  color: #ffffff;
  cursor: pointer;
  background-color: #161f2b;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff6b76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(32, 43, 58, 0.95), rgba(18, 25, 35, 0.96));
  background-repeat: no-repeat, no-repeat;
  background-position: right 6px center, 0 0;
  background-size: 13px 13px, 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(175, 195, 218, 0.28), 0 3px 0 #06090e;
  transition: box-shadow 0.18s ease;
}

@media (min-width: 700px) {
  .vs-sel select {
    height: 46px;
    padding: 0 26px 0 35px;
    border-radius: 12px;
    font-size: 14px;
    background-position: right 8px center, 0 0;
    background-size: 14px 14px, 100% 100%;
  }
}

.vs-sel select:hover:not(:disabled),
.vs-sel select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--ember), 0 3px 0 #06090e, 0 0 16px rgba(var(--red-rgb), 0.35);
}

.vs-sel select option {
  background: #0e141c;
  color: #ffffff;
}

@media (max-width: 959px) {
  .vs-grid--hero .cx-reg__go {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.cx-filmkey {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
}

.cx-filmkey__ring {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 20, 28, 0.76);
  box-shadow: inset 0 0 0 1.5px var(--ember), 0 0 24px -4px rgba(var(--red-rgb), 0.68);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cx-filmkey__ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(var(--red-rgb), 0.6);
  animation: cx-ring 2.6s ease-out infinite;
}

@keyframes cx-ring {
  0% { transform: scale(0.86); opacity: 0.95; }
  100% { transform: scale(1.38); opacity: 0; }
}

.cx-filmkey:hover .cx-filmkey__ring {
  background: var(--red);
  transform: scale(1.06);
}

.cx-filmkey b {
  display: block;
  font: 700 15px/1.2 var(--f-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-filmkey i {
  display: block;
  font: 400 13px/1.3 var(--f-text);
  font-style: normal;
  color: #b8c6d6;
}

.cx-hero__film-acts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.cx-vpause .i-play {
  display: none;
}

.cx-vpause[aria-pressed="true"] .i-pause {
  display: none;
}

.cx-vpause[aria-pressed="true"] .i-play {
  display: block;
}

@media (max-width: 959px) {
  .cx-hero__film-acts,
  .cx-filmkey {
    display: none;
  }
}

/* ---------- 2. CALIBRATION & TELEMETRY PANELS (#calibrate) ---------- */
.cx-quote {
  margin: 0;
  max-width: 30em;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(10, 15, 22, 0.82);
  border-left: 3px solid var(--red);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 20px 50px -20px rgba(0, 0, 0, 0.85);
}

@media (min-width: 700px) {
  .cx-quote { padding: 20px 24px; }
}

.cx-quote p {
  margin: 0;
  font: italic 400 15px/1.48 var(--f-text);
  color: #eef3f8;
}

@media (min-width: 700px) {
  .cx-quote p { font-size: 17.5px; }
}

.cx-quote footer {
  margin-top: 8px;
  font: 700 11.5px/1.2 var(--f-ui);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--kick);
}

.cx-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.cx-ticks--full {
  max-width: none;
}

.cx-ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(12, 17, 25, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 3px 0 0 var(--red);
  font: 400 13.5px/1.35 var(--f-text);
  color: var(--body);
}

.cx-ticks--compact li {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
}

.cx-ticks li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(var(--red-rgb), 0.95);
}

.cx-ticks b {
  color: #ffffff;
  font-weight: 600;
}

/* Stage Cards Grid on Slide 3 */
.ew-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr));
  gap: 12px;
  width: 100%;
  align-self: center;
}

.ew-stage {
  padding: 15px 17px;
  border-radius: 16px;
  background: var(--card-face);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid var(--red);
  box-shadow: var(--card-shadow);
}

.ew-stage__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--red-rgb), 0.18);
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.45);
  font: 700 11px/1 var(--f-ui);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ember);
}

.ew-stage h3 {
  margin: 9px 0 5px;
  font: 400 26px/1 var(--f-display);
  letter-spacing: 0.02em;
  color: #ffffff;
}

@media (min-width: 700px) {
  .ew-stage h3 { font-size: 30px; }
}

.ew-stage p {
  margin: 0;
  font: 400 13.5px/1.42 var(--f-text);
  color: var(--body);
}

/* Compact 3-Row Stage Stack on Portrait Phones (Fits 100svh cleanly) */
@media (max-width: 699px) {
  .ew-stages {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ew-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
    padding: 9px 12px;
    border-radius: 14px;
  }
  .ew-stage h3 {
    grid-row: 1;
    grid-column: 1;
    margin: 0;
    font-size: 20px;
  }
  .ew-stage__badge {
    grid-row: 1;
    grid-column: 2;
    padding: 3px 8px;
    font-size: 10px;
  }
  .ew-stage p {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 12.5px;
    line-height: 1.32;
  }
}

/* Telemetry Datalog Tiles & Container-Sized Chart/Monitor Frames */
.cx-body--chart,
.cx-body--monitor {
  container-type: size;
  display: flex;
  align-items: center;
  min-height: 0;
}

.cx-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  max-width: 540px;
  margin: 0;
}

@media (min-width: 480px) {
  .cx-tiles { gap: 10px; }
}

.cx-tiles > div {
  padding: 8px 9px;
  border-radius: 12px;
  background: var(--card-face);
  box-shadow: var(--card-shadow);
  border-top: 2px solid var(--red);
  min-width: 0;
}

@media (min-width: 480px) {
  .cx-tiles > div { padding: 11px 13px; border-radius: 13px; }
}

.cx-tiles dt {
  font: 700 10.5px/1.1 var(--f-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kick);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .cx-tiles dt { font-size: 12px; letter-spacing: 0.14em; }
}

.cx-tiles dd {
  margin: 4px 0 0;
  font: 700 11px/1.2 var(--f-ui);
  color: #b4c4d6;
}

.cx-tiles dd b {
  font: 400 21px/1 var(--f-display);
  color: #ffffff;
  margin-right: 2px;
}

@media (min-width: 480px) {
  .cx-tiles dd { font-size: 13px; }
  .cx-tiles dd b { font-size: 30px; margin-right: 3px; }
}

.ew-chartbox {
  position: relative;
  width: min(100cqw, calc((100cqh - 4px) * 1.9));
  max-width: 680px;
  padding: 9px 11px;
  border-radius: 16px;
  background: linear-gradient(180deg, #111822, #090d14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--red);
  box-shadow: 0 32px 70px -20px rgba(0, 0, 0, 0.92), 0 0 60px -20px rgba(var(--red-rgb), 0.45);
}

@media (min-width: 700px) {
  .ew-chartbox { padding: 14px 16px 12px; }
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .ew-chartbox { margin-left: auto; }
}

.ew-chartbox svg {
  width: 100%;
  height: auto;
  max-height: calc(100cqh - 24px);
}

.ew-chartbox__glow {
  filter: drop-shadow(0 0 8px rgba(234, 43, 56, 0.8));
}

@media (min-width: 1100px) and (min-aspect-ratio: 1/1) {
  .ew-chartbox--tilt {
    transform: perspective(1500px) rotateY(-6deg);
    transform-origin: 100% 50%;
  }
}

/* WinOLS Monitor Showcase */
.cx-monitor {
  width: min(100cqw, calc((100cqh - 24px) * 1.78));
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .cx-monitor { margin: 0 0 0 auto; }
}

.cx-monitor__bezel {
  position: relative;
  width: 100%;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1e2530, #0c1016);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 34px 80px -22px rgba(0, 0, 0, 0.95),
    0 0 80px -18px rgba(var(--red-rgb), 0.48);
}

.cx-monitor__canvas {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.cx-monitor__bezel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 34%, transparent 35%);
}

.cx-monitor__stand {
  width: 24%;
  height: 20px;
  margin-top: -1px;
  background: linear-gradient(180deg, #28303c 0%, #151a22 55%, #0c0f14 100%);
  clip-path: polygon(38% 0, 62% 0, 70% 70%, 100% 74%, 100% 100%, 0 100%, 0 74%, 30% 70%);
}

.ew-solpills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.ew-solpills li {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(19, 27, 35, 0.85);
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.4);
  font: 700 11.5px/1.1 var(--f-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1f5f9;
}

/* ---------- 3. DYNO PROVEN RUNS (#dyno-proven) ---------- */
.cx-body--runs {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 960px) and (min-height: 540px) and (min-aspect-ratio: 1/1) {
  .cx-frame--runs > .cx-body {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.cx-runs {
  width: 100%;
  padding: 10px 13px 4px;
  border-radius: var(--radius);
  background: var(--card-face);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid var(--red);
  box-shadow: var(--card-shadow), 0 0 60px -20px rgba(var(--red-rgb), 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@media (min-width: 700px) {
  .cx-runs { padding: 14px 20px 6px; }
}

.cx-runs__k {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin: 0 0 4px;
  font: 700 11px/15px var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kick);
}

.cx-runs__unit {
  color: #9fb2c6;
}

.cx-runs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cx-runs__list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .cx-runs__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cx-runs__list li + li {
    border-top: 0;
  }
  .cx-runs__list li:nth-child(n+4) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cx-runs__list li:not(:nth-child(3n+1)) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 18px;
  }
  .cx-runs__list li:not(:nth-child(3n)) {
    padding-right: 18px;
  }
}

.cx-runs__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 15px;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 5px 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.cx-runs__name {
  min-width: 0;
}

.cx-runs__name b {
  display: block;
  font: 700 14px/1.2 var(--f-ui);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.cx-runs__name i {
  display: block;
  font: 400 12px/1.25 var(--f-text);
  font-style: normal;
  color: #9fb2c6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-runs__figs {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.cx-runs__arrow {
  width: 14px;
  height: 14px;
  color: var(--red);
}

.cx-runs__chev {
  width: 15px;
  height: 15px;
  color: var(--ember);
}

.cx-runs__std {
  font: 400 18px/1 var(--f-display);
  color: #8f9fb2;
}

.cx-runs__figs b {
  font: 400 26px/0.9 var(--f-display);
  color: #ffffff;
  text-shadow: 0 0 18px rgba(var(--red-rgb), 0.5);
}

@media (min-width: 700px) {
  .cx-runs__row { min-height: 58px; }
  .cx-runs__std { font-size: 22px; }
  .cx-runs__figs b { font-size: 34px; }
}

.cx-runs__row:hover .cx-runs__name b {
  color: var(--ember);
}

/* Individual Measured Run Bars & Glass Figures */
.cx-body--run-gain {
  display: flex;
  align-items: flex-end;
}

@media (min-width: 960px) and (min-height: 540px) and (min-aspect-ratio: 1/1) {
  .cx-body--run-gain {
    grid-column: 1;
    grid-row: 2;
  }
}

.cx-foot--run {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cx-run-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.cx-gain {
  display: none;
}

@media (min-width: 1100px) and (min-aspect-ratio: 1/1) and (min-height: 820px) {
  .cx-gain {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    width: 100%;
    max-width: 560px;
    align-self: end;
  }
  .cx-gain__n {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
  }
  .cx-gain__n b {
    font: 400 54px/0.9 var(--f-display);
    color: var(--ember);
    text-shadow: 0 0 26px rgba(var(--red-rgb), 0.55);
  }
  .cx-gain__n span {
    font: 700 12px/1.2 var(--f-ui);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cbd5e1;
  }
  .cx-gain__bar {
    display: grid;
    gap: 4px;
    margin-bottom: 6px;
  }
  .cx-gain__bar i {
    display: block;
    height: 6px;
    border-radius: 3px;
  }
  .cx-gain__bar--std i {
    width: calc(var(--s, 0.72) * 100%);
    background: linear-gradient(90deg, #3b4a5c, #7d8ea3);
  }
  .cx-gain__bar--tuned i {
    width: 100%;
    background: linear-gradient(90deg, #9e141f, var(--red));
    box-shadow: 0 0 14px rgba(var(--red-rgb), 0.65);
  }
  .cx-gain__bar em {
    font: 700 11px/1 var(--f-ui);
    font-style: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93a5b9;
  }
  .cx-gain__bar--tuned em {
    color: var(--ember);
  }
}

.cx-figs {
  display: grid;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 5px 14px;
  border-radius: var(--radius);
  background: var(--card-face);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid var(--red);
  box-shadow: var(--card-shadow), var(--glow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (min-width: 600px) {
  .cx-figs { padding: 6px 20px; }
}

.cx-figs > div {
  display: grid;
  grid-template-columns: 4.8em minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  min-height: 52px;
}

@media (min-width: 500px) {
  .cx-figs > div {
    grid-template-columns: 6.5em minmax(0, 1fr) auto;
    column-gap: 12px;
    min-height: 62px;
  }
}

.cx-figs > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cx-figs dt {
  font: 700 11px/1.1 var(--f-ui);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #b4c6da;
}

.cx-figs dd {
  margin: 0;
  min-width: 0;
}

.cx-figs__run {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.cx-figs__arrow {
  width: 15px;
  height: 15px;
  color: var(--red);
}

.cx-figs__std {
  font: 400 19px/1 var(--f-display);
  color: #9aaabd;
}

.cx-figs__run b {
  font: 400 34px/0.9 var(--f-display);
  color: #ffffff;
  text-shadow: 0 0 24px rgba(var(--red-rgb), 0.5);
}

@media (min-width: 600px) {
  .cx-figs__std { font-size: 26px; }
  .cx-figs__run b { font-size: 52px; }
}

.cx-figs__run i {
  font: 700 12px/1 var(--f-ui);
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--ember);
}

.cx-figs__gain {
  padding: 4px 8px;
  border-radius: 999px;
  font: 700 11.5px/1 var(--f-ui);
  font-style: normal;
  white-space: nowrap;
  color: #ffe2e5;
  background: rgba(var(--red-rgb), 0.18);
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.48);
}

/* ---------- 4. QUALITY REPORT FLIPBOOK & 5-STEP TUNE DAY ---------- */
.cx-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  max-width: 560px;
}

.cx-stats li {
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(12, 18, 26, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 2px 0 var(--red);
  font: 400 12px/1.3 var(--f-text);
  color: #b8c6d6;
}

.cx-stats b {
  display: block;
  margin-bottom: 4px;
  font: 400 24px/1 var(--f-display);
  letter-spacing: 0.03em;
  color: #ffffff;
}

.ew-cert {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: auto 0;
  padding: 16px 16px;
  border-radius: 18px;
  background: linear-gradient(155deg, #161f2c 0%, #0b1017 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--red);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 50px -18px rgba(var(--red-rgb), 0.45);
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .ew-cert {
    margin: auto 0 auto auto;
    padding: 22px 24px;
  }
}

.ew-cert__kicker {
  margin-bottom: 6px;
}

.ew-cert__title {
  margin: 0 0 8px;
  font: 400 clamp(22px, 5.8vw, 32px)/1.05 var(--f-display);
  color: #ffffff;
}

.ew-cert__body {
  margin: 0 0 12px;
  font: 400 13.5px/1.45 var(--f-text);
  color: var(--body);
}

.ew-cert__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ew-cert__page {
  font: 700 12px/1 var(--f-ui);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.ew-cert__page b {
  color: #ffffff;
}

.ew-cert__btns {
  display: flex;
  gap: 8px;
}

.ew-daybox {
  width: 100%;
  max-width: 480px;
}

.ew-daysteps {
  list-style: none;
  margin: 0;
  padding: 5px 15px;
  max-width: 480px;
}

.ew-daysteps li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ew-daysteps button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 5px 0;
  border: 0;
  background: none;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
}

.ew-daysteps button .no {
  font: 400 21px/1 var(--f-display);
  color: #7d90a5;
}

.ew-daysteps button[aria-current="true"] {
  color: #ffffff;
}

.ew-daysteps button[aria-current="true"] .no {
  color: var(--red);
  text-shadow: 0 0 14px rgba(var(--red-rgb), 0.8);
}

/* ---------- 5. VEHICLE DATABASE + DUAL-RING SVG TACHOMETER (#every-make) ---------- */
.ew-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0;
}

.ew-cat {
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 25, 35, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font: 700 11.5px/1 var(--f-ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #b8c6d6;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ew-cat[aria-pressed="true"] {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(var(--red-rgb), 0.6);
}

/* Brand Marquee */
.cx-logos {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 72px;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  touch-action: pan-y;
  background: linear-gradient(180deg, rgba(17, 23, 32, 0.88), rgba(9, 13, 19, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--card-shadow);
}

.cx-logos::before, .cx-logos::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
}

.cx-logos::before {
  left: 0;
  background: linear-gradient(90deg, #0b1017 12%, transparent);
}

.cx-logos::after {
  right: 0;
  background: linear-gradient(270deg, #0b1017 12%, transparent);
}

.cx-logos__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: cx-mq 46s linear infinite;
}

.cx-logos:hover .cx-logos__track {
  animation-play-state: paused;
}

@keyframes cx-mq {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.cx-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 82px;
  height: 54px;
  margin: 0 5px;
  padding: 7px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: radial-gradient(120% 100% at 50% 35%, rgba(255, 255, 255, 0.22), rgba(34, 45, 60, 0.94) 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cx-logo:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--red), 0 0 20px rgba(var(--red-rgb), 0.55);
}

.cx-logo img {
  max-width: 58px;
  max-height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.32));
}

.cx-logo span {
  font: 700 11.5px/1.1 var(--f-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

/* Concentric Dual-Ring SVG Tachometer Stage */
.gx-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  gap: 9px;
}

.gx-dial-wrap {
  position: relative;
  width: min(58vw, 225px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

@media (min-width: 700px) and (max-aspect-ratio: 1/1) {
  .gx-dial-wrap { width: min(48vw, 265px); }
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .gx-dial-wrap { width: min(100%, 390px); }
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) and (max-height: 920px) {
  .gx-dial-wrap { width: min(100%, 300px); }
  .gx-stage { gap: 7px; }
  .cx-logos { height: 62px; margin-top: 8px; }
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) and (max-height: 820px) {
  .gx-dial-wrap { width: min(100%, 245px); }
  .gx-dial-center__hp { font-size: 44px; }
  .gx-dial-center__nm { font-size: 25px; }
  .cx-logos { display: none; }
  .cx-door { padding: 14px 18px; gap: 6px; }
  .cx-door h3 { font-size: 26px; }
}

/* Single-Column Portrait Optimization (#every-make fits 100svh on phones & portrait tablets) */
@media (max-width: 959px), (max-aspect-ratio: 1/1) {
  #every-make .cx-logos,
  #every-make .cx-foot,
  #every-make .cx-reg__head {
    display: none;
  }
  #every-make .cx-reg {
    padding: 9px 10px;
  }
  #every-make .vs-sel select {
    height: 38px;
    font-size: 13px;
  }
  .ew-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    margin: 7px 0;
    padding-bottom: 2px;
  }
  .ew-cats::-webkit-scrollbar {
    display: none;
  }
  .ew-cat {
    flex: 0 0 auto;
  }
}

.gx-dial-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.8));
}

.gx-dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding-top: 6px;
}

.gx-dial-center__ecu {
  font: 700 10px/1 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.gx-dial-center__hp {
  font: 400 42px/0.88 var(--f-display);
  color: #ffffff;
  text-shadow: 0 0 28px rgba(var(--red-rgb), 0.55);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .gx-dial-center__ecu { font-size: 11.5px; }
  .gx-dial-center__hp { font-size: 62px; }
}

.gx-dial-center__hp small {
  font: 700 13.5px/1 var(--f-ui);
  color: var(--red);
  margin-left: 3px;
}

.gx-dial-center__nm {
  margin-top: 3px;
  font: 400 24px/1 var(--f-display);
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .gx-dial-center__nm { font-size: 34px; }
}

.gx-dial-center__nm small {
  font: 700 11.5px/1 var(--f-ui);
  color: #ffb3b9;
  margin-left: 3px;
}

.gx-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  width: min(100%, 540px);
}

.gx-pill {
  flex: 1 1 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(14, 20, 29, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 700 11.5px/1.2 var(--f-ui);
  color: #cbd5e1;
}

.gx-pill__std { color: #94a3b8; }
.gx-pill__tun { color: #ffffff; }
.gx-pill__gain { color: var(--ember); }
.gx-pill__gain--nm { color: #ffb3b9; }

.gx-bar {
  width: min(100%, 540px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(15, 22, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 32px -12px rgba(var(--red-rgb), 0.45);
}

@media (min-width: 700px) {
  .gx-bar {
    padding: 10px 14px 10px 18px;
  }
}

.gx-bar__info {
  flex: 1 1 auto;
  min-width: 0;
}

.gx-bar__info b {
  display: block;
  font: 700 14px/1.2 var(--f-ui);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gx-bar__info span {
  display: block;
  font: 400 11.5px/1.25 var(--f-text);
  color: #9fb2c6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gx-bar__acts {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
}

@media (max-width: 559px) {
  .gx-bar__acts .cx-key {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

.gx-stages-pill {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.gx-stages-pill button {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 700 11px/1.1 var(--f-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9fb2c6;
  cursor: pointer;
  transition: all 0.18s ease;
}

@media (min-width: 480px) {
  .gx-stages-pill button {
    padding: 6px 14px;
    font-size: 12.5px;
    letter-spacing: 0.08em;
  }
}

.gx-stages-pill button[aria-selected="true"] {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(var(--red-rgb), 0.65);
}

/* ---------- 6. NETWORK GLOBE (#agent-network) ---------- */
.cx-body--globe {
  container-type: size;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
}

.cx-globe {
  position: relative;
  width: min(100cqw, 100cqh, 540px);
  aspect-ratio: 1;
  cursor: grab;
}

.cx-globe:active {
  cursor: grabbing;
}

.cx-globe__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--red-rgb), 0.28) 0%, rgba(var(--red-rgb), 0.08) 46%, transparent 70%);
  pointer-events: none;
}

.cx-globe canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

@media (max-width: 699px) {
  #agent-network .cx-foot,
  #bayi-agi .cx-foot {
    flex-wrap: nowrap;
    gap: 8px;
  }
  #agent-network .cx-foot .cx-key,
  #bayi-agi .cx-foot .cx-key {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  #agent-network .cx-foot .cx-key svg,
  #bayi-agi .cx-foot .cx-key svg {
    display: none;
  }
}

/* ---------- 7. FOUNDER (#founder) & REVIEWS (#reviews) ---------- */
.cx-body--founder {
  display: flex;
  align-items: center;
}

@media (min-width: 960px) and (min-height: 540px) and (min-aspect-ratio: 1/1) {
  .cx-body--founder {
    grid-column: 1;
    grid-row: 2;
  }
}

.cx-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 10px;
}

.cx-stat b {
  font: 400 clamp(44px, 10vw, 72px)/0.85 var(--f-display);
  color: #ffffff;
  text-shadow: 0 0 30px rgba(var(--red-rgb), 0.55);
}

.cx-stat span {
  font: 700 11.5px/1.35 var(--f-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kick);
}

.cx-review {
  max-width: 34em;
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(9, 13, 20, 0.86);
  border-left: 3px solid var(--red);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px -22px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .cx-review {
    margin-left: auto;
    padding: 26px 30px;
  }
}

.cx-review__q {
  margin: 0;
}

.cx-review__q::before {
  content: "\201C";
  display: block;
  height: 34px;
  margin: 0 0 6px -4px;
  font: 400 84px/1 var(--f-display);
  color: var(--red);
  text-shadow: 0 0 28px rgba(var(--red-rgb), 0.65);
  overflow: hidden;
}

@media (min-width: 700px) {
  .cx-review__q::before {
    height: 46px;
    font-size: 116px;
  }
}

.cx-review__q p {
  margin: 0;
  font: 400 16px/1.48 var(--f-text);
  color: #f1f5f9;
}

@media (min-width: 700px) {
  .cx-review__q p { font-size: 20px; }
}

.cx-review figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font: 700 14px/1.2 var(--f-ui);
  color: #ffffff;
}

.cx-review__meta {
  color: #9fb2c6;
  font-weight: 400;
}

.cx-src--g {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #ffffff;
  color: #ea2b38;
  font: 800 14px/1 var(--f-text);
}

/* Video Mosaic on Review Slide 4 */
.cx-body--videos {
  container-type: size;
  display: flex;
  align-items: center;
  min-height: 0;
}

.cx-yts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: min(100cqw, calc((100cqh - 42px) / 1.14));
}

@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .cx-yts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-left: auto;
    max-width: min(100%, calc((100cqh - 24px) / 0.71));
  }
}

@media (max-width: 959px), (max-aspect-ratio: 1/1) {
  #reviews .cx-panel:last-child .cx-lede {
    display: none;
  }
  .cx-yts li:not(:first-child) .cx-yt b {
    display: none;
  }
}

@media (max-width: 959px) and (max-height: 779px) {
  #reviews .cx-yts li:nth-child(n+4) {
    display: none;
  }
  #reviews .cx-yts {
    max-width: min(100cqw, calc((100cqh - 36px) / 0.86));
  }
}

.cx-yts li:first-child {
  grid-column: 1 / -1;
}

.cx-yt {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0d131c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 36px -16px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  text-align: left;
}

.cx-yt__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(0.76) contrast(1.08);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.cx-yt:hover .cx-yt__thumb {
  transform: scale(1.04);
  filter: brightness(0.92);
}

.cx-yt__play {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--red-rgb), 0.92);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(var(--red-rgb), 0.7);
}

.cx-yt b {
  display: block;
  padding: 7px 10px;
  font: 700 12px/1.2 var(--f-ui);
  color: #eef3f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 8. CONVERSION DOORS & FOOTER CONTACT (#book) ---------- */
.cx-body--doors {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--row-gap);
}

.cx-doors {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .cx-doors {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.cx-door {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 17px;
  border-radius: var(--radius);
  background: var(--card-face);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid #475569;
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .cx-door {
    padding: 18px 20px;
    gap: 8px;
  }
}

.cx-door--hq {
  border-top-color: var(--red);
  box-shadow: var(--card-shadow), 0 0 60px -18px rgba(var(--red-rgb), 0.55);
}

.cx-door__k {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 700 11.5px/15px var(--f-ui);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--kick);
}

.cx-door__ico--red { color: var(--red); }
.cx-door__ico--ember { color: var(--ember); }

.cx-door h3 {
  margin: 0;
  font: 400 clamp(22px, 5.8vw, 34px)/1 var(--f-display);
  letter-spacing: 0.02em;
  color: #ffffff;
}

.cx-door p {
  margin: 0;
  font: 400 13.5px/1.42 var(--f-text);
  color: var(--body);
}

.cx-door .cx-key {
  margin-top: auto;
}

.cx-contact {
  display: grid;
  gap: 6px 24px;
  align-items: center;
}

@media (min-width: 1100px) {
  .cx-contact {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 767px) {
  .cx-contact__acts {
    display: none;
  }
}

.cx-contact__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cx-contact__phone a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 clamp(26px, 7vw, 38px)/1 var(--f-display);
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
}

.cx-contact__phone a svg {
  color: var(--red);
  width: 22px;
  height: 22px;
}

.cx-contact__acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cx-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font: 700 11px/1 var(--f-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cx-open::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.cx-open.is-open {
  color: #7ff0b5;
  background: rgba(53, 192, 122, 0.15);
  box-shadow: inset 0 0 0 1px rgba(53, 192, 122, 0.45);
}

.cx-open.is-closed {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cx-contact__meta p {
  margin: 2px 0;
  font: 400 12.5px/1.4 var(--f-text);
  color: var(--body);
}

.cx-legal {
  margin: 0;
  font: 400 12px/1.45 var(--f-text);
  color: var(--muted);
}

.cx-legal a {
  color: #cbd5e1;
  text-decoration: none;
}

.cx-legal a:hover {
  color: var(--ember);
}

/* ---------- 9. PENDLE-STYLE SHORT-SCREEN 100svh BUDGET GUARDS (375x667, 390x664 Safari, 360x640, 320x568) ---------- */
@media (max-width: 959px) and (max-height: 780px) {
  #road-report .cx-foot {
    display: none;
  }
  #calibrate .ew-solpills {
    display: none;
  }
}

@media (max-width: 699px) and (max-height: 780px) {
  #every-make .gx-pills {
    display: none;
  }
  #every-make .gx-stage {
    gap: 6px;
  }
  #every-make .gx-dial-wrap {
    width: min(46vw, 174px);
  }
  #every-make .gx-dial-center__ecu {
    font-size: 9px;
    margin-bottom: 2px;
  }
  #every-make .gx-dial-center__hp {
    font-size: 34px;
  }
  #every-make .gx-dial-center__nm {
    font-size: 20px;
    margin-top: 2px;
  }
}

@media (max-width: 767px) and (max-height: 760px) {
  .cx-book-sec .cx-doors {
    gap: 8px;
  }
  .cx-book-sec .cx-door h3,
  .cx-book-sec .cx-door:not(.cx-door--hq) p:not(.cx-door__k) {
    display: none;
  }
  .cx-book-sec .cx-door {
    padding: 10px 13px;
    gap: 5px;
  }
  .cx-book-sec .cx-door .cx-key {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13.5px;
  }
  .cx-book-sec .cx-contact__phone a {
    font-size: 26px;
  }
  .cx-book-sec .cx-contact__meta p {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 699px) and (max-height: 740px) {
  #home .cx-lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  #calibrate .cx-panel:nth-child(3) .cx-lede,
  #dyno-proven .cx-frame--runs .cx-lede,
  #referanslar-ozet .cx-frame--runs .cx-lede,
  #tune-day .cx-panel:first-child .cx-lede {
    display: none;
  }
  #calibrate .ew-stage {
    padding: 8px 11px;
  }
  #calibrate .ew-stage p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  #dyno-proven .cx-runs__row,
  #referanslar-ozet .cx-runs__row {
    min-height: 40px;
    padding: 3px 0;
  }
  #dyno-proven .cx-runs__figs b,
  #referanslar-ozet .cx-runs__figs b {
    font-size: 24px;
  }
  #dyno-proven .cx-runs__std,
  #referanslar-ozet .cx-runs__std {
    font-size: 17px;
  }
  #tune-day .ew-daysteps button {
    min-height: 38px;
    padding: 4px 0;
    font-size: 13.5px;
  }
  #agent-network .cx-lede,
  #bayi-agi .cx-lede,
  #kalibrasyon-ozet .cx-lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  #road-report .cx-lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  #road-report .ew-cert {
    padding: 12px 14px;
  }
  #road-report .ew-cert__body {
    margin-bottom: 8px;
    font-size: 12.5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  #road-report .cx-ticks--compact {
    gap: 6px;
  }
  #road-report .cx-ticks--compact li {
    min-height: 34px;
    padding: 5px 10px;
    font-size: 12px;
  }
  #founder .cx-foot,
  #founder .cx-quote footer,
  #reviews .cx-review__q::before {
    display: none;
  }
  #founder .cx-lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  #founder .cx-quote {
    padding: 12px 14px;
  }
  #founder .cx-quote p {
    font-size: 14px;
    line-height: 1.4;
  }
  #reviews .cx-review {
    padding: 14px 16px;
  }
  #reviews .cx-review__q p {
    font-size: 14.5px;
    line-height: 1.42;
  }
  #reviews .cx-review figcaption {
    margin-top: 10px;
    font-size: 13px;
  }
}

/* Ultra-Short Portrait Screens (320x568 SE1, 360x640 with Browser Bars) */
@media (max-width: 699px) and (max-height: 645px) {
  #home .cx-reg {
    padding: 9px 10px;
  }
  #home .vs-sel select {
    height: 37px;
    font-size: 12.5px;
  }
  #home .cx-reg__go {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 13px;
  }
  #calibrate .cx-lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  #calibrate .cx-panel:nth-child(4) .cx-lede,
  #calibrate .cx-panel:nth-child(5) .cx-lede,
  #road-report .cx-lede,
  #agent-network .cx-lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  #calibrate .cx-quote {
    padding: 10px 12px;
  }
  #calibrate .cx-quote p {
    font-size: 13.5px;
    line-height: 1.38;
  }
  #calibrate .cx-ticks li,
  #kalibrasyon-ozet .cx-ticks li {
    min-height: 38px;
    padding: 6px 11px;
    font-size: 12.5px;
  }
  #calibrate .ew-stage {
    padding: 6px 10px;
  }
  #calibrate .ew-stage h3 {
    font-size: 18px;
  }
  #calibrate .ew-stage p {
    -webkit-line-clamp: 1;
    font-size: 12px;
  }
  #calibrate .cx-foot .cx-key,
  #kalibrasyon-ozet .cx-foot .cx-key,
  #referanslar-ozet .cx-foot .cx-key,
  #tune-day .cx-foot .cx-key,
  #reviews .cx-foot .cx-key,
  #agent-network .cx-foot .cx-key,
  #bayi-agi .cx-foot .cx-key {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 12.5px;
  }
  #dyno-proven .cx-runs,
  #referanslar-ozet .cx-runs {
    padding: 8px 10px 3px;
  }
  #dyno-proven .cx-runs__row,
  #referanslar-ozet .cx-runs__row {
    min-height: 35px;
    padding: 2px 0;
  }
  #dyno-proven .cx-runs__name b,
  #referanslar-ozet .cx-runs__name b {
    font-size: 13px;
  }
  #dyno-proven .cx-runs__name i,
  #referanslar-ozet .cx-runs__name i {
    font-size: 11px;
  }
  #dyno-proven .cx-figs > div {
    min-height: 44px;
  }
  #dyno-proven .cx-figs__run b {
    font-size: 28px;
  }
  #road-report .ew-cert {
    padding: 12px 13px;
  }
  #road-report .ew-cert__body {
    margin-bottom: 8px;
    font-size: 12.5px;
    line-height: 1.35;
  }
  #road-report .cx-ticks--compact li {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }
  #road-report .ew-cert__foot {
    margin-top: 8px;
    padding-top: 8px;
  }
  #road-report .cx-lede {
    display: none;
  }
  #tune-day .ew-daysteps button {
    min-height: 34px;
    padding: 2px 0;
    font-size: 12.5px;
  }
  #every-make .ew-cats {
    display: none;
  }
  #every-make .vs-sel select {
    height: 34px;
    font-size: 12.5px;
  }
  #every-make .gx-dial-wrap {
    width: 138px;
  }
  #every-make .gx-dial-center__hp {
    font-size: 28px;
  }
  #every-make .gx-dial-center__hp small {
    font-size: 11px;
  }
  #every-make .gx-dial-center__nm {
    font-size: 17px;
  }
  #every-make .gx-dial-center__nm small {
    font-size: 10px;
  }
  #founder .cx-lede {
    -webkit-line-clamp: 3;
  }
  #reviews .cx-review {
    padding: 11px 13px;
  }
  #reviews .cx-review__q p {
    font-size: 13.5px;
    line-height: 1.35;
  }
  .cx-book-sec .cx-contact__meta p:first-child {
    display: none;
  }
  .cx-book-sec .cx-door {
    padding: 8px 11px;
    gap: 4px;
  }
  .cx-book-sec .cx-door--hq p:not(.cx-door__k) {
    font-size: 12px;
    line-height: 1.3;
  }
  .cx-book-sec .cx-door .cx-key {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .cx-book-sec .cx-legal {
    font-size: 11px;
    line-height: 1.32;
  }
}

/* ---------- 10. 21-DEALER DIRECTORY & DYNO MODAL ---------- */
.dl-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-search input {
  flex: 1 1 220px;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #141c27;
  color: #ffffff;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--card-face);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 2px solid var(--red);
  box-shadow: var(--card-shadow);
}

.dl-card--hq {
  border-top-width: 3px;
  box-shadow: var(--card-shadow), 0 0 36px -14px rgba(var(--red-rgb), 0.55);
}

.dl-card__city {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font: 700 15.5px/1.2 var(--f-ui);
  color: #ffffff;
}

.dl-card__city span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--red-rgb), 0.18);
  color: var(--ember);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dl-card__person {
  font: 600 13.5px/1.2 var(--f-ui);
  color: #ffb3b9;
}

.dl-card__addr {
  font: 400 12.5px/1.4 var(--f-text);
  color: var(--body);
  flex: 1;
}

.dl-card__acts {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.dl-card__acts a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 999px;
  font: 700 12.5px/1 var(--f-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  transition: background-color 0.18s ease;
}

.dl-card__acts a.is-wa {
  background: var(--red);
}

.dl-card__acts a:hover {
  filter: brightness(1.12);
}

.dyno-svg-chart {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #0a0f16;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.dyno-svg-chart__hp {
  filter: drop-shadow(0 0 10px rgba(234, 43, 56, 0.75));
}

.dyno-modal-cap {
  margin: 0;
  font: 400 14px/1.5 var(--f-text);
  color: var(--body);
}

.dyno-modal-cap__hi {
  color: var(--ember);
}

/* Booking / Franchise Form Inputs */
.ew-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .ew-form {
    grid-template-columns: 1fr;
  }
}

.ew-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font: 700 12.5px/1 var(--f-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.ew-form label.full {
  grid-column: 1 / -1;
}

.ew-form input, .ew-form select, .ew-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #131b24;
  color: #ffffff;
  font: 400 15px/1.4 var(--f-text);
}

.ew-form textarea {
  min-height: 88px;
  resize: vertical;
}

.ew-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- 9. HOMEPAGE #rekor (TURKEY'S FASTEST DIESEL & FOUNDER TRACKSIDE SPOTLIGHT) ---------- */
.cx-bg-img--rekor {
  --focus: 52% 58%;
}

@media (max-height: 700px) {
  .ew-rec-lede {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

@media (max-width: 479px) {
  .ew-hide-xs {
    display: none;
  }
}

.cx-body--rekor {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (min-width: 1100px) and (min-aspect-ratio: 1/1) {
  .cx-body--rekor {
    padding-right: 48px;
  }
}

@media (max-width: 959px), (max-height: 539px), (max-aspect-ratio: 1/1) {
  .cx-body--rekor {
    justify-content: flex-start;
  }
}

.ew-rec-spot {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 27, 37, 0.90), rgba(8, 12, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 3px solid var(--red);
  box-shadow: var(--card-shadow), 0 0 56px -16px rgba(var(--red-rgb), 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.ew-rec-spot__photo {
  position: relative;
  width: 92px;
  height: 108px;
  border-radius: 12px;
  overflow: hidden;
  background: #060a10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ew-rec-spot__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 24%;
}

.ew-rec-spot__plate {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(4, 10, 15, 0.88);
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.55);
  font: 700 9.5px/1.1 var(--f-ui);
  letter-spacing: 0.08em;
  color: #ffffff;
}

.ew-rec-spot__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ew-rec-spot__tag {
  font: 700 10.5px/1.2 var(--f-ui);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--kick);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ew-rec-spot__stat {
  margin: 0;
  font: 700 clamp(20px, 4.8vw, 30px)/1.02 var(--f-display);
  text-transform: uppercase;
  color: #ffffff;
}

.ew-rec-spot__stat em {
  font-style: normal;
  color: var(--ember);
}

.ew-rec-spot__who {
  margin: 0;
  font: 400 12px/1.3 var(--f-text);
  color: #b8c6d6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ew-rec-spot__play {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-top: 2px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--red-rgb), 0.20);
  box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.55);
  font: 700 11.5px/1 var(--f-ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ew-rec-spot__play:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.ew-rec-spot__play svg {
  width: 13px;
  height: 13px;
}

@media (min-width: 960px) and (min-height: 620px) and (min-aspect-ratio: 1/1) {
  .ew-rec-spot {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    max-width: 560px;
    padding: 16px;
    border-radius: 22px;
  }
  .ew-rec-spot__photo {
    width: 210px;
    height: 268px;
    border-radius: 16px;
  }
  .ew-rec-spot__plate {
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    font-size: 11px;
  }
  .ew-rec-spot__info {
    gap: 10px;
  }
  .ew-rec-spot__tag {
    font-size: 12px;
    white-space: normal;
  }
  .ew-rec-spot__who {
    font-size: 13.5px;
    line-height: 1.45;
    white-space: normal;
  }
  .ew-rec-spot__play {
    padding: 9px 15px;
    font-size: 13px;
  }
}

/* Video Player Modal (#cx-video-modal — shared on index.html & subpages) */
.cx-sheet--video .cx-sheet__panel {
  width: min(920px, calc(100vw - 24px));
}

.cx-sheet--video.is-reel-mode .cx-sheet__panel {
  width: min(440px, calc(100vw - 24px));
}

.ew-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ew-video-stage.is-reel {
  aspect-ratio: 9 / 16;
  max-height: 70svh;
  margin: 0 auto;
}

.ew-yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ew-mp4-frame {
  object-fit: contain;
  background: #04080d;
}

.ew-video-stage.is-photo {
  aspect-ratio: auto;
  max-height: 74svh;
  display: grid;
  place-items: center;
  background: #05090e;
}

.ew-modal-img {
  width: 100%;
  max-height: 74svh;
  object-fit: contain;
}

.ew-video-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
