/* Anvil R&D — v2 "console" theme. Plain CSS, no build step. */
:root {
  --bg: #06080b;
  --bg-2: #0b0f14;
  --panel: rgba(12, 17, 23, 0.86);
  --panel-solid: #0c1117;
  --line: #1c2631;
  --line-2: #2a3846;
  --text: #e3e8ee;
  --text-2: #b4bfca;
  --muted: #8796a5;
  --amber: #ffb547;
  --amber-2: #ff9a1f;
  --cyan: #3fe0ff;
  --ok: #5ef2a0;
  --glow-a: 0 0 0 1px rgba(255, 181, 71, .35), 0 0 24px rgba(255, 154, 31, .18);
  --glow-c: 0 0 0 1px rgba(63, 224, 255, .35), 0 0 24px rgba(63, 224, 255, .16);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1200px 600px at 75% -10%, rgba(63, 224, 255, .07), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(255, 154, 31, .06), transparent 60%),
              var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; position: relative; z-index: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9ff0ff; }
::selection { background: rgba(255, 181, 71, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.amber { color: var(--amber); }
.cyan { color: var(--cyan); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: #111; padding: 10px 14px; border-radius: 6px;
  font: 600 .9rem var(--mono); text-decoration: none;
}
.skip:focus { top: 12px; color: #111; }

/* ---------- Background FX ---------- */
#bg-fx {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .9;
}
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.scanlines::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%);
}

/* ---------- Status-bar nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 8, 11, .82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 700 1rem/1 var(--mono); letter-spacing: .06em;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; border-radius: 7px; box-shadow: 0 0 18px rgba(255, 154, 31, .25); }
.brand:hover { color: var(--amber); }
.prompt {
  font: 500 .82rem/1 var(--mono); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prompt .u { color: var(--ok); }
.prompt .p { color: var(--cyan); }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a {
  font: 500 .9rem/1 var(--mono); color: var(--text-2); text-decoration: none;
  padding: 10px 12px; border-radius: 6px; border: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.nav-links a::before { content: "./"; color: var(--muted); }
.nav-links a:hover { color: var(--amber); border-color: rgba(255,181,71,.3); background: rgba(255,181,71,.06); }
.nav-links a[aria-current="page"] { color: #111; background: var(--amber); border-color: var(--amber); box-shadow: 0 0 18px rgba(255,154,31,.35); }
.nav-links a[aria-current="page"]::before { color: rgba(0,0,0,.55); }
.menu-btn {
  display: none; margin-left: auto;
  background: transparent; color: var(--amber);
  border: 1px solid var(--line-2); border-radius: 6px;
  font: 600 .85rem/1 var(--mono); padding: 10px 12px; cursor: pointer;
}
.menu-btn:hover { box-shadow: var(--glow-a); }

.sysbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, .7);
  font: 500 .75rem/1 var(--mono); color: var(--muted); letter-spacing: .04em;
  position: relative; z-index: 2;
}
.sysbar .wrap { display: flex; gap: 22px; align-items: center; min-height: 30px; overflow: hidden; white-space: nowrap; }
.sysbar b { color: var(--text-2); font-weight: 500; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); margin-right: 7px; vertical-align: 1px; animation: pulse 2.4s ease-in-out infinite; }
.sysbar .right { margin-left: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-wrap: balance; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
h1 .hl { color: var(--amber); text-shadow: 0 0 28px rgba(255, 154, 31, .45); }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 62ch; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); padding: 7px 10px; border: 1px solid rgba(63,224,255,.3);
  border-radius: 999px; background: rgba(63,224,255,.06);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy > * { max-width: 100%; }
.boot {
  font: 500 .86rem/1.7 var(--mono); color: var(--muted);
  min-height: calc(1.7em * 4);
}
.boot div { white-space: pre-wrap; }
.boot .ok { color: var(--ok); }
.boot .k { color: var(--cyan); }
.boot .a { color: var(--amber); }
.cursor {
  display: inline-block; width: .6em; height: 1.1em; margin-left: 2px;
  background: var(--amber); vertical-align: -.18em; box-shadow: 0 0 10px rgba(255,154,31,.7);
  animation: blink 1.05s steps(1) infinite;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(18px, 3vw, 30px); }
.page-hero .wrap { display: grid; gap: 18px; }
.cmd { font: 500 .9rem/1.5 var(--mono); color: var(--muted); }
.cmd .u { color: var(--ok); }
.cmd .p { color: var(--cyan); }
.cmd .c { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .95rem/1 var(--mono); letter-spacing: .01em;
  padding: 15px 20px; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--b); transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--amber); color: #121212; box-shadow: 0 0 22px rgba(255,154,31,.28); }
.btn-primary:hover { color: #121212; background: #ffc56e; box-shadow: 0 0 0 1px var(--amber), 0 0 34px rgba(255,154,31,.5); transform: translateY(-1px); }
.btn-ghost { --b: rgba(63,224,255,.5); background: rgba(63,224,255,.05); color: var(--cyan); }
.btn-ghost:hover { color: #c8f7ff; box-shadow: var(--glow-c); background: rgba(63,224,255,.1); transform: translateY(-1px); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Window panels ---------- */
.win {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
}
.win-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255,255,255,.035), rgba(255,255,255,.01));
  font: 500 .78rem/1 var(--mono); color: var(--muted); letter-spacing: .03em;
}
.win-bar .lights { display: flex; gap: 6px; }
.win-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.win-bar .lights i:first-child { background: var(--amber); box-shadow: 0 0 8px rgba(255,181,71,.6); }
.win-bar .title { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-bar .meta { margin-left: auto; color: var(--muted); white-space: nowrap; }
.win-body { padding: clamp(20px, 2.6vw, 28px); }

/* Hero viz */
.viz { aspect-ratio: 1 / 0.86; }
.viz .win-body { padding: 0; position: relative; height: calc(100% - 37px); }
#viz { width: 100%; height: 100%; }
.viz-hud {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; justify-content: space-between; gap: 10px;
  font: 500 .72rem/1.4 var(--mono); color: var(--muted); pointer-events: none;
}
.viz-hud b { color: var(--cyan); font-weight: 500; }
.bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 6px; width: 140px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-2), var(--amber)); box-shadow: 0 0 10px var(--amber); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 28px; max-width: 760px; }
.section-head .idx { font: 600 .8rem/1 var(--mono); color: var(--amber); letter-spacing: .14em; }
.section-head p { color: var(--text-2); }

/* sys.info strip */
.sysinfo { display: grid; grid-template-columns: repeat(4, 1fr); }
.sysinfo > div { padding: 18px 22px; border-right: 1px solid var(--line); min-width: 0; }
.sysinfo > div:last-child { border-right: 0; }
.sysinfo small { display: block; font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.sysinfo b, .sysinfo a { font: 600 1rem/1.3 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.sysinfo a { color: var(--cyan); text-decoration: none; }
.sysinfo a:hover { text-decoration: underline; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  transition: transform .2s, box-shadow .25s, border-color .25s;
}
.card .win-body { display: grid; gap: 12px; align-content: start; flex: 1; }
.card p { color: var(--text-2); }
.card .num { font: 700 .8rem/1 var(--mono); letter-spacing: .14em; color: var(--amber); }
.card .go { margin-top: auto; padding-top: 8px; font: 600 .88rem/1 var(--mono); color: var(--cyan); }
a.card:hover, .card.hoverable:hover { transform: translateY(-3px); border-color: rgba(255,181,71,.55); box-shadow: 0 20px 60px rgba(0,0,0,.5), var(--glow-a); color: inherit; }
a.card:hover .go { text-shadow: 0 0 12px rgba(63,224,255,.7); }
.card h3 a { color: var(--cyan); text-decoration: none; overflow-wrap: anywhere; }
.card h3 a:hover { color: #9ff0ff; text-decoration: underline; }

/* Price tiers */
.price { font: 700 clamp(1.7rem, 3vw, 2.2rem)/1 var(--mono); color: var(--text); letter-spacing: -.03em; }
.price small { font-size: .55em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tier.featured { border-color: rgba(63,224,255,.45); box-shadow: 0 20px 60px rgba(0,0,0,.45), var(--glow-c); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--text-2); }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ">"; position: absolute; left: 0; color: var(--amber); font-family: var(--mono); font-weight: 700; }
.ticks li.no::before { content: "×"; color: #ff7a7a; }

/* Notice / log lines */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border: 1px dashed rgba(255,181,71,.45); border-radius: var(--radius);
  background: rgba(255,181,71,.05); color: var(--text-2);
}
.notice .lvl { font: 700 .75rem/1.9 var(--mono); color: #121212; background: var(--amber); padding: 0 8px; border-radius: 4px; letter-spacing: .1em; }
.notice strong a, .notice a { font-family: var(--mono); font-weight: 600; }

.term { font: 500 .9rem/1.8 var(--mono); color: var(--text-2); }
.term .p { color: var(--cyan); }
.term .ok { color: var(--ok); }
.term .w { color: var(--amber); }

.split { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; align-items: start; }

/* ---------- Form ---------- */
form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; font: 600 .82rem/1.2 var(--mono); color: var(--text-2); letter-spacing: .04em; }
label .req { color: var(--amber); }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text);
  background: #070a0e; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b7886; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63,224,255,.16), 0 0 18px rgba(63,224,255,.15); }
.form-foot { display: grid; gap: 12px; }
.ok-msg { display: none; font: 500 .9rem/1.5 var(--mono); color: var(--ok); }
.ok-msg::before { content: "[ok] "; }
.fallback { color: var(--text-2); font-size: .98rem; }

/* ---------- Footer ---------- */
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(6,8,11,.85); margin-top: clamp(30px, 5vw, 60px); }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 30px 0 22px; align-items: end; color: var(--text-2); font-size: .95rem; }
.foot strong { font-family: var(--mono); color: var(--text); letter-spacing: .04em; }
.foot .r { text-align: right; }
.foot a { font-family: var(--mono); }
.foot-line { border-top: 1px solid var(--line); padding: 14px 0 22px; font: 500 .78rem/1.4 var(--mono); color: var(--muted); }
.foot-line .u { color: var(--ok); } .foot-line .p { color: var(--cyan); }

/* 404 */
.big-code { font: 700 clamp(4rem, 14vw, 9rem)/1 var(--mono); color: var(--amber); text-shadow: 0 0 40px rgba(255,154,31,.45); letter-spacing: -.04em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .viz { max-width: 560px; width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .sysinfo { grid-template-columns: 1fr 1fr; }
  .sysinfo > div:nth-child(2) { border-right: 0; }
  .sysinfo > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .prompt { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; gap: 4px;
    padding: 4px 0 14px; margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 1rem; border-color: var(--line); }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot .r { text-align: left; }
  .sysbar .hide-sm { display: none; }
  .viz-hud .bar { width: 100px; }
}
@media (max-width: 460px) {
  .sysinfo { grid-template-columns: 1fr; }
  .sysinfo > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .sysinfo > div:last-child { border-bottom: 0; }
  .btn { width: 100%; justify-content: center; }
  .notice { grid-template-columns: 1fr; }
  .notice .lvl { justify-self: start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .cursor { animation: none; }
}

/* ---------- v2.1: conversion sections (how-it-works, FAQ, recent work, CTA) ---------- */
.cta-note { margin: 14px 0 0; font: 500 .85rem/1.6 var(--mono); color: var(--muted); max-width: 60ch; }
.cta-note b { color: var(--text-2); font-weight: 600; overflow-wrap: anywhere; }
.step .num { color: var(--cyan); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 20px 16px 46px; position: relative;
  font: 600 1rem/1.4 var(--mono); color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; position: absolute; left: 20px; top: 15px; color: var(--amber); font-weight: 700; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item summary:hover { color: var(--amber); }
.faq-item p { margin: 0; padding: 0 20px 18px 46px; color: var(--text-2); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.work-item { margin: 0; overflow: hidden; }
.work-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-item figcaption { padding: 12px 16px; font: 500 .85rem/1.4 var(--mono); color: var(--text-2); }
.cta-win { border-color: rgba(255,181,71,.45); }
@media (max-width: 460px) {
  .faq-item summary { padding-left: 40px; font-size: .95rem; }
  .faq-item summary::before { left: 16px; }
  .faq-item p { padding-left: 40px; }
}

/* ---------- product pages + 3D viewer (v2.2) ---------- */
.product { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.viewer { position: relative; height: clamp(320px, 52vw, 520px); border-radius: 8px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, rgba(255,181,71,.10), transparent 70%),
              linear-gradient(180deg, rgba(63,224,255,.05), transparent 60%), var(--bg-2);
  border: 1px solid var(--line); }
.viewer-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; outline: none; }
.viewer-canvas:active { cursor: grabbing; }
.viewer-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan); }
.viewer-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: opacity .4s; }
.viewer.ready .viewer-fallback { opacity: 0; pointer-events: none; }
.viewer.no-webgl .viewer-canvas { display: none; }
.viewer-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; justify-content: space-between;
  padding: 10px 12px; font: 500 .78rem/1.3 var(--mono); color: var(--muted); background: linear-gradient(0deg, rgba(6,8,11,.9), transparent); pointer-events: none; }
.viewer-ui .vbtns { display: flex; gap: 6px; pointer-events: auto; }
.viewer-ui button { font: 600 .78rem/1 var(--mono); color: var(--cyan); background: rgba(63,224,255,.08); border: 1px solid rgba(63,224,255,.45);
  border-radius: 6px; padding: 9px 10px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.viewer-ui button:hover { box-shadow: var(--glow-c); }
.viewer.no-webgl .vbtns { display: none; }
.viewer-tag { position: absolute; top: 10px; left: 12px; font: 700 .72rem/1 var(--mono); letter-spacing: .12em; color: var(--amber); pointer-events: none; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px dashed var(--line-2); vertical-align: top; }
.specs th { font: 600 .78rem/1.6 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; width: 38%; padding-right: 12px; }
.specs td { color: var(--text-2); }
.buy-box { display: grid; gap: 14px; }
.buy-box .price { margin: 0; }
.buy-box .btn { justify-content: center; }
.checkout-note { font: 500 .85rem/1.5 var(--mono); color: var(--amber); margin: 0; }
.wallet { font: 500 .82rem/1.5 var(--mono); color: var(--text-2); overflow-wrap: anywhere; }
.wallet[hidden] { display: none; }
.prod-card .thumb { aspect-ratio: 4 / 3; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.prod-card .meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--mono); }
.prod-card .meta-row b { color: var(--amber); font-size: 1.15rem; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
@media (max-width: 980px) { .product { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .viewer { height: 360px; } .viewer-ui { padding: 8px 10px; font-size: .72rem; } }

/* ---------- order widget: delivery + qty + total (v2.3) ---------- */
.order { display: grid; gap: 14px; }
.opt-group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.opt-group legend, .qty-row label, .total-label { font: 600 .78rem/1.6 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; padding: 0; margin-bottom: 6px; }
.opt { display: block; cursor: pointer; position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-box { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px 12px 42px; border: 1px solid var(--line-2); border-radius: 8px;
  background: rgba(255,255,255,.015); position: relative; transition: border-color .15s, box-shadow .2s, background .2s; }
.opt-box::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); }
.opt-box b { font: 600 .95rem/1.35 var(--mono); color: var(--text); }
.opt-price { font: 700 .95rem/1.35 var(--mono); color: var(--amber); text-align: right; white-space: nowrap; }
.opt-box small { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.opt:hover .opt-box { border-color: rgba(63,224,255,.45); }
.opt input:checked + .opt-box { border-color: var(--amber); background: rgba(255,181,71,.06); box-shadow: var(--glow-a); }
.opt input:checked + .opt-box::before { border-color: var(--amber); background: radial-gradient(circle, var(--amber) 0 45%, var(--bg-2) 50%); }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-row label { margin: 0; }
.qty { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.qty input { width: 64px; text-align: center; font: 600 1rem/1 var(--mono); color: var(--text); background: var(--bg-2); border: 0; padding: 10px 4px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; min-height: 44px; font: 700 1.1rem/1 var(--mono); color: var(--cyan); background: rgba(63,224,255,.06); border: 0; cursor: pointer; }
.qty-btn:hover { background: rgba(63,224,255,.14); }
.js-only { display: none; }
.js .js-only { display: block; }
.total-row { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; padding: 12px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.total-label { margin: 0; }
.total { font: 700 1.6rem/1 var(--mono); color: var(--amber); text-align: right; }
.total-break { grid-column: 1 / -1; text-align: right; color: var(--muted); font: 500 .8rem/1.4 var(--mono); }
.nojs { margin: 0; font-size: .88rem; }
