/* ═══════════════════════════════════════════════════════════════
   VELLUM MARKETS — Design System v2
   Premium dark fintech. Glass, gradients, restraint.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #050309;
  --bg-2: #0A0614;
  --bg-3: #0E0919;
  --ink: #F5F3FF;
  --ink-2: rgba(235, 230, 255, 0.64);
  --ink-3: rgba(235, 230, 255, 0.40);
  --ink-4: rgba(235, 230, 255, 0.24);
  --line: rgba(167, 139, 250, 0.13);
  --line-2: rgba(167, 139, 250, 0.28);
  --violet: #8B5CF6;
  --purple: #A855F7;
  --fuchsia: #D946EF;
  --magenta: #EC4899;
  --pink: #FF1493;
  --cyan: #22D3EE;
  --blue: #3B82F6;
  --green: #34D399;
  --red: #F87171;
  --gold: #FBBF24;
  --grad: linear-gradient(100deg, #8B5CF6 0%, #D946EF 50%, #EC4899 100%);
  --grad-soft: linear-gradient(100deg, rgba(139,92,246,.16), rgba(236,72,153,.16));
  --glass: rgba(139, 92, 246, 0.045);
  --glass-2: rgba(139, 92, 246, 0.09);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-d: 'Space Grotesk', 'Inter', sans-serif;
  --font-m: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 40px 90px -20px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

::selection { background: rgba(217, 70, 239, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139,92,246,.45), rgba(236,72,153,.45));
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8B5CF6, #EC4899); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ── Background layers ───────────────────────────────────────── */

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 18% -5%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(236, 72, 153, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(34, 211, 238, 0.05), transparent 60%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(167, 139, 250, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 80%);
}

/* ── Scroll progress ─────────────────────────────────────────── */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad);
  z-index: 300;
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.6);
}

/* ── Reveal on scroll ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Typography helpers ──────────────────────────────────────── */

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6));
}
.eyebrow::after { background: linear-gradient(90deg, rgba(168, 85, 247, 0.6), transparent); }

/* ── Nav ─────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px clamp(20px, 5vw, 56px);
  background: rgba(7, 4, 13, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}
.nav-logo strong { color: var(--ink); font-weight: 700; }

.logo-icon-sm {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 99px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: rgba(167, 139, 250, 0.08); }

.nav-links a.nav-premium {
  margin-left: 6px;
  padding: 8px 18px;
  color: #fff;
  font-weight: 600;
  background: var(--grad);
  box-shadow: 0 4px 20px rgba(217, 70, 239, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-links a.nav-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(217, 70, 239, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Profile dropdown */
.nav-profile { position: relative; margin-left: 8px; }
.nav-profile-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s;
}
.nav-profile-icon:hover { color: var(--ink); border-color: rgba(167, 139, 250, 0.5); background: var(--glass-2); }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  padding: 8px;
  background: rgba(14, 9, 25, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: all 0.3s var(--ease);
}
.profile-dropdown.active { opacity: 1; visibility: visible; transform: none; }

.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s;
}
.profile-btn:hover { background: rgba(167, 139, 250, 0.1); color: var(--ink); }
.profile-discord:hover { color: #A5B4FC; }
.profile-google:hover { color: #fff; }
.profile-create { justify-content: center; color: var(--purple); font-weight: 600; }
.profile-divider { height: 1px; margin: 6px 8px; background: var(--line); }
.profile-hint {
  padding: 8px 14px 10px;
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.5;
  text-align: center;
}

/* Signed-in state */
.nav-profile-icon.signed-in { border-color: rgba(168, 85, 247, 0.55); padding: 0; overflow: hidden; }
.nav-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.nav-avatar-letter {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.profile-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  text-align: left;
}
.profile-user img { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(168, 85, 247, 0.5); }
.profile-user strong { display: block; font-size: 13.5px; color: var(--ink); }
.profile-user span { font-size: 11px; color: var(--ink-3); }
.profile-signout { justify-content: center; color: var(--red); font-weight: 600; }
.profile-signout:hover { background: rgba(248, 113, 113, 0.1); color: var(--red); }

/* ── Buttons ─────────────────────────────────────────────────── */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border: none;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 26px rgba(217, 70, 239, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(217, 70, 239, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

.btn-glow { animation: btnPulse 3.2s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 26px rgba(217, 70, 239, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
  50% { box-shadow: 0 6px 40px rgba(217, 70, 239, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.btn-secondary:hover {
  color: var(--ink);
  border-color: rgba(167, 139, 250, 0.55);
  background: var(--glass-2);
  transform: translateY(-2px);
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 150px 24px 0;
}

.hero-content {
  text-align: center;
  max-width: 1060px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 34px;
  animation: heroRise 1s var(--ease) both;
}
.live-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(56px, 11vw, 138px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}
.hero-line {
  display: block;
  animation: heroRise 1.1s var(--ease) both;
}
.hero-title .hero-line:nth-child(1) { animation-delay: 0.08s; }
.hero-title .hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-title .hero-line:nth-child(3) { animation-delay: 0.32s; }
.hero-line-sub {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin-top: 18px;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(34px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: heroRise 1.1s var(--ease) 0.44s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroRise 1.1s var(--ease) 0.56s both;
}

.hero-stats {
  display: flex;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 64px;
  animation: heroRise 1.1s var(--ease) 0.68s both;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.hero-stats .stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(clamp(28px, 6vw, 72px) / -2);
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2), transparent);
}
.stat-num {
  font-family: var(--font-d);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, rgba(220, 210, 255, 0.65));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Live ticker ─────────────────────────────────────────────── */

.ticker {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 76px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 6, 20, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  animation: heroRise 1.1s var(--ease) 0.8s both;
}
.ticker:empty { display: none; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 45s linear infinite;
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }

.tick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: var(--font-m);
  font-size: 12.5px;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
.tick-sym { color: var(--ink-2); font-weight: 600; letter-spacing: 0.04em; }
.tick-price { color: var(--ink); }
.tick-chg { font-size: 11.5px; }
.tick-chg.up { color: var(--green); }
.tick-chg.down { color: var(--red); }

/* ── Sections ────────────────────────────────────────────────── */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(90px, 12vw, 150px) clamp(20px, 5vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
}
.section-dark { /* sections now share the page canvas — kept for markup compat */ }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.section-header h2 {
  font-family: var(--font-d);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.section-header p {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ── Feature cards ───────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.055), rgba(10, 6, 20, 0.4) 55%);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 24px 50px -18px rgba(91, 33, 182, 0.35);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.45s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }

.feature-card h3 {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.feature-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

/* Bento layout */
.features-bento { grid-template-columns: repeat(6, 1fr); }
.feature-span-2 { grid-column: span 2; }
.feature-span-3 { grid-column: span 3; }
.feature-span-4 { grid-column: span 4; }
@media (max-width: 980px) {
  .features-bento { grid-template-columns: 1fr 1fr; }
  .feature-span-2, .feature-span-3, .feature-span-4 { grid-column: span 2; }
}
@media (max-width: 700px) {
  /* On single-column cards the artwork must stay out of the text's way */
  .features-grid .feature-card .feature-viz { opacity: 0.18; }
  .features-grid .feature-card:hover .feature-viz { opacity: 0.26; transform: none; }
  .feature-span-4 .feature-viz svg, .feature-span-2 .feature-viz svg {
    width: 80%;
    height: 42%;
    mask-image: linear-gradient(115deg, transparent 20%, black 60%);
    -webkit-mask-image: linear-gradient(115deg, transparent 20%, black 60%);
  }
  .fv-orb { right: -110px; }
  .features-grid .feature-card .feature-viz-people,
  .features-grid .feature-card .feature-viz-stack { opacity: 0.4; }
}

.features-bento .feature-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
.features-bento .feature-card h3, .features-bento .feature-card p,
.features-bento .feature-icon, .features-bento .feature-chips { position: relative; z-index: 2; }
.features-bento .feature-card p { max-width: 560px; }

.feature-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.feature-chips span {
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(139, 92, 246, 0.07);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* Card artwork */
.feature-viz {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.feature-card:hover .feature-viz { opacity: 0.9; transform: scale(1.02); }

.feature-span-4 .feature-viz svg, .feature-span-2 .feature-viz svg {
  position: absolute;
  right: 0; bottom: 0;
  width: 62%;
  height: 70%;
  mask-image: linear-gradient(115deg, transparent 6%, black 45%);
  -webkit-mask-image: linear-gradient(115deg, transparent 6%, black 45%);
}
.fv-spark {
  stroke-dasharray: 660;
  stroke-dashoffset: 660;
  animation: sparkDraw 2.6s var(--ease) forwards;
}
.feature-card.in .fv-spark, .feature-card:hover .fv-spark { animation-play-state: running; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.fv-candles rect, .fv-candles line { animation: candleFade 0.7s var(--ease) both; }
.fv-candles rect:nth-of-type(n+4), .fv-candles line:nth-of-type(n+4) { animation-delay: 0.25s; }
@keyframes candleFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

/* Broker connect — radar rings */
.feature-viz-rings { display: grid; place-items: end; }
.fv-ring {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  animation: ringGrow 3.6s ease-out infinite;
}
.fv-ring:nth-child(2) { animation-delay: 1.2s; }
.fv-ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes ringGrow {
  0% { transform: scale(0.45); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Bolt — breathing orb + scan line */
.feature-viz-bolt { overflow: hidden; border-radius: inherit; }
.fv-orb {
  position: absolute;
  right: -60px; top: 50%;
  width: 260px; height: 260px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 20, 147, 0.22), rgba(139, 92, 246, 0.1) 45%, transparent 70%);
  animation: orbBreathe 4.5s ease-in-out infinite;
}
@keyframes orbBreathe {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateY(-50%) scale(1.18); opacity: 1; }
}
.fv-scan {
  position: absolute;
  top: 0; bottom: 0;
  width: 1.5px;
  background: linear-gradient(180deg, transparent, rgba(217, 70, 239, 0.65), transparent);
  animation: scanSweep 5s var(--ease) infinite;
}
@keyframes scanSweep {
  0% { left: 35%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 96%; opacity: 0; }
}

/* Community — avatar cluster */
.feature-viz-people { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 26px 24px 0; }
.fv-p {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(10, 6, 20, 0.9);
  background: linear-gradient(135deg, hsl(calc(250 + var(--i) * 28), 60%, 50%), hsl(calc(285 + var(--i) * 28), 68%, 45%));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-left: -12px;
  animation: pFloat 3.4s ease-in-out calc(var(--i) * 0.35s) infinite;
}
@keyframes pFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Course library — stacked pages */
.feature-viz-stack { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 7px; padding: 0 24px 24px 0; }
.fv-page {
  padding: 7px 16px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(139, 92, 246, 0.09);
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--ink-3);
  transform: translateX(calc(var(--sx, 0) * 1px));
}
.fv-page:nth-child(1) { margin-right: 26px; }
.fv-page:nth-child(2) { margin-right: 13px; }

/* ── Reviews ─────────────────────────────────────────────────── */

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.reviews-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.reviews-stars-big {
  font-size: 22px;
  letter-spacing: 5px;
  background: linear-gradient(100deg, var(--gold), #F59E0B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.35));
}
.reviews-score {
  font-family: var(--font-d);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.reviews-total { font-size: 13px; color: var(--ink-3); }

.reviews-bars { display: flex; flex-direction: column; gap: 9px; min-width: 270px; }
.reviews-bar-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.reviews-bar-label { color: var(--ink-3); width: 10px; text-align: right; font-weight: 600; }
.reviews-bar-track {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: rgba(167, 139, 250, 0.1);
  overflow: hidden;
}
.reviews-bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), #F59E0B);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}
.reviews-bar-count { color: var(--ink-3); width: 48px; font-variant-numeric: tabular-nums; }

.reviews-marquee {
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.reviews-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 170s linear infinite;
}
.reviews-track-reverse { animation: marqueeRev 190s linear infinite; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.reviews-footnote {
  margin-top: 22px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-4);
}

.rv-card {
  position: relative;
  width: 330px;
  flex-shrink: 0;
  padding: 22px 24px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.055), rgba(10, 6, 20, 0.6));
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.rv-card::before {
  content: '“';
  position: absolute;
  top: 6px; right: 18px;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
  color: rgba(168, 85, 247, 0.16);
  pointer-events: none;
}
.rv-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -16px rgba(91, 33, 182, 0.35);
}
.rv-top { display: flex; align-items: center; justify-content: space-between; }
.rv-date { font-size: 11px; color: var(--ink-4); font-weight: 500; }
.rv-stars { font-size: 13px; letter-spacing: 2.5px; }
.rv-star { color: var(--gold); text-shadow: 0 0 8px rgba(251, 191, 36, 0.35); }
.rv-star-dim { color: rgba(251, 191, 36, 0.16); text-shadow: none; }
.rv-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; flex: 1; }
.rv-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 12px;
  border-top: 1px solid rgba(167, 139, 250, 0.08);
}
.rv-avatar {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.rv-id { display: flex; flex-direction: column; gap: 1px; }
.rv-name { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rv-check { flex-shrink: 0; }
.rv-role { font-size: 11px; color: var(--ink-3); }

/* ── Course promo cards ──────────────────────────────────────── */

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.live-card {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.05), rgba(10, 6, 20, 0.45));
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.live-card::after {
  content: 'Open course →';
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--purple);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.35s var(--ease);
}
.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 22px 44px -18px rgba(91, 33, 182, 0.35);
}
.live-card:hover::after { opacity: 1; transform: none; }

.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-d);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s infinite;
}
.live-body {
  padding: 16px 18px 38px;
  font-size: 12.8px;
  color: var(--ink-3);
  line-height: 1.65;
}
.live-body strong { color: var(--purple); font-weight: 600; display: inline-block; margin-bottom: 4px; }

.course-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 26px auto;
  color: var(--ink-4);
  font-size: 12px;
}
.course-divider::before, .course-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2));
}
.course-divider::after { background: linear-gradient(90deg, var(--line-2), transparent); }

/* ── Info tooltip ────────────────────────────────────────────── */

.info-tooltip { position: relative; display: inline-flex; }
.info-icon {
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  color: var(--purple);
  cursor: help;
  transition: all 0.25s;
}
.info-tooltip:hover .info-icon { background: var(--glass-2); border-color: var(--purple); }
.tooltip-content {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 300px;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(14, 9, 25, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 50;
}
.info-tooltip:hover .tooltip-content { opacity: 1; visibility: visible; transform: translateX(-50%); }
.tooltip-content strong { display: block; font-size: 13.5px; margin-bottom: 7px; color: var(--ink); }
.tooltip-content p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* ── Prop firms ──────────────────────────────────────────────── */

.prop-firms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.prop-firm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(139, 92, 246, 0.06), rgba(10, 6, 20, 0.5) 60%);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.prop-firm-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 28px 56px -20px rgba(91, 33, 182, 0.4);
}

.prop-firm-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 26px 0;
}
.prop-firm-logo {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  font-family: var(--font-d);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.prop-firm-logo-ftmo { background: linear-gradient(135deg, #8B5CF6, #EC4899); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.prop-firm-name { font-family: var(--font-d); font-size: 20px; font-weight: 700; flex: 1; }
.prop-firm-badge {
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prop-firm-body { padding: 20px 26px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.prop-firm-markets { display: flex; gap: 7px; flex-wrap: wrap; }
.market-tag {
  padding: 4.5px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.prop-firm-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.prop-firm-features { display: flex; flex-direction: column; gap: 8px; }
.feature-item { font-size: 13.5px; color: var(--ink-2); }

.prop-firm-coupon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px dashed rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
}
.coupon-label { font-size: 12.5px; color: var(--ink-3); }
.coupon-code {
  font-family: var(--font-m);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.prop-firm-footer { padding: 0 26px 26px; }
.prop-firm-cta { width: 100%; }
.affiliate-disclosure { margin-top: 14px; font-size: 10.5px; color: var(--ink-4); line-height: 1.55; }

/* ── Premium ─────────────────────────────────────────────────── */

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 26px;
  max-width: 1060px;
  margin: 0 auto;
}

.premium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(139, 92, 246, 0.07), rgba(10, 6, 20, 0.55) 55%);
  backdrop-filter: blur(10px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.premium-card:hover { transform: translateY(-5px); }

.premium-card-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, rgba(20, 12, 36, 0.92), rgba(10, 6, 20, 0.92)) padding-box,
    linear-gradient(160deg, rgba(139, 92, 246, 0.7), rgba(236, 72, 153, 0.55), rgba(34, 211, 238, 0.35)) border-box;
  box-shadow: 0 30px 80px -24px rgba(139, 92, 246, 0.45);
}
.premium-card-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(560px circle at 50% -10%, rgba(168, 85, 247, 0.16), transparent 60%);
  pointer-events: none;
}
.premium-card-featured:hover { box-shadow: 0 40px 100px -24px rgba(139, 92, 246, 0.6); }

.premium-badge {
  position: absolute;
  top: -15px;
  left: 36px;
  padding: 7px 18px;
  border-radius: 99px;
  background: var(--grad);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  box-shadow: 0 6px 22px rgba(217, 70, 239, 0.5);
}
.premium-card-secondary .premium-badge { background: linear-gradient(100deg, #22D3EE, #8B5CF6); box-shadow: 0 6px 22px rgba(34, 211, 238, 0.4); }

.premium-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.premium-price {
  font-family: var(--font-d);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, rgba(220, 210, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.premium-price .currency { font-size: 0.45em; }
.premium-once {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.premium-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 34px;
  flex: 1;
}
.premium-features li {
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.7;
}
.premium-features li strong { color: var(--ink); font-weight: 600; }

.premium-cta-block { display: flex; flex-direction: column; gap: 12px; }
.premium-pay-btn { width: 100%; font-size: 15.5px; padding: 17px 32px; }
.premium-alt-btn {
  width: 100%;
  padding: 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-4);
  font-size: 13.5px;
  font-weight: 500;
  cursor: not-allowed;
}
.premium-trust { font-size: 12px; color: var(--ink-3); text-align: center; }

/* ── Setup steps ─────────────────────────────────────────────── */

.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.setup-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.045), rgba(10, 6, 20, 0.4));
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.setup-step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.setup-num {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.setup-num-alt { background: linear-gradient(135deg, #22D3EE, #8B5CF6); box-shadow: 0 6px 20px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.setup-content h3 { font-family: var(--font-d); font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.setup-content p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

.setup-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1100px;
  margin: 40px auto;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.setup-divider::before, .setup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2));
}
.setup-divider::after { background: linear-gradient(90deg, var(--line-2), transparent); }

/* ── Modal shells (shared) ───────────────────────────────────── */

.verify-overlay, .pay-overlay, .quiz-overlay, .join-overlay, .join-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 2, 8, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.verify-overlay.active, .pay-overlay.active, .quiz-overlay.active, .join-overlay.active, .join-guide-overlay.active {
  opacity: 1;
  visibility: visible;
}

.verify-card, .pay-card, .quiz-card, .join-card, .join-guide-card {
  position: relative;
  width: 100%;
  border-radius: 26px;
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, rgba(22, 14, 38, 0.97), rgba(9, 5, 17, 0.97)) padding-box,
    linear-gradient(165deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.25) 60%, rgba(139, 92, 246, 0.1)) border-box;
  box-shadow: var(--shadow-lg);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.4s var(--ease);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.verify-overlay.active .verify-card, .pay-overlay.active .pay-card,
.quiz-overlay.active .quiz-card, .join-overlay.active .join-card,
.join-guide-overlay.active .join-guide-card { transform: none; }

.verify-card::-webkit-scrollbar, .pay-card::-webkit-scrollbar,
.quiz-card::-webkit-scrollbar, .join-card::-webkit-scrollbar { width: 6px; }

/* ── Verify modal ────────────────────────────────────────────── */

.verify-card { max-width: 430px; padding: 44px 38px 30px; text-align: center; }

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  margin-bottom: 30px;
}
.logo-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.status {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.status.active { opacity: 1; transform: none; }
.status h2 { font-family: var(--font-d); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.status p { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.status .small { font-size: 12px; color: var(--ink-4); }

.glow-purple { text-shadow: 0 0 28px rgba(168, 85, 247, 0.65); }
.glow-green { color: var(--green); text-shadow: 0 0 28px rgba(52, 211, 153, 0.55); }
.glow-blue { text-shadow: 0 0 28px rgba(59, 130, 246, 0.6); }
.glow-red { color: var(--red); text-shadow: 0 0 28px rgba(248, 113, 113, 0.5); }

.spinner {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(168, 85, 247, 0.15);
  border-top-color: var(--purple);
  animation: spin 0.9s linear infinite;
  margin-bottom: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-circle {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.icon-circle.success {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 36px rgba(52, 211, 153, 0.25);
  animation: popIn 0.6s var(--ease) both;
}
.icon-circle.error {
  color: var(--red);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 0 36px rgba(248, 113, 113, 0.2);
}
.icon-circle.pending {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.25);
}
@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.user-card {
  display: none;
  align-items: center;
  gap: 13px;
  padding: 13px 20px;
  margin-top: 6px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--glass);
  text-align: left;
}
.user-card .avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(168, 85, 247, 0.5); }
.user-card strong { display: block; font-size: 14.5px; }
.user-card span { font-size: 11.5px; color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 13px 30px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(217, 70, 239, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(217, 70, 239, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.verify-divider { width: 100%; height: 1px; margin: 28px 0 18px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.trust-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-3);
}

/* ── Payment modal ───────────────────────────────────────────── */

.pay-card { max-width: 520px; padding: 42px 38px 30px; text-align: center; }

.pay-close, .quiz-close, .join-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink-3);
  font-size: 13px;
  transition: all 0.25s;
  z-index: 5;
}
.pay-close:hover, .quiz-close:hover, .join-close:hover { color: var(--ink); border-color: var(--line-2); transform: rotate(90deg); }

.pay-logo {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--grad);
  font-size: 22px;
  color: #fff;
  box-shadow: 0 8px 28px rgba(217, 70, 239, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.pay-card h2 { font-family: var(--font-d); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.pay-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.pay-sub strong { color: var(--ink); font-family: var(--font-d); }

.pay-crypto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}
.pay-crypto-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink-2);
  transition: all 0.25s var(--ease);
}
.pay-crypto-btn:hover { border-color: var(--line-2); background: var(--glass-2); transform: translateY(-2px); }
.pay-crypto-btn.active {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 0 1px var(--purple), 0 8px 22px rgba(139, 92, 246, 0.25);
  color: var(--ink);
}
.crypto-icon { font-size: 18px; }
.crypto-sym { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.crypto-eqv { font-family: var(--font-m); font-size: 9.5px; color: var(--ink-4); }

.pay-address-box {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(139, 92, 246, 0.06);
  text-align: left;
}
.pay-address-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.pay-eqv { margin-left: auto; font-family: var(--font-m); font-size: 12.5px; color: var(--purple); }
.pay-address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(4, 2, 8, 0.6);
}
.pay-address-row code {
  flex: 1;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--ink-2);
  word-break: break-all;
  text-align: left;
}
.pay-copy-btn, .ja-copy {
  flex-shrink: 0;
  padding: 7px 16px;
  border: none;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s;
}
.pay-copy-btn:hover, .ja-copy:hover { box-shadow: 0 4px 16px rgba(217, 70, 239, 0.45); }
.pay-copy-btn.copied, .ja-copy.copied { background: var(--green); color: #052e1f; }
.pay-network-info { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.pay-amount-note { margin-top: 6px; font-size: 11px; color: rgba(251, 191, 36, 0.7); }

.pay-sent-btn, .join-sent-btn {
  display: none;
  width: 100%;
  padding: 15px;
  margin-bottom: 14px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.25s;
}
.pay-sent-btn:hover, .join-sent-btn:hover { background: rgba(52, 211, 153, 0.18); box-shadow: 0 6px 22px rgba(52, 211, 153, 0.2); }

.pay-tx-section, .join-tx-section { display: none; margin-bottom: 14px; }
.pay-tx-row, .join-tx-row, .pay-dc-row, .jd-row { display: flex; gap: 9px; }
.pay-tx-row input, .join-tx-row input, .pay-dc-row input, .jd-row input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(4, 2, 8, 0.6);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.pay-tx-row input:focus, .join-tx-row input:focus, .pay-dc-row input:focus, .jd-row input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.pay-tx-row input::placeholder, .join-tx-row input::placeholder,
.pay-dc-row input::placeholder, .jd-row input::placeholder { color: var(--ink-4); }
.pay-tx-submit, .join-tx-submit, .pay-dc-submit, .jd-submit {
  padding: 13px 22px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.25s;
}
.pay-tx-submit:hover, .join-tx-submit:hover, .pay-dc-submit:hover, .jd-submit:hover {
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.45);
}
.pay-tx-guide, .join-tx-guide {
  display: inline-block;
  margin-top: 11px;
  font-size: 12px;
  color: var(--purple);
  cursor: pointer;
  border-bottom: 1px dashed rgba(168, 85, 247, 0.4);
  transition: color 0.25s;
}
.pay-tx-guide:hover, .join-tx-guide:hover { color: var(--fuchsia); }

.pay-waiting, .join-waiting {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.pay-waiting-spinner, .join-waiting-spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(168, 85, 247, 0.18);
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
}
.pay-waiting-text, .join-waiting-text { font-size: 13.5px; color: var(--ink-2); }

.pay-discord-step, .join-discord-step { margin-bottom: 14px; }
.pay-dc-label, .jd-label { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }

.pay-success, .join-success { padding: 8px 0 4px; }
.pay-success-icon, .join-success-icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--green);
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 0 34px rgba(52, 211, 153, 0.3);
  animation: popIn 0.6s var(--ease) both;
}
.pay-success-text, .join-success-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 18px; }
.pay-success-cta, .join-cta { width: 100%; }

.pay-footer, .join-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-3);
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

/* ── Quiz modal ──────────────────────────────────────────────── */

.quiz-card { max-width: 540px; padding: 46px 40px 36px; }

.quiz-progress {
  height: 4px;
  margin-bottom: 32px;
  border-radius: 99px;
  background: rgba(167, 139, 250, 0.12);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.5);
  transition: width 0.5s var(--ease);
}

.quiz-step.active, .quiz-result.active { animation: quizIn 0.45s var(--ease) both; }
@keyframes quizIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.quiz-question { font-family: var(--font-d); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 7px; }
.quiz-hint { font-size: 13.5px; color: var(--ink-3); margin-bottom: 24px; }

.quiz-options { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--glass);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.quiz-opt:hover { border-color: var(--line-2); background: var(--glass-2); transform: translateX(4px); }
.quiz-opt.selected {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.13);
  box-shadow: 0 0 0 1px var(--purple), 0 10px 28px rgba(139, 92, 246, 0.22);
}
.quiz-opt-icon { font-size: 24px; }
.quiz-opt-label { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.quiz-opt-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

.quiz-nav { display: flex; justify-content: space-between; gap: 12px; }
.quiz-back {
  padding: 12px 24px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.25s;
}
.quiz-back:hover { color: var(--ink); border-color: rgba(167, 139, 250, 0.5); }
.quiz-next {
  margin-left: auto;
  padding: 12px 28px;
  border: none;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(217, 70, 239, 0.4);
  transition: all 0.25s;
}
.quiz-next:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.quiz-next:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(217, 70, 239, 0.55); }

.quiz-result { text-align: center; }
.quiz-result-icon { font-size: 54px; margin-bottom: 14px; }
.quiz-result-title {
  font-family: var(--font-d);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quiz-result-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 28px; }
.quiz-result-actions { display: flex; flex-direction: column; gap: 11px; }
.quiz-start-course {
  padding: 15px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(217, 70, 239, 0.4);
  transition: all 0.25s;
}
.quiz-start-course:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(217, 70, 239, 0.55); }
.quiz-try-again {
  padding: 13px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.25s;
}
.quiz-try-again:hover { color: var(--ink); border-color: rgba(167, 139, 250, 0.5); }

/* ── Join paywall ────────────────────────────────────────────── */

.join-card { max-width: 480px; padding: 44px 38px 30px; text-align: center; }

.join-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}
.join-logo {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad);
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.join-divider { height: 1px; margin: 24px 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

.join-card h2 { font-family: var(--font-d); font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.join-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 24px; }

.join-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-bottom: 26px;
}
.join-currency { font-family: var(--font-d); font-size: 26px; font-weight: 700; color: var(--purple); }
.join-amount {
  font-family: var(--font-d);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, rgba(220, 210, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.join-once { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

.join-pay-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.join-crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}
.join-crypto-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink-2);
  transition: all 0.25s var(--ease);
}
.join-crypto-btn:hover { border-color: var(--line-2); background: var(--glass-2); transform: translateY(-2px); }
.join-crypto-btn.active {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 0 1px var(--purple), 0 8px 22px rgba(139, 92, 246, 0.25);
  color: var(--ink);
}
.jc-icon { font-size: 18px; }
.jc-name { font-size: 11px; font-weight: 600; }
.jc-eqv { font-family: var(--font-m); font-size: 9px; color: var(--ink-4); }
.join-loading { grid-column: 1 / -1; padding: 18px; font-size: 13px; color: var(--ink-3); }

.join-address-box {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(139, 92, 246, 0.06);
  text-align: left;
}
.ja-header { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.ja-eqv { margin-left: auto; font-family: var(--font-m); font-size: 12.5px; color: var(--purple); }
.ja-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(4, 2, 8, 0.6);
}
.ja-row code { flex: 1; font-family: var(--font-m); font-size: 11px; color: var(--ink-2); word-break: break-all; }
.ja-network { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.ja-amount-note { margin-top: 6px; font-size: 11px; color: rgba(251, 191, 36, 0.7); }

/* ── TX guide popup ──────────────────────────────────────────── */

.join-guide-card { max-width: 420px; padding: 36px 32px 28px; }
.join-guide-card h3 { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.join-guide-coin {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 18px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
}
.join-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0 0 24px 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.join-guide-close {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(217, 70, 239, 0.4);
  transition: all 0.25s;
}
.join-guide-close:hover { transform: translateY(-1px); box-shadow: 0 9px 30px rgba(217, 70, 239, 0.55); }

/* ── Footer ──────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05));
  overflow: hidden;
}
.footer::before {
  content: 'VELLUM';
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  transform: translateX(-50%);
  font-family: var(--font-d);
  font-size: clamp(110px, 22vw, 300px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.09), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 56px) 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: all 0.25s;
}
.footer-links a:hover { color: var(--ink); background: rgba(167, 139, 250, 0.08); }
.footer-copy { font-size: 12px; color: var(--ink-4); }

/* ── error.html compat ───────────────────────────────────────── */

.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px;
}
.container .card {
  padding: 44px 38px;
  border-radius: 26px;
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, rgba(22, 14, 38, 0.97), rgba(9, 5, 17, 0.97)) padding-box,
    linear-gradient(165deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.25) 60%, rgba(139, 92, 246, 0.1)) border-box;
  box-shadow: var(--shadow-lg);
}
.container .card .status { display: flex; opacity: 1; transform: none; }
.gold { color: var(--gold); }
.footer-bar { font-size: 12px; color: var(--ink-4); letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav-links a:not(.nav-premium) { display: none; }
  .nav-profile { margin-left: 0; }
  .hero { padding-top: 130px; }
  .hero-stats { gap: 26px; }
  .footer-content { padding-bottom: 80px; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(48px, 15vw, 72px); }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
  .pay-crypto-grid { grid-template-columns: repeat(3, 1fr); }
  .premium-card { padding: 34px 24px; }
  .premium-price { font-size: 58px; }
  .verify-card, .pay-card, .quiz-card, .join-card { padding-left: 24px; padding-right: 24px; }
  .reviews-bars { min-width: 230px; }
}
