/* ==========================================================
   QALITY — premium dark e-commerce, brand red #ff0042
   ========================================================== */

:root {
  --bg: #07070a;
  --bg-1: #0c0c10;
  --bg-2: #131318;
  --surface: #15151b;
  --surface-2: #1c1c24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --dim: rgba(255, 255, 255, 0.42);
  --red: #ff0042;
  --red-2: #ff3366;
  --red-soft: rgba(255, 0, 66, 0.14);
  --green: #2ed47a;
  --container: min(100% - 48px, 1340px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; }
p { margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--red); }
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

/* ============== Promo Bar ============== */
.promobar {
  background: linear-gradient(90deg, #1a0510 0%, #2a0820 50%, #1a0510 100%);
  border-bottom: 1px solid rgba(255, 0, 66, 0.18);
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.promobar::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 66, 0.18), transparent 70%);
  pointer-events: none;
}
.promobar-inner {
  position: relative; z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px;
  font-size: 13px; font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}
.promobar-inner strong { color: #fff; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap; }
.promobar-inner > span { white-space: nowrap; }
.promobar-inner code {
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}
.promobar-inner b { color: var(--red); font-weight: 700; }
.promobar-sep { color: rgba(255, 255, 255, 0.25); }
.promobar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
.promobar-timer b {
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  margin: 0 1px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ============== Header ============== */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; letter-spacing: 0.08em; font-size: 15px;
}
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { color: #fff; }

/* ===== Generic segmented control (nav / currency / lang) ===== */
.seg {
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}
.seg-bar {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.seg-bar-anim {
  transition:
    transform 0.45s cubic-bezier(0.32, 0.72, 0.24, 1),
    width 0.45s cubic-bezier(0.32, 0.72, 0.24, 1),
    left 0.45s cubic-bezier(0.32, 0.72, 0.24, 1),
    opacity 0.25s ease;
}
.seg-item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.25s ease;
}

/* ===== Nav: underline indicator ===== */
.seg.nav {
  gap: 4px;
  margin-left: 12px;
  padding-bottom: 2px;
}
.seg.nav .seg-item {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
}
.seg.nav .seg-item:hover { color: #fff; }
.seg.nav .seg-item.active { color: #fff; }
.seg.nav .seg-bar {
  bottom: -4px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 0, 66, 0.6);
}

/* ===== Currency: pill indicator ===== */
.seg.cur-seg {
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 38px;
}
.seg.cur-seg .seg-item {
  padding: 0 12px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 7px;
}
.seg.cur-seg .seg-item:hover { color: rgba(255,255,255,0.85); }
.seg.cur-seg .seg-item.active { color: #fff; }
.seg.cur-seg .seg-bar {
  top: 3px;
  height: calc(100% - 6px);
  background: var(--red);
  border-radius: 7px;
  box-shadow: 0 4px 12px -4px var(--red);
}

/* ===== Lang: pill indicator behind flag ===== */
.seg.lang-seg {
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 38px;
  gap: 2px;
}
.seg.lang-seg .seg-item {
  padding: 0 6px;
  height: 30px;
  border-radius: 7px;
  opacity: 0.55;
}
.seg.lang-seg .seg-item:hover { opacity: 0.85; }
.seg.lang-seg .seg-item.active { opacity: 1; }
.seg.lang-seg .seg-item img {
  width: 22px; height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.seg.lang-seg .seg-bar {
  top: 3px;
  height: calc(100% - 6px);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  transition: all 0.18s ease;
}
.icon-btn:hover { color: #fff; border-color: var(--border-strong); background: rgba(255,255,255,0.03); }

.cur-wrap { position: relative; }
.cur-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 13px; font-weight: 700;
}
.cur-btn:hover { border-color: var(--border-strong); }
.cur-caret { color: var(--muted); font-size: 10px; }
.cur-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 110px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  z-index: 5;
  box-shadow: var(--shadow-lg);
}
.cur-menu button {
  display: block; width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  text-align: left;
  font-size: 13px; font-weight: 600;
}
.cur-menu button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.cur-menu button.active { background: var(--red); color: #fff; }

.lang-row { display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.lang {
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5;
  transition: all 0.18s ease;
}
.lang img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.lang.active, .lang:hover { opacity: 1; }
.lang.active { border-color: var(--border-strong); }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 13px; font-weight: 700;
  position: relative;
  transition: all 0.18s ease;
}
.cart-btn:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.03); }
.cart-bubble {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  background: var(--red);
  border-radius: 9px;
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  box-shadow: 0 0 0 2px var(--bg);
}
.login-btn {
  height: 38px; padding: 0 18px;
  background: #fff;
  border: 0;
  border-radius: 10px;
  color: #0a0a0c;
  font-size: 13px; font-weight: 800;
  transition: all 0.18s ease;
}
.login-btn:hover { background: rgba(255,255,255,0.92); transform: translateY(-1px); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 140px;
  z-index: 100;
  animation: fade 0.18s ease;
}
.search-modal {
  width: min(680px, calc(100% - 48px));
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  color: var(--muted);
}
.search-modal input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: #fff; font-size: 16px; font-family: var(--font);
}
.search-modal kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  border: 1px solid var(--border);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute; 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: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 65%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.6;
}
.hero-glow-a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--red), transparent 65%);
  top: -120px; right: -80px;
}
.hero-glow-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, oklch(0.45 0.20 280), transparent 65%);
  bottom: -120px; left: -100px;
  opacity: 0.3;
}
.hero-orb {
  position: absolute;
  top: 30%; right: 8%;
  width: 280px; height: 280px;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.6 0.2 350) 0%, oklch(0.25 0.12 350) 60%, transparent 80%);
  filter: blur(40px);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-left { z-index: 2; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  color: #fff;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-sub b { color: rgba(255,255,255,0.9); font-weight: 700; }
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 11px;
  border: 0;
  font-size: 14px; font-weight: 700;
  font-family: var(--font);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-lg { height: 54px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--red), 0 0 0 1px rgba(255, 0, 66, 0.5) inset;
}
.btn-primary:hover {
  background: var(--red-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px var(--red);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }

.hero-trust {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}

/* Hero feature pills (replaces fake stats) */
.hero-promises {
  display: flex; flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--muted);
}
.hero-promises span {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255, 255, 255, 0.78);
}
.hero-promises svg { color: var(--green); flex-shrink: 0; }
.hero-promises.center { justify-content: center; }

/* Product framework tag (replaces fake rating row) */
.product-fw {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item b { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.1; }
.trust-item span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.trust-sep { width: 1px; height: 32px; background: var(--border); }

/* Hero right — code card */
.hero-right { position: relative; z-index: 2; }
.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 28, 36, 0.9), rgba(15, 15, 20, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.hc-header {
  display: flex; gap: 4px;
  padding: 10px 14px 0;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.hc-tab {
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent;
}
.hc-tab.active {
  color: #fff;
  background: rgba(255,255,255,0.04);
  border-bottom-color: var(--red);
}
.hc-code {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  white-space: pre-wrap;
}
.hc-code .cm { color: rgba(255,255,255,0.35); font-style: italic; }
.hc-code .kw { color: #c084fc; }
.hc-code .fn { color: #fbbf24; }
.hc-code .st { color: #4ade80; }
.hc-code .nu { color: var(--red-2); }
.hc-foot {
  display: flex; gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
}
.hc-stat { display: inline-flex; align-items: center; gap: 6px; }
.hc-stat.green { color: var(--green); }

.hero-badge {
  position: absolute;
  bottom: -18px; right: 30px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.badge-glyph {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red);
  border-radius: 8px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 0, 66, 0.5);
}
.hero-badge b { display: block; font-weight: 800; }
.hero-badge span { font-size: 11px; color: var(--muted); }

/* ============== Trust strip ============== */
.trust-strip {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  overflow: hidden;
}
.ts-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  padding-left: 0;
}
.ts-track {
  display: flex; gap: 48px;
  width: 100%;
  mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  animation: scroll 30s linear infinite;
}
.ts-item {
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  white-space: nowrap;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============== Section head ============== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.section-head.center {
  justify-content: center;
  text-align: center;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ============== Scroll reveal animations ============== */
@media (prefers-reduced-motion: no-preference) {
  /* React-state managed reveal (survives re-renders) */
  .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
      opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
      border-color 0.35s ease, box-shadow 0.35s ease;
    transition-delay: calc(var(--i, 0) * 0.06s);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  /* Hover transform on product cards uses translate3d so it does NOT conflict with reveal */
  .product.is-visible:hover {
    transform: translate3d(0, -4px, 0);
  }

  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  [data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
  [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
  [data-reveal="scale"] { transform: scale(0.94); }
  [data-reveal="fade"]  { transform: none; }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  [data-reveal-delay="1"] { transition-delay: 0.06s; }
  [data-reveal-delay="2"] { transition-delay: 0.14s; }
  [data-reveal-delay="3"] { transition-delay: 0.22s; }
  [data-reveal-delay="4"] { transition-delay: 0.30s; }
  [data-reveal-delay="5"] { transition-delay: 0.38s; }
  [data-reveal-delay="6"] { transition-delay: 0.46s; }
  [data-reveal-delay="7"] { transition-delay: 0.54s; }

  /* Auto stagger product grid + included grid */
  .product-grid > [data-reveal],
  .incl-grid > [data-reveal],
  .bundle-stack > [data-reveal],
  .faq-list > [data-reveal] {
    transition-delay: calc(var(--i, 0) * 0.07s);
  }

  /* Hero entrance animations on initial paint */
  .hero-pill,
  .hero-title,
  .hero-sub,
  .hero-cta,
  .hero-promises,
  .hero-card,
  .hero-badge {
    animation: heroIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }
  .hero-pill      { animation-delay: 0.05s; }
  .hero-title     { animation-delay: 0.12s; }
  .hero-sub       { animation-delay: 0.22s; }
  .hero-cta       { animation-delay: 0.32s; }
  .hero-promises  { animation-delay: 0.42s; }
  .hero-card      { animation: heroCardIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s backwards; }
  .hero-badge     { animation: heroBadgeIn 0.7s cubic-bezier(0.22, 0.9, 0.36, 1.2) 0.85s backwards; }

  @keyframes heroIn {
    from { opacity: 0; transform: translate3d(0, 32px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  @keyframes heroCardIn {
    from { opacity: 0; transform: translate3d(24px, 16px, 0) perspective(1200px) rotateY(-12deg); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) perspective(1200px) rotateY(-6deg) rotateX(2deg); }
  }
  @keyframes heroBadgeIn {
    from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.9); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }

  /* Subtle gradient sweep on hero glow */
  .hero-glow-a {
    animation: glowPulse 6s ease-in-out infinite;
  }
  @keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.08); }
  }

  /* Code card subtle hover lift */
  .hero-card { transition: transform 0.5s ease; }

  /* Smooth product card lift */
  .product { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease; }

  /* FAQ item: smooth answer slide */
  .faq-a { transition: max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }

  /* Add to cart success pop */
  .btn-added { animation: addPop 0.4s cubic-bezier(0.22, 0.9, 0.36, 1.4); }
  @keyframes addPop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); }
  }

  /* Toast slide-up already exists, keep */
}

/* ============== Featured (home teaser) ============== */
.featured {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px 40px;
}
.featured-all {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
}
.featured-all:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}

/* ============== Scripts page hero ============== */
.scripts-hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.scripts-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.scripts-hero .hero-pill { margin-bottom: 24px; }
.scripts-hero .hero-title {
  font-size: clamp(40px, 5.4vw, 72px);
  max-width: 900px;
  margin-bottom: 20px;
}
.scripts-hero .hero-sub {
  margin: 0 auto 36px;
  max-width: 640px;
}
.scripts-hero .hero-trust { justify-content: center; }

/* ============== Catalog ============== */
.catalog {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 40px;
}
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sort-sel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  outline: 0;
}
.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
}
.cat-tab:hover { color: #fff; border-color: var(--border-strong); }
.cat-tab-active {
  background: #fff;
  color: #0a0a0c;
  border-color: #fff;
}
.cat-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.cat-tab-active .cat-count { background: rgba(0,0,0,0.08); color: #0a0a0c; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ============== Product Card ============== */
.product {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.24s ease;
}
.product:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255, 0, 66, 0.18);
}
.product-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.thumb {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
}
.thumb-lg { aspect-ratio: 4 / 3; border-radius: 14px; }
.thumb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}
.thumb-glow {
  position: absolute;
  top: -20%; right: -20%;
  width: 70%; height: 70%;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
}
.thumb-glyph {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
  font-family: var(--mono);
  letter-spacing: -0.05em;
}
.thumb-lg .thumb-glyph { font-size: 140px; }
.thumb-meta {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.p-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  z-index: 2;
}
.p-badge {
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
}
.p-badge-new { background: var(--red); border-color: transparent; }
.p-badge-best { background: linear-gradient(135deg, #fbbf24, #f59e0b); border-color: transparent; color: #1a0e00; }
.p-badge-trend { background: linear-gradient(135deg, #06d4b0, #00a98a); border-color: transparent; color: #002a20; }
.p-badge-sale { background: var(--red); border-color: transparent; }
.p-preview {
  position: absolute; top: 12px; right: 12px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}
.product-hover .p-preview { opacity: 1; transform: translateY(0); }
.p-preview:hover { background: rgba(0,0,0,0.85); }

.product-body { padding: 18px 18px 16px; }
.product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.product-head h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.product-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  white-space: nowrap;
}
.product-tag {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 38px;
}
.product-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-meta b { color: #fff; font-weight: 700; margin: 0 2px; }
.stars { display: inline-flex; gap: 1px; }
.star { color: rgba(255,255,255,0.18); }
.star-on { color: #fbbf24; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.product-price { display: flex; align-items: baseline; gap: 8px; }
.price-old {
  font-size: 12px;
  color: var(--dim);
  text-decoration: line-through;
}
.price-now {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.price-now-xl {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}
.btn-add {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.18s ease;
}
.btn-add:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn-added { background: var(--green); border-color: var(--green); color: #002a13; }
.btn-added:hover { background: var(--green); }

/* ============== Bundle ============== */
.bundle {
  margin: 80px auto;
  max-width: var(--container);
  padding: 0 24px;
}
.bundle-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 0, 66, 0.16), transparent 50%),
    linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  overflow: hidden;
}
.bundle-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask: radial-gradient(circle at 80% 50%, black, transparent 70%);
  -webkit-mask: radial-gradient(circle at 80% 50%, black, transparent 70%);
}
.bundle-left { position: relative; z-index: 1; }
.bundle-left h2 {
  font-family: var(--display);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}
.bundle-left p { color: var(--muted); font-size: 16px; margin-bottom: 28px; max-width: 480px; }
.bundle-pricerow {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.bundle-price {
  display: flex; align-items: baseline; gap: 12px;
}
.bundle-save {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.bundle-checks {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.bundle-checks span { color: rgba(255,255,255,0.78); }

.bundle-right { position: relative; z-index: 1; }
.bundle-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bs-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  transition: transform 0.3s ease;
}
.bs-tile:hover { transform: translate(0,0) scale(1.05) !important; }
.bs-glyph {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
}
.bs-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}

/* ============== Testimonials ============== */
.testimonials {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.t-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 20px;
}
.t-quote {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.t-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  color: #fff;
}
.t-author b { display: block; font-size: 14px; }
.t-author span { font-size: 12px; color: var(--muted); }

/* ============== Included ============== */
.included {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
}
.incl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.incl-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.24s ease;
}
.incl-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.incl-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 0, 66, 0.12);
  border: 1px solid rgba(255, 0, 66, 0.25);
  border-radius: 11px;
  color: var(--red);
  margin-bottom: 18px;
}
.incl-icon svg { width: 22px; height: 22px; }
.incl-card h3 {
  font-family: var(--display);
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.incl-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============== FAQ ============== */
.faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px;
}
.faq-search {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}
.faq-search input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: #fff; font-size: 15px;
  font-family: var(--font);
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.18s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.faq-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  transition: all 0.2s ease;
}
.faq-caret svg { display: block; }
.faq-open .faq-caret {
  transform: rotate(45deg);
  background: var(--red);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-open .faq-a { max-height: 200px; }
.faq-a p {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.faq-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ============== Final CTA ============== */
.final-cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.fc-inner {
  position: relative;
  padding: 80px 60px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 0, 66, 0.25), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  overflow: hidden;
}
.fc-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask: radial-gradient(circle at 50% 50%, black, transparent 80%);
  -webkit-mask: radial-gradient(circle at 50% 50%, black, transparent 80%);
}
.fc-inner > * { position: relative; z-index: 1; }
.fc-inner h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}
.fc-inner p { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.fc-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============== Footer ============== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand span { font-weight: 900; letter-spacing: 0.08em; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 280px; line-height: 1.6; margin-top: 6px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--dim);
}

/* ============== Cart Drawer ============== */
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  animation: fade 0.2s ease;
}
.cart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--bg-1);
  border-left: 1px solid var(--border-strong);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -30px 0 60px rgba(0,0,0,0.6);
}
.cart-open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 18px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px;
  padding: 0 8px;
  background: var(--red);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  margin-left: 4px;
}
.cart-close {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.cart-close:hover { background: rgba(255,255,255,0.06); }
.cart-body {
  flex: 1; overflow-y: auto;
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  height: 100%;
  color: var(--muted);
  gap: 8px;
}
.cart-empty-glyph {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim);
  margin-bottom: 8px;
}
.cart-empty-glyph svg { width: 44px; height: 44px; }
.cart-empty h4 { font-size: 16px; color: #fff; }
.cart-empty p { font-size: 13px; max-width: 280px; }
.cart-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cart-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}
.cart-info b { display: block; font-size: 14px; }
.cart-info span { font-size: 12px; color: var(--muted); }
.cart-priceblock { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.cart-priceblock > span { font-weight: 800; }
.cart-remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  text-align: right;
  transition: color 0.18s ease;
}
.cart-remove:hover { color: var(--red); }

.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.cart-coupon { display: flex; gap: 8px; margin-bottom: 14px; }
.cart-coupon input {
  flex: 1; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  outline: 0;
}
.cart-coupon input:focus { border-color: var(--red); }
.cart-coupon button {
  padding: 0 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.cart-coupon button.applied { background: var(--green); border-color: var(--green); color: #002a13; }

/* ===== Promo Code (improved) ===== */
.promo-box {
  margin-bottom: 14px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.promo-box:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 0, 66, 0.12);
}
.promo-box.promo-error {
  animation: shake 0.4s ease;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 0, 66, 0.18);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.promo-row {
  display: flex; align-items: center;
  gap: 0;
  background: var(--bg);
  border-radius: 9px;
  padding: 2px 2px 2px 12px;
  overflow: hidden;
}
.promo-icon {
  display: inline-flex;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 4px;
}
.promo-icon svg { width: 16px; height: 16px; display: block; }
.promo-box:focus-within .promo-icon { color: var(--red); }
.promo-row input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 8px;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.promo-row input::placeholder {
  color: var(--dim);
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 500;
}
.promo-apply {
  padding: 0 16px;
  height: 34px;
  background: var(--red);
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, opacity 0.18s ease;
  flex-shrink: 0;
}
.promo-apply:hover:not(:disabled) { background: var(--red-2); }
.promo-apply:disabled {
  background: rgba(255,255,255,0.08);
  color: var(--dim);
  cursor: not-allowed;
}
.promo-meta {
  padding: 8px 12px 6px;
  font-size: 11.5px;
  color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}
.promo-meta b { color: rgba(255,255,255,0.92); font-weight: 700; }
.promo-msg { color: var(--red); }
.promo-msg b { color: var(--red); }

.promo-applied {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(46, 212, 122, 0.14), rgba(46, 212, 122, 0.05));
  border: 1px solid rgba(46, 212, 122, 0.35);
  border-radius: 12px;
  animation: applied-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes applied-in {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.pa-icon {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: var(--green);
  border-radius: 50%;
  color: #002a13;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(46, 212, 122, 0.18);
}
.pa-icon svg { width: 18px; height: 18px; display: block; }
.pa-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.pa-text b { color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: -0.005em; }
.pa-text span { font-size: 11.5px; color: rgba(255,255,255,0.65); }
.pa-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.06);
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.pa-remove svg { width: 14px; height: 14px; }
.pa-remove:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cart-line {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
}
.cart-line.accent { color: var(--red); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 18px;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.cart-total b { font-size: 26px; color: #fff; font-weight: 900; letter-spacing: -0.02em; }
.cart-trust {
  display: flex; justify-content: space-around;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.cart-trust span { display: inline-flex; align-items: center; gap: 5px; }
.cart-trust svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ============== Preview modal ============== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fade 0.2s ease;
}
.modal {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}
.modal-close:hover { background: rgba(255,255,255,0.12); }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
}
.modal-thumb {
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  min-height: 380px;
}
.modal-thumb .thumb { border-radius: 14px; }
.modal-info { padding: 36px; display: flex; flex-direction: column; }
.modal-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.modal-info h2 { font-family: var(--display); font-size: 34px; margin-bottom: 8px; letter-spacing: -0.04em; }
.modal-tag { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.modal-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.modal-meta b { color: #fff; }
.modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.86);
}
.modal-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding-top: 20px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.modal-trust {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 11px;
  color: var(--muted);
  padding-top: 16px;
}

/* ============== Toast ============== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 12px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  z-index: 500;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ============== Responsive ============== */
@media (max-width: 1180px) {
  .nav, .seg.nav { display: none; }
  .top-inner { gap: 16px; }
  .cart-btn span:not(.cart-bubble) { display: none; }
  .cart-btn { padding: 0 12px; }
}
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; max-width: 480px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .t-grid { grid-template-columns: 1fr; }
  .incl-grid { grid-template-columns: repeat(2, 1fr); }
  .bundle-inner { grid-template-columns: 1fr; padding: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .lang-row, .seg.lang-seg { display: none; }
  .cur-wrap, .seg.cur-seg { display: none; }
}
@media (max-width: 720px) {
  .hero { padding: 60px 0; }
  .hero-trust { gap: 14px; }
  .trust-sep { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .incl-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .fc-inner { padding: 60px 24px; }
  .bundle-inner { padding: 30px; }
  .promobar-inner { font-size: 12px; }
  .promobar-timer { display: none; }
}
