/* ============================================================
   DMA EXCLUSIVE — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Palette */
  --bg-0: #06070b;
  --bg-1: #0a0c12;
  --bg-2: #11141d;
  --bg-3: #1a1e2b;
  --surface: rgba(20, 24, 36, 0.6);
  --surface-strong: rgba(28, 33, 49, 0.85);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --text: #f4f6fb;
  --text-muted: #8a93a8;
  --text-dim: #5b6478;

  --accent: #00ffd1;
  --accent-2: #7c5cff;
  --accent-3: #ff3d8b;
  --warn: #ffb84d;
  --danger: #ff4565;
  --ok: #45ffa6;

  --grad-1: linear-gradient(135deg, #00ffd1 0%, #7c5cff 100%);
  --grad-2: linear-gradient(135deg, #7c5cff 0%, #ff3d8b 100%);
  --grad-3: linear-gradient(135deg, #00ffd1 0%, #00b8ff 100%);

  --shadow-glow: 0 0 32px rgba(0, 255, 209, 0.25);
  --shadow-card: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-card-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.8);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(0, 255, 209, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(255, 61, 139, 0.07) 0%, transparent 40%),
    var(--bg-0);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* ===== Layout ===== */
.container {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.container-narrow {
  width: min(100% - 2.4rem, 980px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
section { padding-block: clamp(3rem, 7vw, 6rem); position: relative; z-index: 1; }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }

/* ===== Top bar ===== */
.topbar {
  background: linear-gradient(90deg, rgba(124,92,255,0.15), rgba(0,255,209,0.15));
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 50;
}
.topbar strong { color: var(--text); font-weight: 600; }
.topbar .accent { color: var(--accent); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(6, 7, 11, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--grad-1);
  position: relative;
  display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.4);
}
.logo-mark::after {
  content: ''; position: absolute; inset: 4px;
  background: var(--bg-0); border-radius: 5px;
}
.logo-mark::before {
  content: ''; position: absolute; inset: 8px;
  background: var(--grad-1); border-radius: 3px;
  z-index: 1;
}
.logo .ex { color: var(--accent); font-weight: 800; }

.nav { display: flex; gap: 1.6rem; align-items: center; flex: 1; }
.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: color .2s;
  padding: 6px 2px;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--grad-1); border-radius: 2px;
}

.header-actions { display: flex; gap: 0.6rem; align-items: center; }
.lang-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  margin-right: 0.2rem;
}
.lang-switcher button {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-radius: 100px;
  transition: all .2s;
}
.lang-switcher button:hover { color: var(--text); }
.lang-switcher button.active {
  background: var(--grad-1);
  color: #001318;
  box-shadow: 0 0 12px -2px rgba(0, 255, 209, 0.4);
}
@media (max-width: 800px) {
  .lang-switcher { margin-right: 0; }
  .lang-switcher button { padding: 0.25rem 0.55rem; font-size: 0.72rem; }
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .2s;
  position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent-3);
  color: white; font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--bg-0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad-1);
  color: #001318;
  box-shadow: 0 8px 24px -8px rgba(0, 255, 209, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(0, 255, 209, 0.7); }
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--surface-strong); border-color: var(--accent); }
.btn-ghost { color: var(--text-muted); padding: 0.7rem 1rem; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-danger { background: rgba(255,69,101,0.15); color: var(--danger); border-color: rgba(255,69,101,0.25); }
.btn-danger:hover { background: rgba(255,69,101,0.25); }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; border-radius: 9px; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .glitch { position: relative; display: inline-block; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.hero-stats .stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .stat span { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.hero-card-3d {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1.6 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0d1320 0%, #1a1f33 100%);
  border: 1px solid var(--border-strong);
  padding: 1.5rem;
  transform: rotate(-6deg) perspective(900px) rotateY(-12deg) rotateX(8deg);
  box-shadow: var(--shadow-card-lg), 0 0 60px -20px rgba(0,255,209,0.4);
  transition: transform .6s ease;
  overflow: hidden;
}
.hero-card-3d::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0,255,209,0.18), transparent 50%);
  pointer-events: none;
}
.hero-card-3d::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,209,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,209,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-card-3d:hover { transform: rotate(-3deg) perspective(900px) rotateY(-6deg) rotateX(4deg); }
.card-chip {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(0,255,209,0.1);
  border: 1px solid rgba(0,255,209,0.3);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.card-chip::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.card-title-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  margin-top: 0.8rem; position: relative; z-index: 1;
}
.card-pcb {
  position: absolute; right: -40px; bottom: -40px;
  width: 280px; height: 280px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,255,209,0.15) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(0,255,209,0.08) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(124,92,255,0.06) 0 2px, transparent 2px 14px);
  border: 1px solid rgba(0,255,209,0.15);
  opacity: 0.9;
}
.card-pcb::before, .card-pcb::after {
  content: ''; position: absolute;
  border: 2px solid rgba(0,255,209,0.4);
  border-radius: 50%;
}
.card-pcb::before { width: 60px; height: 60px; top: 30px; left: 40px; }
.card-pcb::after { width: 30px; height: 30px; bottom: 40px; right: 60px; border-color: rgba(124,92,255,0.5); }

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; right: -50px; }
.orb-2 { width: 360px; height: 360px; background: var(--accent-2); bottom: -120px; left: -100px; opacity: 0.4; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all .25s ease;
}
.card:hover { border-color: var(--border-strong); }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(0,255,209,0.5), rgba(124,92,255,0.5), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-lg); }
.product-card .pc-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #0e1320 0%, #1a1e2d 100%);
  position: relative; overflow: hidden;
}
.product-card .pc-media::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.product-card .pc-media svg, .product-card .pc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.product-card .pc-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card .pc-cat { font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.product-card .pc-title { font-family: 'Space Grotesk',sans-serif; font-size: 1.1rem; font-weight: 600; }
.product-card .pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; padding-top: 0.6rem; }
.product-card .pc-price { display: flex; align-items: baseline; gap: 0.5rem; }
.product-card .pc-price strong { font-family: 'Space Grotesk',sans-serif; font-size: 1.25rem; }
.product-card .pc-price del { color: var(--text-dim); font-size: 0.85rem; }

.badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  z-index: 2;
}
.badge-new { background: rgba(0,255,209,0.18); border-color: rgba(0,255,209,0.4); color: var(--accent); }
.badge-sale { background: rgba(255,61,139,0.18); border-color: rgba(255,61,139,0.4); color: var(--accent-3); }
.badge-pre { background: rgba(255,184,77,0.18); border-color: rgba(255,184,77,0.4); color: var(--warn); }
.badge-out { background: rgba(255,69,101,0.18); border-color: rgba(255,69,101,0.4); color: var(--danger); }

/* ===== Grid ===== */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Section heads ===== */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.section-head h2 { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 0.6rem; }

/* ===== Feature blocks ===== */
.feature {
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.feature .feat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0,255,209,0.1);
  border: 1px solid rgba(0,255,209,0.2);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ===== Steps ===== */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Space Grotesk',sans-serif;
  font-size: 3rem; font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1; display: block;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ===== Manuals card ===== */
.manual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.manual-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.manual-card .mc-thumb {
  aspect-ratio: 16/10;
  border-radius: 10px;
  background: linear-gradient(135deg, #0e1320, #1a1e2d);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--accent);
  position: relative; overflow: hidden;
  margin-bottom: 0.4rem;
}
.manual-card .mc-thumb::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,255,209,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,255,209,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.manual-card h3 { font-size: 1.05rem; }
.manual-card p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }
.manual-card .mc-meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.78rem; color: var(--text-dim); margin-top: 0.4rem; }

/* ===== Footer ===== */
.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  padding: 4rem 0 1.5rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer a { color: var(--text-muted); font-size: 0.9rem; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  color: var(--text-dim); font-size: 0.85rem;
}

.newsletter {
  display: flex; gap: 0.5rem; margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 4px 4px 18px;
  max-width: 380px;
}
.newsletter input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 0.9rem; flex: 1;
}
.newsletter button {
  background: var(--grad-1); color: #001318;
  border-radius: 100px; padding: 0.6rem 1.1rem;
  font-weight: 600; font-size: 0.85rem;
}

/* ===== Cart drawer ===== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(100%, 440px);
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  z-index: 95;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-body { flex: 1; overflow: auto; padding: 1.2rem 1.4rem; }
.drawer-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--border); }

.cart-line { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.cart-line .cl-img {
  width: 70px; height: 70px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0e1320, #1a1e2d);
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid var(--border);
}
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line .cl-info strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cart-line .cl-info span { color: var(--text-muted); font-size: 0.82rem; }
.qty-ctl {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-top: 0.4rem;
}
.qty-ctl button { padding: 0.3rem 0.55rem; color: var(--text-muted); }
.qty-ctl button:hover { color: var(--text); }
.qty-ctl span { padding: 0.3rem 0.7rem; font-size: 0.85rem; min-width: 28px; text-align: center; }
.cart-totals { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.92rem; }
.cart-totals.total { font-size: 1.15rem; font-weight: 700; padding-top: 0.6rem; border-top: 1px solid var(--border); margin-top: 0.6rem; }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.field label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,255,209,0.15);
}
.field textarea { min-height: 120px; resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.help { font-size: 0.78rem; color: var(--text-dim); }

/* ===== Tables ===== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; }
.table tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab {
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  font-weight: 500;
  transition: all .2s;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-color: var(--accent); }

/* ===== Detail Page ===== */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.gallery .main-img {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0e1320, #1a1e2d);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.gallery .main-img::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,255,209,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,255,209,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.gallery .thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.6rem; margin-top: 0.8rem; }
.gallery .thumbs button {
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: linear-gradient(135deg, #0e1320, #1a1e2d);
  border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--accent);
  transition: border-color .2s;
}
.gallery .thumbs button:hover, .gallery .thumbs button.active { border-color: var(--accent); }

.detail-info h1 { font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom: 0.6rem; }
.detail-info .price-row { display: flex; align-items: baseline; gap: 0.8rem; margin: 1.2rem 0 1.5rem; }
.detail-info .price-row strong { font-family: 'Space Grotesk',sans-serif; font-size: 2rem; }
.detail-info .price-row del { color: var(--text-dim); font-size: 1.1rem; }
.detail-info .price-row .save {
  background: rgba(255,61,139,0.18); color: var(--accent-3);
  border: 1px solid rgba(255,61,139,0.3);
  padding: 0.25rem 0.65rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
}
.detail-info ul.feat-list { list-style: none; display: grid; gap: 0.5rem; margin: 1.5rem 0; }
.detail-info ul.feat-list li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; color: var(--text-muted);
}
.detail-info ul.feat-list li::before {
  content: '✓'; color: var(--accent); font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,255,209,0.12); display: grid; place-items: center;
  font-size: 0.78rem; flex-shrink: 0;
}

.option-group { margin-bottom: 1.2rem; }
.option-group .lbl { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.opts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.opt {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all .2s;
}
.opt:hover { border-color: var(--accent); }
.opt.active { background: rgba(0,255,209,0.12); border-color: var(--accent); color: var(--accent); }

.spec-table { width: 100%; }
.spec-table tr td { padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.spec-table tr td:first-child { color: var(--text-muted); width: 35%; }

/* ===== Manual content ===== */
.manual-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .manual-layout { grid-template-columns: 1fr; } }
.manual-toc {
  position: sticky; top: 90px;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.manual-toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.8rem; }
.manual-toc ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.manual-toc a { font-size: 0.88rem; color: var(--text-muted); padding: 0.3rem 0; }
.manual-toc a:hover { color: var(--accent); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4rem; margin-bottom: 0.8rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: 0.5rem; }
.prose p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.prose ul li, .prose ol li { margin-bottom: 0.4rem; }
.prose code { background: var(--surface-strong); padding: 0.15rem 0.4rem; border-radius: 5px; font-size: 0.88em; color: var(--accent); border: 1px solid var(--border); }
.prose pre {
  background: #060810;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  overflow: auto; margin: 1rem 0;
  font-size: 0.85rem; line-height: 1.6;
}
.prose pre code { background: transparent; padding: 0; border: none; color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.2rem;
  background: rgba(0,255,209,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
  color: var(--text);
}
.prose .callout {
  display: flex; gap: 0.9rem;
  background: rgba(124,92,255,0.08);
  border: 1px solid rgba(124,92,255,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  align-items: flex-start;
}
.prose .callout.warn { background: rgba(255,184,77,0.08); border-color: rgba(255,184,77,0.25); }
.prose .callout.danger { background: rgba(255,69,101,0.08); border-color: rgba(255,69,101,0.25); }
.prose .callout-icon {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(124,92,255,0.18);
  color: var(--accent-2);
  display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 700;
}
.prose .callout.warn .callout-icon { background: rgba(255,184,77,0.18); color: var(--warn); }
.prose .callout.danger .callout-icon { background: rgba(255,69,101,0.18); color: var(--danger); }

.steps-list { display: grid; gap: 1rem; counter-reset: pstep; margin: 1.5rem 0; }
.steps-list .pstep {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: pstep;
}
.steps-list .pstep::before {
  content: counter(pstep);
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad-1);
  color: #001318;
  display: grid; place-items: center;
  font-family: 'Space Grotesk',sans-serif; font-weight: 700;
  font-size: 1rem;
}
.steps-list .pstep h4 { margin-bottom: 0.3rem; font-size: 1.02rem; }
.steps-list .pstep p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ===== Filters / catalog ===== */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .catalog { grid-template-columns: 1fr; } }
.filters {
  position: sticky; top: 90px;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filters h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 0.6rem; }
.filters .filter-group { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.filters .filter-group:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.check { display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0; cursor: pointer; color: var(--text-muted); font-size: 0.9rem; }
.check:hover { color: var(--text); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.toolbar .count { color: var(--text-muted); font-size: 0.9rem; }
.toolbar select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.55rem 0.95rem; color: var(--text);
  outline: none; font-size: 0.88rem; cursor: pointer;
}

/* ===== Empty / loading ===== */
.empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty .empty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  color: var(--text-dim);
}

/* ===== Trust bar ===== */
.trust {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
@media (max-width: 800px) { .trust { grid-template-columns: 1fr 1fr; } }
.trust-item { display: flex; align-items: center; gap: 0.8rem; }
.trust-item .ti-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,255,209,0.1);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 0.92rem; }
.trust-item span { color: var(--text-muted); font-size: 0.82rem; }

/* ===== Toasts ===== */
.toasts { position: fixed; top: 90px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 0.6rem; }
.toast {
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  animation: slideIn .3s ease;
  min-width: 280px;
}
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideIn { from {transform: translateX(100%); opacity:0} to {transform: translateX(0); opacity:1} }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 720px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card-lg);
  animation: scaleIn .25s ease;
}
.modal.modal-lg { max-width: 1000px; }
@keyframes scaleIn { from {transform: scale(.95); opacity:0} to {transform: scale(1); opacity:1} }
.modal-head { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 1.4rem; overflow: auto; flex: 1; }
.modal-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--border); display: flex; gap: 0.6rem; justify-content: flex-end; }

/* ===== Admin layout ===== */
.admin-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
}
.admin-side {
  width: 260px;
  flex: 0 0 260px;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 1.4rem 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  position: sticky; top: 0; height: 100vh; overflow: auto;
  align-self: flex-start;
}
.admin-side .logo { padding: 0.4rem 0.6rem 1.4rem; }
.admin-side a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all .15s;
}
.admin-side a:hover { background: var(--surface); color: var(--text); }
.admin-side a.active { background: rgba(0,255,209,0.1); color: var(--accent); border: 1px solid rgba(0,255,209,0.2); }
.admin-side .side-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); padding: 1rem 0.85rem 0.4rem; font-weight: 600; }
.admin-side .logout {
  margin-top: auto;
  border-top: 1px solid var(--border); padding-top: 0.8rem;
}
.admin-main { padding: 2rem 2.4rem; flex: 1 1 auto; min-width: 0; width: 100%; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; flex-wrap: wrap; gap: 1rem; }
.admin-head h1 { font-size: 1.7rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.8rem; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }
.kpi {
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.kpi .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.kpi .value { font-family: 'Space Grotesk',sans-serif; font-size: 1.8rem; font-weight: 700; }
.kpi .delta { font-size: 0.82rem; color: var(--ok); margin-top: 0.2rem; }
.kpi .delta.down { color: var(--danger); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head { padding: 1rem 1.3rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
.panel-head h3 { font-size: 1.05rem; }

.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  color: var(--text);
  outline: none;
  width: 280px;
  font-size: 0.9rem;
}
.search-input:focus { border-color: var(--accent); }

/* Pill / status */
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 100px; font-size: 0.74rem; font-weight: 600; }
.pill.ok { background: rgba(69,255,166,0.15); color: var(--ok); }
.pill.warn { background: rgba(255,184,77,0.15); color: var(--warn); }
.pill.bad { background: rgba(255,69,101,0.15); color: var(--danger); }
.pill.muted { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.pill.dot::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ===== Login ===== */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  backdrop-filter: blur(12px);
  position: relative;
}
.auth-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.auth-card > * { position: relative; z-index: 1; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }

/* ===== Misc ===== */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.flex-1 { flex: 1; }
.text-right { text-align: right; }
.text-sm { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* Animations */
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity:1; transform: none; } }
.fade-in-up { animation: fadeInUp .6s ease both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity:1; transform: none; } }
[data-stagger] > * { opacity: 0; animation: fadeInUp .6s ease both; }
[data-stagger] > *:nth-child(1) { animation-delay: .05s; }
[data-stagger] > *:nth-child(2) { animation-delay: .12s; }
[data-stagger] > *:nth-child(3) { animation-delay: .19s; }
[data-stagger] > *:nth-child(4) { animation-delay: .26s; }
[data-stagger] > *:nth-child(5) { animation-delay: .33s; }
[data-stagger] > *:nth-child(6) { animation-delay: .4s; }
[data-stagger] > *:nth-child(7) { animation-delay: .47s; }
[data-stagger] > *:nth-child(8) { animation-delay: .54s; }

/* ===== Mobile nav toggle ===== */
.mobile-toggle { display: none; }
@media (max-width: 920px) {
  .nav { display: none; }
  .mobile-toggle { display: grid; }
  .header-actions .icon-btn.search-btn { display: none; }
}
.nav.mobile-open {
  display: flex; flex-direction: column;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.2rem;
  gap: 0.4rem;
}
@media (max-width: 600px) {
  .header-inner { gap: 0.8rem; }
  .logo span { font-size: 0.95rem; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .lang-switcher button { padding: 0.2rem 0.45rem; font-size: 0.7rem; }
  .topbar { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 0.6rem; padding: 1rem; }
  .hero-card-3d { transform: none !important; }
  .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
  .product-detail { gap: 1.4rem; }
  .filters { padding: 1rem; }
  .search-modal { width: calc(100% - 1.4rem); }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.7rem; }
  .modal { max-height: 95vh; }
  .modal-body { padding: 1rem; }
  .modal-foot { padding: 1rem; }
  .modal-split { display: block !important; height: auto !important; }
  .live-preview { display: none; }
  .admin-shell { flex-direction: column; }
  .admin-side { position: static; height: auto; width: 100%; flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; padding: 0.8rem; }
  .admin-side .logo { padding: 0.4rem 0.8rem; flex: 1 0 100%; }
  .admin-side .side-section { display: none; }
  .admin-side a { padding: 0.5rem 0.7rem; font-size: 0.85rem; }
  .admin-side .logout { margin-top: 0; border-top: none; padding-top: 0; }
  .admin-main { padding: 1.2rem 1rem; }
  .admin-head { gap: 0.6rem; }
  .admin-head .row { width: 100%; flex-wrap: wrap; }
  .search-input { width: 100% !important; }
  .table { font-size: 0.85rem; }
  .table th, .table td { padding: 0.5rem 0.6rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ============================================================
   Extended UI: search modal, gallery, wishlist, comparator,
   quiz, reviews, hero scene, infographic, etc.
   ============================================================ */

/* Search modal */
.search-modal-back {
  position: fixed; inset: 0;
  background: rgba(6,7,11,0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.search-modal-back.open { display: flex; }
.search-modal {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: min(100% - 2rem, 720px);
  overflow: hidden;
  box-shadow: var(--shadow-card-lg);
  animation: scaleIn .2s ease;
}
.search-modal-input {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.search-modal-input input {
  flex: 1;
  background: transparent; border: none; outline: none;
  font-size: 1.05rem;
  color: var(--text);
}
.search-modal-input kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--text-muted);
}
.search-results { max-height: 60vh; overflow: auto; padding: 0.5rem; }
.search-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); padding: 0.6rem 1rem 0.3rem; font-weight: 600; }
.search-result {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.search-result:hover, .search-result.focused { background: rgba(0,255,209,0.08); }
.search-result .sr-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0e1320, #1a1e2d);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0; overflow: hidden;
  color: var(--accent);
}
.search-result .sr-thumb img, .search-result .sr-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.search-result .sr-info { flex: 1; min-width: 0; }
.search-result .sr-info strong { display: block; font-size: 0.95rem; }
.search-result .sr-info span { font-size: 0.78rem; color: var(--text-muted); }
.search-result .sr-price { font-weight: 700; color: var(--accent); }

/* Wishlist heart button */
.wish-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  z-index: 3;
}
.wish-btn:hover { color: var(--accent-3); transform: scale(1.05); }
.wish-btn.active { color: var(--accent-3); background: rgba(255,61,139,0.18); border-color: rgba(255,61,139,0.35); }
.wish-btn.active svg { fill: var(--accent-3); }

/* Stock countdown */
.stock-bar {
  margin-top: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: rgba(255,184,77,0.08);
  border: 1px solid rgba(255,184,77,0.2);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--warn);
  display: flex; align-items: center; gap: 0.5rem;
}
.stock-bar .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse 1.5s ease-in-out infinite; }

/* Gallery zoom on detail page */
.gallery .main-img { cursor: zoom-in; transition: all .3s; position: relative; }
.gallery .main-img:hover img { transform: scale(1.04); }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery .main-img.zoomed { cursor: zoom-out; }
.gallery .zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem; border-radius: 100px;
  color: var(--text-muted); font-size: 0.75rem;
  display: flex; align-items: center; gap: 0.3rem;
  pointer-events: none;
  z-index: 2;
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lightbox .lb-close { position: absolute; top: 24px; right: 24px; }

/* Reviews */
.reviews-summary {
  display: flex; gap: 1.5rem; align-items: center;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}
.reviews-summary .rs-score { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--accent); }
.reviews-summary .rs-stars { display: flex; gap: 2px; color: var(--accent); }
.reviews-summary .rs-count { color: var(--text-muted); font-size: 0.88rem; }
.review-card {
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}
.review-card .rc-head { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.5rem; }
.review-card .rc-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex-shrink: 0; display: grid; place-items: center; color: #001318; font-weight: 700; font-size: 0.9rem; }
.review-card .rc-meta { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.review-card .rc-stars { color: var(--accent); display: flex; gap: 1px; }
.review-card .rc-text { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.review-card .rc-verified { color: var(--ok); font-size: 0.7rem; display: inline-flex; align-items: center; gap: 0.2rem; }

/* Coupon input in cart */
.coupon-row { display: flex; gap: 0.5rem; margin: 0.8rem 0; }
.coupon-row input {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.65rem 0.95rem; color: var(--text); outline: none;
  font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.05em;
}
.coupon-row input:focus { border-color: var(--accent); }
.coupon-applied {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.95rem;
  background: rgba(69,255,166,0.08);
  border: 1px solid rgba(69,255,166,0.25);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.coupon-applied .ca-info strong { color: var(--ok); font-family: 'JetBrains Mono', monospace; }
.coupon-applied .ca-info span { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 0.15rem; }
.coupon-applied button { color: var(--text-muted); padding: 0.2rem 0.4rem; }

/* Comparator */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  position: sticky; top: 80px;
  background: var(--bg-1);
  border-bottom: 2px solid var(--border-strong);
  z-index: 5;
  vertical-align: bottom;
}
.compare-table thead th:first-child { width: 200px; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.compare-table tbody th { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.compare-table .cmp-img {
  aspect-ratio: 1.6/1;
  background: linear-gradient(135deg, #0e1320, #1a1e2d);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}
.compare-table .cmp-img img, .compare-table .cmp-img svg { width: 100%; height: 100%; object-fit: cover; }
.compare-table .cmp-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; }
.compare-table .cmp-price { color: var(--accent); font-size: 1.05rem; font-weight: 700; }
.compare-table .yes { color: var(--ok); }
.compare-table .no { color: var(--text-dim); }

/* Quiz */
.quiz-shell {
  max-width: 720px; margin: 0 auto;
  padding: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.quiz-progress {
  height: 4px; background: var(--bg-3); border-radius: 100px; overflow: hidden;
  margin-bottom: 2rem;
}
.quiz-progress .qp-bar { height: 100%; background: var(--grad-1); transition: width .3s ease; }
.quiz-question { animation: fadeIn .35s ease; }
.quiz-options { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.quiz-option {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 1rem 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  width: 100%;
}
.quiz-option:hover { border-color: var(--accent); transform: translateX(2px); }
.quiz-option.selected { background: rgba(0,255,209,0.08); border-color: var(--accent); }
.quiz-option .qo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,255,209,0.12);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.quiz-option strong { display: block; font-size: 0.98rem; }
.quiz-option span { color: var(--text-muted); font-size: 0.84rem; }
.quiz-result {
  text-align: center;
  animation: fadeInUp .5s ease;
}

/* Hero animated scene */
.hero-scene {
  position: relative;
  width: 100%; max-width: 520px;
  aspect-ratio: 1.1 / 1;
  margin: 0 auto;
}
.hero-scene canvas { width: 100%; height: 100%; display: block; border-radius: var(--radius-lg); }
.hero-scene .scene-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,255,209,0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(124,92,255,0.15), transparent 60%);
}
.hero-scene .scene-frame {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,255,209,0.18);
  box-shadow: var(--shadow-card-lg), 0 0 60px -20px rgba(0,255,209,0.4);
}

/* "Cómo funciona" infographic */
.infographic {
  position: relative;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.infographic::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,255,209,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,255,209,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.infographic .ig-flow {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 920px; margin: 0 auto;
}
@media (max-width: 800px) { .infographic .ig-flow { grid-template-columns: 1fr; } .infographic .ig-arrow { transform: rotate(90deg); margin: 0 auto; } }
.infographic .ig-node {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  position: relative;
}
.infographic .ig-node h4 { font-size: 1rem; margin-top: 0.6rem; }
.infographic .ig-node p { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.3rem; line-height: 1.4; }
.infographic .ig-node .ig-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--grad-1);
  margin: 0 auto;
  display: grid; place-items: center;
  color: #001318;
  box-shadow: 0 6px 20px -6px rgba(0,255,209,0.4);
}
.infographic .ig-node.alt .ig-icon { background: var(--grad-2); color: white; box-shadow: 0 6px 20px -6px rgba(124,92,255,0.4); }
.infographic .ig-arrow { color: var(--accent); display: grid; place-items: center; }

/* Game landing */
.game-hero {
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.game-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, var(--accent), transparent 50%);
  opacity: 0.1; pointer-events: none;
}
.game-hero .gh-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.game-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.feature-icons {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
}
.feature-icons .fi-card {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icons .fi-card .fi-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,255,209,0.12); color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 0.6rem;
}
.feature-icons .fi-card strong { font-size: 0.95rem; }
.feature-icons .fi-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-top: 0.3rem; }

/* Recently viewed */
.recent-strip { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.5rem; }
.recent-strip a {
  flex: 0 0 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem; text-decoration: none; color: inherit;
  transition: all .2s;
}
.recent-strip a:hover { border-color: var(--accent); transform: translateY(-2px); }
.recent-strip .rs-img {
  aspect-ratio: 1.4/1;
  border-radius: 8px;
  background: linear-gradient(135deg, #0e1320, #1a1e2d);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.recent-strip .rs-img img, .recent-strip .rs-img svg { width: 100%; height: 100%; object-fit: cover; }
.recent-strip strong { font-size: 0.85rem; display: block; }
.recent-strip span { font-size: 0.78rem; color: var(--text-muted); }

/* Image upload widget (admin) */
.img-uploader {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.img-uploader .img-cell {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.img-uploader .img-cell img { width: 100%; height: 100%; object-fit: cover; }
.img-uploader .img-cell .rm {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 22px; height: 22px;
  color: var(--danger);
  display: grid; place-items: center;
  cursor: pointer;
}
.img-uploader .add-cell {
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 2px dashed var(--border-strong);
  display: grid; place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.img-uploader .add-cell:hover { border-color: var(--accent); color: var(--accent); }
.img-uploader .add-cell input { display: none; }

/* Bulk edit toolbar */
.bulk-bar {
  position: sticky; bottom: 16px;
  background: var(--bg-1);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  box-shadow: var(--shadow-card-lg);
  margin-top: 1rem;
  flex-wrap: wrap;
}
.bulk-bar .bb-count { font-weight: 600; color: var(--accent); }

/* Live preview pane */
.live-preview {
  position: sticky; top: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  padding: 1.4rem;
  overflow: auto;
}
.live-preview .lp-card {
  max-width: 320px; margin: 0 auto;
}

/* Sales chart canvas */
.chart-card { padding: 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.chart-card canvas { width: 100% !important; height: 220px !important; }

/* Game tile in shop nav */
.game-tile {
  position: relative;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: all .25s;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.game-tile::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, var(--accent-grad-from, var(--accent)), transparent 60%);
  opacity: 0.08; pointer-events: none;
}
.game-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.game-tile .gt-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; }
.game-tile .gt-price { color: var(--accent); font-weight: 700; }

/* Stars input (review form) */
.stars-input { display: inline-flex; gap: 0.2rem; }
.stars-input button { color: var(--text-dim); font-size: 1.2rem; transition: color .15s; }
.stars-input button.on { color: var(--accent); }

/* Toggle switch */
.switch { display:inline-flex; align-items:center; gap:0.5rem; cursor:pointer; }
.switch input { display:none; }
.switch .slot { width: 36px; height: 20px; border-radius: 100px; background: var(--bg-3); position: relative; transition: background .2s; }
.switch .slot::after { content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background: white; transition: transform .2s; }
.switch input:checked + .slot { background: var(--accent); }
.switch input:checked + .slot::after { transform: translateX(16px); }

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.5rem 0.6rem 0.5rem 1.2rem;
  display: flex; align-items: center; gap: 0.9rem;
  box-shadow: var(--shadow-card-lg);
  font-size: 0.88rem;
  max-width: calc(100% - 2rem);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (max-width: 600px) {
  .cookie-banner { border-radius: 14px; flex-wrap: wrap; padding: 0.8rem 1rem; left: 1rem; right: 1rem; transform: none; }
}

/* Age gate */
.age-gate-back {
  position: fixed; inset: 0;
  background: rgba(6,7,11,0.92);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: grid; place-items: center;
  padding: 2rem;
}
.age-gate-card {
  width: 100%; max-width: 460px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  text-align: center;
  box-shadow: var(--shadow-card-lg);
  animation: scaleIn .3s ease;
}
.age-gate-card h2 { font-size: 1.5rem; }
