/* =============================================
   DESIGN TOKENS
============================================= */
:root {
  --bg-primary: #0a0b14;
  --bg-secondary: #0f1020;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-glow: rgba(99,102,241,0.4);

  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --cyan: #06b6d4;
  --purple: #a855f7;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gradient-main: linear-gradient(135deg, #6366f1, #a855f7, #06b6d4);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: rgba(10, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.brand-sub {
  color: var(--accent-light);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  display: block;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(99,102,241,0.15);
}

.nav-link.active {
  color: var(--accent-light);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.nav-user:hover { border-color: var(--accent); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.user-xp {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* =============================================
   PAGES
============================================= */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 68px;
}
.page.active { display: block; }

.page-header {
  padding: 4rem 2rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(99,102,241,0.15) 0%, transparent 70%);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.page-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* =============================================
   HERO
============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 30% 50%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 80% 30%, rgba(168,85,247,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 80%, rgba(6,182,212,0.08) 0%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.4;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  flex: 0 0 420px;
  height: 420px;
  animation: fadeIn 1s ease 0.5s both;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.float-card {
  position: absolute;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.float-card:hover { transform: scale(1.05); border-color: var(--accent); }

.fc-1 { top: 20%; left: 5%; animation: float1 4s ease-in-out infinite; background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(99,102,241,0.05)); border-color: rgba(99,102,241,0.4); }
.fc-2 { top: 45%; left: 50%; animation: float2 5s ease-in-out infinite; background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(168,85,247,0.05)); border-color: rgba(168,85,247,0.4); }
.fc-3 { top: 10%; left: 55%; animation: float3 4.5s ease-in-out infinite; background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(6,182,212,0.05)); border-color: rgba(6,182,212,0.4); }
.fc-4 { top: 68%; left: 10%; animation: float1 5.5s ease-in-out infinite; background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.05)); border-color: rgba(245,158,11,0.4); }
.fc-5 { top: 75%; left: 55%; animation: float2 3.5s ease-in-out infinite; background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.05)); border-color: rgba(16,185,129,0.4); }

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(2deg); }
}

/* =============================================
   SECTIONS
============================================= */
.section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-sub-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Features */
.features-section { background: var(--bg-secondary); }

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

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
}

/* Levels Timeline */
.levels-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.level-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.level-node:hover { transform: scale(1.1); }

.level-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}

.level-badge.active-level {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow);
}

.level-badge.gold {
  background: var(--gradient-gold);
  border-color: transparent;
  color: #7c3000;
  box-shadow: 0 0 20px rgba(245,158,11,0.4);
}

.level-name {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.level-connector {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  opacity: 0.5;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:active::after { opacity: 0.1; }

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.4);
}

.btn-outline:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--accent);
}

.btn-large { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* =============================================
   TEST PAGE
============================================= */
.test-intro-card {
  max-width: 600px;
  margin: 3rem auto;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.test-intro-icon { font-size: 4rem; margin-bottom: 1.5rem; display: block; }

.test-intro-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.test-intro-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.test-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.topic-tag {
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
}

.test-time {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Quiz Container */
.quiz-container {
  max-width: 700px;
  margin: 2rem auto;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-progress-info {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-card);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 50px;
  transition: width 0.5s ease;
  width: 0%;
}

.quiz-level-badge {
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.4);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  animation: slideIn 0.4s ease;
}

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

.question-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-btn {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-weight: 500;
}

.option-btn:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.1);
  transform: translateX(4px);
}

.option-btn.correct {
  border-color: var(--green);
  background: rgba(16,185,129,0.15);
  color: var(--green);
}

.option-btn.wrong {
  border-color: var(--red);
  background: rgba(239,68,68,0.15);
  color: var(--red);
}

.option-btn:disabled { cursor: not-allowed; }

/* Quiz Feedback */
.quiz-feedback {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.feedback-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.feedback-text { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feedback-explanation { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.25rem; }

/* Results */
.test-results {
  max-width: 700px;
  margin: 2rem auto;
  animation: fadeIn 0.5s ease;
}

.results-header {
  text-align: center;
  padding: 3rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
}

.results-trophy { font-size: 4rem; margin-bottom: 1rem; display: block; }

.results-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.results-desc { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

.results-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.breakdown-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.breakdown-value { font-size: 1.8rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.results-recommendation {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.results-recommendation h3 { margin-bottom: 1rem; font-size: 1.1rem; }

.rec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(99,102,241,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
}

.results-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   LEARN PAGE
============================================= */
.learn-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: fit-content;
}

.tab-btn {
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.tab-btn.active { background: var(--gradient-main); color: white; font-weight: 600; }

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.lesson-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.lesson-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.lesson-card:hover::before { transform: scaleX(1); }

.lesson-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.lesson-icon { font-size: 2rem; }

.lesson-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.lesson-level {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.level-a1 { background: rgba(16,185,129,0.2); color: #10b981; }
.level-a2 { background: rgba(6,182,212,0.2); color: #06b6d4; }
.level-b1 { background: rgba(99,102,241,0.2); color: #818cf8; }
.level-b2 { background: rgba(168,85,247,0.2); color: #c084fc; }
.level-c1 { background: rgba(245,158,11,0.2); color: #f59e0b; }

.lesson-xp {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

.lesson-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.lesson-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

.lesson-completed {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Lesson Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}

.lesson-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(239,68,68,0.2); color: var(--red); border-color: var(--red); }

/* Lesson Content Styles */
.lesson-modal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.lesson-modal-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.lesson-modal-header p { color: var(--text-secondary); }

.vocab-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vocab-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.vocab-item:hover { border-color: var(--accent); }

.vocab-word { font-weight: 700; font-size: 1rem; color: var(--accent-light); }
.vocab-meaning { font-size: 0.9rem; color: var(--text-secondary); }
.vocab-example { font-size: 0.8rem; color: var(--text-muted); font-style: italic; grid-column: 1 / -1; padding-top: 4px; }

.vocab-pronounce {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.15);
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.vocab-pronounce:hover { background: rgba(99,102,241,0.3); }

.lesson-quiz-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.lesson-quiz-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }

.mini-quiz-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.mini-quiz-q { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }

.mini-options { display: flex; flex-wrap: wrap; gap: 8px; }

.mini-option {
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.mini-option:hover { border-color: var(--accent); background: rgba(99,102,241,0.1); }
.mini-option.correct { border-color: var(--green); background: rgba(16,185,129,0.15); color: var(--green); }
.mini-option.wrong { border-color: var(--red); background: rgba(239,68,68,0.15); color: var(--red); }
.mini-option:disabled { cursor: not-allowed; }

/* =============================================
   CAREER PAGE
============================================= */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.career-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
}

.career-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.career-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.career-icon { font-size: 2rem; }
.career-card h3 { font-size: 1.1rem; font-weight: 700; }
.career-card > p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }

/* CV Tips */
.cv-tips { margin-bottom: 1.5rem; }
.tip-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; display: block; }

.words-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.word-chip {
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  transition: var(--transition);
}

.word-chip:hover { background: rgba(99,102,241,0.25); transform: scale(1.05); }

/* Interview Questions */
.interview-questions { margin-bottom: 1.5rem; }

.interview-q-item {
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.interview-q-item:hover { border-color: var(--accent); color: var(--text-primary); }

/* LinkedIn Tips */
.linkedin-tips { margin-bottom: 1.5rem; }

.li-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.check { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Email */
.email-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.email-cat-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.email-cat-btn:hover, .email-cat-btn.active { border-color: var(--accent); color: var(--accent-light); background: rgba(99,102,241,0.1); }

.email-display {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-family: monospace;
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}

.email-display.visible { display: block; animation: fadeIn 0.3s ease; }

/* Interview Modal */
.interview-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  animation: slideUp 0.3s ease;
}

.interview-q-display {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.interview-q-display h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.4; }

.sample-answer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sample-answer h4 { font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.sample-answer p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }
.sample-answer strong { color: var(--accent-light); }

.key-phrases { margin-bottom: 1.5rem; }
.key-phrases h4 { font-size: 13px; font-weight: 600; color: var(--cyan); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.phrase-list { display: flex; flex-wrap: wrap; gap: 8px; }
.phrase { padding: 6px 14px; border-radius: 50px; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25); font-size: 13px; color: var(--cyan); }

/* =============================================
   PROGRESS PAGE
============================================= */
.progress-overview { margin-bottom: 3rem; }

.progress-main-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.user-level-display {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.level-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(99,102,241,0.5);
  flex-shrink: 0;
}

.level-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.level-info p { color: var(--text-secondary); }

.xp-bar-section { }
.xp-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }

.xp-bar {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 50px;
  transition: width 1s ease;
  width: 0%;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

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

.stat-icon { font-size: 1.75rem; margin-bottom: 8px; display: block; }
.stat-val { font-size: 2rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* Achievements */
.achievements-section, .activity-section { margin-bottom: 3rem; }

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.achievement-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.achievement-badge.unlocked {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,191,36,0.05));
}

.achievement-badge.unlocked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(245,158,11,0.15), transparent);
}

.achievement-badge.locked { opacity: 0.4; filter: grayscale(0.5); }

.ach-icon { font-size: 2.5rem; margin-bottom: 8px; display: block; }
.ach-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ach-desc { font-size: 11px; color: var(--text-muted); }

/* Activity */
.activity-list { display: flex; flex-direction: column; gap: 8px; }

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.activity-icon { font-size: 1.25rem; flex-shrink: 0; }
.activity-text { flex: 1; font-size: 14px; }
.activity-xp { font-size: 13px; color: var(--gold); font-weight: 600; }
.activity-time { font-size: 11px; color: var(--text-muted); }

.activity-empty { color: var(--text-muted); font-size: 14px; text-align: center; padding: 2rem; }

/* =============================================
   TOAST
============================================= */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(16,185,129,0.15);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  z-index: 9999;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease;
  box-shadow: 0 0 20px rgba(16,185,129,0.3);
}

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

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.7); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: 6rem 2rem 3rem; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .options-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .career-grid { grid-template-columns: 1fr; }
  .results-breakdown { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .container { padding: 1rem; }
  .hero { padding: 5rem 1.25rem 2rem; }
  .test-intro-card { padding: 2rem 1.5rem; }
  .quiz-container { margin: 1rem auto; }
  .question-card { padding: 1.5rem; }
  .levels-timeline { gap: 0; }
  .level-connector { width: 25px; }
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .wordmatch-grid { grid-template-columns: 1fr; }
}

/* =============================================
   NAV EXTRAS — Mobile, Sound, User
============================================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.sound-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sound-toggle:hover { border-color: var(--accent); background: rgba(99,102,241,0.1); }

.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 22px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 900px) {
  .hamburger-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .nav-user-info { display: none; }
}

/* =============================================
   GAMES
============================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.games-grid-home { margin-bottom: 0; }

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.game-card:hover::before { opacity: 1; }

.game-card-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; position: relative; z-index: 1; }
.game-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.game-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 1rem; position: relative; z-index: 1; }

.game-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.game-xp-badge {
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.game-best { font-size: 12px; color: var(--text-muted); }

.game-play-area {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.3s ease;
}

.game-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.game-progress-text { font-size: 14px; color: var(--text-secondary); font-weight: 600; margin-left: auto; }

.level-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
}

.combo-badge {
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.4);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
}

.daily-streak-badge {
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
}

/* Flashcards */
.flashcard-scene {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.flashcard {
  width: 100%;
  max-width: 480px;
  height: 280px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.flashcard.flipped { transform: rotateY(180deg); }

.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
}

.flashcard-front {
  background: var(--gradient-card);
  border-color: var(--border-glow);
  font-size: 1.8rem;
  font-weight: 800;
}

.flashcard-back {
  background: var(--bg-secondary);
  transform: rotateY(180deg);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.flash-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.flashcard-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Word Match */
.wordmatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.match-tile {
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-tile:hover { border-color: var(--accent); background: rgba(99,102,241,0.1); }
.match-tile.selected { border-color: var(--cyan); background: rgba(6,182,212,0.15); }
.match-tile.matched { border-color: var(--green); background: rgba(16,185,129,0.15); color: var(--green); opacity: 0.7; pointer-events: none; }

/* Typing */
.typing-game {
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
}

.typing-hint {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.typing-timer {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.typing-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.typing-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(99,102,241,0.2);
}

/* Memory */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.memory-card {
  aspect-ratio: 1;
  cursor: pointer;
  perspective: 600px;
}

.memory-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.memory-card.flipped .memory-inner { transform: rotateY(180deg); }

.memory-front, .memory-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
}

.memory-front {
  background: var(--gradient-main);
  color: white;
  font-size: 1.5rem;
}

.memory-back {
  background: var(--bg-card);
  transform: rotateY(180deg);
  color: var(--text-primary);
  line-height: 1.3;
}

.memory-card.matched .memory-inner { opacity: 0.5; pointer-events: none; }

/* Daily Challenge */
.daily-challenge-banner {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
}

.daily-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.daily-banner-icon { font-size: 2.5rem; }
.daily-banner-inner div { flex: 1; min-width: 200px; }
.daily-banner-inner strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.daily-banner-inner p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

.daily-challenge-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.daily-challenge-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.daily-sub { color: var(--text-secondary); margin-bottom: 1.5rem; }
.daily-q { font-size: 1.2rem; margin: 1.5rem 0; line-height: 1.5; }
.daily-done { color: var(--gold); margin-top: 1.5rem; font-weight: 600; }

.daily-section { padding: 2rem; }

.play-learn-section { background: var(--bg-secondary); }

/* Leaderboard */
.leaderboard-section { margin-top: 3rem; }

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-table tr:hover td { background: rgba(255,255,255,0.02); }

.leaderboard-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* Confetti & XP Popup */
.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  z-index: 9998;
  pointer-events: none;
  animation: confettiFall linear forwards;
  border-radius: 2px;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.xp-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 9999;
  pointer-events: none;
  animation: xpPop 1.5s ease forwards;
}

@keyframes xpPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  30% { opacity: 1; transform: translate(-50%, -60%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(1); }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  margin-top: 2rem;
}

.site-footer p { color: var(--text-secondary); font-size: 14px; margin-bottom: 6px; }
.site-footer strong { color: var(--accent-light); }
.footer-sub { font-size: 12px !important; color: var(--text-muted) !important; }

.hero-stats { flex-wrap: wrap; }
