/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #0d0f14;
  color: #e8eaf0;
  min-height: 100vh;
  overflow-x: hidden;
}
body.dark { background: #070810; }
body.light { background: #f5f6fa; color: #1a1c2e; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3 { font-family: 'Playfair Display', serif; }
.text-gold { color: #d4a953; }
code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1d27; }
::-webkit-scrollbar-thumb { background: #d4a953; border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; padding: 0 2rem;
  height: 64px;
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,169,83,0.2);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: #d4a953; flex: 0 0 auto; }
.brand-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 0.25rem; flex: 1; padding: 0 2rem; }
.nav-link {
  color: #9ea3b5; text-decoration: none; padding: 8px 14px;
  border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s; border: 1px solid transparent;
}
.nav-link:hover, .nav-link.active { color: #d4a953; background: rgba(212,169,83,0.1); border-color: rgba(212,169,83,0.2); }
.nav-actions { display: flex; align-items: center; gap: 1rem; position: relative; }
.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px; padding: 6px 14px 6px 8px;
  cursor: pointer; font-size: 0.875rem; transition: 0.2s;
}
.user-pill:hover { background: rgba(212,169,83,0.1); border-color: rgba(212,169,83,0.3); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #d4a953, #b8860b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #0d0f14;
}
.user-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: #1a1d27; border: 1px solid rgba(212,169,83,0.2);
  border-radius: 12px; min-width: 180px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.user-menu.show { display: block; animation: fadeDown 0.2s; }
.user-menu a {
  display: block; padding: 12px 16px; color: #ccc; text-decoration: none;
  font-size: 0.875rem; cursor: pointer; transition: 0.15s;
}
.user-menu a:hover { background: rgba(212,169,83,0.1); color: #d4a953; }
.user-menu hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); }
.btn-login {
  background: linear-gradient(135deg, #d4a953, #b8860b);
  color: #0d0f14; border: none; padding: 8px 18px;
  border-radius: 8px; font-weight: 600; cursor: pointer;
  font-size: 0.875rem; transition: 0.2s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,169,83,0.4); }
.hamburger { display: none; background: none; border: none; color: #d4a953; font-size: 1.4rem; cursor: pointer; }

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

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #d4a953, #b8860b);
  color: #0d0f14; border: none; padding: 12px 24px;
  border-radius: 10px; font-weight: 700; cursor: pointer;
  font-size: 0.9rem; transition: all 0.2s; letter-spacing: 0.3px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(212,169,83,0.4); }
.btn-primary.full { width: 100%; padding: 14px; font-size: 1rem; }
.btn-secondary {
  background: transparent; color: #d4a953;
  border: 1px solid rgba(212,169,83,0.5);
  padding: 12px 24px; border-radius: 10px; font-weight: 600;
  cursor: pointer; font-size: 0.9rem; transition: 0.2s;
}
.btn-secondary:hover { background: rgba(212,169,83,0.1); }
.btn-sm {
  background: rgba(255,255,255,0.08); color: #e8eaf0;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 14px; border-radius: 8px; font-size: 0.8rem;
  cursor: pointer; transition: 0.2s;
}
.btn-sm:hover { background: rgba(212,169,83,0.1); color: #d4a953; border-color: rgba(212,169,83,0.3); }
.btn-sm.danger:hover { background: rgba(231,76,60,0.1); color: #e74c3c; border-color: rgba(231,76,60,0.3); }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 64px);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 4rem 5rem; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
}
.orb1 { width: 500px; height: 500px; background: #d4a953; top: -100px; left: -100px; animation: float1 8s ease-in-out infinite; }
.orb2 { width: 400px; height: 400px; background: #3b5bdb; bottom: -100px; right: 0; animation: float2 10s ease-in-out infinite; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(212,169,83,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,169,83,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(212,169,83,0.15); border: 1px solid rgba(212,169,83,0.3);
  border-radius: 50px; font-size: 0.8rem; color: #d4a953; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15; margin-bottom: 1.5rem; color: #f0f2f8; }
.hero-sub { font-size: 1.1rem; color: #8a8fa8; line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.4rem; font-weight: 700; color: #d4a953; font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.75rem; color: #6b7280; }
.stat-div { color: rgba(255,255,255,0.15); font-size: 1.5rem; }

/* HERO VISUAL */
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.mockup-card {
  background: rgba(25,28,40,0.95);
  border: 1px solid rgba(212,169,83,0.25);
  border-radius: 20px; padding: 1.5rem;
  width: 100%; max-width: 380px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: float1 6s ease-in-out infinite;
}
.mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mock-course { background: rgba(212,169,83,0.15); color: #d4a953; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.mock-time { font-size: 0.8rem; color: #6b7280; font-family: monospace; }
.mock-q { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.75rem; }
.mock-question { font-size: 0.9rem; color: #e0e3ef; line-height: 1.5; margin-bottom: 1rem; }
.mock-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.mock-opt {
  padding: 8px 12px; border-radius: 8px; font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.08); color: #9ea3b5; cursor: pointer; transition: 0.2s;
}
.mock-opt.correct { background: rgba(39,174,96,0.15); border-color: rgba(39,174,96,0.4); color: #27ae60; }
.mock-bar { background: rgba(255,255,255,0.08); border-radius: 4px; height: 4px; }
.mock-fill { background: linear-gradient(90deg, #d4a953, #b8860b); height: 100%; border-radius: 4px; transition: width 1s; }

/* ===== COURSES SECTION ===== */
.courses-section { padding: 5rem; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: #6b7280; margin-bottom: 3rem; }
.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.course-card {
  background: rgba(25,28,40,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: all 0.3s; cursor: pointer;
}
.course-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.course-card.ca::before { background: linear-gradient(90deg, #d4a953, #f39c12); }
.course-card.cs::before { background: linear-gradient(90deg, #3b5bdb, #7048e8); }
.course-card.cma::before { background: linear-gradient(90deg, #0fb884, #0dcfaa); }
.course-card:hover { transform: translateY(-6px); border-color: rgba(212,169,83,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.course-badge {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: linear-gradient(135deg, #d4a953, #b8860b);
  color: #0d0f14; padding: 3px 10px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700;
}
.course-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.course-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.course-card p { font-size: 0.85rem; color: #6b7280; margin-bottom: 1rem; }
.course-levels { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.level-tag { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; color: #9ea3b5; }
.course-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: #6b7280; margin-bottom: 1.5rem; }
.course-btn { background: transparent; border: 1px solid rgba(212,169,83,0.4); color: #d4a953; padding: 8px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: 0.2s; }
.course-btn:hover { background: rgba(212,169,83,0.1); }

/* ===== FEATURES ===== */
.features-section { padding: 5rem; background: rgba(0,0,0,0.3); }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.feature-card {
  background: rgba(25,28,40,0.6); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 1.5rem; transition: 0.3s;
}
.feature-card:hover { border-color: rgba(212,169,83,0.2); transform: translateY(-3px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.feature-card h4 { font-family: 'DM Sans', sans-serif; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.95rem; }
.feature-card p { font-size: 0.82rem; color: #6b7280; line-height: 1.6; }

/* ===== AUTH ===== */
.auth-container { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card {
  background: rgba(25,28,40,0.95); border: 1px solid rgba(212,169,83,0.2);
  border-radius: 24px; padding: 2.5rem; width: 100%; max-width: 460px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.auth-brand { text-align: center; color: #d4a953; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.auth-card h2 { text-align: center; font-size: 1.75rem; margin-bottom: 0.5rem; }
.auth-sub { text-align: center; color: #6b7280; margin-bottom: 2rem; font-size: 0.9rem; }
.auth-switch { text-align: center; color: #6b7280; font-size: 0.875rem; margin-top: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 600; color: #9ea3b5; }
.form-input {
  width: 100%; padding: 11px 14px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  color: #e8eaf0; font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  transition: 0.2s; outline: none;
}
.form-input:focus { border-color: rgba(212,169,83,0.5); background: rgba(212,169,83,0.05); }
.form-input option { background: #1a1d27; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.85rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #9ea3b5; }
.link-text { color: #d4a953; text-decoration: none; cursor: pointer; }
.link-text:hover { text-decoration: underline; }

/* ===== DASHBOARD ===== */
.dash-container { max-width: 1400px; margin: 0 auto; padding: 2.5rem; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.dash-header h2 { font-size: 1.75rem; }
.dash-sub { color: #6b7280; font-size: 0.9rem; margin-top: 4px; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-box {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 1.5rem; display: flex; gap: 1rem; align-items: center;
}
.stat-icon { font-size: 2rem; }
.stat-info { display: flex; flex-direction: column; }
.stat-big { font-size: 1.75rem; font-weight: 700; color: #d4a953; font-family: 'Playfair Display', serif; }
.stat-lbl { font-size: 0.78rem; color: #6b7280; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dash-panel {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 1.5rem;
}
.panel-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; font-family: 'DM Sans', sans-serif; color: #e0e3ef; }
.activity-list { display: flex; flex-direction: column; gap: 0.75rem; }
.activity-item { display: flex; align-items: center; gap: 0.75rem; }
.act-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.act-icon.green { background: rgba(39,174,96,0.2); color: #27ae60; }
.act-icon.red { background: rgba(231,76,60,0.2); color: #e74c3c; }
.act-info { flex: 1; display: flex; flex-direction: column; }
.act-title { font-size: 0.85rem; font-weight: 500; }
.act-meta { font-size: 0.75rem; color: #6b7280; }
.act-score { font-size: 0.8rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.act-score.good { background: rgba(39,174,96,0.15); color: #27ae60; }
.act-score.bad { background: rgba(231,76,60,0.15); color: #e74c3c; }
.act-score.avg { background: rgba(243,156,18,0.15); color: #f39c12; }
.subject-bars { display: flex; flex-direction: column; gap: 0.875rem; }
.sub-bar-item { display: grid; grid-template-columns: 140px 1fr 40px; align-items: center; gap: 0.75rem; }
.sub-name { font-size: 0.82rem; color: #9ea3b5; }
.bar-track { height: 7px; background: rgba(255,255,255,0.07); border-radius: 50px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #d4a953, #b8860b); border-radius: 50px; transition: width 1s; }
.bar-fill.low { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.bar-fill.mid { background: linear-gradient(90deg, #f39c12, #e67e22); }
.sub-pct { font-size: 0.8rem; font-weight: 600; color: #d4a953; }
.recommend-list { display: flex; flex-direction: column; gap: 0.75rem; }
.rec-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: rgba(255,255,255,0.04); border-radius: 12px; cursor: pointer; transition: 0.2s; }
.rec-item:hover { background: rgba(212,169,83,0.08); }
.rec-icon { font-size: 1.25rem; }
.rec-info { flex: 1; display: flex; flex-direction: column; }
.rec-title { font-size: 0.85rem; font-weight: 500; }
.rec-sub { font-size: 0.75rem; color: #6b7280; }
.rec-btn { background: rgba(212,169,83,0.15); color: #d4a953; border: none; padding: 5px 12px; border-radius: 6px; font-size: 0.78rem; cursor: pointer; font-weight: 600; }
.streak-panel { display: flex; flex-direction: column; align-items: center; text-align: center; }
.streak-big { font-size: 3rem; font-weight: 900; color: #d4a953; font-family: 'Playfair Display', serif; margin: 0.5rem 0; }
.streak-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin: 1rem 0; width: 100%; max-width: 280px; }
.cal-day { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,0.06); }
.cal-day.done { background: rgba(212,169,83,0.6); }
.cal-day.today { background: #d4a953; box-shadow: 0 0 8px rgba(212,169,83,0.6); }
.streak-msg { font-size: 0.82rem; color: #6b7280; margin-top: 0.5rem; }

/* ===== PRACTICE PAGE ===== */
.practice-container { max-width: 1200px; margin: 0 auto; padding: 2.5rem; }
.page-title { font-size: 2rem; margin-bottom: 0.5rem; }
.page-sub { color: #6b7280; margin-bottom: 2rem; }
.filter-panel {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 1.75rem; margin-bottom: 2.5rem;
}
.filter-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1rem; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 600; color: #9ea3b5; margin-bottom: 0.5rem; }
.filter-actions { display: flex; gap: 1rem; margin-top: 0.5rem; }
.section-title2 { font-size: 1.4rem; margin-bottom: 1.5rem; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.subj-card {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 1.25rem; cursor: pointer; transition: 0.3s;
}
.subj-card:hover { border-color: rgba(212,169,83,0.35); transform: translateY(-3px); background: rgba(212,169,83,0.05); }
.subj-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.subj-card-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.subj-card-meta { font-size: 0.75rem; color: #6b7280; }
.subj-card-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 3px; margin-top: 0.75rem; overflow: hidden; }
.subj-card-prog { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #d4a953, #b8860b); }

/* ===== QUIZ AREA ===== */
.quiz-area { max-width: 1300px; margin: 0 auto; padding: 2rem; }
.quiz-header {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(25,28,40,0.9); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 1rem 1.5rem; margin-bottom: 1.25rem;
}
.quiz-info { display: flex; align-items: center; gap: 0.75rem; }
.quiz-tag { background: rgba(212,169,83,0.15); color: #d4a953; padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 700; }
.quiz-subject { font-weight: 600; font-size: 0.95rem; }
.quiz-timer { font-family: 'JetBrains Mono', monospace; font-size: 1.25rem; color: #d4a953; background: rgba(212,169,83,0.1); padding: 6px 16px; border-radius: 8px; }
.quiz-timer.danger { color: #e74c3c; background: rgba(231,76,60,0.1); animation: pulse 1s infinite; }
.quiz-actions { display: flex; gap: 0.75rem; }
.quiz-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.prog-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 50px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, #d4a953, #b8860b); border-radius: 50px; transition: width 0.4s; }
#progText { font-size: 0.82rem; color: #6b7280; white-space: nowrap; }
.quiz-body { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; }
.question-nav {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 1rem; max-height: 600px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; align-content: start;
}
.q-bubble {
  aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; cursor: pointer; transition: 0.2s; border: 1px solid transparent;
}
.q-bubble:hover { border-color: rgba(212,169,83,0.4); }
.q-bubble.current { background: rgba(212,169,83,0.2); border-color: #d4a953; color: #d4a953; font-weight: 700; }
.q-bubble.answered { background: rgba(39,174,96,0.2); border-color: rgba(39,174,96,0.4); color: #27ae60; }
.q-bubble.bookmarked { background: rgba(59,91,219,0.2); border-color: rgba(59,91,219,0.4); color: #7394f5; }
.q-bubble.wrong { background: rgba(231,76,60,0.2); border-color: rgba(231,76,60,0.4); color: #e74c3c; }
.question-panel {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 2rem;
}
.q-meta { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.q-diff, .q-type { padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.q-diff { background: rgba(243,156,18,0.15); color: #f39c12; }
.q-type { background: rgba(59,91,219,0.15); color: #7394f5; }
.q-num { padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; color: #6b7280; background: rgba(255,255,255,0.06); margin-left: auto; }
.question-text { font-size: 1.05rem; line-height: 1.7; color: #e0e3ef; margin-bottom: 2rem; }
.options-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.option-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem; background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08); border-radius: 12px;
  cursor: pointer; transition: all 0.2s; font-size: 0.92rem; line-height: 1.5;
}
.option-item:hover { background: rgba(212,169,83,0.06); border-color: rgba(212,169,83,0.25); }
.option-item.selected { background: rgba(212,169,83,0.12); border-color: #d4a953; color: #f0e8d5; }
.option-item.correct { background: rgba(39,174,96,0.12); border-color: #27ae60; color: #c8f5d8; }
.option-item.wrong { background: rgba(231,76,60,0.12); border-color: #e74c3c; color: #fad4d4; }
.opt-letter {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.selected .opt-letter { background: #d4a953; color: #0d0f14; }
.correct .opt-letter { background: #27ae60; color: #fff; }
.wrong .opt-letter { background: #e74c3c; color: #fff; }
.answer-panel { background: rgba(39,174,96,0.08); border: 1px solid rgba(39,174,96,0.25); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.answer-correct { font-weight: 600; color: #27ae60; margin-bottom: 0.75rem; }
.answer-explanation { font-size: 0.88rem; color: #9ea3b5; line-height: 1.7; }
.quiz-nav-btns { display: flex; gap: 0.75rem; justify-content: flex-end; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.07); }

/* ===== RESULT ===== */
.result-area { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 64px); padding: 2rem; }
.result-card {
  background: rgba(25,28,40,0.95); border: 1px solid rgba(212,169,83,0.25);
  border-radius: 28px; padding: 3rem; max-width: 500px; width: 100%; text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.result-icon { font-size: 4rem; margin-bottom: 1rem; }
.result-card h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.result-score { font-size: 3rem; font-weight: 900; color: #d4a953; font-family: 'Playfair Display', serif; margin: 0.5rem 0; }
.result-pct { font-size: 1.5rem; color: #27ae60; font-weight: 700; margin-bottom: 2rem; }
.result-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.res-stat { display: flex; flex-direction: column; align-items: center; padding: 1rem; background: rgba(255,255,255,0.04); border-radius: 12px; }
.res-num { font-size: 1.5rem; font-weight: 700; color: #d4a953; }
.res-lbl { font-size: 0.72rem; color: #6b7280; margin-top: 2px; }
.result-btns { display: flex; flex-direction: column; gap: 0.75rem; }

/* ===== MOCK TESTS ===== */
.mock-container { max-width: 1200px; margin: 0 auto; padding: 2.5rem; }
.mock-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.mock-tab {
  padding: 8px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: #9ea3b5; cursor: pointer; transition: 0.2s; font-size: 0.875rem;
}
.mock-tab.active { background: rgba(212,169,83,0.15); border-color: rgba(212,169,83,0.4); color: #d4a953; }
.mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.mock-card {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 1.5rem; transition: 0.3s;
}
.mock-card:hover { border-color: rgba(212,169,83,0.25); transform: translateY(-3px); }
.mock-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.mock-card-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.badge-ca { background: rgba(212,169,83,0.15); color: #d4a953; }
.badge-cs { background: rgba(59,91,219,0.15); color: #7394f5; }
.badge-cma { background: rgba(15,184,132,0.15); color: #0fb884; }
.badge-free { background: rgba(39,174,96,0.15); color: #27ae60; }
.mock-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; }
.mock-card p { font-size: 0.82rem; color: #6b7280; margin-bottom: 1rem; }
.mock-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: #9ea3b5; margin-bottom: 1.25rem; }
.mock-meta span { display: flex; align-items: center; gap: 4px; }
.mock-attempts { font-size: 0.78rem; color: #6b7280; margin-bottom: 1rem; }
.mock-start { width: 100%; }

/* ===== ANALYTICS ===== */
.analytics-container { max-width: 1400px; margin: 0 auto; padding: 2.5rem; }
.analytics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.an-panel {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 1.5rem;
}
.an-panel.wide { grid-column: span 2; }
.an-panel h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; font-family: 'DM Sans', sans-serif; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-around; height: 160px; }
.bc-bar {
  width: 36px; background: linear-gradient(180deg, #d4a953, rgba(212,169,83,0.3));
  border-radius: 6px 6px 0 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding-bottom: 4px; transition: 0.3s;
  cursor: pointer;
}
.bc-bar:hover { background: linear-gradient(180deg, #f0c060, rgba(240,192,96,0.3)); }
.bc-bar span { font-size: 0.7rem; color: #9ea3b5; margin-top: 6px; transform: translateY(20px); }
.trend-nums { text-align: center; margin-bottom: 1rem; }
.trend-big { font-size: 3rem; font-weight: 900; color: #d4a953; display: block; font-family: 'Playfair Display', serif; }
.trend-up { color: #27ae60; font-size: 0.85rem; }
.sparkline { height: 60px; position: relative; display: flex; align-items: flex-end; }
.sp-point { width: 10px; height: 10px; background: #d4a953; border-radius: 50%; position: absolute; }
.donut-chart { position: relative; display: flex; justify-content: center; margin-bottom: 1rem; }
.donut { width: 120px; height: 120px; border-radius: 50%; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; width: 60px; height: 60px; background: #1a1d27; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center span { font-weight: 700; font-size: 0.9rem; }
.donut-center small { font-size: 0.6rem; color: #6b7280; }
.donut-legend { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.78rem; }
.dl.easy { color: #27ae60; }
.dl.mid { color: #f39c12; }
.dl.hard { color: #e74c3c; }
.heatmap { display: grid; grid-template-columns: repeat(10,1fr); gap: 4px; }
.hm-cell { aspect-ratio: 1; border-radius: 4px; cursor: pointer; transition: 0.2s; font-size: 0; }
.hm-cell:hover { transform: scale(1.2); }
.weak-list { display: flex; flex-direction: column; gap: 0.6rem; }
.weak-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.83rem; }
.weak-pct { font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 0.78rem; }
.weak-pct.low { background: rgba(231,76,60,0.15); color: #e74c3c; }
.weak-pct.mid { background: rgba(243,156,18,0.15); color: #f39c12; }
.time-stats { display: flex; flex-direction: column; gap: 1rem; }
.time-stat { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.85rem; }
.ts-num { font-weight: 700; color: #d4a953; }
.ts-lbl { color: #9ea3b5; }

/* ===== BOOKMARKS ===== */
.bookmarks-container { max-width: 900px; margin: 0 auto; padding: 2.5rem; }
.bookmark-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.bookmark-list { display: flex; flex-direction: column; gap: 1rem; }
.bookmark-item {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 1.25rem;
}
.bm-meta { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.bm-tag { padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; background: rgba(212,169,83,0.12); color: #d4a953; }
.bm-q { font-size: 0.92rem; margin-bottom: 0.75rem; line-height: 1.5; }
.bm-actions { display: flex; gap: 0.75rem; }

/* ===== PROFILE ===== */
.profile-container { max-width: 800px; margin: 0 auto; padding: 2.5rem; }
.profile-card {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(212,169,83,0.2);
  border-radius: 20px; padding: 2rem; display: flex; gap: 1.5rem;
  align-items: flex-start; margin-bottom: 2rem;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #d4a953, #b8860b);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #0d0f14; flex-shrink: 0;
}
.profile-info h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.profile-info p { color: #6b7280; font-size: 0.9rem; margin-bottom: 0.75rem; }
.profile-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge { padding: 4px 10px; background: rgba(212,169,83,0.12); border: 1px solid rgba(212,169,83,0.2); color: #d4a953; border-radius: 50px; font-size: 0.75rem; }
.profile-edit {
  background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 2rem;
}
.profile-edit h3 { margin-bottom: 1.5rem; font-family: 'DM Sans', sans-serif; font-size: 1.1rem; }

/* ===== SETTINGS ===== */
.settings-container { max-width: 900px; margin: 0 auto; padding: 2.5rem; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.set-panel { background: rgba(25,28,40,0.8); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 1.5rem; }
.set-panel h3 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.88rem; }
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: rgba(255,255,255,0.12); border-radius: 24px; cursor: pointer; transition: 0.3s; }
.slider::before { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; left: 3px; top: 3px; transition: 0.3s; }
.toggle input:checked + .slider { background: #d4a953; }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: rgba(25,28,40,0.95); border: 1px solid rgba(212,169,83,0.3);
  border-radius: 12px; padding: 14px 20px;
  font-size: 0.88rem; color: #e0e3ef;
  transform: translateY(100px); opacity: 0; transition: all 0.3s;
  z-index: 9999; max-width: 300px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9000; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal-box { background: #1a1d27; border: 1px solid rgba(212,169,83,0.25); border-radius: 20px; padding: 2rem; max-width: 420px; width: 90%; }
.modal-body { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ===== ANIMATIONS ===== */
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.page.active { animation: slideIn 0.3s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 2rem; }
  .hero-visual { display: none; }
  .courses-section, .features-section { padding: 3rem 2rem; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .analytics-grid { grid-template-columns: 1fr; }
  .an-panel.wide { grid-column: span 1; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(13,15,20,0.98); padding: 1rem; flex-direction: column; border-bottom: 1px solid rgba(212,169,83,0.2); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .course-grid, .features-grid { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .quiz-body { grid-template-columns: 1fr; }
  .question-nav { display: none; }
  .result-grid { grid-template-columns: repeat(2,1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
