/* ============================================
   LMS Main Stylesheet
   Font: Clash Display + Plus Jakarta Sans
   Theme: Deep Navy + Electric Indigo + Gold
   ============================================ */

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

/* ── Variables ── */
:root {
  --navy:       #0A0F1E;
  --navy-2:     #111827;
  --navy-3:     #1C2333;
  --navy-4:     #252D3D;
  --indigo:     #4F46E5;
  --indigo-h:   #4338CA;
  --indigo-l:   #818CF8;
  --gold:       #F59E0B;
  --gold-l:     #FCD34D;
  --emerald:    #10B981;
  --rose:       #F43F5E;
  --sky:        #0EA5E9;
  --white:      #FFFFFF;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-300:   #CBD5E1;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1E293B;
  --gray-900:   #0F172A;
  --text:       #E2E8F0;
  --text-muted: #94A3B8;
  --border:     rgba(255,255,255,0.08);
  --card-bg:    rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow:     0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.4);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --font:       'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w:      1280px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy-2); }
::-webkit-scrollbar-thumb { background: var(--navy-4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo); }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
}
.navbar-brand .brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-l));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.navbar-brand span { background: linear-gradient(135deg, #fff 40%, var(--indigo-l)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: var(--card-bg); }
.nav-link.active { color: var(--white); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--navy-2); border-bottom: 1px solid var(--border);
  padding: 16px 24px; flex-direction: column; gap: 4px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { width: 100%; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--indigo); color: var(--white);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}
.btn-primary:hover { background: var(--indigo-h); box-shadow: 0 6px 24px rgba(79,70,229,0.5); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold); color: #000;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.btn-gold:hover { background: var(--gold-l); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo-l); background: rgba(79,70,229,0.08); }

.btn-ghost {
  background: var(--card-bg); color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--card-hover); color: var(--white); }

.btn-danger { background: rgba(244,63,94,0.15); color: var(--rose); border: 1px solid rgba(244,63,94,0.3); }
.btn-danger:hover { background: var(--rose); color: white; }

.btn-success { background: rgba(16,185,129,0.15); color: var(--emerald); border: 1px solid rgba(16,185,129,0.3); }
.btn-success:hover { background: var(--emerald); color: white; }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.12); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); }

/* ── COURSE CARDS ── */
.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); border-color: rgba(79,70,229,0.4); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.course-card-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-4));
  position: relative;
}
.course-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.course-card:hover .course-card-thumb img { transform: scale(1.05); }
.course-card-thumb .badge-level {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.level-Beginner { background: rgba(16,185,129,0.85); color: #fff; }
.level-Intermediate { background: rgba(245,158,11,0.85); color: #000; }
.level-Advanced { background: rgba(244,63,94,0.85); color: #fff; }
.course-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; color: var(--white); }
.course-card-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.course-price { font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.course-price-free { color: var(--emerald); }
.course-info { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-muted); }
.course-info span { display: flex; align-items: center; gap: 4px; }
.course-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }

/* ── GRID ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white); font-size: 0.9rem;
  transition: var(--transition);
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--indigo); background: rgba(79,70,229,0.08); box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.form-control::placeholder { color: var(--gray-600); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 0.78rem; color: var(--rose); margin-top: 6px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-indigo { background: rgba(79,70,229,0.2); color: var(--indigo-l); }
.badge-gold { background: rgba(245,158,11,0.2); color: var(--gold); }
.badge-green { background: rgba(16,185,129,0.2); color: var(--emerald); }
.badge-red { background: rgba(244,63,94,0.2); color: var(--rose); }
.badge-gray { background: rgba(148,163,184,0.15); color: var(--gray-400); }

/* ── ALERTS ── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 0.875rem; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: var(--emerald); }
.alert-error { background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.3); color: var(--rose); }
.alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: var(--gold); }
.alert-info { background: rgba(14,165,233,0.12); border: 1px solid rgba(14,165,233,0.3); color: var(--sky); }
#global-alert { position: fixed; top: 84px; right: 24px; z-index: 200; min-width: 300px; max-width: 420px; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ── PROGRESS BAR ── */
.progress-bar-wrap { background: rgba(255,255,255,0.07); border-radius: 999px; height: 6px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--indigo), var(--indigo-l)); transition: width 0.5s ease; }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; align-items: center; gap: 18px;
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.stat-icon-indigo { background: rgba(79,70,229,0.2); }
.stat-icon-gold { background: rgba(245,158,11,0.2); }
.stat-icon-green { background: rgba(16,185,129,0.2); }
.stat-icon-rose { background: rgba(244,63,94,0.2); }
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: none; }

/* ── TABS ── */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 28px; gap: 4px; }
.tab-btn {
  padding: 10px 20px; border-radius: 8px 8px 0 0; font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); background: transparent; border: none; cursor: pointer;
  position: relative; transition: var(--transition);
}
.tab-btn::after { content:''; position:absolute; bottom:-1px; left:0; right:0; height:2px; background:var(--indigo); border-radius:2px; transform:scaleX(0); transition:var(--transition); }
.tab-btn.active { color: var(--white); }
.tab-btn.active::after { transform:scaleX(1); }
.tab-btn:hover { color: var(--white); background: var(--card-bg); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: var(--card-bg); border: 1px solid var(--border); color: var(--text-muted); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--white); background: var(--card-hover); }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ── LOADER ── */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--indigo);
  animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; flex-direction: column; gap: 20px;
}

/* ── HERO SECTION ── */
.hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse at 50% -20%, rgba(79,70,229,0.25) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 80%, rgba(245,158,11,0.08) 0%, transparent 50%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234F46E5' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(79,70,229,0.15); border: 1px solid rgba(79,70,229,0.3);
  font-size: 0.8rem; font-weight: 600; color: var(--indigo-l);
  margin-bottom: 24px;
}
.hero-badge::before { content: '●'; color: var(--emerald); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.04em; margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--indigo-l), var(--gold-l));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* ── SECTION ── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ── DASHBOARD LAYOUT ── */
.dash-layout { display: flex; min-height: 100vh; padding-top: 68px; }
.dash-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--navy-2); border-right: 1px solid var(--border);
  position: fixed; top: 68px; bottom: 0; left: 0;
  overflow-y: auto; padding: 24px 16px;
  display: flex; flex-direction: column;
}
.dash-main { flex: 1; margin-left: 260px; padding: 36px 40px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.sidebar-link:hover { color: var(--white); background: var(--card-bg); }
.sidebar-link.active { color: var(--white); background: rgba(79,70,229,0.15); border: 1px solid rgba(79,70,229,0.25); }
.sidebar-link .icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); padding: 16px 14px 6px; }
.sidebar-user { padding: 16px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 20px; }
.sidebar-user-name { font-weight: 700; font-size: 0.9rem; }
.sidebar-user-email { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-page { display: none; }
.dash-page.active { display: block; }
.dash-page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.dash-page-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ── VIDEO PLAYER ── */
.player-layout { display: flex; height: calc(100vh - 68px); }
.player-main { flex: 1; overflow-y: auto; background: #000; }
.player-sidebar {
  width: 340px; flex-shrink: 0;
  background: var(--navy-2); border-left: 1px solid var(--border);
  overflow-y: auto; display: flex; flex-direction: column;
}
.video-container {
  position: relative; background: #000;
  user-select: none; -webkit-user-select: none;
}
.video-container video {
  width: 100%; aspect-ratio: 16/9; display: block;
  pointer-events: none; /* Disable native right-click context */
}
.video-watermark {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(0.7rem, 1.5vw, 1rem); font-weight: 600;
  color: rgba(255,255,255,0.12); letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transform: rotate(-20deg);
  z-index: 10;
}
.video-controls {
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 40px 16px 16px;
  pointer-events: all;
}
.progress-line { width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; cursor: pointer; margin-bottom: 12px; position: relative; }
.progress-line-fill { height: 100%; background: var(--indigo); border-radius: 2px; transition: width 0.1s linear; }
.progress-line-thumb { position: absolute; top: 50%; right: 0; transform: translate(50%, -50%); width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 0 4px rgba(0,0,0,0.5); }
.controls-row { display: flex; align-items: center; gap: 12px; }
.ctrl-btn { background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; padding: 6px; border-radius: 6px; transition: var(--transition); display: flex; align-items: center; }
.ctrl-btn:hover { background: rgba(255,255,255,0.15); }
.time-display { color: rgba(255,255,255,0.8); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.volume-slider { width: 70px; accent-color: var(--indigo); }
.quality-btn { margin-left: auto; }
.lecture-list-header { padding: 20px; border-bottom: 1px solid var(--border); }
.lecture-list-title { font-size: 1rem; font-weight: 700; }
.lecture-list-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.lecture-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}
.lecture-item:hover { background: var(--card-bg); }
.lecture-item.active { background: rgba(79,70,229,0.12); border-left: 3px solid var(--indigo); }
.lecture-item.completed .lecture-num { background: rgba(16,185,129,0.2); color: var(--emerald); }
.lecture-num {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--card-bg); display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0; color: var(--text-muted);
}
.lecture-item.active .lecture-num { background: var(--indigo); color: white; }
.lecture-item-info { flex: 1; min-width: 0; }
.lecture-item-title { font-size: 0.87rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecture-item-dur { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.player-info { padding: 24px; background: var(--navy-2); }
.player-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.player-nav { display: flex; gap: 10px; margin-top: 16px; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 40px;
  background: radial-gradient(ellipse at center top, rgba(79,70,229,0.15) 0%, transparent 60%);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--indigo-l); font-weight: 600; }

/* ── PAYMENT PAGE ── */
.payment-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.bank-detail { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bank-detail:last-child { border-bottom: none; }
.bank-label { font-size: 0.82rem; color: var(--text-muted); }
.bank-value { font-weight: 700; color: var(--white); }
.copy-btn { background: none; border: none; color: var(--indigo-l); cursor: pointer; font-size: 0.8rem; padding: 4px 8px; border-radius: 6px; transition: var(--transition); }
.copy-btn:hover { background: rgba(79,70,229,0.15); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-text { color: var(--text-muted); font-size: 0.9rem; max-width: 320px; margin: 0 auto 24px; }

/* ── FOOTER ── */
.footer { background: var(--navy-2); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-desc { color: var(--text-muted); font-size: 0.875rem; margin-top: 12px; line-height: 1.7; }
.footer-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── SEARCH ── */
.search-bar { position: relative; }
.search-bar input { padding-left: 44px; }
.search-bar .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; }

/* ── UTILS ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-gold { color: var(--gold); }
.text-green { color: var(--emerald); }
.text-red { color: var(--rose); }
.text-indigo { color: var(--indigo-l); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-sidebar { transform: translateX(-100%); transition: transform 0.3s; z-index: 50; }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 24px; }
  .player-sidebar { display: none; }
  .player-sidebar.open { display: flex; position: fixed; top: 68px; right: 0; bottom: 0; z-index: 50; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .auth-card { padding: 28px 20px; }
  .dash-main { padding: 20px 16px; }
  .modal { max-width: 100%; }
  .player-layout { flex-direction: column; }
  .player-main { height: auto; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 12px 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
