/* ================================================
   EA NATION — WELCOME ONBOARDING
   Design system matches eanation.vip exactly
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === DESIGN TOKENS === */
:root {
  /* Brand */
  --green: #55BB52;
  --green-hover: #4aa947;
  --green-light: rgba(85, 187, 82, 0.1);
  --green-glow: rgba(85, 187, 82, 0.3);

  /* Dark Theme */
  --bg: #0a0e1a;
  --bg-secondary: #121828;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-green: rgba(85, 187, 82, 0.3);

  /* Accent */
  --gold: #d4af37;
  --gold-muted: rgba(212, 175, 55, 0.15);
  --red: #ef4444;
  --red-muted: rgba(239, 68, 68, 0.12);

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-green: 0 4px 20px rgba(85, 187, 82, 0.3);

  /* Layout */
  --max-width: 640px;
  --header-height: 64px;
  --progress-height: 4px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; }
p { color: var(--text-secondary); }

/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-md);
}
.logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,1)) drop-shadow(0 0 12px rgba(255,255,255,0.7));
}

/* === PROGRESS BAR === */
.progress-bar-track {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  height: var(--progress-height);
  background: var(--border);
  z-index: 100;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #7dd87a);
  border-radius: 0 2px 2px 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--green-glow);
}

/* === STEP LABEL === */
.step-label {
  position: fixed;
  top: calc(var(--header-height) + var(--progress-height) + 10px);
  right: var(--spacing-md);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 100;
}

/* === MAIN CONTAINER === */
.app-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--progress-height) + 36px) var(--spacing-md) 6rem;
  min-height: 100vh;
}

/* === STEP PANELS === */
.step-panel {
  display: none;
  animation: stepEnter 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.step-panel.active { display: block; }
.step-panel.exit {
  animation: stepExit 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes stepEnter {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepExit {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-32px); }
}

/* === GLASS CARD === */
.card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-green {
  background: var(--green-light);
  border-color: var(--border-green);
}
.card-gold {
  background: var(--gold-muted);
  border-color: rgba(212, 175, 55, 0.3);
}
.card-red {
  background: var(--red-muted);
  border-color: rgba(239, 68, 68, 0.3);
}

/* === HERO SECTION (Step 1) === */
.hero {
  text-align: center;
  padding: var(--spacing-lg) 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-light);
  border: 1px solid var(--border-green);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: var(--spacing-md);
}
.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  color: var(--green);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--spacing-lg);
}
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* === SECTION TITLE === */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  width: 100%;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover:not(:disabled) {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(85, 187, 82, 0.45);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--green);
}
.btn-danger {
  background: var(--red-muted);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-messenger {
  background: #0084ff;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 132, 255, 0.35);
  white-space: normal;
  word-break: break-word;
  min-height: 56px;
  line-height: 1.4;
  text-align: center;
}
.btn-messenger:hover {
  background: #0077e6;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 132, 255, 0.5);
}
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.88rem; width: auto; }

/* === STEPPER === */
.stepper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.step {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-green);
}
.step-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.step-content p { font-size: 0.88rem; }
.step-content ul { font-size: 0.88rem; color: var(--text-secondary); }

/* === QUALIFICATION FORM === */
.qual-question {
  margin-bottom: var(--spacing-md);
}
.qual-question label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}
.qual-question select,
.qual-question textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.qual-question select:focus,
.qual-question textarea:focus { border-color: var(--green); }
.qual-question textarea { resize: vertical; min-height: 80px; }
.rating-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.rating-btn {
  flex: 1;
  min-width: 36px;
  padding: 0.6rem 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.rating-btn.selected {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

/* === COMMITMENT BUTTONS === */
.commit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}
.commit-btn {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  transition: all 0.25s;
}
.commit-btn.yes {
  background: var(--green-light);
  border-color: var(--border-green);
  color: var(--green);
}
.commit-btn.yes:hover { background: rgba(85,187,82,0.18); }
.commit-btn.no:hover { background: var(--red-muted); border-color: rgba(239,68,68,0.3); color: #f87171; }

/* === VIDEO PLACEHOLDER === */
.video-placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  margin-bottom: var(--spacing-md);
}
.video-play-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border: 1.5px solid var(--border-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
}
.video-play-icon svg { width: 22px; height: 22px; fill: var(--green); margin-left: 3px; }
.video-placeholder p { font-size: 0.85rem; color: var(--text-muted); }

/* === CHECKBOX CONFIRM === */
.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-top: var(--spacing-md);
}
.confirm-check.checked {
  background: var(--green-light);
  border-color: var(--border-green);
}
.confirm-check input[type=checkbox] { display: none; }
.check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}
.confirm-check.checked .check-box {
  background: var(--green);
  border-color: var(--green);
}
.check-box svg { width: 13px; height: 13px; fill: #fff; display: none; }
.confirm-check.checked .check-box svg { display: block; }
.confirm-check span { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.confirm-check.checked span { color: var(--text-primary); }

/* === FINAL FORM === */
.form-field {
  margin-bottom: var(--spacing-md);
}
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--green);
  background: rgba(255,255,255,0.09);
}
.form-field input::placeholder { color: var(--text-muted); }
.form-field .field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* === ACHIEVEMENT TOAST === */
.achievement {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-light);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  opacity: 0;
  white-space: nowrap;
  box-shadow: var(--shadow-green);
}
.achievement.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* === REJECTION SCREEN === */
.rejection-screen {
  text-align: center;
  padding: var(--spacing-xl) 0;
}
.rejection-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
}

/* === FINAL SUCCESS === */
.success-screen { text-align: center; padding: var(--spacing-lg) 0; }
.success-icon {
  width: 80px; height: 80px;
  background: var(--green-light);
  border: 2px solid var(--border-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto var(--spacing-md);
}

/* === RISK DISCLAIMER === */
.risk-disclosure {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.risk-disclosure h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* === UTILITIES === */
.mt-sm  { margin-top: var(--spacing-sm); }
.mt-md  { margin-top: var(--spacing-md); }
.mt-lg  { margin-top: var(--spacing-lg); }
.mb-sm  { margin-bottom: var(--spacing-sm); }
.mb-md  { margin-bottom: var(--spacing-md); }
.text-green  { color: var(--green); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.hidden      { display: none !important; }
.font-bold   { font-weight: 700; }
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--spacing-md) 0;
}

/* === CALCULATOR === */
.calculator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) auto;
  backdrop-filter: blur(20px);
}
.calculator-inputs {
  display: grid;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}
.input-group { display: flex; flex-direction: column; gap: var(--spacing-xs); }
.input-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.input-group input,
.input-group select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.input-group input:focus,
.input-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}
.calculator-result { margin-top: var(--spacing-lg); text-align: center; }
.card-reveal {
  animation: stepEnter 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
.calc-settings-confirmed {
  background: var(--green-light);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
  text-align: center;
  margin-top: var(--spacing-sm);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .stats-row  { gap: 0.5rem; }
  .stat-value { font-size: 1.2rem; }
  .commit-options { grid-template-columns: 1fr; }
}
