/* ============================================================
   HANAD LMS — Bootstrap 5 Theme Overrides
   Primary: #4189DD  Secondary: #4F74BE
   ============================================================ */

/* ── Brand colour tokens ─────────────────────────────────── */
:root {
  --hanad-primary:     #4189DD;
  --hanad-primary-dark:#2f6bb5;
  --hanad-secondary:   #4F74BE;
  --hanad-accent:      #e8f1fb;
  --hanad-success:     #198754;
  --hanad-danger:      #dc3545;
  --hanad-warning:     #ffc107;
  --hanad-info:        #0dcaf0;
  --hanad-light:       #f4f7fb;
  --hanad-dark:        #1a1a2e;
  --hanad-muted:       #6b7280;
  --hanad-border:      #dee2e6;
}

[data-bs-theme="dark"] {
  --hanad-light: #1a1d23;
  --hanad-accent: #1e2a3a;
}

/* ── Override Bootstrap primary ──────────────────────────── */
.btn-primary, .bg-primary { background-color: var(--hanad-primary) !important; border-color: var(--hanad-primary) !important; }
.btn-primary:hover { background-color: var(--hanad-primary-dark) !important; border-color: var(--hanad-primary-dark) !important; }
.btn-outline-primary { color: var(--hanad-primary) !important; border-color: var(--hanad-primary) !important; }
.btn-outline-primary:hover { background-color: var(--hanad-primary) !important; color: #fff !important; }
.text-primary { color: var(--hanad-primary) !important; }
a { color: var(--hanad-primary); }
a:hover { color: var(--hanad-primary-dark); }

/* ── Global base ─────────────────────────────────────────── */
body {
  font-size: 17px;
  background-color: var(--hanad-light);
}

/* ── Navbar ──────────────────────────────────────────────── */
.hanad-navbar {
  background-color: var(--hanad-primary);
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.hanad-brand {
  color: #fff !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.hanad-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.2);
  border-radius: 8px;
  font-weight: 900;
  font-size: 1rem;
  margin-right: 6px;
  vertical-align: middle;
}

.hanad-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: background .15s;
}

.hanad-navbar .nav-link:hover,
.hanad-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.15);
}

.hanad-navbar .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.3); }
.hanad-navbar .navbar-toggler-icon { filter: invert(1); }

/* Language selector button */
.hanad-lang-btn {
  background: rgba(255,255,255,.15);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  font-size: .85rem;
  border-radius: 6px;
}
.hanad-lang-btn:hover { background: rgba(255,255,255,.25); }
.hanad-lang-menu { min-width: 180px; font-size: .9rem; }

/* Theme toggle button */
.hanad-theme-toggle {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: .9rem;
}
.hanad-theme-toggle:hover { background: rgba(255,255,255,.25); color: #fff; }

/* User dropdown button */
.hanad-user-btn {
  background: rgba(255,255,255,.15);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  font-size: .9rem;
}
.hanad-user-btn:hover { background: rgba(255,255,255,.25); }

/* Nav auth buttons */
.hanad-btn-outline-nav {
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: .9rem;
}
.hanad-btn-outline-nav:hover { background: rgba(255,255,255,.1); color: #fff; }

.hanad-btn-primary-nav {
  background: #fff;
  color: var(--hanad-primary) !important;
  border: none;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: .9rem;
  font-weight: 600;
}
.hanad-btn-primary-nav:hover { background: #e8f1fb; }

/* ── Footer ──────────────────────────────────────────────── */
.hanad-footer {
  background-color: #1a2235;
  color: rgba(255,255,255,.75);
}

.hanad-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.hanad-footer a:hover { color: #fff; text-decoration: underline; }

.hanad-footer-brand { color: #fff; }
.hanad-brand-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--hanad-primary);
  border-radius: 6px;
  font-weight: 900;
  color: #fff;
  margin-right: 5px;
  vertical-align: middle;
  font-size: .9rem;
}

.hanad-footer-tagline { color: rgba(255,255,255,.6); font-size: .9rem; }
.hanad-footer-heading { color: rgba(255,255,255,.45); font-size: .75rem; letter-spacing: 1px; }
.hanad-footer-links li { margin-bottom: 6px; }
.hanad-footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.hanad-footer-contact li { margin-bottom: 8px; font-size: .9rem; }
.hanad-footer-contact i { color: var(--hanad-primary); }
.hanad-footer-donor { color: rgba(255,255,255,.55); }
.hanad-footer-social-link { color: rgba(255,255,255,.6); transition: color .15s; }
.hanad-footer-social-link:hover { color: #fff; }
.hanad-footer-divider { border-color: rgba(255,255,255,.1); }
.hanad-footer-copy { color: rgba(255,255,255,.45); }
.hanad-footer-link { color: rgba(255,255,255,.5); text-decoration: none; }
.hanad-footer-link:hover { color: rgba(255,255,255,.8); }

/* ── Shared components ───────────────────────────────────── */

/* HANAD primary button */
.hanad-btn-primary {
  background: var(--hanad-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s, transform .1s;
}
.hanad-btn-primary:hover { background: var(--hanad-primary-dark); color: #fff; transform: translateY(-1px); }

.hanad-btn-outline {
  background: transparent;
  color: var(--hanad-primary);
  border: 2px solid var(--hanad-primary);
  border-radius: 8px;
  padding: 10px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
.hanad-btn-outline:hover { background: var(--hanad-accent); }

/* Progress bar */
.hanad-progress { height: 8px; border-radius: 4px; background: var(--hanad-border); overflow: hidden; }
.hanad-progress-fill { height: 100%; background: var(--hanad-primary); border-radius: 4px; transition: width .3s; }

/* Badges */
.hanad-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.hanad-badge-level { background: var(--hanad-accent); color: var(--hanad-primary); }
.hanad-badge-cert  { background: #fff3cd; color: #856404; }
.hanad-badge-enrolled { background: #d1e7dd; color: #0a3622; }

/* Alert overrides */
.hanad-alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: .95rem; }
.hanad-alert-success { background: #d1e7dd; color: #0a3622; border: 1px solid #badbcc; }
.hanad-alert-error   { background: #f8d7da; color: #58151c; border: 1px solid #f5c2c7; }
.hanad-alert-info    { background: #cff4fc; color: #055160; border: 1px solid #b6effb; }

/* Empty state */
.hanad-empty-state { text-align: center; color: var(--hanad-muted); padding: 60px 20px; font-size: 1.1rem; }

/* ── Homepage ────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--hanad-primary) 0%, var(--hanad-secondary) 100%);
  color: #fff;
  padding: 80px 0;
}

.home-hero-title { font-size: 2.6rem; font-weight: 800; line-height: 1.2; }
.home-hero-accent { color: #ffd166; }
.home-hero-para { font-size: 1.1rem; opacity: .9; }
.home-hero-proof { font-size: .9rem; opacity: .8; }
.home-hero-proof-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

.home-visual-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.home-visual-icon { font-size: 2rem; }
.home-visual-label { font-weight: 700; font-size: 1rem; }
.home-visual-sub { font-size: .8rem; opacity: .8; }

.home-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,.35);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 14px 28px;
  color: #fff;
  text-decoration: none;
  min-width: 220px;
  transition: background .2s, transform .2s;
}
.home-app-badge:hover {
  background: rgba(0,0,0,.55);
  color: #fff;
  transform: translateY(-3px);
}
.home-app-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
}
.home-app-qr img {
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.home-stats-bar { background: #fff; border-bottom: 1px solid var(--hanad-border); }
[data-bs-theme="dark"] .home-stats-bar { background: #1e2330; }
.home-stat-num { font-size: 2rem; font-weight: 800; color: var(--hanad-primary); }
.home-stat-label { color: var(--hanad-muted); font-size: .9rem; }

.home-section-title { font-size: 1.8rem; font-weight: 700; }

.home-feature-card {
  border: none;
  border-radius: 12px;
  padding: 28px 24px;
  height: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
[data-bs-theme="dark"] .home-feature-card { background: #1e2330; box-shadow: none; }
.home-feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.home-feature-icon {
  width: 56px; height: 56px;
  background: var(--hanad-accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.home-course-card {
  border: 1px solid var(--hanad-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
[data-bs-theme="dark"] .home-course-card { background: #1e2330; border-color: #2a3245; }
.home-course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); color: inherit; }
.home-course-thumb { width: 100%; height: 160px; object-fit: cover; background: var(--hanad-accent); }
.home-course-thumb-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, var(--hanad-accent), #dbeafe); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.home-course-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.home-course-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.home-course-desc { font-size: .85rem; color: var(--hanad-muted); flex: 1; }
.home-course-meta { font-size: .8rem; color: var(--hanad-muted); margin-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Course listing page ─────────────────────────────────── */
.cl-page-header { padding: 32px 0 24px; }
.cl-page-title { font-size: 1.8rem; font-weight: 700; }

.cl-filter-panel {
  background: #fff;
  border: 1px solid var(--hanad-border);
  border-radius: 12px;
  padding: 20px;
}
[data-bs-theme="dark"] .cl-filter-panel { background: #1e2330; border-color: #2a3245; }
.cl-filter-title { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--hanad-muted); font-weight: 700; margin-bottom: 10px; }

.cl-course-card {
  background: #fff;
  border: 1px solid var(--hanad-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
[data-bs-theme="dark"] .cl-course-card { background: #1e2330; border-color: #2a3245; }
.cl-course-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-3px); }
.cl-thumb { width: 100%; height: 180px; object-fit: cover; }
.cl-thumb-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--hanad-accent) 0%, #dbeafe 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.cl-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.cl-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.cl-desc { font-size: .88rem; color: var(--hanad-muted); flex: 1; margin-bottom: 12px; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--hanad-muted); margin-bottom: 14px; }
.cl-meta i { color: var(--hanad-primary); }
.cl-stars { color: #f59e0b; }
.cl-enroll-btn { width: 100%; border-radius: 8px; font-weight: 600; }

/* ── Course detail / viewer (two-column layout) ──────────── */
.cv-shell {
  display: flex;
  min-height: calc(100vh - 66px);
}

.cv-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--hanad-border);
  overflow-y: auto;
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  padding: 0;
}
[data-bs-theme="dark"] .cv-sidebar { background: #1a1d23; border-color: #2a3245; }

.cv-sidebar-header { padding: 20px; border-bottom: 1px solid var(--hanad-border); }
.cv-sidebar-back { font-size: .85rem; color: var(--hanad-muted); text-decoration: none; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cv-sidebar-back:hover { color: var(--hanad-primary); }
.cv-sidebar-title { font-weight: 700; font-size: 1rem; margin: 0 0 12px; }

.cv-progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--hanad-muted); margin-bottom: 4px; }
.cv-progress-label strong { color: var(--hanad-primary); }
.cv-progress-bar { height: 6px; background: var(--hanad-border); border-radius: 3px; overflow: hidden; }
.cv-progress-fill { height: 100%; background: var(--hanad-primary); border-radius: 3px; transition: width .3s; }
.cv-progress-count { font-size: .78rem; color: var(--hanad-muted); margin: 4px 0 0; }

.cv-nav { padding: 8px 0; }

.cv-nav-overview {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  font-size: .9rem;
  color: var(--hanad-muted);
  text-decoration: none;
  transition: background .15s;
}
.cv-nav-overview:hover, .cv-nav-overview--active { background: var(--hanad-accent); color: var(--hanad-primary); }

.cv-nav-chapter-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: none; border: none; cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  text-align: left;
  color: inherit;
  transition: background .15s;
}
.cv-nav-chapter-btn:hover { background: rgba(0,0,0,.04); }

.cv-nav-chapter-title { flex: 1; }
.cv-nav-chapter-frac { font-size: .78rem; color: var(--hanad-muted); font-weight: 400; margin-right: 8px; }

.cv-nav-chapter-body { list-style: none; margin: 0; padding: 0; }

.cv-nav-lesson {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px 8px 32px;
  font-size: .85rem;
  color: inherit; text-decoration: none;
  transition: background .15s;
  border-left: 3px solid transparent;
}
.cv-nav-lesson:hover { background: rgba(0,0,0,.04); color: inherit; }
.cv-nav-lesson--active { background: var(--hanad-accent) !important; border-left-color: var(--hanad-primary) !important; color: var(--hanad-primary) !important; font-weight: 600; }
.cv-nav-lesson--done .cv-nav-lesson-icon { color: var(--hanad-success); }
.cv-nav-lesson--locked { color: var(--hanad-muted); padding: 8px 20px 8px 32px; display: flex; align-items: center; gap: 8px; font-size: .85rem; cursor: not-allowed; }
.cv-nav-lesson-dur { margin-left: auto; font-size: .75rem; color: var(--hanad-muted); }
.cv-nav-lesson-icon { color: var(--hanad-muted); flex-shrink: 0; }

.cv-main { flex: 1; overflow-y: auto; }

.cv-overview { max-width: 800px; padding: 32px 40px; }
.cv-overview-thumb { width: 100%; border-radius: 12px; margin-bottom: 24px; max-height: 300px; object-fit: cover; }
.cv-overview-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cv-overview-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.cv-overview-instructor { font-size: .9rem; color: var(--hanad-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }

.cv-overview-enroll { background: var(--hanad-accent); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.cv-overview-progress-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.cv-overview-cta {
  display: inline-block; margin-top: 14px;
  background: var(--hanad-primary); color: #fff !important;
  padding: 10px 24px; border-radius: 8px; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.cv-overview-cta:hover { background: var(--hanad-primary-dark); }
.cv-overview-complete { color: var(--hanad-success); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.cv-overview-desc { font-size: .97rem; line-height: 1.7; }

/* Course overview extra sections */
.cv-section { margin-bottom: 32px; }
.cv-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--hanad-border); }
.cv-outcome-list { list-style: none; padding: 0; margin: 0; }
.cv-outcome-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: .95rem; }
.cv-outcome-list li::before { content: "✓"; color: var(--hanad-success); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

.cv-instructor-card { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--hanad-accent); border-radius: 10px; }
.cv-instructor-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--hanad-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }
.cv-instructor-name { font-weight: 700; }
.cv-instructor-role { font-size: .85rem; color: var(--hanad-muted); }

.cv-rating-summary { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--hanad-accent); border-radius: 10px; margin-bottom: 16px; }
.cv-rating-score { font-size: 2.5rem; font-weight: 800; color: var(--hanad-primary); line-height: 1; }
.cv-rating-stars { color: #f59e0b; font-size: 1.2rem; }
.cv-rating-count { font-size: .85rem; color: var(--hanad-muted); }
.cv-review-item { border-bottom: 1px solid var(--hanad-border); padding: 14px 0; }
.cv-review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .85rem; }
.cv-review-stars { color: #f59e0b; }
.cv-review-text { font-size: .92rem; }

/* Cancel enrollment button */
.cv-cancel-btn { font-size: .85rem; color: var(--hanad-muted); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; }
.cv-cancel-btn:hover { color: var(--hanad-danger); }

/* Lesson viewer inside cv-main */
.cv-lesson { max-width: 860px; padding: 32px 40px; }
.cv-lesson-header { margin-bottom: 24px; }
.cv-lesson-title { font-size: 1.6rem; font-weight: 700; }
.cv-lesson-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.cv-type-badge { padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.cv-type-badge.cv-type-video  { background: #dbeafe; color: #1d4ed8; }
.cv-type-badge.cv-type-audio  { background: #fce7f3; color: #9d174d; }
.cv-type-badge.cv-type-quiz   { background: #fef3c7; color: #92400e; }
.cv-type-badge.cv-type-text   { background: #d1fae5; color: #065f46; }
.cv-type-badge.cv-type-image  { background: #ede9fe; color: #5b21b6; }
.cv-type-badge.cv-type-mixed  { background: #f3f4f6; color: #374151; }
.cv-lesson-duration, .cv-lesson-lang { font-size: .82rem; color: var(--hanad-muted); }
.cv-completed-badge { display: inline-flex; align-items: center; gap: 6px; background: #d1fae5; color: var(--hanad-success); padding: 4px 12px; border-radius: 20px; font-size: .85rem; font-weight: 600; }

/* Video/audio embed */
.cv-video-wrap { position: relative; padding-bottom: 56.25%; border-radius: 10px; overflow: hidden; background: #000; margin-bottom: 24px; }
.cv-video-wrap iframe, .cv-video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.cv-audio-wrap { margin-bottom: 24px; }
.cv-audio-wrap audio { width: 100%; }
.cv-image-wrap img { border-radius: 10px; margin-bottom: 24px; }

.cv-text-content { line-height: 1.75; font-size: .97rem; margin-bottom: 24px; }
.cv-text-content img { border-radius: 8px; max-width: 100%; }

.cv-attachment-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--hanad-primary);
  color: var(--hanad-primary);
  border-radius: 8px;
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
  transition: background .15s;
}
.cv-attachment-link:hover { background: var(--hanad-accent); }

/* Quiz inside lesson */
.cv-quiz { background: #fff; border: 1px solid var(--hanad-border); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
[data-bs-theme="dark"] .cv-quiz { background: #1e2330; border-color: #2a3245; }
.cv-quiz-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.cv-quiz-stats { display: flex; gap: 16px; font-size: .85rem; color: var(--hanad-muted); margin-bottom: 12px; }
.cv-quiz-q { margin-bottom: 20px; }
.cv-quiz-qtext { font-weight: 600; margin-bottom: 10px; }
.cv-quiz-qnum { color: var(--hanad-primary); margin-right: 4px; }
.cv-quiz-marks { font-size: .8rem; color: var(--hanad-muted); font-weight: 400; margin-left: 6px; }
.cv-quiz-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 1px solid var(--hanad-border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: background .15s; }
.cv-quiz-opt:hover { background: var(--hanad-accent); border-color: var(--hanad-primary); }
.cv-quiz-opt input { margin-top: 3px; accent-color: var(--hanad-primary); }
.cv-quiz-opt-key { font-weight: 700; color: var(--hanad-primary); min-width: 18px; }
.cv-quiz-submit { background: var(--hanad-primary); color: #fff; border: none; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .15s; }
.cv-quiz-submit:hover { background: var(--hanad-primary-dark); }
.cv-quiz-submit:disabled { opacity: .6; cursor: not-allowed; }
.cv-quiz-result { border-radius: 10px; padding: 24px; text-align: center; margin-top: 16px; }
.cv-quiz-result--pass { background: #d1fae5; color: #065f46; }
.cv-quiz-result--fail { background: #fee2e2; color: #991b1b; }
.cv-quiz-result-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.cv-quiz-next-btn { display: inline-block; margin-top: 14px; background: var(--hanad-success); color: #fff !important; padding: 10px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.cv-quiz-retry-btn { margin-top: 14px; background: none; border: 2px solid currentColor; padding: 8px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.cv-quiz-exhausted { background: #f9fafb; border: 1px dashed var(--hanad-border); border-radius: 8px; padding: 20px; text-align: center; color: var(--hanad-muted); }
.cv-quiz-best--pass { color: var(--hanad-success); font-weight: 600; }
.cv-quiz-best--fail { color: var(--hanad-danger); font-weight: 600; }

/* Lesson footer nav */
.cv-lesson-footer { border-top: 1px solid var(--hanad-border); padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cv-mark-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hanad-primary); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 20px; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: background .15s;
}
.cv-mark-btn:hover { background: var(--hanad-primary-dark); }
.cv-mark-btn:disabled { opacity: .6; cursor: not-allowed; }
.cv-mark-btn--done { background: var(--hanad-success) !important; }

.cv-lesson-nav { display: flex; gap: 12px; margin-left: auto; }
.cv-lesson-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--hanad-border);
  border-radius: 8px;
  text-decoration: none; color: inherit;
  font-size: .9rem; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.cv-lesson-nav-btn:hover { border-color: var(--hanad-primary); background: var(--hanad-accent); color: var(--hanad-primary); }
.cv-lesson-nav-label { font-size: .75rem; color: var(--hanad-muted); display: block; font-weight: 400; }
.cv-lesson-nav-title { display: block; font-size: .88rem; }
.cv-lesson-nav-next { background: var(--hanad-primary); color: #fff !important; border-color: var(--hanad-primary); }
.cv-lesson-nav-next:hover { background: var(--hanad-primary-dark); border-color: var(--hanad-primary-dark); color: #fff !important; }
.cv-lesson-nav-next .cv-lesson-nav-label { color: rgba(255,255,255,.75); }

/* ── Authentication pages ─────────────────────────────────── */
.auth-shell {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--hanad-light);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  padding: 40px 36px;
}
[data-bs-theme="dark"] .auth-card { background: #1e2330; box-shadow: none; border: 1px solid #2a3245; }

.auth-logo { font-size: 1.4rem; font-weight: 800; color: var(--hanad-primary); text-align: center; margin-bottom: 6px; }
.auth-title { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-subtitle { font-size: .9rem; color: var(--hanad-muted); text-align: center; margin-bottom: 28px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--hanad-muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--hanad-border); }

.auth-social-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--hanad-border);
  background: #fff; font-weight: 600; font-size: .95rem; cursor: pointer;
  text-decoration: none; color: inherit; margin-bottom: 10px;
  transition: background .15s, border-color .15s;
}
[data-bs-theme="dark"] .auth-social-btn { background: #252b3a; }
.auth-social-btn:hover { border-color: var(--hanad-primary); background: var(--hanad-accent); color: inherit; }
.auth-social-icon { width: 20px; height: 20px; }

.auth-otp-sent .auth-phone-section { display: none; }
.auth-otp-sent .auth-otp-section { display: block; }
.auth-otp-section { display: none; }

.phone-wrap { display: flex; gap: 8px; }
.phone-code-select { width: 110px; flex-shrink: 0; }

/* ── Profile page ────────────────────────────────────────── */
.profile-hero { background: linear-gradient(135deg, var(--hanad-primary) 0%, var(--hanad-secondary) 100%); color: #fff; padding: 40px 0; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.5); background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: #fff; }
.profile-name { font-size: 1.5rem; font-weight: 700; }
.profile-meta { opacity: .85; font-size: .9rem; }

.profile-stat-card { background: #fff; border: 1px solid var(--hanad-border); border-radius: 12px; padding: 20px; text-align: center; }
[data-bs-theme="dark"] .profile-stat-card { background: #1e2330; border-color: #2a3245; }
.profile-stat-num { font-size: 2rem; font-weight: 800; color: var(--hanad-primary); }
.profile-stat-label { font-size: .85rem; color: var(--hanad-muted); }

.profile-section { background: #fff; border: 1px solid var(--hanad-border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
[data-bs-theme="dark"] .profile-section { background: #1e2330; border-color: #2a3245; }
.profile-section-title { font-weight: 700; font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--hanad-border); }

.profile-course-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hanad-border); }
.profile-course-item:last-child { border-bottom: none; }
.profile-course-thumb { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--hanad-accent); flex-shrink: 0; }
.profile-course-title { font-weight: 600; font-size: .92rem; }
.profile-course-progress-bar { height: 4px; background: var(--hanad-border); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.profile-course-progress-fill { height: 100%; background: var(--hanad-primary); border-radius: 2px; }

/* ── Admin dashboard ─────────────────────────────────────── */
.admin-shell { display: flex; min-height: calc(100vh - 66px); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #1a2235; color: rgba(255,255,255,.8);
  overflow-y: auto; padding: 20px 0;
  position: sticky; top: 66px; height: calc(100vh - 66px);
}
.admin-sidebar-title { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); padding: 8px 16px 4px; }
.admin-sidebar-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,.35); padding: 8px 16px 4px;
  transition: color .15s;
}
.admin-sidebar-toggle:hover { color: rgba(255,255,255,.65); }
.admin-sidebar-toggle .toggle-chevron { font-size: .65rem; transition: transform .2s; }
.admin-sidebar-toggle.collapsed .toggle-chevron { transform: rotate(-90deg); }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: .88rem; border-left: 3px solid transparent;
  transition: background .15s;
}
.admin-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav-link.active { background: rgba(65,137,221,.2); border-left-color: var(--hanad-primary); color: #fff; font-weight: 600; }
.admin-nav-link i { font-size: .95rem; }
.admin-main { flex: 1; overflow: auto; background: var(--hanad-light); }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--hanad-border); padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; }
[data-bs-theme="dark"] .admin-topbar { background: #1e2330; border-color: #2a3245; }
.admin-content { padding: 28px; }
.admin-page-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.admin-page-sub { font-size: .9rem; color: var(--hanad-muted); }

.admin-kpi-card { background: #fff; border: 1px solid var(--hanad-border); border-radius: 12px; padding: 22px; }
[data-bs-theme="dark"] .admin-kpi-card { background: #1e2330; border-color: #2a3245; }
.admin-kpi-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 12px; }
.admin-kpi-num { font-size: 1.9rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.admin-kpi-label { font-size: .82rem; color: var(--hanad-muted); }

.admin-table-card { background: #fff; border: 1px solid var(--hanad-border); border-radius: 12px; overflow: hidden; }
[data-bs-theme="dark"] .admin-table-card { background: #1e2330; border-color: #2a3245; }
.admin-table-header { padding: 16px 20px; border-bottom: 1px solid var(--hanad-border); display: flex; align-items: center; justify-content: space-between; }
.admin-table-title { font-weight: 700; font-size: 1rem; }
.admin-table { width: 100%; font-size: .9rem; }
.admin-table thead th { background: var(--hanad-light); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; padding: 10px 16px; border-bottom: 1px solid var(--hanad-border); }
.admin-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--hanad-border); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(0,0,0,.02); }

/* Status badges */
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.status-badge.published  { background: #d1fae5; color: #065f46; }
.status-badge.draft      { background: #f3f4f6; color: #6b7280; }
.status-badge.archived   { background: #fee2e2; color: #991b1b; }
.status-badge.open       { background: #dbeafe; color: #1d4ed8; }
.status-badge.resolved   { background: #d1fae5; color: #065f46; }
.status-badge.in-progress { background: #fef3c7; color: #92400e; }

/* ═══════════════════════════════════════════════════════════
   LEARNER LOGIN PAGE  (ll-* classes)
   Two-column split: left brand panel + right form panel
   ═══════════════════════════════════════════════════════════ */

/* Outer wrapper — full viewport, no navbar gap */
.ll-wrap {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* ── Left brand panel ──────────────────────────────────────── */
.ll-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--hanad-primary) 0%, #2a5faa 100%);
  overflow: hidden;
  padding: 48px 40px;
  color: #fff;
}

.ll-brand-inner { position: relative; z-index: 2; max-width: 360px; }

.ll-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 32px;
}

.ll-brand-headline {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.ll-brand-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
}

.ll-brand-stats { display: flex; gap: 28px; }
.ll-stat { display: flex; flex-direction: column; }
.ll-stat-num { font-size: 1.5rem; font-weight: 800; color: #fff; }
.ll-stat-label { font-size: .78rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }

/* Decorative circles */
.ll-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.ll-circle-1 { width: 360px; height: 360px; bottom: -120px; right: -80px; }
.ll-circle-2 { width: 200px; height: 200px; top: -60px; left: -60px; }

/* ── Right form panel ──────────────────────────────────────── */
.ll-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--hanad-light);
}

[data-bs-theme="dark"] .ll-form-panel { background: #0f1117; }

.ll-form-wrap { width: 100%; max-width: 400px; }

.ll-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hanad-primary);
  margin-bottom: 6px;
}

.ll-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hanad-text);
  margin-bottom: 24px;
  line-height: 1.2;
}

.ll-form-sub { color: var(--hanad-muted); margin-bottom: 20px; }

/* Phone / Email tab bar */
.id-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--hanad-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.id-tab {
  flex: 1;
  padding: 9px 0;
  font-size: .88rem;
  font-weight: 500;
  background: #fff;
  border: none;
  cursor: pointer;
  color: var(--hanad-muted);
  transition: background .15s, color .15s;
}

[data-bs-theme="dark"] .id-tab { background: #1e2330; color: var(--hanad-muted); }

.id-tab-active {
  background: var(--hanad-primary);
  color: #fff;
  font-weight: 600;
}

/* Override dark-mode base rule so active tab stays visibly blue */
[data-bs-theme="dark"] .id-tab-active {
  background: var(--hanad-primary);
  color: #fff;
}

/* Phone input row */
.phone-wrap { display: flex; gap: 8px; }

.phone-dial {
  width: 110px;
  flex-shrink: 0;
  padding: 10px 8px;
  border: 1px solid var(--hanad-border);
  border-radius: 8px;
  font-size: .93rem;
  background: #fff;
  color: var(--hanad-text);
}

[data-bs-theme="dark"] .phone-dial { background: #1e2330; border-color: #2a3245; color: #e2e8f0; }

.phone-local {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--hanad-border);
  border-radius: 8px;
  font-size: .93rem;
  background: #fff;
  color: var(--hanad-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.phone-local:focus {
  border-color: var(--hanad-primary);
  box-shadow: 0 0 0 3px rgba(65,137,221,.15);
}

[data-bs-theme="dark"] .phone-local { background: #1e2330; border-color: #2a3245; color: #e2e8f0; }

/* Generic form group */
.hanad-form-group { margin-bottom: 18px; }
.hanad-form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--hanad-text);
  margin-bottom: 6px;
}
.hanad-form-group input,
.hanad-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--hanad-border);
  border-radius: 8px;
  font-size: .93rem;
  background: #fff;
  color: var(--hanad-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

/* Custom chevron for select — replaces browser default arrow */
.hanad-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.hanad-form-group input:focus,
.hanad-select:focus {
  border-color: var(--hanad-primary);
  box-shadow: 0 0 0 3px rgba(65,137,221,.15);
}

[data-bs-theme="dark"] .hanad-form-group input,
[data-bs-theme="dark"] .hanad-select {
  background-color: #1e2330;
  border-color: #2a3245;
  color: #e2e8f0;
}

/* Chevron icon in dark mode only for the select, not text inputs */
[data-bs-theme="dark"] .hanad-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* OTP input — large, centered */
.hanad-otp-input {
  text-align: center;
  font-size: 1.5rem !important;
  letter-spacing: .3em;
  font-weight: 700 !important;
}

/* Primary button */
.ll-btn-primary {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--hanad-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s, transform .1s;
}
.ll-btn-primary:hover { background: #3070c0; }
.ll-btn-primary:active { transform: scale(.98); }
.ll-btn-primary:disabled { opacity: .65; cursor: not-allowed; }

/* "Switch" link below button */
.ll-switch-link {
  margin-top: 18px;
  font-size: .88rem;
  color: var(--hanad-muted);
  text-align: center;
}
.ll-switch-link a { color: var(--hanad-primary); font-weight: 600; }

/* Alert boxes */
.hanad-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
}
.hanad-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.hanad-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* "or continue with" divider */
.ll-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--hanad-muted);
  font-size: .82rem;
}
.ll-divider::before,
.ll-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hanad-border);
}

/* Social login button row */
.ll-social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.ll-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--hanad-border);
  border-radius: 8px;
  background: #fff;
  color: var(--hanad-text);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.ll-social-btn:hover {
  background: var(--hanad-light);
  border-color: #c0c8d4;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.ll-social-btn:active { transform: scale(.98); }

[data-bs-theme="dark"] .ll-social-btn {
  background: #1e2330;
  border-color: #2a3245;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .ll-social-btn:hover { background: #252d40; }

/* ── Dev OTP popup ─────────────────────────────────────────── */
.dev-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dev-modal {
  background: #1e2330;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.dev-modal-tag {
  display: inline-block;
  background: #f59e0b;
  color: #78350f;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.dev-modal-label { font-size: .85rem; color: #94a3b8; margin-bottom: 8px; }
.dev-modal-code {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: .25em;
  color: #fff;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.dev-modal-note { font-size: .75rem; color: #64748b; margin-bottom: 20px; line-height: 1.5; }
.dev-modal-btn {
  background: var(--hanad-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.dev-modal-btn:hover { background: #3070c0; }

/* ═══════════════════════════════════════════════════════════
   REGISTER PAGE  (rg-* classes)
   Mirrors ll-* two-column layout with benefits panel
   ═══════════════════════════════════════════════════════════ */

.rg-wrap {
  display: flex;
  min-height: calc(100vh - 60px);
}

.rg-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a5faa 0%, var(--hanad-secondary) 100%);
  overflow: hidden;
  padding: 48px 40px;
  color: #fff;
}

.rg-brand-inner { position: relative; z-index: 2; max-width: 360px; }

.rg-headline {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff;
}

.rg-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 28px;
}

.rg-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rg-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .93rem;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
}

.rg-benefit-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Register page (auth-card variant) ─────────────────────── */
.auth-page-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--hanad-light);
}

[data-bs-theme="dark"] .auth-page-wrap { background: #0f1117; }

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

[data-bs-theme="dark"] .auth-card { background: #1e2330; }

.auth-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-card-logo-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--hanad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}

.auth-card-logo-name { font-size: 1.1rem; font-weight: 800; color: var(--hanad-text); }

.auth-title  { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { font-size: .9rem; color: var(--hanad-muted); margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .cv-shell { flex-direction: column; }
  .cv-sidebar { width: 100%; height: auto; position: relative; top: 0; border-right: none; border-bottom: 1px solid var(--hanad-border); }
  .cv-overview { padding: 20px 16px; }
  .cv-lesson { padding: 20px 16px; }
  .cv-lesson-footer { padding: 16px; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; top: 0; display: flex; flex-wrap: wrap; padding: 8px; gap: 4px; }
  .admin-nav-link { padding: 8px 12px; font-size: .82rem; border-radius: 6px; border-left: none; }
  .admin-nav-link.active { border-left: none; background: rgba(65,137,221,.2); }
  .admin-sidebar-title { display: none; }
  .home-hero-title { font-size: 1.8rem; }
  /* Login + Register pages: stack panels on tablet/mobile */
  .ll-brand, .rg-brand { display: none; }
  .ll-wrap, .rg-wrap { min-height: auto; }
  .ll-form-panel { padding: 32px 16px; }
}

@media (max-width: 767.98px) {
  .auth-card { padding: 28px 20px; }
  .cv-lesson-nav { flex-direction: column; width: 100%; }
  .cv-lesson-nav-btn { width: 100%; justify-content: center; }
}

/* ── Course Review Form ──────────────────────────────────── */
.cv-review-form-card { background: var(--hanad-surface); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--hanad-border); }
.cv-star-picker { display: flex; gap: 6px; margin: .5rem 0 4px; }
.cv-star-btn { background: none; border: none; font-size: 2rem; color: #d1d5db; cursor: pointer; padding: 0; line-height: 1; transition: color .1s, transform .1s; }
.cv-star-btn:hover { transform: scale(1.15); }
.cv-star-btn--active { color: #f59e0b; }
.cv-star-label { font-size: .85rem; color: var(--hanad-muted); min-height: 1.2em; margin-bottom: .75rem; }
.cv-review-textarea { width: 100%; padding: .65rem 1rem; border-radius: 8px; border: 1.5px solid var(--hanad-border); background: var(--hanad-bg); color: var(--hanad-text); font-size: .95rem; resize: vertical; margin-bottom: .85rem; font-family: inherit; }
.cv-review-textarea:focus { outline: none; border-color: var(--hanad-primary); }
.cv-submit-review-btn { background: var(--hanad-primary); color: #fff; border: none; border-radius: 8px; padding: .55rem 1.4rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.cv-submit-review-btn:disabled { opacity: .65; cursor: default; }
[data-bs-theme="dark"] .cv-review-textarea { background: var(--hanad-surface); }

/* ── RTL overrides (Arabic) ──────────────────────────────── */
[dir="rtl"] .admin-nav-link { border-left: none; border-right: 3px solid transparent; }
[dir="rtl"] .admin-nav-link.active { border-right-color: var(--hanad-primary); border-left: none; }
[dir="rtl"] .admin-sidebar { text-align: right; }
[dir="rtl"] .admin-nav-link i, [dir="rtl"] .admin-nav-link .bi { margin-right: 0; margin-left: .5rem; }
[dir="rtl"] .admin-kpi-card { text-align: right; }
[dir="rtl"] table th, [dir="rtl"] table td { text-align: right; }
[dir="rtl"] table th.text-center, [dir="rtl"] table td.text-center { text-align: center; }
[dir="rtl"] table th.text-end, [dir="rtl"] table td.text-end { text-align: left; }
[dir="rtl"] .modal-footer { flex-direction: row-reverse; }
[dir="rtl"] .d-flex.gap-1, [dir="rtl"] .d-flex.gap-2 { flex-direction: row-reverse; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: .25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: .25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: .5rem !important; }
[dir="rtl"] body { font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif; }
