/* MB Software Upgrade — matte black and orange theme */
:root {
  --color-background: #121212;
  --color-surface: #1a1a1a;
  --color-surface-2: #212121;
  --color-line: #2e2e2e;
  --color-text: #ffffff;
  --color-muted: #a6a6a6;
  --color-accent: #ff7a00;
  --color-accent-ink: #111111;
  --color-accent-soft: rgba(255, 122, 0, 0.14);
  --color-destructive: #ff6b6b;
  --color-ok: #4ade80;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-control: 0px;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--color-background); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; line-height: 0.92; letter-spacing: 0.005em; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(52px, 9vw, 148px); }
h2 { font-size: clamp(40px, 6vw, 92px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1; }
p { margin: 0 0 1em; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent);
}
.kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: #d9d9d9; max-width: 60ch; }
.muted { color: var(--color-muted); }
.accent { color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  --skew: 14px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 34px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-control);
  clip-path: polygon(var(--skew) 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%);
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s;
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: #ff9433; transform: translateY(-2px); }
.btn-primary:disabled { background: #4a4a4a; color: #999; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1px #444; clip-path: none; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--color-accent); color: var(--color-accent); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 16px; --skew: 10px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 2px solid var(--color-accent); padding-bottom: 4px;
}
.link-arrow:hover { color: var(--color-accent); }
.link-arrow svg { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(18,18,18,0.92), rgba(18,18,18,0.6));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 0.9; }
.brand-text small { display: block; font-size: 11px; letter-spacing: 0.32em; color: var(--color-accent); font-weight: 700; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative; text-decoration: none; color: #cfcfcf;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; color: #fff;
}
.icon-btn:hover { color: var(--color-accent); }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; background: var(--color-accent); color: var(--color-accent-ink);
  font-family: var(--font-display); font-weight: 900; font-size: 13px; border-radius: 10px;
}
.cart-count:empty { display: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px var(--gutter) 28px; background: #121212; border-bottom: 1px solid var(--color-line);
    transform-origin: top; transform: perspective(900px) rotateX(-80deg); opacity: 0; pointer-events: none;
    transition: transform 0.45s var(--ease-out), opacity 0.3s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 30px; padding: 10px 0; width: 100%; border-bottom: 1px solid #1d1d1d; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--color-accent); }
}

main { display: block; }
.page-main { transform-origin: 50% 30vh; overflow-x: clip; }

/* ---------- Page transition: a dark sheet with glowing edges sweeps left to right ---------- */
.pt { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; overflow: hidden; }
.pt.pt-in, .pt.pt-on, .pt.pt-out { visibility: visible; }
.pt.pt-in, .pt.pt-on { pointer-events: auto; }
.pt-sheet {
  position: absolute; top: -10%; bottom: -10%; left: -24vh; width: calc(100% + 48vh);
  background: linear-gradient(90deg, #0a0a0a, #151515 50%, #0a0a0a);
  transform: translateX(-100%) skewX(-14deg); will-change: transform;
}
.pt.pt-in .pt-sheet { transform: translateX(0) skewX(-14deg); transition: transform 0.58s cubic-bezier(0.7, 0, 0.3, 1); }
.pt.pt-on .pt-sheet { transform: translateX(0) skewX(-14deg); }
.pt.pt-out .pt-sheet { transform: translateX(100%) skewX(-14deg); transition: transform 0.75s cubic-bezier(0.7, 0, 0.3, 1) 0.1s; }
.pt-edge { position: absolute; top: 0; bottom: 0; width: 6px; background: var(--color-accent); box-shadow: 0 0 22px 4px rgba(255, 122, 0, 0.6), 0 0 90px 14px rgba(255, 122, 0, 0.22); }
.pt-edge-r { right: 0; }
.pt-edge-r::after { content: ""; position: absolute; top: 0; bottom: 0; right: 24px; width: 2px; background: rgba(255, 122, 0, 0.45); }
.pt-edge-l { left: 0; width: 3px; }
.pt-trail { position: absolute; left: 0; top: var(--y); height: 2px; width: calc(var(--w) * 42vw); transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 122, 0, var(--o))); }
.pt-trail:nth-of-type(even) { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, calc(var(--o) * 0.55))); height: 1px; }
.pt-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; }
.pt-mark svg { width: 74px; height: 74px; overflow: visible; }
.pt-arc { stroke-dasharray: 100; stroke-dashoffset: 100; }
.pt-needle { transform-box: view-box; transform-origin: 20px 20px; transform: rotate(-150deg); }
.pt-mark span { font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.pt-mark b { color: var(--color-accent); font-weight: 900; }
.pt.pt-in .pt-mark { opacity: 1; transition: opacity 0.2s linear 0.3s; }
.pt.pt-in .pt-arc { stroke-dashoffset: 0; transition: stroke-dashoffset 0.55s var(--ease-out) 0.28s; }
.pt.pt-in .pt-needle { transform: rotate(0deg); transition: transform 0.55s var(--ease-out) 0.28s; }
.pt.pt-on .pt-mark { opacity: 1; }
.pt.pt-on .pt-arc, .pt.pt-out .pt-arc { stroke-dashoffset: 0; }
.pt.pt-on .pt-needle, .pt.pt-out .pt-needle { transform: rotate(0deg); }
.pt.pt-out .pt-mark { opacity: 0; transform: translate(-50%, -50%) scale(1.08); transition: opacity 0.25s, transform 0.4s var(--ease-out); }
body.pt-leaving .page-main { transform: translateX(-2.5vw); opacity: 0.35; transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.6s; }
body.pt-entering .page-main { animation: page-in 0.9s var(--ease-out) 0.18s both; }
body.pt-first .page-main { animation: page-first 0.8s var(--ease-out) both; }
@keyframes page-in {
  from { transform: translateX(-3vw); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes page-first {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- Scroll reveal 3D ---------- */
[data-reveal] {
  opacity: 0;
  transform: perspective(1200px) translateY(70px) rotateX(22deg) translateZ(-90px);
  transform-origin: 50% 100%;
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal="left"] { transform: perspective(1200px) translateX(-80px) rotateY(28deg); transform-origin: 0 50%; }
[data-reveal="right"] { transform: perspective(1200px) translateX(80px) rotateY(-28deg); transform-origin: 100% 50%; }
[data-reveal="zoom"] { transform: perspective(1200px) translateZ(-400px); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Layout ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: 14ch; }
.section-head .lead { margin: 0; }
.stack > * + * { margin-top: 20px; }
.page-hero { padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) var(--gutter) clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(56px, 10vw, 150px); margin: 18px 0 24px; }
.page-hero .bg-word {
  position: absolute; right: -2vw; bottom: -3vw; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(120px, 26vw, 420px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px #222;
  text-transform: uppercase; pointer-events: none; user-select: none;
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: calc(var(--header-h) + 32px) var(--gutter) 64px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 72% 50%, rgba(255,122,0,0.25), transparent 45%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30vh; background: linear-gradient(to top, var(--color-background), transparent); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { margin: 22px 0 26px; text-shadow: 0 4px 40px rgba(0,0,0,0.6); }
.hero h1 .line { display: block; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 2px #fff; }
.hero .lead { margin-bottom: 36px; text-shadow: 0 2px 20px rgba(0,0,0,0.8); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero-readout {
  position: absolute; z-index: 2; left: 0; top: 0; pointer-events: none; text-align: center;
  transform: translate(-50%, -50%); will-change: transform;
}
.hero-readout .num { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 9vw, 132px); line-height: 0.85; font-variant-numeric: tabular-nums; }
.hero-readout .unit { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.3em; font-size: 15px; color: var(--color-accent); }
.hero-scroll { position: absolute; z-index: 2; left: var(--gutter); bottom: 28px; font-family: var(--font-display); letter-spacing: 0.3em; font-size: 13px; color: var(--color-muted); text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.hero-scroll::after { content: ""; width: 60px; height: 1px; background: var(--color-muted); animation: scroll-line 2s infinite; transform-origin: left; }
@keyframes scroll-line { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero { align-items: end; }
  .hero-readout { opacity: 0.9; }
  .hero-readout .num { font-size: 46px; }
  .hero-readout .unit { font-size: 11px; }
}
@media (max-width: 700px) {
  .shop-bar { position: static; padding-block: 12px; }
  .shop-bar .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .shop-bar .chip { white-space: nowrap; flex: none; }
  .shop-tools { margin-left: 0; width: 100%; }
  .shop-tools #q { flex: 1 1 100%; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--color-line); background: #0d0d0d; padding: 18px 0; transform: perspective(800px) rotateX(10deg); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee a { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 4vw, 48px); letter-spacing: 0.04em; color: #2c2c2c; white-space: nowrap; text-decoration: none; transition: color 0.2s; }
.marquee a:hover, .marquee a:focus-visible { color: var(--color-accent) !important; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee a:nth-child(3n+1) { color: #fff; }
.marquee a:nth-child(5n) { color: var(--color-accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 34px; text-decoration: none;
  background: linear-gradient(160deg, #1a1a1a, #0e0e0e); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  overflow: hidden; transform-style: preserve-3d;
}
.pillar .num { font-family: var(--font-display); font-weight: 900; font-size: 92px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px #3a3a3a; transform: translateZ(40px); }
.pillar h3 { margin: auto 0 14px; transform: translateZ(60px); }
.pillar p { color: var(--color-muted); margin: 0 0 22px; transform: translateZ(30px); }
.pillar .go { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); transform: translateZ(50px); }
.pillar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,122,0,0.22), transparent 55%); opacity: 0; transition: opacity 0.3s; }
.pillar:hover::before { opacity: 1; }
.pillar:hover { border-color: #3d3d3d; }
[data-tilt] { transition: transform 0.5s var(--ease-out); will-change: transform; }
[data-tilt].tilting { transition: transform 0.08s linear; }

/* ---------- Service index list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); }
.svc-item { border-bottom: 1px solid var(--color-line); }
.svc-item > a, .svc-item > div {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px; padding: 28px 0;
  text-decoration: none; transition: padding 0.4s var(--ease-out), background 0.3s;
}
.svc-item > a:hover { padding-left: 18px; background: linear-gradient(90deg, var(--color-accent-soft), transparent 60%); }
.svc-idx { font-family: var(--font-display); font-weight: 800; color: var(--color-accent); font-size: 22px; letter-spacing: 0.1em; }
.svc-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 50px); line-height: 0.95; }
.svc-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-block; padding: 4px 10px; border: 1px solid #3a3a3a; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #cfcfcf; border-radius: var(--radius-control); }
.tag-accent { border-color: var(--color-accent); color: var(--color-accent); }
@media (max-width: 700px) { .svc-item > a, .svc-item > div { grid-template-columns: 44px 1fr; } .svc-tags { grid-column: 2; justify-content: flex-start; } }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px; perspective: 1600px; }
.tile {
  position: relative; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); overflow: hidden; transform-style: preserve-3d;
}
.tile:hover { border-color: #444; }
.tile-media { position: relative; aspect-ratio: 1; background: #1e1e1e; overflow: hidden; display: block; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out), opacity 0.4s; }
.tile-media img.hover { position: absolute; inset: 0; opacity: 0; }
.tile:hover .tile-media img { transform: scale(1.06); }
.tile:hover .tile-media img.hover { opacity: 1; }
.tile-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #555; font-family: var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; }
.ribbons { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.ribbon { background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; }
.ribbon-soldout { background: #121212; color: #fff; border: 1px solid #555; }
.tile-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; transform: translateZ(30px); }
.tile-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.02; text-transform: uppercase; text-decoration: none; }
.tile-name:hover { color: var(--color-accent); }
.tile-meta { font-size: 14px; color: var(--color-muted); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: 0.02em; }
.price s { font-size: 17px; color: var(--color-muted); margin-left: 8px; font-weight: 700; }
.discounts { font-size: 13px; color: var(--color-accent); }
.tile-add { white-space: nowrap; }
.tile-link { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 15px; color: var(--color-accent); text-decoration: none; }

/* Launch animation (after BOOST) */
.launch { animation: launch 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes launch {
  0% { opacity: 0; transform: translateZ(-1400px) rotateX(35deg) translateY(-120px); filter: blur(10px) brightness(2); }
  55% { opacity: 1; filter: blur(0) brightness(1.4); }
  100% { opacity: 1; transform: none; filter: none; }
}
.launch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,122,0,0.55) 48%, rgba(255,255,255,0.7) 50%, transparent 62%);
  transform: translateX(-120%); animation: streak 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 350ms);
}
@keyframes streak { to { transform: translateX(120%); } }

/* ---------- BOOST loader ---------- */
.boost { display: grid; place-items: center; padding: 40px 0 60px; perspective: 900px; }
.boost-inner { position: relative; width: min(420px, 86vw); transform: rotateX(14deg); transform-style: preserve-3d; transition: transform 0.6s var(--ease-in), opacity 0.6s, filter 0.6s; }
.boost svg { width: 100%; height: auto; overflow: visible; display: block; }
.boost .seg { fill: #262626; transition: fill 0.12s; }
.boost .seg.on { fill: var(--color-accent); filter: drop-shadow(0 0 6px rgba(255,122,0,0.9)); }
.boost .seg.on.hot { fill: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,0.9)); }
.boost-read { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; transform: translateZ(40px); }
.boost-label { font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: 0.3em; padding-left: 0.3em; }
.boost-val { font-family: var(--font-display); font-weight: 800; color: var(--color-accent); font-size: 18px; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.boost-msg { margin-top: 18px; font-family: var(--font-display); letter-spacing: 0.24em; font-size: 13px; text-transform: uppercase; color: var(--color-muted); }
.boost.go .boost-inner { transform: rotateX(70deg) translateZ(-400px) scale(1.6); opacity: 0; filter: blur(6px); }
.boost.flash::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle, rgba(255,122,0,0.35), transparent 60%); pointer-events: none; animation: flash 0.6s ease-out both; z-index: 5; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.btn .mini-boost { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 0%); background: #fff; transition: width 0.15s; }

/* ---------- Audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; perspective: 1400px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-card { padding: clamp(28px, 4vw, 56px); border: 1px solid var(--color-line); background: var(--color-surface); border-radius: var(--radius-lg); }
.split-card.hot { background: linear-gradient(150deg, #2b1806, #161007 60%); border-color: #4d2d0e; }
.split-card h3 { font-size: clamp(36px, 4vw, 60px); margin: 14px 0 22px; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid #262626; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 2px; background: var(--color-accent); }

/* ---------- 3D carousel gallery ---------- */
.carousel-section { height: 500vh; position: relative; }
.carousel-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr; padding: calc(var(--header-h) + 30px) var(--gutter) 30px; overflow: hidden; }
.carousel-stage { position: relative; perspective: 1600px; display: grid; place-items: center; }
.carousel-ring { position: relative; width: var(--card-w); height: calc(var(--card-w) * 0.7); transform-style: preserve-3d; --card-w: min(480px, 70vw); }
.carousel-card { position: absolute; inset: 0; margin: 0; border-radius: var(--radius-lg); overflow: hidden; backface-visibility: hidden; border: 1px solid #333; background: #111; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; }
.carousel-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); font-size: 15px; }
.carousel-card figcaption strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.carousel-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; height: 2px; background: #222; }
.carousel-progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--color-accent); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px; border-top: 2px solid var(--color-accent); background: linear-gradient(to bottom, #151515, transparent); }
.step .n { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; color: var(--color-accent); }
.step h3 { margin: 10px 0 12px; }
.step p { color: var(--color-muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) var(--gutter); background: var(--color-accent); color: var(--color-accent-ink); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { font-size: 20px; max-width: 52ch; margin: 22px 0 34px; font-weight: 500; }
.cta-band .btn-dark { background: #121212; color: #fff; }
.cta-band .btn-dark:hover { background: #222; }
.cta-band .contacts { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 30px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.cta-band .contacts a { text-decoration: none; border-bottom: 2px solid rgba(0,0,0,0.4); }
.cta-band .bg-word { position: absolute; right: -3vw; top: 50%; transform: translateY(-50%) perspective(800px) rotateY(-24deg); font-family: var(--font-display); font-weight: 900; font-size: clamp(140px, 28vw, 460px); line-height: 0.8; color: rgba(0,0,0,0.08); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px var(--gutter) 36px; border-top: 1px solid var(--color-line); background: #0d0d0d; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 18px; letter-spacing: 0.16em; color: var(--color-accent); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #d0d0d0; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.footer-note { margin-top: 50px; padding-top: 22px; border-top: 1px solid #1c1c1c; font-size: 13px; color: #8a8a8a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Shop ---------- */
.shop-bar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px var(--gutter); background: rgba(18,18,18,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; background: transparent; border: 1px solid #3a3a3a; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: #ddd; border-radius: var(--radius-control); }
.chip:hover { border-color: #777; }
.chip[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.chip:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.shop-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.field { background: #111; border: 1px solid #3a3a3a; padding: 10px 14px; min-height: 44px; border-radius: var(--radius-control); }
.field:focus { border-color: var(--color-accent); outline: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: #ddd; cursor: pointer; }
.check input { accent-color: var(--color-accent); width: 18px; height: 18px; }
.shop-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--color-muted); font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; }
.grid.dim { opacity: 0.45; transition: opacity 0.2s; }
.empty { padding: 60px 0; text-align: center; }
.empty h3 { margin-bottom: 12px; }
.error-text { color: var(--color-destructive); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); padding: calc(var(--header-h) + 40px) var(--gutter) 80px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; color: var(--color-muted); margin-bottom: 18px; }
.crumbs a { color: var(--color-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-accent); }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); perspective: 1400px; }
@media (max-width: 900px) { .gallery { position: relative; top: 0; } }
.gallery-main { position: relative; aspect-ratio: 1; background: #1a1a1a; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; transform-style: preserve-3d; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.swap { animation: swap 0.6s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: perspective(900px) rotateY(-25deg) scale(0.92); } to { opacity: 1; transform: none; } }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 78px; height: 78px; padding: 0; border: 1px solid #333; background: #1a1a1a; cursor: pointer; overflow: hidden; border-radius: var(--radius-md); }
.thumbs button[aria-pressed="true"] { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(40px, 5vw, 76px); margin-bottom: 18px; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.pdp-price .price { font-size: 44px; }
.stock-line { font-size: 15px; margin-bottom: 24px; }
.stock-line.ok { color: var(--color-ok); }
.stock-line.no { color: var(--color-destructive); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; margin-bottom: 10px; color: #ddd; }
.field-label { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; margin-bottom: 8px; color: #ddd; }
.field-hint { font-size: 14px; color: var(--color-muted); margin-top: 6px; }
.vin-input { width: 100%; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 10px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #3a3a3a; height: 52px; }
.stepper button { width: 44px; height: 100%; background: none; border: 0; cursor: pointer; font-size: 22px; }
.stepper button:disabled { color: #555; cursor: not-allowed; }
.stepper span { min-width: 36px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.blocked { color: var(--color-muted); font-size: 15px; }
.notify { margin-top: 18px; padding: 18px; border: 1px dashed #444; }
.notify form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.notify input { flex: 1 1 220px; }
.desc { margin-top: 34px; color: #d6d6d6; }
.desc p { margin: 0 0 0.6em; }
.accordion { border-top: 1px solid var(--color-line); margin-top: 26px; }
.accordion details { border-bottom: 1px solid var(--color-line); }
.accordion summary { cursor: pointer; list-style: none; padding: 18px 0; display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.1em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--color-accent); font-size: 26px; line-height: 1; transition: transform 0.3s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 20px; color: #cfcfcf; font-size: 16px; }
.accordion .acc-body p { margin: 0 0 0.5em; }

/* ---------- Cart drawer ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.65); perspective: 1600px; opacity: 0; transition: opacity 0.35s; }
.cart-backdrop.open { opacity: 1; }
.cart-backdrop[hidden] { display: none; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #101010; border-left: 2px solid var(--color-accent);
  display: flex; flex-direction: column; transform-origin: right center; transform: rotateY(-35deg) translateX(110%);
  transition: transform 0.55s var(--ease-out);
}
.cart-backdrop.open .cart-panel { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--color-line); }
.cart-head h2 { font-size: 34px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid #222; }
.cart-line img { width: 76px; height: 76px; object-fit: cover; background: #1c1c1c; }
.cart-line .name { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.05; text-transform: uppercase; }
.cart-line .opts { font-size: 13px; color: var(--color-muted); }
.cart-line .warn { font-size: 13px; color: var(--color-destructive); }
.cart-line .lp { font-family: var(--font-display); font-weight: 800; font-size: 19px; text-align: right; }
.cart-line .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-line .stepper { height: 36px; }
.cart-line .stepper button { width: 32px; font-size: 18px; }
.cart-line .stepper span { font-size: 16px; min-width: 26px; }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--color-muted); text-decoration: underline; font-size: 14px; }
.text-btn:hover { color: var(--color-accent); }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid var(--color-line); background: #0c0c0c; }
.cart-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #cfcfcf; margin: 4px 0; }
.cart-row.total { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: #fff; margin: 10px 0 16px; }
.coupon { display: flex; gap: 8px; margin: 12px 0; }
.coupon input { flex: 1; min-width: 0; }
.cart-empty { padding: 50px 0; text-align: center; color: var(--color-muted); }
.cart-error { color: var(--color-destructive); font-size: 14px; margin: 8px 0; }
.cart-foot .btn { width: 100%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-big a { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.6vw, 52px); text-decoration: none; line-height: 1.1; margin-bottom: 10px; word-break: break-word; }
.contact-big a:hover { color: var(--color-accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.form .field { width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.seg-ctrl { display: inline-flex; border: 1px solid #3a3a3a; }
.seg-ctrl label { position: relative; }
.seg-ctrl input { position: absolute; opacity: 0; }
.seg-ctrl span { display: block; padding: 10px 18px; cursor: pointer; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.seg-ctrl input:checked + span { background: var(--color-accent); color: var(--color-accent-ink); }
.seg-ctrl input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---------- Prose pages ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(34px, 4vw, 56px); margin: 56px 0 20px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
@media (max-width: 800px) { .info-cards { grid-template-columns: 1fr; } }
.info-card { padding: 26px; background: var(--color-surface); border: 1px solid var(--color-line); border-left: 3px solid var(--color-accent); }
.info-card .big { font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: 1; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; perspective: 1600px; }
.svc-card { position: relative; padding: 30px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); transform-style: preserve-3d; overflow: hidden; }
.svc-card h3 { margin: 16px 0 12px; transform: translateZ(40px); }
.svc-card p { color: var(--color-muted); margin: 0; transform: translateZ(20px); }
.svc-card .svc-tags { justify-content: flex-start; transform: translateZ(30px); }
.svc-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border: 1px solid #2a2a2a; border-radius: 50%; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; } }
.feature-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-line); transform-style: preserve-3d; }
.feature-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html:not(.force-motion) [data-reveal] { transform: none !important; transition: opacity 0.7s ease !important; }
  html:not(.force-motion) .mbk .ch { transform: none !important; transition: opacity 0.5s ease !important; transition-delay: calc(var(--ci) * 18ms) !important; }
  html:not(.force-motion) h2.mbk::after { transform: none !important; opacity: 0; transition: opacity 0.6s ease 0.3s !important; }
  html:not(.force-motion) h2.mbk.in::after { opacity: 1; }
  html:not(.force-motion) .carousel-section { height: auto; }
  html:not(.force-motion) .carousel-sticky { position: relative; height: auto; }
  html:not(.force-motion) .pt-sheet { transform: none !important; opacity: 0; transition: opacity 0.25s ease !important; }
  html:not(.force-motion) .pt.pt-in .pt-sheet, html:not(.force-motion) .pt.pt-on .pt-sheet { opacity: 1; }
  html:not(.force-motion) .pt.pt-on .pt-sheet { transition: none !important; }
  html:not(.force-motion) .pt-edge, html:not(.force-motion) .pt-trail { display: none; }
  html:not(.force-motion) .pt.pt-in .pt-mark { transition: opacity 0.2s ease 0.05s !important; }
  html:not(.force-motion) .pt.pt-out .pt-mark { transform: translate(-50%, -50%); transition: opacity 0.2s ease !important; }
  html:not(.force-motion) body.pt-leaving .page-main { transform: none; }
}
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--color-accent); color: var(--color-accent-ink); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Matte finish ---------- */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 260; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Social links ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #3a3a3a; color: #fff; text-decoration: none; transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out); }
.social a:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.cta-band .social a { border-color: rgba(0,0,0,0.35); color: #111; }
.cta-band .social a:hover { border-color: #111; color: #111; background: rgba(0,0,0,0.08); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-story p { font-size: clamp(18px, 1.5vw, 21px); color: #dcdcdc; }
.about-story p:first-child::first-letter { font-family: var(--font-display); font-weight: 900; font-size: 4.2em; float: left; line-height: 0.8; margin: 6px 12px 0 0; color: var(--color-accent); }
.stat-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(120px, 18vw, 260px); line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--color-accent); }
.stat-label { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #ddd; margin-top: 10px; }
.about-teaser { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
@media (max-width: 700px) { .about-teaser { grid-template-columns: 1fr; } }
.remote-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--color-accent); color: var(--color-accent); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; }
.remote-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px rgba(255,122,0,0.2); }

/* ---------- Legal ---------- */
.prose h3 { font-size: 26px; margin: 34px 0 12px; }
.prose a { color: var(--color-accent); }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.prose th { font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); font-size: 14px; }
.lang-alt { margin-top: 70px; border-top: 1px solid var(--color-line); padding-top: 24px; }
.lang-alt > summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }

/* ---------- Footer, four columns ---------- */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Services: 3D car explorer ---------- */
.svc-intro { padding: calc(var(--header-h) + 48px) var(--gutter) 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.svc-intro h1 { font-size: clamp(48px, 7.5vw, 120px); margin: 14px 0 0; }
.svc-intro .lead { margin: 0; max-width: 46ch; }
.car-stage { position: relative; height: clamp(520px, 80vh, 880px); margin: 0 var(--gutter); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(ellipse at 50% 62%, #24211d 0%, #151515 55%, #101010 100%); touch-action: pan-y; }
.car-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.car-stage canvas.pointing { cursor: pointer; }
.car-stage canvas.grabbing { cursor: grabbing; }
.hotspots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hotspot { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; background: rgba(18,18,18,0.88); border: 1px solid #3a3a3a; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; opacity: 0; pointer-events: none; transition: border-color 0.2s, color 0.2s, background 0.2s; will-change: transform, opacity; }
.hotspot.on { pointer-events: auto; }
.hotspot .n { display: grid; place-items: center; width: 24px; height: 24px; background: var(--color-accent); color: #111; font-weight: 900; }
.hotspot:hover, .hotspot.active { border-color: var(--color-accent); color: var(--color-accent); background: rgba(18,18,18,0.96); }
@media (max-width: 700px) { .hotspot .t { display: none; } .hotspot { padding: 3px; } }
.car-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid #3a3a3a; background: rgba(18,18,18,0.82); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; white-space: nowrap; pointer-events: none; transition: opacity 0.4s, transform 0.4s var(--ease-out); }
.car-hint::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,122,0,0.6); } 100% { box-shadow: 0 0 0 14px rgba(255,122,0,0); } }
.car-hint.hide { opacity: 0; transform: translateX(-50%) translateY(10px); }
.car-toggle { position: absolute; left: 16px; top: 16px; z-index: 3; background: rgba(18,18,18,0.8); }
.car-fallback { display: none; color: var(--color-muted); margin: 0; }
.car-stage.no-3d { height: auto; padding: 28px 24px; }
.car-stage.no-3d canvas, .car-stage.no-3d .car-hint, .car-stage.no-3d .car-toggle { display: none; }
.car-stage.no-3d .car-fallback { display: block; }
.comp-panel { position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(420px, calc(100% - 28px)); z-index: 4; overflow-y: auto; padding: 26px 26px 30px; background: rgba(16,16,16,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #333; border-top: 3px solid var(--color-accent); transform-origin: right center; transform: perspective(1200px) rotateY(-30deg) translateX(40px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.35s; }
.comp-panel.open { transform: none; opacity: 1; }
.comp-panel h2 { font-size: clamp(34px, 3.4vw, 52px); margin: 12px 0 14px; padding-right: 40px; }
.comp-panel .lead { font-size: 17px; }
.comp-panel .checklist { margin-bottom: 22px; }
.comp-panel .checklist li { font-size: 16px; padding: 9px 0 9px 26px; }
.comp-panel .checklist li::before { top: 19px; }
.comp-close { position: absolute; right: 10px; top: 12px; }
.comp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
@media (max-width: 700px) {
  .car-stage { height: 72vh; min-height: 460px; }
  .comp-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72vh; z-index: 160; transform: translateY(100%); transform-origin: bottom center; border-left: 0; border-right: 0; }
  .comp-panel.open { transform: none; }
}
.comp-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; perspective: 1200px; }
.comp-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--color-surface); border: 1px solid var(--color-line); color: #fff; cursor: pointer; text-align: left; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; transition: border-color 0.2s, transform 0.25s var(--ease-out); }
.comp-chip:hover, .comp-chip[aria-pressed="true"] { border-color: var(--color-accent); transform: translateY(-2px); }
.comp-chip .n { color: var(--color-accent); font-size: 15px; }

/* ---------- Kinetic headings ---------- */
.mbk[data-reveal] { opacity: 1; transform: none; }
.mbk .w { display: inline-block; white-space: nowrap; perspective: 700px; }
.mbk .ch { display: inline-block; opacity: 0; transform: translateY(0.55em) rotateX(-95deg); transform-origin: 50% 90%; transition: transform 0.8s var(--ease-out), opacity 0.45s ease; transition-delay: calc(var(--ci) * 24ms); }
.mbk.in .ch { opacity: 1; transform: none; }
h2.mbk::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 18px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out) 0.35s; }
h2.mbk.in::after { transform: scaleX(1); }
.cta-band h2.mbk::after { background: #111; }
.vat-note { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }

/* ---------- Cookie banner ---------- */
.cc { position: fixed; left: 16px; bottom: 16px; z-index: 140; width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 22px 20px; background: rgba(14, 14, 14, 0.97); border: 1px solid #333; border-top: 3px solid var(--color-accent); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(24px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.35s; }
.cc.show { transform: none; opacity: 1; }
.cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-right: 30px; }
.cc-icon { width: 30px; height: 30px; color: #fff; flex: none; }
.cc h2 { font-size: 28px; margin: 0; }
.cc p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: #cfcfcf; }
.cc p a { color: var(--color-accent); }
.cc-x { position: absolute; right: 8px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: #bbb; cursor: pointer; }
.cc-x:hover { color: var(--color-accent); }
.cc-prefs { display: grid; margin: 0 0 16px; border-top: 1px solid var(--color-line); }
.cc-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-line); cursor: pointer; }
.cc-row b { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 16px; }
.cc-row small { display: block; color: var(--color-muted); font-size: 13.5px; line-height: 1.4; }
.cc-row input { position: absolute; right: 0; top: 50%; width: 44px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
.cc-row input:disabled { cursor: not-allowed; }
.cc-switch { position: relative; flex: none; width: 44px; height: 24px; border-radius: 12px; background: #353535; transition: background 0.2s; pointer-events: none; }
.cc-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease-out); }
.cc-row input:checked + .cc-switch { background: var(--color-accent); }
.cc-row input:checked + .cc-switch::after { transform: translateX(20px); }
.cc-row input:disabled + .cc-switch { opacity: 0.55; }
.cc-row input:focus-visible + .cc-switch { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cc-btn { flex: 1 1 130px; background: var(--color-accent); color: var(--color-accent-ink); }
.cc-btn:hover { background: #ff9433; transform: translateY(-2px); }
.cc-more { flex: 1 0 100%; text-align: center; padding: 6px 0; font-size: 14.5px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #d0d0d0; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--color-accent); }
@media (max-width: 560px) {
  .cc { left: 0; right: 0; bottom: 0; width: auto; max-height: 85vh; border-left: 0; border-right: 0; padding: 18px 16px 16px; }
}

/* ---------- Shop: categories first ---------- */
.shop-bar.is-landing .chips, .shop-bar.is-landing #sort, .shop-bar.is-landing .check { display: none; }
.shop-bar.is-landing .shop-tools { margin-left: 0; flex: 1 1 auto; }
.shop-bar.is-landing #q { width: min(100%, 460px); }
.shop-bar .chip-back { color: var(--color-accent); border-color: var(--color-accent); }
.shop-bar .chip-back:hover { background: var(--color-accent-soft); }
.cat-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 30px; }
.cat-intro h2 { font-size: clamp(36px, 4.6vw, 64px); }
.cat-intro .lead { margin: 0; max-width: 46ch; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; perspective: 1600px; }
@media (max-width: 820px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 42%; min-height: 270px; background: var(--color-surface); border: 1px solid var(--color-line); color: inherit; text-decoration: none; overflow: hidden; transform-style: preserve-3d; transition: border-color 0.3s, transform 0.5s var(--ease-out), background 0.3s; }
.cat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 2; background: var(--color-accent); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out); }
.cat-card:hover, .cat-card:focus-visible { border-color: #4a4a4a; background: #1d1d1d; }
.cat-card:hover::before, .cat-card:focus-visible::before { transform: scaleY(1); }
.cat-num { position: absolute; left: 22px; top: 6px; font-family: var(--font-display); font-weight: 900; font-size: 96px; line-height: 1; color: transparent; -webkit-text-stroke: 1px #3a3a3a; pointer-events: none; transition: -webkit-text-stroke-color 0.3s; }
.cat-card:hover .cat-num { -webkit-text-stroke-color: var(--color-accent); }
.cat-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 100px 20px 22px 26px; transform: translateZ(30px); }
.cat-body h3 { font-size: clamp(26px, 2.5vw, 36px); }
.cat-body p { margin: 0; color: var(--color-muted); font-size: 15.5px; line-height: 1.5; }
.cat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 14px; }
.cat-count { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; color: var(--color-muted); }
.cat-go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 16px; color: var(--color-accent); white-space: nowrap; }
.cat-go svg { transition: transform 0.3s var(--ease-out); }
.cat-card:hover .cat-go svg { transform: translateX(6px); }
.cat-media { position: relative; perspective: 900px; }
.cat-media::before { content: ""; position: absolute; inset: 14% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 122, 0, 0.2), transparent); opacity: 0.6; transition: opacity 0.4s; }
.cat-card:hover .cat-media::before { opacity: 1; }
.cat-media img { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; object-fit: cover; background: #1e1e1e; border: 1px solid #333; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); z-index: calc(3 - var(--k)); opacity: 0; transform: translate(-50%, -50%) translateX(calc(-16% + var(--k) * 24%)) rotateY(-18deg) scale(calc(1 - var(--k) * 0.09)); transition: transform 0.6s var(--ease-out); animation: cat-img-in 0.6s var(--ease-out) forwards; animation-delay: calc(var(--k) * 90ms); }
.cat-card:hover .cat-media img { transform: translate(-50%, -50%) translateX(calc(-26% + var(--k) * 33%)) rotateY(-6deg) scale(calc(1.04 - var(--k) * 0.09)); }
@keyframes cat-img-in { to { opacity: 1; } }
.cat-all { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 0; padding: 24px 28px; }
.cat-all .cat-body { padding: 0; transform: none; }
.cat-all .cat-go { font-size: 18px; }
.cat-card.skel { pointer-events: none; }
.skel-line { display: block; height: 14px; max-width: 100%; background: linear-gradient(90deg, #1f1f1f, #2b2b2b, #1f1f1f); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.cat-head { margin-bottom: 18px; }
.cat-head h2 { font-size: clamp(34px, 4.2vw, 60px); margin-top: 12px; }
.cat-head p { margin: 10px 0 0; color: var(--color-muted); max-width: 60ch; }
@media (max-width: 560px) {
  .cat-card { grid-template-columns: minmax(0, 1fr) 38%; min-height: 220px; }
  .cat-num { font-size: 70px; left: 16px; }
  .cat-body { padding: 74px 12px 18px 18px; }
  .cat-media img { width: 80%; }
  .cat-all { padding: 20px 18px; }
}

/* ---------- StarCoding link in the menu (opens the coding platform in a new tab) ---------- */
.nav a.nav-ext { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 6px; border: 1px solid var(--color-accent); color: #fff; transition: background 0.2s, color 0.2s; }
.nav a.nav-ext:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.nav a.nav-ext svg { flex: none; }
@media (max-width: 1120px) and (min-width: 901px) {
  .nav { gap: 20px; }
  .nav a { font-size: 15px; letter-spacing: 0.09em; }
}
@media (max-width: 900px) {
  .nav a.nav-ext { border: 0; border-bottom: 1px solid #1d1d1d; padding: 10px 0; color: var(--color-accent); }
  .nav a.nav-ext:hover { background: none; color: #fff; }
  .nav a.nav-ext svg { width: 20px; height: 20px; }
}

/* ---------- StarCoding section (home) ---------- */
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .sc-grid { grid-template-columns: 1fr; } }
.sc-copy h2 { margin: 14px 0 20px; }
.sc-copy .lead { max-width: 46ch; }
.sc-points { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
@media (max-width: 560px) { .sc-points { grid-template-columns: 1fr; } }
.sc-points li { border-top: 1px solid var(--color-line); padding-top: 14px; }
.sc-points b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; color: var(--color-accent); }
.sc-points span { color: var(--color-muted); font-size: 15.5px; line-height: 1.5; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.sc-actions svg { flex: none; }
.sc-visual { position: relative; perspective: 1400px; }
.sc-visual::before { content: ""; position: absolute; inset: -12% -8%; background: radial-gradient(closest-side, rgba(255, 122, 0, 0.22), transparent 72%); pointer-events: none; }
.sc-panel { position: relative; padding: 18px 18px 14px; background: linear-gradient(160deg, #1e1f23, #121315 62%); border: 1px solid #34363b; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05); transform: rotateY(-10deg) rotateX(4deg); transition: transform 0.6s var(--ease-out); }
.sc-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #2a2c30; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.sc-bar img { width: 30px; height: 30px; }
.sc-bar em { margin-left: auto; padding: 4px 10px; border: 1px solid rgba(255, 122, 0, 0.45); border-radius: 20px; font-style: normal; font-size: 12.5px; letter-spacing: 0.12em; color: var(--color-accent); white-space: nowrap; }
.sc-model { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 14px 2px 10px; }
.sc-model b { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.sc-model small { color: var(--color-muted); font-size: 13px; }
.sc-list { position: relative; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 12px; background: #17181b; border: 1px solid #26282c; border-radius: 9px; font-size: 14.5px; transition: border-color 0.4s, background 0.4s; }
.sc-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-list em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #e6e6e6; white-space: nowrap; }
.sc-list em::after { content: " tokens"; font-size: 11px; letter-spacing: 0.1em; color: var(--color-muted); }
.sc-sw { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #33353a; transition: background 0.35s; }
.sc-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.35s var(--ease-out); }
.sc-visual.in .sc-list li:nth-child(-n+2) { border-color: rgba(255, 122, 0, 0.45); background: #1f1810; transition-delay: calc(0.9s + var(--k) * 0.7s); }
.sc-visual.in .sc-list li:nth-child(-n+2) .sc-sw { background: var(--color-accent); transition-delay: calc(0.9s + var(--k) * 0.7s); }
.sc-visual.in .sc-list li:nth-child(-n+2) .sc-sw::after { transform: translateX(16px); transition-delay: calc(0.9s + var(--k) * 0.7s); }
.sc-list::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.85), transparent); opacity: 0; pointer-events: none; }
.sc-visual.in .sc-list::after { animation: sc-scan 3.6s ease-in-out 3s infinite; }
@keyframes sc-scan {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.sc-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #2a2c30; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.sc-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--color-ok); opacity: 0; transition: opacity 0.4s 2.5s; }
.sc-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.sc-visual.in .sc-dot { opacity: 1; }
@media (max-width: 560px) {
  .sc-panel { transform: none; padding: 14px 12px 12px; }
  .sc-list li { gap: 10px; padding: 10px; font-size: 13.5px; }
  .sc-bar em { font-size: 11px; padding: 3px 8px; }
}

/* ---------- StarCoding page: VIN plate ---------- */
.vin-hero { padding-top: calc(var(--header-h) + clamp(34px, 5vw, 70px)); padding-bottom: clamp(50px, 7vw, 90px); }
.vin-hero h1 { max-width: 17ch; margin: 14px 0 18px; font-size: clamp(46px, 6.4vw, 100px); }
/* StarCoding app download, top right of the hero; its right edge lines up with the VIN plate */
.vin-head { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 40px; max-width: 1040px; }
.vin-intro > :last-child { margin-bottom: 0; }
.sc-app { display: flex; align-items: center; gap: 14px; width: 360px; padding: 14px 14px 14px 16px; background: linear-gradient(180deg, #1c1c1e, #141415); border: 1px solid #343434; border-top: 3px solid var(--color-accent); border-radius: 8px; color: #fff; text-decoration: none; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s; }
.sc-app:hover { border-color: rgba(255, 122, 0, 0.7); transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1), 0 18px 40px rgba(0, 0, 0, 0.45); }
.sc-app:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.sc-app-icon { flex: none; width: 46px; height: 46px; }
.sc-app-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sc-app-txt small { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.sc-app-txt b { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase; }
.sc-app-dl { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); transition: transform 0.25s var(--ease-out); }
.sc-app:hover .sc-app-dl { transform: translateY(3px); }
@media (max-width: 760px) {
  .vin-head { grid-template-columns: minmax(0, 1fr); }
  .sc-app { width: 100%; max-width: 420px; }
}
.vin-grid-bg { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%; pointer-events: none; background-image: linear-gradient(rgba(255, 122, 0, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 122, 0, 0.09) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: vin-grid 9s linear infinite; }
@keyframes vin-grid { to { background-position: 0 56px, 0 0; } }
.vin-form { position: relative; z-index: 1; max-width: 1040px; margin-top: clamp(26px, 4vw, 44px); }
.vin-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; }
.vin-label span { color: var(--color-muted); font-weight: 700; letter-spacing: 0.1em; }
.vin-plate { position: relative; padding: clamp(8px, 1.4vw, 16px); background: linear-gradient(180deg, #1b1b1d, #121213); border: 1px solid #343434; border-radius: 8px; cursor: text; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: border-color 0.3s, box-shadow 0.3s; overflow: hidden; }
.vin-plate:focus-within { border-color: rgba(255, 122, 0, 0.7); box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12), 0 20px 50px rgba(0, 0, 0, 0.45); }
.vin-plate::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--fill, 0) * 100%); background: linear-gradient(90deg, #ff7a00, #ffb35c); box-shadow: 0 0 14px rgba(255, 122, 0, 0.8); transition: width 0.25s var(--ease-out); }
.vin-plate.full { border-color: var(--color-accent); }
.vin-plate.bad { border-color: var(--color-destructive); animation: vin-shake 0.45s; }
.vin-plate.bad::after { background: var(--color-destructive); box-shadow: none; }
@keyframes vin-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.vin-plate input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; cursor: text; color: transparent; background: transparent; }
.vin-cells { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: clamp(3px, 0.6vw, 7px); }
.vin-cell { position: relative; display: grid; place-items: center; aspect-ratio: 0.74; background: #161617; border: 1px solid #29292b; border-radius: 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 3.1vw, 40px); color: #fff; transition: border-color 0.25s, background 0.25s, color 0.25s; }
.vin-cell.is-key { background: #1a1612; border-color: #3a2a1c; }
.vin-cell.on { border-color: #4a4a4a; animation: vin-pop 0.28s var(--ease-out); }
.vin-cell.is-key.on { border-color: rgba(255, 122, 0, 0.6); color: #ffb066; }
@keyframes vin-pop { from { transform: translateY(-30%) scale(1.25); opacity: 0; } }
.vin-cell.caret::after { content: ""; position: absolute; left: 50%; bottom: 18%; width: 46%; height: 3px; margin-left: -23%; background: var(--color-accent); animation: vin-caret 1s steps(1) infinite; }
@keyframes vin-caret { 50% { opacity: 0; } }
.vin-beam { position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.12) 40%, rgba(255, 170, 90, 0.55) 50%, rgba(255, 122, 0, 0.12) 60%, transparent); }
.vin-plate.scanning .vin-beam { animation: vin-beam 1.15s var(--ease-out) forwards; }
@keyframes vin-beam { 0% { left: -30%; opacity: 1; } 100% { left: 110%; opacity: 1; } }
.vin-plate.scanning .vin-cell { animation: vin-scan 0.5s ease-out both; animation-delay: calc(var(--k) * 45ms); }
@keyframes vin-scan { 40% { background: rgba(255, 122, 0, 0.35); border-color: #ff7a00; color: #fff; } }
.vin-plate.scanned .vin-cell.is-key { background: var(--color-accent); border-color: var(--color-accent); color: #111; box-shadow: 0 0 24px rgba(255, 122, 0, 0.55); transition-delay: 0s; }
.vin-legend { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: clamp(3px, 0.6vw, 7px); margin-top: 10px; padding: 0 clamp(8px, 1.4vw, 16px); }
.vin-legend span { grid-column: var(--a) / var(--b); padding-top: 7px; border-top: 2px solid #333; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #777; white-space: nowrap; overflow: hidden; text-overflow: clip; transition: color 0.4s, border-color 0.4s; }
.vin-legend .is-key { color: #b97a3e; border-color: #6b4422; }
.vin-plate.scanned + .vin-legend span { color: #bbb; border-color: #555; }
.vin-plate.scanned + .vin-legend .is-key { color: var(--color-accent); border-color: var(--color-accent); }
.vin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 26px; }
.vin-alt { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: #ddd; border-bottom: 2px solid #444; padding-bottom: 4px; }
.vin-alt:hover { border-color: var(--color-accent); }
.vin-msg { min-height: 1.5em; margin: 18px 0 0; font-size: 17px; color: #ddd; }
.vin-msg:empty { min-height: 0; margin: 0; }
.vin-msg.is-warn { color: #ffbf80; }
.vin-msg.is-ok { color: var(--color-ok); }
.vin-msg.is-busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--color-accent); animation: vin-caret 0.6s steps(1) infinite; }
.vin-msg a { color: var(--color-accent); }
.vin-help { display: flex; align-items: flex-start; gap: 9px; max-width: 70ch; margin: 14px 0 0; font-size: 14.5px; color: var(--color-muted); }
.vin-help svg { flex: none; margin-top: 3px; color: var(--color-ok); }
.vin-stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 14px 0; margin: clamp(40px, 6vw, 70px) 0 0; }
.vin-stats > div { padding: 0 clamp(20px, 3.5vw, 46px); border-left: 1px solid var(--color-line); }
.vin-stats > div:first-child { padding-left: 0; border-left: 0; }
.vin-stats dt { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); }
.vin-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 4.4vw, 58px); line-height: 1; color: #fff; }
.vin-stats > div:last-child dd { color: var(--color-accent); }

/* ---------- StarCoding page: result ---------- */
.scx-result { position: relative; padding: 0 var(--gutter) clamp(60px, 8vw, 110px); scroll-margin-top: calc(var(--header-h) + 10px); outline: none; }
.scx-result.show .scx-car { animation: scx-rise 0.7s var(--ease-out) both; }
@keyframes scx-rise { from { opacity: 0; transform: translateY(40px) scale(0.98); } }
.scx-car { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 20px clamp(20px, 4vw, 60px); min-height: 320px; padding: clamp(26px, 4vw, 54px); overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, 0.16), transparent 55%), linear-gradient(160deg, #1d1d1f, #141415); border: 1px solid #303030; border-top: 3px solid var(--color-accent); border-radius: 6px; }
.scx-series { position: absolute; right: -0.04em; bottom: -0.2em; font-family: var(--font-display); font-weight: 900; font-size: clamp(170px, 27vw, 400px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 122, 0, 0.22); pointer-events: none; user-select: none; }
.scx-result.show .scx-series { animation: scx-series 1.1s var(--ease-out) both 0.1s; }
@keyframes scx-series { from { opacity: 0; transform: translateX(18%); } }
.scx-car-media { position: relative; order: 2; }
.scx-car-info { position: relative; z-index: 1; }
.scx-name { margin: 14px 0 12px; font-size: clamp(46px, 6.4vw, 96px); }
.scx-name em { display: block; margin-top: 6px; font-style: normal; font-size: 0.42em; letter-spacing: 0.06em; color: var(--color-accent); }
.scx-sub { margin: 0; color: #cfcfcf; font-size: 17px; letter-spacing: 0.02em; }
.scx-kpis { display: flex; flex-wrap: wrap; gap: 12px clamp(22px, 3vw, 40px); margin: 26px 0 0; }
.scx-kpis dt { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); }
.scx-kpis dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; }
.scx-change { margin-top: 26px; background: none; border: 0; border-bottom: 2px solid #555; padding: 0 0 4px; color: #ddd; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.scx-change:hover { color: var(--color-accent); border-color: var(--color-accent); }

.scx-versions { margin: 26px 0 0; }
.scx-ask { margin: 0 0 16px; font-size: 18px; color: #ddd; }
.scx-ask b { color: #fff; }
.scx-vers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.scx-ver { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; text-align: left; color: inherit; font: inherit; cursor: pointer; background: var(--color-surface); border: 1px solid #333; border-radius: 6px; transition: border-color 0.25s, transform 0.25s var(--ease-out), background 0.25s; animation: scx-ver 0.6s var(--ease-out) both, scx-glow 2.4s ease-in-out 1s infinite; animation-delay: calc(var(--k) * 90ms + 0.3s), calc(var(--k) * 0.4s + 1s); }
.scx-ver:hover { border-color: var(--color-accent); background: #1f1810; transform: translateY(-4px); }
.scx-ver b { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 1; text-transform: uppercase; }
.scx-ver span { color: #ccc; }
.scx-ver small { color: var(--color-accent); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
@keyframes scx-ver { from { opacity: 0; transform: translateY(24px); } }
@keyframes scx-glow { 50% { box-shadow: 0 0 0 1px rgba(255, 122, 0, 0.5), 0 0 30px rgba(255, 122, 0, 0.18); } }
.scx-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #161616; border: 1px solid #303030; border-radius: 6px; }
.scx-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 16px; background: transparent; border: 0; border-radius: 4px; color: #ccc; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.25s, color 0.25s; }
.scx-seg button small { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; letter-spacing: 0; text-transform: none; color: #8a8a8a; }
.scx-seg button:hover { color: #fff; }
.scx-seg button[aria-pressed="true"] { background: var(--color-accent); color: #111; }
.scx-seg button[aria-pressed="true"] small { color: #3a2208; }

.scx-tools { position: sticky; top: var(--header-h); z-index: 20; display: grid; gap: 12px; margin: 26px calc(var(--gutter) * -1) 26px; padding: 14px var(--gutter); background: rgba(18, 18, 18, 0.93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-line); }
.scx-search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; background: #171717; border: 1px solid #333; border-radius: 6px; color: var(--color-muted); transition: border-color 0.25s; }
.scx-search:focus-within { border-color: var(--color-accent); color: var(--color-accent); }
.scx-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: #fff; font: inherit; font-size: 17px; }
.scx-search-sm { width: min(360px, 100%); height: 48px; }
.scx-mods { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.scx-mod-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: transparent; border: 1px solid #3a3a3a; border-radius: 4px; color: #ddd; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.scx-mod-chip span { padding: 1px 6px; border-radius: 3px; background: #2a2a2a; color: #bbb; font-size: 12.5px; }
.scx-mod-chip:hover { border-color: #777; }
.scx-mod-chip[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #111; }
.scx-mod-chip[aria-pressed="true"] span { background: rgba(0, 0, 0, 0.18); color: #111; }

.scx-list { columns: 2 440px; column-gap: 20px; }
.scx-mod { break-inside: avoid; margin: 0 0 20px; padding: 18px 16px 16px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 6px; animation: scx-mod 0.55s var(--ease-out) both; animation-delay: calc(var(--k) * 55ms); }
@keyframes scx-mod { from { opacity: 0; transform: translateY(26px); } }
.scx-mod header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.scx-mod h3 { font-size: 21px; line-height: 1.05; letter-spacing: 0.03em; }
.scx-mod header span { flex: none; min-width: 28px; padding: 2px 8px; border: 1px solid #3a3a3a; border-radius: 3px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--color-muted); }
.scx-mod.is-retro h3::before { content: "Retrofit"; display: inline-block; margin: 0 8px 4px 0; padding: 2px 6px; border-radius: 3px; background: rgba(255, 122, 0, 0.16); color: var(--color-accent); font-size: 12px; letter-spacing: 0.14em; vertical-align: middle; }
.scx-rows { display: grid; gap: 8px; }
.scx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; text-align: left; color: inherit; font: inherit; cursor: pointer; background: #171718; border: 1px solid #27272a; border-radius: 5px; transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out); }
.scx-row:hover { border-color: #444; transform: translateX(3px); }
.scx-row[aria-checked="true"] { background: #21180f; border-color: rgba(255, 122, 0, 0.6); }
.scx-sw { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #343438; transition: background 0.3s; }
.scx-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease-out); }
.scx-row[aria-checked="true"] .scx-sw { background: var(--color-accent); }
.scx-row[aria-checked="true"] .scx-sw::after { transform: translateX(16px); }
.scx-txt b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.scx-txt small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--color-muted); }
.scx-price { font-family: var(--font-display); font-weight: 800; font-size: 19px; white-space: nowrap; }
.scx-price.is-free { color: var(--color-ok); }
.scx-row[aria-checked="true"] .scx-price { color: var(--color-accent); animation: scx-price 0.4s var(--ease-out); }
@keyframes scx-price { 40% { transform: scale(1.3); } }
.scx-empty { padding: 30px 0; color: var(--color-muted); font-size: 17px; }
.scx-empty a { color: var(--color-accent); }
.scx-note { margin: 10px 0 0; max-width: 80ch; font-size: 14px; color: var(--color-muted); }

/* ---------- StarCoding page: all models ---------- */
.scx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.scx-card { position: relative; display: flex; flex-direction: column; min-height: 210px; padding: 16px 18px 18px; overflow: hidden; text-align: left; color: inherit; font: inherit; cursor: pointer; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 6px; transition: border-color 0.3s, transform 0.35s var(--ease-out), background 0.3s; }
.scx-grid:not(.live) .scx-card { opacity: 0; }
.scx-grid.live .scx-card { animation: scx-mod 0.5s var(--ease-out) both; animation-delay: calc(var(--k) * 35ms); }
.scx-card:hover { border-color: var(--color-accent); transform: translateY(-5px); background: #1d1915; }
.scx-card-s { position: absolute; left: 12px; top: 4px; font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #4a4a4a; transition: -webkit-text-stroke-color 0.3s; }
.scx-card:hover .scx-card-s { -webkit-text-stroke-color: var(--color-accent); }
.scx-card-img { display: block; margin: 40px 0 12px; }
.scx-card-n { margin-top: auto; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1; text-transform: uppercase; }
.scx-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 13.5px; color: var(--color-muted); }
.scx-card-meta em { font-style: normal; color: var(--color-accent); }

.scx-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.scx-way { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(24px, 3.4vw, 40px); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 6px; }
.scx-way h3 { font-size: clamp(28px, 3vw, 40px); }
.scx-way p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.scx-way .link-arrow { margin-top: auto; }
.scx-way-me { border-color: rgba(255, 122, 0, 0.45); background: radial-gradient(100% 120% at 100% 0%, rgba(255, 122, 0, 0.12), transparent 60%), var(--color-surface); }

/* ---------- StarCoding page: selection dock and receipt ---------- */
.scx-dock { position: fixed; left: 50%; bottom: 16px; z-index: 120; width: min(1120px, calc(100% - 24px)); background: rgba(20, 20, 21, 0.97); border: 1px solid #383838; border-top: 2px solid var(--color-accent); border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translate(-50%, calc(100% + 40px)); transition: transform 0.55s var(--ease-out); }
.scx-dock.open { transform: translate(-50%, 0); }
.scx-dock.bump .scx-dock-n { animation: scx-bump 0.45s var(--ease-out); }
@keyframes scx-bump { 40% { transform: scale(1.35); } }
.scx-dock-bar { display: flex; align-items: center; gap: 14px 22px; padding: 12px 14px 12px 18px; }
.scx-dock-sum { display: flex; align-items: center; gap: 12px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.scx-dock-n { display: inline-block; min-width: 1ch; font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: 1; color: var(--color-accent); }
.scx-dock-label { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.1; letter-spacing: 0.1em; text-transform: uppercase; }
.scx-dock-label small { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--color-muted); }
.scx-dock-label small::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg) translate(-2px, -2px); transition: transform 0.3s; }
.scx-dock.is-expanded .scx-dock-label small::after { transform: rotate(45deg) translate(-2px, -2px); }
.scx-dock-sum:hover small { color: var(--color-accent); }
.scx-dock-money { display: grid; justify-items: end; margin-left: auto; text-align: right; }
.scx-dock-list { font-size: 14px; color: #8a8a8a; text-decoration: line-through; }
.scx-dock-list:empty { display: none; }
.scx-dock-total { font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 1; }
.scx-dock.is-saving .scx-dock-total { color: #fff; }
.scx-dock-save { font-size: 13.5px; color: var(--color-muted); }
.scx-dock-save b { color: var(--color-ok); }
.scx-dock-save:empty { display: none; }
.scx-dock-actions { display: flex; align-items: center; gap: 10px; }
.scx-dock-clear { display: grid; place-items: center; width: 40px; height: 40px; background: transparent; border: 1px solid #3a3a3a; border-radius: 4px; color: #bbb; cursor: pointer; }
.scx-dock-clear:hover { border-color: var(--color-destructive); color: var(--color-destructive); }
.scx-receipt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px 30px; max-height: min(58vh, 560px); overflow-y: auto; padding: 20px 20px 18px; border-bottom: 1px solid #2c2c2c; animation: scx-receipt 0.4s var(--ease-out); }
.scx-receipt[hidden] { display: none; }
@keyframes scx-receipt { from { opacity: 0; transform: translateY(14px); } }
.scx-receipt-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.scx-receipt-head h3 { font-size: 24px; }
.scx-receipt-x { display: grid; place-items: center; width: 34px; height: 34px; background: transparent; border: 1px solid #3a3a3a; border-radius: 4px; color: #bbb; cursor: pointer; }
.scx-receipt-items { margin: 0; padding: 0; list-style: none; }
.scx-receipt-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #2e2e2e; }
.scx-receipt-items b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.scx-receipt-items small { display: block; font-size: 12.5px; color: var(--color-muted); }
.scx-receipt-items em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.scx-receipt-items button { display: grid; place-items: center; width: 26px; height: 26px; background: none; border: 1px solid #333; border-radius: 3px; color: #999; cursor: pointer; }
.scx-receipt-items button:hover { color: var(--color-destructive); border-color: var(--color-destructive); }
.scx-receipt-calc { display: flex; flex-direction: column; gap: 8px; }
.scx-calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 15px; color: #d6d6d6; }
.scx-calc-row b { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #fff; white-space: nowrap; }
.scx-calc-row b.is-old { color: #8a8a8a; text-decoration: line-through; }
.scx-calc-plan { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; padding: 12px 14px; border: 1px dashed rgba(255, 122, 0, 0.45); border-radius: 6px; background: rgba(255, 122, 0, 0.05); }
.scx-calc-k { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.scx-calc-total { padding-top: 6px; border-top: 1px solid #333; }
.scx-calc-total span { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.scx-calc-total b { font-size: 30px; color: var(--color-accent); }
.scx-calc-save { padding: 11px 14px; border: 1px solid rgba(74, 222, 128, 0.35); border-radius: 6px; background: rgba(74, 222, 128, 0.08); color: #c8f3d6; font-size: 15px; line-height: 1.45; }
.scx-calc-save b { color: var(--color-ok); }
.scx-calc-tip { padding: 11px 14px; border: 1px solid #333; border-radius: 6px; background: #181818; color: #cfcfcf; font-size: 14.5px; line-height: 1.5; }
.scx-calc-note { margin: 2px 0 0; font-size: 12.5px; color: #808080; }
body.has-dock .site-footer { padding-bottom: 150px; }
@media (max-width: 900px) {
  .scx-car { grid-template-columns: 1fr; }
  .scx-car-media { order: 0; }
  .scx-receipt { grid-template-columns: 1fr; }
  .scx-receipt-calc { order: 1; }
  .scx-receipt-items { order: 2; }
}
@media (max-width: 640px) {
  .vin-label { font-size: 14px; }
  .vin-legend span { font-size: 10px; letter-spacing: 0.04em; }
  .vin-stats > div { padding: 0 16px; }
  .vin-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .vin-stats > div { flex: 1 1 45%; }
  .vin-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .scx-row { gap: 12px; padding: 11px 12px 11px 10px; }
  .scx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .scx-card { min-height: 180px; padding: 12px 12px 14px; }
  .scx-card-s { font-size: 46px; }
  .scx-card-img { margin-top: 30px; }
  .scx-card-n { font-size: 19px; }
  .scx-dock { bottom: 0; width: 100%; border-radius: 10px 10px 0 0; border-left: 0; border-right: 0; }
  .scx-dock-bar { flex-wrap: wrap; padding: 10px 14px 12px; gap: 10px 14px; }
  .scx-dock-n { font-size: 38px; }
  .scx-dock-total { font-size: 30px; }
  .scx-dock-actions { flex: 1 1 100%; }
  .scx-dock-actions .btn { flex: 1; padding: 0 10px; font-size: 15px; white-space: nowrap; }
  .scx-l-full { display: none; }
  .scx-receipt { max-height: 52vh; padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .vin-grid-bg, html:not(.force-motion) .scx-ver { animation: none; }
  html:not(.force-motion) .vin-cell.on, html:not(.force-motion) .scx-mod, html:not(.force-motion) .scx-grid.live .scx-card, html:not(.force-motion) .scx-result.show .scx-car, html:not(.force-motion) .scx-result.show .scx-series, html:not(.force-motion) .scx-result.show .sil-body, html:not(.force-motion) .scx-result.show .sil-win, html:not(.force-motion) .scx-result.show .scx-sil, html:not(.force-motion) .scx-result.show .sil-wheel, html:not(.force-motion) .scx-receipt { animation: none; }
  html:not(.force-motion) .scx-dock { transition: none; }
}

/* ---------- StarCoding page: car silhouettes (line art by body style) ---------- */
.scx-sil { display: block; width: 100%; height: auto; overflow: visible; }
.scx-sil path, .scx-sil circle, .scx-sil line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sil-body { stroke: #f2f2f2; stroke-width: 2.4; fill: rgba(255, 255, 255, 0.035) !important; stroke-dasharray: 1; }
.sil-win { stroke: var(--color-accent); stroke-width: 2; fill: rgba(255, 122, 0, 0.1) !important; stroke-dasharray: 1; }
.sil-pillar { stroke: rgba(255, 122, 0, 0.7); stroke-width: 2; }
.sil-wheel circle { stroke: #f2f2f2; stroke-width: 2.4; fill: #121212 !important; }
.sil-wheel .sil-hub { stroke: var(--color-accent); stroke-width: 2; fill: none !important; }
.sil-spoke { stroke: var(--color-accent); stroke-width: 2; }
.sil-wheel { transform-box: view-box; transform-origin: var(--wx) var(--wy); }
.sil-ground { stroke: rgba(255, 122, 0, 0.55); stroke-width: 1.5; stroke-dasharray: 2 6; }
.sil-trails path { stroke: rgba(255, 122, 0, 0.6); stroke-width: 2; opacity: 0; }
.scx-car-media { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 22px rgba(255, 122, 0, 0.12)); }
.scx-car-media::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 2%; height: 18px; background: radial-gradient(closest-side, rgba(255, 122, 0, 0.35), transparent); filter: blur(4px); }
.scx-result.show .scx-car-media .scx-sil { animation: sil-drive 1.3s var(--ease-out) both 0.1s; }
.scx-result.show .scx-car-media .sil-body { animation: sil-draw 1.5s ease-out both 0.1s; }
.scx-result.show .scx-car-media .sil-win { animation: sil-draw 1s ease-out both 0.7s; }
.scx-result.show .scx-car-media .sil-wheel { animation: sil-roll 1.3s var(--ease-out) both 0.1s; }
.scx-result.show .scx-car-media .sil-trails path { animation: sil-trail 1.3s ease-out both 0.1s; }
@keyframes sil-drive { from { transform: translateX(-38%); } }
@keyframes sil-draw { from { stroke-dashoffset: 1; } }
@keyframes sil-roll { from { transform: rotate(-540deg); } }
@keyframes sil-trail { 0% { opacity: 0; transform: translateX(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-60px); } }
.scx-card-img { position: relative; z-index: 1; }
.scx-card .sil-body { stroke: #9a9a9a; stroke-width: 3; transition: stroke 0.3s; }
.scx-card .sil-win { stroke: #6b4a2c; stroke-width: 2.5; transition: stroke 0.3s; }
.scx-card .sil-wheel circle { stroke: #9a9a9a; stroke-width: 3; }
.scx-card .sil-ground { opacity: 0.4; }
.scx-card .scx-sil { transition: transform 0.5s var(--ease-out); }
.scx-card:hover .sil-body, .scx-card:focus-visible .sil-body { stroke: #fff; }
.scx-card:hover .sil-win, .scx-card:focus-visible .sil-win { stroke: var(--color-accent); }
.scx-card:hover .scx-sil { transform: translateX(6px); }
.scx-card:hover .sil-wheel { animation: sil-spin 0.7s var(--ease-out); }
@keyframes sil-spin { from { transform: rotate(-200deg); } }

/* ---------- Home: car drives in, explodes, shop parts fly out ---------- */
.blast { position: relative; }
.blast-stage { position: relative; height: clamp(260px, 32vw, 400px); transition: height 0.8s var(--ease-out); overflow: hidden; border-radius: 6px; background: radial-gradient(90% 70% at 50% 100%, rgba(255, 122, 0, 0.1), transparent 70%), linear-gradient(180deg, #121212, #171717); border: 1px solid #262626; }
.blast-road { position: absolute; left: -20%; right: -20%; bottom: -40%; height: 75%; background-image: linear-gradient(rgba(255, 122, 0, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 122, 0, 0.12) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(500px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 80%); mask-image: linear-gradient(to top, #000 15%, transparent 80%); }
.blast-road::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.6), transparent); }
.blast-lines { position: absolute; inset: 18% 0 22%; opacity: 0; background: repeating-linear-gradient(90deg, transparent 0 140px, rgba(255, 255, 255, 0.16) 140px 230px, transparent 230px 340px); background-size: 340px 100%; -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 31px); mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 31px); transition: opacity 0.4s; }
.blast.is-live:not(.is-boom):not(.is-hot) .blast-lines { opacity: 1; animation: blast-lines 0.35s linear infinite; }
@keyframes blast-lines { to { background-position: -340px 0; } }
.blast-car { position: absolute; left: 50%; bottom: 8%; width: min(560px, 78%); aspect-ratio: 400 / 140; transform: translate(calc(-50% - 200vw), 0); will-change: transform; }
.blast:not(.is-live) .blast-car { transform: translate(-50%, 0); }
.bc-whole, .bc-shard { position: absolute; inset: 0; }
.bc-shard { visibility: hidden; will-change: transform, opacity; }
.bc-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bc-svg path, .bc-svg circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bc-body { stroke: #f2f2f2; stroke-width: 2.6; fill: rgba(255, 255, 255, 0.04) !important; transition: stroke 0.3s; }
.bc-win { stroke: var(--color-accent); stroke-width: 2; fill: rgba(255, 122, 0, 0.12) !important; }
.bc-line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.bc-head { stroke: #ffe2bd; stroke-width: 1.5; fill: #fff6e8 !important; }
.bc-tail { stroke: #ff5a40; stroke-width: 1.5; fill: #b3160a !important; transition: fill 0.2s; }
.blast.is-braking .bc-tail, .blast.is-hot .bc-tail { fill: #ff2a1a !important; filter: drop-shadow(0 0 8px #ff2a1a); }
.bc-wheel circle { stroke: #f2f2f2; stroke-width: 2.6; fill: #121212 !important; }
.bc-wheel .bc-hub { stroke: var(--color-accent); stroke-width: 2; fill: none !important; }
.bc-spokes { stroke: var(--color-accent); stroke-width: 2; }
.bc-wheel { transform-box: view-box; transform-origin: var(--wx) 106px; }
.bc-beam { position: absolute; left: 93%; top: 43%; width: 46%; height: 34%; background: linear-gradient(90deg, rgba(255, 236, 200, 0.5), transparent 85%); clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%); filter: blur(2px); pointer-events: none; }
.blast-car { filter: drop-shadow(0 0 calc(var(--heat, 0) * 24px) rgba(255, 90, 0, 0.9)); }
.blast.is-hot .bc-body { stroke: #ffb066; }
.blast-flash { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: radial-gradient(circle at var(--cx, 50%) var(--cy, 60%), #fff 0, rgba(255, 210, 140, 0.9) 18%, rgba(255, 122, 0, 0.35) 45%, transparent 75%); }
.blast.is-boom .blast-flash { animation: blast-flash 0.7s ease-out; }
@keyframes blast-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.blast-ring { position: absolute; z-index: 2; left: var(--cx, 50%); top: var(--cy, 60%); width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 3px solid rgba(255, 170, 80, 0.9); box-shadow: 0 0 30px rgba(255, 122, 0, 0.8), inset 0 0 20px rgba(255, 122, 0, 0.6); opacity: 0; pointer-events: none; }
.blast.is-boom .blast-ring { animation: blast-ring 0.9s cubic-bezier(0.1, 0.7, 0.2, 1); }
.blast.is-boom .blast-ring-2 { animation-delay: 0.12s; border-width: 2px; }
@keyframes blast-ring { 0% { opacity: 1; transform: scale(0.2); } 100% { opacity: 0; transform: scale(16); } }
.blast.is-boom .blast-stage { animation: blast-shake 0.5s; }
@keyframes blast-shake { 10% { transform: translate(-9px, 5px); } 25% { transform: translate(8px, -6px); } 40% { transform: translate(-6px, 4px); } 55% { transform: translate(5px, -3px); } 70% { transform: translate(-3px, 2px); } 85% { transform: translate(2px, -1px); } }
.blast-fx { position: absolute; left: 0; top: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.blast.is-done .blast-stage { height: 110px; }
.blast-replay { position: absolute; z-index: 5; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(18, 18, 18, 0.85); border: 1px solid #3a3a3a; border-radius: 4px; color: #ddd; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; animation: scx-ver 0.5s var(--ease-out) both; }
.blast-replay:hover { border-color: var(--color-accent); color: var(--color-accent); }
.blast-replay[hidden] { display: none; }

.blast-parts { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: -34px; padding: 0 12px; }
.blast-parts > .empty { grid-column: 1 / -1; }
.blast-card { display: block; aspect-ratio: 3 / 4.3; perspective: 1000px; color: inherit; text-decoration: none; }
.blast.is-armed .blast-fly:not(.landed) { visibility: hidden; }
.blast-flip { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.75s var(--ease-out); }
.blast-card.flipped .blast-flip { transform: rotateY(180deg); }
.blast-front, .blast-back { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; border: 1px solid #333; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.blast-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px; background: radial-gradient(circle at 50% 42%, rgba(255, 122, 0, 0.28), #151515 68%); border-color: rgba(255, 122, 0, 0.5); color: var(--color-accent); text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.blast-icon { width: 52%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(255, 122, 0, 0.85)); }
.blast-front span { color: #fff; }
.blast-back { display: flex; flex-direction: column; transform: rotateY(180deg); background: var(--color-surface); transition: border-color 0.25s; }
.blast-img { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #fff; }
.blast-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.blast-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35)); }
.blast-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.blast-tag { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
.blast-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14px; line-height: 1.25; }
.blast-price { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.blast-fly.landed { animation: blast-land 0.45s var(--ease-out); }
.blast-shop .cat-intro { position: relative; z-index: 3; margin-top: 34px; }
.blast-shop .cat-grid { position: relative; z-index: 3; }
@keyframes blast-land { 30% { transform: translateY(6px) scale(1.04); } }
.blast-card.flipped:hover .blast-back { border-color: var(--color-accent); }
.blast-card.flipped:hover .blast-img img { transform: scale(1.06); }
@media (max-width: 1100px) { .blast-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .blast-stage { height: 220px; }
  .blast.is-done .blast-stage { height: 84px; }
  .blast-car { width: 86%; }
  .blast-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -20px; padding: 0 4px; }
  .blast-front { font-size: 13px; }
  .blast-info b { font-size: 13px; }
  .blast-price { font-size: 18px; }
  .blast-replay { top: 10px; right: 10px; }
}


/* ---------- Header: account button ---------- */
.acct-btn .acct-initial { display: none; }
.acct-btn.is-in svg { display: none; }
.acct-btn.is-in .acct-initial { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1; box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.22); transition: box-shadow 0.2s; }
.acct-btn.is-in:hover .acct-initial { box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.3); }
.acct-btn[aria-current="page"] { color: var(--color-accent); }

/* ---------- Sign in / create account ---------- */
.auth-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(36px, 6vw, 110px); align-items: center; min-height: 100vh; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) var(--gutter) clamp(60px, 8vw, 110px); overflow: hidden; }
.auth-intro { position: relative; z-index: 1; }
.auth-intro h1 { font-size: clamp(60px, 9vw, 150px); margin: 18px 0 22px; }
.auth-perks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; max-width: 540px; }
.auth-perks li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 16px; align-items: start; }
.auth-ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; color: var(--color-accent); background: #181818; border: 1px solid #333; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.auth-perks b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.auth-perks li > span:last-child { color: var(--color-muted); font-size: 15.5px; line-height: 1.5; }
.auth-gauge { position: absolute; z-index: 0; right: -140px; top: 50%; width: min(860px, 95vw); transform: translateY(-46%); pointer-events: none; opacity: 0.55; }
.auth-gauge path, .auth-gauge line { fill: none; }
.auth-gauge-track { stroke: #212121; stroke-width: 22; }
.auth-gauge-red { stroke: rgba(255, 122, 0, 0.32); stroke-width: 22; }
.auth-gauge-ticks line { stroke: #303030; stroke-width: 3; }
.auth-gauge-needle { transform-origin: 200px 200px; transform: rotate(-135deg); animation: auth-needle 1.7s var(--ease-out) 0.3s forwards; }
.auth-gauge-needle path { stroke: var(--color-accent); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 122, 0, 0.65)); }
.auth-gauge circle { fill: #222; stroke: var(--color-accent); stroke-width: 3; }
@keyframes auth-needle { 0% { transform: rotate(-135deg); } 55% { transform: rotate(98deg); } 100% { transform: rotate(-22deg); } }
@keyframes auth-rev { from { transform: rotate(-30deg); } to { transform: rotate(70deg); } }
@keyframes auth-red { to { transform: rotate(118deg); } }
.auth-wrap:has(.auth-card.is-busy) .auth-gauge-needle { animation: auth-rev 0.45s ease-in-out infinite alternate; }
.auth-wrap:has(.auth-card.is-done) .auth-gauge-needle { animation: auth-red 0.8s var(--ease-out) forwards; }
.auth-card { position: relative; z-index: 1; background: linear-gradient(180deg, #1b1b1b, #151515); border: 1px solid #2c2c2c; border-top: 2px solid var(--color-accent); padding: 0 30px 30px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }
.auth-card.swap .auth-form:not([hidden]), .auth-card.swap .auth-note:not([hidden]), .auth-card.swap .auth-done:not([hidden]) { animation: auth-swap 0.45s var(--ease-out); }
@keyframes auth-swap { from { opacity: 0; transform: translateY(12px); } }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 -30px 26px; border-bottom: 1px solid #2c2c2c; }
.auth-tabs button { padding: 20px 10px 18px; background: none; border: 0; cursor: pointer; color: #8a8a8a; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.auth-tabs button:hover, .auth-tabs button[aria-selected="true"] { color: #fff; }
.auth-tab-bar { position: absolute; left: 0; bottom: -1px; width: 50%; height: 2px; background: var(--color-accent); box-shadow: 0 0 12px rgba(255, 122, 0, 0.7); transition: transform 0.45s var(--ease-out); }
.auth-tabs.is-up .auth-tab-bar { transform: translateX(100%); }
.auth-form { display: grid; gap: 16px; }
.auth-form .field { width: 100%; }
.auth-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pw-wrap { position: relative; }
.pw-wrap .field { padding-right: 72px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 8px 10px; background: none; border: 0; cursor: pointer; color: var(--color-muted); font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.pw-toggle:hover { color: var(--color-accent); }
.auth-form .field-hint { margin: 6px 0 0; }
.auth-form .btn { width: 100%; margin-top: 2px; }
.auth-form .error-text { margin: 0; font-size: 15px; line-height: 1.45; }
.auth-form .error-text:empty { display: none; }
.auth-small { margin: 0; text-align: center; font-size: 14px; color: var(--color-muted); }
.auth-small a { color: var(--color-accent); }
.auth-h { padding-top: 30px; font-size: 34px; }
.auth-text { margin: 0; color: #cfcfcf; font-size: 16px; }
.auth-code { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: 0.4em; }
.auth-note, .auth-done { display: grid; justify-items: center; gap: 12px; padding: 36px 0 6px; text-align: center; }
.auth-note .auth-h, .auth-done .auth-h { padding-top: 6px; }
.auth-note-ico, .auth-done-ring { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: var(--color-accent); border: 2px solid rgba(255, 122, 0, 0.4); background: rgba(255, 122, 0, 0.08); }
.auth-done-ring { color: var(--color-ok); border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.08); animation: auth-ring 0.7s var(--ease-out); }
@keyframes auth-ring { from { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); } }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .auth-gauge { right: -40%; top: 120px; transform: none; width: 110vw; opacity: 0.35; }
  .auth-intro h1 { font-size: clamp(54px, 15vw, 96px); margin-bottom: 16px; }
  .auth-perks { margin-top: 24px; gap: 12px; }
  .auth-perks li { grid-template-columns: 40px minmax(0, 1fr); align-items: center; }
  .auth-ico { grid-row: auto; width: 40px; height: 40px; }
  .auth-perks li > span:last-child { display: none; }
  .auth-perks b { font-size: 17px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 0 18px 24px; }
  .auth-tabs { margin: 0 -18px 22px; }
  .auth-tabs button { font-size: 16px; }
  .auth-row2 { grid-template-columns: 1fr; }
}

/* ---------- My account ---------- */
.acct-hero h1 { font-size: clamp(56px, 9vw, 140px); }
.acct-hero h1 .accent { color: var(--color-accent); }
.acct-me { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; min-height: 64px; margin-top: 10px; }
.acct-skel { width: min(420px, 80%); height: 56px; background: linear-gradient(90deg, #1b1b1b, #262626, #1b1b1b); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.acct-avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-weight: 900; font-size: 32px; box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.18); }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-who { display: grid; line-height: 1.35; min-width: 0; }
.acct-who b { font-size: 19px; }
.acct-who span { color: #cfcfcf; overflow-wrap: anywhere; }
.acct-who small { color: var(--color-muted); font-size: 14px; }
.acct-gate { display: grid; gap: 22px; max-width: 720px; padding: 30px; background: #161616; border: 1px solid #2c2c2c; border-top: 2px solid var(--color-accent); }
.acct-gate .lead { margin: 0; }
.acct-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.acct-head h2 { margin-top: 12px; font-size: clamp(36px, 5vw, 64px); }
.acct-msg { margin: 0 0 14px; color: var(--color-ok); font-size: 15px; }
.acct-msg:empty { display: none; }
.acct-msg.is-bad { color: var(--color-destructive); }
.acct-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; perspective: 1200px; }
.list-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px 22px 18px; background: #171717; border: 1px solid #2c2c2c; border-top: 2px solid var(--color-accent); overflow: hidden; animation: list-in 0.6s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 70ms); transition: opacity 0.35s, transform 0.35s, border-color 0.25s; }
.list-card:hover { border-color: #3a3a3a; border-top-color: var(--color-accent); }
.list-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 0, 0.12), transparent 70%); pointer-events: none; }
@keyframes list-in { from { opacity: 0; transform: translateY(18px) rotateX(8deg); } }
.list-card.is-skel { min-height: 280px; border-top-color: #2c2c2c; background: linear-gradient(90deg, #171717, #202020, #171717); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.list-card.is-skel::after { display: none; }
.list-card.is-gone { opacity: 0; transform: scale(0.96); }
.list-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.list-series { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 0.8; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 122, 0, 0.8); }
.list-top time { font-size: 13px; color: var(--color-muted); white-space: nowrap; }
.list-card h3 { font-size: 28px; }
.list-sub { margin: 0; color: var(--color-muted); font-size: 14px; overflow-wrap: anywhere; }
.list-vin { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.05em; color: #ddd; }
.list-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.list-chips li { max-width: 100%; overflow: hidden; padding: 4px 9px; background: #1e1e1e; border: 1px solid #333; color: #ddd; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.list-chips li.is-more { color: var(--color-accent); border-color: rgba(255, 122, 0, 0.4); }
.list-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; padding-top: 12px; border-top: 1px dashed #2e2e2e; }
.list-nums dt { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }
.list-nums dd { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.1; }
.list-nums dd small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--color-ok); }
.list-actions, .list-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.list-actions .btn { padding: 0 14px; white-space: nowrap; }
.list-actions .btn-ghost { flex: 1; }
.list-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: transparent; border: 1px solid #3a3a3a; color: #bbb; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.list-icon:hover { color: var(--color-accent); border-color: var(--color-accent); }
.list-icon.is-del:hover { color: var(--color-destructive); border-color: var(--color-destructive); }
.list-confirm[hidden], .list-actions[hidden] { display: none; }
.list-confirm span { flex: 1 1 100%; font-weight: 600; }
.list-del-yes { background: var(--color-destructive); color: #111; }
.acct-empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 12px; max-width: 720px; padding: 34px; background: #151515; border: 1px dashed #3a3a3a; }
.acct-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; color: var(--color-accent); border: 1px solid rgba(255, 122, 0, 0.35); background: rgba(255, 122, 0, 0.06); }
.acct-empty h3 { font-size: 30px; }
.acct-empty p { max-width: 58ch; margin: 0; color: #cfcfcf; }
.acct-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; max-width: 720px; margin-top: 50px; padding: 20px 22px; background: #151515; border: 1px solid #2c2c2c; }
.acct-cart-ico { color: var(--color-accent); }
.acct-cart h3 { font-size: 24px; }
.acct-cart p { margin: 2px 0 0; }
.acct-cart .btn { margin-left: auto; }
@media (max-width: 480px) {
  .list-actions .l-more { display: none; }
  .acct-cart .btn { margin-left: 0; }
}

/* ---------- StarCoding dock: PDF and save ---------- */
.scx-dock-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px; background: transparent; border: 1px solid #3a3a3a; border-radius: 4px; color: #ddd; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.scx-dock-icon:hover { color: var(--color-accent); border-color: var(--color-accent); }
.scx-kept-ico, .scx-kept-l { display: none; }
.scx-dock.is-kept .scx-keep-btn { color: var(--color-ok); border-color: rgba(74, 222, 128, 0.5); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.25); }
.scx-dock.is-kept .scx-keep-ico, .scx-dock.is-kept .scx-keep-l { display: none; }
.scx-dock.is-kept .scx-kept-ico, .scx-dock.is-kept .scx-kept-l { display: inline; }
.scx-dock.is-keeping .scx-keep-btn { opacity: 0.55; pointer-events: none; }
.scx-calc-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.scx-calc-acts .btn { flex: 1 1 200px; gap: 8px; }
.scx-pop { position: absolute; left: 14px; right: 14px; bottom: calc(100% + 10px); display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 18px; background: #1d1d1d; border: 1px solid #3a3a3a; border-left: 3px solid var(--color-accent); border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); color: #e5e5e5; font-size: 15px; line-height: 1.45; }
.scx-pop.in { animation: scx-pop 0.4s var(--ease-out); }
@keyframes scx-pop { from { opacity: 0; transform: translateY(10px); } }
.scx-pop-body { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.scx-pop-body p { flex: 1 1 260px; margin: 0; }
.scx-pop a:not(.btn) { color: var(--color-accent); }
.scx-pop-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.scx-pop-x { display: grid; place-items: center; width: 28px; height: 28px; flex: none; background: none; border: 1px solid #3a3a3a; border-radius: 3px; color: #aaa; cursor: pointer; }
.scx-pop-x:hover { color: #fff; border-color: #666; }
.scx-pop-spin { width: 16px; height: 16px; flex: none; border: 2px solid rgba(255, 122, 0, 0.3); border-top-color: var(--color-accent); border-radius: 50%; animation: mb-spin 0.8s linear infinite; }
@keyframes mb-spin { to { transform: rotate(360deg); } }
.scx-pop-ok { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; background: var(--color-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23111' stroke-width='3.2'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* Buy tokens on StarCoding (receipt) and the account note */
.scx-buy { display: grid; gap: 8px; margin-top: 6px; padding: 12px 14px; border: 1px solid #333; border-left: 3px solid var(--color-accent); border-radius: 6px; background: #181818; }
.scx-buy .btn { width: 100%; gap: 8px; }
.scx-buy p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #bdbdbd; }
.scx-buy p a { color: var(--color-accent); }
.scx-way-links { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: auto; }
.scx-way .scx-way-links .link-arrow { margin-top: 0; }
@media (max-width: 640px) {
  .scx-dock-icon { width: 40px; flex: none; padding: 0; }
  .scx-dock-icon span { display: none; }
  .scx-pop { left: 8px; right: 8px; }
}

/* ---------- Contact form: attached coding list ---------- */
.attach { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 16px; background: #161616; border: 1px solid #333; border-left: 3px solid var(--color-accent); }
.attach-ico { position: relative; display: grid; place-items: center; width: 46px; height: 54px; color: var(--color-accent); }
.attach-ico b { position: absolute; bottom: 5px; padding: 0 4px; background: var(--color-accent); color: #111; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; }
.attach-txt { display: grid; min-width: 0; }
.attach-txt .field-label { margin: 0 0 2px; font-size: 12.5px; color: var(--color-accent); }
.attach-txt b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.attach-txt small { color: var(--color-muted); font-size: 13.5px; }
.attach-acts { display: flex; align-items: center; gap: 14px; }
.attach-x { display: grid; place-items: center; width: 30px; height: 30px; background: none; border: 1px solid #3a3a3a; border-radius: 3px; color: #aaa; cursor: pointer; }
.attach-x:hover { color: var(--color-destructive); border-color: var(--color-destructive); }
.attach-note { grid-column: 1 / -1; margin: 8px 0 0; color: #bdbdbd; font-size: 14px; }
.attach-note.is-bad { color: var(--color-destructive); }
.attach-off { grid-column: 1 / -1; margin: 0; color: var(--color-muted); font-size: 14.5px; }
@media (max-width: 480px) {
  .attach { grid-template-columns: auto minmax(0, 1fr); }
  .attach-acts { grid-column: 1 / -1; justify-content: flex-end; }
}

/* StarCoding dock: the action buttons take their own row until the bar is wide enough */
.scx-dock-actions .btn { white-space: nowrap; }
@media (max-width: 1180px) {
  .scx-dock-bar { flex-wrap: wrap; }
  .scx-dock-actions { flex: 1 1 100%; }
  .scx-dock-actions .btn { flex: 1; }
}
/* Header on small phones: three icons and the brand on one line */
@media (max-width: 420px) {
  .site-header { gap: 10px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 40px; }
  .brand-text { white-space: nowrap; }
}

/* ---------- Affiliations page ---------- */
.aff-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.aff-hero h1 { font-size: clamp(56px, 8.2vw, 132px); }
.aff-hero .lead { margin-bottom: 34px; }
.aff-pass-wrap { display: grid; justify-items: center; }
.aff-pass-float { width: min(100%, 430px); perspective: 1100px; animation: aff-float 7s ease-in-out infinite; }
@keyframes aff-float { 0%, 100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }
.aff-pass {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-height: 290px; padding: 22px 24px 18px;
  border: 1px solid #3a3a3a; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,122,0,0.3), transparent 55%), linear-gradient(150deg, #282828, #151515 55%, #0c0c0c);
  box-shadow: 0 34px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.6s var(--ease-out);
}
.aff-pass::before { content: ""; position: absolute; right: -70px; top: -70px; z-index: -1; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 0 0 26px rgba(255,255,255,0.02), 0 0 0 27px rgba(255,255,255,0.05); }
.aff-pass::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--color-accent) 0 10px, #1a1a1a 10px 20px); }
.aff-pass-top { display: flex; align-items: center; gap: 10px; }
.aff-pass-mark { width: 30px; height: 30px; flex: none; }
.aff-pass-brand { font-family: var(--font-display); font-weight: 900; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 0.9; }
.aff-pass-brand small { display: block; font-size: 9px; letter-spacing: 0.32em; color: var(--color-accent); margin-top: 2px; }
.aff-pass-chip { margin-left: auto; padding: 4px 10px 3px; border: 1px solid var(--color-accent); color: var(--color-accent); font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.aff-pass-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 5vw, 64px); line-height: 0.85; text-transform: uppercase; letter-spacing: 0.01em; }
.aff-pass-title span { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.3em; color: var(--color-accent); }
.aff-pass-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; align-content: end; font-size: 13.5px; font-weight: 600; color: #d6d6d6; }
.aff-pass-list li { display: flex; align-items: center; gap: 9px; }
.aff-pass-list img { width: 16px; height: 16px; flex: none; }
.aff-pass-list i { width: 16px; height: 2px; flex: none; background: var(--color-accent); }
.aff-pass-foot { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 8px; border-top: 1px dashed #3a3a3a; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); }
.aff-pass-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,0.16), transparent 45%); }
.aff-pass.tilting .aff-pass-shine { opacity: 1; }

.aff-bento { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 20px; }
.aff-b-main { grid-row: span 2; }
.aff-b-in { position: relative; height: 100%; padding: 30px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; }
.aff-b-in::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,122,0,0.16), transparent 55%); opacity: 0; transition: opacity 0.3s; }
.aff-b-in:hover::before { opacity: 1; }
.aff-b-in:hover { border-color: #3d3d3d; }
.aff-b h3 { position: relative; margin: 18px 0 12px; }
.aff-b p { position: relative; color: var(--color-muted); margin: 0; }
.aff-b p a { color: var(--color-accent); }
.aff-ico { width: 46px; height: 46px; color: var(--color-accent); }
.aff-b-main .aff-b-in { display: flex; flex-direction: column; padding: clamp(30px, 3.4vw, 46px); background: linear-gradient(150deg, #2b1806, #161007 60%); border-color: #4d2d0e; }
.aff-b-main .aff-b-in:hover { border-color: #6a3d12; }
.aff-b-main h3 { font-size: clamp(34px, 3.4vw, 54px); margin-top: auto; }
.aff-b-main p { color: #d4c8bc; font-size: 18px; }
.aff-b-tag { position: relative; align-self: flex-start; padding: 6px 12px 5px; background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.aff-b-main p.aff-note { margin-top: 20px; padding: 12px 14px; border-left: 3px solid var(--color-accent); background: rgba(0,0,0,0.3); font-size: 15px; line-height: 1.5; color: #e4dad0; }
.aff-tokens { position: relative; display: flex; margin: 40px 0 34px; perspective: 600px; }
.aff-coin { display: grid; place-items: center; width: 78px; height: 78px; margin-right: -16px; border-radius: 50%; border: 2px solid var(--color-accent); background: radial-gradient(circle at 35% 30%, #3b3b3b, #151515 70%); box-shadow: 0 12px 26px rgba(0,0,0,0.5), inset 0 0 0 6px #121212, inset 0 0 0 7px rgba(255,122,0,0.45); animation: aff-coin 3.6s var(--ease-out) infinite; }
.aff-coin:nth-child(2) { animation-delay: 0.22s; }
.aff-coin:nth-child(3) { animation-delay: 0.44s; }
@keyframes aff-coin { 0% { transform: none; } 30% { transform: translateY(-14px) rotateY(180deg); } 60%, 100% { transform: translateY(0) rotateY(360deg); } }
@media (max-width: 1000px) {
  .aff-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aff-b-main { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 900px) {
  .aff-hero-grid { grid-template-columns: 1fr; }
  .aff-pass-wrap { justify-items: start; }
}
@media (max-width: 600px) {
  .aff-bento { grid-template-columns: 1fr; }
  .aff-pass { min-height: 0; padding: 18px 18px 14px; gap: 9px; }
  .aff-pass-list { font-size: 12.5px; gap: 3px; }
  .aff-coin { width: 64px; height: 64px; }
  .aff-coin img { width: 32px; height: 32px; }
}
/* Contact form: the "You are" switch wraps on narrow screens (three choices) */
.seg-ctrl { flex-wrap: wrap; }
@media (max-width: 480px) { .seg-ctrl span { padding: 10px 13px; } }
/* Menu with seven items: a little tighter just above the burger breakpoint */
@media (max-width: 1000px) and (min-width: 901px) {
  .nav { gap: 15px; }
  .nav a { letter-spacing: 0.07em; }
  .brand-text { white-space: nowrap; }
}

/* ---------- Order on request (sold-out parts, 50% deposit) ---------- */
.chip[data-out] { border-style: dashed; color: #9c9c9c; }
.chip[data-out][aria-pressed="true"] { color: var(--color-accent-ink); border-style: solid; }
.buy-row.is-request .stepper, .buy-row.is-request #addbtn { display: none; }
.tile-req { white-space: nowrap; }
.req { margin: 6px 0 22px; padding: 22px 22px 18px; border: 1px solid #333; border-left: 3px solid var(--color-accent); background: #171717; }
.req-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.req-head h3 { font-size: clamp(26px, 2.4vw, 32px); }
.req-steps { list-style: none; counter-reset: rq; display: grid; gap: 8px; margin: 14px 0 18px; padding: 0; font-size: 15px; line-height: 1.45; color: #cfcfcf; }
.req-steps li { counter-increment: rq; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.req-steps li::before { content: counter(rq); display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-weight: 900; font-size: 14px; }
.req-sum { margin-bottom: 20px; border-top: 1px solid #2a2a2a; }
.req-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #2a2a2a; font-size: 15px; }
.req-row > span:first-child { color: var(--color-muted); }
.req-row > b { font-weight: 600; text-align: right; }
.req-row > b small { display: block; font-weight: 500; font-size: 13px; color: var(--color-muted); }
.req-row.dep { color: var(--color-accent); }
.req-row.dep > span:first-child { color: var(--color-accent); font-weight: 600; }
.req-row.dep > b { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1; }
.req-qty { display: inline-flex; align-items: center; border: 1px solid #3a3a3a; }
.req-qty button { width: 34px; height: 34px; background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
.req-qty button:disabled { color: #555; cursor: not-allowed; }
.req-qty b { min-width: 30px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.req-warn { margin: 12px 0 0; color: var(--color-accent); font-size: 15px; }
.req-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--color-muted); }
.req-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req-form .full { grid-column: 1 / -1; }
.req-form .field { width: 100%; }
.req-form textarea { min-height: 90px; resize: vertical; }
.req-form .check { align-items: flex-start; font-size: 14px; line-height: 1.45; }
.req-form .check input { flex: none; margin-top: 1px; }
.req-form .check a, .req-small a { color: var(--color-accent); }
.req-form .form-actions { gap: 16px 22px; }
.req-small { margin: 0; font-size: 13px; }
.req-done { margin: 14px 0 0; padding: 12px 14px; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.35); color: #cfeedd; font-size: 14.5px; }
@media (max-width: 560px) {
  .req { padding: 18px 14px 14px; }
  .req-form { grid-template-columns: 1fr; }
  .req-row.dep > b { font-size: 24px; }
}

/* ---------- StarCoding page: version from the VIN, most requested, our services ---------- */
.scx-est { margin: 0 0 12px; max-width: 70ch; font-size: 15.5px; color: #d6d6d6; }
.scx-est b { color: var(--color-accent); font-weight: 600; }
.scx-hot { display: inline-block; margin-left: 6px; padding: 1px 6px 0; border-radius: 3px; background: var(--color-accent-soft); color: var(--color-accent); font-family: var(--font-display); font-weight: 800; font-size: 11.5px; line-height: 1.55; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.scx-mod-chip.is-hot, .scx-mod-chip.is-ours { border-color: rgba(255, 122, 0, 0.55); color: var(--color-accent); }
.scx-mod-chip.is-hot[aria-pressed="true"], .scx-mod-chip.is-ours[aria-pressed="true"] { color: #111; }
.scx-hot-note { margin: 0 0 16px; font-size: 15px; color: var(--color-muted); }
.scx-mod.is-ours { border-color: rgba(255, 122, 0, 0.42); background: linear-gradient(180deg, #1f1810 0%, var(--color-surface) 120px); }
.scx-mod.is-ours h3::before { content: "Ours"; display: inline-block; margin: 0 8px 4px 0; padding: 2px 6px; border-radius: 3px; background: var(--color-accent); color: #111; font-size: 12px; letter-spacing: 0.14em; vertical-align: middle; }
.scx-ours-note { margin: -4px 2px 12px; font-size: 14px; line-height: 1.45; color: var(--color-muted); }

/* ---------- StarCoding video tutorials ---------- */
.scx-vids { padding-top: 0; scroll-margin-top: calc(var(--header-h) + 28px); }
.link-arrow.is-down:hover svg { transform: translateY(3px); }
.vid-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); grid-template-areas: "stage list" "steps list"; gap: 26px clamp(20px, 3vw, 44px); align-items: start; }
.vid-stage { grid-area: stage; min-width: 0; }
.vid-list { grid-area: list; position: sticky; top: calc(var(--header-h) + 20px); }
.vid-chapters { grid-area: steps; min-width: 0; }
.vid-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0b; border: 1px solid var(--color-line); border-radius: 6px; box-shadow: 0 40px 90px -40px rgba(255, 122, 0, 0.35); }
.vid-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-poster { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left; color: var(--color-text); background: radial-gradient(70% 100% at 88% 0%, rgba(255, 122, 0, 0.22), transparent 62%), linear-gradient(rgba(255, 122, 0, 0.055) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255, 122, 0, 0.055) 1px, transparent 1px) 0 0 / 44px 44px, #131313; }
.vid-poster[hidden] { display: none; }
.vid-win { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(0, 0, 0, 0.4); border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; color: #bdbdbd; }
.vid-win i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.vid-win i:first-child { background: var(--color-accent); }
.vid-win b { margin-left: 8px; font-weight: 600; color: #e6e6e6; }
.vid-win span { margin-left: auto; color: #8a8a8a; }
.vid-poster-body { align-self: end; display: grid; justify-items: start; gap: 12px; padding: 0 calc(clamp(64px, 8vw, 96px) + clamp(36px, 6vw, 72px)) 0 clamp(18px, 4vw, 44px); }
.vid-poster-n { font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 8vw, 120px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 122, 0, 0.75); }
.vid-poster-t { max-width: 20ch; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3.1vw, 46px); line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.vid-poster-meta { font-size: 15px; color: #bdbdbd; }
.vid-play { position: absolute; right: clamp(18px, 4vw, 44px); top: 50%; display: grid; place-items: center; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; padding-left: 4px; background: var(--color-accent); color: #111; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transform: translateY(-50%); transition: transform 0.3s var(--ease-out), background 0.2s; }
.vid-poster:hover .vid-play, .vid-poster:focus-visible .vid-play { background: #ff9433; transform: translateY(-50%) scale(1.07); }
.vid-poster:focus-visible { outline-offset: -4px; }
.vid-scrub { position: relative; height: 3px; margin: clamp(16px, 2.4vw, 28px) clamp(18px, 4vw, 44px) clamp(16px, 2.4vw, 26px); background: #333; }
.vid-scrub i { position: absolute; left: var(--x); top: -4px; width: 2px; height: 11px; background: var(--color-accent); }
.vid-note { margin: 12px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--color-muted); }
.vid-note a { color: inherit; }
.vid-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vid-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 18px 18px 20px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 6px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.vid-item:hover { border-color: #555; }
.vid-item[aria-current="true"] { border-color: rgba(255, 122, 0, 0.6); background: linear-gradient(90deg, rgba(255, 122, 0, 0.13), transparent 75%), var(--color-surface); box-shadow: inset 3px 0 0 var(--color-accent); }
.vid-item-n { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 0.9; color: #555; transition: color 0.2s; }
.vid-item[aria-current="true"] .vid-item-n { color: var(--color-accent); }
.vid-item b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.vid-item small { display: block; margin-top: 7px; font-size: 14.5px; line-height: 1.4; color: var(--color-muted); }
.vid-chapters h3 { margin-bottom: 14px; font-size: 24px; }
.vid-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.vid-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; width: 100%; height: 100%; padding: 11px 10px 11px 6px; background: none; border: 0; border-top: 1px solid var(--color-line); color: #cfcfcf; font-size: 15px; line-height: 1.45; text-align: left; cursor: pointer; transition: background 0.2s, color 0.2s; }
.vid-step time { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.2; letter-spacing: 0.04em; color: var(--color-accent); }
.vid-step b { font-weight: 600; color: #fff; }
.vid-step:hover, .vid-step[aria-current="true"] { background: rgba(255, 122, 0, 0.08); color: #fff; }
.vid-tip { margin: 16px 0 0; padding: 12px 16px; background: #181818; border-left: 3px solid var(--color-accent); font-size: 14.5px; line-height: 1.55; color: #cfcfcf; }
.vid-tip.is-warn { border-left-color: var(--color-destructive); }
@media (max-width: 900px) {
  .vid-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "list" "steps"; }
  .vid-list { position: static; }
}
@media (max-width: 560px) {
  .vid-win span, .vid-poster-n { display: none; }
  .vid-poster-body { gap: 6px; padding-right: 96px; }
  .vid-poster-t { font-size: 21px; }
  .vid-poster-meta { font-size: 13.5px; }
  .vid-play { width: 58px; }
  .vid-item { padding: 15px 14px 15px 16px; gap: 12px; }
  .vid-item b { font-size: 19px; }
}

/* StarCoding: the coding lists are generic for the model */
.scx-generic { display: flex; align-items: flex-start; gap: 10px; max-width: 80ch; margin: -8px 0 18px; padding: 10px 14px; background: #181818; border-left: 3px solid var(--color-accent); font-size: 14px; line-height: 1.5; color: #cfcfcf; }
.scx-generic svg { flex: none; margin-top: 2px; color: var(--color-accent); }

/* StarCoding VIN plate demo: a sample VIN types itself while the field is empty */
.vin-label .vin-demo-tag { display: inline-flex; align-items: center; gap: 7px; margin: 0 14px 0 auto; padding: 2px 9px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent); font-size: 12px; letter-spacing: 0.12em; opacity: 0; transition: opacity 0.4s; }
.vin-label .vin-demo-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: vin-caret 1s steps(1) infinite; }
.vin-form.is-demo .vin-demo-tag { opacity: 1; }
.vin-cell.ghost { color: rgba(255, 255, 255, 0.36); border-color: #333; animation: vin-ghost 0.22s var(--ease-out); }
.vin-cell.is-key.ghost { color: rgba(255, 176, 102, 0.6); border-color: rgba(255, 122, 0, 0.32); }
.vin-form.is-demo .vin-plate::after { opacity: 0.45; }
.vin-plate.demo-full { border-color: rgba(255, 122, 0, 0.38); }
@keyframes vin-ghost { from { transform: translateY(5px); opacity: 0; } }
@media (max-width: 640px) {
  .vin-form.is-demo .vin-label > span:last-child { display: none; }
  .vin-label .vin-demo-tag { margin-right: 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .vin-cell.ghost, html:not(.force-motion) .vin-label .vin-demo-tag::before { animation: none; }
}

/* ---------- Thank-you page (after checkout) ---------- */
.ty-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.ty-head { position: relative; display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.ty-check { flex: none; width: clamp(84px, 12vw, 128px); }
.ty-check svg { display: block; width: 100%; height: auto; }
.ty-ring { fill: rgba(255, 122, 0, 0.1); stroke: var(--color-accent); stroke-width: 6; stroke-dasharray: 327; stroke-dashoffset: 327; animation: ty-draw 0.9s var(--ease-out) 0.25s forwards; }
.ty-tick { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: ty-draw 0.5s var(--ease-out) 1s forwards; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
.ty-intro h1 { margin: 12px 0 18px; }
.ty-intro .lead { margin: 0; }
.ty-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 10px; }
.ty-order[hidden] { display: none; }
.ty-order[hidden] + .ty-next { grid-column: 1 / -1; max-width: 760px; }
.ty-card { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); background: var(--color-surface); border: 1px solid var(--color-line); border-top: 3px solid var(--color-accent); border-radius: 6px; }
.ty-card.is-loading { gap: 14px; }
.ty-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.ty-card-head b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: 0.02em; }
.ty-label { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }
.ty-status { margin-left: auto; padding: 5px 12px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.ty-status.is-paid { background: rgba(74, 222, 128, 0.12); color: var(--color-ok); }
.ty-status.is-pending { background: var(--color-accent-soft); color: var(--color-accent); }
.ty-items { display: grid; gap: 12px; margin: 0; padding: 16px 0; list-style: none; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.ty-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ty-item img, .ty-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: #222; }
.ty-item-txt b { display: block; font-weight: 600; }
.ty-item-txt small { display: block; font-size: 14px; color: var(--color-muted); }
.ty-item-total { font-weight: 600; white-space: nowrap; }
.ty-sum { display: grid; gap: 8px; margin: 0; }
.ty-sum div { display: flex; justify-content: space-between; gap: 16px; }
.ty-sum dt { color: var(--color-muted); }
.ty-sum dd { margin: 0; text-align: right; }
.ty-sum .ty-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--color-line); }
.ty-sum .ty-total dt { color: var(--color-text); font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.ty-sum .ty-total dd { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--color-accent); }
.ty-dest { margin: 0; }
.ty-next-title { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 20px; }
.ty-steps { display: grid; gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; counter-reset: ty; }
.ty-steps li { position: relative; padding-left: 52px; line-height: 1.55; color: #d9d9d9; counter-increment: ty; }
.ty-steps li::before { content: counter(ty, decimal-leading-zero); position: absolute; left: 0; top: -2px; font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--color-accent); }
.ty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
@media (max-width: 900px) {
  .ty-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ty-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ty-status { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .ty-ring, html:not(.force-motion) .ty-tick { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Language picker (js/i18n.js) ---------- */
.lang-pick { position: relative; }
.icon-btn.lang-btn { width: auto; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; }
.lang-btn[aria-expanded="true"] { color: var(--color-accent); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: #d8d8d8; text-decoration: none; font-size: 15px; line-height: 1.3; }
.lang-menu a b { width: 24px; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; color: var(--color-muted); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--color-surface-2); color: #fff; outline: none; }
.lang-menu a[aria-current="true"], .lang-menu a[aria-current="true"] b { color: var(--color-accent); }
@media (max-width: 420px) { .lang-btn svg { display: none; } .icon-btn.lang-btn { min-width: 36px; padding: 0 4px; } }

/* Cyrillic: the site's fonts have no Cyrillic letters, so Ukrainian and Russian pages add two that do
   (loaded only on those pages). Latin text keeps the site's own fonts. */
:root:lang(uk), :root:lang(ru) {
  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Fira Sans", system-ui, sans-serif;
}

/* Header menu: translated labels are longer than the English ones. Keep each label on one line and
   tighten the menu on mid-width screens so the header never overflows. */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
  .site-header { gap: 16px; }
  .nav { gap: clamp(12px, 1.5vw, 24px); }
  .nav a { font-size: 15px; letter-spacing: 0.08em; }
  .header-actions { gap: 2px; }
}
/* Ukrainian, Russian and French menus are the longest: on the narrowest desktop widths the logo
   mark stands alone and the menu tightens a little more. */
@media (min-width: 901px) and (max-width: 1100px) {
  :root:lang(uk) .brand-text, :root:lang(ru) .brand-text, :root:lang(fr) .brand-text { display: none; }
  :root:lang(uk) .nav, :root:lang(ru) .nav { gap: 12px; }
  :root:lang(uk) .nav a, :root:lang(ru) .nav a { font-size: 14px; letter-spacing: 0.05em; }
}
/* Phones: the language picker joins account, cart and menu, so the header tightens. */
@media (max-width: 420px) {
  .site-header { gap: 10px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 40px; }
  .header-actions .icon-btn.lang-btn { width: auto; min-width: 34px; padding: 0 2px; }
  .brand { gap: 8px; }
  .brand-text { font-size: 19px; }
}
@media (max-width: 345px) { .brand-text { display: none; } }
