/* Layout concept: a dark inspection bay — one pinned 3D stage the visitor scrolls through,
   then a dealer console (left rail + glass panels) where the trading happens. */
:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --bg-2: #0f1318;
  --bg-3: #151a21;
  --glass: rgba(22, 28, 37, 0.62);
  --glass-2: rgba(30, 38, 50, 0.78);
  --line: rgba(150, 182, 224, 0.13);
  --line-2: rgba(150, 182, 224, 0.26);
  --fg: #edf1f6;
  --fg-2: #a9b4c3;
  --mute: #6d7988;
  --accent: #3d9bff;
  --accent-2: #8ec7ff;
  --accent-ink: #04111f;
  --glow: rgba(61, 155, 255, 0.42);
  --ok: #35d39b;
  --warn: #ffb547;
  --bad: #ff5c64;
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.55; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(10, 12, 15, 0.85); }
a { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-2); }
.muted { color: var(--fg-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--fg); font-weight: 600; letter-spacing: 0.01em; text-decoration: none; transition: background 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.2s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 24px -6px var(--glow); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 40px -12px var(--glow); }
.btn.primary:hover { background: var(--accent-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.xs { min-height: 30px; padding: 0 11px; font-size: 12px; }
.btn.ghost { background: transparent; }
.btn.danger:hover { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) inset; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 18, 24, 0.6); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--fg-2); white-space: nowrap; }
.chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.chip.ok .d { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.chip.warn { color: var(--warn); border-color: rgba(255, 181, 71, 0.35); }
.chip.warn .d { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.chip.bad { color: var(--bad); border-color: rgba(255, 92, 100, 0.35); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--fg-2); white-space: nowrap; }
.pill.s-alindi { color: var(--accent-2); border-color: rgba(61, 155, 255, 0.4); }
.pill.s-hazirlaniyor { color: var(--warn); border-color: rgba(255, 181, 71, 0.4); }
.pill.s-sevk { color: #c49bff; border-color: rgba(196, 155, 255, 0.4); }
.pill.s-teslim { color: var(--ok); border-color: rgba(53, 211, 155, 0.4); }
.pill.s-iptal { color: var(--bad); border-color: rgba(255, 92, 100, 0.4); }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1); clip-path: inset(0 0 0 0); }
#loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.ld { display: grid; justify-items: center; gap: 18px; text-align: center; }
.ld svg { width: 132px; height: 132px; }
.ld .trk { stroke: var(--line); }
.ld .arc { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.4s ease; filter: drop-shadow(0 0 6px var(--glow)); }
.ld .tick { stroke: var(--line-2); }
.ld-pct { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 34px; letter-spacing: 0.02em; }
.ld-lbl { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.06em; min-height: 1.4em; }

/* ---------- header ---------- */
.top { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 18px; height: 64px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); background: linear-gradient(180deg, rgba(10, 12, 15, 0.82), rgba(10, 12, 15, 0)); transition: background 0.3s; }
.top.solid { background: rgba(10, 12, 15, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.logo svg { width: 30px; height: 30px; }
.logo b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 19px; letter-spacing: 0.08em; }
.logo small { font-family: var(--f-mono); font-size: 10px; color: var(--accent-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; letter-spacing: 0.1em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--fg-2); text-decoration: none; font-size: 13.5px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(14, 18, 24, 0.6); color: var(--fg); }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 18px -6px var(--glow); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; font-family: var(--f-mono); }
.badge[data-n="0"] { display: none; }
.acct { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- story / 3D stage ---------- */
.story { position: relative; height: 560vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 62% 48%, rgba(61, 155, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 95%, rgba(61, 155, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #07090c 0%, var(--bg) 60%, #0b0e12 100%); }
.stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.35; mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, #000 10%, transparent 75%); pointer-events: none; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.stage .fallback { position: absolute; inset: 0; display: none; place-items: center; }
.stage.nogl .fallback { display: grid; }
.stage .fallback svg { width: min(62vw, 520px); opacity: 0.8; }
.hud { position: absolute; top: calc(78px + env(safe-area-inset-top, 0px)); left: var(--gutter-l); right: var(--gutter-r); display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; z-index: 3; }
.hud .sp { flex: 1; }
.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.callouts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callouts path { stroke: var(--accent-2); stroke-width: 1; fill: none; opacity: 0.75; }
.co { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.35s; will-change: transform; }
.co.on { opacity: 1; }
.co i { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; border: 1.5px solid var(--accent-2); background: rgba(61, 155, 255, 0.25); box-shadow: 0 0 12px var(--glow); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 155, 255, 0.6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(61, 155, 255, 0); } }
.co .lab { position: absolute; transform: translate(var(--dx), var(--dy)); padding: 8px 12px; border-radius: 10px; background: rgba(12, 16, 22, 0.72); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; font-size: 12px; color: var(--fg-2); }
.co .lab b { display: block; font-family: var(--f-mono); color: var(--fg); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.scenes { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.scene { position: absolute; left: var(--gutter-l); bottom: calc(9vh + env(safe-area-inset-bottom, 0px)); width: min(560px, calc(100% - 32px)); opacity: 0; transform: translateY(18px); transition: opacity 0.45s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.scene.on { opacity: 1; transform: none; pointer-events: auto; }
.scene[data-s="0"] { bottom: auto; top: 22vh; width: min(760px, calc(100% - 32px)); }
.scene h1, .scene h2 { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; line-height: 0.92; margin: 12px 0 18px; text-wrap: balance; }
.scene h1 { font-size: clamp(42px, 7.6vw, 112px); }
.scene h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.scene h2 { font-size: clamp(30px, 4.4vw, 62px); }
.scene p { color: var(--fg-2); max-width: 46ch; margin: 0 0 22px; font-size: 16px; }
.scene .row { display: flex; gap: 10px; flex-wrap: wrap; }
.spec-grid { display: grid; grid-template-columns: repeat(6, auto); gap: 6px; margin: 0 0 20px; }
.spec-grid div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(12, 16, 22, 0.6); }
.spec-grid b { display: block; font-family: var(--f-mono); font-size: 18px; color: var(--accent-2); }
.spec-grid span { font-size: 11.5px; color: var(--fg-2); line-height: 1.3; display: block; }
.finish { display: flex; gap: 8px; flex-wrap: wrap; }
.finish button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(12, 16, 22, 0.6); font-size: 13px; }
.finish button i { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), inset 0 -3px 5px rgba(0, 0, 0, 0.5); }
.finish button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 16px -6px var(--glow); }
.rail { position: absolute; right: var(--gutter-r); top: 50%; transform: translateY(-50%); z-index: 5; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail button { display: flex; align-items: center; gap: 10px; justify-content: flex-end; background: none; border: 0; padding: 6px 0; color: var(--mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; }
.rail button i { width: 22px; height: 2px; background: var(--line-2); transition: width 0.3s, background 0.3s; }
.rail button.on { color: var(--fg); }
.rail button.on i { width: 42px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cue { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 5; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--fg-2); display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity 0.4s; }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- console ---------- */
.console { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 100vh; border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 30% at 70% 0%, rgba(61, 155, 255, 0.08), transparent 70%), var(--bg); }
.crail { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); align-self: start; height: calc(100vh - 64px); display: flex; flex-direction: column; gap: 4px; padding: 18px 10px; border-right: 1px solid var(--line); background: rgba(12, 15, 20, 0.6); }
.crail button { position: relative; display: grid; justify-items: center; gap: 5px; padding: 11px 4px; border-radius: 12px; background: none; border: 1px solid transparent; color: var(--mute); font-size: 11px; letter-spacing: 0.04em; }
.crail button svg { width: 21px; height: 21px; }
.crail button:hover { color: var(--fg); }
.crail button.on { color: var(--accent-2); border-color: var(--line-2); background: rgba(61, 155, 255, 0.08); box-shadow: inset 2px 0 0 var(--accent); }
.crail .badge { top: 4px; right: 12px; }
.cmain { min-width: 0; padding: 28px var(--gutter-r) 80px 28px; }
.cbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.cbar .sp { flex: 1; }
.vhead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; margin-bottom: 20px; }
.vhead h2 { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); line-height: 0.95; margin: 6px 0 0; letter-spacing: -0.01em; }
.vhead .sp { flex: 1; }

/* catalog */
.search { position: relative; flex: 1 1 380px; min-width: 0; }
.search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(12, 16, 22, 0.8); font-family: var(--f-mono); font-size: 15px; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 155, 255, 0.15); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--mute); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 20px; }
.presets button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: none; color: var(--fg-2); font-family: var(--f-mono); font-size: 12px; }
.presets button:hover { border-style: solid; border-color: var(--accent); color: var(--fg); }
.cat-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { position: sticky; top: calc(80px + env(safe-area-inset-top, 0px)); padding: 18px; display: grid; gap: 18px; max-height: calc(100vh - 100px); overflow: auto; }
.fgroup { display: grid; gap: 8px; }
.fgroup > label, .fgroup > .lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.seg { display: flex; flex-wrap: wrap; gap: 5px; }
.seg button { flex: 1 1 auto; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(12, 16, 22, 0.6); color: var(--fg-2); font-size: 12.5px; }
.seg button[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); background: rgba(61, 155, 255, 0.13); }
.sel3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sel2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
select, .inp { width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(12, 16, 22, 0.8); font-size: 13px; min-width: 0; }
textarea.inp { height: auto; padding: 10px; min-height: 84px; resize: vertical; }
select:focus, .inp:focus { outline: none; border-color: var(--accent); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; transition: background 0.2s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg-2); transition: transform 0.2s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(16px); background: #fff; }
.fbtn { display: none; }
.resbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--fg-2); font-size: 13px; flex-wrap: wrap; }
.resbar select { width: auto; }
.resbar .sp { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; perspective: 1400px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: linear-gradient(180deg, rgba(28, 35, 46, 0.7), rgba(16, 20, 27, 0.8)); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.3s; animation: cardIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes cardIn { from { transform: translateY(26px) rotateX(-10deg); opacity: 0.35; } to { transform: none; opacity: 1; } }
.card:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(61, 155, 255, 0.18); }
.card .glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(142, 199, 255, 0.14), transparent 45%); opacity: 0; transition: opacity 0.3s; }
.card:hover .glare { opacity: 1; }
.media { position: relative; aspect-ratio: 13 / 10; max-width: 100%; background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(61, 155, 255, 0.16), transparent 70%), radial-gradient(ellipse 50% 10% at 50% 92%, rgba(0, 0, 0, 0.6), transparent 70%); border: 0; padding: 0; width: 100%; cursor: zoom-in; display: block; }
.media img, .media svg { position: absolute; inset: 4% 8% 2%; width: 84%; height: 94%; object-fit: contain; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .media img { transform: scale(1.05) rotate(-2deg); }
.media .s-chip { position: absolute; left: 12px; top: 12px; }
.media .v360 { position: absolute; right: 12px; bottom: 10px; font-family: var(--f-mono); font-size: 10.5px; color: var(--fg-2); letter-spacing: 0.1em; }
.cmp { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(10, 13, 17, 0.75); border: 1px solid var(--line); font-size: 11.5px; color: var(--fg-2); cursor: pointer; }
.cmp input { accent-color: var(--accent); margin: 0; }
.cbody { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.brand { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent-2); text-transform: uppercase; }
.cbody h3 { margin: -6px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.cbody h3 button { all: unset; cursor: pointer; }
.cbody h3 button:hover { color: var(--accent-2); }
.size { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 22px; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.size small { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); font-weight: 500; margin-left: 6px; }
.eu { display: flex; gap: 6px; flex-wrap: wrap; }
.eu span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--fg-2); }
.eu b { color: var(--fg); }
.stock { font-size: 12.5px; display: flex; align-items: center; gap: 7px; color: var(--fg-2); }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.stock.low i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.stock.out i { background: var(--bad); box-shadow: none; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.price .net { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.price .list { font-family: var(--f-mono); font-size: 12px; color: var(--mute); text-decoration: line-through; }
.price .disc { font-family: var(--f-mono); font-size: 11.5px; color: var(--ok); }
.price .unit { font-size: 11.5px; color: var(--mute); width: 100%; margin-top: -6px; }
.lock { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }
.lock svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; }
.lock button { all: unset; color: var(--accent-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.qty { display: inline-flex; align-items: center; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10, 13, 17, 0.7); }
.qty button { width: 34px; height: 100%; background: none; border: 0; color: var(--fg-2); font-size: 18px; }
.qty button:hover { color: var(--fg); }
.qty input { width: 36px; text-align: center; border: 0; background: none; font-family: var(--f-mono); font-size: 14px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unitseg { grid-column: 1 / -1; display: flex; gap: 4px; }
.unitseg button { flex: 1; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--fg-2); font-size: 12px; }
.unitseg button[aria-pressed="true"] { border-color: var(--accent); color: var(--fg); background: rgba(61, 155, 255, 0.12); }
.add { height: 40px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s, transform 0.15s; }
.add:hover { background: var(--accent-2); }
.add:active { transform: scale(0.97); }
.add:disabled { background: var(--bg-3); color: var(--mute); cursor: not-allowed; }
.add.done { background: var(--ok); }
.empty { padding: 48px 24px; text-align: center; color: var(--fg-2); border: 1px dashed var(--line-2); border-radius: 16px; }
.empty h3 { color: var(--fg); margin: 0 0 6px; font-size: 18px; }
.cmpbar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); max-width: calc(100% - 32px); }
.cmpbar.on { transform: translate(-50%, 0); }
.cmpbar span { font-size: 13px; white-space: nowrap; }

/* tables, panels */
.panel { padding: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.twrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding: 12px; border-bottom: 1px solid var(--line); background: rgba(12, 16, 22, 0.6); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td .inp { height: 32px; width: 110px; }
.list { display: grid; gap: 10px; }
.order { padding: 16px 18px; display: grid; gap: 10px; }
.order-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.order-h .oid { font-family: var(--f-mono); font-weight: 600; }
.order-h .sp { flex: 1; }
.order-items { display: grid; gap: 4px; font-size: 13px; color: var(--fg-2); }
.order-items div { display: flex; justify-content: space-between; gap: 12px; }
.order-items span:last-child { font-family: var(--f-mono); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; }
.kpi .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.kpi .v { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 28px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .v.accent { color: var(--accent-2); }
.kpi .bar { height: 3px; border-radius: 3px; background: var(--bg-3); margin-top: 10px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--fg-2); font-family: var(--f-mono); font-size: 11px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12, 16, 22, 0.6); width: fit-content; max-width: 100%; }
.tabs button { height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: none; color: var(--fg-2); font-size: 13px; }
.tabs button[aria-pressed="true"] { background: var(--glass-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--fg-2); }
.note { font-size: 12.5px; color: var(--fg-2); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(61, 155, 255, 0.05); }
.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13.5px; margin: 0; }
.dl dt { color: var(--mute); }
.dl dd { margin: 0; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-chips span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-family: var(--f-mono); }
.bd-chips button { all: unset; cursor: pointer; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--mute); }
.bd-chips button:hover { color: var(--bad); }

/* drawers, modals, toast */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(3, 5, 8, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 75; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.on { transform: none; }
.dh { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dh h3 { margin: 0; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 20px; }
.dh .sp { flex: 1; }
.db { flex: 1; overflow: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.df { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.cline { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cline img, .cline svg { width: 64px; height: 50px; object-fit: contain; }
.cline .t { font-size: 13px; min-width: 0; }
.cline .t b { display: block; font-weight: 600; }
.cline .t small { color: var(--fg-2); font-family: var(--f-mono); }
.cline .r { display: grid; justify-items: end; gap: 6px; }
.cline .qty { height: 32px; }
.cline .qty button { width: 28px; }
.sum { display: grid; gap: 4px; font-size: 13.5px; }
.sum div { display: flex; justify-content: space-between; }
.sum div span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sum .tot { font-size: 17px; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.modal { position: fixed; z-index: 80; left: 50%; top: 50%; width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); overflow: auto; transform: translate(-50%, -46%) scale(0.98); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8); }
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal.sm { width: min(460px, calc(100% - 32px)); }
.mclose { position: absolute; top: 12px; right: 12px; z-index: 3; }
.detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.viewer { position: relative; min-height: 420px; background: radial-gradient(ellipse 60% 55% at 50% 52%, rgba(61, 155, 255, 0.2), transparent 70%), #080a0d; border-radius: 20px 0 0 20px; overflow: hidden; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer .hint { position: absolute; left: 16px; bottom: 14px; font-family: var(--f-mono); font-size: 11px; color: var(--fg-2); letter-spacing: 0.08em; display: flex; gap: 8px; align-items: center; }
.viewer .hint svg { width: 18px; height: 18px; color: var(--accent-2); }
.viewer .vfin { position: absolute; left: 16px; top: 14px; }
.dinfo { padding: 28px 26px 24px; display: grid; gap: 14px; align-content: start; }
.dinfo h3 { margin: 0; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 26px; line-height: 1.05; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.specs div { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(12, 16, 22, 0.6); }
.specs b { display: block; font-family: var(--f-mono); font-size: 15px; }
.specs span { font-size: 11px; color: var(--mute); }
.cmp-table td:first-child { color: var(--mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.best { color: var(--ok); }
.doc { background: #f6f7f9; color: #12161c; padding: 36px; border-radius: 0 0 20px 20px; font-size: 13px; }
.doc h4 { margin: 0; font-size: 20px; letter-spacing: 0.04em; }
.doc table { color: #12161c; }
.doc th { background: #e9ecf0; color: #4a5361; border-color: #d4d9e0; }
.doc td { border-color: #d4d9e0; }
.toast { position: fixed; z-index: 90; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13.5px; transition: opacity 0.3s, transform 0.4s; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 92, 100, 0.5); }
.flyer { position: fixed; z-index: 95; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); pointer-events: none; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 56px 40px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.foot h4 { margin: 0 0 10px; font-size: 13px; font-family: var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.foot ul { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 13.5px; display: grid; gap: 6px; }
.foot p { color: var(--fg-2); font-size: 13.5px; margin: 0 0 8px; }
.foot .copy { max-width: 1240px; margin: 34px auto 0; font-size: 12px; color: var(--mute); font-family: var(--f-mono); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cat-wrap { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; z-index: 76; left: 0; right: 0; bottom: 0; top: auto; max-height: 82vh; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); background: var(--bg-2); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  .filters.on { transform: none; }
  .fbtn { display: inline-flex; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .rail { display: none; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .viewer { min-height: 340px; border-radius: 20px 20px 0 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .top { height: 58px; gap: 8px; }
  .logo b { font-size: 16px; }
  .icon-btn { width: 38px; height: 38px; }
  .acct { display: none; }
  .hud { top: calc(68px + env(safe-area-inset-top, 0px)); }
  .hud .chip:nth-child(n+3) { display: none; }
  .scene, .scene[data-s="0"] { top: auto; bottom: calc(5vh + env(safe-area-inset-bottom, 0px)); }
  .scene p { font-size: 14.5px; margin-bottom: 16px; }
  .scene h1 { font-size: clamp(36px, 11vw, 60px); margin-bottom: 12px; }
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-grid b { font-size: 15px; }
  .co .lab { padding: 6px 9px; font-size: 10.5px; }
  .co .lab b { font-size: 12px; }
  .console { grid-template-columns: minmax(0, 1fr); }
  .crail { position: fixed; z-index: 45; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: space-around; padding: 6px var(--gutter-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); border-right: 0; border-top: 1px solid var(--line); background: rgba(10, 12, 15, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-x: auto; }
  .crail { transform: translateY(110%); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .in-console .crail { transform: none; }
  .crail button { padding: 6px 8px; font-size: 10px; flex: none; }
  .crail button.on { box-shadow: inset 0 2px 0 var(--accent); }
  .cmain { padding: 22px var(--gutter-r) 110px var(--gutter-l); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .cmpbar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .doc { padding: 20px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

.logo .logoimg { height: 32px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.foot .logo .logoimg { height: 36px; }
.fc { display: grid; gap: 6px; margin: 14px 0 10px; font-size: 13.5px; color: var(--fg-2); }
.fc a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.fc span.k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-right: 8px; }
.cologo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.cologo .box { min-width: 120px; min-height: 56px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.03); }
.cologo .box img { max-height: 44px; max-width: 220px; }

.ttabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.ttabs button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 16, 22, 0.6); color: var(--fg-2); font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.ttabs button i { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.ttabs button[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); background: rgba(61, 155, 255, 0.14); }
.media .ticon { color: #6e7b8c; }
.media img.pimg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.size.sm { font-size: 17px; line-height: 1.3; }
.ulbl { grid-column: 1 / -1; font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.viewer.gmedia { display: grid; place-items: center; color: #6e7b8c; }
.viewer.gmedia svg { width: 46%; height: auto; }
.viewer.gmedia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pth { height: 30px; width: 40px; object-fit: cover; border-radius: 6px; display: block; }
#xf select { width: 100%; }
.tf[hidden], #presets[hidden] { display: none !important; }
#xf { display: contents; }
