/* ==========================================================
   Cyberportal storefront styles
  The logo supplies the blue; the interface uses neutral surfaces
  with a restrained warm accent.
   ========================================================== */
:root {
  color-scheme: light;
  --ink: #F9FAFB;
  --ink-2: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #F3F4F6;
  --line: #E5E7EB;
  --line-2: #D1D5DB;
  --brand: #B45309;
  --brand-hi: #92400E;
  --brand-soft: #005CE2;
  --brand-deep: #78350F;
  --gold: #B45309;
  --button-text: #FFFFFF;
  --text: #292524;
  --muted: #57534E;
  --danger: #B91C1C;
  --ok: #15803D;
  --input-bg: #FFFFFF;
  --success-bg: #ECFDF5;
  --success-text: #166534;
  --warning-bg: #FFFBEB;
  --warning-text: #92400E;
  --error-bg: #FEF2F2;
  --error-text: #991B1B;
  --upload-bg: #F9FAFB;
  --upload-shadow: rgba(15, 23, 42, 0.06);
  --upload-hover: rgba(0, 92, 226, 0.08);
  --f-display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #18181B;
    --ink-2: #202024;
    --panel: #27272A;
    --panel-2: #3F3F46;
    --line: #3F3F46;
    --line-2: #52525B;
    --brand: #F0A85C;
    --brand-hi: #F6BC7A;
    --brand-soft: #93C5FD;
    --brand-deep: #F0A85C;
    --gold: #F0A85C;
    --button-text: #18181B;
    --text: #F4F4F5;
    --muted: #C4C4CC;
    --danger: #FDA4AF;
    --ok: #86EFAC;
    --input-bg: #202024;
    --success-bg: rgba(61,219,165,.12);
    --success-text: #8FF0CD;
    --warning-bg: rgba(255,200,61,.14);
    --warning-text: #F0A85C;
    --error-bg: rgba(255,118,134,.14);
    --error-text: #FDA4AF;
    --upload-bg: linear-gradient(180deg, rgba(14, 25, 41, 0.98), rgba(11, 22, 36, 0.95));
    --upload-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 12px 24px rgba(6, 11, 18, 0.8);
    --upload-hover: rgba(82, 122, 212, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ink); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s ease;
  box-shadow: 0 8px 18px rgba(17, 38, 77, 0.18);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(17, 38, 77, 0.22);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--button-text); }
.btn-primary:hover { background: var(--brand-hi); }
.btn-light { background: #fff; color: #292524; }
.btn-light:hover { background: var(--gold); color: #1b1400; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--line-2); }
.btn-outline { border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand); color: var(--button-text); }
.btn-gold { background: var(--gold); color: var(--button-text); }
.btn-gold:hover { background: var(--brand-hi); }
.btn-danger { border-color: rgba(255,118,134,.5); color: var(--danger); }
.btn-danger:hover { background: rgba(255,118,134,.12); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- top strip + admin bar ---------- */
.topbar { background: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.topbar b { color: var(--brand); font-weight: 700; }
.adminbar { background: linear-gradient(90deg, #f3c77a, #ebbd8a); color: #1a1509; font-size: 13px; font-weight: 700; }
.adminbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.adminbar a { text-decoration: underline; text-underline-offset: 3px; }
.adminbar button { background: #1a1509; color: #f7d58a; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 800; cursor: pointer; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.nav-menu { display: contents; }
.brand { display: inline-flex; align-items: center; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand img, .foot-brand img { height: 42px; width: auto; }
.brand-tag {
  display: inline-block; padding: 4px 7px; border-radius: 8px; border: 1px solid rgba(90,138,242,.32);
  background: rgba(90,138,242,.12); font-size: 8px; line-height: 1; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 800; color: var(--brand-soft); transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; }
.lab-strip {
  background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.lab-strip-inner {
  display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap;
  font-family: var(--f-display); font-size: clamp(.9rem, 1.5vw, 1.5rem); line-height: 1.15; letter-spacing: -.04em;
  color: var(--text); padding: 9px 0 11px;
}
.lab-name, .lab-location, .lab-status { white-space: nowrap; }
.lab-name { font-weight: 800; }
.lab-separator { color: var(--muted); }
.lab-location { color: var(--muted); font-weight: 500; }
.lab-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #2ed37b; box-shadow: 0 0 0 4px rgba(46,211,123,.18);
  display: inline-block;
}

.brand-tag { background: rgba(0,92,226,.08); border-color: rgba(0,92,226,.24); color: #174EA6; }
.nav-links > li > a, .account-link { color: var(--muted); }
.nav-links > li > a:hover, .nav-links > li:focus-within > a,
.nav-links > li > a[aria-current="page"], .account-link:hover { color: var(--text); background: var(--panel-2); }

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(24,24,27,.92); }
  .brand-tag { background: rgba(147,197,253,.1); border-color: rgba(147,197,253,.3); color: #BFDBFE; }
  .brand img, .foot-brand img { filter: brightness(1.6) saturate(.9); }
}
.nav-links > li { position: relative; padding: 8px 0; }
.nav-links > li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 20px;
}
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--muted); transition: color .15s, background .15s, border-color .15s;
  border: 1px solid transparent;
}
.nav-links > li > a:hover, .nav-links > li:focus-within > a, .nav-links > li > a[aria-current="page"] {
  color: var(--text); background: var(--panel-2); border-color: var(--line-2);
}
.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 18px 48px rgba(0,0,0,.18);
  list-style: none; margin: 0; display: none; z-index: 60;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: var(--muted); }
.sub a:hover { background: var(--panel-2); color: var(--text); }
.sub a.sub-all { color: var(--brand-soft); font-weight: 700; }
.sub > li { position: relative; }
.sub > li.has-nested > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nested-caret { width: 7px; height: 7px; flex: 0 0 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .65; }
.nested-sub {
  position: absolute; top: -8px; left: 100%; min-width: 220px; max-height: min(70vh, 420px); overflow-y: auto;
  padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel);
  box-shadow: 0 18px 48px rgba(0,0,0,.18); list-style: none; margin: 0; display: none; z-index: 61;
}
.has-nested:hover > .nested-sub, .has-nested:focus-within > .nested-sub { display: block; }
.nested-sub a { font-size: 14px; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.search { position: relative; }
.search input {
  width: 190px; padding: 10px 14px 10px 38px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--input-bg); transition: width .2s, border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { width: 250px; outline: none; border-color: var(--brand-hi); box-shadow: 0 0 0 3px rgba(90,138,242,.18); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.account-link { padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--muted); border-radius: 999px; }
.account-link:hover { color: var(--text); background: var(--panel-2); }
.menu-btn { display: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }

@media (max-width: 1020px) {
  .menu-btn { display: block; margin-left: auto; }
  .nav { position: relative; flex-wrap: wrap; gap: 12px; padding-block: 10px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 22px 46px rgba(0,0,0,.18);
  }
  .nav.open .nav-menu { display: block; }
  .nav.open .nav-links, .nav.open .nav-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-links { gap: 2px; }
  .nav-links > li > a { display: flex; justify-content: space-between; padding: 12px 10px; border-radius: 10px; }
  .sub { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 8px; min-width: 0; }
  .nested-sub { position: static; display: block; max-height: none; overflow: visible; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; min-width: 0; }
  .nested-sub a { padding: 8px 12px; font-size: 13px; }
  .caret, .nested-caret { display: none; }
  .nav-tools { flex-wrap: wrap; padding-bottom: 0; }
  body.menu-open { overflow: hidden; }
  .search { flex: 1 1 100%; }
  .search input, .search input:focus { width: 100%; }
}

/* ---------- notices ---------- */
.notices { padding-top: 16px; }
.notice { padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 8px; font-size: 15px; }
.notice-success { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--success-bg); color: var(--success-text); }
.notice-error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--error-bg); color: var(--error-text); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--text); background-color: var(--ink-2);
  background-image:
    radial-gradient(850px 460px at 88% 0%, rgba(180,83,9,.08), transparent 68%),
    linear-gradient(145deg, var(--ink) 0%, var(--ink-2) 58%, var(--panel-2) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(20px, 4vw, 40px); padding-block: clamp(32px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.06; max-width: 13ch; text-wrap: balance; }
.hero-lead { margin-top: 16px; max-width: 48ch; font-size: clamp(.98rem, 1.2vw, 1.08rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn-ghost { border-color: var(--line-2); color: var(--text); }
.hero .btn-ghost:hover { background: var(--panel-2); border-color: var(--line-2); }
.hero-art { justify-self: center; width: min(100%, 360px); perspective: 1200px; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,16,80,.55)); transform-style: preserve-3d; transition: transform .18s ease-out; }

.aperture { transform-style: preserve-3d; transition: transform .18s ease-out; }
.aperture .blade { transform-box: view-box; transform-origin: 200px 200px; animation: bladeOpen 1.5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
.aperture .core { transform-box: view-box; transform-origin: 200px 200px; animation: coreIn 1.2s .5s cubic-bezier(.2,.8,.2,1) both; }
.aperture .trace { stroke-dasharray: 400; stroke-dashoffset: 400; animation: traceDraw 1.6s .9s ease-out forwards; }
@keyframes bladeOpen { from { transform: rotate(-110deg) scale(.35); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes coreIn { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes traceDraw { to { stroke-dashoffset: 0; } }

.facts { background: var(--panel-2); border-block: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts li { padding: 18px 20px; border-left: 1px solid var(--line-2); color: var(--muted); font-size: 14px; line-height: 1.4; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 2px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(70%, 300px); }
  .hero h1 { max-width: none; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

/* ---------- section headings ---------- */
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); }
.s-head h2 { font-size: clamp(1.5rem, 2.7vw, 2.2rem); max-width: 22ch; text-wrap: balance; }
.s-head p { color: var(--muted); max-width: 46ch; margin-top: 10px; }

/* ---------- service tiles ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(22px, 3vw, 34px); border-radius: 8px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s ease;
  transform-style: preserve-3d;
  box-shadow: 0 10px 24px rgba(3, 7, 20, 0.12);
}
.tile:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: 0 18px 35px rgba(7, 16, 32, 0.12); }
.tile-hw, .tile-fix, .tile-dev { grid-column: auto; }
.tile h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.tile p { color: var(--muted); margin-top: 10px; max-width: 46ch; }
.tile-ico { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); margin-bottom: 22px; }
.tile-ico svg { width: 26px; height: 26px; }
.tile-hw .tile-ico, .tile-fix .tile-ico, .tile-dev .tile-ico { color: var(--brand-deep); }
.tile-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tile-list li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.tile-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--brand-deep); }
.tile-link::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .2s; }
.tile:hover .tile-link::after { width: 32px; }
.tile-hex { position: absolute; right: -60px; bottom: -70px; width: 300px; opacity: .13; pointer-events: none; }

@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr; }
  .tile-hw, .tile-fix, .tile-dev { grid-column: auto; }
}

/* ---------- product cards ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s ease; transform-style: preserve-3d; box-shadow: 0 10px 24px rgba(3, 7, 20, 0.1); }
.card:hover { border-color: var(--brand-hi); transform: translateY(-4px) scale(1.01); box-shadow: 0 18px 36px rgba(7, 16, 32, 0.18); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #16224d, var(--ink-2) 75%); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-placeholder { width: 84px; color: var(--line-2); }
.chip { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(6,10,24,.82); border: 1px solid rgba(255,255,255,.28); font-size: 12.5px; font-weight: 600; color: #fff; backdrop-filter: blur(6px); }
.stock { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: rgba(6,10,24,.82); color: #fff; font-size: 12.5px; font-weight: 600; max-width: calc(100% - 24px); }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.stock span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-low i { background: var(--gold); }
.stock-out i { background: var(--danger); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.card-cat { font-size: 13px; color: var(--brand-soft); font-weight: 600; }
.card-title { font-family: var(--f-body); font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-sum { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.price.quote { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: 0; }
.card-go { font-size: 14px; font-weight: 700; color: var(--brand-soft); }
.card-admin { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; border-top: 1px dashed var(--line-2); font-size: 13px; font-weight: 600; }
.card-admin a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.card-admin button { background: none; border: 0; color: var(--danger); cursor: pointer; font-weight: 600; padding: 0; }

.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(36px, 7vw, 72px) 20px; border: 1px dashed var(--line-2); border-radius: 22px; background: var(--ink-2); }
.empty svg { width: 76px; color: var(--line-2); }
.empty h3 { font-size: 1.25rem; }
.empty p { color: var(--muted); max-width: 46ch; }

/* ---------- process steps ---------- */
.process { background: var(--ink-2); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.process h2 { font-size: clamp(1.5rem, 2.7vw, 2.2rem); text-wrap: balance; }
.process-lead { color: var(--muted); margin-top: 14px; max-width: 40ch; }
.process .btn { margin-top: 28px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--f-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--brand-hi); }
.steps h3 { font-family: var(--f-body); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.steps p { color: var(--muted); margin-top: 4px; }
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- closing call to action ---------- */
.cta-slab { position: relative; overflow: hidden; background: var(--brand); color: var(--button-text); border-radius: 8px; padding: clamp(32px, 6vw, 68px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-slab::after { content: ""; position: absolute; right: -80px; top: -90px; width: 340px; height: 340px; background: rgba(255,255,255,.1); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); pointer-events: none; }
.cta-slab h2 { font-size: clamp(1.4rem, 2.8vw, 2.3rem); max-width: 20ch; text-wrap: balance; position: relative; z-index: 1; }
.cta-slab p { margin-top: 12px; color: color-mix(in srgb, var(--button-text) 88%, transparent); max-width: 46ch; position: relative; z-index: 1; }
.cta-slab .btn { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: var(--ink-2); border-top: 1px solid var(--line); padding-block: 52px 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand img { height: 42px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); max-width: 34ch; font-size: 15px; }
.site-footer h4 { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a, .site-footer li { color: var(--muted); font-size: 15px; }
.site-footer li a:hover { color: var(--brand-soft); }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- catalog pages ---------- */
.page-head { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-bottom: 1px solid var(--line); padding-block: clamp(30px, 5vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--brand-soft); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
.page-head p { color: var(--muted); max-width: 58ch; margin-top: 12px; font-size: 1.05rem; }
.legal-content { max-width: 800px; display: grid; gap: 24px; }
.legal-content section { border-top: 1px solid var(--line); padding-top: 20px; }
.legal-content h2 { color: var(--text); font-size: 1.15rem; font-weight: 700; }
.legal-content p { margin-top: 8px; color: var(--muted); line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 600; color: var(--muted); transition: all .15s; }
.pill:hover { color: var(--brand-soft); border-color: var(--brand-soft); }
.pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 18px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tool { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.tool label { font-weight: 600; }
.select, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--input-bg); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.select { width: auto; padding: 9px 12px; }
.select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-hi); box-shadow: 0 0 0 3px rgba(47,123,255,.25); }
.tool input[type=range] { accent-color: var(--brand-hi); width: 170px; }
.tool output { color: var(--text); font-weight: 700; min-width: 64px; }
.toolbar-count { margin-left: auto; color: var(--muted); font-size: 14px; }
.toolbar-reset { background: none; border: 0; color: var(--brand-soft); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.no-match { display: none; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "gallery buy" "specs buy"; grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 56px); row-gap: 0; align-items: start; padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); }
.pdp .gallery { grid-area: gallery; } .pdp .specs { grid-area: specs; } .pdp .buy { grid-area: buy; }
.gallery { border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, #16224d, var(--ink-2) 78%); aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: clamp(14px, 3vw, 36px); }
.gallery .card-placeholder { width: 120px; }
.product-gallery { display: flex; flex-direction: column; gap: 14px; }
.product-gallery .gallery-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: rgba(10, 17, 30, 0.9); border: 1px solid var(--line); }
.product-gallery .gallery-main-trigger { width: 100%; height: 100%; background: transparent; border: 0; padding: 0; cursor: pointer; }
.product-gallery .gallery-main-trigger img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-gallery .gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(8,12,20,0.68); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.product-gallery .gallery-nav:hover { background: rgba(30,74,184,0.72); }
.product-gallery .gallery-nav-prev { left: 12px; }
.product-gallery .gallery-nav-next { right: 12px; }
.product-gallery .gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.product-gallery .gallery-thumb { width: 72px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.2); background: rgba(9,13,22,.7); padding: 0; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.product-gallery .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.product-gallery .gallery-thumb.is-active { border-color: var(--brand-soft); }
.product-lightbox { position: fixed; inset: 0; background: rgba(2,6,18,.86); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 24px; }
.product-lightbox.open { display: flex; }
.product-lightbox-inner { position: relative; width: min(90vw, 1100px); background: rgba(8,12,20,.9); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.product-lightbox-main { display: grid; place-items: center; min-height: 60vh; }
.product-lightbox-main img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 14px; }
.product-lightbox-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-top: 12px; }
.product-lightbox-thumbs button { width: 72px; height: 56px; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255,255,255,.2); background: rgba(9,13,22,.7); padding: 0; cursor: pointer; }
.product-lightbox-thumbs button img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.product-lightbox-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.specs { margin-top: 32px; }
.specs h2 { font-size: 1.25rem; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 0; }
.spec-table th { width: 34%; color: var(--muted); font-weight: 600; background: var(--panel); }
.spec-table td { background: var(--ink-2); }
.spec-note td { color: var(--text); }
.buy { position: sticky; top: 92px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); padding: clamp(20px, 3vw, 30px); }
.buy-cat { font-size: 14px; font-weight: 600; color: var(--brand-soft); }
.buy h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 8px 0 14px; }
.buy-price { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; }
.buy-price.quote { font-family: var(--f-body); font-size: 1.4rem; color: var(--gold); letter-spacing: 0; }
.buy-sum { color: var(--muted); margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--success-bg); color: var(--success-text); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.badge-low { background: var(--warning-bg); color: var(--warning-text); } .badge-low i { background: var(--gold); }
.badge-out { background: var(--error-bg); color: var(--error-text); } .badge-out i { background: var(--danger); }
.buy-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.buy-form h2 { font-family: var(--f-body); font-size: 1.1rem; letter-spacing: 0; }
.buy-form .hint { color: var(--muted); font-size: 14px; margin-top: -8px; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; grid-template-areas: "gallery" "buy" "specs"; grid-template-rows: auto; row-gap: 24px; } .buy { position: static; } .specs { margin-top: 8px; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field .opt { color: var(--muted); font-weight: 400; }
.currency-input { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--input-bg); }
.currency-input span { color: var(--muted); font-weight: 700; }
.currency-input input { flex: 1; min-width: 0; width: 100%; padding: 10px 0; border: 0; background: transparent; color: var(--text); }
.currency-input:focus-within { border-color: var(--brand-hi); box-shadow: 0 0 0 3px rgba(90,138,242,.18); }
.currency-input input:focus { outline: 0; box-shadow: none; }
.legal-consent-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(3,8,16,.76); backdrop-filter: blur(8px); }
.legal-consent-overlay[hidden] { display: none; }
.legal-consent-dialog { width: min(100%, 480px); padding: 26px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.legal-consent-eyebrow { color: var(--brand-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.legal-consent-dialog h2 { margin-top: 6px; color: var(--text); font-size: 22px; font-weight: 800; }
.legal-consent-dialog > p:not(.legal-consent-eyebrow) { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.legal-consent-links { display: flex; gap: 16px; margin-top: 16px; font-size: 14px; font-weight: 700; }
.legal-consent-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--text); font-size: 13px; line-height: 1.5; }
.legal-consent-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--brand); }
.legal-consent-dialog button { margin-top: 16px; }
.legal-consent-dialog button:disabled { cursor: not-allowed; opacity: .5; }
.legal-consent-note { border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px !important; }
body.legal-consent-open { overflow: hidden; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.multi-file-wrap { display: grid; gap: 10px; }
.multi-file-stack { display: grid; gap: 8px; }
.multi-file-zone {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px;
  border-radius: 18px; border: 1px dashed var(--line-2); background: var(--upload-bg);
  color: var(--muted); cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--upload-shadow);
}
.multi-file-zone:hover, .multi-file-zone.dragover {
  border-color: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px var(--upload-hover);
}
.multi-file-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.multi-file-zone-inner { display: flex; align-items: center; gap: 12px; padding: 18px; text-align: center; font-size: 15px; line-height: 1.4; }
.upload-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--brand-soft) 10%, var(--panel)); color: var(--brand-soft); font-size: 22px; }
.multi-file-preview-row { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-gallery { display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 14px; }
.saved-gallery-item { position: relative; width: 82px; height: 82px; }
.saved-gallery-photo { position: relative; display: block; width: 82px; height: 82px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: var(--ink); }
.saved-gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.saved-gallery-photo:hover img { transform: scale(1.06); }
.saved-gallery-photo span { position: absolute; right: 4px; bottom: 4px; left: 4px; overflow: hidden; padding: 2px 4px; border-radius: 5px; background: rgba(3,8,16,.84); color: #fff; font-size: 10px; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.saved-gallery-cover, .multi-file-cover { position: absolute; right: 4px; bottom: 4px; left: 4px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 4px; border-radius: 5px; background: rgba(3,8,16,.9); color: #fff; font-size: 10px; line-height: 1.2; cursor: pointer; }
.saved-gallery-cover input, .multi-file-cover input { width: 12px; height: 12px; margin: 0; accent-color: var(--brand-soft); }
.saved-gallery-remove { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(3,8,16,.88); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.saved-gallery-remove:hover { border-color: #ff8585; background: #a82d39; }
.saved-gallery-status { min-height: 0; color: var(--muted); font-size: 11px; }
.multi-file-thumb {
  position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(10,16,28,0.8);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}
.multi-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.multi-file-thumb .remove-thumb {
  position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.72); color: #fff; font-size: 12px; line-height: 1; cursor: pointer;
}
.multi-file-add-more {
  width: 64px; height: 64px; border-radius: 12px; border: 1px dashed rgba(147, 180, 255, 0.7); background: rgba(12, 20, 32, 0.7); color: var(--brand-soft); font-size: 28px; display: grid; place-items: center; cursor: pointer;
}
.multi-file-input { display: none; }
.add-file-btn { border-radius: 999px; justify-self: start; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(32px, 6vw, 72px); }
.contact-info h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); text-wrap: balance; }
.contact-info > p { color: var(--muted); margin-top: 14px; max-width: 44ch; }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--muted); }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.checklist b { color: var(--text); font-weight: 600; }
.form-card { border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; }
.signed-in { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--success-bg); color: var(--success-text); font-size: 14px; font-weight: 600; justify-self: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- account pages ---------- */
.auth { width: min(100%, 460px); margin: clamp(32px, 7vw, 80px) auto; border-radius: 24px; border: 1px solid var(--line-2); background: var(--panel); padding: clamp(24px, 5vw, 42px); display: grid; gap: 18px; }
.auth h1 { font-size: 1.7rem; }
.auth > p { color: var(--muted); margin-top: -6px; }
.auth form { display: grid; gap: 14px; }
.auth-alt { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 15px; }
.auth-alt a { color: var(--brand-soft); font-weight: 700; }
.code-input { text-align: center; font-family: var(--f-display); font-size: 1.8rem; letter-spacing: .4em; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: clamp(28px, 5vw, 56px) 24px; }
.dash-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.order-list { display: grid; gap: 12px; padding-bottom: 72px; }
.order { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.order h3 { font-family: var(--f-body); font-size: 1.05rem; letter-spacing: 0; }
.order small { color: var(--muted); display: block; margin-top: 2px; }
.status { padding: 5px 14px; border-radius: 999px; background: rgba(47,123,255,.16); color: var(--brand-soft); font-size: 13.5px; font-weight: 700; }

/* ---------- error page + custom page ---------- */
.error-page { display: grid; justify-items: center; gap: 16px; text-align: center; padding-block: clamp(56px, 12vw, 140px); }
.error-page .code { font-family: var(--f-display); font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; line-height: 1; color: var(--brand); }
.error-page p { color: var(--muted); max-width: 46ch; }
.rich { color: var(--muted); max-width: 68ch; white-space: pre-line; margin-top: 14px; font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .aperture .trace { stroke-dashoffset: 0; }
}

/* ---------- misc ---------- */
[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2,4,12,.78); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { width: min(100%, 560px); max-height: 92vh; overflow-y: auto; border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); padding: 26px; display: grid; gap: 14px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 1.25rem; }
.modal-x { background: var(--panel-2); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--brand-hi); }
.field input[type=file] { padding: 9px; }
