/* ==========================================================================
   ms cars™ — DESIGN SYSTEM v3
   Quiet black canvas · Geist typography · hairline geometry · restrained motion
   --------------------------------------------------------------------------
   1. Tokens          5. Navigation & indicator     9. Overlays (modal / palette)
   2. Base            6. Forms & dropdown          10. Views & motion
   3. Typography      7. Content components        11. Responsive
   4. Buttons         8. Page sections             12. Reduced motion
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Surfaces — one neutral ramp, no tinted cards */
  --bg: #060606;
  --surface-1: #0d0d0d;
  --surface-2: #131313;
  --surface-3: #1b1b1b;

  /* Lines */
  --line-1: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.2);

  /* Text */
  --text-1: #f2f2f2;
  --text-2: #a3a3a3;
  --text-3: #7a7a7a;

  /* Accent + status (accent is used only for focus and one tiny brand cue) */
  --accent: #8e93ff;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px rgba(142, 147, 255, 0.7);
  --ok: #3dd68c;
  --ok-text: #5be3a0;
  --danger: #ff6b76;

  /* Typography */
  --font-sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(80px, 13.5vw, 152px);
  --fs-h1: clamp(28px, 1vw + 24px, 32px);
  --fs-h2: clamp(20px, 0.6vw + 17px, 24px);
  --fs-h3: 16px;
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-2xs: 11px;

  /* Spacing — 4px scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Control heights */
  --h-sm: 32px;
  --h-md: 36px;
  --h-lg: 44px;

  /* Layout */
  --header-h: 76px;
  --container: 1200px;
  --gutter: 24px;

  /* Shadows */
  --shadow-menu: 0 12px 32px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-dialog: 0 32px 80px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --t-press: 120ms;
  --t-hover: 160ms;
  --t-menu: 180ms;
  --t-exit: 120ms;
  --t-enter: 220ms;
  --t-modal: 240ms;
  --t-modal-exit: 160ms;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100vh;
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.006em;
  overflow-x: clip;
}

#app { min-height: 100vh; display: flex; flex-direction: column; }
#app > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
code, kbd { font-family: var(--font-mono); }

::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }

:focus { outline: none; }
:focus-visible { box-shadow: var(--focus-ring); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -48px; z-index: 3000;
  height: var(--h-md); padding: 0 var(--s-4); display: inline-flex; align-items: center;
  border-radius: var(--r-sm); background: var(--text-1); color: #0a0a0a; font-size: var(--fs-sm); font-weight: 500;
  transition: top var(--t-hover) var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* Icons */
.icon { flex-shrink: 0; }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
.h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }

.lead { font-size: var(--fs-body); line-height: 1.6; color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.text-sm { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

.eyebrow {
  font-size: var(--fs-2xs); font-weight: 500; line-height: 1;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-xs); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-sans); font-size: var(--fs-2xs); font-weight: 500; line-height: 1; color: var(--text-2);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: transparent; --btn-bg-hover: transparent; --btn-fg: var(--text-1); --btn-bd: transparent; --btn-bd-hover: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--h-md); padding: 0 var(--s-4);
  border-radius: var(--r-sm); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1; white-space: nowrap; user-select: none;
  transition:
    background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease),
    color var(--t-hover) var(--ease), transform var(--t-press) var(--ease), opacity var(--t-hover) var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bd-hover); }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn .icon { width: 16px; height: 16px; }

.btn-sm { height: var(--h-sm); padding: 0 var(--s-3); }
.btn-lg { height: var(--h-lg); padding: 0 var(--s-5); font-size: 14px; border-radius: 10px; }
.btn-icon { width: var(--h-md); padding: 0; }
.btn-icon.btn-sm { width: var(--h-sm); }
.btn-block { width: 100%; }

.btn-primary { --btn-bg: var(--text-1); --btn-bg-hover: #fff; --btn-fg: #0a0a0a; font-weight: 600; }

.btn-secondary { --btn-bg: var(--surface-2); --btn-bg-hover: var(--surface-3); --btn-bd: var(--line-2); --btn-bd-hover: var(--line-3); }

.btn-ghost { --btn-fg: var(--text-2); --btn-bg-hover: rgba(255, 255, 255, 0.07); }
.btn-ghost:hover { color: var(--text-1); }

.btn-tertiary { --btn-fg: var(--text-2); padding-inline: var(--s-2); gap: 6px; }
.btn-tertiary:hover { color: var(--text-1); }
.btn-tertiary .icon { transition: transform var(--t-hover) var(--ease); }
.btn-tertiary:hover .icon-nudge { transform: translateX(2px); }

.btn-destructive { --btn-bg: rgba(255, 107, 118, 0.1); --btn-bg-hover: rgba(255, 107, 118, 0.18); --btn-fg: var(--danger); --btn-bd: rgba(255, 107, 118, 0.26); --btn-bd-hover: rgba(255, 107, 118, 0.4); }

/* Buttons that sit on photography */
.btn-on-media { --btn-bg: rgba(10, 10, 10, 0.45); --btn-bg-hover: rgba(10, 10, 10, 0.62); --btn-bd: rgba(255, 255, 255, 0.18); --btn-bd-hover: rgba(255, 255, 255, 0.32); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.btn.is-loading { pointer-events: none; }
.btn.is-loading > :not(.spinner) { opacity: 0; }
.btn .spinner { position: absolute; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2); border-top-color: currentColor;
  animation: spin 700ms linear infinite;
}
.btn-secondary .spinner { border-color: rgba(255, 255, 255, 0.15); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tooltips — data-tip, pointer devices only */
@media (hover: hover) {
  [data-tip] { position: relative; }
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute; left: 50%; z-index: 20; bottom: calc(100% + 8px);
    padding: 6px 8px; border-radius: var(--r-xs);
    background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-menu);
    color: var(--text-1); font-size: var(--fs-xs); font-weight: 500; line-height: 1.2; white-space: nowrap; letter-spacing: 0;
    pointer-events: none; opacity: 0; transform: translate(-50%, 4px);
    transition: opacity var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
  }
  [data-tip][data-tip-pos="bottom"]::after { bottom: auto; top: calc(100% + 8px); transform: translate(-50%, -4px); }
  [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 350ms; }
}

/* ==========================================================================
   5. NAVIGATION, HEADER & ACTIVE INDICATOR
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), -webkit-backdrop-filter 240ms var(--ease), backdrop-filter 240ms var(--ease);
}
.header.is-scrolled, .header.is-open {
  background: rgba(6, 6, 6, 0.72); border-bottom-color: var(--line-1);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
}
.header-bar { width: 100%; padding-inline: 36px; }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); }

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  border-radius: var(--r-xs);
  user-select: none;
  transition: transform var(--t-hover) var(--ease), opacity var(--t-hover) var(--ease);
}
.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.brand-ms {
  position: relative;
  isolation: isolate;
  font-family: "Orbitron", "Russo One", var(--font-sans);
  font-weight: 900;
  font-size: 27px;
  letter-spacing: 0.04em;
  line-height: 1;
  display: inline-block;
  transform: skewX(-10deg) scaleX(1.14);
  transform-origin: left baseline;
  color: transparent;
}
.brand-ms::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #08090c;
  -webkit-text-stroke: 3.6px #ffffff;
  paint-order: stroke fill;
}
.brand-ms::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 51%, #8c9099 51%, #8c9099 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px #08090c;
  paint-order: stroke fill;
}
.brand-cars {
  font-family: "Orbitron", "Russo One", var(--font-sans);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1;
  display: inline-block;
  transform: skewX(-10deg) scaleX(1.12);
  transform-origin: left baseline;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.header-actions { justify-self: end; display: flex; align-items: center; gap: var(--s-2); }

/* Segmented control with sliding indicator — shared by header nav & catalog filters */
.seg { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.seg-ind {
  position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none;
  width: var(--w, 0); height: var(--h, 100%);
  transform: translate3d(var(--x, 0), var(--y, 0), 0);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: transform 260ms var(--ease), width 260ms var(--ease), height 260ms var(--ease), opacity var(--t-hover) var(--ease);
}
.seg.is-ready .seg-ind { opacity: 1; }
.seg.no-anim .seg-ind { transition: none; }

.seg-item {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--h-sm); padding: 0 var(--s-3);
  border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; line-height: 1; white-space: nowrap; color: var(--text-2);
  transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease);
}
.seg-item:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.035); }
.seg-item[aria-current="page"]:hover, .seg-item[aria-pressed="true"]:hover { background: transparent; }
.seg-item[aria-current="page"], .seg-item[aria-pressed="true"] { color: var(--text-1); }
.seg-item .count { font-size: var(--fs-xs); font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; transition: color var(--t-hover) var(--ease); }
.seg-item[aria-pressed="true"] .count { color: var(--text-2); }

.search-trigger { justify-content: space-between; gap: var(--s-3); min-width: 184px; color: var(--text-3); padding-right: var(--s-2); }
.search-trigger .label { display: inline-flex; align-items: center; gap: var(--s-2); }
.search-trigger:hover { color: var(--text-2); }

.menu-toggle { position: relative; }
.menu-toggle > span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity var(--t-hover) var(--ease), transform var(--t-menu) var(--ease); }
.menu-toggle .icon-close { opacity: 0; transform: rotate(-60deg) scale(0.8); }
.menu-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: rotate(60deg) scale(0.8); }
.menu-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: none; }

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  padding: var(--s-2) var(--gutter) var(--s-6);
  background: rgba(6, 6, 6, 0.94); border-bottom: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity var(--t-menu) var(--ease), transform var(--t-menu) var(--ease), visibility 0s linear var(--t-menu);
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-nav a.mobile-link {
  display: flex; align-items: center; justify-content: space-between; height: 48px;
  border-bottom: 1px solid var(--line-1); font-size: var(--fs-body); font-weight: 500; color: var(--text-2);
  transition: color var(--t-hover) var(--ease);
}
.mobile-nav a.mobile-link[aria-current="page"] { color: var(--text-1); }
.mobile-nav .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-5); }

/* ==========================================================================
   6. FORMS & DROPDOWN
   ========================================================================== */
.field { display: grid; gap: 6px; }
.label { font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); }

.input {
  width: 100%; height: var(--h-md); padding: 0 var(--s-3);
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-1); color: var(--text-1);
  font-size: 14px; line-height: 1.2;
  transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--line-3); }
.input:focus-visible { border-color: rgba(255, 255, 255, 0.4); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(142, 147, 255, 0.2); }
.input:user-invalid, .input[aria-invalid="true"] { border-color: rgba(255, 107, 118, 0.6); }
.field-error { font-size: var(--fs-xs); color: var(--danger); line-height: 1.3; margin-top: 2px; }
textarea.input { height: auto; min-height: 96px; padding: var(--s-3); line-height: 1.5; resize: vertical; }

.input-wrap { position: relative; }
.input-wrap > [data-icon] { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); display: grid; place-items: center; color: var(--text-3); pointer-events: none; }
.input-wrap .input { padding-left: 36px; }
.input-wrap .input-clear { position: absolute; right: 4px; top: 50%; margin-top: -14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-xs); color: var(--text-3); opacity: 0; pointer-events: none; transition: opacity var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.input-wrap .input-clear:hover { color: var(--text-1); }
.input-wrap.has-value .input-clear { opacity: 1; pointer-events: auto; }
.input-wrap.has-value .input { padding-right: 36px; }

/* Custom dropdown (wraps a native <select> that stays in the DOM for forms) */
.select { position: relative; }
.select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  width: 100%; height: var(--h-md); padding: 0 var(--s-3);
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-1);
  font-size: 14px; line-height: 1.2; text-align: left; white-space: nowrap;
  transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.select-trigger:hover { border-color: var(--line-3); }
.select-trigger[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.4); background: var(--surface-2); }
.select-trigger .select-value { overflow: hidden; text-overflow: ellipsis; }
.select-trigger .select-prefix { color: var(--text-3); margin-right: 6px; }
.select-trigger .icon { width: 16px; height: 16px; color: var(--text-3); transition: transform var(--t-menu) var(--ease); }
.select-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.menu {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%;
  padding: var(--s-1); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-menu);
  transform-origin: top center; opacity: 0; transform: translateY(-4px) scale(0.98); visibility: hidden; pointer-events: none;
  transition: opacity var(--t-menu) var(--ease), transform var(--t-menu) var(--ease), visibility 0s linear var(--t-menu);
}
.menu.is-up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; transform: translateY(4px) scale(0.98); }
.menu.is-right { left: auto; right: 0; }
.menu.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  height: var(--h-sm); padding: 0 var(--s-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; cursor: pointer;
  transition: background-color 100ms var(--ease), color 100ms var(--ease);
}
.menu-item.is-active { background: rgba(255, 255, 255, 0.07); color: var(--text-1); }
.menu-item[aria-selected="true"] { color: var(--text-1); }
.menu-item .icon { width: 14px; height: 14px; opacity: 0; }
.menu-item[aria-selected="true"] .icon { opacity: 1; }

/* ==========================================================================
   7. CONTENT COMPONENTS
   ========================================================================== */
.panel { background: var(--surface-1); border: 1px solid var(--line-1); border-radius: var(--r-md); padding: var(--s-6); }
.panel-lg { padding: var(--s-8); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 var(--s-2);
  border-radius: var(--r-xs); border: 1px solid var(--line-1); background: rgba(255, 255, 255, 0.05);
  font-size: var(--fs-2xs); font-weight: 500; line-height: 1; letter-spacing: 0.01em; color: var(--text-2); white-space: nowrap;
}
.badge .icon { width: 12px; height: 12px; }
.badge-success { color: var(--ok-text); background: rgba(61, 214, 140, 0.1); border-color: rgba(61, 214, 140, 0.22); }
.badge-media { background: rgba(8, 8, 8, 0.55); border-color: rgba(255, 255, 255, 0.12); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot-live { position: relative; }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(3); opacity: 0; } }

.copy-chip {
  display: inline-flex; align-items: center; gap: var(--s-2); height: var(--h-sm); padding: 0 10px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-1);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-1); white-space: nowrap; max-width: 100%;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), transform var(--t-press) var(--ease);
}
.copy-chip:hover { background: var(--surface-2); border-color: var(--line-3); }
.copy-chip:active { transform: scale(0.98); }
.copy-chip .icon { width: 14px; height: 14px; color: var(--text-3); transition: color var(--t-hover) var(--ease); }
.copy-chip:hover .icon { color: var(--text-1); }
.copy-chip.is-copied .icon { color: var(--ok-text); }
.copy-chip .prefix { color: var(--text-3); }

.code { border: 1px solid var(--line-1); border-radius: var(--r-sm); background: #000; font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.8; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--line-1); color: var(--text-3); }
.code-body { padding: var(--s-3) 14px; overflow-x: auto; }
.code-body .k { color: var(--text-3); }

.meter { display: grid; gap: var(--s-2); }
.meter-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-xs); }
.meter-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter-fill { height: 100%; width: var(--v); border-radius: 4px; background: var(--ok); transform-origin: left; }
.meter-fill.is-neutral { background: rgba(255, 255, 255, 0.28); }
.js .reveal .meter-fill { transform: scaleX(0); transition: transform 900ms var(--ease) 200ms; }
.js .reveal.in .meter-fill { transform: none; }

/* Vehicle card */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.vcard { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--line-1); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.vcard:hover { border-color: var(--line-2); background: #101010; }

.media { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 220px; overflow: hidden; background: #070709; }
.media img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; display: block; transition: opacity 500ms var(--ease); }
.js .media:not(.is-loaded) img { opacity: 0; }
.media.is-error img { display: none; }
.js .media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.05) 50%, transparent 80%); transform: translateX(-100%); animation: shimmer 1.4s linear infinite; }
.js .media.is-loaded::before, .js .media.is-error::before { display: none; }
@keyframes shimmer { to { transform: translateX(100%); } }
.media-fallback { position: absolute; inset: 0; display: none; place-items: center; color: var(--text-3); }
.media.is-error .media-fallback { display: grid; }
.media-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 34%); }
.media-tags { position: absolute; top: var(--s-3); left: var(--s-3); right: var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); pointer-events: none; }

.vcard-body { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-4); flex: 1; }
.vcard-meta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.vcard-meta .sep { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.vcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.vcard-title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; }
.vcard-title button { text-align: left; border-radius: var(--r-xs); transition: color var(--t-hover) var(--ease); }
.vcard-title button:hover { color: #fff; }
.price { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: var(--s-3) 0; border-block: 1px solid var(--line-1); }
.specs > div { min-width: 0; padding-left: var(--s-3); border-left: 1px solid var(--line-1); }
.specs > div:first-child { padding-left: 0; border-left: 0; }
.specs dt { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.3; }
.specs dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; color: var(--text-1); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vcard-desc { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }
.vcard-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; }
.vcard-tos { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.vcard-tos .icon { width: 14px; height: 14px; }
.vcard-foot { display: grid; grid-template-columns: 1fr; gap: var(--s-2); padding: 0 var(--s-4) var(--s-4); }

/* Specification grid (modal) */
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--line-1); overflow: hidden; }
.spec-grid > div { background: var(--surface-1); padding: var(--s-3) var(--s-4); min-width: 0; }
.spec-grid dt { font-size: var(--fs-xs); color: var(--text-3); }
.spec-grid dd { margin: 4px 0 0; font-size: var(--fs-sm); font-weight: 500; line-height: 1.45; color: var(--text-1); }

.feature { display: grid; gap: 6px; }
.feature-title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.005em; }
.feature-title .icon { width: 16px; height: 16px; color: var(--text-3); }

/* States: empty / error */
.state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s-16) var(--s-6); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.state-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s-4); border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-1); color: var(--text-2); }
.state h3 { font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.01em; }
.state p { max-width: 380px; margin: 6px 0 var(--s-5); font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); }

/* Accordion */
.faq { border-top: 1px solid var(--line-1); }
.faq-item { border-bottom: 1px solid var(--line-1); }
.faq-trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); width: 100%; min-height: 56px; padding: var(--s-4) 0; font-size: var(--fs-body); font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; color: var(--text-1); border-radius: var(--r-xs); }
.faq-trigger .icon { width: 16px; height: 16px; color: var(--text-3); transition: transform var(--t-modal) var(--ease), color var(--t-hover) var(--ease); }
.faq-trigger:hover .icon { color: var(--text-1); }
.faq-item.is-open .faq-trigger .icon { transform: rotate(180deg); color: var(--text-1); }
.faq-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--t-modal) var(--ease), opacity var(--t-menu) var(--ease); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; opacity: 1; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 var(--s-8) var(--s-5) 0; font-size: var(--fs-sm); line-height: 1.7; color: var(--text-2); text-wrap: pretty; }

/* Testimonials */
.vouch { display: flex; flex-direction: column; gap: var(--s-5); }
.vouch-head { display: flex; align-items: center; gap: var(--s-3); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); flex-shrink: 0; }
.vouch-name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.vouch-server { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.3; }
.stars { display: flex; gap: 2px; margin-left: auto; color: var(--text-2); }
.stars .icon { width: 12px; height: 12px; fill: currentColor; }
.vouch-text { font-size: 14px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.vouch-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line-1); font-size: var(--fs-xs); color: var(--text-3); }
.vouch-foot .mono { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Toast */
.toast-region { position: fixed; left: 50%; bottom: calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 14px 10px 12px;
  border-radius: 10px; background: rgba(27, 27, 27, 0.92); border: 1px solid var(--line-2); box-shadow: var(--shadow-menu);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; color: var(--text-1);
  opacity: 0; transform: translateY(8px) scale(0.98);
  transition: opacity var(--t-menu) var(--ease), transform var(--t-menu) var(--ease);
}
.toast .icon { width: 16px; height: 16px; color: var(--ok-text); }
.toast.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   8. PAGE SECTIONS
   ========================================================================== */
.section { padding-block: var(--s-16); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-bottom: var(--s-5); margin-bottom: var(--s-8); border-bottom: 1px solid var(--line-1); }
.section-head .eyebrow { display: block; margin-bottom: var(--s-3); }
.section-intro { max-width: 620px; margin-bottom: var(--s-10); }
.section-intro .eyebrow { display: block; margin-bottom: var(--s-3); }
.section-intro .lead { margin-top: var(--s-3); }

/* Hero */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + var(--s-12)) var(--gutter) 112px; text-align: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--surface-1); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: opacity 900ms var(--ease), transform 2200ms var(--ease); }
.js .hero-media:not(.is-loaded) img { opacity: 0; transform: scale(1.05); }
.hero-media.is-loaded img { opacity: 1; transform: none; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(6, 6, 6, 0.18) 0%, rgba(6, 6, 6, 0.68) 78%), linear-gradient(to bottom, rgba(6, 6, 6, 0.64) 0%, rgba(6, 6, 6, 0.22) 38%, rgba(6, 6, 6, 0.52) 74%, var(--bg) 100%); }
.hero-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: clamp(68px, 10vw, 128px);
  line-height: 0.92;
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.75));
  user-select: none;
}
.hero-logo-ms {
  position: relative;
  isolation: isolate;
  font-family: "Orbitron", "Russo One", var(--font-sans);
  font-weight: 900;
  letter-spacing: 0.04em;
  display: inline-block;
  transform: skewX(-10deg) scaleX(1.16);
  color: transparent;
}
.hero-logo-ms::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #08090c;
  -webkit-text-stroke: 9px #ffffff;
  paint-order: stroke fill;
}
.hero-logo-ms::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 51%, #8c9099 51%, #8c9099 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 4px #08090c;
  paint-order: stroke fill;
}
.hero-logo-cars {
  font-family: "Orbitron", "Russo One", var(--font-sans);
  font-weight: 900;
  font-size: 0.52em;
  letter-spacing: 0.08em;
  display: inline-block;
  transform: skewX(-10deg) scaleX(1.16);
  color: #ffffff;
  -webkit-text-stroke: 2px #08090c;
  paint-order: stroke fill;
}
.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
.footer-logo .brand-ms {
  font-size: 17px;
}
.footer-logo .brand-ms::before {
  -webkit-text-stroke: 2.2px rgba(255, 255, 255, 0.92);
}
.footer-logo .brand-ms::after {
  -webkit-text-stroke: 1.1px #08090c;
}
.footer-logo .brand-cars {
  font-size: 15px;
}
.hero-eyebrow { margin-top: var(--s-6); color: rgba(255, 255, 255, 0.82); letter-spacing: 0.22em; }
.hero-tagline { margin-top: var(--s-3); font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.76); letter-spacing: -0.012em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-8); }
.hero-cue { position: absolute; left: 50%; bottom: var(--s-6); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.6); border-radius: var(--r-xs); transition: color var(--t-hover) var(--ease); }
.hero-cue:hover { color: #fff; }
.hero-cue-line { width: 1px; height: 28px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.05)); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(4px); opacity: 1; } }

.hero-in > * { animation: rise 700ms var(--ease) both; }
.hero-in > :nth-child(1) { animation-delay: 60ms; }
.hero-in > :nth-child(2) { animation-delay: 160ms; }
.hero-in > :nth-child(3) { animation-delay: 240ms; }
.hero-in > :nth-child(4) { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Facts strip */
.facts { border-bottom: 1px solid var(--line-1); }
.facts-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4) var(--s-8); padding-block: var(--s-4); }
.facts-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-8); font-size: var(--fs-sm); color: var(--text-2); }
.fact { display: inline-flex; align-items: center; gap: var(--s-2); }
.fact .icon { width: 16px; height: 16px; color: var(--text-3); }
.fact strong { font-weight: 500; color: var(--text-1); }
.facts-test { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); color: var(--text-3); }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); }
.span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; }
.bento { display: flex; flex-direction: column; gap: var(--s-6); }
.bento-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.bento-index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0; }
.bento h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; text-wrap: balance; }
.bento p { margin-top: var(--s-2); font-size: var(--fs-sm); line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.bento-visual { margin-top: auto; padding: var(--s-4); border: 1px solid var(--line-1); border-radius: var(--r-sm); background: #000; }

.page-head { padding-top: calc(var(--header-h) + var(--s-12)); padding-bottom: var(--s-8); }
.page-head .eyebrow { display: block; margin-bottom: var(--s-3); }
.page-head .lead { margin-top: var(--s-3); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.toolbar .input-wrap { flex: 1 1 320px; max-width: 360px; }
.toolbar .select { flex: 0 0 auto; width: 232px; }

.filters { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-1); }
.filters-scroll { position: relative; margin-inline: calc(var(--s-2) * -1); padding-inline: var(--s-2); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 24px), transparent 100%); }
.filters-scroll::-webkit-scrollbar { display: none; }
.filters-right { display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
.filters-right .select { width: 224px; }
.results-count { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

.catalog { padding-top: var(--s-8); }
.catalog.is-resizing { overflow: hidden; transition: height 260ms var(--ease); }
.catalog .vgrid { transition: opacity var(--t-exit) var(--ease-in); }
.catalog.is-leaving .vgrid { opacity: 0; }
.catalog.is-entering .vcard, .catalog.is-entering .state { animation: card-in var(--t-enter) var(--ease) backwards; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.banner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); margin-top: var(--s-16); padding: var(--s-8); }
.banner-copy { max-width: 560px; }
.banner-copy .badge { margin-bottom: var(--s-3); }
.banner-copy p { margin-top: var(--s-2); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; flex-wrap: wrap; }

.footer { border-top: 1px solid var(--line-1); padding-block: var(--s-8); font-size: var(--fs-xs); color: var(--text-3); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4) var(--s-8); }
.footer-brand { display: flex; align-items: center; gap: var(--s-3); }
.footer-brand .wordmark { font-size: 14px; color: var(--text-1); line-height: 1; letter-spacing: -0.04em; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.footer a, .footer .footer-btn { border-radius: var(--r-xs); transition: color var(--t-hover) var(--ease); }
.footer a:hover, .footer .footer-btn:hover { color: var(--text-1); }
.footer-discord { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.footer-discord .icon { width: 14px; height: 14px; color: var(--accent); }

/* ==========================================================================
   9. OVERLAYS — MODAL & COMMAND PALETTE
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--s-4);
  background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-modal-exit) var(--ease-in), visibility 0s linear var(--t-modal-exit);
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--t-modal) var(--ease), visibility 0s; }
.modal-top { align-items: flex-start; padding-top: min(14vh, 112px); }

.dialog {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 720px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line-2); box-shadow: var(--shadow-dialog); overflow: hidden;
  transform: translateY(8px) scale(0.985); transition: transform var(--t-modal-exit) var(--ease-in);
}
.dialog-sm { max-width: 520px; }
.modal.is-open .dialog { transform: none; transition: transform var(--t-modal) var(--ease); }
.dialog-scroll { overflow-y: auto; overscroll-behavior: contain; }
.dialog-close { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 5; width: var(--h-sm); height: var(--h-sm); display: grid; place-items: center; border-radius: var(--r-sm); color: var(--text-2); background: rgba(10, 10, 10, 0.55); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.dialog-close:hover { background: rgba(40, 40, 40, 0.8); color: #fff; }
.dialog-close .icon { width: 16px; height: 16px; }

.dialog-hero { position: relative; width: 100%; height: 220px; background: var(--surface-2); overflow: hidden; flex-shrink: 0; }
.dialog-hero .media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.dialog-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--surface-1) 0%, rgba(13, 13, 13, 0.52) 45%, rgba(0, 0, 0, 0.32) 100%); }
.dialog-hero-tags { position: absolute; top: var(--s-4); left: var(--s-6); z-index: 2; display: flex; gap: 6px; }
.dialog-hero-title { position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-4); z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.dialog-hero-title .eyebrow { display: block; margin-bottom: 6px; color: rgba(255, 255, 255, 0.68); }
.dialog-price { text-align: right; flex-shrink: 0; }
.dialog-price small { display: block; margin-bottom: 4px; font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; }
.dialog-price strong { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dialog-body { display: grid; gap: var(--s-5); padding: var(--s-5) var(--s-6) var(--s-6); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line-1); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.015); }
.dialog-pad { padding: var(--s-8); display: grid; gap: var(--s-6); }
.dialog-pad .dialog-title { padding-right: var(--s-10); }
.kv-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line-1); border-radius: var(--r-md); }
.kv-bar .kv { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.cta-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-1); }
.cta-bar strong { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; }
.cta-bar p { margin-top: 4px; font-size: var(--fs-xs); line-height: 1.55; color: var(--text-2); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-2); }
.form-grid { display: grid; gap: var(--s-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

/* Command palette */
.palette { max-width: 600px; transform: translateY(-6px) scale(0.985); }
.modal.is-open .palette { transform: none; }
.palette-input { display: flex; align-items: center; gap: var(--s-3); height: 52px; padding: 0 var(--s-4); border-bottom: 1px solid var(--line-1); }
.palette-input .icon { width: 16px; height: 16px; color: var(--text-3); }
.palette-input input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; font-size: var(--fs-body); color: var(--text-1); }
.palette-input input::placeholder { color: var(--text-3); }
.palette-input input:focus-visible { box-shadow: none; }
.palette-list { max-height: min(420px, 55vh); overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2); }
.palette-group { padding: var(--s-3) var(--s-3) var(--s-2); }
.palette-group:not(:first-child) { margin-top: var(--s-2); }
.palette-item { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 48px; padding: 6px var(--s-3); border-radius: var(--r-sm); cursor: pointer; transition: background-color 100ms var(--ease); }
.palette-item.is-active { background: rgba(255, 255, 255, 0.07); }
.palette-item-main { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.palette-thumb { width: 32px; height: 32px; border-radius: var(--r-xs); object-fit: cover; background: var(--surface-3); flex-shrink: 0; }
.palette-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-xs); border: 1px solid var(--line-1); background: var(--surface-2); color: var(--text-2); flex-shrink: 0; }
.palette-ico .icon { width: 16px; height: 16px; }
.palette-title { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-sub { font-size: var(--fs-xs); line-height: 1.3; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-aside { font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.palette-empty { padding: var(--s-8) var(--s-4); text-align: center; font-size: var(--fs-sm); color: var(--text-3); }
.palette-foot { display: flex; align-items: center; gap: var(--s-4); height: 40px; padding: 0 var(--s-4); border-top: 1px solid var(--line-1); font-size: var(--fs-xs); color: var(--text-3); }
.palette-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   10. VIEWS & MOTION
   ========================================================================== */
.view { display: none; }
.view:focus { outline: none; }
.view.is-active { display: block; }
.view.is-entering { animation: view-in var(--t-enter) var(--ease) backwards; }
.view.is-leaving { animation: view-out var(--t-exit) var(--ease-in) forwards; pointer-events: none; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes view-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-4px); } }

.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (min-width: 1600px) {
  :root { --container: 1280px; --gutter: 32px; }
}

@media (max-width: 1099px) {
  .search-trigger { min-width: 0; padding-right: var(--s-3); }
  .search-trigger .kbd, .search-trigger .label-text { display: none; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-7, .span-6, .span-5 { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .hide-lg { display: none !important; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --header-h: 68px; }
  .header-bar { padding-inline: 20px; }
  .brand { font-size: 24px; }
  .nav-desktop, .actions-desktop { display: none !important; }
  .header-inner { grid-template-columns: 1fr auto; }
  .section { padding-block: var(--s-12); }
  .section-head { margin-bottom: var(--s-6); }
  .page-head { padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--s-6); }
  .hero { padding-bottom: 96px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .hero-tagline { font-size: 16px; }
  .facts-inner { align-items: flex-start; flex-direction: column; }
  .facts-list { gap: var(--s-3) var(--s-6); }
  .filters { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .filters-scroll { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters-right { justify-content: space-between; width: 100%; }
  .filters-right .select { width: 196px; }
  .banner { flex-direction: column; align-items: flex-start; padding: var(--s-6); margin-top: var(--s-12); }
  .banner .btn { width: 100%; }
  .panel-lg { padding: var(--s-6); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .dialog-pad { padding: var(--s-6) var(--s-5); }
  .dialog-body { padding: var(--s-5); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-bar { flex-direction: column; align-items: stretch; }
  .dialog-hero { aspect-ratio: 16 / 10; }
  .dialog-hero-title { left: var(--s-5); right: var(--s-5); flex-direction: column; align-items: flex-start; }
  .dialog-price { text-align: left; }
  .dialog-price small { display: none; }
}

@media (max-width: 639px) {
  .vgrid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .modal:not(.modal-top) { align-items: flex-end; padding: 0; }
  .modal:not(.modal-top) .dialog { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; transform: translateY(24px); }
  .modal.is-open:not(.modal-top) .dialog { transform: none; }
  .modal-top { padding: var(--s-3); padding-top: var(--s-4); }
  .form-row { grid-template-columns: 1fr; }
  .faq-panel p { padding-right: 0; }
  .palette-foot { display: none; }
}

@media (pointer: coarse) {
  .input, .select-trigger { font-size: 16px; }
  .input, .select-trigger, .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
}

/* ==========================================================================
   12. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .meter-fill { transform: none; }
  .hero-media img { opacity: 1; transform: none; }
  .media img { opacity: 1; }
}

/* ==========================================================================
   13. LAYOUT ADDITIONS & FLAGSHIP SHOWCASE
   ========================================================================== */
.hero-in { display: flex; flex-direction: column; align-items: center; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-12); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + var(--s-8)); }

.showcase {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 456px; padding: var(--s-6) var(--s-8);
  border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: var(--surface-1); overflow: hidden;
}
.showcase-media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; z-index: 0; }
.showcase-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 6, 6, 0.42) 0%, transparent 26%),
    linear-gradient(to top, rgba(6, 6, 6, 0.94) 0%, rgba(6, 6, 6, 0.58) 44%, rgba(6, 6, 6, 0.18) 100%),
    radial-gradient(circle at 80% 20%, transparent 0%, rgba(6, 6, 6, 0.42) 100%);
}
@media (hover: hover) { .showcase:hover .showcase-media.is-loaded img { transform: scale(1.02); } }
.showcase-top, .showcase-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.showcase-bottom { align-items: flex-end; margin-top: auto; padding-top: var(--s-12); }
.showcase-copy { max-width: 620px; }
.showcase-eyebrow { display: block; color: rgba(255, 255, 255, 0.72); margin-bottom: var(--s-2); }
.showcase-title { font-size: clamp(24px, 2.2vw + 14px, 36px); font-weight: 600; letter-spacing: -0.032em; line-height: 1.1; color: #fff; }
.showcase-desc { margin-top: var(--s-2); font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); max-width: 56ch; }
.showcase-actions { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.showcase-price { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-right: var(--s-2); color: #fff; }
.copy-chip-media { background: rgba(10, 10, 10, 0.58); border-color: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.copy-chip-media:hover { background: rgba(22, 22, 22, 0.76); border-color: rgba(255, 255, 255, 0.28); }

@media (min-width: 768px) {
  .mobile-nav, .menu-mobile-actions { display: none !important; }
}
@media (max-width: 767px) {
  .hide-sm-md { display: none !important; }
  .faq-layout, .cols-2 { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .faq-intro { position: static; }
  .showcase { min-height: 380px; padding: var(--s-5); }
  .showcase-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-5); }
  .showcase-actions { width: 100%; }
  .showcase-price { width: 100%; margin-right: 0; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .faq-intro { position: static; }
}

/* ==========================================================================
   14. USER VERIFICATION CIRCLE, DISCORD AUTH POPOVER & ADMIN PANEL
   ========================================================================== */

[hidden] {
  display: none !important;
}

.filters {
  flex-wrap: wrap;
  gap: var(--s-3);
}

.filters-scroll {
  flex: 1 1 100%;
  max-width: 100%;
}

#catalogFilters {
  flex-wrap: wrap;
}

.filters-right {
  width: 100%;
  justify-content: space-between;
}

#discordAuthModal .badge,
#adminModal .badge {
  align-self: flex-start;
  width: fit-content;
}

.user-verify-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-verify-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2b2d31;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.user-verify-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.user-verify-btn:active {
  transform: scale(0.95);
}

.user-verify-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.user-verify-btn.is-authenticated {
  border-color: rgba(52, 211, 153, 0.55);
}

.user-verify-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-verify-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--canvas);
}

.user-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 296px;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: rgba(15, 15, 17, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-3);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 160ms var(--ease-out),
    transform 180ms var(--ease-out),
    visibility 180ms;
  z-index: 95;
}

.user-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.user-popover-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.user-popover-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-popover-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  border: 1px solid var(--line-2);
}

.user-popover-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.user-popover-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.btn-discord {
  background: #5865F2;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  font-weight: 500;
}

.btn-discord:hover {
  background: #4752C4;
  color: #ffffff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.user-logged-profile {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-1);
}

.user-logged-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}

.user-logged-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-logged-role {
  font-size: 12px;
  color: var(--ok-text);
  margin-top: 2px;
}

.user-popover-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.field-hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
  margin-top: 2px;
}

.auth-status-box {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--ok-soft);
  border: 1px solid var(--ok-line);
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.5;
}

.auth-status-box .dot {
  margin-top: 6px;
}

.auth-code-input {
  font-size: 20px;
  letter-spacing: 0.28em;
  text-align: center;
  font-weight: 600;
}

/* Admin Panel Dialog */
.dialog-lg {
  max-width: 960px;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-1);
  margin-bottom: var(--s-6);
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}

.admin-list-col {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
}

.admin-list-head {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line-1);
}

.admin-posts-list {
  max-height: 460px;
  overflow-y: auto;
  padding: var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-post-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 9px 12px;
  border-radius: var(--r-sm);
  text-align: left;
  color: var(--text-2);
  font-size: 13px;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.admin-post-item:hover {
  background: var(--surface-3);
  color: var(--text-1);
}

.admin-post-item.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-1);
  font-weight: 500;
}

.admin-post-cat {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.admin-native-select {
  background-color: var(--surface-2);
  color: var(--text-1);
  cursor: pointer;
}

.admin-checks {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-1);
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #f2f2f2;
}

/* Gallery thumbnails inside car detail modal */
.dialog-gallery {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-bottom: var(--s-1);
}

.dialog-thumb {
  width: 76px;
  height: 50px;
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 1px solid var(--line-2);
  opacity: 0.62;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.dialog-thumb:hover,
.dialog-thumb.is-active {
  opacity: 1;
  border-color: var(--text-1);
}

.dialog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-posts-list {
    max-height: 200px;
  }
}

/* ==========================================================================
   15. DEDICATED FULL-PAGE VEHICLE VIEW (#view-car)
   ========================================================================== */

.car-page {
  padding-top: calc(var(--header-h) + var(--s-6));
  padding-bottom: 96px;
}

.car-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}

.car-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}

.car-breadcrumbs a {
  color: var(--text-3);
  transition: color var(--t-hover) var(--ease);
}

.car-breadcrumbs a:hover {
  color: var(--text-1);
}

.car-breadcrumbs .crumb-current {
  color: var(--text-1);
  font-weight: 500;
}

.car-breadcrumbs .crumb-sep {
  opacity: 0.45;
  font-size: 11px;
}

/* Main clean photo stage — no text overlaid on the image, no cropping */
.car-stage {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #070709;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  user-select: none;
}

.car-stage-media {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070709;
}

.car-stage-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  transition: opacity 220ms var(--ease);
}

.car-stage-counter {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 3;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(10, 10, 12, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.car-stage-expand {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), transform var(--t-press) var(--ease);
}

.car-stage-expand:hover {
  background: rgba(24, 24, 28, 0.88);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.car-stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), transform var(--t-press) var(--ease);
}

.car-stage-nav:hover {
  background: rgba(24, 24, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.36);
}

.car-stage-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.car-stage-prev {
  left: var(--s-4);
}

.car-stage-next {
  right: var(--s-4);
}

/* Thumbnail strip below main stage */
.car-thumbs-wrap {
  margin-top: var(--s-3);
}

.car-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.car-thumb {
  position: relative;
  height: 64px;
  width: auto;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: #070709;
  opacity: 0.52;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}

.car-thumb:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.28);
}

.car-thumb.is-active {
  opacity: 1;
  border-color: #818cf8;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35);
}

.car-thumb img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Vehicle title, price & details section BELOW the image & thumbnails */
.car-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--s-8);
  align-items: start;
  margin-top: var(--s-8);
}

.car-main-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.car-header-block {
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line-1);
}

.car-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: var(--s-2);
}

.car-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.car-page-title {
  font-family: "Outfit", var(--font-sans);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
}

.car-page-price {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.car-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.car-feature-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-1);
}

.car-feature-chip .icon {
  color: #818cf8;
  flex-shrink: 0;
}

.car-side-col {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
}

.car-purchase-card {
  padding: var(--s-6);
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.car-purchase-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: var(--s-4);
  border-block: 1px solid var(--line-1);
  font-size: 13px;
}

.car-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  color: var(--text-2);
}

.car-purchase-row strong {
  color: var(--text-1);
  font-weight: 500;
}

/* Fullscreen Lightbox */
.lightbox-dialog {
  position: relative;
  max-width: min(94vw, 1520px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-dialog);
  object-fit: contain;
}

@media (max-width: 960px) {
  .car-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .car-side-col {
    position: static;
  }
  .car-thumb {
    width: 96px;
  }
}

/* ==========================================================================
   16. COMMUNITY — LIVE DISCORD SERVER CARD (discord.gg/msgarage)
   ========================================================================== */

.discord-live-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--surface-1);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.discord-live-banner {
  position: relative;
  height: 164px;
  background-color: #111216;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--s-4);
}

.discord-live-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.25) 0%, rgba(13, 13, 13, 0.92) 100%);
  pointer-events: none;
}

.discord-live-pill {
  position: relative;
  z-index: 1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.discord-live-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: var(--s-8);
  align-items: center;
  padding: 0 var(--s-8) var(--s-8);
  margin-top: -42px;
}

.discord-live-main {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.discord-live-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: var(--surface-1);
  padding: 5px;
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.discord-live-avatar {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
  display: block;
}

.discord-live-status-ring {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #23a55a;
  border: 4px solid var(--surface-1);
}

.discord-live-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.discord-live-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.discord-live-name {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.discord-live-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(113, 194, 217, 0.14);
  border: 1px solid rgba(113, 194, 217, 0.35);
  color: #71c2d9;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.discord-live-boost {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(244, 127, 255, 0.12);
  border: 1px solid rgba(244, 127, 255, 0.28);
  color: #f47fff;
  font-size: 11.5px;
  font-weight: 500;
}

.discord-live-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 58ch;
}

.discord-live-invite-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: 2px;
}

.discord-live-stats-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-2);
  margin-top: 42px;
}

.discord-stat-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.discord-stat-box {
  padding: var(--s-4);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discord-stat-box.is-online {
  border-color: rgba(61, 214, 140, 0.24);
  background: rgba(61, 214, 140, 0.05);
}

.discord-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.discord-stat-dot-total {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b5bac1;
  flex-shrink: 0;
}

.discord-stat-value {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.discord-stat-box.is-online .discord-stat-value {
  color: var(--ok-text);
}

@media (max-width: 900px) {
  .discord-live-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 var(--s-5) var(--s-5);
    gap: var(--s-5);
  }
  .discord-live-stats-col {
    margin-top: 0;
  }
}


