/* NS Auto Trading — one stylesheet for the whole site.
   Light theme: clean white surfaces, near-black type, and a deep, muted
   racing red (darker and duller than the flyer's bright red) for accents.
   Mobile first: everything below is the phone layout, and the media queries
   at the end of each block widen it for tablets and desktops. */

:root {
  /* matched to the logo: its black badge, its silver gradient, plus a muted red */
  --bg: #0b0b0d;
  --bg2: #101013;
  --card: #151518;
  --card2: #1b1b1f;
  --card3: #242429;
  --line: rgba(207, 210, 215, .09);
  --line2: rgba(207, 210, 215, .16);
  --ink: #f2f3f5;
  --ink2: #cfd2d7;
  --muted: #8b9098;
  --red: #a51419;
  --red-hi: #c8333a;
  --red-deep: #6e0a0f;
  --yellow: #e9ebee;  /* no yellow/orange anywhere: plates and "reserved" use silver-white */
  --green: #2fbf5b;
  --wa: #25d366;
  --dark: #0b0b0d;
  --chrome: linear-gradient(180deg, #ffffff 0%, #cfd2d7 50%, #8b9098 100%);
  --metal: var(--chrome);
  --red-grad: linear-gradient(135deg, #c42a31 0%, #a51419 50%, #6e0a0f 100%);
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --glow: 0 8px 24px rgba(165, 20, 25, .4);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.5 Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 110% -10%, rgba(165, 20, 25, .14), transparent 60%),
    radial-gradient(700px 500px at -20% 30%, rgba(165, 20, 25, .07), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  animation: page-in .5s var(--ease) both;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3 {
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-weight: 800; line-height: 1.05; letter-spacing: .005em; margin: 0;
}
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.inline { display: inline; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.page { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); }

/* Icons from the sprite: stroke-drawn, sized to the text around them. */
.i { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }

.only-desktop { display: none !important; }
@media (min-width: 900px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: flex !important; }
}
@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* ── buttons ─────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line2); background: var(--card2); color: var(--ink);
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .18s var(--ease), box-shadow .25s, background .2s, border-color .2s;
}
.pill:active { transform: scale(.96); }
.pill.big { min-height: 52px; padding: 0 24px; font-size: 16px; }
.pill.red { background: var(--red-grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.pill.red:hover { box-shadow: 0 10px 30px rgba(165, 20, 25, .5); filter: brightness(1.08); }
.pill.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%); animation: shine 3.6s ease-in-out infinite;
}
.pill.dark { background: var(--card2); }
.pill.dark:hover { border-color: var(--line2); background: var(--card3); }
.pill.ghost { background: transparent; }
.pill.wa { background: var(--wa); border-color: transparent; color: #04210f; }
.pill .dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; }
.block-btn { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid var(--line2); background: var(--card2); color: var(--ink);
  cursor: pointer; text-decoration: none; transition: transform .18s var(--spring), background .2s;
}
.icon-btn:hover { background: var(--card3); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.danger { color: #ff6b6b; }
.round-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red-grad); color: #fff; box-shadow: var(--glow); }
.link { background: none; border: 0; padding: 0; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link.danger { color: #ff6b6b; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── top bar ─────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 10, .72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s;
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .7; }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 46px; height: 46px; flex: 0 0 auto; overflow: visible; filter: drop-shadow(0 3px 10px rgba(255, 255, 255, .12)); transition: transform .5s var(--spring); }
.brand:hover .logo { transform: rotate(-6deg) scale(1.06); }
.logo-img { height: 46px; width: auto; border-radius: 8px; }
.brand.big .logo { width: 64px; height: 64px; }
.brand.big .logo-img { height: 90px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: Barlow; font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text strong em { font-style: normal; }
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 5px; }
.brand-text small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.topnav { margin-left: auto; display: none; align-items: center; gap: 6px; }
.topnav a:not(.pill) { padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.topnav a:not(.pill):hover, .topnav a.on { background: var(--card2); color: #fff; }
.topbar .round-btn { margin-left: auto; }
@media (min-width: 900px) { .topnav { display: flex; } .logo { width: 52px; height: 52px; } }

/* ── bottom tab bar (phones) ─────────────────────────────────────────── */

.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: var(--tabbar-h); padding: 0 6px; border-radius: 24px;
  background: rgba(20, 20, 24, .82);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  animation: rise .6s var(--spring) .15s both;
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 8px 0; transition: color .2s; }
.tabbar a .i { width: 23px; height: 23px; transition: transform .25s var(--spring); }
.tabbar a.on { color: #fff; }
.tabbar a.on::before { content: ""; position: absolute; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.tabbar a:active .i { transform: scale(.85); }
.tabbar .fab {
  width: 60px; height: 60px; margin: -30px auto 0; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: var(--red-grad); box-shadow: var(--glow), 0 0 0 6px var(--bg);
}
.tabbar .fab .i { width: 26px; height: 26px; }
.tabbar .fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: pulse 2.4s ease-out infinite; }
.tabbar .badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; }
@media (min-width: 900px) { .tabbar { display: none; } .page { padding-bottom: 40px; } }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: 34px 0 30px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0b0b0d 0%, #140c0e 40%, #2a0b10 68%, #4a0d14 86%, #0b0b0d 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 13, .4) 0%, rgba(11, 11, 13, .1) 45%, rgba(11, 11, 13, 0) 70%, var(--bg) 100%); }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.glow.g1 { width: 360px; height: 360px; background: #a51419; opacity: .55; top: -120px; right: -80px; animation: drift 12s ease-in-out infinite alternate; }
.glow.g2 { width: 300px; height: 300px; background: #a51419; bottom: 10%; left: -120px; opacity: .3; animation: drift 14s ease-in-out infinite alternate-reverse; }
.skyline { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 170px; opacity: .95; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, #141418, var(--bg)); overflow: hidden; }
.road span { position: absolute; top: 30px; width: 70px; height: 3px; border-radius: 3px; background: rgba(207, 210, 215, .55); box-shadow: 0 0 8px rgba(207, 210, 215, .3); animation: lane 2.4s linear infinite; }
.road span:nth-child(2) { animation-delay: -.4s; } .road span:nth-child(3) { animation-delay: -.8s; }
.road span:nth-child(4) { animation-delay: -1.2s; } .road span:nth-child(5) { animation-delay: -1.6s; } .road span:nth-child(6) { animation-delay: -2s; }

.hero-in { position: relative; }
.hero-show { display: none; }
@media (min-width: 1000px) {
  .hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: center; }
  .hero-show { display: block; grid-column: 2; grid-row: 1; position: relative; transform: rotate(2deg); }
  .hero-show .card { box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); animation: float 6s ease-in-out infinite; }
  .hero-show-label { position: absolute; top: -14px; left: 20px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--red-grad); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-show .tag.feat { display: none; }
  .hero-show .tags { top: 22px; }
}
.kicker { margin: 0 0 6px; font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink2); display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.hero-title { font-size: clamp(44px, 12vw, 92px); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: -.005em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .5)); }
.hero-title span { background: linear-gradient(100deg, #c8333a 0%, #c8333a 40%, #e3a7aa 50%, #a51419 60%, #a51419 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-shine 5s ease-in-out infinite; }
.hero-sub { margin: 14px 0 20px; font-size: 16px; color: var(--ink2); font-weight: 600; }
.hero-sub b { color: var(--red-hi); }

.searchbar {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px;
  background: rgba(255, 255, 255, .96); color: #111; border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); max-width: 640px;
  transition: box-shadow .25s, transform .25s var(--ease);
}
.searchbar:focus-within { box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 4px rgba(207, 210, 215, .35); transform: translateY(-1px); }
.searchbar > .i { color: #666; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: #111; padding: 10px 0; }
.searchbar .icon-btn { background: #f0f0f2; border-color: transparent; color: #111; }
.go-btn { border: 0; height: 44px; padding: 0 20px; border-radius: 99px; background: var(--red-grad); color: #fff; font-weight: 800; cursor: pointer; display: none; }
@media (min-width: 560px) { .go-btn { display: block; } }

.hero-badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line2); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.hero-badges .i { color: var(--red-hi); }
.hero-stats { display: flex; gap: 10px; margin-top: 22px; }
.hero-stats > div { flex: 1; max-width: 160px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .45); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.hero-stats strong { display: block; font-family: "Barlow Condensed"; font-size: 28px; font-weight: 800; line-height: 1; }
.hero-stats strong .i { color: var(--green); }
.hero-stats span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 900px) { .hero { padding: 70px 0 70px; } .skyline { height: 240px; } }

/* ── sections ─────────────────────────────────────────────────────────── */

.block { margin-top: 30px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { font-size: 28px; font-style: italic; text-transform: uppercase; }
.block-head h2 span { color: var(--red-hi); }
.rail-nav { display: none; gap: 8px; }
@media (min-width: 900px) { .rail-nav { display: flex; } .block { margin-top: 48px; } .block-head h2 { font-size: 36px; } }

.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 10px; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* Specialised in */
.special { display: grid; gap: 12px; }
@media (min-width: 760px) { .special { grid-template-columns: repeat(3, 1fr); } }
.spec-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: var(--r); text-decoration: none;
  background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.spec-tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(165, 20, 25, .35), transparent 70%); transition: transform .5s var(--ease); }
.spec-tile:hover { transform: translateY(-4px); border-color: rgba(165, 20, 25, .5); box-shadow: var(--shadow); }
.spec-tile:hover::before { transform: scale(1.5); }
.spec-tile strong { font-family: "Barlow Condensed"; font-size: 24px; font-style: italic; text-transform: uppercase; font-weight: 800; }
.spec-tile small { color: var(--muted); font-size: 14px; }
.spec-tile em { margin-top: 6px; font-style: normal; font-weight: 700; color: var(--red-hi); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.spec-tile em .i { transition: transform .25s var(--ease); }
.spec-tile:hover em .i { transform: translateX(4px); }
.flag-jp { width: 48px; height: 32px; border-radius: 6px; background: radial-gradient(circle at 50% 50%, #bc002d 0 9px, #fff 9.5px); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }

/* Brand tiles */
.brand-tile {
  flex: 0 0 auto; width: 108px; padding: 14px 10px; border-radius: var(--r); text-align: center;
  background: var(--card); border: 1px solid var(--line); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .25s var(--spring), border-color .2s, background .2s;
}
.brand-tile:hover { border-color: rgba(165, 20, 25, .55); background: var(--card2); transform: translateY(-3px); }
.brand-tile:active { transform: scale(.95); }
.brand-tile .mono { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: "Barlow Condensed"; font-weight: 800; font-size: 24px; font-style: italic; background: var(--chrome); color: #111; box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .4); margin-bottom: 4px; }
.brand-tile strong { font-size: 13.5px; line-height: 1.15; }
.brand-tile small { font-size: 11.5px; color: var(--red-hi); font-weight: 700; }
.brand-tile.empty small { color: var(--muted); }

/* Quick chips + toolbar */
.quick { gap: 8px; padding-bottom: 6px; }
.qchip { flex: 0 0 auto; padding: 9px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink2); transition: all .2s; }
.qchip:hover { border-color: var(--line2); color: #fff; }
.qchip.on { background: #fff; color: #111; border-color: #fff; }
.toolbar { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; }
.count { margin: 0 auto 0 0; color: var(--muted); font-size: 15px; }
.count strong { color: #fff; font-size: 18px; }
.select-pill { position: relative; display: inline-flex; align-items: center; }
.select-pill select { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 34px 0 14px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line2); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; max-width: 150px; }
.select-pill .i { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.active-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.apill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 12px; border-radius: 99px; background: rgba(165, 20, 25, .14); border: 1px solid rgba(165, 20, 25, .4); color: #ffd6d3; text-decoration: none; font-size: 13px; font-weight: 600; animation: pop .35s var(--spring) both; }
.apill .i { width: 15px; height: 15px; }
.apill.clear { background: transparent; border-color: var(--line2); color: var(--muted); }

/* ── car cards ───────────────────────────────────────────────────────── */

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.rail.featured .card { flex: 0 0 82%; max-width: 320px; }
@media (min-width: 560px) { .rail.featured .card { flex-basis: 300px; } }

.card {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(165, 20, 25, .35); border-color: transparent; }
.card:active { transform: scale(.985); }
.card-link { display: block; text-decoration: none; color: inherit; }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.shot img, .shot .art { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.card:hover .shot img, .card:hover .shot .art { transform: scale(1.06); }
.shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.tags { position: absolute; top: 10px; left: 10px; right: 56px; display: flex; flex-wrap: wrap; gap: 5px; z-index: 2; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.tag .i { width: 12px; height: 12px; }
.tag.sold { background: var(--red); border-color: var(--red); }
.tag.res { background: var(--yellow); color: #111; border-color: var(--yellow); }
.tag.feat { background: #fff; color: #111; border-color: #fff; }
.tag.feat .i { fill: var(--red); stroke: var(--red); }
.tag.drop { background: var(--green); border-color: var(--green); color: #04210f; }
.tag.jp { background: #fff; color: #bc002d; border-color: #fff; }
.tag.jp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #bc002d; }
.tag.mod { background: linear-gradient(90deg, #7c3aed, #e3121b); border-color: transparent; }
.ulez { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px 4px 10px; border-radius: 99px; background: var(--green); color: #fff; font-family: "Barlow Condensed"; font-weight: 800; font-size: 13px; letter-spacing: .05em; box-shadow: 0 4px 12px rgba(47, 191, 91, .45); }
.ulez .i { width: 14px; height: 14px; stroke-width: 3; }
.ulez.big { font-size: 15px; padding: 6px 10px 6px 12px; }

.card-body { padding: 12px 14px 14px; }
.card-make { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); }
.card h3 { font-family: Barlow; font-weight: 700; font-size: 17px; line-height: 1.25; margin: 3px 0 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--card3); font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.chips .i { width: 14px; height: 14px; color: var(--muted); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price strong { font-family: "Barlow Condensed"; font-size: 28px; font-weight: 800; letter-spacing: .01em; }
.price s { color: var(--muted); font-size: 13px; }
.price small { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; }
.go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--red-grad); color: #fff; transition: transform .3s var(--spring); box-shadow: 0 6px 16px rgba(165, 20, 25, .4); }
.card:hover .go { transform: translateX(3px) rotate(-8deg); }

.heart {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
  backdrop-filter: blur(6px); cursor: pointer; transition: transform .2s var(--spring);
}
.heart:active { transform: scale(.85); }
.heart[aria-pressed="true"] .i, .heart-btn[aria-pressed="true"] .i { fill: var(--red); stroke: var(--red); animation: heart-pop .45s var(--spring); }

.empty-state { text-align: center; padding: 44px 20px; border-radius: var(--r); background: var(--card); border: 1px dashed var(--line2); }
.empty-state > .i { width: 54px; height: 54px; color: var(--red-hi); margin-bottom: 8px; animation: float 3s ease-in-out infinite; }
.empty-state h3 { font-size: 26px; font-style: italic; text-transform: uppercase; }
.empty-state p { color: var(--muted); margin: 6px 0 18px; }
.empty-state .row-btns { justify-content: center; }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 26px 0 0; }
.pg { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pg.on { background: var(--red-grad); border-color: transparent; box-shadow: var(--glow); }
.pager > span { color: var(--muted); }

/* ── perks / after sales / visit ────────────────────────────────────── */

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.perk strong { font-family: "Barlow Condensed"; font-size: 18px; text-transform: uppercase; font-style: italic; }
.perk small { color: var(--muted); font-weight: 600; }
.ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--red); color: var(--red-hi); background: radial-gradient(circle, rgba(165, 20, 25, .18), transparent 70%); margin-bottom: 6px; }
.ring .i { width: 26px; height: 26px; }
.ring.green { border-color: var(--green); color: var(--green); background: radial-gradient(circle, rgba(47, 191, 91, .18), transparent 70%); }
.perk:hover .ring { animation: wobble .6s var(--spring); }

.after-sales { margin-top: 18px; border: 2px solid var(--red); border-radius: var(--r); padding: 30px 12px 14px; position: relative; background: linear-gradient(180deg, rgba(165, 20, 25, .06), transparent); }
.ribbon { position: absolute; top: -17px; left: 50%; transform: translateX(-50%) skewX(-10deg); background: var(--red-grad); padding: 6px 22px; font-size: 18px; font-style: italic; text-transform: uppercase; white-space: nowrap; box-shadow: var(--glow); border-radius: 4px; }
.as-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
@media (min-width: 760px) { .as-grid { grid-template-columns: repeat(4, 1fr); } }
.as-grid div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 6px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.as-grid .i { width: 30px; height: 30px; color: #fff; }

.visit { position: relative; overflow: hidden; border-radius: var(--r); background: linear-gradient(135deg, #1a0809, var(--card) 60%); border: 1px solid var(--line2); }
.visit::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(165, 20, 25, .35), transparent 70%); animation: drift 10s ease-in-out infinite alternate; }
.visit-copy { position: relative; padding: 24px 20px; }
.visit-copy h2 { font-size: clamp(30px, 7vw, 48px); font-style: italic; text-transform: uppercase; margin: 4px 0 10px; }
.visit-copy .muted { max-width: 520px; margin: 0 0 18px; }
.delivery-band { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--red-grad); color: #fff; font-family: "Barlow Condensed"; font-size: 22px; font-style: italic; text-transform: uppercase; }
.delivery-band .i { width: 30px; height: 30px; animation: drive 3s ease-in-out infinite; }
.delivery-band small { margin-left: auto; font-family: Barlow; font-size: 11px; font-style: normal; font-weight: 700; text-transform: none; opacity: .75; }

/* ── filter sheet ─────────────────────────────────────────────────────── */

.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  max-height: 88vh; display: flex; flex-direction: column;
  background: var(--bg2); border-top: 1px solid var(--line2); border-radius: 26px 26px 0 0;
  transform: translateY(105%); transition: transform .45s var(--ease); visibility: hidden;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
}
.sheet.open { transform: none; visibility: visible; }
.sheet-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line2); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 26px; font-style: italic; text-transform: uppercase; margin-right: auto; }
.sheet-body { overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .sheet { left: auto; top: 0; width: 440px; max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--line2); transform: translateX(105%); }
  .sheet-grip { display: none; }
}

/* ── form controls (shared) ──────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; padding: 0; }
.field > span small, .field > legend small { color: var(--muted); font-weight: 500; }
.field.req > span::after { content: " *"; color: var(--red-hi); }
.field > legend { margin-bottom: 8px; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: var(--card);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238f8f99' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(165, 20, 25, .2); background: var(--card2); }
input::placeholder, textarea::placeholder { color: #5f5f68; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input[type="month"] { min-height: 48px; }
input[type="checkbox"], input[type="radio"] { width: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line2); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); user-select: none; }
.seg span:hover { border-color: #555; }
.seg input:checked + span { background: #fff; color: #111; border-color: #fff; transform: scale(1.03); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(165, 20, 25, .5); }
.status-seg input:checked + .st-available { background: var(--green); border-color: var(--green); color: #04210f; }
.status-seg input:checked + .st-reserved { background: var(--yellow); border-color: var(--yellow); }
.status-seg input:checked + .st-sold { background: var(--red); border-color: var(--red); color: #fff; }

.switch { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 50px; height: 30px; flex: 0 0 auto; border-radius: 99px; background: var(--card3); border: 1px solid var(--line2); position: relative; transition: background .25s; }
.switch .track span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .3s var(--spring); }
.switch input:checked + .track { background: var(--red); border-color: var(--red); }
.switch input:checked + .track span { transform: translateX(20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(165, 20, 25, .5); }
.switch.tall { min-height: 48px; align-self: end; }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* ── notices / toast ─────────────────────────────────────────────────── */

.notice { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; background: rgba(47, 191, 91, .12); border: 1px solid rgba(47, 191, 91, .4); color: #c9f5d6; animation: pop .4s var(--spring) both; }
.notice .i { color: var(--green); margin-top: 1px; }
.notice.error { background: rgba(165, 20, 25, .12); border-color: rgba(165, 20, 25, .45); color: #ffd1ce; }
.notice.error .i { color: var(--red-hi); }
.notice.warn { background: rgba(207, 210, 215, .08); border-color: rgba(207, 210, 215, .35); color: #e9ebee; }
.notice.warn .i { color: #cfd2d7; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 26px); z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 99px; background: #fff; color: #111; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transition: all .35s var(--spring); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 30px; } }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot { margin-top: 48px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), #050506); padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; transform: translateY(-1px); margin-top: 26px; }
.trust div { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; color: #111; font-weight: 800; font-size: 12.5px; text-transform: uppercase; line-height: 1.2; }
.trust .i { width: 30px; height: 30px; color: var(--red); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.foot-grid { display: grid; gap: 22px; padding-top: 28px; }
.foot-grid .muted { max-width: 420px; margin: 12px 0 14px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-list li { display: flex; align-items: center; gap: 10px; color: var(--ink2); }
.foot-list .i { color: var(--red-hi); }
.foot-list a { text-decoration: none; }
.foot-list a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-base a { color: var(--muted); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr; } }
@media (min-width: 900px) { .foot { padding-bottom: 30px; } }

/* ── car detail ──────────────────────────────────────────────────────── */

.detail-top { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 12px; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 700; color: var(--ink2); font-size: 15px; }
.back:hover { color: #fff; }
.detail-acts { display: flex; gap: 8px; }
.detail { display: grid; gap: 16px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; } .facts { position: sticky; top: 84px; } }

.gallery { position: relative; margin: 0 -16px; }
@media (min-width: 640px) { .gallery { margin: 0; } }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; background: #000; }
@media (min-width: 640px) { .slides { border-radius: var(--r); border: 1px solid var(--line); } }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img, .slide .art { width: 100%; height: 100%; object-fit: cover; }
.gallery .tags { top: 14px; left: 14px; }
.gallery .ulez { bottom: auto; top: 14px; right: 14px; }
.counter { position: absolute; right: 14px; bottom: 14px; padding: 5px 11px; border-radius: 99px; background: rgba(0, 0, 0, .65); font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.thumbs + .counter, .gallery:has(.thumbs) .counter { bottom: 86px; }
.gallery .nav { position: absolute; top: calc(50% - 60px); width: 44px; height: 44px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.gallery .nav:hover { background: var(--red); }
.gallery .nav.prev { left: 12px; } .gallery .nav.next { right: 12px; }
@media (min-width: 900px) { .gallery .nav { display: grid; } }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 2px; scrollbar-width: none; }
@media (min-width: 640px) { .thumbs { padding: 10px 0 2px; } }
.thumb { flex: 0 0 auto; width: 84px; height: 62px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #000; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { opacity: 1; border-color: var(--red); transform: translateY(-2px); }

.facts-card { padding: 18px; border-radius: var(--r); background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); }
.facts-card h1 { font-family: Barlow; font-weight: 800; font-size: 24px; line-height: 1.2; margin: 4px 0 10px; }
.plate { display: inline-block; padding: 3px 10px; border-radius: 5px; background: var(--yellow); color: #111; font-family: "Barlow Condensed"; font-weight: 800; font-size: 18px; letter-spacing: .08em; border: 1px solid #000; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .1); }
.plate.sm { font-size: 12.5px; padding: 1px 6px; margin-right: 6px; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 16px 0 6px; padding: 14px 0; border-top: 1px dashed var(--line2); border-bottom: 1px dashed var(--line2); }
.price.big strong { font-size: 44px; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finance { text-align: right; display: flex; flex-direction: column; }
.finance small { color: var(--muted); font-size: 12px; font-weight: 600; }
.finance strong { font-family: "Barlow Condensed"; font-size: 22px; color: var(--red-hi); }
.key-specs { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .key-specs { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .key-specs { grid-template-columns: repeat(2, 1fr); } }
.key-specs li { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-sm); background: var(--card3); }
.key-specs .i { color: var(--red-hi); width: 22px; height: 22px; margin-bottom: 4px; }
.key-specs small { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.key-specs strong { font-size: 16px; }
.cta-stack { flex-direction: column; gap: 10px; margin: 16px 0; }
.assure { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--ink2); font-weight: 600; }
.assure .i { color: var(--green); }

.detail-more { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 900px) { .detail-more { grid-template-columns: 1.35fr 1fr; gap: 18px 26px; } .detail-more > .panel:first-child { grid-column: 1; } }
.panel { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.panel h2 { font-size: 22px; font-style: italic; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h2 small { font-family: Barlow; font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--red); }
.prose p { margin: 0; color: var(--ink2); line-height: 1.65; }
.prose.clamped { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.more-btn { margin-top: 10px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink2); }
.feature-list .i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(47, 191, 91, .18); color: var(--green); stroke-width: 3; }
.spec-group { border-top: 1px solid var(--line); }
.spec-group:first-of-type { border-top: 0; }
.spec-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; cursor: pointer; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--ink2); }
.spec-group summary::-webkit-details-marker { display: none; }
.spec-group summary .i { transition: transform .3s var(--ease); }
.spec-group[open] summary .i { transform: rotate(180deg); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 12px; }
.specs div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.specs div:nth-child(odd) { padding-right: 12px; }
.specs dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.specs dd { margin: 2px 0 0; font-weight: 700; }
.visit-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.visit-mini h2 { margin-bottom: 4px; }
.visit-mini .muted { margin: 0; display: flex; gap: 6px; align-items: center; }

.buybar {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); z-index: 55;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 20px;
  background: rgba(20, 20, 24, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  animation: rise .6s var(--spring) .35s both;
}
.buybar-price { margin-right: auto; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.buybar-price small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price strong { font-family: "Barlow Condensed"; font-size: 24px; }
.buybar .pill.wa { width: 46px; padding: 0; }
.detail-page .page { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 110px); }
@media (min-width: 900px) { .buybar { display: none; } .detail-page .page { padding-bottom: 40px; } }

/* ── admin ───────────────────────────────────────────────────────────── */

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 8px; }
.admin-head h1 { font-size: clamp(32px, 8vw, 46px); font-style: italic; text-transform: uppercase; }
.admin-head .back { margin-bottom: 6px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 16px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--spring); }
.stat:hover { transform: translateY(-2px); border-color: var(--line2); }
.stat.on { border-color: var(--red); background: linear-gradient(180deg, rgba(165, 20, 25, .14), var(--card)); }
.stat .i { color: var(--red-hi); width: 20px; height: 20px; }
.stat strong { font-family: "Barlow Condensed"; font-size: 28px; line-height: 1.05; }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat.value { grid-column: span 3; }
@media (min-width: 760px) { .stat.value { grid-column: auto; } .stat.value strong { font-size: 22px; } }

.admin-search { position: relative; margin-bottom: 14px; }
.admin-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.admin-search input { padding-left: 42px; border-radius: 99px; }

.ad-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .ad-list { grid-template-columns: 1fr 1fr; } }
.ad-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.ad-row:hover { border-color: var(--line2); }
.ad-row.is-hidden { opacity: .62; }
.ad-thumb { position: relative; width: 96px; height: 72px; border-radius: 12px; overflow: hidden; background: #000; }
.ad-thumb img, .ad-thumb .art { width: 100%; height: 100%; object-fit: cover; }
.ad-thumb .pc { position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .7); font-size: 11px; font-weight: 700; }
.ad-thumb .pc .i { width: 12px; height: 12px; }
.ad-info { min-width: 0; }
.ad-title { display: block; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-meta { margin: 3px 0 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.ad-price { font-family: "Barlow Condensed"; font-size: 20px; margin-right: 4px; }
.st { padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--card3); display: inline-flex; align-items: center; }
.st .i { width: 12px; height: 12px; fill: var(--red-hi); stroke: var(--red-hi); }
.st-available { background: rgba(47, 191, 91, .18); color: #7be39b; }
.st-reserved { background: rgba(207, 210, 215, .14); color: #e9ebee; }
.st-sold { background: rgba(165, 20, 25, .2); color: #ff8a84; }
.st-hidden { background: #333; color: #bbb; }
.st-sample { background: rgba(124, 58, 237, .22); color: #c4a6ff; }
.ad-acts { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 480px) { .ad-acts { flex-direction: row; } }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: 6px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line2); box-shadow: var(--shadow); animation: pop .25s var(--spring) both; transform-origin: top right; }
.more .menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.more .menu button:hover { background: var(--card3); }
.more .menu button.danger { color: #ff6b6b; }
.sample-tools { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 22px 0 0; font-size: 14px; }

/* the ad editor */
.editor-form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 100px; }
.steps { position: sticky; top: 63px; z-index: 30; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 10px 16px; background: rgba(8, 8, 10, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.steps::-webkit-scrollbar { display: none; }
.steps a { flex: 0 0 auto; padding: 7px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 13px; color: var(--ink2); transition: all .2s; }
.steps a.on { background: #fff; color: #111; border-color: #fff; }
.form-card { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 130px; }
.form-card > header { display: flex; align-items: center; gap: 12px; }
.form-card > header h2 { font-size: 24px; font-style: italic; text-transform: uppercase; }
.form-card > header p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--red-grad); font-family: "Barlow Condensed"; font-weight: 800; font-size: 18px; box-shadow: var(--glow); }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .full { grid-column: 1 / -1; } }
.field input[hidden] { display: none; }
.field select + input { margin-top: 8px; }
.affix { position: relative; display: flex; align-items: center; }
.affix i { position: absolute; right: 14px; font-style: normal; color: var(--muted); font-weight: 600; pointer-events: none; }
.affix input { padding-right: 60px; }
.affix.pre i { left: 14px; right: auto; color: var(--ink2); font-weight: 800; }
.affix.pre input { padding-left: 32px; padding-right: 14px; }
.with-btn { display: flex; gap: 8px; }
.with-btn .icon-btn { width: 48px; height: 48px; border-radius: var(--r-sm); }
.mini-btn { align-self: flex-start; font-size: 13.5px; margin-top: 4px; color: var(--red-hi); }
.plate-input { background: var(--yellow) !important; color: #111 !important; font-family: "Barlow Condensed"; font-weight: 800; font-size: 22px !important; letter-spacing: .1em; text-transform: uppercase; text-align: center; border: 2px solid #111 !important; }
.plate-input::placeholder { color: rgba(0, 0, 0, .35); }
.wrapseg span { font-size: 13.5px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 10px; }
.swatches label { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .6), transparent 45%), var(--sw); border: 2px solid var(--line2); transition: transform .25s var(--spring), box-shadow .2s; }
.swatches small { font-size: 11px; color: var(--muted); font-weight: 600; text-align: center; line-height: 1.1; }
.swatches input:checked + span { transform: scale(1.15); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--red); }
.swatches input:checked ~ small { color: #fff; }

.feature-picks { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-picks label { position: relative; }
.feature-picks input { position: absolute; opacity: 0; }
.feature-picks span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px 8px 10px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line2); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); user-select: none; }
.feature-picks .i { width: 16px; height: 16px; padding: 2px; border-radius: 50%; border: 1.5px solid #555; stroke-width: 3; color: transparent; transition: all .2s; }
.feature-picks input:checked + span { background: rgba(47, 191, 91, .14); border-color: rgba(47, 191, 91, .55); color: #d4f8de; }
.feature-picks input:checked + span .i { background: var(--green); border-color: var(--green); color: #fff; animation: pop .3s var(--spring); }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 30px 16px; border-radius: var(--r); border: 2px dashed var(--line2); background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .015) 12px 24px); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--red); background-color: rgba(165, 20, 25, .06); }
.dropzone.over { transform: scale(1.01); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone > .i { width: 38px; height: 38px; color: var(--red-hi); animation: float 3s ease-in-out infinite; }
.dropzone small { color: var(--muted); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.previews:empty { display: none; }
.previews figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #000; animation: pop .35s var(--spring) both; }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews figcaption { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .7); font-size: 10.5px; font-weight: 700; }
.previews button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.previews button .i { width: 14px; height: 14px; }
.sub { font-family: Barlow; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.photo-admin { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo-admin li { position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-admin .tag { position: absolute; top: 6px; left: 6px; }
.photo-acts { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 6px; }
.photo-acts .icon-btn { background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }

.savebar {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); z-index: 55;
  display: flex; gap: 8px; justify-content: flex-end; padding: 8px; border-radius: 22px;
  background: rgba(20, 20, 24, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  animation: rise .6s var(--spring) .25s both;
}
.savebar .pill.red { flex: 1; max-width: 340px; }
.editor .page { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 110px); }
@media (min-width: 900px) {
  .savebar { left: 50%; right: auto; transform: translateX(-50%); bottom: 22px; width: min(560px, calc(100% - 40px)); }
  .editor .page { padding-bottom: 120px; }
  .steps { top: 63px; }
}
.saving { pointer-events: none; opacity: .8; }
.saving .i { animation: spin 1s linear infinite; }

/* auth / setup */
.auth .page { min-height: calc(100vh - 64px); display: grid; place-items: center; }
.auth-wrap { width: 100%; padding: 30px 16px; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; padding: 28px 22px; border-radius: 24px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line2); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; top: -100px; right: -100px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(165, 20, 25, .3), transparent 70%); }
.auth-card > * { position: relative; }
.auth-logo .logo { width: 96px; height: 96px; margin-bottom: 14px; animation: float 4s ease-in-out infinite; }
.auth-logo .logo-img { height: 130px; margin-bottom: 14px; }
.auth-card h1 { font-size: 34px; font-style: italic; text-transform: uppercase; }
.auth-card h2 { font-size: 20px; margin: 20px 0 8px; text-transform: uppercase; font-style: italic; }
.auth-card > .muted { margin: 4px 0 18px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.auth-card .back { display: flex; margin-top: 18px; }
.checks { list-style: none; padding: 0; margin: 0; font-size: 14px; display: grid; gap: 4px; }
.checks .yes { color: #7be39b; } .checks .no { color: #ff8a84; }
.auth-card code { background: var(--card3); padding: 1px 6px; border-radius: 6px; }

/* ── motion ───────────────────────────────────────────────────────────── */

/* Content only starts hidden once the script has said it will reveal it,
   so with scripts off nothing stays invisible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: none; } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes text-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.15); } }
@keyframes lane { from { left: 110%; } to { left: -15%; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes wobble { 0% { transform: rotate(0); } 30% { transform: rotate(-12deg) scale(1.08); } 60% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
@keyframes drive { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* logo-matched dark theme: skyline in soft charcoal, a silver edge on cards */
.skyline path { fill: #19191e; }
.topbar::after { background: linear-gradient(90deg, transparent, #8b9098, var(--red), #8b9098, transparent); opacity: .6; }

/* ── concept match: info bar, white stock band, red slash headings, logo tiles ── */

html, body { overflow-x: clip; }

/* thin contact strip above the header (desktop) */
.infobar { background: #070708; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); }
.infobar-in { display: flex; align-items: stretch; gap: 26px; min-height: 36px; }
.infobar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.infobar a:hover { color: #fff; }
.infobar .i { color: var(--red-hi); width: 16px; height: 16px; }
.infobar-tag { margin-left: auto; display: inline-flex; align-items: center; padding: 0 22px 0 30px; background: var(--red-grad); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .03em; clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); }

/* every section heading gets the concept's red slash */
.block-head h2::before { content: "/"; color: var(--red); margin-right: 10px; font-style: italic; }

/* "All cars in stock": a white band, like the concept's OUR STOCK section */
.stock { position: relative; isolation: isolate; padding-top: 34px; padding-bottom: 40px; margin-top: 0; }
.stock::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #f4f4f6; border-top: 4px solid var(--red); }
.stock .block-head h2 { color: #111; }
.stock .count { color: #666; }
.stock .count strong { color: #111; }
.stock .qchip { background: #fff; border-color: #dcdce2; color: #333; }
.stock .qchip:hover { color: #111; border-color: #b9b9c2; }
.stock .qchip.on { background: var(--red); border-color: var(--red); color: #fff; }
.stock .select-pill select { background-color: #fff; border-color: #dcdce2; color: #111; }
.stock .apill { background: rgba(165, 20, 25, .08); color: #6e0a0f; }
.stock .apill.clear { color: #666; border-color: #dcdce2; }
.stock .card { background: #fff; border: 1px solid #e4e4ea; box-shadow: 0 4px 16px rgba(20, 20, 30, .07); }
.stock .card:hover { box-shadow: 0 16px 36px rgba(20, 20, 30, .16), 0 0 0 1px rgba(165, 20, 25, .35); }
.stock .card h3 { color: #111; }
.stock .card-make { color: var(--red); }
.stock .chips li { background: #f1f1f4; color: #333; }
.stock .chips .i { color: #777; }
.stock .card-foot { border-top-color: #e4e4ea; }
.stock .price strong { color: #111; }
.stock .price s, .stock .price small { color: #777; }
.stock .empty-state { background: #fff; border-color: #dcdce2; color: #111; }
.stock .empty-state p { color: #666; }
.stock .pg { background: #fff; border-color: #dcdce2; color: #111; }
.stock .pg.on { background: var(--red-grad); border-color: transparent; color: #fff; }
.stock .pager > span { color: #777; }

/* brand tiles: white cards with the real logo, like the flyer's brand strip */
.brand-tile { background: #fff; border-color: #e4e4ea; }
.brand-tile:hover { background: #fff; border-color: var(--red); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.brand-tile strong { color: #111; }
.brand-tile small { color: var(--red); }
.brand-tile.empty small { color: #888; }
.brand-tile .mono { background: #f1f1f4; color: #222; box-shadow: none; }
.brand-tile .mono.logo-mark { background: none; width: 56px; height: 46px; border-radius: 0; color: #1d1d22; transition: color .25s, transform .3s var(--spring); }
.brand-tile .mono.logo-mark svg { width: 100%; height: 100%; fill: currentColor; }
.brand-tile:hover .mono.logo-mark { color: var(--red); transform: scale(1.08); }
.brand-tile { width: 118px; }

/* ── front page, concept design: flyer logo, Home tab, car line-up, strips ── */

/* flyer logo (viewBox 260x124) */
.logo { width: auto; height: 58px; aspect-ratio: 260 / 124; filter: none; }
.brand:hover .logo { transform: scale(1.03); }
.topbar-in { min-height: 66px; }
@media (min-width: 900px) { .logo { height: 84px; width: auto; } .topbar-in { min-height: 98px; } }
.brand.big .logo { height: 104px; width: auto; }
.auth-logo .logo { height: 110px; width: auto; }
.brand-text small::before { display: none; }

/* the active menu item is a slanted red tab, like "Home" in the concept */
.topnav a:not(.pill) { position: relative; z-index: 0; font-size: 15.5px; color: #e9eaec; }
.topnav a.on, .topnav a.on:hover { background: none !important; color: #fff; }
.topnav a.on::before { content: ""; position: absolute; inset: -4px 0; z-index: -1; background: var(--red-grad); transform: skewX(-14deg); border-radius: 3px; box-shadow: var(--glow); }

/* hero copy */
.hero-tag { margin: 14px 0 22px; font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(18px, 4.6vw, 26px); letter-spacing: .02em; color: #fff; position: relative; padding-bottom: 12px; }
.hero-tag::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(100%, 420px); height: 4px; background: linear-gradient(90deg, var(--red), transparent); transform: skewX(-20deg); transform-origin: left; }

/* hero line-up of real stock photos (the concept's row of cars) */
.lineup { display: flex; align-items: flex-end; justify-content: center; padding: 26px 4px 40px; }
.lu { position: relative; flex: 0 0 31%; aspect-ratio: 4 / 3; margin-left: -5%; border-radius: 12px; overflow: hidden; border: 2px solid rgba(207, 210, 215, .18); box-shadow: 0 22px 40px rgba(0, 0, 0, .65); background: #000; z-index: 1; transform: translateY(0) scale(.94); transition: transform .45s var(--spring), border-color .3s; -webkit-box-reflect: below 4px linear-gradient(transparent 62%, rgba(255, 255, 255, .16)); }
.lu:first-child { margin-left: 0; }
.lu img { width: 100%; height: 100%; object-fit: cover; }
.lu1 { z-index: 3; transform: scale(1.1); border-color: var(--red); }
.lu0, .lu2 { z-index: 2; }
.lu:hover { transform: translateY(-8px) scale(1.12); z-index: 4; border-color: var(--red-hi); }
.lu-tag { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; padding: 2px 9px; border-radius: 4px; background: #f4f4f6; color: #111; border: 1.5px solid #111; font-family: "Barlow Condensed"; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.lu3 { display: none; }
@media (min-width: 560px) { .lu { flex-basis: 27%; } .lu3 { display: block; } }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: 1fr 1.25fr; gap: 30px; }
  .lineup { grid-column: 2; grid-row: 1; padding: 0 0 40px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .lu { flex-basis: 30%; }
}

/* icon strip under the hero */
.feature-strip { background: linear-gradient(180deg, #141418, #0e0e11); border-top: 1px solid var(--line); border-bottom: 3px solid var(--red); }
.fs-in { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.fs-in::-webkit-scrollbar { display: none; }
.fs { flex: 1 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-left: 1px solid var(--line2); font-weight: 800; font-size: 12.5px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.fs:first-child { border-left: 0; padding-left: 0; }
.fs .ring { width: 48px; height: 48px; margin: 0; flex: 0 0 auto; border-width: 2px; }
.fs .ring .i { width: 22px; height: 22px; }
@media (min-width: 1000px) { .fs-in { justify-content: space-between; overflow: visible; } .fs { font-size: 13.5px; } }

/* "Why choose NS Auto Trading Ltd?" band */
.why { position: relative; background: linear-gradient(180deg, #121215, #0d0d10); border-bottom: 4px solid var(--red); }
.why::after { content: ""; position: absolute; right: 0; bottom: -4px; width: 38%; height: 10px; background: var(--red-grad); clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); }
.why-in { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; padding-top: 28px; padding-bottom: 30px; }
.why-title { grid-column: 1 / -1; font-size: clamp(28px, 7vw, 40px); font-style: italic; text-transform: uppercase; line-height: 1; }
.why-title span { color: var(--red-hi); }
.why-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-weight: 800; font-size: 13px; line-height: 1.2; text-transform: uppercase; color: #fff; }
.why-item .i { width: 34px; height: 34px; color: var(--red-hi); }
@media (min-width: 900px) {
  .why-in { grid-template-columns: 1.5fr repeat(4, 1fr); align-items: center; }
  .why-title { grid-column: 1; }
  .why-item { border-left: 1px solid var(--line2); padding: 4px 8px; }
}

/* "Visit us / Enquire now / Call us" band, as at the foot of the concept */
.visit-band { position: relative; overflow: hidden; margin-top: 44px; background: linear-gradient(135deg, #18181c 0%, #0e0e11 70%); border-top: 4px solid var(--red); }
.visit-band::before, .visit-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 46px; background: var(--red-grad); transform: skewX(-20deg); opacity: .9; }
.visit-band::before { left: -30px; }
.visit-band::after { right: -30px; }
.vb-in { position: relative; display: grid; gap: 22px; padding-top: 26px; padding-bottom: 28px; }
.vb { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.vb > .i { width: 46px; height: 46px; flex: 0 0 auto; color: var(--red-hi); }
.vb small { display: block; color: var(--red-hi); font-weight: 800; font-size: 15px; }
.vb strong { display: block; font-family: "Barlow Condensed"; font-weight: 800; font-size: 21px; line-height: 1.05; text-transform: uppercase; }
.vb-call strong { font-size: 34px; letter-spacing: .01em; }
.vb-enquire { flex-direction: column; justify-content: center; gap: 8px; }
.vb-enquire .pill { min-width: 240px; font-size: 19px; }
.vb-enquire small { color: var(--ink2); font-weight: 600; font-size: 13px; }
.vb:hover strong { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
@media (min-width: 900px) {
  .visit-band::before, .visit-band::after { width: 90px; }
  .visit-band::before { left: -50px; }
  .visit-band::after { right: -50px; }
  .vb-in { grid-template-columns: 1fr auto 1fr; align-items: center; padding-left: 40px; padding-right: 40px; }
  .vb-call { justify-content: flex-end; }
}
.foot { margin-top: 0; }

/* the logo cropped from the concept/flyer artwork (assets/logo.png, 2:1) */
.logo-img { height: 58px; width: auto; border-radius: 0; display: block; transition: transform .4s var(--spring); }
.brand:hover .logo-img { transform: scale(1.03); }
@media (min-width: 900px) { .logo-img { height: 84px; } }
.brand.big .logo-img { height: 110px; }
.auth-logo .logo-img { height: 120px; margin: 0 auto 14px; }

/* hero banner: the concept's skyline + cars artwork (assets/hero-banner.jpg) */
.hero.has-banner { display: flex; flex-direction: column; }
.hero.has-banner .hero-in { order: 1; }
.hero.has-banner .skyline, .hero.has-banner .road { display: none; }
.hero-banner { order: 2; position: relative; margin: 24px 0 -8px; }
.hero-banner img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); }
@media (min-width: 1000px) {
  .hero.has-banner { display: block; min-height: 460px; }
  .hero-banner { position: absolute; z-index: 0; right: 0; top: 50%; transform: translateY(-50%); width: min(66vw, 1040px); margin: 0; }
  .hero-banner img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 36%), linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 36%), linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%);
            mask-composite: intersect; }
  .hero.has-banner .hero-in { position: relative; z-index: 1; display: block; }
  .hero.has-banner .hero-copy { max-width: 560px; }
  .js .hero-banner.reveal { transform: translateY(-50%) translateX(30px); }
  .js .hero-banner.reveal.in { transform: translateY(-50%); }
}
