/* DigitalWitch EdTech Platform - Main Stylesheet */
/* Brand: Navy Blue, White, Grey, Orange */

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

:root {
  /* Brand Colors */
  --navy: #0d1b3e;
  --navy-light: #1a3a6e;
  --navy-dark: #07101f;
  --orange: #16A34A;
  --orange-light: #22C55E;
  --orange-dark: #15803D;
  --white: #ffffff;
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;

  /* Semantic */
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --container: 1200px;
  --sidebar-width: 260px;
  --header-height: 70px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(13,27,62,0.1);
  --shadow-lg: 0 10px 40px rgba(13,27,62,0.15);
  --shadow-xl: 0 20px 60px rgba(13,27,62,0.2);

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--grey-800);
  background: var(--grey-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding-top: var(--header-height);
}

.content-area {
  padding: 32px;
  max-width: 1200px;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img { height: 40px; }

.navbar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.navbar-brand .brand-name span { color: var(--orange); }

.navbar-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  gap: 8px;
}

.navbar-menu a {
  color: var(--grey-300);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-menu a:hover, .navbar-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.navbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* Public Navbar */
.public-navbar {
  position: sticky;
  top: 0;
  background: var(--navy);
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.public-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  list-style: none;
}

.public-navbar .nav-links a {
  color: var(--grey-300);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.public-navbar .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--navy-dark);
  overflow-y: auto;
  z-index: 900;
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.sidebar-user {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}

.sidebar-user .user-info { flex: 1; overflow: hidden; }
.sidebar-user .user-name { color: var(--white); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-role { color: var(--orange); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-section-label {
  color: var(--grey-500);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px 6px;
  font-weight: 600;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--grey-400);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.sidebar-nav a.active {
  color: var(--orange);
  background: rgba(22,163,74,0.1);
  border-left-color: var(--orange);
}

.sidebar-nav a i { width: 18px; text-align: center; font-size: 15px; }

.sidebar-nav .badge {
  margin-left: auto;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); }

.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }

.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--grey-100); color: var(--navy); }

.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-danger { background: var(--error); color: var(--white); border-color: var(--error); }
.btn-warning { background: var(--warning); color: var(--white); border-color: var(--warning); }
.btn-info { background: var(--info); color: var(--white); border-color: var(--info); }
.btn-secondary { background: var(--grey-200); color: var(--grey-700); border-color: var(--grey-200); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 18px 36px; font-size: 17px; border-radius: var(--radius-lg); }

.btn-block { width: 100%; justify-content: center; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-label .required { color: var(--error); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-800);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26,58,110,0.1);
}

.form-control::placeholder { color: var(--grey-400); }

.form-control.is-invalid { border-color: var(--error); }
.form-control.is-valid { border-color: var(--success); }

textarea.form-control { resize: vertical; min-height: 110px; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.form-hint { font-size: 12px; color: var(--grey-500); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 5px; }

.input-group { position: relative; display: flex; }
.input-group .form-control { flex: 1; }
.input-group .input-prefix, .input-group .input-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--grey-100);
  border: 2px solid var(--grey-200);
  color: var(--grey-600);
  font-size: 14px;
}
.input-group .input-prefix { border-right: none; border-radius: var(--radius) 0 0 var(--radius); }
.input-group .input-suffix { border-left: none; border-radius: 0 var(--radius) var(--radius) 0; }
.input-group .form-control { border-radius: 0; }
.input-group.has-prefix .form-control { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group.has-suffix .form-control { border-radius: var(--radius) 0 0 var(--radius); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Checkbox/Radio */
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.form-check label { cursor: pointer; font-size: 14px; color: var(--grey-700); }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover { box-shadow: var(--shadow); }

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 { font-size: 17px; margin: 0; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--grey-100); background: var(--grey-50); }

/* Course Card */
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.course-card .card-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--grey-200);
}

.course-card .card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .card-thumb img { transform: scale(1.05); }

.course-card .card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.course-card .card-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-card .course-category { color: var(--orange); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.course-card .course-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.course-card .course-instructor { color: var(--grey-500); font-size: 13px; margin-bottom: 12px; }
.course-card .course-meta { display: flex; gap: 16px; font-size: 13px; color: var(--grey-500); margin-bottom: 14px; }
.course-card .course-meta i { color: var(--orange); }

.course-card .course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--grey-100);
}

.course-card .course-price { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--navy); }
.course-card .course-price .original-price { font-size: 13px; font-weight: 400; color: var(--grey-400); text-decoration: line-through; margin-left: 6px; }

/* Rating Stars */
.stars { display: flex; gap: 2px; }
.stars i { color: #fbbf24; font-size: 13px; }
.stars i.empty { color: var(--grey-300); }
.rating-score { font-weight: 700; color: var(--grey-800); font-size: 13px; }
.rating-count { color: var(--grey-400); font-size: 12px; }

/* =============================================
   STATS / KPI CARDS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--grey-200);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--orange);
}

.stat-card.blue::before { background: var(--navy-light); }
.stat-card.green::before { background: var(--success); }
.stat-card.purple::before { background: #8b5cf6; }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.stat-icon.orange { background: rgba(22,163,74,0.1); color: var(--orange); }
.stat-icon.blue { background: rgba(26,58,110,0.1); color: var(--navy-light); }
.stat-icon.green { background: rgba(34,197,94,0.1); color: var(--success); }
.stat-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }

.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: 13px; color: var(--grey-500); margin-top: 4px; font-weight: 500; }
.stat-change { font-size: 12px; margin-top: 8px; font-weight: 600; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* =============================================
   TABLES
   ============================================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--grey-200); }

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

.dw-table thead tr {
  background: var(--navy);
  color: var(--white);
}

.dw-table th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-weight: 600;
}

.dw-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--grey-100);
  vertical-align: middle;
}

.dw-table tbody tr:last-child td { border-bottom: none; }
.dw-table tbody tr:hover { background: var(--grey-50); }

.dw-table .td-avatar { display: flex; align-items: center; gap: 12px; }
.dw-table .td-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* =============================================
   BADGES / STATUS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-success { background: rgba(34,197,94,0.12); color: #16a34a; }
.badge-error, .badge-danger { background: rgba(239,68,68,0.12); color: #dc2626; }
.badge-warning { background: rgba(245,158,11,0.12); color: #d97706; }
.badge-info { background: rgba(59,130,246,0.12); color: #2563eb; }
.badge-orange { background: rgba(22,163,74,0.12); color: var(--orange-dark); }
.badge-navy { background: rgba(13,27,62,0.08); color: var(--navy); }
.badge-grey { background: var(--grey-100); color: var(--grey-600); }

/* =============================================
   ALERTS
   ============================================= */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  border-left: 4px solid;
}

.alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(34,197,94,0.08); border-color: var(--success); color: #166534; }
.alert-error { background: rgba(239,68,68,0.08); border-color: var(--error); color: #991b1b; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: var(--warning); color: #92400e; }
.alert-info { background: rgba(59,130,246,0.08); border-color: var(--info); color: #1e40af; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,16,31,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { margin: 0; font-size: 18px; }

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--grey-400);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--grey-700); }

.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--grey-100); display: flex; gap: 12px; justify-content: flex-end; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-600);
  background: var(--white);
  border: 1px solid var(--grey-200);
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-bar-wrap {
  background: var(--grey-200);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(22,163,74,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.auth-hero .hero-logo { height: 60px; margin-bottom: 32px; }
.auth-hero h1 { color: var(--white); font-size: 36px; margin-bottom: 16px; }
.auth-hero h1 span { color: var(--orange); }
.auth-hero p { color: var(--grey-300); font-size: 16px; max-width: 380px; margin: 0 auto 32px; }

.auth-features { display: flex; flex-direction: column; gap: 16px; text-align: left; max-width: 320px; }
.auth-feature { display: flex; align-items: flex-start; gap: 14px; }
.auth-feature .icon { width: 40px; height: 40px; border-radius: var(--radius); background: rgba(22,163,74,0.2); display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 16px; flex-shrink: 0; }
.auth-feature h4 { color: var(--white); font-size: 15px; margin-bottom: 4px; }
.auth-feature p { color: var(--grey-400); font-size: 13px; margin: 0; }

.auth-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--white);
  overflow-y: auto;
}

.auth-form-wrap .auth-logo { margin-bottom: 8px; }
.auth-form-wrap .auth-logo img { height: 48px; }

.auth-title { font-size: 28px; margin-bottom: 8px; text-align: center; }
.auth-subtitle { color: var(--grey-500); margin-bottom: 32px; text-align: center; }

.auth-form { width: 100%; max-width: 420px; }

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: var(--grey-400);
  font-size: 13px;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--grey-200);
}

.auth-divider span { background: var(--white); padding: 0 12px; position: relative; }

/* =============================================
   COURSE DETAIL
   ============================================= */
.course-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 60px 0 80px;
  color: var(--white);
}

.course-hero h1 { color: var(--white); font-size: 36px; max-width: 700px; line-height: 1.3; }
.course-hero p { color: var(--grey-300); font-size: 17px; max-width: 600px; margin: 16px 0; }
.course-hero .meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.course-hero .meta span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grey-300); }
.course-hero .meta i { color: var(--orange); }

.course-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  max-width: var(--container);
  margin: -40px auto 0;
  padding: 0 24px;
}

.course-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: 90px;
  overflow: hidden;
}

.course-preview { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.course-sidebar-body { padding: 24px; }
.course-price-tag { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--navy); }
.course-price-tag .old-price { font-size: 18px; font-weight: 400; color: var(--grey-400); text-decoration: line-through; margin-left: 8px; }

/* =============================================
   VIDEO PLAYER
   ============================================= */
.video-player-wrap {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

.video-player-wrap video { width: 100%; height: 100%; }

/* =============================================
   CURRICULUM
   ============================================= */
.curriculum-module {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--grey-50);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.module-header:hover { background: var(--grey-100); }
.module-header h4 { font-size: 15px; color: var(--navy); margin: 0; }
.module-header .module-meta { font-size: 13px; color: var(--grey-500); }

.module-lessons { border-top: 1px solid var(--grey-200); }

.lesson-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--grey-100);
  transition: background var(--transition);
  cursor: pointer;
}

.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: var(--grey-50); }

.lesson-item.completed .lesson-icon { color: var(--success); }
.lesson-item.active { background: rgba(22,163,74,0.05); }
.lesson-item.active .lesson-title { color: var(--orange); font-weight: 600; }

.lesson-icon { color: var(--grey-400); font-size: 16px; flex-shrink: 0; }
.lesson-title { flex: 1; font-size: 14px; }
.lesson-duration { font-size: 12px; color: var(--grey-400); }
.lesson-preview-badge { font-size: 11px; padding: 2px 8px; background: rgba(22,163,74,0.1); color: var(--orange); border-radius: 20px; font-weight: 600; }

/* =============================================
   CERTIFICATE
   ============================================= */
.certificate-wrap {
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
  border: 3px solid var(--orange);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.certificate-wrap::before, .certificate-wrap::after {
  content: '';
  position: absolute;
  border: 2px solid rgba(22,163,74,0.2);
  border-radius: var(--radius-xl);
  inset: 10px;
  pointer-events: none;
}

.certificate-wrap::after { inset: 20px; border-style: dashed; }

/* =============================================
   HERO / LANDING
   ============================================= */
.hero-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(22,163,74,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section .hero-content { position: relative; z-index: 2; }
.hero-section h1 { color: var(--white); font-size: clamp(36px, 5vw, 62px); line-height: 1.1; }
.hero-section h1 .highlight { color: var(--orange); }
.hero-section p { color: var(--grey-300); font-size: 18px; max-width: 560px; margin: 20px 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================
   SECTION STYLES
   ============================================= */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: rgba(22,163,74,0.12); color: var(--orange); font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.section-header h2 { font-size: 38px; margin-bottom: 16px; }
.section-header p { color: var(--grey-500); font-size: 17px; max-width: 560px; margin: 0 auto; }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

/* =============================================
   NOTIFICATION BELL
   ============================================= */
.notif-bell {
  position: relative;
  cursor: pointer;
  color: var(--grey-300);
  font-size: 18px;
  transition: color var(--transition);
}
.notif-bell:hover { color: var(--white); }
.notif-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   DROPDOWN
   ============================================= */
.dropdown-wrap { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--grey-200);
  z-index: 1100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
}
.dropdown-wrap:hover .dropdown-menu, .dropdown-wrap.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--grey-700);
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--grey-50); color: var(--navy); }
.dropdown-menu a i { width: 16px; color: var(--orange); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--grey-100); margin: 4px 0; }

/* =============================================
   TABS
   ============================================= */
.tabs { border-bottom: 2px solid var(--grey-200); display: flex; gap: 0; margin-bottom: 28px; }
.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-500);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

@media (max-width: 768px) {
  .content-area { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-orange { color: var(--orange) !important; }
.text-navy { color: var(--navy) !important; }
.text-grey { color: var(--grey-500) !important; }
.text-success { color: var(--success) !important; }
.text-error { color: var(--error) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 17px; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.flex-1 { flex: 1; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-0 { padding: 0; }
.w-100 { width: 100%; }
.d-none { display: none; }

.separator { border: none; border-top: 1px solid var(--grey-200); margin: 24px 0; }

/* Page Title */
.page-title { margin-bottom: 28px; }
.page-title h1 { font-size: 28px; margin: 0; }
.page-title p { color: var(--grey-500); margin: 6px 0 0; font-size: 14px; }
.page-title-bar { display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--grey-400); margin-top: 6px; }
.breadcrumb a { color: var(--orange); }
.breadcrumb span { color: var(--grey-300); }

/* Avatar */
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

/* Loading spinner */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,16,31,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.loading-overlay.active { display: flex; }
