/* =========================================
   VERTEX FUNDED — Design System
   Shared stylesheet for all pages
   ========================================= */

:root {
  --bg: #0A0A0A;
  --bg-raised: #121212;
  --bg-card: #161616;
  --bg-elevated: #1C1C1C;
  --border: #1F1F1F;
  --border-hover: #333;
  --text: #FAFAF5;
  --text-dim: #8B8B85;
  --text-subtle: #5A5A55;
  --gold: #F5C842;
  --gold-dim: #C9A43A;
  --gold-bright: #FFD962;
  --green: #5CDB95;
  --green-dim: #3BA76C;
  --red: #F2545B;
  --red-dim: #C73D43;
  --blue: #6FA8DC;
  /* Apple-style typography stack. SF Pro on Apple devices, Inter elsewhere. */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-glow: 0 10px 40px rgba(245, 200, 66, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  min-height: 100vh;
}

/* Apple-style emphasis: gold color, no italic, subtle weight difference */
em {
  font-style: normal;
  font-weight: inherit;
  color: var(--gold);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.container-sm {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== NAVBAR ===== */
nav.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-mark { transform: rotate(180deg); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 400;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: relative;
  margin-right: 4px;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 980px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.lang-switcher-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.lang-switcher.open .lang-switcher-btn {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--gold);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 200;
}

.lang-switcher.open .lang-switcher-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-switcher-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  text-align: left;
}

.lang-switcher-option:hover {
  background: var(--bg-elevated);
}

.lang-switcher-option.active {
  color: var(--gold);
  background: rgba(245, 200, 66, 0.08);
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

/* ===== 3D HERO VISUAL ===== */
.hero-3d-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Particle canvas background */
.particle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Animated candlestick chart overlay */
.floating-chart {
  position: absolute;
  right: 60px;
  bottom: 80px;
  width: 340px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: chartFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

@keyframes chartFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.floating-chart-card {
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(245, 200, 66, 0.1);
}

.floating-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.floating-chart-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.floating-chart-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.floating-chart-change {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  margin-top: 2px;
}

.floating-chart-svg {
  width: 100%;
  height: 80px;
  margin-top: 8px;
}

/* World map dots pulse */
.pulse-dot {
  transform-origin: center;
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0%    { transform: scale(0.5); opacity: 1; }
  80%   { transform: scale(3);   opacity: 0; }
  100%  { transform: scale(3);   opacity: 0; }
}

/* Rotating gold glow behind hero */
.hero-glow {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(245, 200, 66, 0.18), rgba(245, 200, 66, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.8; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

/* Live candle ticker (tiny animated bars) */
.candle-ticker {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.candle-ticker-bar {
  width: 4px;
  background: var(--green);
  border-radius: 1px;
  animation: candleBarPulse 1.2s ease-in-out infinite;
}

.candle-ticker-bar:nth-child(1) { animation-delay: 0s;    height: 40%; }
.candle-ticker-bar:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.candle-ticker-bar:nth-child(3) { animation-delay: 0.3s;  height: 55%; }
.candle-ticker-bar:nth-child(4) { animation-delay: 0.45s; height: 90%; }
.candle-ticker-bar:nth-child(5) { animation-delay: 0.6s;  height: 65%; }

@keyframes candleBarPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== BUTTONS ===== */
.btn {
  padding: 11px 22px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--text); }

.btn-primary {
  background: var(--gold);
  color: #0A0A0A;
  font-weight: 600;
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red-dim);
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.btn-large { padding: 16px 32px; font-size: 15px; }
.btn-small { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; }

/* ===== HERO / HEADING ===== */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.5vw, 108px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin-bottom: 36px;
  max-width: 1200px;
}

h1.hero-title em,
.gold-em {
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.045em;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.55;
  letter-spacing: -0.014em;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== PAGE HEADER (for non-landing pages) ===== */
.page-header {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 30%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.05), transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.55;
  letter-spacing: -0.014em;
}

/* ===== SECTIONS ===== */
section { padding: 120px 0; position: relative; z-index: 2; }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 900px;
}

.section-title em {
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
}

.section-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 660px;
  margin-bottom: 72px;
  line-height: 1.55;
  letter-spacing: -0.014em;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  background: var(--bg-elevated);
}

.form-input::placeholder { color: var(--text-subtle); }

.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8B85' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-wrap input {
  margin-top: 2px;
  accent-color: var(--gold);
  width: 16px; height: 16px;
  cursor: pointer;
}

.form-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 6px;
  font-family: var(--font-mono);
}

.form-hint {
  color: var(--text-subtle);
  font-size: 12px;
  margin-top: 6px;
  font-family: var(--font-mono);
}

.form-success {
  background: rgba(92, 219, 149, 0.08);
  border: 1px solid rgba(92, 219, 149, 0.3);
  color: var(--green);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-alert {
  background: rgba(242, 84, 91, 0.08);
  border: 1px solid rgba(242, 84, 91, 0.3);
  color: var(--red);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-info {
  background: rgba(111, 168, 220, 0.08);
  border: 1px solid rgba(111, 168, 220, 0.3);
  color: var(--blue);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== AUTH PAGES ===== */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.1), transparent 60%);
  pointer-events: none;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
}

.auth-quote {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 500px;
}

.auth-quote em { font-style: normal; color: var(--gold); font-weight: 500; }

.auth-quote-attr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-form-side {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  line-height: 1.05;
}

.auth-title em { font-style: normal; color: var(--gold); font-weight: 500; }

.auth-sub {
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 15px;
}

.auth-switch {
  margin-top: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-switch a { color: var(--gold); font-weight: 500; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s;
}

.card:hover { border-color: var(--border-hover); }

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.stat-item {
  padding: 48px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stat-item:nth-child(4n) { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--gold);
  margin-bottom: 12px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===== TICKER ===== */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-raised);
}

.ticker-track {
  display: flex;
  gap: 80px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-label {
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

.ticker-value { color: var(--text); font-weight: 500; font-size: 15px; }
.ticker-value.gold { color: var(--gold); }
.ticker-value.green { color: var(--green); }

/* ===== CHALLENGE CARDS ===== */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: var(--radius);
}

.challenge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.challenge-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.challenge-card:hover::before { background: var(--gold); }

.challenge-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 200, 66, 0.05), var(--bg-card));
}

.challenge-card.featured::before { background: var(--gold); }

.challenge-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.challenge-type {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.challenge-amount {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.challenge-amount em { font-style: normal; color: var(--gold); font-weight: 500; }

.challenge-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  min-height: 38px;
}

.challenge-price {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
}

.price-amount .currency {
  font-size: 16px;
  color: var(--text-dim);
  margin-right: 4px;
}

.price-old {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-subtle);
  text-decoration: line-through;
}

.challenge-features {
  list-style: none;
  margin-bottom: 28px;
}

.challenge-features li {
  padding: 8px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.challenge-features li:last-child { border-bottom: none; }

.check-icon { color: var(--gold); font-family: var(--font-mono); font-weight: 500; }

.challenge-cta {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  background: transparent;
}

.challenge-card.featured .challenge-cta {
  background: var(--gold);
  color: #0A0A0A;
  border-color: var(--gold);
  font-weight: 600;
}

.challenge-card:not(.featured) .challenge-cta:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.challenge-card.featured .challenge-cta:hover {
  background: #fff;
  border-color: #fff;
}

/* ===== HOW WORKS ===== */
.how-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.step { position: relative; }

.step-number {
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 0.9;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 16px;
  font-style: normal;
  letter-spacing: -0.05em;
}

.step-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.step-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== FEATURES / FEATURE LIST ===== */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.feature-item {
  background: var(--bg);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  transition: padding 0.3s;
}

.feature-item:hover { padding-left: 16px; }

.feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  padding-top: 4px;
}

.feature-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== TERMINAL WIDGET ===== */
.feature-visual {
  position: sticky;
  top: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  overflow: hidden;
  min-height: 560px;
}

.terminal { font-family: var(--font-mono); font-size: 12px; }

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.terminal-title {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #F2545B; }
.dot.yellow { background: #F5C842; }
.dot.green { background: #5CDB95; }

.trade-row {
  display: grid;
  grid-template-columns: 80px 70px 1fr auto;
  gap: 14px;
  padding: 11px 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.trade-time { color: var(--text-subtle); }
.trade-symbol { color: var(--text); font-weight: 500; }

.trade-type {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  text-align: center;
  width: fit-content;
  font-weight: 600;
}

.trade-type.long { background: rgba(92, 219, 149, 0.15); color: var(--green); }
.trade-type.short { background: rgba(242, 84, 91, 0.15); color: var(--red); }

.trade-pnl { color: var(--green); font-weight: 500; text-align: right; }
.trade-pnl.loss { color: var(--red); }

.equity-display {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.equity-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.equity-value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--gold);
}

.equity-delta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  margin-top: 4px;
}

/* ===== PAYOUTS ===== */
.payouts-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.payouts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
}

.payout-card {
  background: var(--bg-raised);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  transition: background 0.3s;
}

.payout-card:hover { background: var(--bg-card); }

.payout-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bg);
  font-size: 20px;
}

.payout-info h5 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}

.payout-info p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== TX HASH LINK (Tronscan verify) ===== */
.tx-link {
  color: var(--gold) !important;
  font-family: var(--font-mono);
  font-size: inherit;
  transition: all 0.15s ease;
  border-bottom: 1px dotted rgba(245, 200, 66, 0.35);
  padding-bottom: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.tx-link:hover {
  color: var(--gold-bright) !important;
  border-bottom-color: var(--gold-bright);
  border-bottom-style: solid;
}

.tx-link svg { flex-shrink: 0; opacity: 0.85; }
.tx-link:hover svg { opacity: 1; }

.verify-modal {
  animation: verifyModalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes verifyModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.payout-amount {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.035em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.payout-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  text-align: right;
  margin-top: 4px;
}

/* ===== COMPARISON ===== */
.comparison {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.comparison-row:last-child { border-bottom: none; }
.comparison-row:hover { background: var(--bg-raised); }

.comparison-row.header {
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.comparison-row.header .comparison-cell { padding: 18px 20px; }

.comparison-cell {
  padding: 20px;
  border-right: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.comparison-cell:last-child { border-right: none; }

.comparison-cell.us {
  background: rgba(245, 200, 66, 0.04);
  color: var(--text);
  font-weight: 500;
}

.comparison-cell.us.header { color: var(--gold); }
.comparison-cell.feature-name { color: var(--text-dim); }

.check-mark { color: var(--green); font-weight: 600; }
.x-mark { color: var(--red); opacity: 0.7; }

/* ===== FAQ ===== */
.faq-list { max-width: 900px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  user-select: none;
  gap: 20px;
}

.faq-q:hover { color: var(--gold); }

.faq-toggle {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-top: 18px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245, 200, 66, 0.08), transparent 70%);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  max-width: 900px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 2;
}

.cta-banner h2 em { font-style: normal; color: var(--gold); font-weight: 500; }

.cta-banner p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 44px;
  position: relative;
  z-index: 2;
}

.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  background: var(--bg-raised);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand { max-width: 320px; }

.footer-brand p {
  color: var(--text-dim);
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text);
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}

.disclaimer {
  max-width: 800px;
  font-size: 11px;
  color: var(--text-subtle);
  line-height: 1.6;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 12px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all 0.15s;
  cursor: pointer;
}

.sidebar-link:hover {
  background: var(--bg-card);
  color: var(--text);
}

.sidebar-link.active {
  background: var(--bg-card);
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

.sidebar-link svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-user {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.user-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bg);
  font-size: 14px;
  flex-shrink: 0;
}

.user-chip-info { overflow: hidden; flex: 1; }

.user-chip-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip-email {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-main {
  padding: 32px 40px;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.dashboard-title em { font-style: normal; color: var(--gold); font-weight: 500; }

.dashboard-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 6px;
}

/* ===== DASHBOARD STATS ===== */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.dash-stat-card:hover { border-color: var(--border-hover); }

.dash-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-stat-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.dash-stat-value.gold { color: var(--gold); }
.dash-stat-value.green { color: var(--green); }
.dash-stat-value.red { color: var(--red); }

.dash-stat-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}

.dash-stat-delta.neg { color: var(--red); }

/* ===== DASHBOARD ACCOUNTS TABLE ===== */
.dash-section { margin-bottom: 40px; }

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.accounts-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accounts-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.account-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
}

.account-row:last-child { border-bottom: none; }
.account-row:hover { background: var(--bg-raised); }

.account-id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.account-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.account-type-badge.challenge { background: rgba(111, 168, 220, 0.15); color: var(--blue); }
.account-type-badge.funded { background: rgba(92, 219, 149, 0.15); color: var(--green); }
.account-type-badge.breached { background: rgba(242, 84, 91, 0.15); color: var(--red); }
.account-type-badge.pending { background: rgba(245, 200, 66, 0.15); color: var(--gold); }

.account-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.account-progress {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.account-progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width 0.6s;
}

.account-progress-bar.green { background: var(--green); }
.account-progress-bar.red { background: var(--red); }

.progress-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ===== EQUITY CHART ===== */
.equity-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.chart-wrap {
  height: 280px;
  position: relative;
  margin-top: 20px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.tab {
  padding: 14px 20px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ===== TOASTS ===== */
.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  max-width: 360px;
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  font-size: 14px;
}

.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== CHECKOUT ===== */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding-top: 120px;
  min-height: 100vh;
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.checkout-item:last-child { border-bottom: none; }
.checkout-item .label { color: var(--text-dim); }

.checkout-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  margin-top: 16px;
  border-top: 2px solid var(--gold);
  font-size: 18px;
  font-weight: 500;
}

.checkout-total .amount {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
}

/* ===== PAYMENT METHODS ===== */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.payment-method {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.payment-method:hover { border-color: var(--border-hover); }

.payment-method.selected {
  border-color: var(--gold);
  background: rgba(245, 200, 66, 0.05);
}

.payment-method-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  border-radius: 4px;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== UTILITIES ===== */
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-gold { background: rgba(245, 200, 66, 0.15); color: var(--gold); }
.badge-green { background: rgba(92, 219, 149, 0.15); color: var(--green); }
.badge-red { background: rgba(242, 84, 91, 0.15); color: var(--red); }
.badge-blue { background: rgba(111, 168, 220, 0.15); color: var(--blue); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fade-in-delay-1 { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards; opacity: 0; }
.fade-in-delay-3 { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards; opacity: 0; }
.fade-in-delay-4 { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards; opacity: 0; }

/* ===== MOBILE NAV TOGGLE ===== */
.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.mobile-nav-toggle svg { width: 18px; height: 18px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .dashboard-wrap { grid-template-columns: 220px 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(4n) { border-right: 1px solid var(--border); }
  .challenges-grid { grid-template-columns: 1fr; }
  .how-works { grid-template-columns: 1fr; gap: 48px; }
  .features-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-visual { position: static; }
  .payouts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .comparison-row { grid-template-columns: 1.5fr repeat(4, 1fr); font-size: 12px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .checkout-wrap { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .checkout-summary { position: static; }
  .dashboard-wrap { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 8px 12px; gap: 4px; }
  .sidebar-link { white-space: nowrap; padding: 10px 14px; }
  .sidebar-user, .sidebar-section-title { display: none; }
  .accounts-table-header { display: none; }
  .account-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  /* Inline grid fallbacks */
  [style*="grid-template-columns: 1fr 1fr"]:not(.dont-collapse) { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .mobile-nav-open .nav-links {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .mobile-nav-open .nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .mobile-nav-open .nav-links a:last-child { border-bottom: none; }
  .dash-stats { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  nav.main-nav { padding: 14px 20px; }
  .hero { padding: 130px 0 70px; }
  section { padding: 72px 0; }
  .page-header { padding: 120px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item:nth-child(n) { border-right: none; }
  .stat-number { font-size: 52px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .payout-card { grid-template-columns: 1fr; text-align: left; }
  .comparison-row { grid-template-columns: 2fr 1fr; }
  .comparison-cell:nth-child(n+3) { display: none; }
  .cta-banner-actions { flex-direction: column; }
  .step-number { font-size: 120px; }
  .auth-form-side { padding: 40px 24px; }
  .auth-title { font-size: 36px; }
  .dashboard-main { padding: 20px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dashboard-title { font-size: 32px; }
  .toast-container { top: 80px; right: 12px; left: 12px; }
  .toast { max-width: none; }
  .modal { padding: 28px 20px; max-width: calc(100vw - 32px); }
  .page-header h1 { font-size: 40px; }
  .section-title { font-size: 36px; }
  .cta-banner h2 { font-size: 40px; }
  /* Hide 3D elements on mobile for performance */
  .hero-3d-container, .floating-chart, .hero-glow { display: none; }
  .lang-switcher-btn { padding: 6px 10px; font-size: 12px; }
  .lang-switcher-current { display: none; }
}

/* Hide 3D canvas on tablet too (performance) */
@media (max-width: 1024px) {
  .floating-chart { right: 20px; width: 280px; }
}
