/* ============================================================
   DRAKOX LABS // VISUAL IDENTITY SYSTEM
   ============================================================
   COLOR GRADING (edit the variables, the whole site follows):
   --void   : absolute black canvas
   --ghost  : cinematic greyish-white typography
   --cyan   : Cybernetic Cyan accents
   --amber  : Tungsten Amber accents
   ============================================================ */

:root {
  --ink:         13, 14, 16;     /* dark panel base (RGB) used across the UI */
  --void:        #0D0D0D;
  --ghost:       #E5E7EB;
  --ghost-dim:   #9CA3AF;
  --cyan:        #00F5FF;
  --cyan-dim:    rgba(0, 245, 255, 0.35);
  --amber:       #FF9F00;
  --pink:        #FF2EC8;
  --line:        #333333;
  --glass:       rgba(18, 21, 24, 0.55);
  --glass-heavy: rgba(var(--ink), 0.78);

  --font-display: "Bebas Neue", sans-serif;       /* massive brutalist headers */
  --font-data:    "Rajdhani", sans-serif;         /* UI, numbers, labels */
  --font-brand:   "Black Ops One", "Rajdhani", sans-serif; /* rugged military wordmark */
  --font-body:    "Inter", sans-serif;            /* paragraphs */

  --speed: 0.3s;  /* global tactile hover speed */
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* the hidden attribute must always win over class display rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ghost);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: var(--void); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: #26292d; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- FIXED BACKGROUND STACK ----------
   engine video (0) → particle canvas (1) → cursor glow (1) → content (2) */

/* Jet engine — plays continuously, parallax-shifted by scroll + cursor.
   --eng-x/--eng-y come from the mouse, --eng-scroll from scroll (main.js). */
#engine-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
body.show-engine #engine-bg { opacity: 1; }
#engine-bg video {
  position: absolute;
  inset: -6%;
  width: 112%; height: 112%;
  object-fit: cover;
  /* cinematic grade + reactive parallax */
  filter: contrast(1.16) saturate(1.1) brightness(0.82);
  transform:
    translate3d(calc(var(--eng-x, 0) * -16px), calc(var(--eng-y, 0) * -16px + var(--eng-scroll, 0) * 60px), 0)
    scale(1.06);
  transition: transform 0.25s ease-out;
  will-change: transform;
}
/* duotone + vignette so headlines stay readable over the engine */
#engine-grade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 30%, rgba(0, 245, 255, 0.12), transparent 55%),
    radial-gradient(ellipse at 76% 78%, rgba(255, 159, 0, 0.10), transparent 55%),
    radial-gradient(ellipse at center, transparent 18%, rgba(13, 13, 13, 0.72) 100%),
    linear-gradient(180deg, rgba(13,13,13,0.62) 0%, rgba(13,13,13,0.2) 32%, rgba(13,13,13,0.55) 72%, var(--void) 100%);
}

/* ---------- FIXED WEBGL CANVAS ---------- */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Cursor-tracking spotlight — only on the home hero */
#cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    360px circle at var(--cursor-x, 50%) var(--cursor-y, 40%),
    rgba(0, 245, 255, 0.12), rgba(0, 245, 255, 0.04) 40%, transparent 65%);
}
body.zone-home-active #cursor-glow { opacity: 1; }

/* ---------- GLASS SYSTEM (machined panels) ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}

/* Signature detail: machined corner brackets */
.bracketed { position: relative; }
.bracketed::before, .bracketed::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.7;
  pointer-events: none;
}
.bracketed::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.bracketed::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ---------- BUTTONS — tactile hardware ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.8rem;
  background: linear-gradient(180deg, rgba(38, 42, 47, 0.75), rgba(15, 17, 19, 0.85));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: var(--ghost);
  font-family: var(--font-data);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color var(--speed), box-shadow var(--speed),
              color var(--speed), transform var(--speed), background var(--speed);
}
.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1),
              inset 0 0 12px rgba(0, 245, 255, 0.05);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(1px) scale(0.97); }

/* Primary CTA — charged cyan, clear hierarchy */
.btn--primary {
  border-color: rgba(0, 245, 255, 0.55);
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.18), rgba(0, 120, 130, 0.12));
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn--primary:hover {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.28), rgba(0, 140, 150, 0.16));
  box-shadow: 0 0 34px rgba(0, 245, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--amber:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 22px rgba(255, 159, 0, 0.2), inset 0 0 12px rgba(255, 159, 0, 0.06);
}

/* ============================================================
   NAVBAR
   ============================================================ */
/* Everything in the top bar is stacked inside ONE fixed container, so nothing
   can drift away from the navbar and leave an empty gap. */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: var(--glass-heavy);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand img {
  height: 40px; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.25));
}
/* Rugged machined-steel wordmark — heavy stencil + dark grey metal */
.brand-name {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg,
    #b4b9bf 0%, #80868d 40%, #3c4147 55%, #5c6269 78%, #82888f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.95));
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ghost-dim);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color var(--speed), border-color var(--speed);
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.nav--current { color: var(--ghost); border-bottom-color: var(--cyan); }

/* Burger (mobile) */
#nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
}
#nav-burger span {
  width: 20px; height: 2px;
  background: var(--ghost);
  transition: transform var(--speed), opacity var(--speed);
}
#nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-burger.open span:nth-child(2) { opacity: 0; }
#nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: rgba(13, 13, 13, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed);
}
#mobile-menu.open { opacity: 1; pointer-events: auto; }
#mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: 0.1em;
  color: var(--ghost);
  text-decoration: none;
  transition: color var(--speed);
}
#mobile-menu a:hover, #mobile-menu a.nav--current { color: var(--cyan); }

/* ============================================================
   ZONES (SPA hard-switch)
   ============================================================ */
.zone { position: relative; z-index: 2; }
/* !important wins over any later display rule (e.g. .locked-zone's flex) —
   only the active zone may ever render */
.zone:not(.zone--active) { display: none !important; }
.zone--active { display: block; }

/* ============================================================
   ZONE: HOME — cinematic scroll experience
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}
.eyebrow--amber { color: var(--amber); }

.mega {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 13vw, 12.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  /* brushed-steel fill instead of flat white */
  background: linear-gradient(180deg, #f4f6f8 0%, #c4c9cf 52%, #7d838a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 26px rgba(0, 0, 0, 0.6));
}

/* HERO HEADLINE — machined steel with a live sheen + cyan accent.
   Restyled so it reads as designed metal, not plain bold white. */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11.5vw, 10.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.ht-line { display: block; }
/* animated brushed-metal sweep across the words */
.hero-title {
  background: linear-gradient(110deg,
    #6f767d 0%, #aeb4ba 30%, #ffffff 46%, #d3d8dd 56%, #82888f 78%, #6f767d 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroSheen 7s linear infinite;
  filter: drop-shadow(0 3px 22px rgba(0, 0, 0, 0.6));
}
@keyframes heroSheen {
  0%   { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}
/* the accent word glows cyan and breaks the steel */
.ht-accent {
  background: linear-gradient(180deg, #8efbff 0%, #00f5ff 52%, #00b3bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 245, 255, 0.5));
  animation: accentPulse 3.2s ease-in-out infinite;
}
@keyframes accentPulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(0, 245, 255, 0.4)); }
  50%      { filter: drop-shadow(0 0 26px rgba(0, 245, 255, 0.7)); }
}

/* ACT 1 backdrop: the workshop photograph */
.hero-photo {
  background: url("../assets/hero.jpg") center 38% / cover no-repeat;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 13, 13, 0.55) 0%,
    rgba(13, 13, 13, 0.18) 38%,
    rgba(13, 13, 13, 0.45) 72%,
    var(--void) 98%);
  pointer-events: none;
}
.hero-photo-content { position: relative; z-index: 1; }
.hero-photo .scroll-hint { z-index: 1; } /* stays position:absolute from .scroll-hint */

.hero-sub {
  max-width: 560px;
  margin-top: 1.6rem;
  font-size: 1.02rem;
  color: var(--ghost-dim);
}

.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--ghost-dim);
  text-transform: uppercase;
}

/* ABOUT — the finale the engine fades into */
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 11rem 1.5rem 8rem;
}
.about-mega {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  background: linear-gradient(180deg, #f2f4f6 0%, #b9bec4 55%, #787e85 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}
.about-panel {
  max-width: 760px;
  padding: 2.6rem clamp(1.5rem, 5vw, 4rem);
  text-align: left;
}
.about-panel p { color: var(--ghost-dim); margin-bottom: 1rem; }
.about-panel p:last-child { margin-bottom: 0; }
.about-panel strong { color: var(--ghost); font-weight: 600; }
.about-panel .highlight { color: var(--cyan); font-weight: 600; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 760px;
  margin-top: 1.4rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--glass-heavy);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 1.5rem 1rem;
}
.stat b {
  display: block;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
}
.stat span {
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ghost-dim);
}

/* Support strip */
.support-section {
  padding: 4rem 1.5rem 8rem;
  text-align: center;
}
.support-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.6rem;
}
.support-section p {
  font-family: var(--font-data);
  letter-spacing: 0.2em;
  color: var(--ghost-dim);
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
.support-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--ghost-dim);
  text-transform: uppercase;
  background: var(--glass-heavy);
}

/* ============================================================
   ZONE: THE FORGE — split-screen SaaS dashboard
   ============================================================ */
.forge-wrap {
  /* top padding clears the fixed top bar (its height is measured in JS) */
  padding: calc(var(--bars-h, 124px) + 1.4rem) 1.5rem 9.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.forge-header { margin-bottom: 2rem; }
.forge-header h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
}
.forge-header p {
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  color: var(--cyan);
  text-transform: uppercase;
}

.forge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* --- LEFT PANEL: the visualizer --- */
.visualizer {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--cyan-dim);
  box-shadow: 0 0 36px rgba(0, 245, 255, 0.08), inset 0 0 60px rgba(0, 245, 255, 0.03);
}
#forge-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dropzone {
  position: absolute;
  inset: 14%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.4rem;
  background: rgba(var(--ink), 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px dashed var(--line);
  cursor: pointer;
  transition: border-color var(--speed), box-shadow var(--speed), inset 0.4s;
}
.dropzone:hover, .dropzone--hot {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(0, 245, 255, 0.15);
}
.drop-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--cyan);
  position: relative;
  opacity: 0.85;
}
.drop-icon::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 22px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
}
.drop-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 2px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
}
.drop-title {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.drop-sub {
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--ghost-dim);
  text-transform: uppercase;
}
.drop-status {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  min-height: 1.2em;
  word-break: break-word;
}
.status--error { color: var(--amber); }

.drop-tip {
  margin-top: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4fce82;
  line-height: 1.5;
}

.demo-link {
  background: none;
  border: none;
  border-bottom: 1px dotted var(--ghost-dim);
  color: var(--ghost-dim);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  transition: color var(--speed), border-color var(--speed);
}
.demo-link:hover { color: var(--cyan); border-color: var(--cyan); }

/* Once geometry is locked, the dropzone collapses to a status chip */
.dropzone--loaded {
  inset: auto 12px 12px 12px;
  flex-direction: row;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-style: solid;
  border-color: var(--cyan-dim);
}
.dropzone--loaded .drop-icon,
.dropzone--loaded .drop-title,
.dropzone--loaded .drop-sub { display: none; }

.model-readout {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ghost-dim);
  background: rgba(var(--ink), 0.6);
  padding: 0.35rem 0.6rem;
  pointer-events: none;
}

/* --- RIGHT PANEL: the configurator accordion --- */
.configurator { display: flex; flex-direction: column; gap: 0.9rem; }

.acc-step {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  transition: border-color var(--speed);
}
.acc-step.open { border-color: var(--cyan-dim); }

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: transparent;
  border: none;
  color: var(--ghost);
  text-align: left;
}
.acc-num {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.acc-title {
  flex: 1;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.acc-chev {
  width: 9px; height: 9px;
  border-right: 2px solid var(--ghost-dim);
  border-bottom: 2px solid var(--ghost-dim);
  transform: rotate(45deg);
  transition: transform var(--speed), border-color var(--speed);
}
.acc-step.open .acc-chev {
  transform: rotate(-135deg);
  border-color: var(--cyan);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-step.open .acc-body { max-height: 640px; }
/* Professional Mode holds far more content — let it expand fully */
#pro-step.open .acc-body { max-height: 2600px; }
.acc-inner { padding: 0.4rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 1.3rem; }

.field-label {
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--ghost-dim);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  display: block;
}

/* Segmented controls (units, layer height) */
.seg-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.seg {
  min-height: 48px;
  padding: 0.55rem 1.1rem;
  background: rgba(var(--ink), 0.5);
  border: 1px solid var(--line);
  color: var(--ghost-dim);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--speed);
}
.seg:hover { border-color: var(--cyan); color: var(--ghost); }
.seg--on {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.07);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.12);
}
.seg small { display: block; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--ghost-dim); }

/* Machine cards */
.machine-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.machine-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  min-height: 48px;
  background: rgba(var(--ink), 0.5);
  border: 1px solid var(--line);
  color: var(--ghost);
  text-align: left;
  transition: all var(--speed);
}
.machine-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.machine--on {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.06);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.12);
}
.machine-name { font-family: var(--font-data); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.1em; }
.machine-tag  { font-family: var(--font-data); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--ghost-dim); }
.machine-rate { font-family: var(--font-data); font-weight: 700; font-size: 0.85rem; color: var(--amber); letter-spacing: 0.08em; }

/* Material dropdown */
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 2.6rem 0.7rem 1rem;
  background: rgba(var(--ink), 0.6);
  border: 1px solid var(--line);
  color: var(--ghost);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.select-wrap select:hover, .select-wrap select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.1);
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Color swatches */
.swatch-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.swatch {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid var(--line);
  transition: all var(--speed);
}
.swatch:hover { transform: scale(1.12); border-color: var(--ghost); }
.swatch--on {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.25), 0 0 16px rgba(0, 245, 255, 0.3);
  transform: scale(1.12);
}
/* Translucent filaments — show a glassy, see-through chip */
.swatch--glass {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%),
    var(--sw);
  opacity: 0.7;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.35);
}
/* Metallic filaments — diagonal sheen across the chip */
.swatch--metal {
  background:
    linear-gradient(125deg, rgba(255,255,255,0.65) 8%, transparent 32%,
                    rgba(0,0,0,0.25) 60%, rgba(255,255,255,0.45) 92%),
    var(--sw);
}
/* Rainbow (PLA Silk) — full spectrum chip */
.swatch--rainbow {
  background: conic-gradient(from 210deg,
    #ff3b3b, #ff9f00, #f2e60c, #35d36b, #00f5ff, #4f7bff, #b14bff, #ff3b9e, #ff3b3b);
}
#color-name {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ghost-dim);
}

/* Material purpose caption under the dropdown */
.material-use {
  margin-top: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.material-use::before { content: "// "; color: var(--ghost-dim); }

/* Infill slider — glowing liquid fill + reactive thumb */
.slider-row { display: flex; align-items: center; gap: 1rem; }
input[type="range"] {
  flex: 1;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 7px;
  background:
    linear-gradient(90deg, var(--cyan), #6ad7c4 55%, var(--amber)) left/ var(--fill, 28%) 100% no-repeat,
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff, var(--cyan) 58%, #007f87);
  border: 2px solid #0a0c0d;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.6), 0 0 0 6px rgba(0, 245, 255, 0.08);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 20px rgba(0,245,255,0.85), 0 0 0 8px rgba(0,245,255,0.12); }
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2); cursor: grabbing;
  box-shadow: 0 0 26px rgba(0,245,255,0.95), 0 0 0 12px rgba(0,245,255,0.14);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff, var(--cyan) 58%, #007f87);
  border: 2px solid #0a0c0d;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.6);
  cursor: grab;
}
#infill-out {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan);
  min-width: 3.6ch;
  text-align: center;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--cyan-dim);
  background: rgba(0, 245, 255, 0.06);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ============================================================
   VIEWER: light bulb button + help hint
   ============================================================ */
.light-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(var(--ink), 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ghost-dim);
  transition: all var(--speed);
}
.light-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.light-btn svg { width: 22px; height: 22px; }
.light-btn--on {
  border-color: var(--amber); color: var(--amber);
  background: rgba(255, 159, 0, 0.12);
  box-shadow: 0 0 22px rgba(255, 200, 80, 0.55);
}
.viewer-help {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  font-family: var(--font-data); font-size: 0.66rem;
  letter-spacing: 0.14em; color: var(--ghost-dim);
  background: rgba(var(--ink), 0.55); padding: 0.25rem 0.5rem;
  pointer-events: none; text-transform: uppercase;
}

/* ============================================================
   SPECIAL CODE + POINTS
   ============================================================ */
.code-panel { padding: 1.1rem 1.3rem; }
.code-hint {
  font-family: var(--font-data); font-size: 0.74rem; line-height: 1.5;
  color: var(--ghost-dim); margin-bottom: 0.7rem;
}
.code-row { display: flex; gap: 0.5rem; }
.code-prefix {
  display: flex; align-items: center; padding: 0 0.7rem;
  color: var(--amber); border: 1px solid var(--line);
  background: rgba(var(--ink), 0.7); font-size: 0.9rem;
}
#special-code {
  flex: 1; min-width: 0; min-height: 44px; padding: 0.6rem 0.9rem;
  background: rgba(var(--ink), 0.7); border: 1px solid var(--line);
  color: var(--amber); caret-color: var(--amber);
  font-family: var(--font-data); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: border-color var(--speed), box-shadow var(--speed);
}
#special-code::placeholder { color: #4b5158; letter-spacing: 0.12em; }
#special-code:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 14px rgba(255,159,0,0.15); }
.code-status {
  margin-top: 0.6rem; min-height: 1em;
  font-family: var(--font-data); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em;
}
.code-status.code--ok { color: var(--cyan); text-shadow: 0 0 12px rgba(0,245,255,0.4); }
.code-status.code--err { color: var(--amber); }
.points-earn { display: block; margin-top: 0.3rem; font-family: var(--font-data); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ghost-dim); }
.points-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid rgba(51,51,51,0.6);
}
.points-label { font-family: var(--font-data); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ghost-dim); }
.points-val { font-family: var(--font-data); font-weight: 700; font-size: 1.3rem; color: var(--amber); text-shadow: 0 0 14px rgba(255,159,0,0.4); transition: transform 0.2s; }
.points-pulse { transform: scale(1.3); }
.bd-code span { color: var(--cyan) !important; }

/* ============================================================
   OFFER PRICING (Amazon-style anchor) in the sticky bar
   ============================================================ */
.total-line { display: inline-flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.total-was {
  font-family: var(--font-data); font-weight: 600; font-size: 1rem;
  color: var(--ghost-dim); text-decoration: line-through;
  text-decoration-color: var(--amber);
}
.offer-badge {
  font-family: var(--font-data); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--void); background: var(--amber);
  padding: 0.18rem 0.5rem; border-radius: 2px;
  align-self: center;
}

/* Cost breakdown */
.breakdown { display: flex; flex-direction: column; }
.bd-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ghost-dim);
}
.bd-row span:last-child { color: var(--ghost); }
.bd-gst span { color: var(--amber) !important; }

/* per-filament rows (sliced files) + info notes in the breakdown */
.bd-dot {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--dot);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 7px;
  vertical-align: -1px;
}
.bd-fil span:first-child { color: var(--ghost-dim); }
.bd-note span:first-child {
  color: var(--ghost-dim);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

/* accuracy banner row — green when exact, amber when estimated */
.bd-exact, .bd-estimate {
  border-bottom: none;
  margin-bottom: 0.2rem;
  padding: 0.5rem 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.bd-exact {
  background: rgba(47, 162, 87, 0.12);
  border: 1px solid rgba(47, 162, 87, 0.5);
}
.bd-exact span { color: #4fce82 !important; }
.bd-estimate {
  background: rgba(255, 159, 0, 0.09);
  border: 1px solid rgba(255, 159, 0, 0.4);
}
.bd-estimate span { color: var(--amber) !important; }
.bd-estimate span:last-child { opacity: 0.85; font-size: 0.66rem; }

/* ============================================================
   MODELS PANEL — multi-part order
   ============================================================ */
.models-panel { padding: 1.1rem 1.3rem; }
.models-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.models-count {
  font-family: var(--font-data); font-weight: 700;
  color: var(--cyan); letter-spacing: 0.1em; margin-left: 0.4rem;
}
.add-model-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 40px; padding: 0.4rem 0.9rem;
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--font-data); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: all var(--speed);
}
.add-model-btn:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(0,245,255,0.2); transform: translateY(-1px); }
.add-model-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.add-model-btn .plus { font-size: 1.1rem; line-height: 1; }

.models-list { display: flex; flex-direction: column; gap: 0.5rem; }
.model-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  background: rgba(var(--ink), 0.55);
  border: 1px solid var(--line);
  transition: border-color var(--speed), background var(--speed);
}
.model-row--active { border-color: var(--cyan); background: rgba(0, 245, 255, 0.05); }
.model-view {
  display: flex; align-items: center; gap: 0.6rem;
  background: none; border: none; text-align: left;
  color: var(--ghost); min-width: 0;
}
.model-idx {
  font-family: var(--font-data); font-weight: 700; font-size: 0.75rem;
  color: var(--cyan); letter-spacing: 0.06em; flex: none;
}
.model-name {
  font-family: var(--font-data); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.model-view:hover .model-name { color: var(--cyan); }

.qty { display: flex; align-items: center; gap: 0.3rem; }
.qty-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(var(--ink),0.7); border: 1px solid var(--line);
  color: var(--ghost); font-size: 1.05rem; line-height: 1;
  transition: all var(--speed);
}
.qty-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.qty-val {
  min-width: 2.2ch; text-align: center;
  font-family: var(--font-data); font-weight: 700; font-size: 0.95rem;
  color: var(--ghost);
}
.model-remove {
  width: 28px; height: 28px;
  background: none; border: 1px solid transparent;
  color: var(--ghost-dim); font-size: 1.1rem; line-height: 1;
  transition: all var(--speed);
}
.model-remove:hover { color: var(--amber); border-color: rgba(255,159,0,0.4); }

.models-hint {
  margin-top: 0.7rem;
  font-family: var(--font-data); font-size: 0.74rem; line-height: 1.5;
  letter-spacing: 0.04em; color: var(--ghost-dim);
}
.models-hint strong { color: var(--cyan); }
.add-more-btn { width: 100%; margin-top: 0.8rem; min-height: 44px; font-size: 0.8rem; }

/* ============================================================
   TOGGLE SWITCH (professional mode + each setting)
   ============================================================ */
.toggle {
  position: relative;
  width: 46px; height: 26px; flex: none;
  border-radius: 14px;
  background: rgba(var(--ink),0.85);
  border: 1px solid var(--line);
  transition: background var(--speed), border-color var(--speed);
}
.toggle-knob {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ghost-dim);
  transition: transform var(--speed), background var(--speed);
}
.toggle--on { background: rgba(0,245,255,0.18); border-color: var(--cyan); }
.toggle--on .toggle-knob { transform: translateX(20px); background: var(--cyan); box-shadow: 0 0 10px rgba(0,245,255,0.6); }

/* ============================================================
   PROFESSIONAL MODE
   ============================================================ */
.pro-toggle-row {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.pro-sub {
  font-family: var(--font-body); font-size: 0.82rem; line-height: 1.5;
  color: var(--ghost-dim); max-width: 38ch;
}
.pro-advanced { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 1.2rem; }
.pro-group { display: flex; flex-direction: column; gap: 0.45rem; }
.pro-group-title {
  font-family: var(--font-data); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber);
  padding-bottom: 0.3rem; border-bottom: 1px solid rgba(51,51,51,0.6);
}
.pro-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 0.8rem;
  opacity: 0.6; transition: opacity var(--speed);
}
.pro-row--on { opacity: 1; }
.pro-label {
  font-family: var(--font-data); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ghost);
}
.pro-ctrl { display: flex; align-items: center; gap: 0.4rem; justify-self: end; }
.pro-unit { font-family: var(--font-data); font-size: 0.75rem; color: var(--ghost-dim); }
.pro-input {
  min-height: 36px; padding: 0.3rem 0.6rem;
  background: rgba(var(--ink),0.7); border: 1px solid var(--line);
  color: var(--ghost); font-family: var(--font-data); font-weight: 600;
  font-size: 0.85rem; transition: border-color var(--speed), opacity var(--speed);
  appearance: none; -webkit-appearance: none;
}
.pro-input--num { width: 84px; text-align: right; }
.pro-input:not(:disabled):hover, .pro-input:not(:disabled):focus { border-color: var(--cyan); outline: none; }
.pro-input:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   NOTES
   ============================================================ */
.notes-panel { padding: 1.1rem 1.3rem; }
#order-notes {
  width: 100%; margin-top: 0.2rem; resize: vertical; min-height: 92px;
  padding: 0.8rem 1rem;
  background: rgba(var(--ink),0.7); border: 1px solid var(--line);
  color: var(--ghost); caret-color: var(--cyan);
  font-family: var(--font-data); font-size: 0.9rem; line-height: 1.55;
  letter-spacing: 0.02em;
  transition: border-color var(--speed), box-shadow var(--speed);
}
#order-notes::placeholder { color: #4b5158; }
#order-notes:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 16px rgba(0,245,255,0.12); }
.notes-hint {
  margin-top: 0.5rem; font-family: var(--font-data); font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--ghost-dim);
}

/* --- STICKY BOTTOM BAR: reactive output --- */
.forge-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 2rem;
  background: var(--glass-heavy);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--cyan-dim);
}
.bar-stat { display: flex; flex-direction: column; }
.bar-label {
  font-family: var(--font-data);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--ghost-dim);
  text-transform: uppercase;
}
.bar-value {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.bar-total { margin-left: auto; text-align: right; }
#out-total {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 245, 255, 0.55);
  transition: color var(--speed), text-shadow var(--speed);
}
#out-total.total--calc {
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 159, 0, 0.55);
}
#out-total.total--idle {
  font-size: 1rem;
  color: var(--ghost-dim);
  text-shadow: none;
  letter-spacing: 0.2em;
}

.bar-actions { display: flex; gap: 0.5rem; align-items: center; }
#proceed-btn, #pay-btn { white-space: nowrap; }
/* WhatsApp = secondary action next to Pay */
.btn--wa { border-color: rgba(37, 211, 102, 0.5); color: #25D366; }
.btn--wa:hover { border-color: #25D366; color: #25D366; box-shadow: 0 0 20px rgba(37,211,102,0.25); }
#proceed-btn:disabled, #pay-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  border-color: var(--line);
  color: var(--ghost-dim);
}

/* Payment modal (reuses .assistant-modal / .assistant-panel) */
.pay-panel { width: min(460px, 100%); }
#pay-body { padding: 0.4rem 0.2rem; }
.pay-setup p, .pay-success p { font-size: 0.92rem; line-height: 1.55; color: var(--ghost); margin-bottom: 0.7rem; }
.pay-setup ol { margin: 0.4rem 0 0.8rem 1.1rem; color: var(--ghost-dim); font-size: 0.88rem; line-height: 1.7; }
.pay-setup code { background: rgba(var(--ink), 0.7); border: 1px solid var(--line); padding: 0.05rem 0.35rem; color: var(--cyan); font-size: 0.82rem; }
.pay-setup .btn, .pay-success .btn { margin-top: 0.4rem; }
.pay-note { color: var(--ghost-dim) !important; font-size: 0.84rem !important; }
.pay-success { text-align: center; }
.pay-tick {
  width: 56px; height: 56px; margin: 0.4rem auto 0.6rem; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan);
  font-size: 1.8rem; box-shadow: 0 0 24px rgba(0,245,255,0.4);
}
.pay-success h3 { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.04em; color: var(--ghost); }
.pay-amt { font-family: var(--font-data); font-weight: 700; font-size: 1.4rem; color: var(--cyan) !important; }
.pay-ref { font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ghost-dim) !important; }

/* ============================================================
   LOCKED ZONES — tactical placeholder panels
   ============================================================ */
.locked-zone {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--bars-h, 124px) + 1.6rem) 1.5rem 4rem;
  position: relative;
  /* cybernetic cyan grid lines */
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

.locked-panel {
  max-width: 640px;
  width: 100%;
  padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.warn-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* High specificity so .locked-panel > p can't wash these out */
.locked-panel > p.status-line { color: var(--amber); }
.locked-panel > p.status-line--ok { color: var(--cyan); } /* Support: open channel, not a warning */
.dot--ok { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.panel-actions { margin-bottom: 1.2rem; }
.support-mail {
  font-family: var(--font-data);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 1.6rem;
}
.support-note {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ghost-dim);
  margin-bottom: 0.8rem !important;
}

.locked-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}
.locked-panel > p {
  color: var(--ghost-dim);
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
}

/* ---------- ANIMATED SEARCH POD ----------
   Rotating cyan/amber energy ring around the product search.
   Spins slowly at rest; charges up while typing.            */
.search-pod {
  position: relative;
  width: min(360px, 100%);
  height: 56px;
  margin: 0 auto 0.8rem;
}
.search-glow, .search-frame {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
}
.search-glow { inset: -4px; filter: blur(7px); opacity: 0.75; }
.search-frame { inset: -1px; }
.search-glow::before, .search-frame::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  background: conic-gradient(
    transparent 0deg, var(--cyan) 18deg, transparent 65deg,
    transparent 180deg, var(--pink) 198deg, transparent 245deg);
  animation: podSpin 7s linear infinite;
}
.search-pod:hover .search-glow::before,
.search-pod:hover .search-frame::before,
.search-pod:focus-within .search-glow::before,
.search-pod:focus-within .search-frame::before {
  animation-duration: 2.2s;
}
@keyframes podSpin { to { transform: rotate(360deg); } }

.search-box {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1.1rem;
  background: #0a0c0d;
  border-radius: 11px;
}
.search-box svg { color: var(--cyan); flex: none; opacity: 0.85; }
.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ghost);
  caret-color: var(--cyan);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.search-box input::placeholder { color: #4b5158; letter-spacing: 0.18em; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  min-height: 1.6em;
  margin-bottom: 1.6rem;
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
}
.result-chip {
  padding: 0.45rem 0.9rem;
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--speed);
}
.result-chip:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.2);
  transform: translateY(-1px);
}

/* Terminal command-box email capture */
.beacon-form { display: flex; flex-direction: column; gap: 0.6rem; }
.beacon-row { display: flex; gap: 0.6rem; }
.beacon-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: rgba(var(--ink), 0.7);
  user-select: none;
}
.beacon-form input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 1rem;
  background: rgba(var(--ink), 0.7);
  border: 1px solid var(--line);
  color: var(--cyan);
  caret-color: var(--cyan);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.beacon-form input[type="email"]::placeholder { color: #4b5158; letter-spacing: 0.14em; }
.beacon-form input[type="email"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.14);
}
.beacon-error {
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
  min-height: 1.1em;
  text-align: left;
}
.beacon-granted {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.5);
  padding: 0.9rem 0;
  animation: grantFlash 0.6s ease-out;
}
@keyframes grantFlash {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   AI PRINT ASSISTANT
   ============================================================ */
.forge-header { position: relative; }
.assistant-open {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 1.1rem;
  background: linear-gradient(180deg, rgba(0,245,255,0.16), rgba(0,120,130,0.1));
  border: 1px solid var(--cyan-dim); color: var(--cyan);
  font-family: var(--font-data); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 0 18px rgba(0,245,255,0.12);
  transition: all var(--speed);
}
.assistant-open:hover { border-color: var(--cyan); box-shadow: 0 0 28px rgba(0,245,255,0.3); transform: translateY(-2px); }
.ai-spark { color: var(--cyan); animation: aiSpark 2.6s ease-in-out infinite; }
@keyframes aiSpark { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

.assistant-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.assistant-backdrop { position: absolute; inset: 0; background: rgba(5,6,7,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.assistant-panel {
  position: relative; z-index: 1;
  width: min(560px, 100%); max-height: 86vh;
  display: flex; flex-direction: column;
  padding: 1.4rem;
  background: var(--glass-heavy);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  animation: aiPop 0.3s ease-out;
}
@keyframes aiPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.assistant-head { display: flex; align-items: center; justify-content: space-between; }
.assistant-head > div { display: flex; align-items: center; gap: 0.6rem; }
.assistant-title { font-family: var(--font-data); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost); }
.assistant-sub { font-family: var(--font-data); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost-dim); margin: 0.2rem 0 1rem; }
.assistant-close { width: 36px; height: 36px; background: none; border: 1px solid var(--line); color: var(--ghost-dim); font-size: 1.3rem; line-height: 1; transition: all var(--speed); }
.assistant-close:hover { border-color: var(--amber); color: var(--amber); }

.assistant-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.7rem; padding: 0.4rem 0.2rem; min-height: 200px; }
.ai-msg { max-width: 88%; padding: 0.7rem 0.95rem; font-size: 0.9rem; line-height: 1.55; border: 1px solid var(--line); }
.ai-msg--ai { align-self: flex-start; background: rgba(0,245,255,0.05); border-color: var(--cyan-dim); color: var(--ghost); }
.ai-msg--you { align-self: flex-end; background: rgba(255,159,0,0.08); border-color: rgba(255,159,0,0.35); color: var(--ghost); font-family: var(--font-data); font-weight: 600; letter-spacing: 0.03em; }

.rec-card { display: flex; flex-direction: column; gap: 0.7rem; }
.rec-head { font-size: 0.92rem; }
.rec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.rec-grid div { background: rgba(var(--ink),0.6); border: 1px solid var(--line); padding: 0.55rem 0.4rem; text-align: center; }
.rec-grid span { display: block; font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost-dim); }
.rec-grid b { font-family: var(--font-data); font-weight: 700; font-size: 0.95rem; color: var(--cyan); }
.rec-pro { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rec-pro span { font-family: var(--font-data); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255,159,0,0.35); padding: 0.25rem 0.5rem; }
.rec-why { font-size: 0.84rem; line-height: 1.55; color: var(--ghost-dim); }
.rec-apply { align-self: flex-start; margin-top: 0.2rem; }

.assistant-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.ai-chip { padding: 0.4rem 0.8rem; background: rgba(var(--ink),0.6); border: 1px solid var(--line); color: var(--ghost-dim); font-family: var(--font-data); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; transition: all var(--speed); }
.ai-chip:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }

.assistant-id { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.assistant-actions { display: flex; align-items: center; gap: 0.5rem; }
.ai-status {
  font-family: var(--font-data); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border: 1px solid var(--line);
  background: rgba(var(--ink),0.6); color: var(--ghost-dim);
  cursor: pointer; transition: all var(--speed);
}
.ai-status--on { color: var(--cyan); border-color: var(--cyan-dim); text-shadow: 0 0 10px rgba(0,245,255,0.4); }
.ai-status--off { color: var(--amber); border-color: rgba(255,159,0,0.4); }
.ai-status--off:hover { background: rgba(255,159,0,0.1); }
.ai-status--wait { color: var(--ghost-dim); }
.ai-clear {
  font-family: var(--font-data); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; min-height: 36px;
  background: none; border: 1px solid var(--line); color: var(--ghost-dim);
  transition: all var(--speed);
}
.ai-clear:hover { border-color: var(--cyan); color: var(--cyan); }

.ai-think { color: var(--ghost-dim); font-style: italic; }
.ai-think .dots i { animation: aiDot 1.2s infinite; opacity: 0.2; }
.ai-think .dots i:nth-child(2) { animation-delay: 0.2s; }
.ai-think .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDot { 0%,60%,100% { opacity: 0.2; } 30% { opacity: 1; } }

.ai-msg code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.84em; background: rgba(0,245,255,0.08);
  border: 1px solid var(--cyan-dim); padding: 0.05rem 0.35rem; color: var(--cyan);
}
.rec-apply--ai { margin-top: 0.7rem; }

.assistant-input { display: flex; gap: 0.5rem; }
#assistant-text {
  flex: 1; min-width: 0; min-height: 48px; padding: 0.7rem 1rem;
  background: rgba(var(--ink),0.7); border: 1px solid var(--line);
  color: var(--ghost); caret-color: var(--cyan);
  font-family: var(--font-body); font-size: 0.92rem;
  transition: border-color var(--speed), box-shadow var(--speed);
}
#assistant-text::placeholder { color: #4b5158; }
#assistant-text:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 14px rgba(0,245,255,0.12); }

/* ============================================================
   SLOGAN + VISION-ENCODER SECTION
   ============================================================ */
.hero-slogan {
  margin-top: 1.8rem;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
}

#chapter-mech { overflow: hidden; }
.vision-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;                 /* translucent */
  filter: blur(2.5px);           /* slightly blurred */
  pointer-events: none;
}
#chapter-mech::before {          /* vignette keeps the text readable */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13, 13, 13, 0.2), rgba(13, 13, 13, 0.85) 95%);
  pointer-events: none;
}
#chapter-mech .reveal { position: relative; z-index: 1; }

/* ============================================================
   PRINT CONSULTANT WIZARD
   ============================================================ */
.wizard-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.4rem 0 0.5rem;
}
.wizard-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  transition: width 0.35s ease;
}
.wizard-count {
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ghost-dim);
  margin-bottom: 0.8rem;
}
.wizard-body { flex: 1; overflow-y: auto; min-height: 280px; padding-right: 0.2rem; }
.wizard-q {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--ghost);
  margin-bottom: 1rem;
}
.wizard-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.wizard-opt {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(var(--ink), 0.55);
  border: 1px solid var(--line);
  color: var(--ghost);
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: all var(--speed);
}
.wizard-opt:hover { border-color: var(--cyan); color: var(--cyan); transform: translateX(4px); }
.wizard-opt--on { border-color: var(--cyan); background: rgba(0, 245, 255, 0.07); color: var(--cyan); }
.wizard-nav { display: flex; justify-content: flex-start; margin-top: 0.8rem; }

.rec-grid--wide { grid-template-columns: 1fr; margin-top: 0.5rem; }
.rec-grid--wide b { font-size: 0.85rem; }
.rec-reasons {
  margin: 0.6rem 0 0.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ghost-dim);
}
.rec-reasons b, .rec-reasons strong { color: var(--ghost); }

/* Consultation link (₹20 human engineer) */
.consult-link {
  display: block;
  margin-top: 0.9rem;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--amber);
  border: 1px dashed rgba(255, 159, 0, 0.4);
  transition: all var(--speed);
}
.consult-link:hover { border-color: var(--amber); box-shadow: 0 0 14px rgba(255, 159, 0, 0.2); }

/* ============================================================
   ECO SECTION — "Clean Air. Clean Planet." (3rd home screen)
   The image has a plain black background; mix-blend-mode: screen
   makes black pixels invisible, so it melts into the dark page —
   the CSS way of "cutting the background out".
   ============================================================ */
#chapter-eco {
  overflow: hidden;
  /* mostly-dark base: damps the engine video so the artwork stays clean,
     but stays slightly see-through — translucent like the vision section */
  background: rgba(13, 13, 13, 0.72);
}
.eco-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;                 /* translucent — same value as the vision section */
  filter: blur(2px);             /* soft focus so the headline stays the star */
  mix-blend-mode: screen;        /* cuts the plain black background */
  pointer-events: none;
}
#chapter-eco::before {           /* vignette keeps the text readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(13, 13, 13, 0.15), rgba(13, 13, 13, 0.85) 95%);
  pointer-events: none;
}
#chapter-eco .reveal { position: relative; z-index: 2; }
/* eco-green eyebrow — matches the leaves in the artwork */
.eyebrow--eco {
  color: #35d36b;
  text-shadow: 0 0 14px rgba(53, 211, 107, 0.45);
}

/* ============================================================
   VIEWER: sun button — white studio backdrop
   (second button under the light bulb; flips the 3D canvas to
   white for clients who prefer viewing parts on white)
   ============================================================ */
.sun-btn { top: 60px; }          /* .light-btn is at top:12px + 40px tall + 8px gap */
.sun-btn--on {
  border-color: #ffffff;
  color: #14171b;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.5);
}
/* keep the model readout readable on the white canvas */
.visualizer--white .model-readout { color: #3a4046; text-shadow: none; }

/* ============================================================
   VIEWER LOADING OVERLAY
   Ring + scan animate with transform (compositor-driven), so they
   keep spinning even while the main thread is blocked parsing a big
   mesh — the page stays alive instead of looking frozen.
   ============================================================ */
.viewer-loading {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  background: rgba(8, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  overflow: hidden;
}
.viewer-loading[hidden] { display: none; }
.vl-scan {
  position: absolute; left: 0; right: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 245, 255, 0.10), transparent);
  animation: vl-sweep 1.6s linear infinite;
}
@keyframes vl-sweep {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(330%); }
}
.vl-core { position: relative; text-align: center; padding: 1rem; }
.vl-ring {
  width: 62px; height: 62px; margin: 0 auto 1.1rem;
  border: 3px solid rgba(0, 245, 255, 0.16);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: vl-spin 0.9s linear infinite;
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.35);
}
@keyframes vl-spin { to { transform: rotate(360deg); } }
.vl-status {
  font-family: var(--font-data); font-weight: 700;
  letter-spacing: 0.18em; font-size: 0.9rem;
  color: var(--cyan); text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}
.vl-bar {
  width: 200px; max-width: 60%; height: 5px;
  margin: 0.8rem auto 0.6rem;
  background: rgba(255, 255, 255, 0.1); overflow: hidden;
}
.vl-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
  transition: width 0.2s ease;
}
.vl-hint {
  font-family: var(--font-data); font-size: 0.7rem;
  letter-spacing: 0.14em; color: var(--ghost-dim); text-transform: uppercase;
}

/* ============================================================
   PRODUCTS — plain white showroom
   (customers browse and buy here, so this zone flips to a clean
   white look while the rest of the site stays dark)
   ============================================================ */
.zone--light {
  background: #f5f6f8;           /* opaque — covers the dark video/canvas behind */
}
.zone--light .locked-panel {
  background: #ffffff;
  border-color: #e2e5ea;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 14px 44px rgba(15, 20, 30, 0.10);
}
.zone--light .locked-panel h2 { color: #14171b; }
.zone--light .locked-panel > p { color: #555c66; }
.zone--light .bracketed::before,
.zone--light .bracketed::after { border-color: #14b8c9; opacity: 0.85; }
.zone--light .locked-panel > p.status-line { color: #b97400; }
.zone--light .warn-dot { background: #e08900; box-shadow: 0 0 10px rgba(224, 137, 0, 0.7); }
/* search + email form flip to light styling */
.zone--light .search-box {
  background: #ffffff;
  border-color: #d6dae1;
  color: #14171b;
}
.zone--light .search-box input,
.zone--light .beacon-form input[type="email"] {
  background: #ffffff;
  color: #14171b;
  border-color: #d6dae1;
}
.zone--light .search-box input::placeholder,
.zone--light .beacon-form input[type="email"]::placeholder { color: #9aa1ab; }
.zone--light .beacon-form input[type="email"]:focus { border-color: #14b8c9; box-shadow: 0 0 12px rgba(20, 184, 201, 0.25); }
.zone--light .beacon-prefix { color: #9aa1ab; }
.zone--light .btn {
  background: linear-gradient(180deg, #ffffff, #eef0f3);
  border-color: #cfd4db;
  color: #23272d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.zone--light .btn:hover { border-color: #14b8c9; color: #0b7d8a; }

/* ============================================================
   ACCOUNT BUTTON + PANEL
   ============================================================ */
.account-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(var(--ink), 0.6);
  border: 1px solid var(--line);
  color: var(--ghost-dim);
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  font-family: var(--font-data); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: all var(--speed);
  margin-left: auto;
}
.account-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.account-btn--in { border-color: var(--cyan-dim); color: var(--ghost); }
.account-avatar {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.10);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
}
.account-avatar svg { width: 18px; height: 18px; }
.account-initials { font-family: var(--font-data); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; }
.account-sub { color: var(--ghost-dim); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1rem; }
.account-sub--err { color: var(--amber); }
.account-form { display: flex; flex-direction: column; gap: 0.15rem; }
.account-form input, .account-form textarea {
  background: rgba(var(--ink), 0.65);
  border: 1px solid var(--line);
  color: var(--ghost);
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.7rem;
  width: 100%;
}
.account-form input:focus, .account-form textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.15);
}
.account-note {
  font-family: var(--font-data); font-size: 0.72rem;
  letter-spacing: 0.05em; line-height: 1.6;
  color: var(--ghost-dim); margin: 0.2rem 0 1rem;
}
.account-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
#google-slot:not(:empty) { margin-bottom: 1rem; }
@media (max-width: 820px) {
  .account-label { display: none; }
  .account-btn { margin-left: auto; margin-right: 0.4rem; padding: 0.3rem; }
}

/* ============================================================
   VIEWER ACTIONS — send file / report a problem
   ============================================================ */
/* Sits in the left grid column, directly beneath the 3D viewer */
.viewer-side { grid-column: 1; }
@media (max-width: 980px) { .viewer-side { grid-column: auto; } }
.viewer-actions {
  display: flex; gap: 0.7rem; flex-wrap: wrap;
}
.viewer-actions .btn { flex: 1 1 200px; min-height: 46px; }
.btn-ic {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.8rem; font-weight: 700; line-height: 1;
  border: 1px solid currentColor;
}
.btn--send { border-color: var(--cyan); color: var(--cyan); }
.btn--send:hover { background: rgba(0, 245, 255, 0.10); box-shadow: 0 0 20px rgba(0, 245, 255, 0.22); }
.btn--issue { border-color: rgba(255, 159, 0, 0.6); color: var(--amber); }
.btn--issue:hover { background: rgba(255, 159, 0, 0.10); box-shadow: 0 0 20px rgba(255, 159, 0, 0.2); }
.viewer-actions-note {
  margin-top: 0.55rem;
  font-family: var(--font-data); font-size: 0.74rem;
  letter-spacing: 0.04em; line-height: 1.6; color: var(--ghost-dim);
}

/* ============================================================
   TERMS AGREEMENT AT CHECKOUT
   ============================================================ */
.tnc-agree {
  display: flex; gap: 0.65rem; align-items: flex-start;
  margin: 1rem 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(var(--ink), 0.5);
  font-size: 0.86rem; line-height: 1.6; color: var(--ghost-dim);
  cursor: pointer;
}
.tnc-agree input {
  flex: 0 0 auto; width: 20px; height: 20px;
  margin-top: 0.1rem; accent-color: var(--cyan); cursor: pointer;
}
.tnc-inline {
  background: none; border: none; padding: 0;
  color: var(--cyan); font: inherit; cursor: pointer;
  border-bottom: 1px dotted var(--cyan-dim);
}
.tnc-inline:hover { color: var(--ghost); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { border-color: var(--line); color: var(--ghost); background: linear-gradient(180deg, rgba(38,42,47,0.75), rgba(15,17,19,0.85)); }

/* ============================================================
   FIELD NOTES + WARNINGS (calibration, materials, infill)
   ============================================================ */
.field-note {
  margin-top: 0.7rem;
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--ghost-dim);
}
.field-note strong { color: var(--ghost); font-weight: 700; }
.field-warning {
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px dashed rgba(255, 159, 0, 0.45);
  background: rgba(255, 159, 0, 0.06);
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--ghost-dim);
}
.field-warning strong { color: var(--amber); font-weight: 700; }

/* ============================================================
   TERMS & CONDITIONS MODAL
   ============================================================ */
.tnc-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ghost-dim);
}
.tnc-body h3 {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 1.2rem 0 0.5rem;
}
.tnc-body ul { margin: 0 0 0.4rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.tnc-body strong { color: var(--ghost); }
.tnc-intro, .tnc-outro { color: var(--ghost); }
.tnc-outro { margin-top: 1.2rem; }
.tnc-open { cursor: pointer; }
button.consult-link {
  background: none; border: none; padding: 0;
  text-align: left; cursor: pointer;
  display: block; margin-top: 0.6rem;
}
.footer-tnc {
  background: none; border: none; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--cyan); cursor: pointer;
  border-bottom: 1px dotted var(--cyan-dim);
}
.footer-tnc:hover { color: var(--ghost); }

/* ============================================================
   MULTICOLOUR MODELS — locked swatches + file-colour note
   ============================================================ */
/* the model's own colours win — filament swatches go dormant */
.swatches--locked { opacity: 0.35; pointer-events: none; filter: saturate(0.4); }
.mc-note {
  margin-top: 0.7rem;
  padding: 0.6rem 0.8rem;
  border: 1px dashed var(--cyan-dim);
  background: rgba(0, 245, 255, 0.05);
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ghost);
  line-height: 1.7;
}
.mc-dot {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--dot);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-right: 3px;
  vertical-align: -2px;
}
.mc-head { margin-bottom: 0.6rem; line-height: 1.6; }
.mc-row {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mc-orig { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 92px; color: var(--ghost-dim); }
.mc-chips { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.mc-chip {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--dot);
  border: 2px solid var(--line);
  transition: transform var(--speed), border-color var(--speed);
}
.mc-chip:hover { transform: scale(1.15); border-color: var(--ghost); }
.mc-chip--on { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.28); transform: scale(1.12); }
.mc-reset {
  background: transparent; border: 1px solid var(--line);
  color: var(--ghost-dim); font-family: var(--font-data);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 0.22rem 0.45rem;
}
.mc-reset:hover { border-color: var(--cyan); color: var(--cyan); }
.mc-reset--on { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 245, 255, 0.08); }

/* ============================================================
   PRINT CONSULTANT — 2-step picker additions
   ============================================================ */
/* property chips (step 2) wrap in a grid instead of a long column */
.wizard-opts--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
/* multi-select chip: shows an empty ring that becomes a tick */
.wizard-opt--multi { display: flex; align-items: center; gap: 0.6rem; }
.wizard-opt--multi::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all var(--speed);
}
.wizard-opt--multi.wizard-opt--on::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}
.wizard-go { margin-top: 1rem; width: 100%; }
.wizard-hint {
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ghost-dim);
  margin: 0.6rem 0 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .forge-layout { grid-template-columns: 1fr; }
  .machine-cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  #nav-burger { display: flex; }
  .navbar { padding: 0.7rem 1.1rem; }

  .forge-wrap { padding: calc(var(--bars-h, 124px) + 1rem) 1rem 12rem; }

  .forge-bar {
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    padding: 0.8rem 1.1rem;
  }
  .bar-total { margin-left: 0; text-align: left; order: 3; }
  #proceed-btn { order: 4; margin-left: auto; }
}

@media (max-width: 480px) {
  .mega { font-size: clamp(3.4rem, 17vw, 5rem); }
  .dropzone { inset: 8%; }
  .beacon-row { flex-direction: column; }
  .beacon-prefix { display: none; }
  .wizard-opts--grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION — quality floor
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   WELCOME OFFER — the "verify your email, get 10% off" box
   ============================================================
   Same idea as the coupon pop-up on a big printer store, but in our own
   colours: dark glass, a cyan edge, and the three brand accents on the
   coupon artwork. Two columns on a laptop, stacked on a phone.
   ============================================================ */
.offer-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.1rem;
}
.offer-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 5, 6, 0.74);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.offer-box {
  position: relative; z-index: 1;
  width: min(760px, 100%);
  max-height: 92vh; overflow-y: auto;
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0,245,255,0.13), transparent 58%),
    radial-gradient(120% 140% at 100% 100%, rgba(255,46,200,0.10), transparent 55%),
    var(--glass-heavy);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--cyan-dim);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  animation: aiPop 0.34s ease-out;
}
.offer-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  color: var(--ghost-dim);
  font-size: 1.25rem; line-height: 1;
  transition: all var(--speed);
}
.offer-close:hover { border-color: var(--amber); color: var(--amber); }

/* ---- left: coupon artwork ---- */
.offer-art {
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem 0.8rem;
  background: linear-gradient(150deg, rgba(0,245,255,0.10), rgba(255,159,0,0.07));
  border-right: 1px solid var(--line);
}
.offer-art svg { width: 100%; max-width: 230px; height: auto; filter: drop-shadow(0 10px 26px rgba(0,0,0,0.55)); }

/* ---- right: form / result ---- */
.offer-panel { padding: 1.7rem 1.6rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.offer-brand { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; }
.offer-brand img { height: 26px; width: auto; }
.offer-brand span {
  font-family: var(--font-brand); font-size: 0.78rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ghost-dim);
}
.offer-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.35rem);
  line-height: 1.02; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ghost);
}
.offer-title em { font-style: normal; color: var(--cyan); }
.offer-sub {
  margin: 0.55rem 0 1.15rem;
  font-size: 0.92rem; line-height: 1.5; color: var(--ghost-dim);
}

.offer-form { display: flex; border: 1px solid var(--cyan-dim); background: rgba(0,0,0,0.34); }
.offer-form input {
  flex: 1 1 auto; min-width: 0;
  padding: 0.85rem 0.95rem;
  background: none; border: none; outline: none;
  color: var(--ghost); font-family: var(--font-body); font-size: 0.95rem;
}
.offer-form input::placeholder { color: #6B7280; }
.offer-form input:focus { background: rgba(0,245,255,0.05); }
.offer-submit {
  flex: 0 0 auto;
  padding: 0 1.5rem;
  background: var(--cyan); color: #04262B;
  border: none;
  font-family: var(--font-data); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: filter var(--speed);
}
.offer-submit:hover { filter: brightness(1.14); }
.offer-submit:disabled { opacity: 0.55; cursor: default; }

.offer-msg {
  min-height: 1.15rem; margin-top: 0.5rem;
  font-family: var(--font-data); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber);
}
.offer-msg--ok { color: var(--cyan); }

.offer-consent { display: flex; gap: 0.6rem; margin-top: 0.9rem; font-size: 0.76rem; line-height: 1.5; color: var(--ghost-dim); }
.offer-consent input { margin-top: 0.18rem; accent-color: var(--cyan); flex: 0 0 auto; }
.offer-link { background: none; border: none; padding: 0; color: var(--cyan); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---- the issued code ---- */
.offer-tick {
  width: 42px; height: 42px; margin-bottom: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--cyan); color: var(--cyan); font-size: 1.3rem;
}
.offer-code-row { display: flex; align-items: stretch; gap: 0.6rem; }
.offer-code {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 0.85rem 0.6rem;
  background: rgba(0,245,255,0.07);
  border: 1px dashed var(--cyan);
  color: var(--cyan);
  font-family: var(--font-data); font-weight: 700;
  font-size: 1.25rem; letter-spacing: 0.22em;
  user-select: all;      /* one tap selects the whole code */
  word-break: break-all;
}
.offer-copy {
  flex: 0 0 auto; padding: 0 1.1rem;
  background: none; border: 1px solid var(--cyan-dim); color: var(--ghost);
  font-family: var(--font-data); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: all var(--speed);
}
.offer-copy:hover { border-color: var(--cyan); color: var(--cyan); }
.offer-fine { margin-top: 0.75rem; font-size: 0.76rem; line-height: 1.55; color: var(--ghost-dim); }
.offer-secondary {
  margin-top: 1rem; align-self: flex-start;
  background: none; border: 1px solid var(--line); color: var(--ghost-dim);
  padding: 0.6rem 1.1rem;
  font-family: var(--font-data); font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: all var(--speed);
}
.offer-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

@media (max-width: 700px) {
  .offer-box { grid-template-columns: 1fr; }
  .offer-art { border-right: none; border-bottom: 1px solid var(--line); padding: 1rem; }
  .offer-art svg { max-width: 150px; }
  .offer-panel { padding: 1.3rem 1.15rem 1.25rem; }
  .offer-form { flex-wrap: wrap; }
  .offer-submit { flex: 1 0 100%; padding: 0.8rem; }
}

/* the small "Get 10% off" link in the footer, which reopens the box */
.footer-offer {
  background: none; border: none; padding: 0;
  color: var(--cyan); font: inherit; text-decoration: underline; cursor: pointer;
}
.footer-offer:hover { color: var(--amber); }

/* ============================================================
   COUPONS & OFFERS — inside the account panel
   ============================================================ */
.acc-coupons { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.acc-coupons-head {
  font-family: var(--font-data); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ghost-dim);
  margin-bottom: 0.7rem;
}
.acc-coupon-empty { font-size: 0.82rem; color: var(--ghost-dim); line-height: 1.55; }
.coupon-card {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.75rem 0.85rem; margin-bottom: 0.6rem;
  background: rgba(0,245,255,0.05);
  border: 1px solid var(--cyan-dim);
}
.coupon-card--dead { background: rgba(255,255,255,0.03); border-color: var(--line); opacity: 0.62; }
.coupon-main { flex: 1 1 190px; min-width: 0; }
.coupon-code {
  display: block;
  font-family: var(--font-data); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.18em; color: var(--cyan); user-select: all; word-break: break-all;
}
.coupon-card--dead .coupon-code { color: var(--ghost-dim); text-decoration: line-through; }
.coupon-meta { font-size: 0.73rem; color: var(--ghost-dim); margin-top: 0.18rem; }
.coupon-state {
  flex: 0 0 auto;
  font-family: var(--font-data); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.28rem 0.55rem; border: 1px solid currentColor;
}
.coupon-state--live { color: var(--cyan); }
.coupon-state--used { color: var(--ghost-dim); }
.coupon-state--gone { color: var(--amber); }
.coupon-copy {
  flex: 0 0 auto; padding: 0.4rem 0.8rem;
  background: none; border: 1px solid var(--line); color: var(--ghost);
  font-family: var(--font-data); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: all var(--speed);
}
.coupon-copy:hover { border-color: var(--cyan); color: var(--cyan); }
