/* ============================================================
   lms-overrides.css — Brilliant LMS Custom Overrides for Argon
   ============================================================ */

/* ── Loading Overlay ── */
.loading-overlay {
  position: fixed; inset: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  z-index: 99999;
  transition: opacity 0.15s;
}
.loading-overlay.fade-out { opacity: 0; pointer-events: none; }
.loading-spinner { text-align: center; }

/* ── Toast Container ── */
.toast-container {
  position: fixed; top: 1rem; right: 1rem; z-index: 100300;
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 380px;
}
.toast-item {
  padding: 0.85rem 1.2rem;
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
  animation: toastIn 0.3s ease;
  display: flex; align-items: center; gap: 0.5rem;
}
.toast-item.toast--success { background: #2dce89; }
.toast-item.toast--error   { background: #f5365c; }
.toast-item.toast--info    { background: #11cdef; }
.toast-item.toast--warning { background: #fb6340; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Chatbot Widget ── */
.chatbot-widget {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 9999;
  width: 380px; max-height: 520px;
  background: #fff; border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(50,50,93,.2), 0 5px 15px rgba(0,0,0,.17);
  display: none; flex-direction: column;
  overflow: hidden;
}
.chatbot-widget.hidden { display: none !important; }
.chatbot-widget.open { display: flex; }
.chatbot-header {
  background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
  color: #fff; padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.chatbot-title { display: flex; align-items: center; gap: 0.5rem; }
.chatbot-avatar { font-size: 1.5rem; }
.chatbot-name { font-weight: 700; font-size: 0.95rem; display: block; }
.chatbot-status { font-size: 0.75rem; opacity: 0.8; display: block; }
.chatbot-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; max-height: 350px; }
.chat-message { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; align-items: flex-start; }
.chat-message--bot { flex-direction: row; }
.chat-message--user { flex-direction: row-reverse; }
.chat-avatar { font-size: 1.2rem; flex-shrink: 0; }
.chat-bubble {
  padding: 0.6rem 0.9rem; border-radius: 0.75rem;
  font-size: 0.85rem; line-height: 1.5; max-width: 80%;
}
.chat-message--bot .chat-bubble { background: #f6f9fc; color: #32325d; }
.chat-message--user .chat-bubble { background: #5e72e4; color: #fff; }
.chatbot-input-area { display: flex; padding: 0.5rem; border-top: 1px solid #e9ecef; }
.chatbot-input {
  flex: 1; border: 1px solid #dee2e6; border-radius: 0.375rem;
  padding: 0.5rem 0.75rem; font-size: 0.85rem; outline: none;
}
.chatbot-input:focus { border-color: #5e72e4; box-shadow: 0 0 0 0.2rem rgba(94,114,228,.25); }
.chatbot-send {
  background: #5e72e4; color: #fff; border: none;
  border-radius: 0.375rem; padding: 0.5rem 0.75rem; margin-left: 0.3rem;
  cursor: pointer; font-size: 1rem;
}
.chatbot-send:hover { background: #324cdd; }
.chatbot-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
  color: #fff; border: none; cursor: pointer;
  box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: transform 0.2s;
}
.chatbot-fab.hidden { display: none !important; }
.chatbot-fab:hover { transform: scale(1.1); }
.fab-badge {
  position: absolute; top: -2px; right: -2px;
  background: #f5365c; color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.fab-badge.hidden { display: none; }
.typing-indicator span {
  display: inline-block; width: 8px; height: 8px;
  background: #adb5bd; border-radius: 50%; margin: 0 2px;
  animation: typingDot 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* ── Modal / Prompt ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; transition: opacity 0.2s;
  backdrop-filter: blur(8px);
  animation: overlayFade 0.18s ease-out both;
}
.modal-overlay > .modal {
  display: block;
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 15px 35px rgba(50,50,93,.2);
  animation: modalPop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Argon Layout Adjustments for Vanilla JS ── */
@media (min-width: 768px) {
  .navbar-vertical.fixed-left + .main-content { margin-left: 250px; }
}
.navbar-vertical.fixed-left { width: 250px; }

/* Page loading spinner */
.page-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 40vh;
}

/* ── Sidebar Nav Item Hover ── */
#sidenav-main .navbar-nav .nav-link {
  margin: 0.2rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  padding: 0.65rem 1rem;
}
#sidenav-main .navbar-nav .nav-link:hover {
  background: rgba(94, 114, 228, 0.1);
  transform: translateX(3px);
}
#sidenav-main .navbar-nav .nav-link.active {
  background: rgba(94, 114, 228, 0.1);
  font-weight: 600;
}
#sidenav-main .navbar-nav .nav-link i {
  font-size: 1.1rem;
  margin-right: 0.75rem;
  width: 1.5rem;
  text-align: center;
}

/* ── Top Navbar Item Hover ── */
.navbar-top .navbar-nav .nav-link {
  border-radius: 2rem;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  display: flex; align-items: center; justify-content: center;
  color: #525f7f;
}
.navbar-top .navbar-nav .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
  color: #32325d;
}
.navbar-top .navbar-nav .nav-link i { font-size: 1.1rem; }


/* ── LMS Stat Cards (Argon style) ── */
.lms-stat-card .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.2rem;
}

/* ── Course Cards ── */
.course-card-grid .card { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.course-card-grid .card:hover { transform: translateY(-2px); box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08); }
.course-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 0.375rem 0.375rem 0 0; background: #f6f9fc; display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 28px;
}
.course-visibility-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.course-visibility-pill.is-public {
  color: #0e7490;
  background: rgba(17, 205, 239, 0.12);
  border-color: rgba(17, 205, 239, 0.28);
}
.course-visibility-pill.is-private {
  color: #b45309;
  background: rgba(251, 99, 64, 0.12);
  border-color: rgba(251, 99, 64, 0.28);
}
.course-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* ── Lesson / Quiz Lists ── */
.lesson-list-item, .quiz-list-item {
  border-bottom: 1px solid #e9ecef; cursor: pointer; transition: background 0.15s;
}
.lesson-list-item:hover, .quiz-list-item:hover { background: #f6f9fc; }
.lesson-list-item.done { opacity: 0.7; }
.lesson-list-item.locked, .quiz-list-item.locked { opacity: 0.5; cursor: not-allowed; }

/* ── Video Container ── */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 0.375rem; margin-bottom: 1.5rem; }
.video-container iframe, .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ── Auth Page (non-sidebar) ── */
.auth-page-wrapper { min-height: 100vh; }
.page-login .auth-page-wrapper,
.page-register .auth-page-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(17,205,239,0.34), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(111,66,193,0.3), transparent 36%),
    radial-gradient(circle at 54% 88%, rgba(94,114,228,0.2), transparent 44%),
    linear-gradient(135deg, #dff6ff 0%, #e8edff 48%, #f0e6ff 100%);
}
.page-login .auth-page-wrapper::before,
.page-register .auth-page-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.36;
}
.page-login .auth-page-wrapper::after,
.page-register .auth-page-wrapper::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(980px, 82vw);
  height: min(980px, 82vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,0.5), rgba(255,255,255,0.08) 46%, transparent 68%);
  filter: blur(18px);
  opacity: 0.74;
}
.page-login .header.bg-gradient-info,
.page-register .header.bg-gradient-info {
  position: relative;
  z-index: 2;
  background: transparent !important;
  padding-top: 4.25rem !important;
  padding-bottom: 7.25rem !important;
}
.page-login .header .header-body,
.page-register .header .header-body {
  margin-bottom: 0 !important;
}
.page-login .header h1,
.page-register .header h1 {
  color: #172b4d !important;
  text-shadow: none;
}
.page-login .header .text-light,
.page-register .header .text-light {
  color: #53657d !important;
}
.page-login .separator,
.page-register .separator {
  display: none !important;
}
.page-login .container.mt--8,
.page-register .container.mt--8 {
  position: relative;
  z-index: 3;
  margin-top: -5.2rem !important;
}
.page-login .card,
.page-register .card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 24px;
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 30px 90px rgba(31,41,85,0.18);
  backdrop-filter: blur(18px);
}
.page-login .row.mt-3 a,
.page-register .row.mt-3 a {
  color: #5e72e4 !important;
}
.auth-submit-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 132px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.auth-submit-btn.is-loading {
  opacity: 0.78;
  cursor: wait;
  pointer-events: none;
  transform: none !important;
}

/* ── Progress page bar tweaks ── */
.progress-lms { height: 0.5rem; border-radius: 0.25rem; }

/* ── Admin tables ── */
.admin-section .table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

/* ── Responsive fixes ── */
@media (max-width: 767.98px) {
  .chatbot-widget { width: 95vw; right: 2.5vw; bottom: 4rem; }
}

/* ── Hide sidebar for auth pages ── */
body.auth-active #sidenav-main { display: none !important; }
body.auth-active .main-content { margin-left: 0 !important; }
body.auth-active #navbar-main { display: none !important; }
body.auth-active #appFooter { display: none !important; }

/* ── Brilliant Style Dashboard ── */
.brilliant-bg { background-color: #f7f9fa !important; }
.brilliant-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eef1f3;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.brilliant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.brilliant-streak-day {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid #eef1f3;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: #a0aab2;
  margin: 0 auto;
}
.brilliant-streak-day.active {
  border-color: #fb6340; color: #fb6340; background: rgba(251, 99, 64, 0.1);
}
.brilliant-btn-gradient {
  background: linear-gradient(90deg, #9b51e0, #4a90e2);
  color: white;
  border-radius: 2rem;
  font-weight: 700;
  border: none;
  padding: 0.75rem 2rem;
  transition: opacity 0.2s;
}
.brilliant-btn-gradient:hover {
  opacity: 0.9; color: white;
}
.brilliant-btn-gradient-orange {
  background: linear-gradient(90deg, #ff9966, #ff5e62);
  color: white;
  border-radius: 2rem;
  font-weight: 700;
  border: none;
  padding: 0.75rem 2rem;
}
.brilliant-course-thumb {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.brilliant-recommended-badge {
  color: #9b51e0;
  background: rgba(155, 81, 224, 0.1);
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.7rem;
}

/* ── Brilliant Course Nodes ── */
.brilliant-path-container {
  display: flex; flex-direction: column; align-items: center; padding: 2rem 0;
}
.brilliant-level-badge {
  border: 2px solid #ce93d8;
  border-radius: 20px;
  padding: 0.5rem 2rem;
  text-align: center;
  background: #fff;
  margin-bottom: 2rem;
}
.brilliant-node-wrapper {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 1.5rem; width: 100%;
}
.brilliant-node {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: transform 0.2s;
  position: relative;
  background: #f0f2f5;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.brilliant-node:hover { transform: scale(1.05); }
.brilliant-node.completed {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: white;
}
.brilliant-node.active {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 0 0 8px rgba(155, 81, 224, 0.2), 0 0 0 16px rgba(155, 81, 224, 0.1);
}
.brilliant-node.active::before,
.brilliant-node.active::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  border: 3px solid rgba(155, 81, 224, 0.28);
  animation: activeNodeRipple 1.9s ease-out infinite;
  z-index: -1;
}
.brilliant-node.active::after {
  animation-delay: 0.75s;
}
@keyframes activeNodeRipple {
  0% { opacity: 0.55; transform: scale(0.86); }
  70% { opacity: 0.08; transform: scale(1.32); }
  100% { opacity: 0; transform: scale(1.42); }
}
.brilliant-node.locked {
  background: #e2e8f0; color: #94a3b8; cursor: not-allowed;
}
.brilliant-node-title {
  font-weight: 700; margin-top: 0.5rem; color: #334155; text-align: center;
}
.brilliant-node-active-popover {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 1rem;
  width: 100%; max-width: 320px;
  text-align: center;
  position: relative; z-index: 3;
}

/* ── Quiz Options ── */
.quiz-option {
  background: #fcfcfc;
  border: 2px solid #eef1f3 !important;
  transition: all 0.2s ease;
}
.quiz-option:hover {
  background: #f4f5f7;
  border-color: #d1d9e6 !important;
}
.quiz-option.selected {
  background: rgba(155, 81, 224, 0.05);
  border-color: #9b51e0 !important;
}
.quiz-option.selected .badge {
  background-color: #9b51e0 !important;
  color: white !important;
}

/* ── Smooth page transitions and responsive feedback ── */
.page-container {
  min-height: calc(100vh - 120px);
}
.page-enter {
  animation: pageFadeUp 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pageFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.spinner-ring {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(94,114,228,0.18);
  border-top-color: #5e72e4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn,
.brilliant-btn-gradient,
.brilliant-btn-gradient-orange,
.chatbot-fab,
#sidenav-main .nav-link,
.navbar-top .navbar-nav .nav-link {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.btn:hover,
.brilliant-btn-gradient:hover,
.brilliant-btn-gradient-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(50,50,93,0.14), 0 4px 10px rgba(0,0,0,0.08);
}
.btn:active,
.brilliant-btn-gradient:active,
.brilliant-btn-gradient-orange:active,
.chatbot-fab:active {
  transform: translateY(0) scale(0.98);
}
.brilliant-card,
.card,
.dropdown-menu,
.chatbot-widget {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(15,23,42,0.16);
}
.toast--success { background: #2dce89; }
.toast--error { background: #f5365c; }
.toast--warning { background: #fb6340; }
.toast--info { background: #11cdef; }
.toast-enter { opacity: 0; transform: translateX(28px) scale(0.96); }
.toast-visible { opacity: 1; transform: translateX(0) scale(1); transition: opacity 0.25s ease, transform 0.25s ease; }
.toast-exit { opacity: 0; transform: translateX(28px) scale(0.96); transition: opacity 0.2s ease, transform 0.2s ease; }

/* ── Dashboard refinements ── */
.dashboard-leaderboard-card {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.dashboard-leaderboard-card:hover {
  border-color: rgba(94,114,228,0.35);
}
.leaderboard-unlock-track,
.leaderboard-xp-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecef;
}
.leaderboard-unlock-track span,
.leaderboard-xp-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dce89, #5e72e4);
}
.dashboard-course-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.dashboard-course-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #f6f9fc;
  color: #32325d;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── Modern shell for legacy Argon pages ── */
.page-admin,
.page-progress,
.page-lesson,
.page-quiz,
.page-quizzes,
.page-tracking,
.page-profile {
  max-width: none;
  margin: 0;
  padding: 2rem 1.5rem 3rem;
  background: #f7f9fa;
}
.page-courses,
.page-course-detail,
.page-dashboard {
  max-width: none;
  margin: 0;
  padding: 0;
}
.page-courses .brilliant-bg,
.page-course-detail .brilliant-bg,
.page-dashboard .brilliant-bg {
  padding: 2rem 1.5rem 3rem;
}
.page-admin > .header,
.page-progress > .header,
.page-lesson > .header,
.page-quiz > .header,
.page-quizzes > .header,
.page-tracking > .header,
.page-profile > .header {
  min-height: auto !important;
  margin-bottom: 1.5rem;
  padding: 2rem !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(23,43,77,0.16);
}
.page-profile > .header {
  min-height: 260px !important;
}
.page-admin > .header .container-fluid,
.page-progress > .header .container-fluid,
.page-lesson > .header .container-fluid,
.page-quiz > .header .container-fluid,
.page-tracking > .header .container-fluid,
.page-profile > .header .container-fluid {
  padding-right: 0;
  padding-left: 0;
}
.page-admin > .container-fluid,
.page-progress > .container-fluid,
.page-lesson > .container-fluid,
.page-quiz > .container-fluid,
.page-tracking > .container-fluid,
.page-profile > .container-fluid {
  padding-right: 0;
  padding-left: 0;
}
.page-admin > .container-fluid.mt--7,
.page-progress > .container-fluid.mt--7,
.page-lesson > .container-fluid.mt--7,
.page-quiz > .container-fluid.mt--7,
.page-quiz > .container-fluid.mt--6,
.page-tracking > .container-fluid.mt--7,
.page-profile > .container-fluid.mt--7 {
  margin-top: 0 !important;
}
.page-admin .card,
.page-progress .card,
.page-lesson .card,
.page-quiz .card,
.page-tracking .card,
.page-profile .card,
.page-courses .card,
.page-course-detail .brilliant-card {
  border: 1px solid #eef1f3;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.07) !important;
  overflow: hidden;
}
.page-admin .card-header,
.page-progress .card-header,
.page-quiz .card-header,
.page-tracking .card-header,
.page-profile .card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eef1f3 !important;
  background: #fff !important;
}
.page-admin .card-header h3,
.page-progress .card-header h3,
.page-quiz .card-header h3,
.page-tracking .card-header h3,
.page-profile .card-header h3 {
  color: #172b4d;
  font-size: 1rem;
  font-weight: 800;
}
.page-admin .table-responsive,
.page-progress .table-responsive {
  overflow: auto;
}
.page-admin .table {
  margin-bottom: 0;
}
.page-admin .table th,
.page-admin .table td {
  vertical-align: middle;
  padding: 1rem 1.5rem;
}
.page-admin .table th {
  border-top: 0;
  color: #8898aa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.page-admin .table td {
  color: #525f7f;
  font-size: 0.92rem;
}
.page-admin .table td:first-child strong {
  color: #2f3f66;
  font-weight: 800;
}
.page-admin .table td:last-child {
  min-width: 320px;
  white-space: nowrap;
}
.page-admin .table td:last-child .btn {
  min-width: 86px;
  height: 34px;
  margin: 0.18rem;
  padding: 0 0.75rem;
  border-radius: 8px;
}
.page-admin #createCourseBtn,
.page-admin #addLessonBtn,
.page-admin #addQuizBtn {
  height: 38px;
  border-radius: 10px;
  font-weight: 800;
}
.page-progress .row,
.page-courses .row,
.page-course-detail .row {
  row-gap: 1rem;
}
.page-progress .card,
.page-courses .card {
  height: 100%;
}
.page-progress .card-body,
.page-courses .card-body,
.page-lesson .card-body,
.page-quiz .card-body,
.page-tracking .card-body,
.page-profile .card-body {
  padding: 1.5rem;
}
.page-progress .progress,
.page-courses .progress,
.page-quiz .progress {
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecef;
}
.page-courses .row.pt-4.px-lg-4:first-child {
  margin: 0 0 1.5rem;
  padding: 0 !important;
}
.page-courses .row.pt-4.px-lg-4:first-child .col-12 {
  padding: 2rem;
  border-radius: 18px;
  text-align: left !important;
  color: #fff;
  background: linear-gradient(135deg, #172b4d 0%, #5e72e4 52%, #2dce89 100%);
  box-shadow: 0 18px 45px rgba(23,43,77,0.16);
}
.page-courses .row.pt-4.px-lg-4:first-child h1 {
  color: #fff !important;
  font-size: 2rem;
  line-height: 1.15;
}
.page-courses .row.pt-4.px-lg-4:first-child p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255,255,255,0.78) !important;
  font-size: 1rem !important;
}
.page-courses .course-thumb {
  border-radius: 16px 16px 0 0;
}
.page-courses .card-title {
  color: #172b4d;
  font-weight: 800;
  line-height: 1.35;
}
.page-lesson .header h1,
.page-quiz .header h1,
.page-quiz .header h3,
.page-admin .header h1,
.page-progress .header h1 {
  font-weight: 800;
  line-height: 1.15;
}
.page-lesson .header .badge,
.page-quiz .header .badge {
  height: 28px;
  align-items: center;
}
.page-quiz .quiz-option {
  min-height: 50px;
  border-radius: 12px !important;
  padding: 0.8rem 1rem !important;
}
.page-quiz .quiz-option span:last-child {
  line-height: 1.45;
}
.page-quiz .card + .card {
  margin-top: 0.9rem;
}
.page-profile .card-profile {
  overflow: visible;
}
.page-profile .form-group {
  margin-bottom: 1.15rem;
}
.page-profile .form-control,
.page-admin .form-control,
.modal-overlay .form-control {
  min-height: 44px;
  border-radius: 10px;
}
.page-profile .form-control-label,
.page-admin .form-control-label,
.modal-overlay .form-control-label {
  color: #525f7f;
  font-size: 0.78rem;
  font-weight: 800;
}
.page-profile .heading-small {
  letter-spacing: 0.08em;
}
.page-profile hr {
  border-color: #eef1f3;
}

/* ── Leaderboard page ── */
.leaderboard-page {
  padding: 2rem 1.5rem 3rem;
}
.leaderboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #172b4d 0%, #5e72e4 52%, #2dce89 100%);
  box-shadow: 0 18px 45px rgba(23,43,77,0.2);
}
.leaderboard-hero h1 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 800;
}
.leaderboard-hero p {
  margin: 0;
  color: rgba(255,255,255,0.78);
}
.leaderboard-kicker {
  margin-bottom: 0.45rem !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.leaderboard-podium-card,
.leaderboard-list-card {
  background: #fff;
  border: 1px solid #eef1f3;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.07);
}
.leaderboard-podium-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 1.4rem;
  text-align: center;
}
.leaderboard-podium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #5e72e4, #2dce89);
}
.leaderboard-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 30px;
  padding: 0 0.75rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #172b4d;
  font-weight: 800;
}
.leaderboard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #5e72e4, #11cdef);
  box-shadow: 0 10px 25px rgba(94,114,228,0.28);
}
.leaderboard-avatar--sm {
  width: 42px;
  height: 42px;
  margin: 0;
  font-size: 1rem;
  flex: 0 0 auto;
}
.leaderboard-podium-card h3 {
  margin-bottom: 0.35rem;
  color: #172b4d;
  font-size: 1.05rem;
  font-weight: 800;
}
.leaderboard-podium-card h3 span,
.leaderboard-user span {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(45,206,137,0.12);
  color: #24a46d;
  font-size: 0.68rem;
  font-weight: 800;
}
.leaderboard-podium-card strong {
  display: block;
  color: #5e72e4;
  font-size: 1.2rem;
}
.leaderboard-podium-card small {
  color: #8898aa;
  font-weight: 700;
}
.leaderboard-podium-card.is-current,
.leaderboard-row.is-current {
  border-color: rgba(45,206,137,0.45);
  background: linear-gradient(180deg, rgba(45,206,137,0.08), #fff);
}
.leaderboard-list-card {
  padding: 1rem;
}
.leaderboard-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.35rem 1rem;
}
.leaderboard-list-header h3 {
  margin: 0;
  color: #172b4d;
  font-size: 1rem;
  font-weight: 800;
}
.leaderboard-list-header span {
  color: #8898aa;
  font-size: 0.85rem;
  font-weight: 700;
}
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 42px minmax(0, 1fr) minmax(130px, 210px);
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid #eef1f3;
  border-radius: 12px;
  background: #fff;
}
.leaderboard-rank {
  color: #5e72e4;
  font-weight: 800;
}
.leaderboard-user {
  min-width: 0;
}
.leaderboard-user div {
  color: #172b4d;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leaderboard-user small {
  color: #8898aa;
  font-weight: 700;
}
.leaderboard-xp {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}
.leaderboard-xp strong {
  color: #172b4d;
  font-size: 0.9rem;
}

/* Brand alignment */
.lms-brand {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem !important;
  margin: 0.25rem 0 1rem;
  line-height: 1;
}
.lms-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #5e72e4;
  background: rgba(94,114,228,0.12);
  flex: 0 0 auto;
}
.lms-brand-text {
  color: #5e72e4;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Profile learning cover */
.profile-learning-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(45,206,137,0.32), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(17,205,239,0.28), transparent 30%),
    linear-gradient(135deg, #172b4d 0%, #2b3f73 48%, #5e72e4 100%);
}
.profile-learning-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 42px 42px;
}
.profile-learning-hero::after {
  content: "\f19d  \f02d  \f5da";
  position: absolute;
  right: 3rem;
  bottom: 2rem;
  color: rgba(255,255,255,0.18);
  font-family: "Font Awesome 6 Free";
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 1rem;
  pointer-events: none;
}
.profile-learning-hero .container-fluid {
  position: relative;
  z-index: 1;
}

/* Missions page */
.missions-page {
  padding: 2rem 1.5rem 3rem;
  background: #f7f9fa;
}
.missions-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #172b4d 0%, #5e72e4 52%, #2dce89 100%);
  box-shadow: 0 18px 45px rgba(23,43,77,0.2);
}
.missions-hero h1 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 800;
}
.missions-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,0.78);
}
.missions-kicker {
  margin-bottom: 0.45rem !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.missions-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.missions-stat-card,
.mission-card,
.leaderboard-locked-card {
  background: #fff;
  border: 1px solid #eef1f3;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.07);
}
.missions-stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem;
}
.missions-stat-icon,
.mission-icon,
.leaderboard-locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f6f9fc;
  flex: 0 0 auto;
}
.missions-stat-card strong {
  display: block;
  color: #172b4d;
  font-size: 1.3rem;
  font-weight: 800;
}
.missions-stat-card span:last-child {
  color: #8898aa;
  font-weight: 700;
}
.missions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.mission-card {
  padding: 1.25rem;
}
.mission-card-head,
.mission-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.mission-status {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
  font-size: 0.75rem;
  font-weight: 800;
}
.mission-card h3 {
  margin: 1rem 0 0.35rem;
  color: #172b4d;
  font-size: 1.05rem;
  font-weight: 800;
}
.mission-card p {
  min-height: 48px;
  margin-bottom: 1rem;
  color: #8898aa;
  line-height: 1.55;
}
.mission-progress-label {
  color: #8898aa;
  font-size: 0.8rem;
  font-weight: 800;
}
.mission-track {
  height: 8px;
  margin: 0.5rem 0 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecef;
}
.mission-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5e72e4, #2dce89);
}
.mission-reward {
  color: #525f7f;
  font-size: 0.86rem;
  font-weight: 700;
}
.mission-card.is-complete {
  border-color: rgba(45,206,137,0.45);
}
.mission-card.is-complete .mission-status {
  color: #24a46d;
  background: rgba(45,206,137,0.12);
}

/* Locked leaderboard */
.dashboard-leaderboard-card.is-locked {
  cursor: default;
}
.leaderboard-hero--locked {
  background: linear-gradient(135deg, #172b4d 0%, #5e72e4 58%, #fb6340 100%);
}
.leaderboard-locked-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 640px;
  padding: 1.25rem;
}
.leaderboard-locked-icon {
  color: #172b4d;
  font-size: 1.2rem;
}
.leaderboard-locked-copy {
  flex: 1;
}
.leaderboard-locked-copy h3 {
  margin-bottom: 0.65rem;
  color: #172b4d;
  font-weight: 800;
}

/* Student quiz one-question flow */
.quiz-play-topbar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 1rem;
}
.quiz-play-topbar small {
  color: rgba(255,255,255,0.72);
}
.quiz-timer-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: #172b4d;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(15,23,42,0.12);
}
.quiz-play-wrap {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}
.quiz-progress-shell {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #eef1f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,0.07);
}
.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: #8898aa;
  font-size: 0.82rem;
  font-weight: 800;
}
.quiz-play-card {
  padding: 1.5rem;
  border: 1px solid #eef1f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}
.quiz-play-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.quiz-question-badge,
.quiz-question-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}
.quiz-question-badge {
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
}
.quiz-question-type {
  color: #24a46d;
  background: rgba(45,206,137,0.12);
}
.quiz-play-card h2 {
  color: #172b4d;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
}
.quiz-question-hint {
  color: #8898aa;
  font-weight: 700;
}
.quiz-play-options {
  display: grid;
  gap: 0.8rem;
}
.quiz-play-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 64px;
  padding: 0.85rem 1rem;
  border: 2px solid #eef1f3;
  border-radius: 14px;
  background: #fff;
  color: #172b4d;
  text-align: left;
  cursor: pointer;
}
.quiz-play-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
  font-weight: 800;
}
.quiz-play-option strong {
  line-height: 1.45;
}
.quiz-play-option:hover {
  border-color: rgba(94,114,228,0.45);
  transform: translateY(-1px);
}
.quiz-play-option.is-correct {
  border-color: rgba(45,206,137,0.75);
  background: rgba(45,206,137,0.08);
  animation: answerCorrectPulse 0.45s ease;
}
.quiz-play-option.is-correct span {
  color: #fff;
  background: #2dce89;
}
.quiz-play-option.is-wrong {
  border-color: rgba(245,54,92,0.65);
  background: rgba(245,54,92,0.08);
  animation: answerShake 0.38s ease;
}
.quiz-play-option.is-wrong span {
  color: #fff;
  background: #f5365c;
}
.quiz-play-option:disabled {
  cursor: default;
}
.quiz-short-answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}
.quiz-short-answer.readonly {
  padding: 0.95rem 1rem;
  border: 1px solid #eef1f3;
  border-radius: 12px;
  color: #172b4d;
  background: #f6f9fc;
  font-weight: 800;
}
.quiz-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
}
.quiz-feedback.is-correct {
  color: #155f3f;
  background: rgba(45,206,137,0.12);
}
.quiz-feedback.is-wrong {
  color: #84203a;
  background: rgba(245,54,92,0.1);
}
.quiz-feedback-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.quiz-ai-explain-current {
  margin-top: 0.2rem;
}
.quiz-play-actions {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0 0;
}
.quiz-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eef1f3;
}
.quiz-review-main {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.quiz-review-main strong {
  color: #172b4d;
  line-height: 1.45;
}
.quiz-review-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
@keyframes answerCorrectPulse {
  0% { transform: scale(0.98); }
  55% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes answerShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  60% { transform: translateX(5px); }
}
/* Admin quiz builder */
.admin-quiz-modal {
  border-radius: 18px !important;
}
.admin-quiz-actions {
  flex-wrap: wrap;
}
.admin-question-card {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #eef1f3;
  border-radius: 14px;
  background: #fbfcfe;
}
.question-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.question-form-header span {
  color: #172b4d;
  font-weight: 800;
}
.question-form-header small {
  display: block;
  color: #8898aa;
  font-weight: 700;
}
.admin-question-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-question-tools .q-type {
  width: 170px;
  min-height: 38px;
}
.btn-remove-q,
.admin-ai-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #f5365c;
  background: rgba(245,54,92,0.1);
  cursor: pointer;
}
.admin-options-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.admin-option-row {
  display: grid;
  grid-template-columns: 20px 30px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}
.admin-option-row span {
  color: #5e72e4;
  font-weight: 800;
}
.hint-text {
  margin: 0.65rem 0;
  color: #8898aa;
  font-size: 0.82rem;
  font-weight: 700;
}
.admin-short-answer {
  margin: 0.85rem 0;
}
.q-explanation {
  margin-top: 0.75rem;
}
.admin-ai-overlay {
  z-index: 100000;
}
.admin-ai-modal {
  width: min(760px, 94vw) !important;
  max-width: 760px !important;
  border-radius: 18px !important;
}
.admin-ai-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-ai-header span {
  color: #5e72e4;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-ai-header h3 {
  margin: 0.25rem 0 0;
  color: #172b4d;
  font-weight: 800;
}
.ai-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.ai-type-grid label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #eef1f3;
  border-radius: 12px;
  background: #fff;
  color: #525f7f;
  font-weight: 800;
}

/* Quiz center */
.quiz-list-page {
  min-height: calc(100vh - 120px);
  padding: 2rem;
  background:
    radial-gradient(circle at 8% 10%, rgba(17,205,239,0.12), transparent 26%),
    radial-gradient(circle at 92% 4%, rgba(94,114,228,0.12), transparent 26%),
    #f7f9fa;
}
.quiz-list-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1.8rem;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 96% 8%, rgba(255,255,255,0.2), transparent 26%),
    linear-gradient(135deg, #5e72e4 0%, #11cdef 100%);
  box-shadow: 0 24px 60px rgba(94,114,228,0.22);
}
.quiz-list-kicker {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.16);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.quiz-list-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 950;
}
.quiz-list-hero p {
  max-width: 760px;
  margin: 0.7rem 0 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}
.quiz-list-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.quiz-list-stats span {
  min-height: 96px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 850;
}
.quiz-list-stats strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}
.quiz-list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.quiz-list-search {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(50,50,93,0.08);
}
.quiz-list-search i {
  color: #5e72e4;
}
.quiz-list-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172b4d;
  font-weight: 700;
}
.quiz-list-panel {
  overflow: hidden;
  border: 1px solid #e9ecef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(50,50,93,0.09);
}
.quiz-list-head,
.quiz-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(130px, 0.85fr) 110px minmax(125px, 0.8fr) minmax(125px, 0.8fr) 104px 96px 112px;
  gap: 0.75rem;
  align-items: center;
}
.quiz-list-head {
  padding: 1rem 1.25rem;
  background: #f6f9fc;
  color: #8898aa;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quiz-list-row {
  min-height: 94px;
  padding: 1rem 1.25rem;
  border-top: 1px solid #eef1f3;
  transition: background 0.18s ease, transform 0.18s ease;
}
.quiz-list-row:hover {
  background: #fbfcff;
}
.quiz-list-row.hidden {
  display: none !important;
}
.quiz-list-title,
.quiz-list-course {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.quiz-list-course {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.1rem;
}
.quiz-list-title strong,
.quiz-list-course strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #172b4d;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiz-list-title small,
.quiz-list-course small,
.quiz-list-time,
.quiz-list-duration,
.quiz-list-score {
  color: #8898aa;
  font-size: 0.85rem;
  font-weight: 800;
}
.quiz-list-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 16px;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
}
.quiz-status-pill {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-width: 92px;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}
.quiz-status-success {
  color: #1f8f63;
  background: rgba(45,206,137,0.13);
}
.quiz-status-warning {
  color: #b7791f;
  background: rgba(251,176,59,0.16);
}
.quiz-status-danger {
  color: #f5365c;
  background: rgba(245,54,92,0.11);
}
.quiz-status-muted {
  color: #8898aa;
  background: #f6f9fc;
}
.quiz-list-score.has-score {
  color: #5e72e4;
}
.quiz-list-action .btn {
  width: 100%;
}
.quiz-list-empty {
  display: grid;
  place-items: center;
  gap: 0.8rem;
  padding: 4rem 1rem;
  color: #8898aa;
  text-align: center;
}
.quiz-list-empty span {
  width: 68px;
  height: 68px;
  display: inline-grid;
  place-items: center;
  border-radius: 22px;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
  font-size: 1.5rem;
}
.quiz-list-empty h3 {
  margin: 0;
  color: #172b4d;
  font-weight: 950;
}
.quiz-list-empty p {
  margin: 0;
}

/* Feature polish: search, quiz results, calendar, certificates */
/* Global course search */
#navSearchForm {
  position: relative;
}
.global-search-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(50,50,93,0.16), 0 8px 18px rgba(0,0,0,0.08);
  padding: 0.45rem;
  animation: panelDrop 0.18s ease both;
}
.global-search-panel.hidden { display: none; }
.global-search-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.7rem;
  border-radius: 12px;
  cursor: pointer;
  color: #172b4d;
}
.global-search-item:hover { background: #f6f9fc; }
.global-search-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
}
.global-search-item strong,
.global-search-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-search-item small,
.global-search-empty { color: #8898aa; }
.global-search-empty {
  padding: 1rem;
  text-align: center;
  font-weight: 700;
}
@keyframes panelDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern quiz result */
.quiz-result-page {
  min-height: calc(100vh - 120px);
  padding: 2rem;
  background: #f7f9fa;
}
.quiz-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: stretch;
  border-radius: 22px;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(110deg, #2dce89 0%, #11cdef 100%);
  box-shadow: 0 20px 45px rgba(45,206,137,0.18);
}
.quiz-result-page.is-failed .quiz-result-hero {
  background: linear-gradient(110deg, #fb6340 0%, #f5365c 100%);
  box-shadow: 0 20px 45px rgba(245,54,92,0.18);
}
.quiz-result-kicker {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiz-result-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: 2.35rem;
  line-height: 1.12;
  font-weight: 900;
}
.quiz-result-copy p {
  max-width: 620px;
  margin: 0.85rem 0 0;
  color: rgba(255,255,255,0.84);
  font-size: 1.02rem;
}
.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.quiz-score-panel {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: 260px;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
}
.quiz-score-ring {
  width: 158px;
  height: 158px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(255,255,255,0.34) 0);
  color: #172b4d;
  box-shadow: 0 18px 35px rgba(0,0,0,0.1);
}
.quiz-score-ring span {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
}
.quiz-score-ring small {
  color: #8898aa;
  font-weight: 800;
  text-transform: uppercase;
}
.quiz-result-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.quiz-result-stats span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.7rem 0.45rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.quiz-result-stats strong {
  color: #fff;
  font-size: 1.15rem;
}
.quiz-review-modern {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eef1f3;
  box-shadow: 0 14px 34px rgba(50,50,93,0.08);
}
.quiz-review-modern-head { margin-bottom: 1rem; }
.quiz-review-modern-head span {
  color: #8898aa;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quiz-review-modern-head h2 {
  margin: 0.25rem 0 0;
  color: #172b4d;
  font-size: 1.35rem;
  font-weight: 900;
}
.quiz-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.quiz-review-card-modern {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 250px;
  padding: 1.1rem;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}
.quiz-review-card-modern.is-correct { border-color: rgba(45,206,137,0.28); }
.quiz-review-card-modern.is-wrong { border-color: rgba(245,54,92,0.26); }
.quiz-review-card-top,
.quiz-review-answer-stack p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.quiz-review-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: #5e72e4;
  font-weight: 900;
}
.quiz-review-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}
.quiz-review-card-modern.is-correct .quiz-review-status {
  color: #1aae6f;
  background: rgba(45,206,137,0.12);
}
.quiz-review-card-modern.is-wrong .quiz-review-status {
  color: #f5365c;
  background: rgba(245,54,92,0.1);
}
.quiz-review-card-modern h3 {
  margin: 0;
  color: #172b4d;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 900;
}
.quiz-review-answer-stack {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}
.quiz-review-answer-stack p {
  margin: 0;
  padding: 0.7rem;
  border-radius: 12px;
  background: #f6f9fc;
  color: #525f7f;
  font-weight: 800;
}
.quiz-review-answer-stack span {
  color: #8898aa;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.quiz-user-answer.is-wrong {
  color: #f5365c;
  background: rgba(245,54,92,0.08);
}
.quiz-user-answer.is-correct,
.quiz-correct-answer {
  color: #1aae6f;
  background: rgba(45,206,137,0.09);
}

/* Calendar and certificates */
.calendar-page,
.certificate-page {
  min-height: calc(100vh - 120px);
  padding: 2rem;
  background: #f7f9fa;
}
.calendar-hero,
.certificate-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.6rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eef1f3;
  box-shadow: 0 12px 30px rgba(50,50,93,0.08);
}
.calendar-kicker,
.certificate-kicker {
  margin: 0 0 0.35rem;
  color: #5e72e4;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.calendar-hero h1,
.certificate-hero h1 {
  margin: 0;
  color: #172b4d;
  font-size: 2rem;
  font-weight: 900;
}
.calendar-hero p,
.certificate-hero p {
  max-width: 680px;
  margin: 0.55rem 0 0;
  color: #8898aa;
}
.calendar-hero-stats {
  display: flex;
  gap: 0.75rem;
}
.calendar-hero-stats span {
  min-width: 130px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #f6f9fc;
  color: #8898aa;
  font-weight: 800;
}
.calendar-hero-stats strong {
  display: block;
  color: #172b4d;
  font-size: 1.4rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.calendar-day {
  min-height: 430px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef1f3;
  box-shadow: 0 10px 24px rgba(50,50,93,0.06);
  overflow: hidden;
}
.calendar-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: #f6f9fc;
  color: #8898aa;
  font-weight: 900;
}
.calendar-day.is-today header {
  color: #fff;
  background: linear-gradient(90deg, #5e72e4, #11cdef);
}
.calendar-task-list {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}
.calendar-task {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(94,114,228,0.12);
  background: #fbfcff;
}
.calendar-task--deadline {
  border-color: rgba(245,54,92,0.18);
  background: rgba(245,54,92,0.05);
}
.calendar-task--lesson {
  border-color: rgba(45,206,137,0.2);
  background: rgba(45,206,137,0.06);
}
.calendar-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5e72e4;
  font-weight: 900;
}
.calendar-task h3 {
  margin: 0.55rem 0 0.25rem;
  color: #172b4d;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 900;
}
.calendar-task p,
.calendar-task small {
  display: block;
  margin: 0;
  color: #667085;
}
.calendar-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.calendar-day-empty,
.calendar-empty {
  padding: 1rem;
  color: #a0aec0;
  text-align: center;
  font-weight: 800;
}
.certificate-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.certificate-shell { display: grid; place-items: center; }
.certificate-paper {
  position: relative;
  width: min(100%, 980px);
  min-height: 620px;
  padding: 4rem;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(94,114,228,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(94,114,228,0.08) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  background-size: 56px 56px, 56px 56px, auto;
  box-shadow: 0 24px 55px rgba(50,50,93,0.14);
  text-align: center;
}
.certificate-border {
  position: absolute;
  inset: 28px;
  border: 3px solid #5e72e4;
  border-radius: 14px;
  pointer-events: none;
}
.certificate-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #5e72e4;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.certificate-overline,
.certificate-completed {
  margin: 2rem 0 0.5rem;
  color: #667085;
  font-size: 1.05rem;
  font-weight: 800;
}
.certificate-paper h2 {
  margin: 0;
  color: #172b4d;
  font-size: 3rem;
  font-weight: 900;
}
.certificate-paper h3 {
  display: inline-block;
  max-width: 760px;
  margin: 0.5rem auto 0;
  color: #5e72e4;
  font-size: 2rem;
  font-weight: 900;
}
.certificate-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 2.2rem 0;
}
.certificate-meta-grid span {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(94,114,228,0.08);
  color: #667085;
  font-weight: 900;
}
.certificate-meta-grid strong {
  color: #172b4d;
  font-size: 1.1rem;
}
.certificate-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  text-align: left;
}
.certificate-footer-row small {
  display: block;
  color: #8898aa;
  font-weight: 900;
}
.certificate-signature {
  min-width: 220px;
  text-align: center;
}
.certificate-signature span {
  display: block;
  height: 2px;
  margin-bottom: 0.65rem;
  background: #172b4d;
}
.certificate-locked {
  max-width: 560px;
  margin: 4rem auto;
  padding: 2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eef1f3;
  box-shadow: 0 16px 38px rgba(50,50,93,0.1);
  text-align: center;
}
.certificate-lock-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
  font-size: 1.5rem;
}
.certificate-locked h1 {
  color: #172b4d;
  font-weight: 900;
}
.certificate-locked p { color: #8898aa; }
.certificate-progress { margin: 1rem 0 0.7rem; }
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: #5e72e4;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}
.profile-role-badge--admin { background: #fb6340; }
.profile-role-badge--teacher { background: #5e72e4; }
.profile-role-badge--student { background: #2dce89; }

/* Landing page and onboarding */
.landing-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(94,114,228,0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(17,205,239,0.2), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fa 100%);
  color: #172b4d;
}
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem min(5vw, 4rem);
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(94,114,228,0.08);
}
.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #5e72e4;
  font-size: 1.25rem;
  font-weight: 900;
}
.landing-hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: 3rem;
  padding: 5rem min(5vw, 4rem);
}
.landing-badge {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.landing-hero h1 {
  margin: 0;
  color: #172b4d;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.92;
  font-weight: 950;
}
.landing-hero p,
.landing-story p {
  max-width: 680px;
  color: #667085;
  font-size: 1.1rem;
  line-height: 1.8;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1rem;
}
.landing-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.85rem;
}
.landing-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(94,114,228,0.14);
  border-radius: 999px;
  color: #525f7f;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 12px 28px rgba(50,50,93,0.08);
  font-weight: 800;
}
.landing-hero-stats strong {
  color: #5e72e4;
}
.landing-hero small {
  color: #8898aa;
  font-weight: 800;
}
.landing-orbit {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}
.landing-orbit > span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(94,114,228,0.24);
  animation: orbitSpin 12s linear infinite;
}
.landing-orbit > span:nth-child(1) { width: 420px; height: 420px; }
.landing-orbit > span:nth-child(2) { width: 320px; height: 320px; animation-direction: reverse; }
.landing-orbit > span:nth-child(3) { width: 210px; height: 210px; animation-duration: 8s; }
.landing-orbit-card {
  position: relative;
  z-index: 2;
  width: min(370px, 92vw);
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #5e72e4, #11cdef);
  box-shadow: 0 28px 70px rgba(94,114,228,0.28);
  animation: floatCard 4s ease-in-out infinite;
}
.landing-preview-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.landing-preview-head i {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  font-size: 1.8rem;
}
.landing-preview-head strong,
.landing-preview-head small {
  display: block;
}
.landing-preview-head small {
  color: rgba(255,255,255,0.76);
  line-height: 1.45;
}
.landing-preview-progress {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.14);
}
.landing-preview-progress b {
  font-size: 2rem;
  line-height: 1;
}
.landing-preview-progress span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #fff 0 68%, rgba(255,255,255,0.28) 68% 100%);
}
.landing-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.landing-preview-grid span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 800;
  font-size: 0.84rem;
}
.landing-preview-grid i {
  font-size: 0.9rem;
}
.landing-feature-band,
.landing-story {
  padding: 3rem min(5vw, 4rem);
}
.landing-feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.landing-feature-band article,
.landing-role-grid article {
  border: 1px solid #eef1f3;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 14px 34px rgba(50,50,93,0.08);
  animation: landingRise 0.7s ease both;
  animation-delay: var(--delay, 0s);
}
.landing-feature-band article {
  padding: 1.25rem;
}
.landing-feature-band i,
.landing-role-grid i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
}
.landing-feature-band strong {
  display: block;
  color: #172b4d;
  font-size: 1rem;
}
.landing-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem min(5vw, 4rem) 3rem;
}
.landing-flow article {
  position: relative;
  min-height: 128px;
  padding: 1.25rem;
  border-radius: 22px;
  color: #172b4d;
  background: linear-gradient(180deg, #fff, #f6f9fc);
  border: 1px solid #eef1f3;
  box-shadow: 0 18px 46px rgba(50,50,93,0.08);
  animation: landingRise 0.7s ease both;
  animation-delay: var(--delay, 0s);
}
.landing-flow article::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1rem;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9b51e0, #4a90e2);
  opacity: 0.32;
}
.landing-flow span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #fff;
  background: #5e72e4;
  font-weight: 900;
}
.landing-flow strong {
  display: block;
  font-size: 1.08rem;
}
.landing-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
  min-height: 70vh;
}
.landing-story h2 {
  color: #172b4d;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 950;
}
.landing-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.landing-role-grid article {
  padding: 1.5rem;
}
.landing-role-grid h3 {
  color: #172b4d;
  font-weight: 900;
}
.landing-analytics {
  padding: 0 min(5vw, 4rem) 4rem;
}
.landing-analytics-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid #eef1f3;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(17,205,239,0.14), transparent 26%),
    #fff;
  box-shadow: 0 24px 70px rgba(50,50,93,0.1);
}
.landing-analytics-panel h2,
.landing-cta h2 {
  color: #172b4d;
  font-weight: 950;
}
.landing-analytics-table {
  display: grid;
  gap: 0.85rem;
}
.landing-analytics-table div {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 18px;
  background: #f7f9fc;
  border: 1px solid #eef1f3;
}
.landing-analytics-table strong,
.landing-analytics-table span {
  position: relative;
  z-index: 2;
}
.landing-analytics-table em {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dce89, #11cdef);
}
.landing-cta {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 46vh;
  padding: 4rem 1rem 5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(94,114,228,0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(17,205,239,0.18), transparent 24%),
    linear-gradient(180deg, transparent, rgba(94,114,228,0.06));
}
.landing-cta p {
  max-width: 620px;
  color: #667085;
  font-size: 1.08rem;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes landingRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.student-onboarding-wizard {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e9ecef;
  box-shadow: 0 10px 28px rgba(50,50,93,0.08);
}
.onboarding-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecef;
}
.onboarding-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b51e0, #4a90e2);
  transition: width 0.28s ease;
}
.onboarding-hint {
  margin: 0.8rem 0 1rem;
  color: #8898aa;
  font-size: 0.85rem;
  font-weight: 700;
}
.onboarding-step {
  display: none;
  animation: stepSlide 0.28s ease both;
}
.onboarding-step.active {
  display: block;
}
.onboarding-step h3 {
  color: #172b4d;
  font-size: 1.15rem;
  font-weight: 900;
}
.onboarding-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}
.onboarding-option {
  min-height: 48px;
  border: 1px solid #dfe4ef;
  border-radius: 14px;
  background: #fff;
  color: #525f7f;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.onboarding-option:hover,
.onboarding-option.selected {
  transform: translateY(-2px);
  color: #5e72e4;
  border-color: #5e72e4;
  background: rgba(94,114,228,0.08);
}
.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}
.post-onboarding-overlay.hidden {
  display: none !important;
}
.post-onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(17,205,239,0.22), transparent 24%),
    radial-gradient(circle at 76% 16%, rgba(94,114,228,0.28), transparent 28%),
    rgba(15,23,42,0.72);
  backdrop-filter: blur(14px);
  animation: overlayFade 0.2s ease both;
}
.post-onboarding-shell {
  width: min(980px, 96vw);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 34px 90px rgba(0,0,0,0.28);
  animation: modalPop 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-onboarding-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 2rem;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 22%),
    linear-gradient(135deg, #5e72e4, #11cdef);
}
.post-onboarding-copy span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.86;
}
.post-onboarding-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 950;
  line-height: 0.95;
  margin: 1rem 0;
}
.post-onboarding-copy p,
.post-onboarding-copy small {
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}
.post-onboarding-shell .student-onboarding-wizard {
  margin: 0;
  align-self: center;
  box-shadow: none;
  border-radius: 22px;
}
.post-onboarding-active .page-register .card {
  filter: blur(2px);
}
@keyframes stepSlide {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

.admin-tabs {
  display: flex;
  gap: 0.65rem;
}
.admin-tab {
  border: 1px solid #e9ecef;
  border-radius: 999px;
  background: #fff;
  color: #525f7f;
  padding: 0.7rem 1rem;
  font-weight: 900;
  cursor: pointer;
}
.admin-tab.active {
  color: #fff;
  border-color: #5e72e4;
  background: #5e72e4;
  box-shadow: 0 10px 24px rgba(94,114,228,0.2);
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
  animation: pageFadeUp 0.22s ease both;
}
.admin-enrolled-pill {
  display: inline-flex;
  align-items: center;
  min-width: 54px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
  font-weight: 900;
}
.learner-report-modal {
  width: min(1120px, 96vw) !important;
  max-width: 1120px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.learner-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid #eef1f3;
  background:
    radial-gradient(circle at 96% 6%, rgba(17,205,239,0.14), transparent 24%),
    #fff;
}
.learner-report-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.4rem;
  color: #5e72e4;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.learner-report-head h3 {
  margin: 0;
  color: #172b4d;
  font-weight: 950;
}
.learner-report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #f7f9fc;
}
.learner-report-stats article {
  padding: 1rem;
  border: 1px solid #eef1f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(50,50,93,0.06);
}
.learner-report-stats strong {
  display: block;
  color: #172b4d;
  font-size: 1.65rem;
  font-weight: 950;
}
.learner-report-stats span {
  color: #8898aa;
  font-weight: 800;
  font-size: 0.82rem;
}
.learner-report-table-wrap {
  max-height: 58vh;
  overflow: auto;
}
.learner-report-table {
  margin: 0;
}
.learner-report-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  color: #8898aa;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.learner-report-table td {
  vertical-align: middle;
}
.learner-report-table td:first-child strong,
.learner-report-table td:first-child small {
  display: block;
}
.learner-report-table td:first-child small {
  color: #8898aa;
}
.learner-progress-line,
.learner-quiz-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #525f7f;
  font-weight: 800;
}
.learner-progress-line b,
.learner-quiz-summary strong {
  color: #172b4d;
}
.learner-progress-track {
  height: 8px;
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecef;
}
.learner-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dce89, #11cdef);
}
.learner-quiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.learner-quiz-chips span,
.learner-quiz-chips em {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.48rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}
.learner-quiz-chips span.is-pass {
  color: #1f8f63;
  background: rgba(45,206,137,0.12);
}
.learner-quiz-chips span.is-fail {
  color: #f5365c;
  background: rgba(245,54,92,0.1);
}
.learner-quiz-chips em {
  color: #8898aa;
  background: #f7f9fc;
}
.learner-report-empty {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  color: #8898aa;
  text-align: center;
}
.learner-report-empty i {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #5e72e4;
  background: rgba(94,114,228,0.1);
}

.quiz-score-ring {
  position: relative;
  overflow: hidden;
}
.quiz-score-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from calc(var(--score) * 3.6deg), transparent 0deg, rgba(255,255,255,0.08) 18deg, rgba(79,209,197,0.5) 34deg, transparent 56deg);
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 60% 74%, transparent 76%);
  mask: radial-gradient(circle, transparent 0 58%, #000 60% 74%, transparent 76%);
  animation: scoreSweep 1.55s linear infinite;
  pointer-events: none;
}
@keyframes scoreSweep {
  to { transform: rotate(360deg); }
}

html[data-theme="dark"] .global-search-panel,
html[data-theme="dark"] .quiz-list-panel,
html[data-theme="dark"] .quiz-list-search,
html[data-theme="dark"] .quiz-list-row,
html[data-theme="dark"] .quiz-review-modern,
html[data-theme="dark"] .quiz-review-card-modern,
html[data-theme="dark"] .calendar-hero,
html[data-theme="dark"] .calendar-day,
html[data-theme="dark"] .calendar-task,
html[data-theme="dark"] .certificate-hero,
html[data-theme="dark"] .certificate-locked,
html[data-theme="dark"] .certificate-paper {
  background: #111827 !important;
  border-color: #243044 !important;
  color: #e5e7eb !important;
}
html[data-theme="dark"] .quiz-result-page,
html[data-theme="dark"] .quiz-list-page,
html[data-theme="dark"] .calendar-page,
html[data-theme="dark"] .certificate-page { background: #0f172a !important; }
html[data-theme="dark"] .global-search-item,
html[data-theme="dark"] .quiz-list-title strong,
html[data-theme="dark"] .quiz-list-course strong,
html[data-theme="dark"] .quiz-list-empty h3,
html[data-theme="dark"] .quiz-review-modern-head h2,
html[data-theme="dark"] .quiz-review-card-modern h3,
html[data-theme="dark"] .calendar-hero h1,
html[data-theme="dark"] .calendar-task h3,
html[data-theme="dark"] .certificate-hero h1,
html[data-theme="dark"] .certificate-paper h2,
html[data-theme="dark"] .certificate-meta-grid strong,
html[data-theme="dark"] .certificate-locked h1 { color: #f8fafc !important; }
html[data-theme="dark"] .global-search-item:hover,
html[data-theme="dark"] .quiz-list-head,
html[data-theme="dark"] .quiz-list-row:hover,
html[data-theme="dark"] .calendar-day header,
html[data-theme="dark"] .calendar-hero-stats span,
html[data-theme="dark"] .quiz-review-answer-stack p,
html[data-theme="dark"] .certificate-meta-grid span { background: #1e293b !important; }
html[data-theme="dark"] .calendar-hero p,
html[data-theme="dark"] .certificate-hero p,
html[data-theme="dark"] .calendar-task p,
html[data-theme="dark"] .calendar-task small,
html[data-theme="dark"] .certificate-overline,
html[data-theme="dark"] .certificate-completed,
html[data-theme="dark"] .certificate-locked p { color: #94a3b8 !important; }

/* ── Dark theme for Argon-based screens ── */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background: #0f172a;
  color: #e5e7eb;
}
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .brilliant-bg,
html[data-theme="dark"] .page-admin,
html[data-theme="dark"] .page-progress,
html[data-theme="dark"] .page-lesson,
html[data-theme="dark"] .page-quiz,
html[data-theme="dark"] .page-quizzes,
html[data-theme="dark"] .page-profile,
html[data-theme="dark"] .missions-page,
html[data-theme="dark"] .footer {
  background: #0f172a !important;
}
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .navbar-light,
html[data-theme="dark"] .navbar-vertical,
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .brilliant-card,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .chatbot-widget,
html[data-theme="dark"] .modal-overlay > .modal,
html[data-theme="dark"] .leaderboard-podium-card,
html[data-theme="dark"] .leaderboard-list-card,
html[data-theme="dark"] .leaderboard-row,
html[data-theme="dark"] .leaderboard-locked-card,
html[data-theme="dark"] .missions-stat-card,
html[data-theme="dark"] .mission-card,
html[data-theme="dark"] .quiz-list-panel,
html[data-theme="dark"] .quiz-list-search,
html[data-theme="dark"] .quiz-list-row,
html[data-theme="dark"] .quiz-progress-shell,
html[data-theme="dark"] .quiz-play-card,
html[data-theme="dark"] .quiz-play-option,
html[data-theme="dark"] .admin-question-card,
html[data-theme="dark"] .ai-type-grid label,
html[data-theme="dark"] .learner-report-modal,
html[data-theme="dark"] .learner-report-head,
html[data-theme="dark"] .learner-report-stats,
html[data-theme="dark"] .learner-report-stats article,
html[data-theme="dark"] .learner-report-table th,
html[data-theme="dark"] .learner-report-table td,
html[data-theme="dark"] .learner-progress-track,
html[data-theme="dark"] .post-onboarding-shell,
html[data-theme="dark"] .post-onboarding-shell .student-onboarding-wizard {
  background: #111827 !important;
  border-color: #243044 !important;
  color: #e5e7eb !important;
}
html[data-theme="dark"] .navbar-top,
html[data-theme="dark"] #sidenav-main {
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .leaderboard-user div,
html[data-theme="dark"] .leaderboard-xp strong,
html[data-theme="dark"] .leaderboard-list-header h3,
html[data-theme="dark"] .leaderboard-podium-card h3,
html[data-theme="dark"] .leaderboard-locked-copy h3,
html[data-theme="dark"] .missions-stat-card strong,
html[data-theme="dark"] .mission-card h3,
html[data-theme="dark"] .quiz-play-card h2,
html[data-theme="dark"] .quiz-play-option,
html[data-theme="dark"] .quiz-review-main strong,
html[data-theme="dark"] .question-form-header span,
html[data-theme="dark"] .admin-ai-header h3,
html[data-theme="dark"] .learner-report-head h3,
html[data-theme="dark"] .learner-report-stats strong,
html[data-theme="dark"] .learner-progress-line b,
html[data-theme="dark"] .learner-quiz-summary strong,
html[data-theme="dark"] .quiz-short-answer.readonly,
html[data-theme="dark"] .brilliant-node-title,
html[data-theme="dark"] .page-admin .card-header h3,
html[data-theme="dark"] .page-progress .card-header h3,
html[data-theme="dark"] .page-quiz .card-header h3,
html[data-theme="dark"] .page-profile .card-header h3,
html[data-theme="dark"] .page-courses .card-title,
html[data-theme="dark"] .page-admin .table td:first-child strong {
  color: #f8fafc !important;
}
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .leaderboard-user small,
html[data-theme="dark"] .leaderboard-list-header span,
html[data-theme="dark"] .leaderboard-podium-card small,
html[data-theme="dark"] .missions-stat-card span:last-child,
html[data-theme="dark"] .mission-card p,
html[data-theme="dark"] .mission-progress-label,
html[data-theme="dark"] .mission-reward,
html[data-theme="dark"] .quiz-list-title small,
html[data-theme="dark"] .quiz-list-course small,
html[data-theme="dark"] .quiz-list-time,
html[data-theme="dark"] .quiz-list-duration,
html[data-theme="dark"] .quiz-list-score,
html[data-theme="dark"] .quiz-list-head,
html[data-theme="dark"] .quiz-question-hint,
html[data-theme="dark"] .quiz-progress-meta,
html[data-theme="dark"] .question-form-header small,
html[data-theme="dark"] .hint-text,
html[data-theme="dark"] .page-admin .table th,
html[data-theme="dark"] .page-profile .form-control-label,
html[data-theme="dark"] .page-admin .form-control-label,
html[data-theme="dark"] .modal-overlay .form-control-label {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .navbar-light .navbar-nav .nav-link,
html[data-theme="dark"] #sidenav-main .navbar-nav .nav-link,
html[data-theme="dark"] .dropdown-item {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] #sidenav-main .navbar-nav .nav-link:hover,
html[data-theme="dark"] #sidenav-main .navbar-nav .nav-link.active,
html[data-theme="dark"] .navbar-top .navbar-nav .nav-link:hover,
html[data-theme="dark"] .dropdown-item:hover {
  background: rgba(94,114,228,0.18) !important;
  color: #fff !important;
}
html[data-theme="dark"] .table,
html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th {
  color: #e5e7eb;
  border-color: #243044;
}
html[data-theme="dark"] .page-admin .table td {
  color: #cbd5e1;
}
html[data-theme="dark"] .thead-light th,
html[data-theme="dark"] .table .thead-light th {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .chatbot-input {
  background: #0f172a;
  border-color: #334155;
  color: #e5e7eb;
}
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .chatbot-input::placeholder {
  color: #64748b;
}
html[data-theme="dark"] .quiz-list-search input {
  color: #e5e7eb;
}
html[data-theme="dark"] .quiz-list-row {
  border-color: #243044;
}
html[data-theme="dark"] .quiz-list-empty span,
html[data-theme="dark"] .quiz-list-icon {
  background: rgba(94,114,228,0.18);
}
html[data-theme="dark"] .brilliant-streak-day,
html[data-theme="dark"] .brilliant-node.locked,
html[data-theme="dark"] .dashboard-course-meta span,
html[data-theme="dark"] .leaderboard-unlock-track,
html[data-theme="dark"] .leaderboard-xp-track,
html[data-theme="dark"] .mission-track,
html[data-theme="dark"] .quiz-short-answer.readonly,
html[data-theme="dark"] .missions-stat-icon,
html[data-theme="dark"] .mission-icon,
html[data-theme="dark"] .leaderboard-locked-icon,
html[data-theme="dark"] .page-progress .progress,
html[data-theme="dark"] .page-courses .progress,
html[data-theme="dark"] .page-quiz .progress {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
html[data-theme="dark"] .brilliant-node,
html[data-theme="dark"] .brilliant-level-badge,
html[data-theme="dark"] .brilliant-node-active-popover {
  background: #111827;
  border-color: #334155;
  color: #e5e7eb;
}
html[data-theme="dark"] .chat-message--bot .chat-bubble {
  background: #1e293b;
  color: #e5e7eb;
}
html[data-theme="dark"] .bg-secondary {
  background: #1e293b !important;
}
html[data-theme="dark"] .course-visibility-pill.is-public {
  color: #67e8f9;
  background: rgba(17,205,239,0.16);
  border-color: rgba(103,232,249,0.35);
}
html[data-theme="dark"] .course-visibility-pill.is-private {
  color: #fdba74;
  background: rgba(251,99,64,0.16);
  border-color: rgba(253,186,116,0.35);
}

@media (max-width: 767.98px) {
  .leaderboard-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 1.5rem;
  }
  .leaderboard-podium {
    grid-template-columns: 1fr;
  }
  .leaderboard-row {
    grid-template-columns: 48px 42px minmax(0, 1fr);
  }
  .leaderboard-xp {
    grid-column: 2 / -1;
    text-align: left;
  }
  .missions-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 1.5rem;
  }
  .missions-stat-grid,
  .missions-grid {
    grid-template-columns: 1fr;
  }
  .quiz-play-topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .quiz-timer-pill {
    justify-self: center;
  }
  .quiz-short-answer-row,
  .quiz-review-row {
    grid-template-columns: 1fr;
  }
  .quiz-play-card {
    padding: 1rem;
  }
  .quiz-play-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .ai-type-grid {
    grid-template-columns: 1fr;
  }
  .quiz-result-page,
  .quiz-list-page,
  .calendar-page,
  .certificate-page {
    padding: 1rem;
  }
  .quiz-result-hero,
  .quiz-list-hero,
  .calendar-hero,
  .certificate-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
    padding: 1.25rem;
  }
  .quiz-result-copy h1,
  .quiz-list-hero h1,
  .calendar-hero h1,
  .certificate-hero h1 {
    font-size: 1.65rem;
  }
  .quiz-list-stats {
    grid-template-columns: 1fr;
  }
  .quiz-list-toolbar {
    justify-content: stretch;
  }
  .quiz-list-search {
    width: 100%;
  }
  .quiz-list-head {
    display: none;
  }
  .quiz-list-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: stretch;
  }
  .quiz-list-title strong,
  .quiz-list-course strong {
    white-space: normal;
  }
  .quiz-list-action .btn {
    width: 100%;
  }
  .quiz-score-panel {
    min-height: auto;
  }
  .quiz-review-grid,
  .certificate-meta-grid {
    grid-template-columns: 1fr;
  }
  .certificate-paper {
    min-height: auto;
    padding: 2.5rem 1.25rem;
  }
  .certificate-paper h2 {
    font-size: 2rem;
  }
  .certificate-paper h3 {
    font-size: 1.35rem;
  }
  .certificate-border {
    inset: 14px;
  }
  .certificate-footer-row {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
  .calendar-hero-stats,
  .certificate-actions {
    flex-direction: column;
  }
  .landing-nav {
    padding: 0.9rem 1rem;
  }
  .landing-hero,
  .landing-story,
  .landing-analytics-panel,
  .post-onboarding-shell {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  .landing-orbit {
    min-height: 320px;
  }
  .landing-orbit > span:nth-child(1) { width: 300px; height: 300px; }
  .landing-orbit > span:nth-child(2) { width: 230px; height: 230px; }
  .landing-feature-band,
  .landing-role-grid,
  .landing-flow,
  .learner-report-stats,
  .onboarding-options {
    grid-template-columns: 1fr;
  }
  .landing-feature-band {
    padding: 1rem;
  }
  .landing-flow,
  .landing-analytics {
    padding: 1rem;
  }
  .post-onboarding-copy {
    min-height: auto;
    padding: 1.25rem;
  }
  .learner-report-table {
    min-width: 760px;
  }
  .question-form-header,
  .admin-question-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-question-tools .q-type {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter,
  .spinner-ring,
  .modal-overlay,
  .modal-overlay > .modal,
  .toast-visible,
  .toast-exit {
    animation: none !important;
    transition: none !important;
  }
}

/* Course placeholders and teacher tracking */
.dashboard-empty-course {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 0.9rem;
  padding: 2rem;
  color: #8898aa;
  text-align: center;
}
.dashboard-empty-course span,
.course-thumb-placeholder {
  width: 96px;
  height: 96px;
  display: inline-grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(94,114,228,0.12), rgba(17,205,239,0.12));
  color: #5e72e4;
  font-size: 2.2rem;
}
.dashboard-empty-course h2,
.dashboard-empty-course h3 {
  margin: 0;
  color: #172b4d;
  font-size: 1.25rem;
  font-weight: 900;
}
.dashboard-empty-course p {
  max-width: 420px;
  margin: 0;
}
.course-thumb-placeholder {
  width: 250px;
  height: 250px;
  margin: 1.5rem auto;
  border-radius: 18px;
  font-size: 4rem;
  box-shadow: 0 10px 24px rgba(50,50,93,0.08);
}
.course-thumb-placeholder--sm {
  width: 96px;
  height: 96px;
  margin: 0;
  font-size: 2rem;
}
.tracking-page {
  min-height: calc(100vh - 120px);
  padding: 2rem;
  background: #f7f9fa;
}
.tracking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #172b4d 0%, #5e72e4 52%, #2dce89 100%);
  box-shadow: 0 20px 50px rgba(23,43,77,0.18);
  overflow: hidden;
}
.tracking-kicker {
  margin: 0 0 0.55rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tracking-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
}
.tracking-hero p {
  max-width: 680px;
  margin: 0.75rem 0 0;
  color: rgba(255,255,255,0.82);
}
.tracking-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.tracking-stat-card {
  min-height: 128px;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  color: #172b4d;
  box-shadow: 0 16px 34px rgba(23,43,77,0.12);
  animation: trackingCardIn 0.55s ease both;
}
.tracking-stat-card span {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #f6f9fc;
}
.tracking-stat-card strong {
  display: block;
  margin-top: 0.85rem;
  color: #172b4d;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}
.tracking-stat-card small {
  color: #8898aa;
  font-weight: 800;
}
.tracking-chart-panel,
.tracking-course-card,
.tracking-empty {
  border: 1px solid #eef1f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(50,50,93,0.08);
}
.tracking-chart-panel {
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.tracking-section-head span,
.tracking-course-kicker {
  color: #5e72e4;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tracking-section-head h2 {
  margin: 0.15rem 0 0;
  color: #172b4d;
  font-size: 1.2rem;
  font-weight: 900;
}
.tracking-bars {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.9rem;
  align-items: end;
  padding-top: 1rem;
}
.tracking-bars article {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  min-width: 0;
}
.tracking-bar {
  width: 58px;
  height: 190px;
  display: flex;
  align-items: end;
  padding: 5px;
  border-radius: 999px;
  background: #f6f9fc;
  overflow: hidden;
}
.tracking-bar span {
  width: 100%;
  height: var(--bar);
  border-radius: inherit;
  background: linear-gradient(180deg, #11cdef, #2dce89);
  box-shadow: 0 0 18px rgba(17,205,239,0.28);
  animation: trackingBarRise 0.85s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--delay);
}
.tracking-bars strong {
  max-width: 100%;
  color: #172b4d;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tracking-bars small {
  color: #2dce89;
  font-weight: 900;
}
.tracking-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
}
.tracking-course-card {
  padding: 1.25rem;
}
.tracking-course-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.tracking-course-card h3 {
  margin: 0.18rem 0 0;
  color: #172b4d;
  font-size: 1.2rem;
  font-weight: 900;
}
.tracking-course-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.tracking-course-metrics span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  border-radius: 14px;
  background: #f6f9fc;
  color: #8898aa;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}
.tracking-course-metrics strong {
  display: block;
  color: #172b4d;
  font-size: 1.35rem;
}
.tracking-mini-charts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.tracking-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #8898aa;
  font-size: 0.82rem;
  font-weight: 800;
}
.tracking-progress-label b {
  color: #172b4d;
}
.tracking-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ecef;
}
.tracking-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dce89, #5e72e4);
  animation: trackingTrackFill 0.8s cubic-bezier(.2,.8,.2,1) both;
}
.tracking-track--score span {
  background: linear-gradient(90deg, #fb6340, #11cdef);
}
.tracking-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #eef1f3;
}
.tracking-table {
  min-width: 760px;
  margin: 0;
}
.tracking-table th,
.tracking-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}
.tracking-table th {
  border-top: 0;
  background: #f6f9fc;
  color: #8898aa;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tracking-table td strong,
.tracking-table td small {
  display: block;
}
.tracking-table td strong {
  color: #172b4d;
}
.tracking-table td small,
.tracking-no-learners {
  color: #8898aa;
}
.tracking-no-learners,
.tracking-empty {
  padding: 2.5rem;
  text-align: center;
  font-weight: 800;
}
.tracking-empty span {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 20px;
  background: rgba(94,114,228,0.1);
  color: #5e72e4;
  font-size: 1.8rem;
}
.tracking-empty h2 {
  color: #172b4d;
  font-size: 1.2rem;
  font-weight: 900;
}
html[data-theme="dark"] .dashboard-empty-course h2,
html[data-theme="dark"] .dashboard-empty-course h3,
html[data-theme="dark"] .tracking-section-head h2,
html[data-theme="dark"] .tracking-course-card h3,
html[data-theme="dark"] .tracking-course-metrics strong,
html[data-theme="dark"] .tracking-progress-label b,
html[data-theme="dark"] .tracking-bars strong,
html[data-theme="dark"] .tracking-table td strong,
html[data-theme="dark"] .tracking-empty h2 {
  color: #f8fafc;
}
html[data-theme="dark"] .tracking-page {
  background: #0f172a;
}
html[data-theme="dark"] .tracking-chart-panel,
html[data-theme="dark"] .tracking-course-card,
html[data-theme="dark"] .tracking-empty,
html[data-theme="dark"] .tracking-table-wrap {
  background: #111827;
  border-color: #243044;
}
html[data-theme="dark"] .tracking-stat-card,
html[data-theme="dark"] .tracking-course-metrics span,
html[data-theme="dark"] .tracking-bar,
html[data-theme="dark"] .tracking-table th,
html[data-theme="dark"] .course-thumb-placeholder,
html[data-theme="dark"] .dashboard-empty-course span {
  background: #1e293b;
  color: #cbd5e1;
}
html[data-theme="dark"] .tracking-track {
  background: #243044;
}
@keyframes trackingCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes trackingBarRise {
  from { height: 0; }
  to { height: var(--bar); }
}
@keyframes trackingTrackFill {
  from { width: 0; }
}
@media (max-width: 991.98px) {
  .tracking-hero {
    grid-template-columns: 1fr;
  }
  .tracking-stat-grid,
  .tracking-course-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .tracking-page {
    padding: 1rem;
  }
  .tracking-hero {
    padding: 1.35rem;
  }
  .tracking-stat-grid,
  .tracking-course-metrics,
  .tracking-course-grid {
    grid-template-columns: 1fr;
  }
  .tracking-course-card header {
    flex-direction: column;
  }
  .tracking-course-card header .btn {
    width: 100%;
  }
}

/* Lesson header clarity */
.page-lesson .lesson-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.page-lesson .lesson-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.78rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(15,23,42,0.16);
  backdrop-filter: blur(10px);
}

.lesson-actions-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf1f6;
}

.lesson-actions-bar .btn {
  min-width: 190px;
  border-radius: 12px;
  font-weight: 800;
}

.lesson-mini-quiz {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #e7edf6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fafc 100%);
}

.lesson-mini-quiz-head {
  margin-bottom: 1rem;
}

.lesson-mini-quiz-head span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  color: #5e72e4;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-mini-quiz-head h2 {
  margin: 0;
  color: #172b4d;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
}

.lesson-mini-quiz-head p {
  max-width: 680px;
  margin: 0.4rem 0 0;
  color: #63708a;
  line-height: 1.55;
}

.lesson-mini-quiz-list {
  display: grid;
  gap: 0.9rem;
}

.lesson-mini-quiz-card {
  padding: 1rem;
  border: 1px solid #e9eef6;
  border-radius: 12px;
  background: #ffffff;
}

.lesson-mini-quiz-number {
  margin-bottom: 0.45rem;
  color: #8898aa;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-mini-quiz-card h3 {
  margin: 0 0 0.85rem;
  color: #26324f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.lesson-mini-quiz-options {
  display: grid;
  gap: 0.65rem;
}

.lesson-mini-quiz-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  background: #ffffff;
  color: #42526e;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lesson-mini-quiz-option span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f5fb;
  color: #5e72e4;
  font-weight: 900;
}

.lesson-mini-quiz-option strong {
  min-width: 0;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
}

.lesson-mini-quiz-option:hover:not(:disabled) {
  border-color: #5e72e4;
  box-shadow: 0 10px 24px rgba(94,114,228,0.12);
  transform: translateY(-1px);
}

.lesson-mini-quiz-option.is-correct,
.lesson-mini-quiz-option.is-selected-correct {
  border-color: rgba(45,206,137,0.5);
  background: rgba(45,206,137,0.08);
}

.lesson-mini-quiz-option.is-correct span,
.lesson-mini-quiz-option.is-selected-correct span {
  background: #2dce89;
  color: #ffffff;
}

.lesson-mini-quiz-option.is-selected-wrong {
  border-color: rgba(245,54,92,0.5);
  background: rgba(245,54,92,0.08);
}

.lesson-mini-quiz-option.is-selected-wrong span {
  background: #f5365c;
  color: #ffffff;
}

.lesson-mini-quiz-option:disabled {
  cursor: default;
}

.lesson-mini-quiz-feedback {
  display: none;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  line-height: 1.5;
}

.lesson-mini-quiz-feedback.show {
  display: block;
}

.lesson-mini-quiz-feedback strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 900;
}

.lesson-mini-quiz-feedback p {
  margin: 0;
}

.lesson-mini-quiz-feedback.is-correct {
  background: rgba(45,206,137,0.1);
  color: #1f8f63;
}

.lesson-mini-quiz-feedback.is-wrong {
  background: rgba(251,99,64,0.1);
  color: #c84f32;
}

html[data-theme="dark"] .lesson-mini-quiz,
html[data-theme="dark"] .lesson-mini-quiz-card,
html[data-theme="dark"] .lesson-mini-quiz-option {
  border-color: rgba(255,255,255,0.1);
  background: #111827;
}

html[data-theme="dark"] .lesson-mini-quiz-head h2,
html[data-theme="dark"] .lesson-mini-quiz-card h3,
html[data-theme="dark"] .lesson-mini-quiz-option {
  color: #f8fafc;
}

html[data-theme="dark"] .lesson-mini-quiz-head p,
html[data-theme="dark"] .lesson-mini-quiz-number {
  color: #a7b2c4;
}

/* Admin quiz authoring */
.admin-lesson-ai-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-lesson-ai-tools select {
  width: auto;
  min-width: 130px;
}
.admin-drag-author {
  margin: 0.9rem 0;
}
.admin-drag-list {
  display: grid;
  gap: 0.55rem;
}
.admin-drag-list label {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}
.admin-drag-list span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(94,114,228,0.1);
  color: #5e72e4;
  font-weight: 900;
}

/* Quiz drag-drop */
.quiz-drag-shell {
  display: grid;
  gap: 1rem;
}
.quiz-drag-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.quiz-drag-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  background: #ffffff;
  color: #172b4d;
  box-shadow: 0 10px 26px rgba(15,23,42,0.08);
  cursor: grab;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.quiz-drag-item:hover {
  transform: translateY(-2px);
  border-color: rgba(94,114,228,0.45);
  box-shadow: 0 16px 34px rgba(94,114,228,0.16);
}
.quiz-drag-item.dragging {
  opacity: 0.72;
  transform: scale(0.98);
}
.quiz-drag-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(94,114,228,0.1);
  color: #5e72e4;
}
.quiz-drag-check {
  justify-self: end;
  min-width: 140px;
}
.quiz-drag-readonly {
  display: grid;
  gap: 0.65rem;
}
.quiz-drag-readonly span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(94,114,228,0.08);
  color: #172b4d;
  font-weight: 800;
}
.quiz-drag-readonly b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #5e72e4;
  color: #fff;
}
