/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.price-sale { color: #ff4444; font-weight: 700; }
.price-original { text-decoration: line-through; color: #666; font-size: 0.85em; margin-right: 6px; }

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #141414;
  --surface: #1a1a1a;
  --surface2: #222;
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f0;
  --text2: #888;
  --text3: #555;
  --accent: #6C63FF;
  --accent2: #a78bfa;
  --gold: #f5c542;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
  position: relative;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── TYPOGRAPHY ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.4); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-hero-primary:hover::before { transform: translateX(100%); }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108,99,255,0.5); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text2);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.btn-hero-ghost:hover { border-color: var(--accent); color: var(--text); background: rgba(108,99,255,0.1); }
.play-icon { font-size: 12px; }

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── SECTION COMMON ─── */
.section { padding: 120px 0; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.section-title { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.section-sub { font-size: 17px; color: var(--text2); max-width: 520px; }

/* ─── NAV ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
}
#navbar.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}
.logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 32px; margin-right: auto; }
.nav-links a { font-size: 14px; color: var(--text2); transition: var(--transition); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 4px; width: 32px; height: 32px;
  position: relative; z-index: 1100;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* When open, morph the 3 bars into an X */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 180px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(108,99,255,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(236,72,153,0.1) 0%, transparent 60%);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 100%);
}

/* Grid pattern */
.hero::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: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 50px;
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 28px;
  font-weight: 500;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title { font-size: clamp(52px, 7vw, 88px); font-weight: 700; line-height: 1.0; margin-bottom: 24px; letter-spacing: -2px; }
.hero-sub { font-size: 18px; color: var(--text2); max-width: 460px; margin-bottom: 36px; line-height: 1.7; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats { display: flex; align-items: center; gap: 28px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-num-suffix { font-family: 'Space Mono', monospace; font-size: 28px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── HERO VISUAL ─── */
.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  z-index: 2;
}

/* ─── QR FLOAT CARD ─── */
.qr-float-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 360px;
}

.qr-float-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.22) 0%, rgba(167,139,250,0.08) 50%, transparent 72%);
  animation: glowPulse 3.5s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.qr-float-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 22px 22px 16px;
  z-index: 1;
  animation: qrFloat 4.5s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 60px rgba(0,0,0,0.55),
    0 0 50px rgba(108,99,255,0.18);
}

.qr-float-inner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  line-height: 0;
}

.qr-float-img {
  width: 210px;
  height: 210px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.qr-scan-sweep {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(108,99,255,0.9) 50%, transparent 100%);
  border-radius: 2px;
  animation: scanSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}

.qr-float-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: #555;
  text-transform: uppercase;
}

@keyframes qrFloat {
  0%,100% { transform: translateY(0px) rotate(-1.5deg); }
  50%      { transform: translateY(-22px) rotate(1.5deg); }
}

@keyframes glowPulse {
  0%,100% { transform: scale(1);    opacity: 0.7; }
  50%      { transform: scale(1.15); opacity: 1;   }
}

@keyframes scanSweep {
  0%   { top: -2px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ─── HERO QR GRID (21×21) ─── */
.qr-hero-grid {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 2px;
  width: 210px;
  height: 210px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}
.qr-hero-grid .qr-cell { border-radius: 1.5px; }
.qr-hero-grid .qr-cell.filled { background: #111; }
.qr-hero-grid .qr-cell:not(.filled) { background: transparent; }

/* legacy refs used by QR demo section + small badge */
.qr-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; width: 72px; height: 72px; }
.qr-cell { border-radius: 1px; }
.qr-cell.filled { background: #0f0f0f; }
.qr-cell.empty { background: transparent; }

/* orbit refs kept so JS doesn't error */
.orbit { display: none; }

.floating-reward {
  position: absolute;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  z-index: 4;
}
.fr-1 { top: 20%; left: 0; animation: floatBadge 3s ease-in-out infinite; color: var(--green); border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.1); }
.fr-2 { top: 55%; right: 5%; animation: floatBadge 3.5s ease-in-out infinite 0.5s; }
.fr-3 { bottom: 20%; left: 5%; animation: floatBadge 4s ease-in-out infinite 1s; color: var(--gold); border-color: rgba(245,197,66,0.3); background: rgba(245,197,66,0.08); }
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scroll-hint span { font-size: 11px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ─── TICKER ─── */
.ticker-wrap {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.ticker { display: flex; }
.ticker-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
  font-size: 13px;
  color: var(--text2);
}
.ticker-track span { flex-shrink: 0; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ─── HOW IT WORKS ─── */
.how-section { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  position: relative;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-8px); border-color: rgba(108,99,255,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.step-card:hover::before { opacity: 1; }

.step-icon-wrap { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.step-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(108,99,255,0.05));
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-number {
  font-family: 'Space Mono', monospace;
  font-size: 40px;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
}
.step-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.step-card p { font-size: 15px; color: var(--text2); line-height: 1.7; }
.step-arrow {
  position: absolute;
  bottom: 28px; right: 28px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}
.step-card:hover .step-arrow { opacity: 1; transform: translateX(0); }

/* FLOW DIAGRAM */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 70px;
  padding: 48px 40px;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(108,99,255,0.10), transparent 55%),
    radial-gradient(ellipse at 40% 50%, rgba(34,211,238,0.10), transparent 55%),
    radial-gradient(ellipse at 65% 50%, rgba(244,114,182,0.10), transparent 55%),
    radial-gradient(ellipse at 90% 50%, rgba(250,204,21,0.10), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease;
}
.flow-node:hover { transform: translateY(-4px); }
.fn-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 700;
  font-size: 16px;
  color: var(--text2);
  transition: var(--transition);
}
.flow-node span {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Per-step colored avatars */
.fn-you   .fn-avatar { background: linear-gradient(135deg, #8b7cff, #6C63FF); border-color: rgba(139,124,255,0.5); box-shadow: 0 0 28px rgba(108,99,255,0.45); color: #fff; }
.fn-scan  .fn-avatar { background: linear-gradient(135deg, #38bdf8, #06b6d4); border-color: rgba(56,189,248,0.5);  box-shadow: 0 0 28px rgba(34,211,238,0.45);  color: #fff; }
.fn-buy   .fn-avatar { background: linear-gradient(135deg, #f472b6, #ec4899); border-color: rgba(244,114,182,0.5); box-shadow: 0 0 28px rgba(236,72,153,0.45);  color: #fff; }
.fn-earn  .fn-avatar { background: linear-gradient(135deg, #facc15, #f59e0b); border-color: rgba(250,204,21,0.5);  box-shadow: 0 0 28px rgba(250,204,21,0.55);  color: #111; }

.flow-node:hover .fn-avatar { transform: scale(1.08); }
.fn-you:hover  .fn-avatar { box-shadow: 0 0 36px rgba(108,99,255,0.7); }
.fn-scan:hover .fn-avatar { box-shadow: 0 0 36px rgba(34,211,238,0.7); }
.fn-buy:hover  .fn-avatar { box-shadow: 0 0 36px rgba(236,72,153,0.7); }
.fn-earn:hover .fn-avatar { box-shadow: 0 0 36px rgba(250,204,21,0.85); }

/* Active "You earn" pulse */
.flow-node.fn-earn.active .fn-avatar {
  animation: earnPulse 2.4s ease-in-out infinite;
}
@keyframes earnPulse {
  0%, 100% { box-shadow: 0 0 28px rgba(250,204,21,0.5); }
  50%      { box-shadow: 0 0 48px rgba(250,204,21,0.9), 0 0 80px rgba(245,158,11,0.4); }
}

/* Connecting flow lines — gradient between adjacent step colors */
.flow-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
}
.flow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-from, #6C63FF), var(--c-to, #06b6d4));
  opacity: 0.4;
  animation: flowPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--c-from, #6C63FF);
}
.flow-dot:nth-child(2) { animation-delay: 0.2s; }
.flow-dot:nth-child(3) { animation-delay: 0.4s; }

/* Color each line's gradient based on its position (between specific nodes) */
.flow-line:nth-of-type(2) .flow-dot { --c-from: #6C63FF; --c-to: #06b6d4; }   /* You → Scan: purple → cyan */
.flow-line:nth-of-type(4) .flow-dot { --c-from: #06b6d4; --c-to: #ec4899; }   /* Scan → Buy: cyan → pink */
.flow-line:nth-of-type(6) .flow-dot { --c-from: #ec4899; --c-to: #facc15; }   /* Buy → Earn: pink → gold */

@keyframes flowPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.3); }
}

/* ─── PARALLAX STRIPS ─── */
.parallax-strip {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -30%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.parallax-strip:first-of-type .parallax-bg {
  background: linear-gradient(135deg, #0f0f2e 0%, #1a0533 50%, #0d1117 100%);
}
.parallax-2 .parallax-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
}
.parallax-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}
.parallax-content h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.3; }
.parallax-content p { font-size: 16px; color: var(--text2); margin-top: 16px; }

.parallax-quote-row { display: flex; gap: 40px; justify-content: center; text-align: left; }
.pq { display: flex; align-items: flex-start; gap: 16px; max-width: 280px; }
.pq-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.pq p { font-size: 14px; line-height: 1.6; color: var(--text); }
.pq span { font-size: 12px; color: var(--text3); margin-top: 6px; display: block; }

/* ─── SHOP ─── */
.shop-section { background: var(--bg2); }
.filter-tabs { display: flex; gap: 8px; margin-top: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* cat-btn mirrors filter-btn for catalog section */
.cat-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.cat-btn.active, .cat-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* View Full Collection button */
.btn-view-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-view-catalog:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Tee badge */
.product-badge.tee-badge { background: linear-gradient(135deg,#6C63FF,#a78bfa); }

/* Oversized Tee label under product name */
.product-type-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: 'Space Mono', monospace;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); border-color: rgba(108,99,255,0.3); }
.product-card.featured { grid-row: span 1; border-color: rgba(108,99,255,0.4); box-shadow: 0 0 40px rgba(108,99,255,0.1); }
.product-card.hidden { display: none; }

.product-img {
  height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
}
.product-qr-badge {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0px;
}
.product-qr-badge.dark { background: rgba(0,0,0,0.7); color: white; }
.product-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 5;
}
.product-badge.new { background: var(--accent); color: white; }
.product-badge.hot { background: #ef4444; color: white; }
.product-badge.limited { background: var(--gold); color: #111; }

.product-overlay {
  /* No longer used — button moved into .product-info. Kept for any orphan markup. */
  display: none;
}
.btn-add-cart {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--text);
  color: #111;
  border: none;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
  transform: translateY(10px);
}
.btn-add-cart:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-add-cart:active { transform: translateY(0); }

.product-info { padding: 20px; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.product-info h3 { font-size: 17px; font-weight: 600; }
.earn-tag { font-size: 12px; color: var(--green); background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); padding: 3px 10px; border-radius: 50px; white-space: nowrap; font-weight: 600; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: 'Space Mono', monospace; font-size: 20px; font-weight: 700; }
.stars { font-size: 13px; color: var(--gold); }
.stars span { color: var(--text2); font-size: 12px; }

/* ─── REWARDS ─── */
.rewards-section { background: var(--bg); }
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  margin-bottom: 60px;
}
.reward-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.reward-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,0.3); }
.reward-card.highlight {
  border-color: rgba(108,99,255,0.4);
  background: linear-gradient(145deg, rgba(108,99,255,0.1), var(--surface));
  box-shadow: 0 0 40px rgba(108,99,255,0.1);
}
.reward-popular {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 0 var(--radius) 0 var(--radius-sm);
  letter-spacing: 0.5px;
}
.reward-icon { font-size: 36px; margin-bottom: 16px; }
.reward-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.reward-card p { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.reward-rate { font-size: 13px; color: var(--accent2); font-weight: 600; font-family: 'Space Mono', monospace; }

/* CALCULATOR */
.calculator {
  display: flex;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  align-items: center;
}
.calc-left { flex: 1.5; }
.calc-left h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.calc-left > p { font-size: 15px; color: var(--text2); margin-bottom: 28px; }

.slider-wrap { margin-bottom: 24px; }
.slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  outline: none;
  margin-bottom: 10px;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(108,99,255,0.5);
  transition: var(--transition);
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); font-family: 'Space Mono', monospace; }

.calc-inputs { display: flex; gap: 24px; }
.calc-input-group { display: flex; flex-direction: column; gap: 4px; }
.calc-input-group label { font-size: 12px; color: var(--text3); }
.calc-input-group span { font-family: 'Space Mono', monospace; font-size: 18px; font-weight: 700; }

.calc-right { flex: 1; display: flex; justify-content: flex-end; }
.calc-result {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(108,99,255,0.05));
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  min-width: 240px;
}
.calc-period { font-size: 13px; color: var(--text2); margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; font-family: 'Space Mono', monospace; }
.calc-amount { font-family: 'Space Mono', monospace; font-size: 56px; font-weight: 700; color: var(--accent2); line-height: 1; margin-bottom: 8px; transition: var(--transition); }
.calc-detail { font-size: 13px; color: var(--text3); margin-bottom: 24px; }

/* ─── LEADERBOARD ─── */
.leaderboard-section { background: var(--bg2); }
.leaderboard-wrap {
  margin-top: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lb-header {
  display: grid;
  grid-template-columns: 60px 1fr 80px 100px 100px;
  padding: 14px 28px;
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
  border-bottom: 1px solid var(--border);
}
.lb-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px 100px 100px;
  padding: 18px 28px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  transition: var(--transition);
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--surface2); }
.lb-row.gold { background: rgba(245,197,66,0.05); }
.lb-row.silver { background: rgba(192,192,192,0.04); }
.lb-row.bronze { background: rgba(205,127,50,0.04); }
.lb-row.you-row { background: rgba(108,99,255,0.05); border-top: 1px solid rgba(108,99,255,0.2); }
.lb-rank { font-size: 18px; font-weight: 700; }
.lb-user { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.lb-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
}
.lb-earn { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--green); }
.lb-you { color: var(--accent); cursor: pointer; text-decoration: underline; }

/* ─── QR SECTION ─── */
.qr-section { background: var(--bg); }
.qr-feature { display: flex; gap: 80px; align-items: center; }
.qr-feature-left { flex: 1.2; }
.qr-feature-right { flex: 1; display: flex; justify-content: center; }

.qr-features-list { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.qr-features-list li { display: flex; gap: 16px; align-items: flex-start; }
.qf-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.qr-features-list strong { font-size: 16px; display: block; margin-bottom: 4px; }
.qr-features-list p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* QR DEMO */
.qr-demo {
  position: relative;
  width: 240px; height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.qr-demo-inner {
  width: 200px; height: 200px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 10px;
  animation: qrGlow 3s ease-in-out infinite;
  overflow: hidden;
}
.qr-demo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
@keyframes qrGlow {
  0%,100% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(108,99,255,0.1); }
  50% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 50px rgba(108,99,255,0.3); }
}
.qr-demo-grid { display: grid; grid-template-columns: repeat(9,1fr); gap: 2px; width: 150px; height: 150px; }
.qr-demo-center {
  position: absolute;
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 20px rgba(108,99,255,0.5);
}
.qr-demo-label { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; }
.qr-pulse-rings { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.pr { position: absolute; border-radius: 50%; border: 1px solid rgba(108,99,255,0.3); animation: prExpand 3s ease-out infinite; }
.pr-1 { width: 220px; height: 220px; animation-delay: 0s; }
.pr-2 { width: 280px; height: 280px; animation-delay: 1s; }
.pr-3 { width: 340px; height: 340px; animation-delay: 2s; }
@keyframes prExpand { 0% { opacity: 0.6; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.2); } }

/* ─── FINAL CTA ─── */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(108,99,255,0.2) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 2; }
.cta-section h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.cta-section > .container > p { font-size: 18px; color: var(--text2); margin-bottom: 40px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 60px; }
.cta-note { font-size: 13px; color: var(--text3); }
.cta-brands { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-brands > span { font-size: 12px; color: var(--text3); letter-spacing: 2px; text-transform: uppercase; }
.brand-logos { display: flex; gap: 40px; align-items: center; }
.brand-logos span { font-size: 15px; color: var(--text3); font-weight: 700; letter-spacing: 1px; opacity: 0.5; transition: var(--transition); }
.brand-logos span:hover { opacity: 1; color: var(--text); }

/* ─── FOOTER ─── */
.footer { background: var(--bg3); border-top: 1px solid var(--border); padding-top: 80px; }
.footer-inner { display: flex; gap: 80px; padding-bottom: 60px; }
.footer-brand { flex: 1.5; }
.footer-brand .logo { font-size: 22px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 14px; color: var(--text2); margin-bottom: 24px; }
.social-links { display: flex; gap: 16px; }
.social-links a { font-size: 13px; color: var(--text3); transition: var(--transition); border: 1px solid var(--border); padding: 8px 16px; border-radius: 50px; }
.social-links a:hover { color: var(--text); border-color: var(--accent); }
.footer-links { flex: 2; display: flex; gap: 40px; }
.fl-col { display: flex; flex-direction: column; gap: 12px; }
.fl-col strong { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.fl-col a { font-size: 14px; color: var(--text2); transition: var(--transition); }
.fl-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text3);
}

/* ─── CART TOAST ─── */
.cart-toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--green);
  color: #111;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(34,197,94,0.4);
}
.cart-toast.show { transform: translateY(0); opacity: 1; }

/* ─── TIER LADDER (homepage rewards section) ─── */
.tier-ladder {
  margin: 50px 0 30px;
  text-align: center;
}
.tier-ladder-head { margin-bottom: 28px; }
.tier-ladder-head h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}
.tier-ladder-head p {
  font-size: 14px;
  color: var(--text2);
}
.tier-ladder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.tier-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 18px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.tier-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tier-tile:hover { transform: translateY(-6px); }
.tier-tile:hover::before { opacity: 1; }

.tier-tile-starter::before { background: radial-gradient(ellipse at center, rgba(108,99,255,0.18), transparent 70%); }
.tier-tile-hustler::before { background: radial-gradient(ellipse at center, rgba(236,72,153,0.18), transparent 70%); }
.tier-tile-elite::before   { background: radial-gradient(ellipse at center, rgba(250,204,21,0.22), transparent 70%); }

.tier-tile-starter:hover { border-color: rgba(108,99,255,0.5); box-shadow: 0 12px 40px rgba(108,99,255,0.18); }
.tier-tile-hustler:hover { border-color: rgba(236,72,153,0.5); box-shadow: 0 12px 40px rgba(236,72,153,0.18); }
.tier-tile-elite:hover   { border-color: rgba(250,204,21,0.55); box-shadow: 0 12px 40px rgba(250,204,21,0.22); }

.tt-emoji { font-size: 38px; margin-bottom: 10px; }
.tt-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.tt-range {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.tt-payout {
  font-family: 'Space Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  position: relative;
}
.tt-payout span {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  margin-left: 2px;
}
.tt-pct {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 50px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}
.tier-tile-starter .tt-pct { background: rgba(108,99,255,0.15); color: #8b7cff; }
.tier-tile-hustler .tt-pct { background: rgba(236,72,153,0.15); color: #f472b6; }
.tier-tile-elite   .tt-pct { background: rgba(250,204,21,0.18); color: #facc15; }

.tt-badge-top {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 3px 9px;
  border-radius: 50px;
}

.tt-perks {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tt-perk {
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.tt-perk-gift {
  color: var(--text);
  font-weight: 700;
}

.reward-disclaimer,
.tier-fine-print {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.04em;
  font-style: italic;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .tier-ladder-grid { grid-template-columns: 1fr; }
}

/* ─── SIZE PICKER MODAL ─── */
.size-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10000;
}
.size-modal-overlay.open { opacity: 1; pointer-events: auto; }

.size-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -45%) scale(0.96);
  width: min(420px, 92vw);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  z-index: 10001;
  opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.size-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1; pointer-events: auto;
}
.size-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: var(--text3); font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.size-modal-close:hover { color: var(--text); }

.size-modal-product {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.size-modal-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text2);
  margin-bottom: 18px;
}

.size-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.size-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.size-pill:hover { border-color: var(--accent); background: var(--surface2); }
.size-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.size-modal-confirm {
  width: 100%;
  background: var(--text);
  color: #000;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.2s, transform 0.1s;
}
.size-modal-confirm:disabled { opacity: 0.35; cursor: not-allowed; }
.size-modal-confirm:not(:disabled):hover { transform: translateY(-1px); }

.size-modal-hint {
  margin-top: 14px;
  text-align: center;
  color: var(--text3);
  font-size: 12px;
}

.cd-item-size {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ─── CART NAV BUTTON ─── */
.cart-nav-btn {
  position: relative;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.cart-nav-btn:hover { border-color: var(--accent); color: var(--text); }
.cart-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  font-family: 'Space Mono', monospace;
}

/* ─── CART OVERLAY ─── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ─── CART DRAWER ─── */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: #0f0f0f;
  border-left: 1px solid var(--border);
  z-index: 2000;                /* above navbar (1000) so header doesn't overlap */
  display: flex; flex-direction: column;
  overflow: hidden;             /* clip children so nothing escapes the drawer bounds */
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateX(0); }

.cd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cd-header h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cd-count { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text2); }
.cd-close {
  background: none; border: none;
  color: var(--text2); font-size: 22px;
  cursor: pointer; padding: 8px 12px;
  margin: -8px -12px -8px 0;     /* expand touch target without affecting layout */
  transition: var(--transition);
  position: relative; z-index: 2;
  font-family: inherit;
  line-height: 1;
}
.cd-close:hover, .cd-close:active { color: var(--text); }

/* Body class added when cart is open — lock scroll behind it.
   position:fixed is required on iOS Safari where overflow:hidden alone doesn't stop scroll. */
body.cart-open { overflow: hidden; position: fixed; width: 100%; }

.cd-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; min-height: 0; }
.cd-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; text-align: center; color: var(--text2); }
.cd-empty span { font-size: 40px; }
.cd-empty p { font-size: 14px; }

/* CART ITEM */
.cd-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideInRight { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
.cd-item-img {
  width: 60px; height: 60px;
  border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  background: #1a1a2e;
}
.cd-item-img svg { width: 100%; height: 100%; }
.cd-item-info { flex: 1; min-width: 0; }
.cd-item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cd-item-type { font-size: 10px; font-weight: 600; color: #6C63FF; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.cd-item-price { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--accent2); }
.cd-item-earn { font-size: 11px; color: var(--green); margin-top: 2px; }
.cd-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cd-qty-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); color: var(--text2); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cd-qty-btn:hover { border-color: var(--accent); color: var(--text); }
.cd-qty { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; min-width: 16px; text-align: center; }
.cd-remove { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 14px; padding: 4px; transition: var(--transition); }
.cd-remove:hover { color: #f87171; }

/* CART FOOTER */
.cd-footer { padding: 12px 20px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cd-promo { display: flex; gap: 8px; margin-bottom: 10px; }
.cd-promo-input { flex: 1; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 13px; outline: none; transition: var(--transition); }
.cd-promo-input:focus { border-color: var(--accent); }
.cd-promo-btn { padding: 8px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text2); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.cd-promo-btn:hover { border-color: var(--accent); color: var(--text); }
.cd-totals { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cd-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); }
.cd-total-row { padding-top: 10px; border-top: 1px solid var(--border); font-size: 16px; font-weight: 700; color: var(--text); }
.cd-total-row span:last-child { font-family: 'Space Mono', monospace; color: var(--accent2); }
.cd-free { color: var(--green); font-weight: 600; }
.cd-discount { color: var(--green); }
.cd-checkout-btn {
  display: block; width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #fff; text-align: center;
  border-radius: 12px;
  font-size: 15px; font-weight: 700;
  transition: var(--transition);
  margin-bottom: 12px;
}
.cd-checkout-btn:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.4); }
.cd-payments-hint { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pay-hint-logo { height: 20px; border-radius: 3px; }
.cd-payments-hint span { font-size: 11px; color: var(--text3); padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; }

/* ─── HOODIE PRODUCT IMAGES (real photos with front/back swap) ─── */
.product-img {
  background: #2a2a2a;
  overflow: hidden;
}
.hoodie-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hoodie-front { opacity: 1; z-index: 1; }
.hoodie-back  { opacity: 0; z-index: 2; }

/* Desktop-only hover (no sticky :hover state on touch devices) */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .hoodie-front { opacity: 0; transform: scale(1.02); }
  .product-card:hover .hoodie-back  { opacity: 1; transform: scale(1.02); }
}

/* Mobile + desktop: .flipped class toggles back image via tap */
.product-card.flipped .hoodie-front { opacity: 0; transform: scale(1.02); }
.product-card.flipped .hoodie-back  { opacity: 1; transform: scale(1.02); }

/* Make .product-img feel tappable */
.product-img { cursor: pointer; }

.qr-back-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  z-index: 5;
  white-space: nowrap;
  transition: var(--transition);
}
.product-card:hover .qr-back-hint { color: rgba(255,255,255,0.5); }

/* nav logged-in state */
.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
}
.nav-user-pill:hover { border-color: var(--accent); }
.btn-signout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-signout:hover { border-color: #ef4444; color: #ef4444; }
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

/* referral banner (shown when visiting via QR link) */
.ref-banner {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid rgba(108,99,255,0.4);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  z-index: 500;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.ref-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
@media (max-width: 480px) {
  .ref-banner {
    white-space: normal;
    text-align: center;
    border-radius: 20px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: translateY(20px);
  }
  .ref-banner.show { transform: translateY(0); }
}
.ref-banner span { color: var(--accent2); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: 1fr; }
  .rewards-grid { grid-template-columns: repeat(2,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .qr-feature { flex-direction: column; gap: 50px; }
  .calculator { flex-direction: column; }
  .calc-right { width: 100%; }
  .calc-result { width: 100%; }
  .hero { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-visual { min-height: 400px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; }
  .parallax-quote-row { flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  /* Center nav items when nav-links (the auto-margin spacer) is hidden */
  .nav-inner { justify-content: center; gap: 16px; }
  .hero-title { letter-spacing: -1px; }
  .products-grid { grid-template-columns: 1fr; }
  .qr-back-hint { font-size: 0; }
  .qr-back-hint::after {
    content: 'Tap to flip ↺';
    font-size: 9px;
    font-family: 'Space Mono', monospace;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
  }
  .rewards-grid { grid-template-columns: 1fr; }
  .flow-diagram {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    padding: 24px 12px;
  }
  .flow-line { display: none; }
  /* Compact circles so all 4 fit one row on phones */
  .fn-avatar {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }
  .fn-avatar:has(span) span,
  .flow-node span { font-size: 11px; }
  .lb-header, .lb-row { grid-template-columns: 40px 1fr 70px; }
  .lb-header span:nth-child(4), .lb-row span:nth-child(4) { display: none; }
  .lb-header span:nth-child(5), .lb-row span:nth-child(5) { display: none; }
  .lb-earn { display: block !important; }
  .lb-row { grid-template-columns: 40px 1fr auto; }
  .lb-header { grid-template-columns: 40px 1fr auto; }
  .brand-logos { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .parallax-strip { height: 300px; }
  .calc-inputs { flex-wrap: wrap; }
  .cart-drawer { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  /* Mobile nav DROPDOWN (compact, doesn't cover entire page) */
  .nav-links.open {
    display: flex !important;
    position: fixed;
    top: 72px;                          /* sits just below the fixed navbar */
    right: 12px;
    left: auto;
    bottom: auto;
    width: min(240px, calc(100vw - 24px));
    max-height: calc(100vh - 90px);
    background: rgba(15,15,15,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 6px;
    flex-direction: column;
    gap: 2px;
    z-index: 1050;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    box-shadow: 0 16px 50px rgba(0,0,0,0.55);
    animation: navDropdownIn 0.2s ease-out;
  }
  @keyframes navDropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open li a,
  .nav-links.open a {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-radius: 8px;
    width: 100%;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-links.open li a:hover,
  .nav-links.open li a:active,
  .nav-links.open a:hover,
  .nav-links.open a:active {
    background: rgba(108,99,255,0.12);
    color: var(--accent2);
  }
  .hero { padding: 110px 20px 60px; }
  .hero-cta { flex-wrap: wrap; gap: 12px; }
  .btn-hero-primary, .btn-hero-ghost { flex: 1; min-width: 140px; justify-content: center; }
}

@media (max-width: 480px) {
  /* Nav — show both Log In + Join Free, compact sizing, centered */
  .nav-inner { justify-content: center; gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-ghost,
  .nav-actions .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
  }

  /* Hero */
  .hero { padding: 100px 16px 56px; }
  .hero-title { font-size: clamp(36px, 10vw, 52px); letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { flex-direction: column; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px 24px; }
  .stat { flex-direction: row; align-items: baseline; gap: 6px; }
  .stat-num { font-size: 20px; }
  .stat-num-suffix { font-size: 20px; }
  .stat-label { font-size: 11px; margin-top: 0; }
  .stat-divider { display: none; }
  .fr-1, .fr-2 { display: none; }
  .qr-float-wrap { transform: scale(0.85); }
  .hero-visual { min-height: 260px; }
  .scroll-hint { display: none; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .section-sub { font-size: 15px; }
  .container { padding: 0 16px; }

  /* How it works */
  .steps-grid { gap: 16px; }
  .step-card { padding: 24px 20px; }

  /* Shop */
  .product-img { height: 280px; }

  /* Replace "Hover to see back" with tap hint on mobile */
  .qr-back-hint { font-size: 0; }
  .qr-back-hint::after {
    content: 'Tap to flip ↺';
    font-size: 9px;
    font-family: 'Space Mono', monospace;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
  }

  /* Calculator */
  .calculator { padding: 24px 16px; }
  .calc-amount { font-size: 44px; }
  .calc-result { padding: 28px 20px; }

  /* Leaderboard */
  .lb-header, .lb-row { padding: 12px 16px; font-size: 13px; }

  /* Parallax */
  .parallax-strip { height: auto; min-height: 280px; overflow: visible; }
  .parallax-strip::after { display: none; }
  .parallax-content { padding: 40px 20px; }
  .parallax-content h2 { font-size: 22px; }
  .parallax-quote-row { flex-direction: column; gap: 20px; align-items: flex-start; text-align: left; }
  .pq { max-width: 100%; }
  .pq p { font-size: 14px; }

  /* Footer */
  .footer-inner { gap: 28px; }
  .footer-links { gap: 16px; }
  .fl-col { gap: 10px; }
  .footer { padding-top: 48px; }

  /* Cart drawer full screen */
  .cart-drawer { width: 100%; border-left: none; }
  .cart-toast { bottom: 16px; right: 16px; left: 16px; text-align: center; border-radius: 12px; }
}
