:root {
  --bg: #050507;
  --bg-elev: #0c0a0f;
  --bg-card: #121018;
  --line: rgba(200, 91, 242, 0.22);
  --text: #f4f0f8;
  --muted: #9a91a8;
  --accent: #c85bf2;
  --accent-dim: #7e1ab6;
  --accent-soft: rgba(200, 91, 242, 0.14);
  --good: #4ade80;
  --bad: #f87171;
  --gold: #fbbf24;
  --radius: 16px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; margin: 0; padding: 0; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #000;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Marching-squares contour canvas background */
.viewport {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #000;
}
#res-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dark atmosphere over topo — full page (was only on hero) */
.viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.35) 0%, rgba(5, 5, 7, 0.55) 45%, rgba(5, 5, 7, 0.78) 100%),
    radial-gradient(circle at 50% 28%, transparent 0%, rgba(5, 5, 7, 0.45) 72%, rgba(5, 5, 7, 0.72) 100%);
}
/* Sticky site footer: stays at bottom even when main content is short */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page > main,
.page > .legal-page,
.page > .hq-gate {
  flex: 1 0 auto;
}
.page > footer {
  margin-top: auto;
  flex-shrink: 0;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.55rem; }
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 1.2rem; }
.crumb a:hover { color: var(--text); }

/* —— Nav —— */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 7, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-sub {
  display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase; margin-top: 0.08rem;
}
.nav-links { display: flex; gap: 1.2rem; align-items: center; color: var(--muted); font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); }

/* All buttons share Discord-button form */
.btn {
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 10px 15px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: background .15s ease, transform .15s ease, opacity .15s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 12px; font-size: 0.88rem; gap: 0.5rem; }
.btn .ico {
  width: 22px; height: 22px; margin-right: 0;
  background-color: currentColor;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #120816;
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}
.btn-discord {
  background: #7289da;
  color: #fff;
}
.btn-discord:hover {
  background: #6a7fc9;
}
.btn-discord .discord-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: block;
}
.btn-discord .discord-ico svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  display: block;
}
.ico-discord { --ico: url("../assets/icons/discord.svg"); }

/* Hero social proof */
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin: 1.5rem auto 0; max-width: 640px;
}
.hero-stat {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.9rem; border-radius: 8px;
  background: rgba(18, 16, 24, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-size: 0.88rem; color: var(--muted);
}
.hero-stat strong {
  color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums;
}
.hero-stat .ico-img {
  width: 1.15rem; height: 1.15rem; flex: 0 0 auto;
}
.hero-stat .ico-img.tone-accent {
  filter: invert(52%) sepia(78%) saturate(1800%) hue-rotate(246deg) brightness(101%) contrast(96%);
}
.hero-stat .ico-img.tone-gold {
  filter: invert(76%) sepia(58%) saturate(700%) hue-rotate(359deg) brightness(102%) contrast(96%);
}

/* —— Hero (homepage) —— */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid; place-items: center;
  overflow: hidden;
  padding: 4rem 0 3rem;
}
.hero-video {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.hero-chroma {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.9;
}
/* Light fade so hero video blends into page; main dark filter is .viewport::after */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 7, 0.55) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  width: min(820px, calc(100% - 2rem));
}
.eyebrow {
  display: inline-flex; gap: 0.5rem; align-items: center;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--accent-soft);
  color: #e9c6ff; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95; margin: 0 0 1rem; letter-spacing: -0.03em;
}
.hero h1 .text-shimmer {
  font-size: inherit;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 span.hero-sub {
  background: linear-gradient(120deg, #fff 20%, var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Sweeping light shimmer (brand text / loading logo wordmark) */
.text-shimmer {
  display: inline-block;
  color: #e9c6ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  background-image: linear-gradient(
    90deg,
    #9a6bb8 0%,
    #9a6bb8 40%,
    #ffffff 50%,
    #9a6bb8 60%,
    #9a6bb8 100%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: emp-shimmer 3.2s ease-in-out infinite;
}
@keyframes emp-shimmer {
  0% { background-position: 100% top; }
  40% { background-position: -100% top; }
  100% { background-position: -100% top; }
}
/* Phone: keep letters visible — glow shimmer (clip+transparent often blanks on mobile) */
@media (max-width: 860px) {
  .hero h1 .text-shimmer,
  .text-shimmer {
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #f0d4ff;
    color: #f0d4ff;
    animation: emp-shimmer-glow 2.6s ease-in-out infinite;
  }
}
@keyframes emp-shimmer-glow {
  0%, 100% {
    color: #e0b8f5;
    -webkit-text-fill-color: #e0b8f5;
    text-shadow: 0 0 0 transparent;
    filter: brightness(1);
  }
  50% {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 0 16px rgba(200, 91, 242, 0.55);
    filter: brightness(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .text-shimmer {
    animation: none !important;
    -webkit-text-fill-color: #e9c6ff !important;
    color: #e9c6ff !important;
    background-image: none !important;
  }
}
.hero p.lead {
  color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 36rem; margin: 0 auto 1.8rem;
}
.discord-note {
  margin: 0.35rem auto 0.85rem;
  max-width: 36rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 91, 242, 0.35);
  background: rgba(200, 91, 242, 0.1);
  color: #e8d7f5;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}
.discord-note strong { color: #f4e8ff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
/* Developer badge — same layout as admin-dash, EMP site colors */
.dev-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 52px;
  max-width: 260px;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(18, 16, 24, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dev-badge:hover {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 12px 32px rgba(108, 85, 224, 0.22);
}
.dev-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
.dev-avatar-wrap::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dev-avatar-url, #5865f2) center / cover no-repeat;
  z-index: 0;
}
.dev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  left: 2px;
  top: 2px;
  background: transparent;
  z-index: 1;
  display: block;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.dev-decoration {
  position: absolute;
  inset: -6px;
  width: 56px;
  height: 56px;
  pointer-events: none;
  object-fit: contain;
  z-index: 2;
  border: 0;
  background: transparent;
  /* img { display:block } overrides [hidden] — force hide */
}
.dev-decoration[hidden],
.dev-status[hidden] {
  display: none !important;
}
.dev-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #121018;
  background: #80848e;
  z-index: 3;
  display: block;
  box-sizing: border-box;
}
.dev-status.is-online { background: #23a55a; }
.dev-status.is-idle { background: #f0b232; }
.dev-status.is-dnd {
  background: #f23f43;
}
.dev-status.is-dnd::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 2px;
  border-radius: 1px;
  background: #121018;
  transform: translate(-50%, -50%);
}
.dev-status { overflow: hidden; }
.dev-status.is-offline { background: #80848e; }
.dev-avatar-wrap.is-voice .dev-avatar {
  box-shadow: 0 0 0 2px #23a55a;
}
.dev-badge-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}
.dev-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.dev-name.is-nitro {
  background: linear-gradient(
    90deg,
    #f47fff 0%,
    #5865f2 25%,
    #57f287 50%,
    #5865f2 75%,
    #f47fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: emp-nitro-shine 3s linear infinite;
}
@keyframes emp-nitro-shine {
  to { background-position: 200% center; }
}

/* Discord display_name_styles (from Bot API) */
.dev-name.has-dns {
  --dns-c1: #ffffff;
  --dns-c2: #c0c0c0;
  --dns-c3: #ffffff;
  font-weight: 700;
}
.dev-name.dns-solid {
  color: var(--dns-c1);
  background: none;
  -webkit-text-fill-color: var(--dns-c1);
}
.dev-name.dns-gradient,
.dev-name.dns-glow {
  background: linear-gradient(90deg, var(--dns-c1), var(--dns-c2, var(--dns-c1)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.dev-name.dns-neon {
  color: var(--dns-c1);
  -webkit-text-fill-color: var(--dns-c1);
  text-shadow:
    0 0 4px var(--dns-c1),
    0 0 12px var(--dns-c1),
    0 0 22px color-mix(in srgb, var(--dns-c1) 70%, transparent);
}
.dev-name.dns-toon {
  /* Match Discord Toon: white → accent, soft pink/red glow */
  background: linear-gradient(180deg, #ffffff 10%, #ffb4c0 48%, var(--dns-c1, #cf0f12) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--dns-c1, #cf0f12) 55%, transparent))
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.75));
}
.dev-name.dns-pop {
  color: var(--dns-c1);
  -webkit-text-fill-color: var(--dns-c1);
  text-shadow: 2px 3px 0 color-mix(in srgb, var(--dns-c1) 55%, #000);
}
.dev-name.dns-prism {
  background: linear-gradient(
    90deg,
    var(--dns-c1),
    var(--dns-c2, #5865f2),
    var(--dns-c3, #57f287),
    var(--dns-c1)
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: emp-nitro-shine 2.8s linear infinite;
}
.dev-name.dns-gummy {
  background: linear-gradient(
    115deg,
    var(--dns-c1) 0%,
    var(--dns-c2, #fff) 40%,
    var(--dns-c1) 70%,
    var(--dns-c2, #fff) 100%
  );
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: emp-nitro-shine 2.2s ease-in-out infinite alternate;
}
.dev-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.dev-handle {
  display: block;
  margin-top: 2px;
  color: #949ba4;
  font-size: 0.68rem;
}
.dev-handle[hidden] { display: none !important; }
.dc-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.dc-badge {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.dc-clan-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.35rem;
  height: 18px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.45);
  color: #c9cdfb;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.dc-clan-icon { width: 12px; height: 12px; border-radius: 2px; }
.dev-role {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}
.dev-activity {
  display: block;
  margin-top: 2px;
  color: #b5bac1;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.dev-activity[hidden] { display: none !important; }
.dev-pill.status-pill {
  text-transform: capitalize;
  background: rgba(35, 165, 90, 0.15);
  color: #86efac;
  border-color: rgba(35, 165, 90, 0.35);
}
.dev-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.dev-pill,
.dev-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.dev-pill.nitro,
.dev-badge-pill.nitro {
  background: rgba(244, 127, 255, 0.16);
  color: #f5d0fe;
  border-color: rgba(244, 127, 255, 0.4);
}
.dev-pill.dev { /* same as default EMP purple */ }
.brand-compact { margin-left: 0.25rem; }

.dev-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  max-width: min(280px, calc(100vw - 2rem));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.dev-fab:hover { transform: translateY(-3px); }
.dev-fab .dev-avatar-wrap {
  overflow: visible;
}
.dev-fab .dev-avatar {
  /* prevent broken-box look if CDN briefly fails */
  background: #1e1f22;
}

@media (max-width: 720px) {
  .dev-badge .dev-badges { display: none; }
  .dev-fab { right: 0.75rem; bottom: 0.75rem; }
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(18, 16, 24, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.88rem;
}
.platform-badge strong { color: var(--text); font-weight: 800; }
.platform-logo {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.hero-content .platform-badge { margin: 0.2rem auto 0.9rem; }
.pm-info .platform-badge { margin: 0.55rem 0 0.75rem; }
.platform-badge--compact { margin: 0.55rem 0; font-size: 0.82rem; padding: 0.35rem 0.7rem; }

.price-pill { margin-top: 1.4rem; color: var(--muted); font-size: 0.95rem; }
.price-pill strong,
.price-pill .price-now,
.pm-price strong,
.pm-price .price-now,
.total-row strong,
#ckLinePrice {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.price-pill strong { font-size: 1.2rem; }
.price-was {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92em;
  opacity: 0.85;
  font-family: var(--font-body);
}
.price-now { color: var(--text); font-weight: 700; }
.nav-login {
  padding: 7px 11px;
  font-size: 0.82rem;
  gap: 0.4rem;
}
.nav-login .ico {
  width: 16px;
  height: 16px;
}
.qty-field .hint { margin: 0.35rem 0 0; }
.qty-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.qty-row input {
  width: 4.2rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.qty-btn {
  min-width: 2.4rem;
  font-size: 1.1rem;
  line-height: 1;
}
.qty-btn:disabled,
.qty-row input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.stock-line.out {
  color: #f87171;
  font-weight: 700;
}
.license-keys-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
}
.license-keys-list code {
  display: block;
  word-break: break-all;
  font-size: 0.85rem;
}
.price-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.review-prompt {
  border-color: rgba(129, 140, 248, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.2);
}

/* —— Sections —— */
section { padding: 5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.6rem; letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); }

.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}

.card {
  position: relative;
  z-index: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: none;
  transition: transform 0.35s ease;
}
/* Outer neon aura — soft, multi-tone purple so the shift is visible */
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(
    125deg,
    #5b21b6 0%,
    #7e1ab6 18%,
    #c85bf2 36%,
    #e879f9 52%,
    #a855f7 68%,
    #6d28d9 84%,
    #4c1d95 100%
  );
  background-size: 300% 300%;
  opacity: 0.38;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  animation: card-neon-glow 4.5s ease-in-out infinite;
  transition: opacity 0.45s ease, filter 0.45s ease;
}
/* Solid card surface on top of glow */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent), rgba(18, 16, 24, 0.92);
  border: 1px solid rgba(200, 91, 242, 0.28);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(200, 91, 242, 0.14),
    var(--shadow);
  backdrop-filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.card > * {
  position: relative;
  z-index: 1;
}
.card:hover {
  transform: scale3d(1.03, 1.03, 1);
}
.card:hover::before {
  opacity: 0.55;
  filter: blur(12px);
}
.card:hover::after {
  border-color: rgba(232, 121, 249, 0.55);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(200, 91, 242, 0.28),
    var(--shadow);
}
/* Form / checkout cards: glow yes, no jump while typing */
.checkout-form-card:hover,
.checkout-summary:hover,
.portal-auth:hover,
.login-gate:hover,
.admin-panel:hover {
  transform: none;
}
@keyframes card-neon-glow {
  0% {
    background-position: 0% 40%;
    opacity: 0.32;
  }
  33% {
    background-position: 70% 60%;
    opacity: 0.45;
  }
  66% {
    background-position: 100% 30%;
    opacity: 0.38;
  }
  100% {
    background-position: 0% 40%;
    opacity: 0.32;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card::before { animation: none; }
  .card:hover { transform: none; }
}
.card h3 {
  font-family: var(--font-display); margin: 0 0 0.45rem; font-size: 1.2rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px var(--accent);
  margin-bottom: 0.9rem;
}

/* IcoMoon Free icons — img + filter (reliable) + mask fallback */
.ico-img {
  display: inline-block;
  width: 1.15em; height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.2em;
  object-fit: contain;
}
.ico-img.tone-accent {
  filter: invert(52%) sepia(78%) saturate(1800%) hue-rotate(246deg) brightness(101%) contrast(96%);
}
.ico-img.tone-gold {
  filter: invert(76%) sepia(58%) saturate(700%) hue-rotate(359deg) brightness(102%) contrast(96%);
}
.ico-img.tone-white {
  filter: brightness(0) invert(1);
}
.ico-img.tone-muted {
  filter: invert(62%) sepia(8%) saturate(500%) hue-rotate(220deg) brightness(95%);
}
.ico {
  display: inline-block;
  width: 1.15em; height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ico-lg {
  width: 1.65rem; height: 1.65rem;
}
.card-ico {
  width: 2.4rem; height: 2.4rem;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(200, 91, 242, 0.15);
}
.card-ico .ico { width: 1.15rem; height: 1.15rem; }
.check-list .mark .ico { width: 0.85rem; height: 0.85rem; }
.btn .ico { margin-right: 0.15rem; }
.star-picker .ico { width: 1.45rem; height: 1.45rem; }
.star-picker button { color: #4a4454; }
.star-picker button.on { color: var(--gold); }
.review-meta .ico, .stars .ico, .stars-lg .ico, .pm-rating .ico {
  width: 0.9em; height: 0.9em; color: var(--gold);
}
.ico-rocket { --ico: url("../assets/icons/rocket.svg"); }
.ico-display { --ico: url("../assets/icons/display.svg"); }
.ico-shield { --ico: url("../assets/icons/shield.svg"); }
.ico-meter { --ico: url("../assets/icons/meter.svg"); }
.ico-video { --ico: url("../assets/icons/video.svg"); }
.ico-key { --ico: url("../assets/icons/key.svg"); }
.ico-lock { --ico: url("../assets/icons/lock.svg"); }
.ico-check { --ico: url("../assets/icons/check.svg"); }
.ico-cart { --ico: url("../assets/icons/cart.svg"); }
.ico-download { --ico: url("../assets/icons/download.svg"); }
.ico-star { --ico: url("../assets/icons/star.svg"); }
.ico-star-empty { --ico: url("../assets/icons/star-empty.svg"); }
.ico-copy { --ico: url("../assets/icons/copy.svg"); }
.ico-cog { --ico: url("../assets/icons/cog.svg"); }
.ico-fire { --ico: url("../assets/icons/fire.svg"); }
.ico-home { --ico: url("../assets/icons/home.svg"); }
.ico-cogs { --ico: url("../assets/icons/cogs.svg"); }
.ico-trophy { --ico: url("../assets/icons/trophy.svg"); }
.ico-stats { --ico: url("../assets/icons/stats.svg"); }
.ico-cloud-download { --ico: url("../assets/icons/cloud-download.svg"); }
.ico-tag { --ico: url("../assets/icons/tag.svg"); }
.ico-user { --ico: url("../assets/icons/user.svg"); }
.ico-users { --ico: url("../assets/icons/users.svg"); }
.ico-user-check { --ico: url("../assets/icons/user-check.svg"); }
.ico-bubbles { --ico: url("../assets/icons/bubbles.svg"); }
.ico-happy { --ico: url("../assets/icons/happy.svg"); }
.ico-cloud-check { --ico: url("../assets/icons/cloud-check.svg"); }
.ico-quote { --ico: url("../assets/icons/quote.svg"); }
.ico-power { --ico: url("../assets/icons/power.svg"); }
.ico-loop { --ico: url("../assets/icons/loop.svg"); }

/* —— Compare —— */
.compare-table {
  width: 100%; border-collapse: collapse; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.85); backdrop-filter: blur(8px);
}
.compare-table th, .compare-table td {
  padding: 0.95rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.92rem;
}
.compare-table th {
  font-family: var(--font-display); background: rgba(200,91,242,0.08);
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--good); font-weight: 700; }
.compare-table .no { color: var(--bad); opacity: 0.85; }
.compare-table .emp { color: var(--accent); font-weight: 800; }

/* —— Checklist —— */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.check-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.95rem 1.1rem; border-radius: 14px;
  background: rgba(18, 16, 24, 0.78); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.check-list .mark {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.85rem;
}

/* —— Feedback carousel —— */
.carousel-wrap { position: relative; margin-top: 0.5rem; }
.carousel-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.carousel-track {
  display: flex; gap: 1rem; width: max-content;
  animation: slide 55s linear infinite;
}
.carousel-wrap:hover .carousel-track { animation-play-state: paused; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.review {
  width: min(340px, 78vw);
  flex: 0 0 auto;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(18, 16, 24, 0.92);
  border: 1px solid var(--line);
}
.review .stars {
  display: flex; gap: 0.15rem; align-items: center;
  margin-bottom: 0.55rem;
}
.review .stars .ico-img { width: 0.95rem; height: 0.95rem; }
.review p { margin: 0 0 0.9rem; color: #d8d0e2; font-size: 0.95rem; }
.review .who { display: flex; align-items: center; gap: 0.65rem; color: var(--muted); font-size: 0.85rem; }
.review .who .ico-img { width: 0.9rem; height: 0.9rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2a1638);
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 0.8rem;
  overflow: hidden;
}
.avatar .ico-img { width: 1rem; height: 1rem; }

/* —— Product page —— */
.product-page { padding: 2rem 0 4rem; }
.product-page-grid { align-items: stretch; }
.product-info-card h1 {
  font-family: var(--font-display); margin: 0.35rem 0 0.15rem; font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.product-cat { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pm-grid {
  display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 1.35rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pm-stage { min-height: 280px; }
}
.pm-media {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.pm-gallery { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.65rem; flex-shrink: 0; }
.pm-thumb {
  border: 1px solid var(--line); background: #0a090e; color: var(--muted);
  border-radius: 10px; padding: 0.35rem 0.55rem; cursor: pointer; font-size: 0.78rem; font-weight: 700;
}
.pm-thumb img {
  width: 56px; height: 40px; object-fit: contain;
  background: #0a090e; border-radius: 6px; display: block;
}
.pm-thumb.active { border-color: var(--accent); color: var(--text); }
.pm-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 420px;
  height: 100%;
  border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(200,91,242,0.12), transparent 55%),
    #08070b;
  border: 1px solid var(--line);
}
.pm-stage img, .pm-stage video { width: 100%; height: 100%; object-fit: cover; }
.pm-stage .pm-product-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 2.5%;
  background: transparent;
}
.pm-stage .product-chroma {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.pm-stage .product-chroma[hidden],
.pm-stage .product-logo-video[hidden],
.pm-stage .pm-product-shot[hidden] {
  display: none !important;
}
.pm-stage .product-chroma:not([hidden]) {
  display: block;
}
.pm-stage .product-logo-video {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.pm-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(200, 91, 242, 0.55);
  background: rgba(8, 7, 11, 0.78);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.pm-arrow-prev { left: 12px; }
.pm-arrow-next { right: 12px; }
.pm-arrow:hover { background: rgba(200, 91, 242, 0.35); }
img, video, canvas, svg {
  -webkit-user-drag: none;
  user-select: none;
}
.pm-stage .pm-fallback-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 12%; opacity: 0.35; pointer-events: none;
}
.product-info-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pm-sub { margin: 0; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.pm-rating { color: var(--gold); margin: 0.55rem 0; font-size: 0.92rem; }
.pm-price { margin: 0 0 0.5rem; }
.pm-price strong { font-size: 1.65rem; }
.pm-price .price-was { font-size: 1rem; margin-right: 0.35rem; }
.pm-price .price-now { font-size: 1.65rem; }
.price-pill .price-was { font-size: 0.95rem; margin-right: 0.35rem; }
.price-pill .price-now { font-size: 1.2rem; }
.stock-line { font-size: 0.85rem; color: var(--good); margin: 0 0 0.9rem; }
.stock-line.out { color: var(--bad); }
.pm-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.pm-desc ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.pm-desc li { margin-bottom: 0.3rem; }
.product-cta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.product-more { margin-top: 3.5rem; }

/* —— Reviews grid —— */
.reviews-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.reviews-head h2 {
  font-family: var(--font-display); margin: 0 0 0.25rem; font-size: 1.45rem;
}
.rating-big {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem;
}
.rating-big strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.stars-lg { color: var(--gold); letter-spacing: 0.1em; }
.review-list {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.review-card {
  position: relative;
  z-index: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.35s ease;
}
.review-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(
    125deg,
    #5b21b6 0%,
    #7e1ab6 18%,
    #c85bf2 36%,
    #e879f9 52%,
    #a855f7 68%,
    #6d28d9 84%,
    #4c1d95 100%
  );
  background-size: 300% 300%;
  opacity: 0.36;
  filter: blur(9px);
  z-index: 0;
  pointer-events: none;
  animation: card-neon-glow 4.5s ease-in-out infinite;
}
.review-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(18, 16, 24, 0.92);
  border: 1px solid rgba(200, 91, 242, 0.28);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(200, 91, 242, 0.12);
  backdrop-filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.review-card > * {
  position: relative;
  z-index: 1;
}
.review-card:hover {
  transform: scale3d(1.03, 1.03, 1);
}
.review-card:hover::before {
  opacity: 0.52;
  filter: blur(11px);
}
.review-top { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.7rem; }
.review-name { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.verified {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem; border-radius: 6px;
  background: rgba(74,222,128,0.12); color: var(--good);
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.verified .ico-img { width: 0.75rem; height: 0.75rem; }
.review-meta { color: var(--muted); font-size: 0.8rem; }
.review-meta .stars { color: var(--gold); letter-spacing: 0.08em; }
.review-card p { margin: 0; color: #d8d0e2; font-size: 0.92rem; }

/* —— Checkout page —— */
.checkout-page { padding: 2rem 0 4rem; }
.checkout-layout {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.2rem; align-items: start;
}
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form-card h2 {
  font-family: var(--font-display); margin: 0 0 0.35rem; font-size: 1.5rem;
}
.checkout-includes { margin-top: 1rem; }
.checkout-includes li { padding: 0.7rem 0.9rem; }
.ck-head {
  display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1.1rem;
}
.ck-head img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.ck-head h1 { font-family: var(--font-display); margin: 0; font-size: 1.35rem; }
.ck-head p { margin: 0.15rem 0 0; font-size: 0.82rem; }
.ck-order {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1rem; border-radius: 12px; margin-bottom: 1rem;
  background: rgba(0,0,0,0.25); border: 1px solid var(--line); font-size: 0.92rem;
}
.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
.field label { font-size: 0.8rem; color: var(--muted); }
.field input, .field textarea, .field select {
  background: #09080c; border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 0.8rem 0.95rem; outline: none; resize: vertical;
  width: 100%;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,91,242,0.15);
}
.promo-applied {
  display: none; margin: -0.3rem 0 0.7rem; padding: 0.5rem 0.75rem; border-radius: 10px;
  background: rgba(74, 222, 128, 0.1); color: var(--good); font-size: 0.85rem; font-weight: 600;
}
.promo-applied.show { display: block; }
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0.4rem 0 1rem; padding-top: 0.75rem; border-top: 1px dashed var(--line);
}
.total-row strong { font-size: 1.45rem; }

.success-flow { text-align: left; }
.success-check {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 40px;
  background: rgba(74,222,128,0.15); color: var(--good); font-size: 1.15rem; font-weight: 800;
}
.success-flow h2 { font-family: var(--font-display); margin: 0; font-size: 1.35rem; }
.success-flow code {
  display: block; margin: 0.35rem 0 0.65rem; padding: 0.65rem 0.8rem; border-radius: 10px;
  background: #050507; color: var(--accent); font-size: 0.9rem; word-break: break-all;
  border: 1px solid var(--line);
}
.success-actions {
  display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.55rem;
}
.success-steps { display: none; }
.vouch-box {
  margin-top: 0; padding: 0.75rem 0.85rem;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.25);
}
.vouch-box h3 {
  font-family: var(--font-display); margin: 0; font-size: 0.95rem;
}

/* Delivery: fit one screen, no scroll when possible */
body.is-delivery {
  overflow: hidden;
  height: 100vh;
}
body.is-delivery .page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.is-delivery .checkout-page {
  flex: 1;
  padding: 0.75rem 0 0.5rem;
  display: flex;
  align-items: center;
}
body.is-delivery .checkout-summary,
body.is-delivery footer {
  display: none !important;
}
body.is-delivery .checkout-layout {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
body.is-delivery .checkout-form-card {
  padding: 1rem 1.15rem 0.9rem;
}
body.is-delivery .nav {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.success-compact .success-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.success-compact .success-meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
}
.success-compact .success-label {
  margin: 0;
  font-size: 0.75rem;
}
.success-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.success-review-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
}
.success-review-row input {
  background: #09080c;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  width: 100%;
  outline: none;
}
.success-aside-links {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.success-aside-links a { color: var(--accent); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 560px) {
  body.is-delivery { overflow: auto; height: auto; }
  .success-review-row { grid-template-columns: 1fr; }
}
.star-picker { display: flex; gap: 0.25rem; }
.star-picker button {
  border: 0; background: transparent; color: #4a4454;
  cursor: pointer; padding: 0.1rem 0.15rem; line-height: 1;
  display: grid; place-items: center;
}
.star-picker button.on { color: var(--gold); }

/* —— Payment / fulfillment loading (coil) —— */
.pay-loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pay-loading[hidden] { display: none !important; }
.pay-loading-inner {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
}
.pay-loading-brand {
  display: grid;
  place-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}
.pay-loading-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(200, 91, 242, 0.35));
}
.pay-loading-brand .text-shimmer {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
}
.pay-loading-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.loader.coil {
  --coil-size: 56px;
  position: relative;
  width: var(--coil-size);
  height: var(--coil-size);
  display: block;
}
.loader.coil span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(200, 91, 242, 0.12);
  border-top-color: var(--accent);
  animation: emp-coil 1.6s ease-in-out infinite;
}
.loader.coil span:nth-child(2) { inset: 12%; animation-delay: 0.12s; }
.loader.coil span:nth-child(3) { inset: 24%; animation-delay: 0.24s; }
.loader.coil span:nth-child(4) { inset: 36%; animation-delay: 0.36s; }
@keyframes emp-coil {
  0%, 100% { transform: rotate(0deg) scale(0.92); }
  50% { transform: rotate(180deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .loader.coil span { animation-duration: 0.001ms; animation-iteration-count: 1; }
}

/* —— Portal —— */
.portal-page { padding: 2rem 0 4rem; }
.portal-gate { max-width: 560px; margin: 0 auto; }
.str-social-rows { display: flex; flex-direction: column; gap: 0.45rem; }
.str-social-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px auto;
  gap: 0.4rem;
  align-items: center;
}
.str-social-row select,
.str-social-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface, rgba(255, 255, 255, 0.04));
  color: inherit;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}
@media (max-width: 640px) {
  .str-social-row { grid-template-columns: 1fr; }
}
.portal-tabs {
  display: flex; gap: 0.4rem; margin-bottom: 1rem;
  background: rgba(18,16,24,0.7); padding: 0.35rem; border-radius: 999px;
  border: 1px solid var(--line);
}
.portal-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  padding: 0.65rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 700;
}
.portal-tabs button.active {
  background: var(--accent-soft); color: var(--text);
}
.portal-auth h1 {
  font-family: var(--font-display); margin: 0 0 0.35rem; font-size: 1.6rem;
}
.portal-hr {
  border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0;
}
.linkish {
  background: none; border: 0; color: var(--accent); cursor: pointer;
  font-weight: 700; text-decoration: underline; padding: 0;
}
.portal-dash-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.portal-dash-head h1 {
  font-family: var(--font-display); margin: 0 0 0.25rem; font-size: 1.7rem;
}
.portal-stats .card strong {
  font-family: var(--font-display); font-size: 1.5rem; display: block; margin-top: 0.2rem;
}
.portal-dash-compact .portal-stats { gap: 0.65rem; }
.portal-dash-compact .portal-stats .card { padding: 0.75rem 0.9rem; }
.portal-summary-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.portal-tabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.9rem 0 0.65rem;
}
.portal-tab {
  border: 1px solid var(--line);
  background: rgba(18, 16, 24, 0.75);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.portal-tab.is-active {
  color: var(--text);
  border-color: rgba(200, 91, 242, 0.55);
  background: var(--accent-soft);
}
.portal-tab-panel[hidden] { display: none !important; }
.portal-tab-panel h2 {
  font-family: var(--font-display); margin: 0 0 0.4rem; font-size: 1.15rem;
}
.portal-inline-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.55rem 0 0.75rem;
}
.str-overlay-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e0e12;
  display: block;
}
.portal-obs-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.portal-obs-steps li { margin: 0.35rem 0; }
.pay-status-banner {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #121218;
  margin: 0 0 0.75rem;
}
.pay-status-banner.is-paid {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
.pay-status-banner.is-pending {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd34d;
}
.badge-pay-pending { color: #fbbf24; }
.badge-pay-paid { color: #34d399; }
.badge-pay-rejected { color: #f87171; }
.portal-link {
  display: block; padding: 0.7rem 0.85rem; border-radius: 10px;
  background: #050507; border: 1px solid var(--line); color: var(--accent);
  word-break: break-all; font-size: 0.88rem; margin-top: 0.55rem;
}
.partner-card-person {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.partner-card-person > strong {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em;
}
.partner-code-line { color: var(--muted); font-size: 0.9rem; }
.partner-social-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.partner-social-chip {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: var(--accent-soft); color: #e9c6ff; text-decoration: none;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.partner-social-chip:hover { border-color: rgba(168, 85, 247, 0.7); }

/* —— Footer —— */
footer {
  padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: center;
}
.footer-legal a:hover { color: var(--text); }

/* —— Legal pages —— */
.legal-page { padding: 1.5rem 0 4rem; }
.legal-wrap { max-width: 760px; }
.legal-wrap > h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.35rem;
}
.legal-block { margin-top: 1rem; padding: 1.15rem 1.25rem; }
.legal-block h2 {
  font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 0.55rem;
}
.legal-block p, .legal-block li { color: var(--muted); font-size: 0.92rem; }
.legal-block p { margin: 0 0 0.65rem; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul { margin: 0 0 0.65rem; padding-left: 1.2rem; }
.legal-block a { color: #e9c6ff; text-decoration: underline; text-underline-offset: 2px; }

/* —— Cookie bar (sticky bottom, header-like) —— */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 5, 7, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-bar-text {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.cookie-bar-text a { color: #e9c6ff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar-text strong { color: var(--text); }
body.has-cookie-bar {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 860px) {
  body.has-emp-dock.has-cookie-bar {
    padding-bottom: calc(5.25rem + 4.25rem + env(safe-area-inset-bottom, 0px));
  }
  body.has-emp-dock.has-cookie-bar .cookie-bar {
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Checkout AGB checkbox */
.agb-accept {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.agb-accept input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.agb-accept a { color: #e9c6ff; text-decoration: underline; text-underline-offset: 2px; }

/* —— Admin —— */
.admin-shell { min-height: 100vh; padding: 2rem 0 4rem; }
.admin-grid { display: grid; grid-template-columns: 240px 1fr; gap: 1.2rem; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-nav {
  padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-card);
  height: fit-content;
}
.admin-nav button {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--muted);
  padding: 0.7rem 0.8rem; border-radius: 10px; cursor: pointer; margin-bottom: 0.25rem;
}
.admin-nav button.active, .admin-nav button:hover {
  background: var(--accent-soft); color: var(--text);
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.table th, .table td {
  text-align: left; padding: 0.7rem 0.55rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table th { color: var(--muted); font-weight: 600; }
.badge {
  display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px;
  background: var(--accent-soft); color: #e9c6ff; font-size: 0.75rem; font-weight: 700;
}
.login-gate { max-width: 420px; margin: 12vh auto; padding: 1.5rem; }
.row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.row-actions button {
  border: 1px solid var(--line); background: #0a090e; color: var(--text);
  border-radius: 8px; padding: 0.35rem 0.6rem; cursor: pointer; font-size: 0.8rem;
}

/* —— Mobile dock (animated tab bar) —— */
.emp-dock {
  display: none;
}
.emp-menu-svg {
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
}
@media (max-width: 860px) {
  .emp-dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    pointer-events: none;
  }
  body.has-emp-dock {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
  body.has-emp-dock .nav-links .btn:not(.nav-login) {
    display: none;
  }
  body.has-emp-dock .nav-login {
    display: inline-flex;
  }
  body.has-emp-dock .nav-links {
    gap: 0;
  }
  body.has-emp-dock .brand-sub {
    display: none;
  }
  /* Floating Ghost card overlaps hero stats on narrow screens — desktop only */
  body.has-emp-dock .dev-fab {
    display: none;
  }

  .emp-menu {
    --bgColorMenu: #121018;
    --duration: 0.7s;
    pointer-events: auto;
    margin: 0 auto;
    display: flex;
    width: min(100%, 28rem);
    font-size: clamp(0.72rem, 3.6vw, 0.95rem);
    padding: 0 1.1em;
    position: relative;
    align-items: center;
    justify-content: center;
    background: var(--bgColorMenu);
    border: 1px solid rgba(200, 91, 242, 0.28);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(200, 91, 242, 0.12);
  }
  .emp-menu__item {
    all: unset;
    flex-grow: 1;
    z-index: 100;
    display: flex;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    align-items: center;
    will-change: transform;
    justify-content: center;
    padding: 0.55em 0 0.85em;
    color: #c4b8d4;
    transition: transform var(--timeOut, var(--duration));
    -webkit-tap-highlight-color: transparent;
  }
  .emp-menu__item::before {
    content: "";
    z-index: -1;
    width: 3.55em;
    height: 3.55em;
    border-radius: 50%;
    position: absolute;
    transform: scale(0);
    transition: background-color var(--duration), transform var(--duration);
  }
  .emp-menu__item.active {
    transform: translate3d(0, -0.7em, 0);
    color: #fff;
  }
  .emp-menu__item.active::before {
    transform: scale(1);
    background-color: var(--bgColorItem);
    box-shadow: 0 0 22px color-mix(in srgb, var(--bgColorItem) 55%, transparent);
  }
  .emp-menu__item .ico {
    width: 1.45em;
    height: 1.45em;
    background-color: currentColor;
  }
  .emp-menu__item.active .ico {
    animation: emp-dock-pop 0.55s ease;
  }
  @keyframes emp-dock-pop {
    0% { transform: scale(0.7); opacity: 0.5; }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
  }
  .emp-menu__border {
    left: 0;
    bottom: 99%;
    width: 9.4em;
    height: 2.15em;
    position: absolute;
    clip-path: url(#empMenuClip);
    will-change: transform;
    background-color: var(--bgColorMenu);
    transition: transform var(--timeOut, var(--duration));
    filter: drop-shadow(0 -2px 0 rgba(200, 91, 242, 0.2));
  }

  /* —— Phone-first layout (same EMP look, different structure) —— */
  .container {
    width: min(100% - 1.35rem, 1120px);
  }
  .page {
    overflow-x: clip;
  }
  .nav {
    position: sticky;
  }
  .nav-inner {
    padding: 0.55rem 0;
    gap: 0.4rem;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .brand {
    font-size: 0.88rem;
    min-width: 0;
  }
  .brand > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 10.5rem;
  }

  .hero {
    min-height: auto;
    padding: 1.1rem 0 1.35rem;
    display: block;
  }
  .hero-chroma {
    opacity: 0.42;
    object-fit: contain;
    object-position: center 2%;
    transform: translateY(-6%) scale(0.92);
    filter: none;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(5,5,7,0.28) 0%, rgba(5,5,7,0.45) 32%, rgba(5,5,7,0.88) 72%, rgba(5,5,7,0.96) 100%);
  }
  .hero-content {
    width: min(100% - 0.25rem, 420px);
    margin-inline: auto;
    padding-inline: 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .eyebrow {
    font-size: 0.62rem;
    padding: 0.22rem 0.55rem;
    margin-bottom: 0.65rem;
  }
  .hero h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.12;
    margin: 0 0 0.55rem;
  }
  .hero .lead {
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 22rem;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 10px rgba(5, 5, 7, 0.95);
  }
  .hero-price {
    order: 0;
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
  }
  .hero-price .price-now {
    font-size: 1.05rem;
  }
  .hero-stats {
    order: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
  }
  .hero-stat {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.12rem;
    padding: 0.35rem 0.25rem;
    font-size: 0.64rem;
    text-align: center;
    line-height: 1.2;
  }
  .hero-stat .ico-img {
    width: 0.9rem;
    height: 0.9rem;
  }
  .hero-stat strong {
    display: block;
    font-size: 0.72rem;
  }
  .platform-badge {
    margin: 0 0 0.9rem;
    padding: 0.28rem 0.6rem;
    font-size: 0.74rem;
  }
  /* Equal compact CTAs in one row — more air, less stretch */
  .hero-cta {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
  }
  .hero-cta .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0.55rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    white-space: nowrap;
    gap: 0.28rem;
    line-height: 1.15;
  }
  .discord-note {
    font-size: 0.84rem;
    padding: 0.65rem 0.8rem;
    margin: 0.25rem 0.2rem 0.75rem;
  }
  .hero-cta .hero-buy { order: 1; }
  .hero-cta .hero-product { order: 2; }
  .hero-cta .btn-discord {
    order: 3;
    padding: 0.55rem 0.35rem;
    font-size: 0.7rem;
  }
  .hero-cta .btn .ico,
  .hero-cta .btn .discord-ico {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
  }
  .hero-cta .btn-discord span:not(.discord-ico):not(.ico) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  section {
    padding: 2.15rem 0;
  }
  .section-head {
    margin-bottom: 0.85rem;
    padding-inline: 0.05rem;
    max-width: none;
  }
  .section-head h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    margin-bottom: 0.35rem;
  }
  .section-head p {
    font-size: 0.82rem;
  }

  /* Feature cards → swipe strip */
  #why .grid-3 {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.65rem;
    padding: 0.15rem 0.15rem 0.55rem;
    margin-inline: -0.15rem;
    scrollbar-width: none;
  }
  #why .grid-3::-webkit-scrollbar { display: none; }
  #why .grid-3 .card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    padding: 0.95rem 0.9rem;
  }
  .card h3 { font-size: 1.02rem; }
  .card p { font-size: 0.82rem; }
  .card-ico {
    width: 1.85rem;
    height: 1.85rem;
    margin-bottom: 0.55rem;
    border-radius: 10px;
  }
  .card::before,
  .card::after,
  .review-card::before,
  .review-card::after {
    inset: -1px;
  }

  .check-list {
    gap: 0.45rem;
  }
  .check-list li {
    font-size: 0.84rem;
    padding: 0.55rem 0.65rem;
  }

  .compare-table {
    display: table;
    width: 100%;
    font-size: 0.74rem;
  }
  .compare-table th,
  .compare-table td {
    padding: 0.5rem 0.35rem;
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
  }
  .compare-table th:nth-child(n+3),
  .compare-table td:nth-child(n+3) {
    display: none;
  }

  /* Reviews → snap carousel */
  .carousel-wrap {
    margin-inline: 0;
    max-width: 100%;
  }
  .carousel-hint {
    display: block;
    text-align: center;
    margin: 0.55rem 0 0;
    font-size: 0.72rem;
    color: var(--muted);
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
  }
  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
  }
  .carousel-dot.is-on {
    width: 16px;
    background: var(--accent);
  }
  .carousel-mask {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0.85rem 0.35rem;
    scrollbar-width: none;
  }
  .carousel-mask::-webkit-scrollbar { display: none; }
  .carousel-track,
  .carousel-track.is-mobile-carousel {
    animation: none !important;
    flex-direction: row;
    width: max-content;
    max-width: none;
    gap: 0.65rem;
    padding: 0;
  }
  .carousel-track .review {
    width: min(78vw, 300px);
    flex: 0 0 min(78vw, 300px);
    padding: 0.85rem 0.9rem;
    scroll-snap-align: center;
    box-sizing: border-box;
  }
  .review p {
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
  }
  .reviews-cta {
    margin-top: 1rem;
    text-align: center;
  }
  .reviews-cta .btn {
    width: min(100%, 20rem);
  }

  .pm-info .hero-stats {
    max-width: none;
  }
  .product-page {
    padding: 1.25rem 0 2rem;
  }
  .product-cta-row {
    flex-direction: column;
  }
  .product-cta-row .btn {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
    font-size: 0.75rem;
    padding-bottom: 0.25rem;
  }
  .emp-menu {
    font-size: clamp(0.64rem, 3.2vw, 0.84rem);
    width: min(100% - 0.4rem, 26rem);
  }
}

/* Desktop: hide phone-only chrome */
.carousel-hint,
.carousel-dots {
  display: none;
}
@media (max-width: 860px) {
  .carousel-hint { display: block; }
  .carousel-dots { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .emp-menu__item,
  .emp-menu__item::before,
  .emp-menu__border {
    transition: none !important;
  }
  .emp-menu__item.active .ico {
    animation: none !important;
  }
}
