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

:root {
  --black: #0A0A0A;
  --black-deep: #111111;
  --charcoal: #161616;
  --surface: #1A1A1A;
  --border: #242424;
  --border-light: #2E2E2E;
  --green: #00E676;
  --green-dark: #00C853;
  --green-muted: #00E67620;
  --green-glow: rgba(0, 230, 118, 0.15);
  --yellow: #F5C518;
  --yellow-muted: #F5C51815;
  --white: #F0F0F0;
  --gray: #888888;
  --gray-light: #AAAAAA;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --gold: #c8a820;
  --gold-bright: #f5d878;
  --gold-muted: #9a8a68;
  --stone-dark: #1a1814;
}

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

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; transition: 0.2s ease; }
a:hover { color: #4df79b; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.icon-lg { width: 28px; height: 28px; }


/* Nav + auth CSS is in /components/nav.css — do NOT duplicate here */

/* Modal overlay */
.auth-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  overflow-y: auto;
}
.auth-overlay.open { display: flex; }

.auth-card {
  background: #111;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%; max-width: 400px;
  margin: 16px;
  position: relative;
}

.auth-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--gray); font-size: 20px;
  cursor: pointer; line-height: 1; padding: 4px;
}
.auth-close:hover { color: var(--white); }

.auth-logo {
  display: flex; justify-content: center; margin-bottom: 24px;
}

.auth-title {
  font-size: 1.15rem; font-weight: 700; color: var(--white);
  text-align: center; margin-bottom: 6px;
}
.auth-sub {
  font-size: 0.82rem; color: var(--gray); text-align: center; margin-bottom: 28px;
}

.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); color: #111;
  border: none; border-radius: 8px;
  padding: 12px; font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: 0.2s; margin-bottom: 20px;
}
.btn-google:hover { background: #e8e8e8; }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; color: var(--gray); font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}

.auth-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 8px; padding: 11px 14px;
  color: var(--white); font-family: var(--font); font-size: 16px;
  margin-bottom: 12px; outline: none; transition: 0.2s;
}
.auth-input:focus { border-color: var(--green); }
.auth-input::placeholder { color: var(--gray); }

.btn-auth-submit {
  width: 100%; background: var(--green); color: #000;
  border: none; border-radius: 8px; padding: 12px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: 0.2s; margin-top: 4px;
}
.btn-auth-submit:hover { background: var(--green-dark); }
.btn-auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-toggle {
  text-align: center; margin-top: 16px;
  font-size: 0.8rem; color: var(--gray);
}
.auth-toggle button {
  background: none; border: none; color: var(--green);
  cursor: pointer; font-size: 0.8rem; font-weight: 600;
  padding: 0; text-decoration: underline;
}

.auth-error {
  background: rgba(220,50,50,0.12); border: 1px solid rgba(220,50,50,0.3);
  color: #ff7070; border-radius: 6px; padding: 10px 14px;
  font-size: 0.8rem; margin-bottom: 14px; display: none;
}

.auth-signout {
  display: none; width: 100%; background: none;
  border: 1px solid var(--border); color: var(--gray);
  border-radius: 8px; padding: 10px;
  font-family: var(--font); font-size: 0.85rem; cursor: pointer;
  margin-top: 16px; transition: 0.2s;
}
.auth-signout:hover { border-color: #cc4444; color: #ff7070; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -40%; left: 0; right: 0;
  height: 180%;
  will-change: transform;
  background-image:
    radial-gradient(ellipse at 80% 40%, var(--green-glow), transparent 60%),
    linear-gradient(15deg, transparent 47%, rgba(0,0,0,0.15) 48%, rgba(0,0,0,0.15) 49%, transparent 50%),
    linear-gradient(165deg, transparent 60%, rgba(0,0,0,0.1) 61%, rgba(0,0,0,0.1) 62%, transparent 63%),
    linear-gradient(80deg, transparent 28%, rgba(0,0,0,0.08) 29%, rgba(0,0,0,0.08) 30%, transparent 31%),
    linear-gradient(200deg, transparent 70%, rgba(255,255,255,0.02) 71%, rgba(255,255,255,0.02) 72%, transparent 73%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-inner { display: flex; align-items: center; gap: 48px; position: relative; z-index: 1; }
.hero-left { flex: 55; min-width: 0; position: relative; overflow: hidden; }
.hero-left::before {
  content: '';
  position: absolute;
  top: 5%; left: 25%; right: 0; bottom: 0;
  background: url('/assets/ui/D2Dlogo.png') no-repeat center center;
  background-size: contain;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.hero-right { flex: 45; min-width: 0; }
.hero-content { max-width: 640px; position: relative; z-index: 1; }

/* Daily Challenge Card */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.daily-challenge-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  animation: slideInRight 500ms ease 200ms forwards;
  opacity: 0;
}
.daily-challenge-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,197,94,0.3), transparent 60%);
  z-index: -1;
}
.challenge-header {
  background: rgba(34,197,94,0.1);
  border-bottom: 1px solid rgba(34,197,94,0.2);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.challenge-header-left { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; color: #22c55e; text-transform: uppercase; letter-spacing: 0.1em; }
.challenge-countdown { font-family: monospace; font-size: 13px; color: rgba(255,255,255,0.5); }
.challenge-body { padding: 24px; }
.challenge-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.2; }
.challenge-desc { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 16px; }
.challenge-tags { display: flex; gap: 8px; margin-bottom: 20px; }
.challenge-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.tag-beginner { background: rgba(34,197,94,0.18); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.tag-intermediate { background: rgba(245,158,11,0.18); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.tag-advanced { background: rgba(239,68,68,0.18); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.tag-type { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.12); }
.streak-row { margin-bottom: 20px; }
.streak-row-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.streak-row-label span { color: #22c55e; font-size: 13px; font-weight: 700; }
.streak-dots { display: flex; gap: 6px; }
.streak-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.streak-dot.completed { background: #22c55e; }
.btn-daily-start { display: block; width: 100%; padding: 14px; background: #22c55e; color: #000; font-weight: 800; font-size: 0.95rem; border-radius: 10px; text-align: center; text-decoration: none; transition: background 0.2s; cursor: pointer; border: none; }
.btn-daily-start:hover { background: #16a34a; }
.btn-daily-done { display: block; width: 100%; padding: 14px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); font-weight: 700; font-size: 0.95rem; border-radius: 10px; text-align: center; cursor: default; border: 1px solid rgba(255,255,255,0.1); }
.nav-grind-link { background: rgba(245,197,24,0.12) !important; color: var(--yellow) !important; border: 1px solid rgba(245,197,24,0.3); border-radius: 6px; padding: 5px 12px !important; font-weight: 700 !important; transition: background 0.2s, border-color 0.2s; }
.nav-grind-link:hover { background: rgba(245,197,24,0.22) !important; border-color: rgba(245,197,24,0.5); color: var(--yellow) !important; }

.hero-eyebrow {
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 7px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: fadeIn 0.6s ease 0ms both;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease both;
}

.hero-tag .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 .h1-main {
  display: inline;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
  display: inline-block;
  animation: scaleUp 0.6s ease 0.45s both;
}

.hero p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
  animation: fadeIn 0.6s ease 0.65s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  animation: fadeUp 0.5s ease 0.85s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--green); color: var(--black); }

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--green-glow);
}

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

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--gray);
  transform: translateY(-1px);
}

/* ===== FEATURE STRIP ===== */
.feature-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--black-deep);
}

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-strip-item { display: flex; align-items: flex-start; gap: 14px; text-decoration: none; color: inherit; cursor: pointer; border-radius: 10px; padding: 12px; margin: -12px; transition: background 0.2s; }
.feature-strip-item:hover { background: rgba(255,255,255,0.05); color: inherit; }

.feature-strip-icon {
  width: 40px; height: 40px;
  background: var(--green-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.feature-strip-text h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }

.feature-strip-text p { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }

/* ===== SECTIONS ===== */
section { padding: 96px 0; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.65;
}

/* ===== DIVIDER ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== ONBOARDING MODAL ===== */
.onboarding-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.onboarding-overlay.open { display: flex; }
.onboarding-modal {
  background: #111; border: 1px solid var(--border-light);
  border-radius: 20px; padding: 48px 40px 32px;
  max-width: 520px; width: 100%; margin: 16px; position: relative;
  text-align: center;
}
.onboarding-skip {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--gray); font-family: var(--font);
  font-size: 0.8rem; cursor: pointer; transition: color 0.2s;
}
.onboarding-skip:hover { color: var(--white); }
.onboarding-slide { display: none; }
.onboarding-slide.active { display: block; }
.onboarding-icon { font-size: 2.5rem; margin-bottom: 20px; }
.onboarding-slide h2 {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px; color: var(--white);
}
.onboarding-slide h2 em { font-style: normal; color: var(--green); }
.onboarding-slide p {
  font-size: 0.9rem; color: var(--gray-light); line-height: 1.65;
  max-width: 400px; margin: 0 auto 24px;
}
.onboarding-steps {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left; margin: 20px 0 8px;
}
.onboarding-step {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.onboarding-step-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.onboarding-step-icon.green { background: var(--green-muted); }
.onboarding-step-icon.yellow { background: var(--yellow-muted); }
.onboarding-step-icon.blue { background: rgba(79,195,247,0.08); }
.onboarding-step h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.onboarding-step p { font-size: 0.78rem; color: var(--gray); margin: 0; line-height: 1.5; }
.onboarding-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  transition: opacity 0.3s ease;
}
.onboarding-nav.hidden { opacity: 0; pointer-events: none; }
.onboarding-btn {
  background: none; border: 1px solid var(--border-light); color: var(--gray-light);
  font-family: var(--font); font-size: 0.82rem; font-weight: 600;
  padding: 10px 20px; border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.onboarding-btn:hover { color: var(--white); border-color: var(--gray); }
.onboarding-btn-next {
  background: var(--green) !important; color: var(--black) !important;
  border-color: var(--green) !important; font-weight: 700;
}
.onboarding-btn-next:hover { background: var(--green-dark) !important; }
.onboarding-dots { display: flex; gap: 8px; }
.onboarding-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-light); transition: background 0.2s;
}
.onboarding-dot.active { background: var(--green); }
.onboarding-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--black);
  padding: 14px 32px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s; margin-bottom: 12px;
}
.onboarding-cta-btn:hover { background: var(--green-dark); color: var(--black); }
.onboarding-secondary {
  display: block; color: var(--gray); font-size: 0.8rem;
  cursor: pointer; background: none; border: none; font-family: var(--font);
  margin: 0 auto; transition: color 0.2s;
}
.onboarding-secondary:hover { color: var(--white); }

/* ===== FOOTER ===== */
footer {
  background: var(--black-deep);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p { font-size: 0.8rem; color: var(--gray); margin-top: 6px; }

.footer-links { display: flex; gap: 24px; }

.footer-links a { color: var(--gray); font-size: 0.8rem; font-weight: 500; }
.footer-links a:hover { color: var(--white); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .feature-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Mobile nav CSS is in /components/nav.css — do NOT duplicate here */

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero p { font-size: 0.95rem; }
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-right { width: 100%; }

  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-desc { font-size: 0.9rem; }

  .feature-strip { padding: 28px 0; }
  .feature-strip-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .modules-section { padding: 56px 0; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .onboarding-modal { padding: 36px 24px 24px; }

  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* On mobile, show content immediately — don't wait for scroll animation */
@media (max-width: 768px) {
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .hero { padding: 88px 0 48px; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 0.9rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .feature-strip-grid { grid-template-columns: 1fr; }
  #liveStatsGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  .modules-section { padding: 44px 0; }
  .modules-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-card { padding: 20px; }

  .section-title { font-size: 1.4rem; }

  .onboarding-modal { padding: 28px 16px 20px; }
  .onboarding-slide h2 { font-size: 1.1rem; }
  .onboarding-steps { gap: 8px; }
  .onboarding-step { padding: 10px 12px; }
}

/* ── MODULE CARDS ─────────────────────────────────────────────── */
.modules-section { padding: 80px 0; background: var(--black); }
.modules-header { margin-bottom: 40px; }
.modules-header .section-label { margin-bottom: 12px; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.module-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  animation: cardReveal 400ms ease forwards;
  opacity: 0;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,230,118,0.15);
  border-color: rgba(0,230,118,0.2);
}
.module-card:nth-child(1) { animation-delay: 0ms; }
.module-card:nth-child(2) { animation-delay: 100ms; }
.module-card:nth-child(3) { animation-delay: 200ms; }
.module-card:nth-child(4) { animation-delay: 300ms; }
.module-card:nth-child(5) { animation-delay: 400ms; }
.module-card:nth-child(6) { animation-delay: 500ms; }
.mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.mc-icon { font-size: 1.75rem; line-height: 1; }
.mc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.mc-badge--beginner     { background: rgba(0,230,118,0.15); color: #00E676; }
.mc-badge--intermediate { background: rgba(245,197,24,0.15); color: #F5C518; }
.mc-badge--advanced     { background: rgba(255,68,68,0.15);  color: #FF4444; }
.mc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}
.mc-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.mc-time {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
}
.mc-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.mc-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.mc-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 600ms ease;
}
.mc-pct {
  font-size: 0.72rem;
  color: var(--gray);
  min-width: 28px;
  text-align: right;
}
.mc-cta {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  margin-top: 6px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  box-sizing: border-box;
}
.mc-cta--start {
  background: var(--green);
  color: var(--black);
  border: 1px solid var(--green);
}
.mc-cta--start:hover { background: var(--green-dark); border-color: var(--green-dark); }
.mc-cta--continue {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.mc-cta--continue:hover { background: var(--green-muted); }
.mc-cta--review {
  background: transparent;
  color: var(--gray);
  border: 1px solid #333;
}
.mc-cta--review:hover { border-color: #555; color: var(--gray-light); }
@media (max-width: 768px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-overlay.open { align-items: flex-start; padding: 24px 0 40px; }
  .auth-card { margin: 0 16px; padding: 32px 24px; }
}
@media (max-width: 480px) {
  .modules-grid { grid-template-columns: 1fr; }
  .modules-section { padding: 56px 0; }
}
/* ── END MODULE CARDS ─────────────────────────────────────────── */

/* ── PACK OPENING ──────────────────────────────────────────── */
.pack-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pack-x-btn {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.pack-x-btn:hover { background: rgba(255,255,255,0.14); }
.pack-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.the-pack { position: relative; width: 160px; height: 260px; }
.pack-bg {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: linear-gradient(160deg, #0b2e1c 0%, #0c1d0f 45%, #060f08 100%);
  border: 1px solid #00E676;
  box-shadow: 0 0 40px rgba(0,230,118,0.25), inset 0 0 30px rgba(0,230,118,0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pack-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
}
.pack-tear-line {
  position: absolute; top: 28%; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, #00E676 0, #00E676 5px, transparent 5px, transparent 10px);
  opacity: 0.35;
}
.pack-logo-area {
  display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1;
}
.pack-name { font-size: 0.82rem; font-weight: 800; color: #00E676; letter-spacing: 0.12em; }
.pack-type { font-size: 0.52rem; color: rgba(0,230,118,0.55); letter-spacing: 0.16em; font-weight: 600; }
.pack-count-badge {
  position: absolute; bottom: 12px;
  font-size: 0.48rem; color: rgba(0,230,118,0.4); letter-spacing: 0.14em; font-weight: 600;
}
.open-pack-btn {
  background: #00E676; color: #000; border: none;
  padding: 14px 40px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 0 24px rgba(0,230,118,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: var(--font);
}
.open-pack-btn:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,230,118,0.65); }
.open-pack-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.cards-phase { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.pick-card-hint { color: rgba(255,255,255,0.45); font-size: 0.8rem; letter-spacing: 0.04em; }
.cards-fan { position: relative; width: 420px; height: 220px; }
.pack-card {
  position: absolute; width: 130px; height: 190px;
  left: 50%; top: 50%; margin-left: -65px; margin-top: -95px;
  cursor: pointer; transform-origin: bottom center;
}
.pack-card-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  border-radius: 10px;
}
.pack-card.flipped .pack-card-inner { transform: rotateY(180deg); }
.pack-card-front, .pack-card-back {
  position: absolute; inset: 0; border-radius: 10px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.pack-card-back {
  background: linear-gradient(160deg, #0b2e1c 0%, #060f08 100%);
  border: 1px solid #00E676; box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
}
.pack-card-front {
  transform: rotateY(180deg);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 36px rgba(0,0,0,0.7);
  display: flex; flex-direction: column;
  padding: 14px 11px 12px; gap: 5px; overflow: hidden; background: #111;
}
.card-color-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 10px 10px 0 0; }
.card-icon-wrap { font-size: 1.9rem; text-align: center; margin-top: 10px; }
.card-title-text { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-align: center; line-height: 1.25; margin-top: 2px; }
.card-body-text { font-size: 0.575rem; color: rgba(255,255,255,0.62); line-height: 1.5; text-align: center; flex: 1; }
.card-type-tag { font-size: 0.48rem; letter-spacing: 0.1em; text-align: center; opacity: 0.5; font-weight: 600; }
.claim-btn {
  background: #00E676; color: #000; border: none;
  padding: 14px 40px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.03em; box-shadow: 0 0 24px rgba(0,230,118,0.45);
  transition: transform 0.15s; font-family: var(--font);
}
.claim-btn:hover { transform: translateY(-2px); }
@media (max-width: 480px) {
  .cards-fan { width: 300px; height: 180px; }
  .pack-card { width: 95px; height: 140px; margin-left: -47px; margin-top: -70px; }
}
/* ── END PACK OPENING ──────────────────────────────────────── */

/* ── DECISION TREE ──────────────────────────────────────── */
.dt-node {
  display:flex;flex-direction:column;align-items:center;gap:4px;
  background:var(--surface);border:1px solid var(--border);border-radius:10px;
  padding:12px 24px;cursor:pointer;font-family:var(--font);font-size:0.82rem;
  font-weight:600;color:var(--white);transition:all 0.2s;min-width:120px;
}
.dt-node:hover { border-color:var(--green);transform:translateY(-2px); }
.dt-node.active { border-color:var(--green);background:rgba(0,230,118,0.08);color:var(--green); }
.dt-consumer { border-color:rgba(245,197,24,0.3); }
.dt-consumer:hover,.dt-consumer.active { border-color:#F5C518;background:rgba(245,197,24,0.08);color:#F5C518; }
.dt-nonconsumer { border-color:rgba(0,200,150,0.3); }
.dt-nonconsumer:hover,.dt-nonconsumer.active { border-color:#00C896;background:rgba(0,200,150,0.08);color:#00C896; }
.dt-line { width:2px;height:20px;background:var(--border);margin:0 auto; }
.dt-question { font-size:0.72rem;color:var(--gray);text-transform:uppercase;letter-spacing:0.1em;margin-bottom:10px;text-align:center; }
.dt-level { animation:dtFadeIn 0.3s ease; }
@keyframes dtFadeIn { from{opacity:0;transform:translateY(-8px);} to{opacity:1;transform:translateY(0);} }
.dt-segment {
  background:var(--surface);border:1px solid var(--border);border-radius:12px;
  padding:16px 20px;cursor:pointer;transition:all 0.2s;width:220px;
}
.dt-segment:hover { transform:translateY(-2px);box-shadow:0 4px 20px rgba(0,0,0,0.3); }
.dt-seg-gold { border-left:3px solid #F5C518; }
.dt-seg-gold:hover { border-color:#F5C518; }
.dt-seg-teal { border-left:3px solid #00C896; }
.dt-seg-teal:hover { border-color:#00C896; }
.dt-seg-num { font-family:var(--mono);font-size:0.65rem;color:var(--gray);letter-spacing:0.1em;margin-bottom:4px; }
.dt-seg-title { font-size:0.9rem;font-weight:700;color:var(--white);margin-bottom:2px; }
.dt-seg-sub { font-size:0.7rem;color:var(--gray); }
.dt-seg-detail {
  display:none;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);
  font-size:0.78rem;color:var(--gray-light);line-height:1.65;
}
.dt-seg-detail p { margin-bottom:10px; }
.dt-seg-detail p:last-child { margin-bottom:0; }
.dt-seg-detail strong { color:var(--white); }
.dt-segment.expanded { width:100%;max-width:460px; }
.dt-segment.expanded .dt-seg-detail { display:block; }
@media(max-width:600px){
  .dt-node{min-width:100px;padding:10px 16px;font-size:0.75rem;}
  .dt-segment{width:100%;}
}
