/* ============================================================
   SIAKAD-CSF — Custom Styles
   Extracted from monolithic SIAKAD-CSF.html
   Design system: Plus Jakarta Sans + JetBrains Mono
   Palette: Indigo primary, semantic emerald/amber/red
   Supports light / dark theme via [data-theme="dark"]
   ============================================================ */

/* ============================================================
   SIAKAD-CSF v1.4 — SISTEM INFORMASI AKADEMIK CYBER SECURITY FUNDAMENTAL
     Portal Guru: kelola mata pelajaran dari semua sisi (materi, jobsheet, ujian, akun, hasil, absensi)
     Basis: mesin ujian dual-portal generasi v10.5 — seluruh fitur dipertahankan
     v9.1: fix tinggi .question-card-wrapper (align-items: flex-start) + reset scroll antar soal
     v9.2: lebar .question-card-wrapper mengikuti lebar .quiz-content (--quiz-card-max)
     v9.3: konten dalam kartu menyesuaikan lebar kartu (hapus max-w-*) + tinggi textarea mengikuti isi (autoGrow)
     v9.4: gambar soal: lightbox zoom (tombol/roda/klik-ganda/cubit) + fit + 1:1 + geser
     v9.5: soal audio & video dari URL YouTube (thumbnail klik-putar, embed nocookie) + editor media + badge
     v9.6: rekap nilai per kelas + analisis per kelas (statistik, distribusi, butir) & per siswa (modal rinci)
     v9.7: data master Murid & Kelas — import CSV/Excel/tempel, CRUD, autofill identitas, validasi nama
     v9.8: login siswa (NIS + password), beranda data siswa, keterangan soal,
           kisi-kisi otomatis, peraturan ujian, tombol Mulai Ujian
     v10.0: bank soal (CRUD 8 tipe + import JSON) & jadwal quiz (jendela waktu,
           kuota percobaan, acak soal/opsi, penugasan kelas, gating Mulai)
     v10.1: Dashboard Admin lengkap (14 seksi) + Dashboard Murid
     v10.2: Dashboard Murid NEO — hero, statistik, spotlight ujian, countdown
     v10.3: Dashboard Murid sidebar (8 menu) + 5 halaman: kisi-kisi, peraturan,
           panduan, profil (ganti password), tentang + drawer mobile
     v10.4: hasil audit menyeluruh — notice jadwal adaptif, PIN hanya huruf
           keypad, changelog header, sinkronisasi v10_style.css
     v10.5: seksi User & Password (kelola akun murid: set/reset/generate password,
           reveal, ubah password default, export kredensial CSV) + import murid
           kolom Password + dashboard: statistik akun & kesehatan data master
     v1.5 : Bank Soal berjenjang — Bank Soal berisi KELOMPOK SOAL (CRUD, kartu
           statistik, navigasi dua level), tiap kelompok berisi soal-soal
           khususnya (soal.bankId); editor soal memilih kelompok; filter
           kelompok di Jadwal Ujian, Ujian Akhir & Quiz Bab; kunci jawaban,
           export/import JSON, backup-restore & dashboard komposisi sadar
           kelompok; migrasi otomatis soal lama
   Tipografi  : Plus Jakarta Sans + JetBrains Mono
   Palet      : Indigo primier, slate netral, semantik emerald/amber/red
   Prinsip    : kartu solid + border tipis + bayangan halus (tanpa
                glassmorphism berlebihan), hierarki jelas, WCAG AA
   Catatan    : nama kelas & variabel CSS dipertahankan 100% dari v8.1
                agar seluruh logika JS tetap berfungsi tanpa perubahan.
   ============================================================ */

/* ---------- FALLBACK MINIMAL (jika CDN gagal dimuat) ---------- */
.hidden { display: none !important; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eceff5;
  --glass: #f8fafc;
  --glass-strong: #ffffff;
  --glass-hover: #f1f4f9;
  --surface-blur: rgba(255, 255, 255, 0.88);

  --border: #e4e8f0;
  --border-strong: #d2d9e4;

  --text-primary: #0f172a;
  --text-secondary: rgba(15, 23, 42, 0.78);
  --text-muted: rgba(15, 23, 42, 0.56);
  --text-faint: rgba(15, 23, 42, 0.42);

  --accent-violet: #4f46e5;   /* primer: indigo 600 */
  --accent-pink: #7c3aed;     /* sekunder: violet 600 */
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-red: #dc2626;
  --accent-blue: #2563eb;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);

  --overlay: rgba(15, 23, 42, 0.55);
  --input-bg: #ffffff;
  --code-bg: #f1f5f9;
  --story-bg: rgba(79, 70, 229, 0.05);
  --story-border: rgba(79, 70, 229, 0.40);

  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px;

  /* v9.2: lebar kartu soal. 'none' = wrapper penuh mengikuti lebar .quiz-content;
     ganti mis. 1100px bila ingin membatasi lebar kartu di layar sangat lebar. */
  --quiz-card-max: none;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 14px;
  --radius-xl: 18px; --radius-2xl: 22px; --radius-full: 9999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --touch-min: 44px;

  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-3xl: 1.875rem; --text-4xl: 2.25rem;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #0b1220;
  --bg-secondary: #121a2b;
  --bg-tertiary: #1a2438;
  --glass: #16203a;
  --glass-strong: #141d33;
  --glass-hover: #1c2742;
  --surface-blur: rgba(11, 18, 32, 0.88);

  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* FIX: Increased opacity for better contrast in dark theme */
  --text-primary: #f1f5f9;
  --text-secondary: rgba(241, 245, 249, 0.92);
  --text-muted: rgba(241, 245, 249, 0.72);
  --text-faint: rgba(241, 245, 249, 0.52);

  --accent-violet: #818cf8;
  --accent-pink: #a78bfa;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;
  --accent-blue: #60a5fa;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);

  --overlay: rgba(2, 6, 16, 0.72);
  --input-bg: rgba(255, 255, 255, 0.05);
  --code-bg: rgba(255, 255, 255, 0.06);
  --story-bg: rgba(99, 102, 241, 0.10);
  --story-border: rgba(99, 102, 241, 0.45);
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  min-height: 100vh; min-height: 100dvh;
  color: var(--text-primary);
  transition: background var(--transition-base), color var(--transition-base);
  touch-action: manipulation;
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
}
body.app-active { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.015em; line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace; }

/* ---------- SURFACE ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}
.glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(79, 70, 229, 0.08); border: 1px solid rgba(79, 70, 229, 0.22);
  color: var(--accent-violet); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.06em;
}
[data-theme="dark"] .chip {
  background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.35);
}

/* ---------- INPUT ---------- */
.input-pro, .qe-option, .qe-fill-accept, .qe-ordering-item {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  min-height: var(--touch-min);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input-pro:focus, .qe-option:focus, .qe-fill-accept:focus, .qe-ordering-item:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}
.focus\:ring-violet-400:focus { --tw-ring-color: #6366f1 !important; }

/* ---------- ANIMASI ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.35); } 70% { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); } }
@keyframes confetti-fall { 0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
@keyframes pop { 0% { transform: scale(0.96); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes toast-in { from { transform: translateX(calc(100% + 20px)); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(calc(100% + 20px)); opacity: 0; } }
@keyframes toast-progress { from { width: 100%; } to { width: 0%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.fade-in-up { animation: fadeInUp 0.35s ease-out; }
.slide-in { animation: slideIn 0.3s ease-out; }
.pulse-ring { animation: pulse-ring 2.5s ease-in-out infinite; }
.pop { animation: pop 0.25s ease-out; }
.shake { animation: shake 0.5s; }
.confetti { position: fixed; width: 10px; height: 10px; pointer-events: none; animation: confetti-fall 3s linear forwards; z-index: 9999; }

/* ---------- LAYOUT HALAMAN UJIAN (quiz screen) ---------- */
.quiz-layout { display: flex; flex-direction: column; height: 100dvh; min-height: 0; }
.quiz-topbar {
  flex-shrink: 0;
  background: var(--surface-blur);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  padding-top: calc(10px + var(--safe-top));
}
.quiz-progress {
  flex-shrink: 0;
  background: var(--surface-blur);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 2px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.quiz-main { flex: 1; display: grid; grid-template-columns: 1fr 296px; min-height: 0; }
.quiz-content {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: var(--space-6) var(--space-5) var(--space-8);
  display: flex; justify-content: center;
  /* FIX v9.1 — wrapper ikut tinggi questionCard:
     tanpa align-items, default flex = stretch yang MENGIKAT tinggi
     .question-card-wrapper ke tinggi area konten (bukan ke tinggi kartu):
     - soal pendek  -> kartu kosong memanjang ke bawah;
     - soal panjang -> isi kartu meluber keluar background wrapper.
     align-items: flex-start membuat wrapper berukuran pas mengikuti card. */
  align-items: flex-start;
}
.question-card-wrapper {
  width: 100%; max-width: var(--quiz-card-max, none); /* v9.2: mengikuti lebar .quiz-content penuh */
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.quiz-sidebar {
  border-left: 1px solid var(--border);
  background: var(--bg-primary);
  min-height: 0; overflow: hidden;
}
.quiz-sidebar-inner { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: var(--space-5) var(--space-4); }
.quiz-bottomnav {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  background: var(--surface-blur);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  padding-bottom: calc(10px + var(--safe-bottom));
}
@media (max-width: 1023px) {
  .quiz-main { grid-template-columns: 1fr; }
  .quiz-sidebar { display: none; }
  .question-card-wrapper { padding: var(--space-5); border-radius: var(--radius-xl); }
  .quiz-content { padding: var(--space-4) var(--space-4) var(--space-8); }
}
@media (max-width: 640px) {
  .quiz-topbar { padding: 8px 12px; padding-top: calc(8px + var(--safe-top)); }
  .quiz-progress { padding: 2px 12px 10px; }
  .quiz-bottomnav { padding: 8px 10px; padding-bottom: calc(8px + var(--safe-bottom)); }
  .quiz-bottomnav #nextBtn { padding-left: 12px; padding-right: 12px; }
  .question-card-wrapper { padding: var(--space-4); }
}

/* ---------- PIN ---------- */
.pin-container { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.pin-dots { display: flex; gap: var(--space-4); margin: var(--space-6) 0; }
.pin-dot {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: var(--input-bg); border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-2xl); font-weight: 700; font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary); transition: all var(--transition-fast);
}
.pin-dot.filled { background: var(--accent-violet); color: white; border-color: var(--accent-violet); }
.pin-dot.error { background: var(--accent-red); color: white; border-color: var(--accent-red); animation: shake 0.5s; }
.pin-dot.success { background: var(--accent-emerald); color: white; border-color: var(--accent-emerald); }
.pin-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); max-width: 320px; width: 100%; }
.pin-key {
  aspect-ratio: 1.3; border-radius: var(--radius-md);
  background: var(--bg-secondary); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl); font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary); cursor: pointer;
  transition: all var(--transition-fast); min-height: var(--touch-min); user-select: none;
}
.pin-key:hover { background: var(--glass-hover); }
.pin-key:active { transform: scale(0.95); background: var(--bg-tertiary); }
.pin-key.letter { font-size: var(--text-base); }
.pin-key.action { background: var(--accent-violet); color: white; border-color: var(--accent-violet); }
.pin-key.danger { background: transparent; color: var(--accent-red); border-color: transparent; }

/* ---------- ADMIN LAYOUT ---------- */
.admin-layout { display: grid; grid-template-columns: 264px 1fr; height: 100dvh; overflow: hidden; }
@media (max-width: 1024px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-sidebar {
  background: var(--bg-secondary); border-right: 1px solid var(--border);
  padding: var(--space-5) var(--space-4);
  display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed; top: 0; left: 0; width: 288px; max-width: 85vw; height: 100dvh; z-index: 60;
    transform: translateX(-100%); transition: transform var(--transition-slow); box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.mobile-open { transform: translateX(0); }
}
.admin-nav-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 12px; border-radius: var(--radius-md);
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600; font-size: var(--text-sm);
  margin-bottom: 2px; border: 1px solid transparent;
}
.admin-nav-item:hover { background: var(--glass-hover); color: var(--text-primary); }
.admin-nav-item.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-violet); border-color: rgba(79, 70, 229, 0.22);
}
[data-theme="dark"] .admin-nav-item.active {
  background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.32);
}
.admin-nav-item i { width: 20px; text-align: center; font-size: 14px; }
.admin-content { padding: var(--space-6); overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .admin-content { padding: var(--space-4); } }
.admin-section { display: none; }
/* UX fix: subtle fadeIn (no vertical translate) to avoid janky wave on every menu switch */
.admin-section.active { display: block; animation: dashFadeIn 0.18s ease-out; }
@keyframes dashFadeIn { from { opacity: 0; } to { opacity: 1; } }
/* respect reduced motion */
@media (prefers-reduced-motion: reduce) { .admin-section.active { animation: none; } }
.admin-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-5);
  margin-bottom: var(--space-4); box-shadow: var(--shadow-xs);
}
.admin-stat {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4);
  text-align: center; transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  /* UX fix: flex column for consistent vertical centering + equal height in grid */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 108px;
}
.admin-stat:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.admin-stat i { opacity: 0.9; }
/* UX fix: prevent layout collapse when dynamic dashboard containers are empty (before JS populates) */
#dashChart { min-height: 160px; }
#dashTop5, #dashJadwalList, #dashRecentList, #dashCakupanList { min-height: 80px; }
#dashHealth { min-height: 96px; }
#stuNextExam, #gamBerandaPanel { min-height: 60px; }
#stuRecentList { min-height: 80px; }
/* UX fix: subtle fadeIn when a student view becomes visible (display:none → block) */
[id^="stuView"]:not(.hidden) { animation: dashFadeIn 0.18s ease-out; }
/* empty-state placeholder for dynamic containers */
#dashTop5:empty::before, #dashJadwalList:empty::before, #dashRecentList:empty::before,
#stuRecentList:empty::before, #stuNextExam:empty::before, #gamBerandaPanel:empty::before {
  content: 'Memuat…'; display: block; padding: 16px; text-align: center;
  color: var(--text-muted); font-size: 12px; font-style: italic;
}
/* sk-mini quick-link tiles: consistent height + proper button semantics */
.sk-mini { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 88px; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.sk-mini:hover { transform: translateY(-2px); }
.admin-input {
  width: 100%; background: var(--input-bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 10px 14px; color: var(--text-primary);
  font-size: var(--text-sm); transition: all var(--transition-fast);
  outline: none; font-family: inherit; min-height: var(--touch-min);
}
.admin-input:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); }
.admin-textarea {
  width: 100%; background: var(--input-bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: var(--space-3) 14px; color: var(--text-primary);
  font-size: var(--text-sm); transition: all var(--transition-fast);
  outline: none; font-family: inherit; resize: vertical; min-height: 100px; line-height: 1.6;
}
.admin-textarea:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); }
.admin-select {
  width: 100%; background: var(--input-bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 10px 14px; color: var(--text-primary);
  font-size: var(--text-sm); outline: none; cursor: pointer; min-height: var(--touch-min);
  font-family: inherit;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.admin-table th {
  background: var(--bg-tertiary); padding: 10px var(--space-3);
  text-align: left; font-weight: 700; color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.admin-table td { padding: 10px var(--space-3); border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--glass-hover); }

/* ---------- STORY CARD ---------- */
.story-card {
  background: var(--story-bg); border-left: 3px solid var(--story-border);
  border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-4);
}
.story-card-header {
  display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3);
  font-size: 11px; font-weight: 700; color: var(--accent-violet);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.story-card-content { font-size: var(--text-sm); line-height: 1.75; color: var(--text-primary); white-space: pre-line; }
.story-card-icon {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--accent-violet); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}

/* ---------- GAMBAR SOAL ---------- */
.question-image-container { margin-bottom: var(--space-4); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-tertiary); border: 1px solid var(--border); }
.question-image { width: 100%; max-height: 400px; object-fit: contain; display: block; }
.question-image-caption { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); color: var(--text-muted); background: var(--glass); border-top: 1px solid var(--border); display: flex; align-items: center; gap: var(--space-2); }
.question-image-error { padding: var(--space-6); text-align: center; color: var(--text-muted); font-size: var(--text-sm); }
.image-preview-box { margin-top: var(--space-2); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-tertiary); border: 1px solid var(--border); max-height: 200px; display: flex; align-items: center; justify-content: center; }
.image-preview-box img { max-width: 100%; max-height: 200px; object-fit: contain; }
.image-preview-placeholder { padding: var(--space-4); text-align: center; color: var(--text-muted); font-size: var(--text-xs); }

/* ---------- ZOOM & FIT GAMBAR (v9.4) ---------- */
.question-image-container { position: relative; cursor: zoom-in; }
.question-image-container:hover .question-image { filter: brightness(0.97); }
.qimg-zoom-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); color: var(--accent-violet);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  cursor: pointer; font-size: 14px; transition: all var(--transition-fast);
}
.qimg-zoom-btn:hover { background: var(--accent-violet); color: #fff; }
[data-theme="dark"] .qimg-zoom-btn { background: rgba(15, 23, 42, 0.85); color: #a5b4fc; }
.img-lightbox {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(2, 6, 23, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
}
.img-lb-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; padding-top: calc(10px + var(--safe-top)); }
.img-lb-btn {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer; font-size: 14px;
  transition: all var(--transition-fast);
}
.img-lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.img-lb-btn-wide { width: auto; padding: 0 12px; font-size: 12px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.img-lb-level { font-family: 'JetBrains Mono', monospace; font-size: 12px; min-width: 52px; text-align: center; color: #cbd5e1; }
.img-lb-cap { flex: 1; min-width: 0; font-size: 12px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: grab; touch-action: none; padding: 12px; }
.img-lb-stage.dragging { cursor: grabbing; }
.img-lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; user-select: none; -webkit-user-drag: none; will-change: transform; }
@media (max-width: 640px) { .img-lb-cap { display: none; } }


/* ---------- MEDIA SOAL: VIDEO & AUDIO (v9.5) ---------- */
.media-badge.video { background: rgba(220, 38, 38, 0.12); color: var(--accent-red); }
.media-badge.audio { background: rgba(8, 145, 178, 0.12); color: #0891b2; }
.qmedia-block { margin: 0 0 16px; }
.qmedia-frame { position: relative; width: 100%; max-width: 720px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0f172a; border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); }
.qmedia-frame.audio-mode { max-width: 400px; }
.qmedia-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.qmedia-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qmedia-frame.thumb-fail { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%); }
.qmedia-frame.thumb-fail .qmedia-thumb { display: none; }
.qmedia-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 9999px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: rgba(220, 38, 38, 0.95); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); transition: transform var(--transition-fast), background var(--transition-fast); }
.qmedia-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #dc2626; }
.qmedia-play.audio { background: rgba(8, 145, 178, 0.95); }
.qmedia-play.audio:hover { background: #0891b2; }
.qmedia-frame.audio-mode .qmedia-play { width: 56px; height: 56px; font-size: 19px; }
.qmedia-source-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 9999px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; color: #e2e8f0; background: rgba(2, 6, 23, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.qmedia-source-badge .fa-youtube { color: #ff0033; font-size: 13px; }
.qmedia-source-badge .fa-headphones { color: #22d3ee; }
.qmedia-video, .qmedia-audio { display: block; width: 100%; max-width: 720px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--border-strong); background: #000; box-shadow: var(--shadow-md); }
.qmedia-audio { max-width: 480px; }
.qmedia-caption { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--text-muted); text-align: center; }
.qmedia-open { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 6px auto 0; width: fit-content; font-size: 11px; font-weight: 600; color: var(--accent-violet); text-decoration: none; }
.qmedia-open:hover { text-decoration: underline; }
@media (max-width: 640px) { .qmedia-play { width: 52px; height: 52px; font-size: 18px; } .qmedia-frame.audio-mode { max-width: 100%; } }



/* ---------- DATA MASTER: MURID & KELAS (v9.7) ---------- */
.dm-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-tertiary); border: 1px solid var(--border); }
.dm-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-secondary); background: transparent; transition: all var(--transition-fast); }
.dm-tab:hover { color: var(--text-primary); }
.dm-tab.active { background: var(--bg-secondary); color: var(--accent-violet); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .dm-tab.active { color: #fff; }
.dm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; font-size: 11px; font-weight: 700; background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-secondary); }
.dm-chip b { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.dm-st { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 10px; font-weight: 800; letter-spacing: 0.03em; white-space: nowrap; }
.dm-st.ok { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.dm-st.dup { background: rgba(245, 158, 11, 0.14); color: var(--accent-amber); }
.dm-st.err { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); }
.dm-hint-ok { color: var(--accent-emerald); }
.dm-hint-warn { color: var(--accent-amber); }
.dm-drop { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 20px 14px; text-align: center; cursor: pointer; transition: all var(--transition-fast); background: var(--bg-tertiary); }
.dm-drop:hover, .dm-drop.dragover { border-color: var(--accent-violet); background: rgba(99, 102, 241, 0.07); }
.dm-scroll { max-height: 430px; overflow: auto; }
.dm-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.dm-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

/* ---------- REKAP & ANALISIS (v9.6) ---------- */
.rq-chip { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.rq-bar { height: 10px; border-radius: 9999px; background: var(--bg-tertiary); overflow: hidden; flex: 1; min-width: 40px; }
.rq-bar > div { height: 100%; border-radius: 9999px; }
.rq-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 9999px; font-size: 11px; font-weight: 700; }
.rq-qrow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; }
.rq-qrow:nth-child(odd) { background: var(--glass-hover); }

/* ---------- BADGE MEDIA ---------- */
.media-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--radius-full); font-size: 9px; font-weight: 700; margin-left: 4px; letter-spacing: 0.03em; }
.media-badge.story { background: rgba(79, 70, 229, 0.12); color: var(--accent-violet); }
.media-badge.image { background: rgba(37, 99, 235, 0.12); color: var(--accent-blue); }

/* ---------- TOGGLE ---------- */
.toggle-pro { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; user-select: none; padding: var(--space-1) 0; }
.toggle-pro-input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-pro-track {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
  background: var(--border-strong); border-radius: var(--radius-full);
  transition: background var(--transition-base); box-shadow: none;
}
.toggle-pro-thumb {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  background: #ffffff; border-radius: 50%;
  transition: transform var(--transition-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: transparent;
}
.toggle-pro-input:checked + .toggle-pro-track { background: var(--accent-violet); }
.toggle-pro-input:checked + .toggle-pro-track .toggle-pro-thumb { transform: translateX(20px); color: var(--accent-violet); }
.toggle-pro-input:checked + .toggle-pro-track .toggle-pro-thumb i { transform: scale(1); }
.toggle-pro-thumb i { transition: transform var(--transition-fast); transform: scale(0); }
.toggle-pro-label { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.toggle-pro-label-text { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.toggle-pro-status { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-faint); }
.toggle-pro-input:checked ~ .toggle-pro-label .toggle-pro-status { color: var(--accent-violet); }

/* ---------- TOAST ---------- */
/* v2.1: pindah toast ke bottom-right agar tidak menutupi hero / header / dashboard path map */
.toast-container { position: fixed; bottom: calc(var(--space-5) + var(--safe-bottom, 0px)); right: var(--space-5); z-index: 10000; display: flex; flex-direction: column-reverse; gap: var(--space-3); max-width: calc(100vw - var(--space-10)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg);
  background: var(--bg-secondary); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); min-width: 280px; max-width: 400px;
  animation: toast-in 0.3s; position: relative; overflow: hidden;
}
.toast.toast-out { animation: toast-out 0.3s ease-in forwards; }
.toast-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; color: white; }
.toast-success .toast-icon { background: var(--accent-emerald); }
.toast-error .toast-icon { background: var(--accent-red); }
.toast-warning .toast-icon { background: var(--accent-amber); }
.toast-info .toast-icon { background: var(--accent-blue); }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: var(--text-sm); margin-bottom: 1px; color: var(--text-primary); }
.toast-message { font-size: var(--text-sm); color: var(--text-secondary); }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: var(--space-2); min-width: var(--touch-min); min-height: var(--touch-min); display: flex; align-items: center; justify-content: center; }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 2px; animation: toast-progress linear forwards; }
.toast-success .toast-progress { background: var(--accent-emerald); }
.toast-error .toast-progress { background: var(--accent-red); }
.toast-warning .toast-progress { background: var(--accent-amber); }
.toast-info .toast-progress { background: var(--accent-blue); }
@media (max-width: 640px) { .toast-container { top: auto; bottom: calc(var(--space-5) + var(--safe-bottom)); right: var(--space-3); left: var(--space-3); max-width: none; } .toast { min-width: auto; } }

/* ---------- THEME SWITCH ---------- */
.theme-switch {
  position: relative; width: 60px; height: 32px; flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary); border: 1px solid var(--border-strong);
  cursor: pointer; transition: all var(--transition-slow);
  overflow: hidden; display: flex; align-items: center;
}
[data-theme="dark"] .theme-switch { background: var(--bg-tertiary); }
.theme-switch::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #ffffff; box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow); z-index: 2;
}
[data-theme="dark"] .theme-switch::before { transform: translateX(28px); background: var(--accent-violet); }
.theme-switch-icons { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 12px; pointer-events: none; z-index: 1; }
.theme-switch-icons .fa-sun { color: var(--accent-amber); opacity: 1; }
.theme-switch-icons .fa-moon { color: var(--text-faint); opacity: 0.6; }
[data-theme="dark"] .theme-switch-icons .fa-sun { opacity: 0.5; }
[data-theme="dark"] .theme-switch-icons .fa-moon { opacity: 1; color: var(--accent-violet); }

/* ---------- SIDEBAR DRAWER ---------- */
.sidebar-overlay { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(4px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }
.sidebar-drawer {
  position: fixed; top: 0; right: 0; width: 380px; max-width: 90vw; height: 100dvh;
  background: var(--bg-secondary); border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); z-index: 50;
  transform: translateX(100%); transition: transform var(--transition-slow);
  overflow-y: auto; padding: var(--space-5);
}
.sidebar-drawer.active { transform: translateX(0); }

/* ---------- OPSI JAWABAN ---------- */
.option-card {
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer; min-height: var(--touch-min); user-select: none;
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); background: var(--bg-secondary);
}
.option-card:hover { border-color: var(--accent-violet); background: var(--glass-hover); box-shadow: var(--shadow-xs); }
.option-card:active { transform: scale(0.995); }
.option-card.selected {
  background: rgba(79, 70, 229, 0.06);
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 1px var(--accent-violet);
}
[data-theme="dark"] .option-card.selected { background: rgba(99, 102, 241, 0.12); }
.option-card.selected .option-letter { background: var(--accent-violet); color: white; }
.q-dot {
  transition: all var(--transition-fast); min-width: 40px; min-height: 40px;
  border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative;
  border: 1px solid var(--border);
}
.q-dot.active { background: var(--accent-violet); color: white; border-color: var(--accent-violet); box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35); }
.q-dot.answered { background: var(--accent-emerald); color: white; border-color: var(--accent-emerald); }
.q-dot.flagged { background: var(--accent-amber); color: white; border-color: var(--accent-amber); }
.timer-ring { transform: rotate(-90deg); }
.timer-ring circle { transition: stroke-dashoffset 1s linear; }
.level-lots { background: var(--accent-emerald); color: white; }
.level-hots { background: var(--accent-amber); color: white; }

/* ---------- TOMBOL ---------- */
.btn-primary {
  background: var(--accent-violet); color: white;
  transition: all var(--transition-fast);
  min-height: var(--touch-min);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-weight: 700;
  padding: 10px var(--space-5);
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.35);
  border: none; cursor: pointer; font-size: var(--text-sm);
  font-family: inherit; letter-spacing: 0.01em;
}
.btn-primary:hover { background: #4338ca; transform: translateY(-1px); box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-primary:hover { background: #4f46e5; }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  background: var(--bg-secondary); border: 1px solid var(--border-strong);
  transition: all var(--transition-fast); color: var(--text-primary);
  min-height: var(--touch-min); min-width: var(--touch-min);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-weight: 600;
  padding: 9px var(--space-4); cursor: pointer; font-size: var(--text-sm);
  font-family: inherit;
}
.btn-ghost:hover { background: var(--glass-hover); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:active { transform: scale(0.97); }
.btn-danger {
  background: var(--accent-red); color: white;
  transition: all var(--transition-fast); min-height: var(--touch-min);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-weight: 700;
  padding: 10px var(--space-5); border: none; cursor: pointer; font-family: inherit;
}
.btn-danger:hover { filter: brightness(1.08); transform: translateY(-1px); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--touch-min); height: var(--touch-min);
  border-radius: var(--radius-md); transition: all var(--transition-fast);
  cursor: pointer; background: transparent; border: 1px solid transparent; color: var(--text-secondary);
}
.icon-btn:hover { background: var(--glass-hover); color: var(--text-primary); }
.icon-btn:active { transform: scale(0.94); }
.modal-backdrop { background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 9000; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-violet); outline-offset: 2px;
}
.progress-bar-thick { height: 8px !important; }
.timer-text-large { font-size: clamp(11px, 2vw, 13px) !important; font-weight: 700; }
body.font-small { font-size: 14px; } body.font-medium { font-size: 16px; } body.font-large { font-size: 18px; }

/* ---------- GAMifikasi RINGAN ---------- */
.streak-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(217, 119, 6, 0.12); border: 1px solid rgba(217, 119, 6, 0.3);
  color: var(--accent-amber); font-weight: 700; font-size: var(--text-xs);
}
.streak-badge.hidden { display: none; }
.question-timer {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: var(--radius-full); background: var(--glass);
  border: 1px solid var(--border); font-size: var(--text-xs); font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.question-timer.warning { background: rgba(217, 119, 6, 0.1); border-color: rgba(217, 119, 6, 0.4); color: var(--accent-amber); }
.question-timer.danger { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.4); color: var(--accent-red); animation: pulse 1s infinite; }
.badge-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg);
  background: var(--bg-secondary); border: 1px solid var(--border);
  transition: all var(--transition-fast);
}
.badge-item.unlocked { background: rgba(79, 70, 229, 0.05); border-color: rgba(79, 70, 229, 0.3); }
[data-theme="dark"] .badge-item.unlocked { background: rgba(99, 102, 241, 0.1); }
.badge-item.locked { opacity: 0.45; filter: grayscale(0.7); }
.badge-icon { width: 42px; height: 42px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.leaderboard-row { transition: all var(--transition-fast); border-radius: var(--radius-md); }
.leaderboard-row:hover { background: var(--glass-hover); }
.rank-1 { background: rgba(217, 119, 6, 0.07); border-left: 3px solid #f59e0b; }
.rank-2 { background: rgba(100, 116, 139, 0.08); border-left: 3px solid #94a3b8; }
.rank-3 { background: rgba(154, 52, 18, 0.06); border-left: 3px solid #ea580c; }
.qr-container { background: white; padding: var(--space-4); border-radius: var(--radius-lg); display: inline-block; box-shadow: var(--shadow-sm); }
.admin-btn-float {
  position: fixed; bottom: calc(var(--space-4) + var(--safe-bottom)); right: var(--space-4);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-violet); color: white;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-md); z-index: 30; transition: all var(--transition-fast);
  opacity: 0.85; border: none;
}
.admin-btn-float:hover { opacity: 1; transform: scale(1.06); box-shadow: var(--shadow-lg); }

/* ---------- BADGE TIPE SOAL ---------- */
.qb-type-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.qb-type-pg { background: rgba(79, 70, 229, 0.1); color: var(--accent-violet); }
.qb-type-tf { background: rgba(37, 99, 235, 0.1); color: var(--accent-blue); }
.qb-type-fill { background: rgba(5, 150, 105, 0.1); color: var(--accent-emerald); }
.qb-type-multi { background: rgba(124, 58, 237, 0.1); color: var(--accent-pink); }
.qb-type-ordering { background: rgba(217, 119, 6, 0.12); color: var(--accent-amber); }
.qb-type-scenario { background: rgba(220, 38, 38, 0.1); color: var(--accent-red); }
.qb-type-case { background: rgba(79, 70, 229, 0.1); color: var(--accent-violet); }
.qb-type-essay { background: rgba(37, 99, 235, 0.1); color: var(--accent-blue); }
[data-theme="dark"] .qb-type-badge { filter: brightness(1.35); }

/* ---------- EDITOR SOAL ---------- */
.option-row { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.option-row input[type="text"] { flex: 1; }
.option-row .correct-indicator {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--input-bg); border: 2px solid var(--border-strong); color: transparent;
}
.option-row .correct-indicator.selected { background: var(--accent-emerald); border-color: var(--accent-emerald); color: white; }
.option-row .correct-indicator:hover { border-color: var(--accent-emerald); }
.keyword-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(79, 70, 229, 0.08); border: 1px solid rgba(79, 70, 229, 0.22); color: var(--accent-violet); font-size: var(--text-xs); font-weight: 600; margin: 2px; }
.keyword-tag button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; display: flex; opacity: 0.7; }
.keyword-tag button:hover { opacity: 1; }
.question-text-compact { font-size: 0.925rem; }

/* ---------- TAB ---------- */
.tab-btn {
  transition: all var(--transition-fast); border-bottom: 2px solid transparent;
  color: var(--text-muted); min-height: var(--touch-min);
  display: inline-flex; align-items: center;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; background: transparent; border-top: none; border-left: none; border-right: none;
  font-family: inherit; font-size: var(--text-xs);
}
.tab-btn:hover { color: var(--text-primary); background: var(--glass-hover); }
.tab-btn.active { color: var(--accent-violet); background: rgba(79, 70, 229, 0.08); border-bottom-color: var(--accent-violet); }
[data-theme="dark"] .tab-btn.active { background: rgba(99, 102, 241, 0.14); }

/* ---------- PENYESUAIAN KELAS TAILWIND (konsistensi palet v9) ---------- */
.from-violet-500.to-pink-500, .from-violet-500.via-purple-500.to-pink-500 {
  background-image: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
}
.bg-gradient-to-r.from-violet-500.to-pink-500 {
  background-image: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%) !important;
}
.bg-gradient-to-r.from-violet-600.via-pink-600.to-amber-500 {
  background-image: none !important;
}
.border-violet-500 { border-color: #4f46e5 !important; }
.ring-violet-400 { --tw-ring-color: #6366f1 !important; }
.hover\:bg-white\/10:hover { background-color: rgba(79, 70, 229, 0.07) !important; }

/* ---------- SHIM POLA RESPONSIF TAILWIND ----------
   Fallback .hidden memakai !important (wajib untuk toggle JS),
   sehingga pola "hidden md:flex" / "hidden sm:inline" / "lg:hidden"
   dari Tailwind perlu dikembalikan secara eksplisit. */
@media (min-width: 640px) { .hidden.sm\:inline { display: inline !important; } }
@media (min-width: 768px) { .hidden.md\:flex { display: flex !important; } }
@media (max-width: 1023px) { .lg\:hidden { display: flex !important; } }

/* Tombol admin melayang tidak tampil saat ujian/admin aktif
   (menimpa tombol Next di bottom nav) */
body.app-active .admin-btn-float { display: none !important; }

/* ---------- SCROLLBAR ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ---------- AKSESIBILITAS & PRINT ---------- */
input::placeholder, textarea::placeholder { color: var(--text-faint); }
@media (max-width: 768px) { input, select, textarea { font-size: 16px !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
@media print {
  body { background: white !important; color: black !important; height: auto !important; overflow: visible !important; }
  .no-print, .toast-container, .admin-btn-float { display: none !important; }
  #quizScreen { position: static !important; height: auto !important; overflow: visible !important; }
  .quiz-layout { display: block; }
  .question-card-wrapper { overflow: visible; box-shadow: none; border: 1px solid #ccc; }
  #questionCard { overflow: visible; }
}


/* ============================================================
   v9.8: LOGIN GATE SISWA & BERANDA UJIAN
   ============================================================ */
.hidden { display: none !important; }

.lg-gate { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 28px 16px; overflow: hidden; }
.lg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; pointer-events: none; }
.lg-glow-1 { width: 420px; height: 420px; background: #6366f1; top: -150px; left: -130px; }
.lg-glow-2 { width: 380px; height: 380px; background: #a855f7; bottom: -150px; right: -110px; }
.lg-card { position: relative; width: 100%; max-width: 430px; background: var(--bg-secondary); }
.lg-logo { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 10px 24px rgba(99,102,241,.35); margin: 0 auto 14px; }
.lg-field { position: relative; margin-bottom: 14px; }
.lg-field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 13px; }
.lg-field .input-pro { width: 100%; padding-left: 40px; color: var(--text-primary); background: var(--input-bg); }
.lg-field .input-pro:focus { outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,.22); border-color: var(--accent-violet); }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; }
.lg-eye:hover { background: var(--bg-tertiary); }
.lg-error { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-red); background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; animation: lg-shake .4s ease; }
@keyframes lg-shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

.sh-avatar { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:22px; flex-shrink:0; box-shadow: 0 8px 20px rgba(99,102,241,.3); }
.sh-chip { display:inline-flex; align-items:center; gap:6px; font-size:12px; padding:5px 11px; border-radius:999px; background:var(--bg-tertiary); border:1px solid var(--border); color:var(--text-secondary); }
.sh-chip b { color: var(--text-primary); }
.sh-table { width:100%; border-collapse:collapse; font-size:13px; }
.sh-table th { text-align:left; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); padding:8px 10px; border-bottom:2px solid var(--border); white-space:nowrap; }
.sh-table td { padding:9px 10px; border-bottom:1px solid var(--border); color:var(--text-secondary); vertical-align:middle; }
.sh-table tr:last-child td { border-bottom:none; }
.sh-rules { margin:0; padding:0; list-style:none; counter-reset: rule; }
.sh-rules li { counter-increment: rule; position: relative; padding: 10px 0 10px 42px; border-bottom: 1px dashed var(--border); font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
.sh-rules li:last-child { border-bottom: none; }
.sh-rules li::before { content: counter(rule); position: absolute; left: 0; top: 10px; width: 27px; height: 27px; border-radius: 8px; background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--accent-violet); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
#shStartBtn:disabled { cursor: not-allowed; filter: grayscale(.45); }
#lgSubmit:disabled { cursor: not-allowed; filter: grayscale(.45); }

    /* ===== v10.1: Dashboard Admin + Dashboard Murid ===== */
    .stu-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
    .stu-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); background: transparent; border: none; cursor: pointer; transition: all .18s ease; font-family: inherit; }
    .stu-tab:hover { color: var(--text-primary); background: rgba(124, 58, 237, .08); }
    .stu-tab.active { color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 4px 14px rgba(124, 58, 237, .35); }
    .stu-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; font-size: 10px; font-weight: 800; background: rgba(255, 255, 255, .18); }
    .stu-tab:not(.active) .stu-tab-badge { background: rgba(124, 58, 237, .12); color: var(--accent-violet); }
    .stu-next { border-radius: 18px; padding: 16px 18px; background: linear-gradient(135deg, rgba(79, 70, 229, .10), rgba(124, 58, 237, .14)); border: 1px solid rgba(124, 58, 237, .35); }
    .stu-count { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
    .stu-mini { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-secondary); transition: border-color .15s ease; }
    .stu-mini:hover { border-color: rgba(124, 58, 237, .4); }
    .dash-jrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-secondary); transition: all .15s ease; }
    .dash-jrow:hover { border-color: rgba(124, 58, 237, .45); transform: translateY(-1px); }
    .dash-qbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-secondary); cursor: pointer; font-weight: 700; font-size: 12px; color: var(--text-secondary); transition: all .18s ease; font-family: inherit; min-height: 84px; }
    .dash-qbtn i { font-size: 18px; color: var(--accent-violet); }
    .dash-qbtn:hover { border-color: rgba(124, 58, 237, .5); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124, 58, 237, .16); color: var(--text-primary); }
    .dash-cap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .dash-cap:last-of-type { margin-bottom: 0; }
    .sdet-row { display: flex; gap: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 10px; background: var(--bg-secondary); }
    .sdet-ok { border-left: 4px solid #10b981; }
    .sdet-bad { border-left: 4px solid #ef4444; }
    .sdet-no { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
    #stuDetailModal .sdet-list { max-height: 56vh; overflow-y: auto; }
    @media (max-width: 480px) {
      .stu-tab { padding: 9px 12px; font-size: 11.5px; }
      .stu-next { padding: 14px; }
      .dash-jrow { flex-wrap: wrap; }
    }


/* ============ v10.0: JADWAL QUIZ ============ */
.jw-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.jw-card { border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--glass); }
.jw-card:hover { border-color: var(--accent-violet); }
.jw-card.selected { border-color: var(--accent-violet); background: rgba(124, 58, 237, .07); }
.jw-kchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--border); cursor: pointer; background: var(--glass); transition: all .15s; color: var(--text-secondary); }
.jw-kchip.on { border-color: var(--accent-violet); background: rgba(124, 58, 237, .1); color: var(--accent-violet); }
.jw-soal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 10px; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all .15s; background: var(--glass); }
.jw-soal:hover { border-color: var(--accent-violet); }
.jw-soal.on { border-color: var(--accent-violet); background: rgba(124, 58, 237, .08); }
.jw-soal-q { flex: 1; min-width: 200px; font-size: 13px; color: var(--text-primary); }
.jw-soal input { accent-color: #7c3aed; width: 16px; height: 16px; flex-shrink: 0; }

    /* ===== v10.3: SIDEBAR DASHBOARD MURID ===== */
    .stu-side-avatar { width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg,#4f46e5,#a855f7); box-shadow: 0 6px 14px -6px rgba(124,58,237,.6); font-family: 'Plus Jakarta Sans', sans-serif; }
    .stu-guide-step { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-secondary); margin-bottom: 10px; transition: border-color .15s ease, transform .15s ease; }
    .stu-guide-step:hover { border-color: rgba(124,58,237,.45); transform: translateX(3px); }
    .stu-guide-step:last-child { margin-bottom: 0; }
    .stu-guide-no { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; color: #fff; background: linear-gradient(135deg,#4f46e5,#7c3aed); box-shadow: 0 6px 14px -6px rgba(124,58,237,.55); }
    .stu-guide-step h4 { font-size: 14px; font-weight: 800; color: var(--text-primary); margin: 0 0 3px; font-family: 'Plus Jakarta Sans', sans-serif; }
    .stu-guide-step p { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.55; }
    .stu-tip { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-secondary); }
    .stu-tip i { color: var(--accent-amber); margin-top: 2px; font-size: 14px; }
    .stu-tip p { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
    .stu-prof-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); margin-bottom: 8px; }
    .stu-prof-row:last-child { margin-bottom: 0; }
    .stu-prof-row .k { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
    .stu-prof-row .v { font-size: 13px; font-weight: 700; color: var(--text-primary); text-align: right; }
    .stu-topbar-mob { display: flex; }
    @media (min-width: 1024px) { .stu-topbar-mob { display: none; } }
    .stu-topbar-desk { display: none; }
    @media (min-width: 1024px) { .stu-topbar-desk { display: flex; } }
    @media (prefers-reduced-motion: reduce) { .stu-guide-step:hover { transform: none; } }

    /* ===== v10.2: DASHBOARD MURID NEO ===== */
    .sh-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; background: linear-gradient(130deg,#312e81 0%,#4338ca 30%,#7c3aed 62%,#c026d3 100%); background-size: 220% 220%; animation: shHeroShift 14s ease-in-out infinite; box-shadow: 0 18px 44px -14px rgba(79,70,229,.5); color: #fff; }
    .sh-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 90% 110% at 88% 0%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 90% 110% at 88% 0%, #000 25%, transparent 72%); pointer-events: none; }
    .sh-hero-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; pointer-events: none; animation: shFloat 9s ease-in-out infinite; }
    .sh-hero-orb.o1 { width: 160px; height: 160px; background: #22d3ee; left: -50px; bottom: -70px; }
    .sh-hero-orb.o2 { width: 120px; height: 120px; background: #f0abfc; right: 30%; top: -50px; animation-delay: -4.5s; }
    .sh-hero-icon { position: absolute; right: 18px; bottom: 6px; font-size: 110px; color: rgba(255,255,255,.13); transform: rotate(-12deg); pointer-events: none; }
    .sh-avwrap { position: relative; flex-shrink: 0; }
    .sh-avring { width: 78px; height: 78px; border-radius: 24px; padding: 3px; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.28)); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
    .sh-hero .sh-avatar { width: 100%; height: 100%; border-radius: 21px; font-size: 27px; background: linear-gradient(135deg,#4f46e5,#a855f7); box-shadow: none; }
    .sh-avdot { position: absolute; right: 0; bottom: 2px; width: 17px; height: 17px; border-radius: 50%; background: #22c55e; border: 3px solid rgba(255,255,255,.95); animation: shPulseDot 2s infinite; }
    .sh-greet { font-size: 12.5px; font-weight: 700; letter-spacing: .3px; color: rgba(255,255,255,.88); margin: 0; display: flex; align-items: center; }
    .sh-wave { margin-left: 9px; font-size: 14px; animation: shWave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
    .sh-nama { font-size: clamp(20px, 3vw, 27px); font-weight: 900; line-height: 1.12; text-shadow: 0 2px 16px rgba(0,0,0,.28); }
    .sh-hchip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(4px); white-space: nowrap; }
    .sh-hchip b { font-weight: 800; }
    .sh-hchip i { font-size: 10px; opacity: .9; }
    .sh-clockbox { text-align: right; padding-top: 2px; }
    .sh-clock { font-size: clamp(22px, 2.8vw, 32px); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 1.5px; line-height: 1; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,.32); }
    .sh-date { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85); margin: 5px 0 0; }
    .sh-stat { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-secondary); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; min-height: 78px; }
    .sh-stat:hover { transform: translateY(-3px); border-color: var(--sc, var(--accent-violet)); box-shadow: 0 12px 28px -10px var(--sc, rgba(124,58,237,.4)); }
    .sh-stat::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sc, var(--accent-violet)); opacity: .85; }
    .sh-ico { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; background: var(--sc, var(--accent-violet)); box-shadow: 0 6px 16px -6px var(--sc, rgba(124,58,237,.7)); flex-shrink: 0; }
    .sh-stat .v { font-size: 21px; font-weight: 900; line-height: 1.1; margin: 0; color: var(--text-primary); font-variant-numeric: tabular-nums; }
    .sh-stat .l { font-size: 10.5px; font-weight: 600; color: var(--text-muted); margin: 1px 0 0; }
    .sh-bar { height: 5px; border-radius: 99px; background: var(--glass); overflow: hidden; margin-top: 6px; }
    .sh-bar i { display: block; height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg,#3b82f6,#22d3ee); transition: width .8s cubic-bezier(.22,1,.36,1); }
    .spot { position: relative; border-radius: 20px; padding: 2px; background: linear-gradient(120deg,#4f46e5,#a855f7,#ec4899,#4f46e5); background-size: 300% 300%; animation: shHeroShift 8s ease-in-out infinite; box-shadow: 0 16px 38px -16px rgba(124,58,237,.55); }
    .spot-in { border-radius: 18px; background: var(--bg-secondary); padding: 17px 20px; }
    .spot-live { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .7px; color: #ef4444; text-transform: uppercase; margin: 0; }
    .spot-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: shPulseRed 1.6s infinite; }
    .spot-cd { display: flex; gap: 6px; }
    .cd-seg { min-width: 58px; padding: 8px 6px 6px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); text-align: center; }
    .cd-seg b { display: block; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent-violet); line-height: 1.1; }
    .cd-seg span { font-size: 8.5px; font-weight: 700; letter-spacing: .3px; color: var(--text-muted); text-transform: uppercase; }
    #shInfoMulai { position: relative; overflow: hidden; }
    #shInfoMulai::before { content: ''; position: absolute; inset: 0; background: radial-gradient(560px 180px at 50% 0%, rgba(124,58,237,.12), transparent 70%); pointer-events: none; }
    #shStartBtn:not(:disabled) { background: linear-gradient(135deg,#4f46e5,#7c3aed 55%,#c026d3); background-size: 180% 180%; animation: shHeroShift 4s ease infinite; box-shadow: 0 12px 30px -8px rgba(124,58,237,.6); transition: transform .15s ease, box-shadow .15s ease; }
    #shStartBtn:not(:disabled):hover { transform: translateY(-2px) scale(1.015); }
    .jw-card2 { position: relative; border: 1.5px solid var(--border); border-radius: 16px; padding: 15px 16px 15px 21px; cursor: pointer; background: var(--bg-secondary); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; overflow: hidden; }
    .jw-card2::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--jst, #94a3b8); }
    .jw-card2:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(15,23,42,.3); border-color: var(--jst, var(--accent-violet)); }
    .jw-card2.selected { border-color: var(--accent-violet); background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(79,70,229,.03)); box-shadow: 0 12px 28px -12px rgba(124,58,237,.4); }
    /* UX fix: reduced from .55s to .22s with minimal translate — eliminates janky wave on every beranda re-render */
    .stx { animation: shFadeUp .22s cubic-bezier(.22,1,.36,1) both; }
    .d1 { animation-delay: .03s; } .d2 { animation-delay: .06s; } .d3 { animation-delay: .09s; } .d4 { animation-delay: .12s; }
    .stu-mini { border-radius: 14px; }
    .sh-chip { white-space: nowrap; }
    .spot-in > div:last-child { flex-shrink: 0; }
    @keyframes shHeroShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
    @keyframes shFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.08); } }
    @keyframes shPulseDot { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
    @keyframes shPulseRed { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
    @keyframes shWave { 0%,60%,100% { transform: rotate(0deg); } 10%,30% { transform: rotate(13deg); } 20% { transform: rotate(-7deg); } 40% { transform: rotate(13deg); } 50% { transform: rotate(-4deg); } }
    @keyframes shFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    @media (max-width: 640px) {
      .sh-hero { padding: 20px 18px; }
      .sh-clockbox { text-align: left; padding-top: 10px; }
      .sh-avring { width: 66px; height: 66px; border-radius: 20px; }
      .sh-hero .sh-avatar { border-radius: 17px; }
      .spot-in > div:first-child { flex-direction: column; align-items: stretch; }
      .spot-cd { gap: 5px; }
      .cd-seg { min-width: 44px; }
      .sh-stat .v { font-size: 18px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .sh-hero, .spot, .sh-hero-orb, .stx, #shStartBtn:not(:disabled), .sh-wave, .sh-avdot, .spot-live .dot { animation: none !important; }
    }
  
/* ============ v10.5: USER & PASSWORD ============ */
.up-pw { letter-spacing: 2px; font-size: 13px; color: var(--text-secondary); }
.up-pw.revealed { letter-spacing: .4px; color: var(--text-primary); }
#upTbody td, #dmMuridTbody td { vertical-align: middle; }
.up-strength { font-size: 11px; min-height: 16px; display: block; }
#upPassModal input, #upDefModal input, #upAddPass { font-family: 'JetBrains Mono', monospace; }
.up-note { font-size: 11px; color: var(--text-muted); }
/* ============ SIAKAD-CSF: MODUL SLIDE & SERTIFIKAT (kini bagian dari Materi & Pembelajaran) ============ */
.sk-sec-head { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; justify-content:space-between; }
.sk-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.sk-search { min-width: 210px; }
.sk-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:14px; }
.sk-babcard { border:1px solid var(--border); border-radius:14px; padding:16px; background:var(--bg-secondary); transition:transform .16s ease, box-shadow .16s ease; }
.sk-babcard:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.10); }
.sk-babno { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-weight:800; font-family:'JetBrains Mono',monospace; color:#fff; flex-shrink:0; font-size:15px; }
.sk-linkrow { display:flex; align-items:center; gap:8px; margin-top:8px; }
.sk-linkrow-ic { width:16px; text-align:center; flex-shrink:0; }
.sk-linkrow-lb { font-size:11px; font-weight:700; color:var(--text-muted); width:44px; flex-shrink:0; }
.sk-linkrow-in { font-size:12px; padding:7px 10px; flex:1; min-width:0; }
.abs-chip { font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; border:1.5px solid var(--border); color:var(--text-muted); background:var(--bg-secondary); transition:all .15s ease; cursor:pointer; }
.abs-chip:hover { transform:translateY(-1px); }
.abs-chip.act { background:var(--ac); border-color:var(--ac); color:#fff; }
.sk-stubtn { display:inline-flex; align-items:center; font-size:11px; font-weight:700; padding:6px 12px; border-radius:999px; border:1.5px solid; text-decoration:none; }
.sk-mini { cursor:pointer; transition:transform .15s ease; }
.sk-mini:hover { transform:translateY(-2px); }
/* v1.2: modul slide & sertifikat */
.sk-cert-wrap { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 12px; overflow: hidden; }
.sk-sert-hero { border: 1.5px solid rgba(245,158,11,.4); background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(16,185,129,.08)); }

/* ============================================================
   SIAKAD-CSF v2.1 — ALUR PEMBELAJARAN (LEARNING JOURNEY UI/UX)
   ============================================================ */

/* ---------- NAV SIDEBAR SECTION LABELS ---------- */
.sk-nav-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin: 0 0 6px 0;
  padding: 0 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.sk-nav-label:first-of-type { border-top: 0; padding-top: 0; }
.sk-nav-label i { font-size: 9px; opacity: .55; }
.sk-nav-scroll { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.sk-nav-scroll::-webkit-scrollbar { width: 6px; }
.sk-nav-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
.sk-nav-scroll::-webkit-scrollbar-track { background: transparent; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 0 0 2px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .12s ease;
  border: 1px solid transparent;
}
.admin-nav-item i { width: 16px; text-align: center; font-size: 12px; flex-shrink: 0; opacity: .8; }
.admin-nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateX(2px);
}
.admin-nav-item.active {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .32);
  border-color: transparent;
}
.admin-nav-item.active i { opacity: 1; }
.admin-nav-item .ml-auto { margin-left: auto; }

/* ---------- v2.5.7: NAV DROPDOWN — sidebar dikelompokkan per modul (accordion) ---------- */
.nav-groups-toolbar { display: flex; gap: 6px; margin-bottom: 10px; }
.nav-groups-toolbar button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  font-family: inherit; font-size: 10px; font-weight: 700; color: var(--text-muted);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 4px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav-groups-toolbar button:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--glass-hover); }
.nav-group { margin: 0 0 1px; }
.nav-group-head {
  width: 100%; display: flex; align-items: center; gap: 6px;
  background: none; border: 0; border-top: 1px dashed var(--border);
  text-align: left; cursor: pointer; font-family: inherit;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint);
  padding: 9px 8px 6px 10px;
  transition: color .15s ease;
}
.nav-groups-toolbar + .nav-group .nav-group-head { border-top: 0; padding-top: 2px; }
.nav-group-head:hover { color: var(--text-secondary); }
.nav-group-head:focus-visible { outline: 2px solid var(--accent-violet); outline-offset: 2px; border-radius: 6px; }
.nav-group-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.nav-group-title i { font-size: 9px; opacity: .55; }
.nav-group-chev { font-size: 8px; opacity: .5; transition: transform .25s ease; flex-shrink: 0; }
.nav-group.open .nav-group-chev { transform: rotate(180deg); }
.nav-group-count {
  font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: none;
  background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-faint);
  border-radius: 99px; padding: 0 6px; line-height: 15px; flex-shrink: 0;
}
.nav-group.open .nav-group-count { display: none; }
.nav-group-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.nav-group.open > .nav-group-body { grid-template-rows: 1fr; }
.nav-group-items { overflow: hidden; min-height: 0; display: flex; flex-direction: column; padding: 2px 6px 6px 10px; position: relative; visibility: hidden; transition: visibility .28s ease; }
.nav-group.open > .nav-group-body .nav-group-items { visibility: visible; }
.nav-group-items::before { content: ''; position: absolute; left: 14px; top: 2px; bottom: 10px; width: 1px; background: var(--border); }
.nav-group-items .admin-nav-item { padding-left: 12px; }

/* ---------- v2.5.8: PENGATURAN WEB ---------- */
.ws-logo-box {
  width: 76px; height: 76px; border-radius: 16px; flex-shrink: 0;
  border: 1px dashed var(--border-strong); background: var(--input-bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ws-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.ws-logo-empty { font-size: 26px; color: var(--text-faint); }

/* ---------- LEARNING JOURNEY ROADMAP ---------- */
.sk-journey {
  border-left: 4px solid var(--accent-violet);
}
.sk-journey-phases {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sk-jphase {
  background: var(--bg-tertiary);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  transition: transform .14s ease, box-shadow .14s ease;
}
.sk-jphase:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.sk-jphase-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sk-jphase-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}
.sk-jphase-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -.01em;
}
.sk-jphase-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}
.sk-jphase-pct {
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
/* Fase-level summary line: "3 lengkap · 2 sebagian · 0 kosong" — replaces per-chip text labels */
.sk-jphase-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10.5px;
  color: var(--text-muted);
  margin: 0 0 10px;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.sk-jphase-sum b {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  margin-right: 3px;
  font-size: 11.5px;
}
.sk-jphase-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 10px;
}
.sk-jphase-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  transition: width .35s ease;
}
.sk-jphase-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.sk-jnode {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  font: inherit;
  min-height: 56px;
}
.sk-jnode:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  border-color: var(--accent-violet);
}
.sk-jnode-num {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.sk-jnode-info {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 6px;
}
.sk-jnode-judul {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  flex: 1;
}
.sk-jnode-status {
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

/* Status variants (admin) */
.sk-jnode-filled { border-left: 3px solid #059669; }
.sk-jnode-partial { border-left: 3px solid #d97706; }
.sk-jnode-empty { border-left: 3px solid var(--border-strong); opacity: .82; }

/* Status variants (student) */
.sk-jnode-stu-done { border-left: 3px solid #059669; }
.sk-jnode-stu-progress { border-left: 3px solid #d97706; }
.sk-jnode-stu-available { border-left: 3px solid var(--border-strong); opacity: .82; }

/* ---------- ADMIN DASHBOARD PATH MAP ---------- */
.sk-dash-path {
  background: linear-gradient(135deg, rgba(124,58,237,.04), rgba(37,99,235,.04));
  border-left: 4px solid var(--accent-violet);
}

/* ---------- SECTION HEADER (used by Materi & other sections) ---------- */
.sk-section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sk-section-header h2 { margin: 0; font-size: 1.5rem; }
.sk-section-header .sk-section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

/* ---------- MATERI STUDENT HEADER REFINEMENT ---------- */
#stuViewMateri .admin-card {
  background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(37,99,235,.04));
  border-left: 4px solid var(--accent-violet);
}

/* ---------- RESPONSIVE: COLLAPSE JOURNEY ON MOBILE ---------- */
@media (max-width: 640px) {
  .sk-jphase-nodes { grid-template-columns: 1fr; }
  .sk-jphase-head { flex-wrap: wrap; }
  .sk-jphase-pct { font-size: 12px; }
  .sk-journey { padding: 14px !important; }
  .sk-journey-phases { gap: 10px; }
}

/* ---------- DARK THEME TWEAKS ---------- */
/* Distinct elevation: fase container (subtle) > chip (brighter) so chips don't blend into the fase card */
[data-theme="dark"] .sk-jphase { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.10); }
[data-theme="dark"] .sk-jnode { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.20); }
[data-theme="dark"] .sk-jnode:hover { background: rgba(255,255,255,.15); border-color: rgba(129,140,248,.60); }
[data-theme="dark"] .sk-jphase-bar { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .sk-jphase-sum { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(241,245,249,.85); }
[data-theme="dark"] .sk-jphase-sum b { color: rgba(241,245,249,.95); }
[data-theme="dark"] .sk-journey { background: rgba(255,255,255,.03); }
[data-theme="dark"] .sk-dash-path { background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(37,99,235,.10)); border-left-color: var(--accent-violet); }

/* ============================================================
   v2.5 FIX: Dark theme contrast improvements
   ============================================================ */
[data-theme="dark"] .admin-card,
[data-theme="dark"] .glass,
[data-theme="dark"] .glass-strong {
  background: var(--bg-secondary) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .admin-content {
  background: var(--bg-primary);
}
[data-theme="dark"] .sk-jnode,
[data-theme="dark"] .sk-jphase {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .sk-jnode-judul,
[data-theme="dark"] .sk-jphase-label {
  color: var(--text-primary) !important;
}
[data-theme="dark"] .sh-stat .v,
[data-theme="dark"] .sh-stat .l {
  color: var(--text-primary) !important;
}
[data-theme="dark"] .sh-stat .l {
  color: var(--text-muted) !important;
}
[data-theme="dark"] .admin-table th {
  color: var(--text-muted) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] .admin-table td {
  color: var(--text-secondary) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] .jw-badge {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
}
[data-theme="dark"] .btn-ghost {
  color: var(--text-secondary) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
}
[data-theme="dark"] .admin-input,
[data-theme="dark"] .admin-select,
[data-theme="dark"] .admin-textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-primary) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .admin-input::placeholder,
[data-theme="dark"] .admin-textarea::placeholder {
  color: var(--text-faint) !important;
}

/* ============================================================
   DASHBOARD REDESIGN v3 — "Command Center" (scoped: db-*, dbj-*)
   Hanya untuk seksi Dashboard (#section-dashboard). Tidak mengubah
   komponen global (.admin-card, .admin-stat, .sk-jphase, dll).
   Tema light & dark via CSS variables.
   ============================================================ */
/* v2.5.4: max-width 1320px + margin auto dihapus — dashboard kini full-width
   mengikuti semua section lain di .admin-content (lebar seragam di semua halaman) */
.db-wrap { display: flex; flex-direction: column; gap: var(--space-4); }

/* ---------- HERO ---------- */
.db-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-2xl);
  background: linear-gradient(120deg, #312e81 0%, #4338ca 34%, #6d28d9 68%, #86198f 100%);
  color: #fff;
  box-shadow: 0 18px 44px -18px rgba(67, 56, 202, 0.55);
  isolation: isolate;
}
.db-hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 100% at 20% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 20% 0%, #000 30%, transparent 78%);
}
.db-hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); }
.db-hero-glow-1 { width: 340px; height: 340px; right: -80px; top: -140px; background: rgba(232, 121, 249, 0.35); }
.db-hero-glow-2 { width: 260px; height: 260px; right: 240px; bottom: -160px; background: rgba(96, 165, 250, 0.28); }
.db-hero-body {
  display: flex; align-items: stretch; justify-content: space-between; gap: var(--space-6);
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px);
  flex-wrap: wrap;
}
.db-hero-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.db-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.db-hero-badge i { font-size: 11px; }
.db-hero-title {
  margin: 0; color: #fff; font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.db-hero-sub { margin: 0; font-size: 13px; color: rgba(255,255,255,.82); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.db-hero-sep { opacity: .55; }
.db-hero-ctas { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.db-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 11px; font-size: 13px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: all var(--transition-fast);
  font-family: inherit; line-height: 1.2;
}
.db-btn i { font-size: 12px; }
.db-btn-solid { background: #fff; color: #4338ca; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.db-btn-solid:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.24); }
.db-btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.30); }
.db-btn-ghost:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }
.db-hero-side {
  display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 168px;
  padding: 14px 16px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.db-hero-chip { display: flex; align-items: center; gap: 10px; color: #fff; }
.db-hero-chip i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.db-hero-chip b { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; font-family: 'Plus Jakarta Sans', sans-serif; }
.db-hero-chip span { display: block; font-size: 10.5px; color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .db-hero-side { flex-direction: row; min-width: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; } }

/* ---------- KPI ---------- */
.db-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 760px) { .db-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .db-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.db-kpi {
  position: relative; overflow: hidden;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px 13px;
  box-shadow: var(--shadow-xs); transition: all var(--transition-fast);
}
.db-kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--kc), color-mix(in srgb, var(--kc) 40%, transparent));
  opacity: .85;
}
.db-kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.db-kpi-violet   { --kc: #6366f1; } .db-kpi-blue    { --kc: #3b82f6; }
.db-kpi-emerald  { --kc: #10b981; } .db-kpi-pink    { --kc: #a855f7; }
.db-kpi-amber    { --kc: #f59e0b; }
.db-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.db-kpi-ico {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; background: color-mix(in srgb, var(--kc) 13%, transparent); color: var(--kc);
}
.db-kpi-value { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.72rem; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.db-kpi-label { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); }
.db-kpi-cap { margin: 1px 0 0; font-size: 10.5px; color: var(--text-faint); }

/* ---------- KARTU DASAR ---------- */
.db-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-5);
  box-shadow: var(--shadow-xs);
}
.db-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.db-card-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 9px; font-family: 'Plus Jakarta Sans', sans-serif; }
.db-card-ico {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; background: var(--tint, rgba(79,70,229,.12)); flex-shrink: 0;
}
.db-card-sub { margin: 3px 0 0 39px; font-size: 11.5px; color: var(--text-muted); }
.db-more { background: none; border: none; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--accent-violet); padding: 4px 6px; border-radius: 8px; font-family: inherit; transition: all var(--transition-fast); white-space: nowrap; }
.db-more:hover { background: color-mix(in srgb, var(--accent-violet) 10%, transparent); }
.db-more i { font-size: 9px; margin-left: 2px; }
.db-note { margin: 12px 0 0; font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ---------- GRID ROWS ---------- */
/* minmax(0,1fr): hilangkan floor min-content agar kartu nowrap tidak memaksa kolom melebar */
.db-grid-2-1 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.db-grid-3   { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.db-grid-2   { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 900px)  { .db-grid-2-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .db-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .db-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- JOURNEY (fase kompakt) ---------- */
.db-journey-head-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.db-legend { display: flex; flex-direction: column; gap: 4px; }
.db-legend span { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.db-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.db-donut { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.db-donut-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.db-donut-txt b { font-size: 13px; font-weight: 800; color: var(--text-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.db-donut-txt span { font-size: 8px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.dbj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: var(--space-3); }
.dbj-phase {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 13px 14px; transition: all var(--transition-fast);
  display: flex; flex-direction: column; gap: 10px;
}
.dbj-phase:hover { border-color: color-mix(in srgb, var(--ph) 45%, var(--border)); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dbj-head { display: flex; align-items: center; gap: 10px; }
.dbj-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ph); color: #fff; font-size: 13.5px;
  box-shadow: 0 4px 10px -3px color-mix(in srgb, var(--ph) 60%, transparent);
}
.dbj-meta { min-width: 0; flex: 1; }
.dbj-label { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--text-primary); font-family: 'Plus Jakarta Sans', sans-serif; display: flex; align-items: center; gap: 6px; }
.dbj-tag { font-size: 9px; font-weight: 800; padding: 1.5px 6px; border-radius: 999px; color: var(--ph); background: color-mix(in srgb, var(--ph) 13%, transparent); letter-spacing: .04em; flex-shrink: 0; }
.dbj-sub { margin: 1px 0 0; font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbj-pct { font-size: 13px; font-weight: 800; color: var(--ph); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.dbj-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.dbj-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--ph) 72%, #fff), var(--ph)); transition: width .5s ease; }
.dbj-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dbj-dot {
  min-width: 27px; height: 24px; padding: 0 7px; border-radius: 8px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700;
  border: 1px solid transparent; transition: all var(--transition-fast);
  display: inline-flex; align-items: center; justify-content: center;
}
.dbj-dot.is-filled { background: var(--ph); color: #fff; box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--ph) 65%, transparent); }
.dbj-dot.is-partial { background: color-mix(in srgb, var(--ph) 14%, transparent); color: var(--ph); border-color: color-mix(in srgb, var(--ph) 35%, transparent); }
.dbj-dot.is-empty { background: transparent; color: var(--text-faint); border-color: var(--border-strong); border-style: dashed; }
.dbj-dot:hover { transform: translateY(-2px) scale(1.06); }
.dbj-sum { font-size: 9.5px; color: var(--text-faint); }
.dbj-sum b { font-weight: 800; }

/* ---------- CHART DISTRIBUSI ---------- */
.db-chart { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; min-height: 176px; padding-top: 4px; }
.db-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.db-col-num { font-size: 13px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.db-col-track { width: 100%; height: 110px; border-radius: 10px; background: var(--bg-tertiary); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.db-col-bar { width: 62%; border-radius: 8px 8px 2px 2px; transition: height .55s cubic-bezier(.22,1,.36,1); }
.db-col-emerald { background: linear-gradient(180deg, #34d399, #059669); }
.db-col-blue    { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.db-col-amber   { background: linear-gradient(180deg, #fbbf24, #d97706); }
.db-col-red     { background: linear-gradient(180deg, #f87171, #dc2626); }
.db-col-lbl { font-size: 10px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---------- TOP 5 ---------- */
.db-top5 { display: flex; flex-direction: column; gap: 8px; }
.db-rank { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--border); transition: all var(--transition-fast); }
.db-rank:hover { border-color: var(--border-strong); transform: translateX(2px); }
.db-rank-badge {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
}
.db-rank-1 { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 3px 8px -2px rgba(217,119,6,.5); }
.db-rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.db-rank-3 { background: linear-gradient(135deg, #d97706, #9a3412); }
.db-rank-n { background: var(--bg-tertiary); color: var(--text-muted); }
.db-rank-name { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-rank-sub { margin: 0; font-size: 10.5px; color: var(--text-muted); }
.db-rank-bar { height: 4px; border-radius: 999px; background: var(--border); margin-top: 5px; overflow: hidden; }
.db-rank-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-emerald), #34d399); }
.db-rank-score { font-size: 15px; font-weight: 800; color: var(--accent-emerald); font-variant-numeric: tabular-nums; flex-shrink: 0; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ---------- LIST (jadwal / hasil terbaru) ---------- */
.db-list { display: flex; flex-direction: column; gap: 7px; }
.db-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--border);
  transition: all var(--transition-fast); cursor: pointer;
}
.db-row:hover { border-color: var(--border-strong); transform: translateX(2px); }
.db-row-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, #94a3b8) 18%, transparent); background: var(--dot, #94a3b8); }
.db-row-main { min-width: 0; flex: 1; }
.db-row-name { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-row-meta { margin: 1px 0 0; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-row-num { text-align: center; flex-shrink: 0; }
.db-row-num b { display: block; font-size: 14px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.db-row-num span { font-size: 9.5px; color: var(--text-faint); }
.db-row-score { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.db-row-score.ok { background: rgba(16,185,129,.13); color: #10b981; }
.db-row-score.bad { background: rgba(239,68,68,.13); color: #ef4444; }
.db-avatar {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.db-row .btn-ghost.icon-btn { width: 28px; height: 28px; }
.db-empty { padding: 18px 12px; text-align: center; border-radius: var(--radius-md); border: 1px dashed var(--border-strong); color: var(--text-muted); font-size: 11.5px; background: var(--glass); }
.db-empty i { display: block; font-size: 17px; margin-bottom: 5px; opacity: .6; }

/* ---------- AKSI CEPAT ---------- */
.db-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.db-act {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; font-family: inherit; text-align: left; transition: all var(--transition-fast);
}
.db-act:hover { border-color: color-mix(in srgb, var(--accent-violet) 40%, var(--border)); background: var(--glass-hover); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.db-act i { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--tint, rgba(79,70,229,.12)); flex-shrink: 0; }
.db-act span { font-size: 11.5px; font-weight: 700; color: var(--text-primary); line-height: 1.25; }

/* ---------- MODUL MINI ---------- */
.db-minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px)  { .db-minis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1150px) { .db-minis { grid-template-columns: repeat(8, 1fr); } }
.db-mini {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 11px 12px; cursor: pointer; transition: all var(--transition-fast); min-width: 0;
}
.db-mini:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-xs); }
.db-mini i { font-size: 13px; }
.db-mini-num { margin: 0; font-size: 15.5px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1; white-space: nowrap; }
.db-mini-label { margin: 2px 0 0; font-size: 9.8px; color: var(--text-muted); line-height: 1.3; }

/* ---------- KESEHATAN DATA ---------- */
.db-health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.db-hl {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--glass);
}
.db-hl-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.db-hl-ok   .db-hl-dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.db-hl-warn .db-hl-dot { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.db-hl-bad  .db-hl-dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.db-hl-info .db-hl-dot { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.db-hl-ok   { border-color: color-mix(in srgb, #10b981 26%, var(--border)); background: color-mix(in srgb, #10b981 5%, var(--glass)); }
.db-hl-warn { border-color: color-mix(in srgb, #d97706 30%, var(--border)); background: color-mix(in srgb, #d97706 6%, var(--glass)); }
.db-hl-bad  { border-color: color-mix(in srgb, #dc2626 30%, var(--border)); background: color-mix(in srgb, #dc2626 6%, var(--glass)); }
.db-hl-info { border-color: color-mix(in srgb, #3b82f6 30%, var(--border)); background: color-mix(in srgb, #3b82f6 6%, var(--glass)); }
.db-hl-label { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-hl-sub { margin: 0; font-size: 9.8px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-hl-main { min-width: 0; flex: 1; }
.db-hl-num { font-size: 16px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; flex-shrink: 0; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ---------- KOMPISI BANK SOAL ---------- */
.db-cap { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.db-cap-label { font-size: 11px; font-weight: 600; width: 132px; flex-shrink: 0; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-cap-track { flex: 1; height: 9px; border-radius: 999px; background: var(--bg-tertiary); overflow: hidden; }
.db-cap-bar { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.db-cap-num { font-size: 11.5px; font-weight: 800; width: 30px; text-align: right; flex-shrink: 0; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.db-cap-head { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin: 0 0 5px; display: flex; align-items: center; gap: 5px; }
.db-cap-head.mt { margin-top: 12px; }

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 640px) {
  .db-hero-body { padding: 20px 18px; }
  .db-card { padding: var(--space-4); }
  .db-card-sub { margin-left: 0; }
  .db-journey-head-right { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .db-kpi, .dbj-phase, .dbj-dot, .db-rank, .db-row, .db-act, .db-mini, .db-btn { transition: none; }
}

/* ============================================================
   QUIZ SETTINGS v2 (v2.5.5) — #section-quiz-settings
   Scoped qs-* — tidak mengubah komponen global.
   ============================================================ */
.qs-summary {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4); margin-bottom: var(--space-4);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
}
.qs-summary-head { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.qs-summary-head i { font-size: 18px; color: var(--accent-violet); }
.qs-summary-head b { display: block; font-size: 13px; color: var(--text-primary); }
.qs-summary-head span { display: block; font-size: 11px; color: var(--text-muted); }
.qs-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); flex: 1; }
.qs-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass-hover); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 6px 12px; font-size: 11px; color: var(--text-muted);
}
.qs-chip b { font-size: 12px; color: var(--text-primary); font-weight: 800; }
.qs-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: var(--space-4); }
.qs-card-ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
  background: var(--tint, rgba(79,70,229,.12)); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.qs-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--text-secondary); }
.qs-range { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-left: 4px; }
.qs-input-group { display: flex; align-items: stretch; }
.qs-input-group .admin-input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.qs-input-group .qs-unit {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-left: none;
  border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md);
  font-size: 11px; font-weight: 700; color: var(--text-muted); white-space: nowrap;
}
.qs-help { font-size: 11px; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.qs-help i { font-size: 10px; margin-right: 3px; color: var(--accent-blue); }
.qs-toggle-list { display: flex; flex-direction: column; gap: var(--space-2); }
.qs-toggle-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 14px; transition: border-color var(--transition-fast), background var(--transition-fast);
}
.qs-toggle-item:hover { border-color: var(--border-strong); background: var(--glass-hover); }
.qs-toggle-item .toggle-pro { padding: 0; }
.qs-toggle-desc { font-size: 11px; color: var(--text-muted); margin-top: 3px; padding-left: 56px; line-height: 1.5; }
.qs-crossref {
  margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 5px;
}
.qs-crossref p { font-size: 11px; color: var(--text-muted); }
.qs-crossref i { margin-right: 4px; }
.qs-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 11px; font-weight: 700; color: var(--accent-violet);
  text-decoration: underline; text-underline-offset: 2px;
}
.qs-link:hover { color: var(--accent-blue); }
.qs-actions {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4); margin-top: var(--space-2);
}
[data-theme="dark"] .qs-summary, [data-theme="dark"] .qs-actions { background: rgba(255,255,255,.03); }
[data-theme="dark"] .qs-input-group .qs-unit { background: rgba(255,255,255,.05); }
@media (max-width: 640px) {
  .qs-toggle-desc { padding-left: 0; }
  .qs-summary-head { min-width: 0; }
}

/* ============ v2.5.9: PENGATURAN WEB (ws-*) ============ */
.ws-modnav {
  display: flex; flex-wrap: wrap; gap: 8px;
  position: sticky; top: 0; z-index: 30;
  padding: 10px 2px; margin-bottom: var(--space-2);
  background: linear-gradient(to bottom, var(--bg-primary) 82%, transparent);
}
.ws-modnav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; padding: 7px 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-secondary); cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.ws-modnav-btn i { font-size: 10px; }
.ws-modnav-btn:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.ws-modnav-btn.active { background: var(--accent-violet); border-color: var(--accent-violet); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .28); }

[id^="wsMod-"] { scroll-margin-top: 62px; }
.ws-flash { animation: wsFlash 1.5s ease; }
@keyframes wsFlash { 0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); } 100% { box-shadow: 0 0 0 16px rgba(79, 70, 229, 0); } }

.ws-announce {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-md); margin-bottom: 14px;
  font-size: 12.5px; line-height: 1.55; font-weight: 600;
  background: rgba(79, 70, 229, .08); border: 1px solid rgba(79, 70, 229, .28);
  color: var(--text-primary);
}
.ws-announce i { color: var(--accent-violet); margin-top: 2px; }
.ws-announce span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ws-announce.hidden { display: none; }
[data-theme="dark"] .ws-announce { background: rgba(79, 70, 229, .18); border-color: rgba(129, 140, 248, .35); }

.ws-footer { text-align: center; font-size: 11px; color: var(--text-faint); padding: 18px 16px 6px; }
.ws-footer.hidden { display: none; }

.ws-storage-track { height: 8px; border-radius: var(--radius-full); background: var(--input-bg); border: 1px solid var(--border); overflow: hidden; max-width: 460px; }
.ws-storage-bar { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink)); transition: width .4s ease, background .3s ease; }

.ws-preview-box { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 12px 14px; font-size: 12px; color: var(--text-secondary); background: var(--glass); }

@media (max-width: 640px) {
  .ws-modnav { position: static; background: none; padding-top: 2px; }
  .ws-announce { margin-bottom: 10px; }
}

/* ============================================================
   v2.6.0: LOGIN SPLIT-SCREEN (lgs-*) — Login Murid & Login Guru
   Dua halaman terpisah dengan latar cyber animasi:
   grid perspektif + orb melayang + scanline + terminal mockup.
   Aksen: murid = indigo/cyan, guru = violet/pink.
   ============================================================ */
.lgs-gate { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 30px 18px; overflow: hidden; }
.lgs-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lgs-grid {
  position: absolute; left: -25%; right: -25%; top: -14%; bottom: -34%;
  background-image: linear-gradient(rgba(79,70,229,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(79,70,229,.13) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(1000px) rotateX(56deg);
  transform-origin: center top;
  animation: lgsGrid 15s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 64% 58% at 50% 24%, #000 22%, transparent 78%);
  mask-image: radial-gradient(ellipse 64% 58% at 50% 24%, #000 22%, transparent 78%);
}
@keyframes lgsGrid { to { background-position: 0 46px, 0 0; } }
.lgs-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .30; animation: lgsFloat 13s ease-in-out infinite alternate; }
.lgs-orb-1 { width: 430px; height: 430px; background: #6366f1; top: -140px; left: -120px; }
.lgs-orb-2 { width: 380px; height: 380px; background: #a855f7; bottom: -140px; right: -100px; animation-delay: -4s; }
.lgs-orb-3 { width: 240px; height: 240px; background: #22d3ee; top: 40%; right: 15%; opacity: .16; animation-delay: -8s; }
@keyframes lgsFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(36px, 26px, 0) scale(1.08); } }
.lgs-scan { position: absolute; left: 0; right: 0; top: -14%; height: 24%;
  background: linear-gradient(to bottom, transparent, rgba(99,102,241,.06) 45%, rgba(99,102,241,.13) 50%, rgba(99,102,241,.06) 55%, transparent);
  animation: lgsScan 8.5s linear infinite; }
@keyframes lgsScan { to { transform: translateY(600%); } }
/* Varian aksen guru */
.lgs-guru .lgs-grid { background-image: linear-gradient(rgba(124,58,237,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(124,58,237,.14) 1px, transparent 1px); }
.lgs-guru .lgs-orb-1 { background: #8b5cf6; }
.lgs-guru .lgs-orb-2 { background: #ec4899; }
.lgs-guru .lgs-orb-3 { background: #6366f1; }
[data-theme="dark"] .lgs-grid { background-image: linear-gradient(rgba(129,140,248,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(129,140,248,.17) 1px, transparent 1px); }
[data-theme="dark"] .lgs-orb { opacity: .38; }
[data-theme="dark"] .lgs-guru .lgs-grid { background-image: linear-gradient(rgba(167,139,250,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(167,139,250,.17) 1px, transparent 1px); }

/* Tata letak dua kolom */
.lgs-wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(36px, 6vw, 84px); width: 100%; max-width: 1080px; }
.lgs-panel { width: 100%; max-width: 442px; flex-shrink: 0; animation: lgsRise .65s cubic-bezier(.22,.8,.32,1) both; animation-delay: .08s; }
.lgs-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; animation: lgsRise .7s cubic-bezier(.22,.8,.32,1) both; }
@keyframes lgsRise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* Panel branding kiri */
.lgs-brand-badge { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--bg-secondary); border: 1px solid var(--border); box-shadow: 0 8px 22px rgba(15,23,42,.08); }
.lgs-brand-logo { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 6px 14px rgba(99,102,241,.4); }
.lgs-guru .lgs-brand-logo { background: linear-gradient(135deg, #7c3aed, #db2777); box-shadow: 0 6px 14px rgba(139,92,246,.4); }
.lgs-brand-name { font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; letter-spacing: .02em; color: var(--text-primary); }
.lgs-brand-name b { color: var(--accent-violet); }
.lgs-guru .lgs-brand-name b { color: var(--accent-pink); }
.lgs-brand-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; font-weight: 800; color: var(--text-primary); margin: 0; }
.lgs-brand-title span { background: linear-gradient(90deg, #4f46e5, #a855f7, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lgs-guru .lgs-brand-title span { background: linear-gradient(90deg, #7c3aed, #ec4899, #f59e0b); -webkit-background-clip: text; background-clip: text; }
.lgs-brand-sub { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); max-width: 46ch; margin: 0; }
.lgs-brand-foot { font-size: 11px; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

/* Terminal mockup */
.lgs-term { border-radius: 16px; overflow: hidden; border: 1px solid rgba(99,102,241,.25); background: #0b1023; box-shadow: 0 18px 40px rgba(2,6,23,.35); }
.lgs-guru .lgs-term { border-color: rgba(139,92,246,.3); }
.lgs-term-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,.045); border-bottom: 1px solid rgba(255,255,255,.07); }
.lgs-term-dot { width: 10px; height: 10px; border-radius: 50%; }
.lgs-term-dot:nth-child(1) { background: #f87171; }
.lgs-term-dot:nth-child(2) { background: #fbbf24; }
.lgs-term-dot:nth-child(3) { background: #34d399; }
.lgs-term-title { margin-left: 8px; font: 600 10.5px 'JetBrains Mono', monospace; color: rgba(226,232,240,.55); letter-spacing: .04em; }
.lgs-term-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; }
.lgs-line { margin: 0; font: 500 12px/1.5 'JetBrains Mono', monospace; color: #93c5fd; opacity: 0; animation: lgsLine .45s ease forwards; animation-delay: var(--d, 0s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgs-line:first-child { color: #c4b5fd; }
.lgs-line b { color: #34d399; font-weight: 700; }
@keyframes lgsLine { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.lgs-caret { display: inline-block; width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px; background: #a5b4fc; animation: lgsCaret 1.05s steps(1) infinite; }
@keyframes lgsCaret { 50% { opacity: 0; } }

/* Daftar fitur */
.lgs-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lgs-feats li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--bg-secondary); border: 1px solid var(--border); box-shadow: 0 6px 16px rgba(15,23,42,.05); transition: transform .18s ease, border-color .18s ease; animation: lgsRise .6s cubic-bezier(.22,.8,.32,1) both; }
.lgs-feats li:nth-child(1) { animation-delay: .25s; }
.lgs-feats li:nth-child(2) { animation-delay: .4s; }
.lgs-feats li:nth-child(3) { animation-delay: .55s; }
.lgs-feats li:hover { transform: translateX(5px); border-color: rgba(99,102,241,.45); }
.lgs-feats li > i { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.lgs-guru .lgs-feats li > i { background: linear-gradient(135deg, #7c3aed, #db2777); }
.lgs-feats b { display: block; font-size: 13px; color: var(--text-primary); }
.lgs-feats span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* Pemilih peran (segmented control) */
.lgs-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bg-secondary); border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(15,23,42,.08); margin-bottom: 16px; }
.lgs-role { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-muted); background: transparent; border: 0; cursor: pointer; transition: all .18s ease; font-family: inherit; }
.lgs-role i { font-size: 12px; }
button.lgs-role:hover { color: var(--accent-violet); background: var(--glass-hover); }
.lgs-role.active { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.35); cursor: default; }
.lgs-guru .lgs-role.active { background: linear-gradient(135deg, #7c3aed, #db2777); box-shadow: 0 6px 16px rgba(124,58,237,.35); }

/* Kartu form */
.lgs-card { position: relative; padding: 26px 26px 22px; border-radius: 20px; overflow: hidden; }
.lgs-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #4f46e5, #a855f7, #22d3ee); }
.lgs-guru .lgs-card::before { background: linear-gradient(90deg, #7c3aed, #ec4899, #f59e0b); }
.lgs-logo { width: 62px; height: 62px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); margin: 0 auto 14px; overflow: hidden; animation: lgsPulse 2.6s ease-out infinite; }
.lgs-guru .lgs-logo { background: linear-gradient(135deg, #7c3aed, #db2777); }
@keyframes lgsPulse { 0% { box-shadow: 0 10px 24px rgba(99,102,241,.35), 0 0 0 0 rgba(99,102,241,.32); } 70% { box-shadow: 0 10px 24px rgba(99,102,241,.35), 0 0 0 16px rgba(99,102,241,0); } 100% { box-shadow: 0 10px 24px rgba(99,102,241,.35), 0 0 0 0 rgba(99,102,241,0); } }
.lgs-guru .lgs-logo { animation-name: lgsPulseGuru; }
@keyframes lgsPulseGuru { 0% { box-shadow: 0 10px 24px rgba(139,92,246,.4), 0 0 0 0 rgba(139,92,246,.32); } 70% { box-shadow: 0 10px 24px rgba(139,92,246,.4), 0 0 0 16px rgba(139,92,246,0); } 100% { box-shadow: 0 10px 24px rgba(139,92,246,.4), 0 0 0 0 rgba(139,92,246,0); } }

/* Tombol submit murid dengan efek sheen */
.lgs-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 4px; padding: 14px 18px; border: 0; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: .01em; color: #fff; cursor: pointer; overflow: hidden; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 10px 22px rgba(79,70,229,.32); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.lgs-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79,70,229,.42); filter: saturate(1.08); }
.lgs-btn:active:not(:disabled) { transform: translateY(0) scale(.985); }
.lgs-btn:disabled { opacity: .6; cursor: not-allowed; }
.lgs-btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); transition: left .5s ease; }
.lgs-btn:hover:not(:disabled)::after { left: 130%; }

/* Tautan kembali (guru) */
.lgs-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--text-muted); padding: 8px 10px; border-radius: 10px; transition: all .15s ease; font-family: inherit; }
.lgs-back:hover { color: var(--accent-violet); background: var(--glass-hover); }

/* Tombol tema di sudut halaman login */
.lgs-theme { position: absolute; top: 20px; right: 20px; z-index: 5; }

/* Haluskan keypad & titik PIN di halaman guru */
.lgs-guru .pin-key { height: 56px; border-radius: 14px; font-weight: 700; transition: background .15s ease, transform .1s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.lgs-guru .pin-key:hover { border-color: rgba(124,58,237,.55); color: var(--accent-pink); box-shadow: 0 6px 16px rgba(124,58,237,.18); }
.lgs-guru .pin-key.action { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; border-color: transparent; }
.lgs-guru .pin-dot { width: 46px; height: 52px; border-radius: 14px; font-size: 22px; font-weight: 800; }

/* Responsif & aksesibilitas gerak */
@media (max-width: 1023px) { .lgs-brand { display: none; } }
@media (max-width: 480px) {
  .lgs-gate { padding: 22px 14px; }
  .lgs-card { padding: 22px 18px 18px; }
  .lgs-theme { top: 14px; right: 14px; }
}
@media (max-height: 720px) { .lgs-gate { align-items: flex-start; padding-top: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .lgs-grid, .lgs-orb, .lgs-scan, .lgs-logo, .lgs-caret, .lgs-brand, .lgs-panel, .lgs-feats li { animation: none !important; }
  .lgs-line { animation: none !important; opacity: 1 !important; }
}

/* ============================================================
   CMS — KONTEN DINAMIS (v2.7.0)
   ============================================================ */
.cms-babchip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  border: 1.5px solid var(--border); background: var(--glass); color: var(--text-secondary);
  cursor: pointer; transition: all .15s ease;
}
.cms-babchip:hover { border-color: var(--accent-pink); color: var(--accent-pink); transform: translateY(-1px); }
.cms-babchip.on { background: var(--accent-pink); border-color: var(--accent-pink); color: #fff; }
.cms-babchip i { font-size: 8px; opacity: .85; }
.cms-flash { animation: cmsFlash 1.5s ease; }
@keyframes cmsFlash {
  0% { box-shadow: 0 0 0 3px rgba(124, 58, 237, .55); }
  100% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0); }
}
