:root {
  color-scheme: dark;
  --page: #07090d;
  --panel: rgba(22, 27, 35, 0.84);
  --panel-strong: rgba(18, 22, 29, 0.95);
  --line: rgba(255, 255, 255, 0.12);
  --muted: #b8bec9;
  --text: #f7f8fb;
  --purple: #a44dff;
  --purple-deep: #5c20b8;
  --green: #63d6a5;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 22%, rgba(124, 52, 201, 0.34), transparent 28rem),
    radial-gradient(circle at 42% 42%, rgba(69, 81, 112, 0.2), transparent 30rem),
    linear-gradient(180deg, #080b10 0%, #10141b 48%, #090b0f 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 68px;
  padding: 0 clamp(20px, 3.2vw, 52px);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
}

.brand:hover .gauge::before {
  animation: needle-sweep 0.9s ease both;
}

.brand:hover .speed-readout {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(164, 77, 255, 0.85);
}

.brand strong {
  font-weight: 900;
}

.brand-word {
  background: linear-gradient(90deg, #ffffff 0 55%, #b76bff 56% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gauge {
  position: relative;
  width: 46px;
  height: 31px;
  display: block;
  border: 4px solid #f1e8ff;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  box-shadow: inset 0 0 0 1px rgba(164, 77, 255, 0.12), 0 0 18px rgba(164, 77, 255, 0.14);
}

.gauge::before {
  position: absolute;
  right: 5px;
  bottom: 1px;
  width: 22px;
  height: 4px;
  content: "";
  background: var(--purple);
  border-radius: 999px;
  transform: rotate(-44deg);
  transform-origin: right center;
  box-shadow: 0 0 14px rgba(164, 77, 255, 0.8);
  animation: needle-idle 3.2s ease-in-out infinite;
}

.speed-readout {
  position: absolute;
  left: 50%;
  bottom: -15px;
  color: #cfd5df;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

@keyframes needle-idle {
  0%,
  100% {
    transform: rotate(-44deg);
  }

  50% {
    transform: rotate(-30deg);
  }
}

@keyframes needle-sweep {
  0% {
    transform: rotate(-55deg);
  }

  55% {
    transform: rotate(-12deg);
  }

  100% {
    transform: rotate(-32deg);
  }
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 42px);
  color: #f1f3f7;
  font-size: 15px;
}

.main-nav a {
  height: 100%;
  display: grid;
  place-items: center;
  border-bottom: 2px solid transparent;
}

.main-nav .active {
  color: var(--purple);
  border-color: var(--purple);
}

main {
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.1vw, 50px) 38px;
}

.hero {
  position: relative;
  min-height: 372px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 34px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.hero h1 {
  width: min(590px, 100%);
  margin: 0;
  font-size: clamp(42px, 3.2vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p {
  width: min(540px, 100%);
  margin: 14px 0 0;
  color: #d6dae3;
  font-size: 18px;
  line-height: 1.55;
}

.hero-car {
  position: absolute;
  inset: 8px -70px -10px 34%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
  isolation: isolate;
}

.hero-car::before {
  position: absolute;
  inset: 2% 0 0 14%;
  content: "";
  z-index: 0;
  background:
    radial-gradient(ellipse at 62% 45%, rgba(153, 77, 255, 0.28), transparent 46%),
    linear-gradient(90deg, transparent, rgba(10, 12, 18, 0.26) 22%, transparent 84%);
  filter: blur(18px);
}

.hero-car::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.92) 0%, transparent 18%, transparent 76%, rgba(7, 9, 13, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.56) 0%, transparent 20%, transparent 78%, rgba(7, 9, 13, 0.72) 100%);
}

.hero-car img {
  position: relative;
  z-index: 1;
  width: min(1020px, 74vw);
  max-height: 382px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  filter: contrast(1.08) brightness(0.9) saturate(0.92) drop-shadow(0 34px 42px rgba(0, 0, 0, 0.78));
  mask-image: radial-gradient(ellipse at 58% 53%, black 0 54%, rgba(0, 0, 0, 0.92) 66%, transparent 86%);
}

.finder-panel {
  width: min(920px, 100%);
  margin: 18px auto 0;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(190px, 0.85fr) minmax(330px, 1.45fr);
  gap: 12px 14px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 29, 37, 0.82), rgba(20, 24, 31, 0.76));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.finder-mode {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  display: inline-flex;
  justify-self: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.72);
}

.finder-mode .mode-toggle {
  width: auto;
  height: 34px;
  padding: 0 12px;
  color: #dce4ef;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.finder-mode .mode-toggle.is-active {
  color: #07100d;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
}

.finder-panel.is-kba-mode {
  grid-template-columns: repeat(2, minmax(150px, 220px));
  justify-content: center;
}

.finder-panel.is-kba-mode .finder-mode,
.finder-panel.is-kba-mode button,
.finder-panel.is-kba-mode .safe-note {
  grid-column: 1 / -1;
}

.kba-search-field[hidden],
.vehicle-search-field[hidden] {
  display: none;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #f6f8fb;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  outline: 0;
  background: rgba(18, 23, 31, 0.92);
  text-overflow: ellipsis;
}

#hsn,
#tsn {
  text-transform: uppercase;
}

.field select {
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  border-color: rgba(164, 77, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(164, 77, 255, 0.15);
}

.finder-panel button,
.ghost-button,
.park-button,
.parts-button,
.lets-tune-button {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.finder-panel button {
  grid-column: 1 / -1;
  width: min(360px, 100%);
  justify-self: center;
  border: 0;
  background: linear-gradient(135deg, #8c33e6, #5c20b8);
  box-shadow: 0 0 24px rgba(164, 77, 255, 0.45);
}

.safe-note {
  grid-column: 1 / -1;
  margin: 0;
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 8px;
  color: #c8ced8;
  font-size: 13px;
}

.vehicle-strip,
.benefits {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 28, 36, 0.92), rgba(14, 17, 23, 0.88));
}

.vehicle-strip {
  min-height: 104px;
  margin-top: 18px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.vehicle-image {
  height: 118px;
  overflow: hidden;
  border-radius: 8px;
  background: #0b0f16;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(0.95) contrast(1.08);
}

.vehicle-strip span {
  color: var(--purple);
  font-size: 15px;
}

.vehicle-strip h2 {
  margin: 5px 0 4px;
  font-size: 24px;
  line-height: 1.1;
}

.vehicle-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.vehicle-cart-count {
  width: max-content;
  margin-top: 9px;
  padding: 5px 9px;
  color: #07100d;
  border-radius: 999px;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
  font-size: 12px;
  font-weight: 900;
}

.vehicle-facts {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-facts div {
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
}

.vehicle-facts dt,
.vehicle-facts dd {
  margin: 0;
}

.vehicle-facts dt {
  color: #9098a8;
  font-size: 11px;
}

.vehicle-facts dd {
  color: #edf0f6;
  font-size: 12px;
  font-weight: 700;
}

.vehicle-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.ghost-button,
.park-button,
.parts-button,
.lets-tune-button {
  min-width: 184px;
  padding: 0 18px;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(17, 20, 27, 0.52);
}

.park-button {
  border: 0;
  background: linear-gradient(135deg, #8c33e6, #5c20b8);
  box-shadow: 0 0 20px rgba(164, 77, 255, 0.34);
}

.park-button.is-parked {
  color: #08100d;
  background: linear-gradient(135deg, #63d6a5, #a8ffcf);
  box-shadow: 0 0 20px rgba(99, 214, 165, 0.28);
}

.parts-button {
  color: #f8fbff;
  border: 1px solid rgba(99, 214, 165, 0.36);
  background: rgba(99, 214, 165, 0.1);
}

.lets-tune-button {
  color: #07100d;
  border: 0;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
  font-weight: 800;
  box-shadow: 0 0 22px rgba(99, 214, 165, 0.28);
}

.saved-vehicles {
  margin-top: 16px;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 28, 36, 0.88), rgba(14, 17, 23, 0.82));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading span {
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.saved-vehicle-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.saved-vehicle-card {
  min-height: 92px;
  padding: 10px;
  display: grid;
  gap: 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.saved-vehicle-card:hover {
  border-color: rgba(164, 77, 255, 0.45);
  background: rgba(164, 77, 255, 0.08);
}

.saved-vehicle-card button {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.saved-vehicle-card img {
  width: 96px;
  height: 62px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(5, 7, 11, 0.72);
}

.saved-tune-link {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #07100d;
  border-radius: 5px;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
  font-size: 13px;
  font-weight: 900;
}

.saved-vehicle-card strong,
.saved-vehicle-card small,
.saved-vehicle-card em,
.saved-vehicle-card b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-page main {
  padding-top: 28px;
}

.vehicle-page .hero,
.vehicle-page .parts-grid,
.vehicle-page .benefits,
.vehicle-page .about-page {
  display: none;
}

.vehicle-page .vehicle-strip {
  margin-top: 0;
}

.vehicle-page .saved-vehicles {
  margin-top: 18px;
}

.vehicle-page .saved-vehicle-list {
  grid-template-columns: 1fr;
}

.vehicle-page .saved-vehicle-card {
  min-height: 118px;
}

.vehicle-page .saved-vehicle-card button {
  grid-template-columns: 170px minmax(0, 1fr);
}

.vehicle-page .saved-vehicle-card img {
  width: 170px;
  height: 92px;
}

.vehicle-page .saved-vehicle-card strong {
  font-size: 18px;
}

.saved-vehicle-card strong {
  font-size: 14px;
  white-space: nowrap;
}

.saved-vehicle-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.saved-vehicle-card em {
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 4px 8px;
  color: var(--green);
  border: 1px solid rgba(99, 214, 165, 0.26);
  border-radius: 999px;
  background: rgba(99, 214, 165, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.saved-vehicle-card b {
  margin-top: 7px;
  color: #f8fbff;
  font-size: 14px;
}

.empty-saved {
  grid-column: 1 / -1;
  min-height: 70px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
}

.vehicle-cart-overview {
  margin-top: 16px;
}

.vehicle-cart-summary {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 28, 36, 0.9), rgba(13, 16, 22, 0.86));
}

.vehicle-cart-summary.is-empty p {
  margin: 14px 0 0;
  color: var(--muted);
}

.empty-saved strong {
  color: var(--text);
}

.parts-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.part-card {
  min-height: 314px;
  display: grid;
  grid-template-rows: 142px auto;
  scroll-margin-top: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(24, 29, 37, 0.96), rgba(13, 16, 21, 0.94));
}

.part-card:target {
  border-color: rgba(164, 77, 255, 0.68);
  box-shadow: 0 0 0 1px rgba(164, 77, 255, 0.24), 0 22px 60px rgba(164, 77, 255, 0.18);
}

.part-visual {
  position: relative;
  padding: 22px;
  display: grid;
  align-content: start;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.part-visual img {
  position: absolute;
  right: -16px;
  bottom: -28px;
  width: 52%;
  max-width: 210px;
  height: 135px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.88;
  filter: brightness(0.76) contrast(1.12) saturate(0.76);
  mask-image: radial-gradient(circle at center, black 48%, transparent 76%);
}

.part-title {
  position: relative;
  z-index: 1;
  width: 68%;
}

.part-title h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  line-height: 1.1;
}

.part-title h3 span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--purple);
  border: 1px solid rgba(164, 77, 255, 0.42);
  border-radius: 50%;
  background: rgba(164, 77, 255, 0.11);
}

.part-title p {
  margin: 13px 0 0;
  color: #d3d7df;
  line-height: 1.45;
}

.part-body {
  padding: 14px 16px 16px;
}

.part-body > span {
  display: block;
  margin-bottom: 10px;
  color: #b6bdc9;
  font-size: 12px;
}

.product-row {
  min-height: 40px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 1fr auto 18px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
  font-size: 14px;
}

.product-row:hover {
  color: #ffffff;
  background: rgba(164, 77, 255, 0.1);
}

.product-row:first-of-type {
  border-top: 0;
}

.product-row strong {
  font-size: 13px;
  font-weight: 600;
}

.product-row small {
  color: #d6dae2;
  white-space: nowrap;
}

.product-row em {
  color: #f5f7fb;
  font-style: normal;
  text-align: right;
}

.part-link {
  margin-top: 15px;
  display: block;
  color: var(--purple);
  text-align: center;
}

.tuning-category-list {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.tuning-shop-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tuning-shop-tab {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #e9edf5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.tuning-shop-tab span {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  color: #07100d;
  border-radius: 999px;
  background: var(--green);
  font-size: 11px;
}

.tuning-shop-tab.is-active {
  color: #07100d;
  border-color: rgba(99, 214, 165, 0.82);
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
}

.tuning-shop-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 28, 36, 0.94), rgba(13, 16, 22, 0.9));
}

.tuning-filter-bar {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
}

.tuning-filter-bar label {
  display: grid;
  gap: 7px;
  color: #c9d1dc;
  font-size: 12px;
  font-weight: 800;
}

.tuning-filter-bar select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(12, 15, 21, 0.92);
  outline: 0;
}

.tuning-filter-bar select:focus {
  border-color: rgba(99, 214, 165, 0.62);
  box-shadow: 0 0 0 3px rgba(99, 214, 165, 0.12);
}

.tuning-product-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tuning-product-card {
  min-height: 190px;
  padding: 14px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.tuning-product-card > img {
  width: 148px;
  height: 118px;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(5, 7, 11, 0.72);
}

.tuning-product-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.tuning-product-card h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.tuning-product-card p,
.tuning-product-card small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.tuning-product-card p {
  margin: 8px 0 0;
}

.tuning-product-card small {
  margin-top: 8px;
}

.color-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-list span {
  min-height: 24px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  color: #dce4ef;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 800;
}

.tuning-product-card a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07100d;
  border-radius: 5px;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
  font-size: 13px;
  font-weight: 900;
}

.benefits {
  margin-top: 24px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.benefits article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: center;
}

.benefits article > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  font-size: 24px;
}

.benefits h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.benefits p {
  margin: 0;
  color: #c7cdd7;
  line-height: 1.45;
  font-size: 14px;
}

.status-message {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(164, 77, 255, 0.3);
  border-radius: 8px;
  background: rgba(164, 77, 255, 0.08);
}

.page-view {
  display: none;
}

.static-page .hero,
.static-page .vehicle-strip,
.static-page .saved-vehicles,
.static-page .vehicle-cart-overview,
.static-page .parts-grid,
.static-page .benefits {
  display: none;
}

.tuning-page-view #tuning-page,
.about-page-view #about-page,
.tune-detail-page #tune-detail,
.blog-page-view #blog-page {
  display: block;
}

.tune-shell {
  padding-top: 26px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #dbe2ed;
  font-weight: 800;
}

.tune-hero {
  min-height: 168px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 28, 36, 0.88), rgba(13, 16, 22, 0.84));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tune-copy span,
.panel-heading span,
.tune-empty span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tune-copy h1,
.tune-empty h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.tune-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.tune-car-stage {
  width: 220px;
  min-height: 124px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(99, 214, 165, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(22, 27, 35, 0.8), rgba(8, 11, 16, 0.9));
}

.tune-car-stage img {
  width: 100%;
  max-height: 126px;
  object-fit: contain;
  filter: brightness(0.96) contrast(1.08) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.58));
}

.tune-workbench {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 18px;
}

.stat-panel,
.software-panel,
.category-panel,
.tune-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 28, 36, 0.94), rgba(13, 16, 22, 0.9));
}

.stat-panel,
.software-panel,
.category-panel {
  padding: 20px;
}

.stat-panel-top {
  margin-top: 14px;
  position: sticky;
  top: 76px;
  z-index: 8;
  pointer-events: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.compare-lock {
  margin-bottom: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(99, 214, 165, 0.24);
  border-radius: 8px;
  background: rgba(99, 214, 165, 0.08);
}

.compare-lock span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-lock strong {
  overflow: hidden;
  color: #eef4fb;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-reset-action {
  min-height: 32px;
  padding: 0 10px;
  pointer-events: auto;
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.stat-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.stat-summary > div {
  display: grid;
  gap: 6px;
}

.stat-summary strong {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.stat-summary span {
  color: var(--muted);
}

.stat-bars {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-row {
  display: grid;
  gap: 8px;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}

.stat-label span {
  color: #c9d1dc;
}

.stat-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.stat-base {
  background: rgba(255, 255, 255, 0.18);
}

.stat-tuned {
  background: linear-gradient(90deg, #63d6a5, #e9ff72);
  box-shadow: 0 0 18px rgba(99, 214, 165, 0.34);
}

.stat-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.stat-values span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-values em {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-values b {
  display: block;
  overflow-wrap: anywhere;
  color: #eef4fb;
  font-size: 12px;
}

.stat-values .is-positive b {
  color: var(--green);
}

.stat-values .is-negative b {
  color: #ff6f6f;
}

.stat-values .is-even b {
  color: #aeb8c6;
}

.stat-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.panel-heading h2 {
  margin: 6px 0 0;
  font-size: 28px;
}

.software-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.category-panel {
  margin-top: 14px;
}

.tune-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tune-category-tab {
  min-height: 36px;
  padding: 0 12px;
  flex: 0 0 auto;
  color: #eaf0f7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.tune-category-tab.is-active {
  color: #07100d;
  border-color: rgba(99, 214, 165, 0.8);
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
}

.tune-sort-bar {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.tune-sort-bar label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 240px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tune-sort-bar select {
  min-height: 38px;
  padding: 0 12px;
  color: #eaf0f7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.86);
}

.upgrade-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upgrade-card {
  min-height: 118px;
  padding: 14px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 116px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  outline: 0;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.upgrade-card > img {
  width: 104px;
  height: 74px;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(5, 7, 11, 0.72);
  filter: brightness(0.9) contrast(1.08);
}

.upgrade-card:hover,
.upgrade-card:focus-within {
  border-color: rgba(99, 214, 165, 0.58);
  background: rgba(99, 214, 165, 0.08);
  transform: translateY(-1px);
}

.upgrade-card.is-active {
  border-color: rgba(99, 214, 165, 0.72);
  background: rgba(99, 214, 165, 0.12);
}

.upgrade-card.is-compared {
  border-color: rgba(233, 255, 114, 0.72);
  background: rgba(233, 255, 114, 0.08);
}

.upgrade-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.upgrade-card strong,
.upgrade-card small {
  display: block;
}

.upgrade-card strong {
  margin-top: 5px;
  font-size: 17px;
}

.upgrade-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.upgrade-card .slot-hint,
.cart-item .slot-hint {
  width: max-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 7px;
  color: #dce4ef;
  border: 1px solid rgba(99, 214, 165, 0.24);
  border-radius: 999px;
  background: rgba(99, 214, 165, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.upgrade-card mark,
.cart-item mark,
.tuning-product-card mark {
  width: max-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 8px;
  display: block;
  color: #07100d;
  border-radius: 999px;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
  font-size: 12px;
  font-weight: 900;
}

.upgrade-meta {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.upgrade-meta em,
.upgrade-link {
  min-height: 24px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  color: #dce4ef;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.upgrade-link {
  color: var(--green);
}

.upgrade-actions {
  display: grid;
  gap: 8px;
}

.compare-action,
.upgrade-action,
.upgrade-buy-link {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07100d;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
  cursor: pointer;
  font-weight: 900;
}

.compare-action {
  color: #eef5ff;
  border: 1px solid rgba(233, 255, 114, 0.28);
  background: rgba(233, 255, 114, 0.1);
  font-size: 13px;
}

.upgrade-buy-link {
  color: #eef5ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.upgrade-card.is-active .upgrade-action {
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.upgrade-card.is-compared .compare-action {
  color: #07100d;
  border-color: rgba(233, 255, 114, 0.84);
  background: linear-gradient(135deg, #e9ff72, #63d6a5);
}

.vehicle-cart {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 28, 36, 0.94), rgba(13, 16, 22, 0.9));
}

.cart-empty {
  margin-top: 14px;
  padding: 16px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.cart-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cart-item {
  min-height: 96px;
  padding: 12px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.cart-item img {
  width: 90px;
  height: 66px;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(5, 7, 11, 0.72);
}

.cart-item span,
.cart-item small {
  display: block;
}

.cart-item span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.cart-item strong {
  display: block;
  margin-top: 4px;
}

.cart-item small {
  margin-top: 5px;
  color: var(--muted);
}

.cart-item-actions {
  display: grid;
  gap: 8px;
}

.cart-item a,
.cart-remove-action {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.cart-item a {
  color: #07100d;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
}

.cart-remove-action {
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.cart-remove-action:hover {
  border-color: rgba(255, 90, 90, 0.58);
  background: rgba(255, 90, 90, 0.16);
}

.cart-total {
  align-self: end;
  color: #f8fbff;
  font-size: 18px;
}

.software-option {
  min-height: 92px;
  padding: 14px;
  display: grid;
  gap: 5px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.software-option span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.software-option strong {
  font-size: 17px;
}

.software-option small {
  color: var(--muted);
  line-height: 1.35;
}

.software-option.is-active {
  border-color: rgba(99, 214, 165, 0.62);
  background: rgba(99, 214, 165, 0.1);
}

.tune-empty {
  margin-top: 28px;
  padding: 34px;
}

.tune-empty a {
  min-height: 44px;
  margin-top: 22px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  color: #07100d;
  border-radius: 5px;
  background: linear-gradient(135deg, #63d6a5, #e9ff72);
  font-weight: 900;
}

.page-hero {
  position: relative;
  min-height: 280px;
  padding: 58px 0 34px;
  display: grid;
  align-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: min(580px, 52vw);
  aspect-ratio: 1.8;
  content: "";
  background: url("/images/cars/bmw-real.png") center / contain no-repeat;
  opacity: 0.42;
  filter: brightness(0.86) contrast(1.08) drop-shadow(0 34px 42px rgba(0, 0, 0, 0.68));
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0 58%, transparent 82%);
}

.page-hero.compact {
  min-height: 230px;
}

.page-hero > span,
.about-story > span,
.blog-grid article > span {
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 9px 0 0;
  font-size: clamp(38px, 4vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero p {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin: 17px 0 0;
  color: #d7dce5;
  font-size: 18px;
  line-height: 1.55;
}

.brand-directory {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brand-card,
.about-story,
.about-points article,
.blog-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 28, 36, 0.92), rgba(13, 16, 22, 0.88));
}

.brand-card {
  min-height: 178px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(164, 77, 255, 0.38);
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(164, 77, 255, 0.42), rgba(99, 214, 165, 0.18));
  font-size: 14px;
  font-weight: 900;
}

.brand-card h2,
.blog-grid h2,
.about-story h2,
.about-points h3 {
  margin: 0;
}

.brand-card p,
.blog-grid p,
.about-story p,
.about-points p {
  color: var(--muted);
  line-height: 1.5;
}

.brand-card p {
  margin: 7px 0 0;
  font-size: 14px;
}

.brand-card button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f8fbff;
  border: 1px solid rgba(164, 77, 255, 0.34);
  border-radius: 5px;
  background: rgba(164, 77, 255, 0.11);
  cursor: pointer;
}

.brand-card:hover {
  border-color: rgba(164, 77, 255, 0.5);
  transform: translateY(-1px);
}

.about-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.about-story {
  padding: 28px;
}

.about-story h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}

.about-story p {
  margin: 18px 0 0;
  font-size: 16px;
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-points article {
  padding: 20px;
}

.about-points strong {
  color: var(--green);
  font-size: 13px;
}

.about-points h3 {
  margin-top: 8px;
  font-size: 20px;
}

.about-points p {
  margin: 8px 0 0;
}

.about-strip {
  margin-top: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(99, 214, 165, 0.22);
  border-radius: 8px;
  background: rgba(99, 214, 165, 0.06);
}

.about-strip span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #dffbea;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.blog-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-grid article {
  min-height: 250px;
  padding: 22px;
  display: grid;
  align-content: end;
}

.blog-grid h2 {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.15;
}

.blog-grid p {
  margin: 12px 0 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .parts-grid,
  .benefits,
  .saved-vehicle-list,
  .tuning-category-list,
  .brand-directory,
  .about-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .finder-panel {
    grid-template-columns: 1fr 1fr;
  }

  .finder-panel button,
  .safe-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 68px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 28px 0 22px;
  }

  .hero-car {
    position: relative;
    inset: auto;
    margin-top: 24px;
  }

  .hero-car img {
    width: 100%;
    max-height: 260px;
    mix-blend-mode: normal;
    mask-image: linear-gradient(90deg, transparent 0%, black 9%, black 91%, transparent 100%);
  }

  .finder-panel {
    grid-template-columns: 1fr;
  }

  .vehicle-strip {
    grid-template-columns: 112px 1fr;
  }

  .vehicle-actions,
  .ghost-button,
  .park-button,
  .parts-button,
  .lets-tune-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .about-layout,
  .blog-grid,
  .tune-hero,
  .tune-workbench {
    grid-template-columns: 1fr;
  }

  .tune-car-stage {
    width: 100%;
  }

  .stat-panel-top {
    top: 10px;
  }

  .stat-bars,
  .upgrade-grid,
  .tuning-product-grid,
  .cart-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tuning-product-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .tuning-filter-bar {
    grid-template-columns: 1fr;
  }

  .tuning-product-card > a {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  main {
    padding-inline: 14px;
  }

  .brand {
    font-size: 21px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .parts-grid,
  .benefits,
  .saved-vehicle-list,
  .tuning-category-list,
  .brand-directory,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .tuning-category-card.is-featured {
    grid-column: auto;
  }

  .vehicle-strip {
    grid-template-columns: 1fr;
  }

  .vehicle-image {
    width: 100%;
  }

  .vehicle-page .saved-vehicle-card {
    grid-template-columns: 1fr;
  }

  .vehicle-page .saved-vehicle-card button {
    grid-template-columns: 1fr;
  }

  .vehicle-page .saved-vehicle-card img {
    width: 100%;
  }

  .tune-car-stage {
    min-height: 132px;
  }

  .stat-summary {
    display: grid;
  }

  .compare-lock {
    grid-template-columns: 1fr;
  }

  .compare-reset-action {
    width: 100%;
  }

  .stat-bars,
  .upgrade-grid,
  .tuning-product-grid,
  .cart-list {
    grid-template-columns: 1fr;
  }

  .upgrade-card,
  .tuning-product-card {
    grid-template-columns: 1fr;
  }

  .upgrade-card > img,
  .tuning-product-card > img {
    width: 100%;
    height: 130px;
  }

  .upgrade-actions,
  .compare-action,
  .upgrade-action,
  .upgrade-buy-link {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item img {
    width: 100%;
    height: 140px;
  }

  .cart-item-actions,
  .cart-item a,
  .cart-remove-action {
    width: 100%;
  }
}
