/* ==========================================================
   TURBOHUB AUTO SALES — design system
   ========================================================== */
:root {
  --bg: #08080a;
  --bg2: #0f0f12;
  --card: #141418;
  --card2: #1a1a20;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #f3f3f5;
  --muted: #9b9ba8;
  --dim: #6c6c78;
  --red: #e10600;
  --red2: #ff3b30;
  --red-glow: rgba(225, 6, 0, .45);
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --head: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body); overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; width: 100%; max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a32; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
.h-xl { font-size: clamp(2.6rem, 7vw, 6rem); font-style: italic; text-transform: uppercase; }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.4rem); font-style: italic; text-transform: uppercase; }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.red { color: var(--red); }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font: 600 .78rem/1 var(--body);
  letter-spacing: .22em; text-transform: uppercase; color: var(--red2); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--line2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 1px solid var(--b);
  font: 600 .95rem/1 var(--body); letter-spacing: .02em; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s, color .3s;
  overflow: hidden; isolation: isolate;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon-arrow-right { transform: translateX(4px); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn-red::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-red:hover { box-shadow: 0 16px 40px -10px var(--red-glow); background: var(--red2); border-color: var(--red2); }
.btn-red:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-white { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; }
.btn-sm { padding: .7em 1.15em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); transition: .3s var(--ease);
}
.icon-btn:hover { border-color: var(--red); color: var(--red2); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--text); }
.link-arrow .icon { transition: transform .3s var(--ease); color: var(--red); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; padding: 18px 0;
  transition: padding .4s var(--ease), background .4s, border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { padding: 10px 0; background: rgba(8, 8, 10, .78); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 24px; }
.brand img { height: 66px; width: auto; transition: height .4s var(--ease); filter: drop-shadow(0 4px 14px rgba(225, 6, 0, .25)); }
.scrolled .brand img { height: 52px; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  position: relative; padding: .55em .9em; font-size: .92rem; font-weight: 500; color: #d6d6dc; border-radius: 999px; white-space: nowrap;
  transition: color .25s, background .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; background: var(--red);
  transition: width .35s var(--ease), left .35s var(--ease); box-shadow: 0 0 10px var(--red);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 40%; left: 30%; }
.nav-links a.active { color: #fff; }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang {
  position: relative;
}
.lang-btn { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: .85rem; font-weight: 600; transition: .3s; }
.lang-btn:hover { border-color: #fff; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 14px;
  background: rgba(20, 20, 24, .96); backdrop-filter: blur(16px); border: 1px solid var(--line2); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: .9rem; text-align: left; }
.lang-menu button:hover, .lang-menu button.on { background: rgba(255, 255, 255, .07); }
.lang-menu button.on::after { content: "✓"; margin-left: auto; color: var(--red2); }
.fav-link { position: relative; }
.fav-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
.fav-count:empty { display: none; }
.burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(8, 8, 10, .97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 24px 40px;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu a.m-link {
  font: italic 800 clamp(2rem, 9vw, 3rem)/1.15 var(--head); text-transform: uppercase; display: flex; align-items: center; gap: 14px;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .2s;
}
.mobile-menu a.m-link small { font: 500 .8rem var(--body); color: var(--red2); }
.mobile-menu a.m-link:hover { color: var(--red2); }
.menu-open .mobile-menu a.m-link { opacity: 1; transform: none; }
.mobile-menu .m-foot { margin-top: 40px; color: var(--muted); font-size: .9rem; display: grid; gap: 6px; }

/* ---------- hero (home) — centred copy, search panel underneath ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; padding: 150px 0 90px; overflow: hidden;
}
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(8, 8, 10, .78), transparent 72%),
    linear-gradient(180deg, rgba(8, 8, 10, .35) 0%, transparent 30%, transparent 65%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(36px, 5vw, 56px); text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 920px; }
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.hero h1 { margin-bottom: .35em; line-height: .98; }
.hero h1 .line { display: block; overflow: hidden; padding-inline: .08em; }
.hero h1 .line span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero .lead { margin-inline: auto; opacity: 0; animation: fadeUp 1s .45s var(--ease) forwards; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 2rem; opacity: 0; animation: fadeUp 1s .6s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-card {
  position: relative; width: min(1040px, 100%); padding: 22px 24px 24px; border-radius: 24px; text-align: left;
  display: grid; grid-template-columns: auto minmax(0, 340px); justify-content: space-between; align-items: center; column-gap: 20px;
  background: linear-gradient(160deg, rgba(30, 30, 36, .78), rgba(14, 14, 18, .78));
  border: 1px solid var(--line2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow);
  opacity: 0; animation: fadeUp 1s .75s var(--ease) forwards;
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--red), transparent 40%, transparent 60%, rgba(255, 255, 255, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.3rem; font-style: italic; text-transform: uppercase; }
.hero-tabs { display: flex; gap: 6px; margin: 0; padding: 4px; background: rgba(0, 0, 0, .35); border-radius: 999px; }
.hero-tabs button { flex: 1; padding: .6em 1em; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); transition: .3s; white-space: nowrap; }
.hero-tabs button.on { background: var(--red); color: #fff; box-shadow: 0 6px 20px -6px var(--red-glow); }
/* panes: one row on desktop — fields | price | button */
.hero-card [data-pane] { grid-column: 1 / -1; margin-top: 20px; }
.hero-card [data-pane]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) auto; gap: 16px; align-items: end; }
.hero-card .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.hero-card .field input[type=range] { margin: 12px 0 15px; }
.hero-card [data-pane] > .btn { min-width: 200px; height: 50px; }
.hero-card [data-pane="ship"]:not([hidden]) { grid-template-columns: minmax(0, 1fr) auto; }
.hero-card #shipHint { grid-column: 1 / -1; order: 3; margin: 0; }

@media (max-width: 900px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); row-gap: 14px; justify-items: stretch; }
  .hero-card h3 { justify-content: center; }
  .hero-card [data-pane] { margin-top: 6px; }
  .hero-card [data-pane]:not([hidden]), .hero-card [data-pane="ship"]:not([hidden]) { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero-card [data-pane] > .btn { min-width: 0; width: 100%; }
  .hero-card #shipHint { order: 0; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; padding: 118px 0 64px; }
  .hero .h-xl { font-size: clamp(2.3rem, 12.5vw, 3.4rem); }
  .hero .lead { font-size: .98rem; }
  .hero .eyebrow { letter-spacing: .12em; }
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-card { padding: 18px 16px 18px; border-radius: 20px; }
  .hero-card .grid2 { grid-template-columns: 1fr; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg2); padding: 36px 28px; position: relative; overflow: hidden; }
.stat b { display: block; font: italic 900 clamp(3rem, 6.5vw, 5.2rem)/1 var(--head); margin-bottom: 8px; letter-spacing: -.02em; }
.stat b em { font-style: inherit; color: var(--red); }
.stat > span { color: var(--muted); font-size: 1rem; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(var(--red-glow), transparent 70%); opacity: 0; transition: opacity .5s; }
.stat:hover::after { opacity: .6; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: .8rem 0 0; }
.bg-alt { background: var(--bg2); }
.grid-lines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg2); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: italic 800 1.7rem/1 var(--head); text-transform: uppercase; color: #3a3a44; transition: color .3s; white-space: nowrap; display: flex; align-items: center; gap: 64px; }
.marquee span::after { content: "✦"; font-size: .9rem; color: var(--red); }
.marquee span:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- car card ---------- */
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.car {
  position: relative; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .4s, box-shadow .4s, transform .5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.car:hover { border-color: rgba(225, 6, 0, .55); box-shadow: 0 30px 60px -25px rgba(225, 6, 0, .35), var(--shadow); }
.car-media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: #111; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.car:hover .car-media img { transform: scale(1.08); }
.car-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .75));
}
.car-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), transparent 40%); opacity: 0; transition: opacity .4s; }
.car:hover .car-shine { opacity: 1; }
.badges { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); border: 1px solid var(--line2); }
.badge.red { background: var(--red); border-color: var(--red); color: #fff; }
.badge.green { background: rgba(34, 197, 94, .2); border-color: rgba(34, 197, 94, .5); color: #86efac; }
.badge.amber { background: rgba(245, 158, 11, .2); border-color: rgba(245, 158, 11, .5); color: #fcd34d; }
.fav {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); border: 1px solid var(--line2);
  transition: transform .3s var(--ease), background .3s;
}
.fav:hover { transform: scale(1.12); }
.fav.on { background: var(--red); border-color: var(--red); }
.fav.on .icon { fill: #fff; }
.fav.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.car-price-tag { position: absolute; left: 16px; bottom: 14px; z-index: 3; font: italic 800 1.55rem/1 var(--head); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.car-price-tag small { display: block; font: 500 .72rem var(--body); color: #cfcfd6; font-style: normal; margin-top: 4px; }
.car-body { padding: 18px 18px 20px; }
.car-title { font: 700 1.12rem/1.25 var(--body); margin: 0 0 4px; }
.car-title span { color: var(--muted); font-weight: 500; }
.car-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 16px; padding: 12px 0; border-block: 1px solid var(--line); }
.car-specs div { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #c8c8d0; min-width: 0; }
.car-specs div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-specs .icon { color: var(--red2); }
.car-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.car-foot .est { font-size: .8rem; color: var(--muted); }
.car-foot .est b { color: #fff; }
.car.sold .car-media img { filter: grayscale(.85) brightness(.6); }
.car.sold .car-media::before { content: "SOLD"; position: absolute; z-index: 3; inset: 50% auto auto 50%; transform: translate(-50%, -50%) rotate(-12deg); font: italic 900 3rem var(--head); color: var(--red); border: 4px solid var(--red); padding: 0 18px; border-radius: 8px; letter-spacing: .1em; }

/* ---------- body types ---------- */
.bodies { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.body-type {
  position: relative; padding: 26px 16px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  text-align: center; overflow: hidden; transition: .45s var(--ease);
}
.body-type svg { width: 100%; height: 54px; color: #d9d9e0; transition: transform .6s var(--ease), color .3s; }
.body-type b { display: block; margin-top: 12px; font-weight: 600; }
.body-type small { color: var(--muted); }
.body-type::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 100%; background: radial-gradient(ellipse at center, var(--red-glow), transparent 60%); opacity: 0; transition: opacity .5s; }
.body-type:hover { transform: translateY(-6px); border-color: rgba(225, 6, 0, .5); }
.body-type:hover::before { opacity: 1; }
.body-type:hover svg { transform: translateX(8px); color: #fff; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 32px 28px; border-radius: var(--radius); background: linear-gradient(160deg, var(--card2), var(--card));
  border: 1px solid var(--line); overflow: hidden; transition: .45s var(--ease);
}
.feature .ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; font-size: 1.5rem;
  background: rgba(225, 6, 0, .12); color: var(--red2); border: 1px solid rgba(225, 6, 0, .3); transition: .5s var(--ease);
}
.feature:hover { transform: translateY(-6px); border-color: var(--line2); }
.feature:hover .ico { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.08); box-shadow: 0 10px 30px -8px var(--red-glow); }
.feature h3 { font: 700 1.2rem/1.3 var(--body); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature .num { position: absolute; right: 20px; top: 14px; font: italic 900 4rem/1 var(--head); color: rgba(255, 255, 255, .03); transition: color .5s; }
.feature:hover .num { color: rgba(225, 6, 0, .12); }

/* ---------- worldwide band ---------- */
.world { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.world-map { position: relative; aspect-ratio: 1.6; border-radius: 24px; background: radial-gradient(ellipse at 40% 40%, #17171d, #0b0b0e); border: 1px solid var(--line); overflow: hidden; }
.world-map svg { width: 100%; height: 100%; }
.route { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; filter: drop-shadow(0 0 6px var(--red)); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pin { fill: var(--red); }
.pin-pulse { fill: none; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2s infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.map-label { font: 600 13px var(--body); fill: #fff; }
.map-label.sm { font-size: 11px; fill: var(--muted); }
.ship-dot { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.country-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .03); font-size: .9rem; transition: .3s var(--ease);
}
.chip:hover, .chip.on { border-color: var(--red); background: rgba(225, 6, 0, .12); }
img.flag { width: 20px; height: 15px; object-fit: cover; border-radius: 3px; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.opt img.flag { width: 32px; height: 24px; border-radius: 4px; }
.lang-menu img.flag { margin-right: 2px; }

/* ---------- sell CTA ---------- */
.cta-band {
  position: relative; border-radius: 28px; overflow: hidden; padding: clamp(36px, 6vw, 70px);
  background: linear-gradient(120deg, #1a0202 0%, #0d0d10 55%); border: 1px solid rgba(225, 6, 0, .3);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(var(--red-glow), transparent 65%); filter: blur(30px); animation: float 8s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-30px, 30px) scale(1.1); } }
.cta-band > * { position: relative; z-index: 1; }
.steps-mini { display: grid; gap: 14px; }
.steps-mini div { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: .4s var(--ease); }
.steps-mini div:hover { transform: translateX(-6px); border-color: rgba(225, 6, 0, .4); }
.steps-mini b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font-size: .9rem; flex: none; }

/* ---------- finance + alerts duo ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card {
  position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: 28px;
  background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
}
.duo-card::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(var(--red-glow), transparent 65%); opacity: .35; transition: opacity .6s, transform 1s var(--ease); pointer-events: none; }
.duo-card:hover::after { opacity: .7; transform: scale(1.2); }
.duo-card > * { position: relative; z-index: 1; }
.duo-card > div:last-child, .duo-card > a:last-child { margin-top: auto; }
.duo-card .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--red); margin-bottom: 18px; box-shadow: 0 14px 34px -10px var(--red-glow); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.duo-card .ico .icon { width: 30px; height: 30px; }
.duo-card .lead { margin-top: 0; }
.duo-card > .btn { align-self: flex-start; }
.mini-calc { margin: 10px 0 24px; padding: 20px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.mini-pay { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mini-pay span { font: italic 900 2.6rem/1 var(--head); color: #fff; }
.mini-pay small { color: var(--muted); }
.alert-demo { display: grid; gap: 10px; margin: 10px 0 24px; }
.alert-demo div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: .9rem; animation: slideIn 4s var(--ease) infinite; }
.alert-demo div:nth-child(2) { animation-delay: 2s; }
.alert-demo .icon { color: var(--red2); }
@keyframes slideIn { 0% { opacity: 0; transform: translateX(30px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: .4; } }

/* ---------- testimonials ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: .4s var(--ease); }
.review:hover { border-color: var(--line2); transform: translateY(-4px); }
.stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 14px; }
.review p { margin: 0 0 20px; color: #d5d5dc; }
.review .who { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.review .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), #600); font-weight: 700; }
.review .who small { display: block; color: var(--muted); }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: .45s var(--ease); }
.post-card .pm { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover { transform: translateY(-6px); border-color: rgba(225, 6, 0, .45); }
.post-card:hover img { transform: scale(1.07); }
.post-card .pb { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font: 700 1.15rem/1.35 var(--body); margin: 0; }
.post-card p { color: var(--muted); margin: 0; font-size: .92rem; flex: 1; }
.post-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); align-items: center; }
.post-meta .cat { color: var(--red2); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.posts.featured-first .post-card:first-child { grid-column: span 2; flex-direction: row; }
.posts.featured-first .post-card:first-child .pm { aspect-ratio: auto; flex: 1.2; }
.posts.featured-first .post-card:first-child .pb { flex: 1; justify-content: center; padding: 34px; }
.posts.featured-first .post-card:first-child h3 { font-size: 1.6rem; }

.article { max-width: 760px; margin-inline: auto; }
.article .cover { border-radius: 24px; overflow: hidden; margin: 0 0 40px; aspect-ratio: 16 / 8; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article p { font-size: 1.08rem; color: #d7d7de; line-height: 1.8; }
.article h2 { font: 700 1.6rem/1.3 var(--body); margin: 1.8em 0 .5em; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding: 170px 0 70px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%;
  background: radial-gradient(var(--red-glow), transparent 60%); filter: blur(40px); opacity: .6; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: #fff; }
.speedlines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.speedlines i { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(225, 6, 0, .8), transparent); animation: speed linear infinite; }
@keyframes speed { from { transform: translateX(-100%); } to { transform: translateX(120vw); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.input, select.input, textarea.input {
  width: 100%; padding: .85em 1em; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line2); outline: none; transition: border-color .25s, background .25s, box-shadow .25s; min-height: 48px;
}
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e10600' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.input option { background: #16161a; color: #fff; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { border-color: var(--red); background: rgba(225, 6, 0, .05); box-shadow: 0 0 0 4px rgba(225, 6, 0, .12); }
.input.invalid { border-color: #f87171; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: .8rem; color: var(--dim); }
.hint.ok { color: #86efac; }
.hint.err { color: #fca5a5; }

/* range */
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-row output { font: italic 800 1.25rem var(--head); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red) var(--p, 50%), #2a2a32 var(--p, 50%)); outline: none; margin: 10px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--red); box-shadow: 0 0 0 6px rgba(225, 6, 0, .2); cursor: grab; transition: transform .2s; }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.2); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--red); cursor: grab; }

/* segmented */
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.seg button { flex: 1; padding: .65em .8em; border-radius: 10px; font-size: .85rem; font-weight: 600; color: var(--muted); transition: .3s; white-space: nowrap; }
.seg button:hover { color: #fff; }
.seg button.on { background: var(--red); color: #fff; box-shadow: 0 6px 18px -6px var(--red-glow); }

/* switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: .92rem; }
.switch input { display: none; }
.switch i { width: 44px; height: 24px; border-radius: 12px; background: #2a2a32; position: relative; transition: .3s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .3s var(--ease); }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(20px); }

/* option cards (radio) */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt {
  position: relative; padding: 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03);
  cursor: pointer; transition: .3s var(--ease); display: grid; gap: 4px;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.opt.on, .opt:has(input:checked) { border-color: var(--red); background: rgba(225, 6, 0, .1); box-shadow: inset 0 0 0 1px var(--red); }
.opt b { font-size: .95rem; }
.opt small { color: var(--muted); font-size: .78rem; }

/* ---------- panels / calculators ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 34px); }
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.calc-form { display: grid; gap: 22px; }
.result {
  position: sticky; top: 100px; border-radius: 22px; padding: 30px; overflow: hidden;
  background: linear-gradient(160deg, #1d0606, #121216 60%); border: 1px solid rgba(225, 6, 0, .35);
}
.result::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(var(--red-glow), transparent 65%); }
.result > * { position: relative; }
.result .big { font: italic 800 clamp(2.6rem, 5vw, 3.6rem)/1 var(--head); margin: 6px 0 4px; }
.result .big small { font-size: 1rem; color: var(--muted); font-style: normal; font-family: var(--body); font-weight: 500; }
.breakdown { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 0; }
.breakdown li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line2); font-size: .92rem; }
.breakdown li span { color: var(--muted); }
.breakdown li small { display: block; font-size: .75rem; color: var(--dim); }
.breakdown li b { white-space: nowrap; }
.breakdown li.total { border: 0; padding-top: 16px; font-size: 1.1rem; }
.breakdown li.total span { color: #fff; font-weight: 700; }
.breakdown li.total b { color: var(--red2); font: italic 800 1.5rem var(--head); }
.donut { width: 140px; height: 140px; }
.donut-row { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.legend { display: grid; gap: 8px; font-size: .85rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.cur-switch { display: flex; gap: 4px; flex-wrap: wrap; }
.cur-switch button { padding: 4px 9px; border-radius: 8px; font-size: .75rem; font-weight: 700; border: 1px solid var(--line2); color: var(--muted); }
.cur-switch button.on { border-color: var(--red); color: #fff; background: rgba(225, 6, 0, .2); }
.note { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .25); font-size: .85rem; color: #fde68a; }
.note.info { background: rgba(59, 130, 246, .08); border-color: rgba(59, 130, 246, .25); color: #bfdbfe; }

/* tabs */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); width: fit-content; margin-bottom: 30px; max-width: 100%; overflow-x: auto; }
.tabs button { display: flex; align-items: center; gap: 8px; padding: .75em 1.3em; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: .3s; white-space: nowrap; }
.tabs button.on { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px var(--red-glow); }
.tab-pane { display: none; }
.tab-pane.on { display: block; animation: fadeUp .6s var(--ease); }

/* ---------- wizard ---------- */
.wizard-steps { display: flex; gap: 8px; margin: 0 0 30px; padding: 0; counter-reset: s; }
.wizard-steps li {
  list-style: none; flex: 1; position: relative; padding-top: 18px; font-size: .82rem; color: var(--dim); font-weight: 600; counter-increment: s;
}
.wizard-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: #24242b; }
.wizard-steps li::after { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 4px; border-radius: 4px; background: var(--red); box-shadow: 0 0 10px var(--red); transition: width .6s var(--ease); }
.wizard-steps li.done::after, .wizard-steps li.on::after { width: 100%; }
.wizard-steps li.on, .wizard-steps li.done { color: #fff; }
.wizard-steps li span::before { content: counter(s, decimal-leading-zero) " "; color: var(--red2); }
.step { display: none; }
.step.on { display: grid; gap: 22px; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* VIN */
.vin-box { position: relative; }
.vin-box .input { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; font-size: 1.05rem; }
.vin-scan-btn { position: relative; }
.vin-decoded { display: none; margin-top: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .3); font-size: .9rem; }
.vin-decoded.on { display: block; animation: fadeUp .5s var(--ease); }

/* photo upload */
.drop {
  border: 2px dashed var(--line2); border-radius: 18px; padding: 34px; text-align: center; transition: .3s; cursor: pointer; position: relative;
}
.drop:hover, .drop.over { border-color: var(--red); background: rgba(225, 6, 0, .05); }
.drop .icon { width: 42px; height: 42px; color: var(--red2); margin-bottom: 8px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); animation: fadeUp .4s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .7); display: grid; place-items: center; }
.thumb .cover-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 6px; background: var(--red); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.feat-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-checks label { cursor: pointer; }
.feat-checks input { display: none; }
.feat-checks span { display: inline-block; padding: .5em .95em; border-radius: 999px; border: 1px solid var(--line2); font-size: .85rem; transition: .25s; }
.feat-checks input:checked + span { background: rgba(225, 6, 0, .15); border-color: var(--red); color: #fff; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.open .modal-bg { opacity: 1; }
.modal-box {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: 24px; background: #121216; border: 1px solid var(--line2);
  padding: 26px; transform: translateY(30px) scale(.97); opacity: 0; transition: .45s var(--ease); box-shadow: var(--shadow);
}
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.scanner-view { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #000; margin: 16px 0; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; inset: 30% 8%; border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); }
.scanner-frame::before, .scanner-frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--red); }
.scanner-frame::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scanner-frame::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scanner-laser { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: var(--red); box-shadow: 0 0 16px 3px var(--red); animation: laser 2s ease-in-out infinite; }
@keyframes laser { 0%, 100% { transform: translateY(-38px); } 50% { transform: translateY(38px); } }
.scanner-status { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: .85rem; }
.scanner-status span { background: rgba(0, 0, 0, .65); padding: 6px 14px; border-radius: 999px; }
.scanner-view.hit { box-shadow: inset 0 0 0 4px var(--ok); }
.scanner-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.scanner-tools .input { flex: 1; min-width: 160px; min-height: 42px; padding: .5em 2.2em .5em .9em; }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: grid; gap: 10px; }
.toast { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: #1b1b21; border: 1px solid var(--line2); box-shadow: var(--shadow); animation: toastIn .5s var(--ease); max-width: 360px; font-size: .92rem; }
.toast .icon { color: var(--ok); }
.toast.err .icon { color: #f87171; }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- success ---------- */
.success { text-align: center; padding: 40px 10px; }
.success .check { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .12); border: 2px solid var(--ok); animation: pop .6s var(--ease); }
.success .check svg { width: 46px; height: 46px; color: var(--ok); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref { display: inline-block; margin-top: 10px; padding: 8px 16px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px dashed var(--line2); font-family: ui-monospace, Consolas, monospace; letter-spacing: .1em; }

#carPreview .car { max-width: 440px; }

/* ---------- inventory page ---------- */
.inv-layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 96px; display: grid; gap: 20px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 4px; }
.filters h4 { font: 700 1rem var(--body); display: flex; justify-content: space-between; align-items: center; margin: 0; }
.filters h4 button { font-size: .8rem; color: var(--red2); font-weight: 600; }
.check-list { display: grid; gap: 4px; }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .92rem; transition: background .2s; }
.check-list label:hover { background: rgba(255, 255, 255, .04); }
.check-list input { accent-color: var(--red); width: 16px; height: 16px; }
.check-list small { margin-left: auto; color: var(--dim); }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 220px; position: relative; }
.toolbar .search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search .input { padding-left: 42px; }
.toolbar select { width: auto; }
.result-count { color: var(--muted); font-size: .9rem; }
.result-count b { color: #fff; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.active-filters .chip { font-size: .8rem; padding: .4em .8em; cursor: pointer; }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line2); border-radius: 20px; color: var(--muted); }
.filters-toggle { display: none; }
.cars.list-view { grid-template-columns: 1fr; }
.cars.list-view .car { display: grid; grid-template-columns: 340px 1fr; }
.cars.list-view .car-media { aspect-ratio: auto; height: 100%; min-height: 220px; }

/* ---------- vehicle page ---------- */
.v-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.gallery-main { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: #111; cursor: grab; perspective: 1200px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s var(--ease); user-select: none; -webkit-user-drag: none; }
.gallery-main:active { cursor: grabbing; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
.gallery-count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: .8rem; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { width: 110px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: .3s; flex: none; }
.gallery-thumbs button.on, .gallery-thumbs button:hover { opacity: 1; border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.v-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.v-price { font: italic 800 clamp(2.2rem, 4vw, 3rem)/1 var(--head); }
.v-title { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--head); text-transform: uppercase; font-style: italic; margin: 0; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.spec { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: .3s; }
.spec:hover { border-color: rgba(225, 6, 0, .4); }
.spec .icon { width: 22px; height: 22px; color: var(--red2); }
.spec small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.spec b { font-size: .95rem; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; list-style: none; padding: 0; }
.feat-list li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.feat-list .icon { color: var(--ok); }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-row { display: flex; gap: 8px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: .35s var(--ease); }
.contact-card:hover { transform: translateX(6px); border-color: rgba(225, 6, 0, .4); }
.contact-card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(225, 6, 0, .12); color: var(--red2); flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; position: relative; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 250px; }
.hours li { display: flex; justify-content: space-between; gap: 20px; font-size: .92rem; }
.hours li span { color: var(--muted); }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; }
.open-now i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 1.6s infinite; }
.open-now.closed i { background: #f87171; animation: none; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }

/* process timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--red), rgba(225, 6, 0, .15)); }
.tl { text-align: center; position: relative; }
.tl .dot { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--red); color: var(--red2); position: relative; transition: .4s var(--ease); }
.tl .dot .icon { width: 24px; height: 24px; }
.tl:hover .dot { background: var(--red); color: #fff; transform: scale(1.1); box-shadow: 0 0 30px var(--red-glow); }
.tl b { display: block; margin-bottom: 4px; }
.tl p { margin: 0; color: var(--muted); font-size: .85rem; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: rgba(225, 6, 0, .4); }
.faq summary { list-style: none; padding: 18px 22px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--red2); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: #060607; padding: 80px 0 30px; overflow: hidden; }
.site-footer::before { content: "TURBOHUB"; position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font: italic 900 clamp(5rem, 18vw, 16rem)/1 var(--head); color: rgba(255, 255, 255, .025); white-space: nowrap; pointer-events: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.foot-grid h4 { font: 700 .82rem var(--body); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid ul a { color: #cfcfd6; transition: color .2s, padding .3s var(--ease); }
.foot-grid ul a:hover { color: #fff; padding-left: 6px; }
.foot-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--dim); position: relative; }
.foot-bottom a.credit { color: #40e0d0; font-weight: 600; transition: color .3s, text-shadow .3s; }
.foot-bottom a.credit:hover { color: #7ff5ea; text-shadow: 0 0 12px rgba(64, 224, 208, .55); }
@media (max-width: 720px) { .foot-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; } }
.foot-contact li { display: flex; gap: 10px; color: #cfcfd6; font-size: .92rem; }
.foot-contact .icon { color: var(--red2); margin-top: 3px; }

/* floating whatsapp */
.float-wa {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6); transition: transform .3s var(--ease);
}
.float-wa:hover { transform: scale(1.1) rotate(-8deg); }
.float-wa .icon { width: 28px; height: 28px; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 90; opacity: 0; pointer-events: none; transition: .3s; background: var(--card); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- progress ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; z-index: 101; background: var(--red); box-shadow: 0 0 10px var(--red); width: 0; }

/* page loader */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader svg { width: 120px; }
.loader .arc { fill: none; stroke: #222; stroke-width: 8; stroke-linecap: round; }
.loader .arc-on { fill: none; stroke: var(--red); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 190; stroke-dashoffset: 190; animation: gauge 1.1s var(--ease) forwards; filter: drop-shadow(0 0 8px var(--red)); }
.loader .needle { stroke: #fff; stroke-width: 4; stroke-linecap: round; transform-origin: 60px 62px; transform: rotate(-110deg); animation: needle 1.1s var(--ease) forwards; }
@keyframes gauge { to { stroke-dashoffset: 0; } }
@keyframes needle { to { transform: rotate(80deg); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-50px); transition: 1s var(--ease); }
.reveal-r { opacity: 0; transform: translateX(50px); transition: 1s var(--ease); }
.reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }

/* grid children may shrink below their content width (prevents mobile overflow) */
.hero-grid > *, .inv-layout > *, .calc > *, .v-layout > *, .world > *, .contact-grid > *, .duo > *, .cta-band > *, .form-grid > * { min-width: 0; }
.eyebrow { flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) { .nav-links a { padding: .55em .6em; font-size: .88rem; } .nav { gap: 16px; } }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-tools .btn-cta { display: none; }
  .hero-grid, .world, .cta-band, .calc, .v-layout, .contact-grid, .duo { grid-template-columns: 1fr; }
  .bodies { grid-template-columns: repeat(3, 1fr); }
  .features, .reviews, .posts { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .inv-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 150; width: min(340px, 88vw); max-height: none; background: #0e0e11; padding: 24px; border-right: 1px solid var(--line2); transform: translateX(-105%); transition: transform .5s var(--ease); }
  .filters.open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .7); }
  .filters-toggle { display: inline-flex; }
  .result, .v-side { position: static; }
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before { left: 29px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl { display: grid; grid-template-columns: 60px 1fr; gap: 16px; text-align: left; align-items: center; }
  .tl .dot { margin: 0; }
  .posts.featured-first .post-card:first-child { grid-column: auto; flex-direction: column; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .bodies { grid-template-columns: repeat(2, 1fr); }
  .features, .reviews, .posts, .form-grid, .foot-grid { grid-template-columns: 1fr; }
  .eyebrow { letter-spacing: .14em; font-size: .7rem; }
  .eyebrow::before { width: 18px; }
  .toolbar .search { min-width: 100%; order: -1; }
  .tabs { border-radius: 18px; }
  .seg button { padding: .6em .55em; font-size: .8rem; }
  .hero-card .grid2 { grid-template-columns: 1fr; }
  .brand img { height: 48px; }  .scrolled .brand img { height: 42px; }
  .nav-tools .lang-btn span.lab { display: none; }
  .cars { grid-template-columns: 1fr; }
  .cars.list-view .car { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .wizard-steps li { font-size: 0; }
  .wizard-steps li span::before { font-size: .8rem; }
  .page-hero { padding: 130px 0 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-l, .reveal-r, .stagger > * { opacity: 1; transform: none; }
}
