/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Montserrat', sans-serif; 
  background: #0F1F36; 
  color: #E8ECF1; 
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === COLORS === */
:root {
  --navy: #0F1F36;
  --navy-light: #162C4E;
  --navy-card: #1A3350;
  --gold: #FDB529;
  --gold-hover: #FFD060;
  --gold-dim: rgba(253,181,41,0.12);
  --gold-border: rgba(253,181,41,0.15);
  --text: #E8ECF1;
  --text-muted: #B0C5D8;
  --text-dim: #8EA5BB;
  --text-dark: #728FA8;
  --white: #ffffff;
  --success: #4CAF50;
  --danger: #EF5350;
}

/* === NAV === */
.nav { 
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(15,31,54,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: baseline; gap: 0; text-decoration: none; }
.nav-logo .white { color: var(--white); font-weight: 800; font-size: 18px; }
.nav-logo .gold { color: var(--gold); font-weight: 800; font-size: 18px; font-style: italic; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { 
  background: var(--gold); color: var(--navy); padding: 8px 20px; border-radius: 6px;
  font-weight: 700; font-size: 14px; transition: all 0.2s; cursor: pointer; border: none;
}
.nav-cta:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; border-radius: 2px; }
.mobile-menu { display: none; }

/* === HERO === */
.hero {
  padding: 140px 40px 90px; text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(253,181,41,0.05) 0%, transparent 70%);
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: var(--gold-dim); color: var(--gold);
  padding: 6px 18px; border-radius: 20px; font-size: 12px; font-weight: 700;
  margin-bottom: 24px; letter-spacing: 1.5px; text-transform: uppercase;
}
.hero h1 { font-size: 48px; font-weight: 900; line-height: 1.12; margin-bottom: 18px; color: var(--white); }
.hero h1 .gold { color: var(--gold); }
.hero p { font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 550px; margin: 0 auto 36px; }
.hero-arrow { 
  font-size: 40px; color: var(--gold); animation: bounce 2s infinite; display: inline-flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(253,181,41,0.4);
  background: rgba(253,181,41,0.08);
  text-decoration: none; text-shadow: 0 0 16px rgba(253,181,41,0.4);
  transition: all 0.3s; margin-top: 8px;
}
.hero-arrow:hover { 
  text-shadow: 0 0 28px rgba(253,181,41,0.7); 
  background: rgba(253,181,41,0.15);
  border-color: rgba(253,181,41,0.6);
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* === SECTIONS === */
.section-label { 
  text-transform: uppercase; font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 2.5px; margin-bottom: 12px;
}
.section-title { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 48px; }

/* === COURSES === */
.courses { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }
.courses-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.course-card {
  background: linear-gradient(135deg, var(--navy-card) 0%, var(--navy-light) 100%);
  border: 1px solid var(--gold-border);
  border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 280px 1fr; 
  transition: all 0.3s; position: relative;
}
.course-card:hover { border-color: rgba(253,181,41,0.35); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.course-card.featured { border-color: rgba(253,181,41,0.3); }
.course-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
}

.course-img {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; position: relative; overflow: hidden;
}
.course-img-icon { font-size: 64px; }
.overlay-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 14px; border-radius: 4px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
}
.badge-new { background: var(--gold); color: var(--navy); }
.badge-soon { background: rgba(255,255,255,0.12); color: var(--text-muted); }

.course-info { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.course-info h3 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.course-info .subtitle { font-size: 13px; color: var(--gold); font-weight: 700; margin-bottom: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.course-info p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.course-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.course-meta .tag { font-size: 13px; color: var(--text-dim); }
.course-actions { display: flex; gap: 12px; align-items: center; }

.course-btn {
  display: inline-block; padding: 11px 26px; border-radius: 8px;
  font-weight: 700; font-size: 14px; transition: all 0.2s; text-align: center;
  cursor: pointer; border: none; font-family: 'Montserrat', sans-serif;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(253,181,41,0.2); }
.btn-secondary:hover { background: rgba(253,181,41,0.2); }
.btn-disabled { background: rgba(255,255,255,0.05); color: var(--text-dim); cursor: default; }

/* === TRUST BAR === */
.trust-bar {
  padding: 70px 40px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
}
.trust-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.trust-stats { display: flex; justify-content: center; gap: 60px; margin-bottom: 32px; flex-wrap: wrap; }
.stat-item .num { font-size: 40px; font-weight: 900; color: var(--gold); }
.stat-item .label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.trust-text { font-size: 15px; color: var(--text-muted); line-height: 1.8; max-width: 600px; margin: 0 auto 24px; }
.trust-text strong { color: var(--white); }
.trust-link { color: var(--gold); font-weight: 600; font-size: 14px; }
.trust-link:hover { text-decoration: underline; }

/* === BACK SECTION === */
.back-section {
  padding: 40px; text-align: center;
  border-top: 1px solid rgba(253,181,41,0.08);
}
.back-section a { 
  color: var(--text-dim); font-size: 14px; 
  display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.back-section a:hover { color: var(--gold); }

/* === FOOTER === */
.footer { padding: 32px 40px; text-align: center; border-top: 1px solid rgba(255,255,255,0.04); }
.footer p { font-size: 12px; color: var(--text-dark); }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--gold); }

/* === AUTH PAGES === */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.auth-card {
  background: var(--navy-card); border: 1px solid var(--gold-border);
  border-radius: 16px; padding: 40px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-card h2 { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.auth-card .auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: var(--white); font-size: 14px;
  font-family: 'Montserrat', sans-serif; transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.form-group input::placeholder { color: var(--text-dark); }

.auth-btn {
  width: 100%; padding: 13px; border-radius: 8px; border: none;
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: 15px;
  font-family: 'Montserrat', sans-serif; cursor: pointer; transition: all 0.2s;
  margin-top: 8px;
}
.auth-btn:hover { background: var(--gold-hover); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-dim); }
.auth-footer a { color: var(--gold); font-weight: 600; }

.auth-error { 
  background: rgba(239,83,80,0.1); border: 1px solid rgba(239,83,80,0.3);
  color: var(--danger); padding: 10px 14px; border-radius: 8px; 
  font-size: 13px; margin-bottom: 16px; display: none;
}
.auth-success {
  background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.3);
  color: var(--success); padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-bottom: 16px; display: none;
}

/* === DASHBOARD === */
.dashboard { padding: 90px 40px 60px; max-width: 900px; margin: 0 auto; }
.dashboard-header { margin-bottom: 40px; }
.dashboard-header h1 { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.dashboard-header p { font-size: 14px; color: var(--text-muted); }

.progress-bar-container {
  background: rgba(255,255,255,0.06); border-radius: 8px; height: 10px; margin: 20px 0;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  border-radius: 8px; transition: width 0.5s ease;
}
.progress-text { font-size: 13px; color: var(--text-dim); margin-bottom: 32px; }

/* Module accordion */
.module {
  background: var(--navy-card); border: 1px solid var(--gold-border);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden;
  transition: border-color 0.2s;
}
.module:hover { border-color: rgba(253,181,41,0.25); }

.module-header {
  padding: 18px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.2s;
}
.module-header:hover { background: rgba(255,255,255,0.02); }
.module-header .module-num {
  background: var(--gold-dim); color: var(--gold);
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-right: 16px; flex-shrink: 0;
}
.module-header .module-title { flex: 1; }
.module-header .module-title h3 { font-size: 15px; font-weight: 700; color: var(--white); }
.module-header .module-title span { font-size: 12px; color: var(--text-dim); }
.module-header .module-chevron {
  color: var(--text-dim); font-size: 18px; transition: transform 0.3s; margin-left: 12px;
}
.module.open .module-chevron { transform: rotate(180deg); }
.module-header .module-progress {
  font-size: 12px; color: var(--gold); font-weight: 600; margin-right: 12px;
}

.module-lessons {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  border-top: 1px solid transparent;
}
.module.open .module-lessons { border-top-color: rgba(255,255,255,0.05); }

.lesson {
  padding: 14px 24px 14px 72px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.2s; cursor: pointer;
}
.lesson:last-child { border-bottom: none; }
.lesson:hover { background: rgba(253,181,41,0.04); }

.lesson-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.lesson-check {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s; font-size: 11px;
}
.lesson-check.completed { background: var(--success); border-color: var(--success); color: var(--white); }
.lesson-title { font-size: 14px; color: var(--text-muted); }
.lesson.completed .lesson-title { color: var(--text-dim); }

.lesson-meta { display: flex; gap: 8px; align-items: center; }
.lesson-meta .has-video { font-size: 12px; color: var(--text-dim); }
.lesson-meta .has-pdf { font-size: 12px; color: var(--text-dim); }

/* === LESSON VIEW === */
.lesson-page { padding: 80px 40px 60px; max-width: 900px; margin: 0 auto; }
.lesson-breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.lesson-breadcrumb a { color: var(--gold); }

.video-container {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 12px; margin-bottom: 28px;
  background: var(--navy-card); border: 1px solid var(--gold-border);
}
.video-container iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.video-placeholder {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.video-placeholder .icon { font-size: 48px; }
.video-placeholder p { color: var(--text-dim); font-size: 14px; }

.lesson-content h1 { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.lesson-content .lesson-module-label { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 20px; }

.attachments { margin-top: 28px; }
.attachments h4 { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.attachment-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; margin-bottom: 8px; transition: all 0.2s; cursor: pointer;
}
.attachment-item:hover { background: rgba(253,181,41,0.06); border-color: var(--gold-border); }
.attachment-icon { font-size: 20px; }
.attachment-info { flex: 1; }
.attachment-info .name { font-size: 13px; color: var(--white); font-weight: 600; }
.attachment-info .size { font-size: 11px; color: var(--text-dim); }

.lesson-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
}
.lesson-nav-btn {
  padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: none; font-family: 'Montserrat', sans-serif;
}
.lesson-nav .prev { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.lesson-nav .prev:hover { background: rgba(255,255,255,0.1); }
.lesson-nav .next { background: var(--gold); color: var(--navy); }
.lesson-nav .next:hover { background: var(--gold-hover); }
.lesson-nav .complete-btn { background: var(--success); color: var(--white); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .mobile-menu {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
    background: rgba(15,31,54,0.98); backdrop-filter: blur(12px);
    padding: 20px; border-bottom: 1px solid var(--gold-border);
    flex-direction: column; gap: 16px;
  }
  .mobile-menu.active { display: flex; }
  .mobile-menu a { color: var(--text-muted); font-size: 16px; font-weight: 500; padding: 8px 0; }
  
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  
  .courses { padding: 50px 20px; }
  .section-title { font-size: 24px; margin-bottom: 32px; }
  
  .course-card { grid-template-columns: 1fr; }
  .course-img { min-height: 160px; }
  .course-info { padding: 20px; }
  
  .trust-stats { gap: 30px; }
  .stat-item .num { font-size: 32px; }
  
  .dashboard { padding: 80px 20px 40px; }
  .lesson-page { padding: 80px 20px 40px; }
  .lesson { padding-left: 52px; }
}

@media (max-width: 480px) {
  .nav { padding: 0 14px; }
  .nav-logo { white-space: nowrap; }
  .nav-logo .white { font-size: 13.5px; }
  .nav-logo .gold { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .trust-stats { flex-direction: column; gap: 20px; }
  .course-meta { flex-direction: column; gap: 6px; }
}

/* ===================================================================
   ADMIN PANEL
   =================================================================== */

/* === Admin Gate (Login) === */
.admin-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 20px;
}
.admin-gate-card {
  background: var(--navy-card); border: 1px solid var(--gold-border);
  border-radius: 16px; padding: 48px 40px; width: 100%; max-width: 440px;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.admin-gate-logo { margin-bottom: 32px; font-size: 20px; font-weight: 800; }
.admin-gate-card h2 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.admin-gate-note { font-size: 12px; color: var(--text-dim); margin-top: 20px; }

.google-btn-wrapper { margin: 24px 0 12px; }
.google-signin-button {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; width: 100%; justify-content: center;
}
.google-signin-button:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.google-signin-button svg { flex-shrink: 0; }

/* === Admin Layout === */
.admin-layout {
  display: flex; min-height: 100vh; background: var(--navy);
}

/* === Admin Sidebar === */
.admin-sidebar {
  width: 240px; background: var(--navy-card);
  border-right: 1px solid var(--gold-border);
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 50;
}
.admin-sidebar-logo {
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 18px; font-weight: 800;
}
.admin-sidebar-logo a { text-decoration: none; }
.admin-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: 8px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: all 0.2s; text-decoration: none;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.admin-nav-item.active { background: var(--gold-dim); color: var(--gold); font-weight: 700; }
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.admin-sidebar-footer {
  padding: 16px; border-top: 1px solid rgba(255,255,255,0.05);
}
.admin-user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-avatar { width: 32px; height: 32px; border-radius: 50%; }
.admin-user-name { font-size: 13px; font-weight: 700; color: var(--white); }
.admin-user-role { font-size: 11px; color: var(--text-dim); }
.admin-logout-btn {
  width: 100%; padding: 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: 'Montserrat', sans-serif;
}
.admin-logout-btn:hover { background: rgba(239,83,80,0.1); color: var(--danger); border-color: rgba(239,83,80,0.3); }

/* === Admin Main === */
.admin-main {
  flex: 1; margin-left: 240px; padding: 32px 40px;
  min-height: 100vh;
}

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-header { margin-bottom: 28px; }
.admin-header h1 { font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.admin-header h2 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.admin-header p { font-size: 14px; color: var(--text-muted); }

/* === Stats Grid === */
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--navy-card); border: 1px solid var(--gold-border);
  border-radius: 12px; padding: 20px 24px; position: relative; overflow: hidden;
}
.admin-stat-card::after {
  content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  background: radial-gradient(circle at top right, var(--gold-dim) 0%, transparent 70%);
}
.stat-icon { font-size: 24px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 900; color: var(--white); margin-bottom: 2px; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.stat-change { font-size: 12px; color: var(--text-dim); }
.stat-change.positive { color: var(--success); }

/* === Cards & Grid === */
.admin-card {
  background: var(--navy-card); border: 1px solid var(--gold-border);
  border-radius: 12px; padding: 24px; margin-bottom: 20px;
}
.admin-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 16px; }

.admin-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* === Lists === */
.admin-list { }
.admin-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-list-item:last-child { border-bottom: none; }
.list-item-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.list-item-avatar.small { width: 28px; height: 28px; font-size: 12px; }
.list-item-info { flex: 1; }
.list-item-name { font-size: 14px; font-weight: 600; color: var(--white); }
.list-item-sub { font-size: 12px; color: var(--text-dim); }
.list-item-meta { font-size: 12px; color: var(--text-dim); }

.admin-empty-state { text-align: center; padding: 32px 20px; }
.empty-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.admin-empty-state p { font-size: 14px; color: var(--text-muted); }
.admin-empty-state h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.empty-hint { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* === Toolbar === */
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.admin-search input {
  padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: var(--white); font-size: 14px;
  font-family: 'Montserrat', sans-serif; width: 280px; transition: border-color 0.2s;
}
.admin-search input:focus { outline: none; border-color: var(--gold); }
.admin-search input::placeholder { color: var(--text-dark); }

/* === Buttons === */
.admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  font-family: 'Montserrat', sans-serif; cursor: pointer; border: none;
  transition: all 0.2s;
}
.admin-btn.btn-small { padding: 7px 14px; font-size: 13px; }
.admin-btn.btn-tiny { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.admin-btn.btn-primary { background: var(--gold); color: var(--navy); }
.admin-btn.btn-primary:hover { background: var(--gold-hover); }
.admin-btn.btn-secondary { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(253,181,41,0.2); }
.admin-btn.btn-secondary:hover { background: rgba(253,181,41,0.2); }
.admin-btn.btn-danger { background: rgba(239,83,80,0.1); color: var(--danger); }
.admin-btn.btn-danger:hover { background: rgba(239,83,80,0.2); }
.admin-btn.btn-disabled { background: rgba(255,255,255,0.05); color: var(--text-dim); cursor: default; }

/* === Table === */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-table td {
  padding: 14px 16px; font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.table-empty { text-align: center; }
.table-user { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.table-badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  background: var(--gold-dim); color: var(--gold); font-size: 11px; font-weight: 700;
}
.table-progress { display: flex; align-items: center; gap: 8px; }
.table-progress-bar {
  width: 60px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08); position: relative; overflow: hidden;
}
.table-progress-bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--gold); border-radius: 3px; width: inherit;
}

/* === Courses Grid (admin) === */
.admin-courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.admin-course-card {
  background: var(--navy-card); border: 1px solid var(--gold-border);
  border-radius: 12px; padding: 28px; text-align: center; position: relative;
  transition: all 0.2s;
}
.admin-course-card:hover { border-color: rgba(253,181,41,0.3); }
.admin-course-card.active-course { border-color: rgba(253,181,41,0.3); }
.admin-course-card.active-course::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover)); border-radius: 12px 12px 0 0;
}
.course-status-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-active { background: rgba(76,175,80,0.15); color: var(--success); }
.badge-draft { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.admin-course-icon { font-size: 48px; margin: 16px 0; }
.admin-course-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.admin-course-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.admin-course-stats {
  display: flex; justify-content: center; gap: 20px; margin-bottom: 16px;
  font-size: 13px; color: var(--text-muted);
}
.admin-course-stats strong { color: var(--white); }
.admin-course-actions { margin-top: 4px; }

/* === Course Detail (admin) === */
.admin-module-item {
  border: 1px solid rgba(255,255,255,0.06); border-radius: 8px;
  margin-bottom: 12px; overflow: hidden;
}
.admin-module-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: rgba(255,255,255,0.02);
}
.admin-module-num {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.admin-module-count { font-size: 12px; color: var(--text-dim); margin-left: 8px; }
.admin-lessons-list { padding: 0 18px 12px; }
.admin-lesson-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.admin-lesson-row:last-child { border-bottom: none; }
.lesson-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.1); flex-shrink: 0;
}
.lesson-dot.has-content { background: var(--success); }
.lesson-status { margin-left: auto; font-size: 11px; color: var(--text-dim); }

/* === Settings === */
.admin-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-group { margin-bottom: 16px; }
.settings-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.settings-input {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: var(--white); font-size: 13px;
  font-family: 'Montserrat', sans-serif;
}
.settings-note { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.admin-email-list { margin-top: 8px; }
.admin-email-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 6px;
  font-size: 13px; color: var(--text-muted);
}
.email-badge {
  padding: 3px 8px; border-radius: 4px;
  background: var(--gold-dim); color: var(--gold);
  font-size: 11px; font-weight: 700;
}

.settings-integrations { }
.integration-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.integration-item:last-child { border-bottom: none; }
.integration-info { display: flex; flex-direction: column; gap: 3px; }
.integration-info strong { font-size: 14px; color: var(--white); }
.integration-status { font-size: 12px; }
.status-active { color: var(--success); }
.status-pending { color: var(--text-dim); }

/* === Modal === */
.admin-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.admin-modal-content {
  background: var(--navy-card); border: 1px solid var(--gold-border);
  border-radius: 16px; width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.admin-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-modal-header h3 { font-size: 18px; font-weight: 700; color: var(--white); margin: 0; }
.modal-close {
  background: none; border: none; color: var(--text-dim); font-size: 24px;
  cursor: pointer; padding: 0; line-height: 1;
}
.modal-close:hover { color: var(--white); }
.admin-modal-body { padding: 24px; }
.admin-modal-footer {
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: flex-end; gap: 12px;
}

.checkbox-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-muted); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--gold); }

/* === Admin Responsive === */
@media (max-width: 1024px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2col { grid-template-columns: 1fr; }
  .admin-courses-grid { grid-template-columns: 1fr 1fr; }
  .admin-settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-sidebar { width: 64px; }
  .admin-sidebar-logo { padding: 20px 12px; font-size: 14px; text-align: center; }
  .admin-nav-item { padding: 11px 12px; justify-content: center; font-size: 0; }
  .nav-icon { font-size: 20px; }
  .admin-main { margin-left: 64px; padding: 24px 20px; }
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-courses-grid { grid-template-columns: 1fr; }
  .admin-user-info { display: none; }
  .admin-sidebar-footer { padding: 12px; }
}

/* ===================================================================
   ENHANCED STUDENT PANEL
   =================================================================== */
.student-nav-user {
  display: flex; align-items: center; gap: 10px;
}
.student-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.student-overview {
  padding: 90px 40px 60px; max-width: 1000px; margin: 0 auto;
}
.student-welcome {
  margin-bottom: 36px;
}
.student-welcome h1 { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.student-welcome p { font-size: 15px; color: var(--text-muted); }

.student-courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
  margin-bottom: 40px;
}
.student-course-card {
  background: var(--navy-card); border: 1px solid var(--gold-border);
  border-radius: 12px; padding: 24px; transition: all 0.2s; cursor: pointer;
}
.student-course-card:hover { border-color: rgba(253,181,41,0.35); transform: translateY(-2px); }
.student-course-card .course-emoji { font-size: 32px; margin-bottom: 12px; }
.student-course-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.student-course-card .course-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.student-course-card .progress-bar-container { margin-bottom: 6px; }
.student-course-card .progress-label { font-size: 12px; color: var(--text-dim); }
