/* ==========================================================================
   Quick Art Photography Academy — Student Learning Portal Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #0a0a0c;
  --bg-card: #121216;
  --bg-card-hover: #18181f;
  --bg-input: #1b1b22;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(216, 161, 83, 0.3);
  
  --gold: #d8a153;
  --gold-light: #f5e5c4;
  --gold-dark: #b8843b;
  --gold-gradient: linear-gradient(135deg, #f5e5c4 0%, #d8a153 50%, #b8843b 100%);

  --text-main: #f4f4f6;
  --text-muted: #9494a0;
  --text-sub: #6c6c7a;

  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 24px -6px rgba(216, 161, 83, 0.25);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.portal-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.portal-main {
  flex: 1;
  padding: 32px 0 64px;
}

.hidden {
  display: none !important;
}

/* ================= Buttons & Inputs ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b0b0d;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(216, 161, 83, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}

.btn-ghost:hover {
  color: var(--text-main);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20ba59;
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ================= Header ================= */
.portal-header {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-brand img {
  border-radius: var(--radius-full);
}

.brand-title {
  font-size: 16px;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.2;
}

.brand-title b {
  color: var(--gold);
}

.brand-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: block;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 14px 4px 4px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #0b0b0d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
}

.user-phone {
  font-size: 10px;
  color: var(--text-muted);
}

/* ================= 1. Login View ================= */
.login-card {
  max-width: 440px;
  margin: 48px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.login-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(216, 161, 83, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.login-form {
  text-align: left;
}

.login-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-phone-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.input-phone-group:focus-within {
  border-color: var(--gold);
}

.phone-prefix {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  border-right: 1px solid var(--border);
  font-size: 15px;
}

.input-phone-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  letter-spacing: 0.05em;
}

.input-otp {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  margin-bottom: 16px;
  outline: none;
}

.input-otp:focus {
  border-color: var(--gold);
}

.otp-sent-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dev-otp-banner {
  background: rgba(216, 161, 83, 0.08);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 16px;
  text-align: center;
}

.otp-resend {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.login-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--gold);
  text-decoration: underline;
}

/* ================= 2. Dashboard View ================= */
.dashboard-hero {
  background: linear-gradient(135deg, #16161d 0%, #101014 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-text .eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 16px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  min-width: 140px;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.section-title-bar h2 {
  font-size: 20px;
  font-weight: 700;
}

.section-title-bar .muted {
  font-size: 13px;
  color: var(--text-muted);
}

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

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

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

.course-thumb-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.course-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}

.course-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.course-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.course-progress-block {
  margin-bottom: 20px;
}

.course-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.course-card-footer {
  display: flex;
  gap: 10px;
}

/* ================= 3. Classroom View ================= */
.classroom-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.topbar-course-info {
  flex: 1;
}

.course-mini-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  display: block;
}

.course-mini-title {
  font-size: 18px;
  font-weight: 700;
}

.topbar-progress-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.classroom-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Video Player Box */
.video-wrapper {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Anti-Piracy Watermark Overlay */
.watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.watermark-tag {
  position: absolute;
  color: rgba(255, 255, 255, 0.35);
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  user-select: none;
  animation: floatWatermark 25s infinite alternate ease-in-out;
}

@keyframes floatWatermark {
  0%   { top: 10%; left: 10%; }
  25%  { top: 75%; left: 20%; }
  50%  { top: 20%; left: 70%; }
  75%  { top: 60%; left: 55%; }
  100% { top: 15%; left: 40%; }
}

/* Lesson Controls */
.lesson-ctrl-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.lesson-hdr-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-meta-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.lesson-active-title {
  font-size: 16px;
  font-weight: 700;
}

.lesson-actions {
  display: flex;
  gap: 10px;
}

/* Lesson Tabs */
.lesson-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.lesson-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.lesson-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.lesson-tab-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.notes-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.support-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Curriculum Sidebar */
.curriculum-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.curriculum-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.curriculum-stat {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
  margin-bottom: 16px;
}

.module-group {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.module-title {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.lesson-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
}

.lesson-list-item:last-child {
  border-bottom: none;
}

.lesson-list-item:hover {
  background: var(--bg-card-hover);
}

.lesson-list-item.active {
  background: rgba(216, 161, 83, 0.12);
  color: var(--gold);
  font-weight: 600;
}

.lesson-title-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-check-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.lesson-list-item.completed .lesson-check-icon {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.lesson-dur {
  font-size: 11px;
  color: var(--text-sub);
}

.certificate-unlock-box {
  margin-top: 20px;
  background: rgba(216, 161, 83, 0.08);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.cert-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.certificate-unlock-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.certificate-unlock-box p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ================= 4. Certificate Modal ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

/* Dedicated Public Verification View Mode */
.modal.verify-mode {
  position: static !important;
  background: transparent !important;
  backdrop-filter: none !important;
  display: block !important;
  padding: 16px 12px 60px !important;
  min-height: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  z-index: 10 !important;
}

.modal.verify-mode .modal-close,
.modal.verify-mode .cert-close-btn {
  display: none !important;
}

.modal.verify-mode .cert-dialog {
  max-width: 960px !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal.verify-mode .cert-content {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(216, 161, 83, 0.15) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cert-dialog {
  max-width: 920px;
  width: 100%;
  max-height: 96vh;
  overflow-y: auto;
}

.cert-content {
  background: #121318;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  border: 1px solid rgba(216, 161, 83, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Status Banner above Certificate */
.cert-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.cert-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.cert-iso-badge {
  background: rgba(201, 151, 56, 0.2);
  color: #e5b869;
  border: 1px solid rgba(201, 151, 56, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ================= Royal Academic Diploma Frame ================= */
.certificate-frame {
  background: #fdfbf7;
  background-image: radial-gradient(circle at 50% 50%, #ffffff 0%, #fbf6ec 60%, #f4ebd9 100%);
  color: #16181f;
  border: 10px double #c99738;
  padding: 24px 28px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

/* Background Watermark */
.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Ornate Corner Filigrees */
.cert-corner {
  position: absolute;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 3;
}
.cert-corner-tl { top: 6px; left: 6px; }
.cert-corner-tr { top: 6px; right: 6px; }
.cert-corner-bl { bottom: 6px; left: 6px; }
.cert-corner-br { bottom: 6px; right: 6px; }

/* Microprint Security Border */
.cert-microprint-border {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  font-size: 6px;
  font-family: monospace;
  letter-spacing: 0.2em;
  color: rgba(184, 132, 59, 0.5);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  text-align: center;
  z-index: 2;
}

/* Inner Frame */
.cert-inner {
  position: relative;
  z-index: 2;
  border: 1.5px solid rgba(201, 151, 56, 0.5);
  outline: 1px dashed rgba(201, 151, 56, 0.35);
  outline-offset: -5px;
  padding: 18px 24px 14px;
  text-align: center;
}

/* Crest & Header */
.cert-top {
  margin-bottom: 8px;
}

.cert-crest-wrap {
  margin-bottom: 2px;
  display: flex;
  justify-content: center;
}

.cert-crest-svg {
  filter: drop-shadow(0 2px 4px rgba(184, 132, 59, 0.3));
}

.cert-academy-title {
  font-family: 'Cinzel', serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #141720;
  margin-top: 1px;
  text-transform: uppercase;
}

.cert-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #8c6a28;
  text-transform: uppercase;
  margin-top: 2px;
}

.cert-accreditation-line {
  font-size: 8px;
  font-weight: 700;
  color: #5c584e;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 151, 56, 0.3);
}

/* Title Ribbon */
.cert-title-container {
  margin: 10px 0 6px;
}

.cert-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b8843b 0%, #ecd394 50%, #a87224 100%);
  color: #141006;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  padding: 5px 22px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(168, 114, 36, 0.25);
  text-transform: uppercase;
}

.cert-badge-star {
  font-size: 10px;
  color: #141006;
}

.cert-reg-code {
  font-size: 8px;
  font-family: monospace;
  color: #847761;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* Recipient Block */
.cert-presented-to {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: #585143;
  margin: 8px 0 3px;
}

.cert-name-wrapper {
  display: inline-block;
  margin-bottom: 6px;
  position: relative;
}

.cert-name {
  font-family: 'Cinzel', serif;
  font-size: 33px;
  font-weight: 900;
  background: linear-gradient(135deg, #875615 0%, #c99738 40%, #ecd394 65%, #754a0d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0;
}

.cert-name-underline {
  height: 2px;
  background: linear-gradient(90deg, transparent, #c99738 20%, #ecd394 50%, #c99738 80%, transparent);
  margin: 3px auto 0;
  width: 90%;
}

/* Body & Course Citation */
.cert-body-text {
  font-size: 11px;
  line-height: 1.55;
  color: #403c35;
  max-width: 580px;
  margin: 0 auto 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cert-course {
  font-family: 'Cinzel', serif;
  font-size: 19px;
  font-weight: 800;
  color: #12151d;
  margin: 2px 0 8px;
  letter-spacing: 0.02em;
}

/* Meta Pills */
.cert-meta-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cert-meta-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #584935;
  background: rgba(201, 151, 56, 0.12);
  border: 1px solid rgba(201, 151, 56, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.cert-meta-pill-gold {
  background: rgba(201, 151, 56, 0.28);
  color: #704408;
  border-color: #b8843b;
  font-weight: 800;
}

/* ================= Footer Triad ================= */
.cert-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 151, 56, 0.35);
  margin-top: 8px;
}

/* Left: Verification & QR */
.cert-verify-block {
  text-align: left;
}

.cert-qr-frame {
  display: inline-block;
  background: #ffffff;
  padding: 4px;
  border: 1px solid #c99738;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cert-qr-img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.cert-qr-text {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6d5423;
  margin-top: 3px;
}

.cert-sig-id {
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
  color: #141720;
  margin-top: 1px;
}

.cert-barcode {
  display: block;
  margin-top: 3px;
  opacity: 0.75;
}

/* Center: 3D Embossed Gold Wax Seal with Ribbons */
.cert-seal-block {
  display: flex;
  justify-content: center;
}

.cert-gold-seal-container {
  position: relative;
  width: 86px;
  height: 100px;
  margin: 0 auto;
}

.cert-seal-ribbon {
  position: absolute;
  bottom: 0;
  width: 19px;
  height: 38px;
  background: linear-gradient(135deg, #7c1a22 0%, #a82732 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  z-index: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.cert-ribbon-left {
  left: 20px;
  transform: rotate(14deg);
}

.cert-ribbon-right {
  right: 20px;
  transform: rotate(-14deg);
}

.cert-seal-embossed {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0a8 0%, #e0ab4a 40%, #a36f1c 80%, #613e09 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -3px 5px rgba(0, 0, 0, 0.4);
  border: 2px solid #ecd189;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-seal-outer-teeth {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px dotted rgba(255, 235, 150, 0.85);
}

.cert-seal-inner-ring {
  border: 1px solid rgba(255, 245, 200, 0.7);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #3a2202;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cert-seal-curved-text-top {
  font-family: 'Cinzel', serif;
  font-size: 5.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
}

.cert-seal-center-star {
  font-size: 6.5px;
  color: #fff8d6;
  margin: 1px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cert-seal-core-symbol {
  color: #3a2202;
  line-height: 1;
  margin: 1px 0;
}

.cert-seal-curved-text-bot {
  font-family: 'Cinzel', serif;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Right: Issue Date, Signature & Official Director Stamp */
.cert-sig-block {
  text-align: right;
  position: relative;
}

.cert-date-wrap {
  margin-bottom: 4px;
}

.cert-date-val {
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #141720;
}

.cert-date-label {
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #847761;
}

.cert-sig-signature-area {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2px;
}

.cert-official-stamp {
  position: absolute;
  right: 16px;
  top: -10px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed rgba(179, 38, 54, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-10deg);
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}

.cert-stamp-inner {
  text-align: center;
  color: rgba(179, 38, 54, 0.85);
  font-family: 'Cinzel', serif;
  font-size: 6px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.cert-sig-line {
  position: relative;
  z-index: 2;
  font-family: 'Alex Brush', cursive;
  font-size: 36px;
  color: #13151e;
  line-height: 1;
  transform: rotate(-3deg);
}

.cert-sig-name {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 900;
  color: #141720;
  letter-spacing: 0.04em;
  border-top: 1.5px solid #141720;
  display: inline-block;
  padding-top: 3px;
  min-width: 125px;
}

.cert-sig-role {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #845714;
  font-weight: 700;
  margin-top: 1px;
}

.cert-sig-org {
  font-size: 7.5px;
  color: #6f6c65;
  letter-spacing: 0.04em;
}

/* Bottom Tamper-Proof Note */
.cert-bottom-tamper {
  font-size: 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8e7f67;
  text-align: center;
  margin-top: 9px;
  font-weight: 700;
  opacity: 0.85;
}

/* Modal Actions */
.cert-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Confetti Celebration Canvas */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  display: none;
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  z-index: 9999;
  display: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: min(450px, 92vw);
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.4;
}

.toast.show {
  display: block;
}

.toast.ok {
  background: var(--emerald);
  color: #fff;
}

.toast.err {
  background: var(--red);
  color: #fff;
}

/* ================= Live Academic Verification Ledger ================= */
.cert-verify-ledger {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 151, 56, 0.28);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}

.ledger-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ledger-icon {
  font-size: 24px;
}

.ledger-title-group {
  flex: 1;
  min-width: 180px;
}

.ledger-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.04em;
}

.ledger-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ledger-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
}

.ledger-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ledger-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ledger-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.ledger-val.code-font {
  font-family: monospace;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ledger-val.grade-gold {
  color: #f6cf7d;
  font-weight: 700;
}

/* Responsiveness */
@media (max-width: 960px) {
  .classroom-layout {
    grid-template-columns: 1fr;
  }
  .curriculum-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 24px 16px;
    margin: 16px auto;
  }
  .dashboard-hero {
    padding: 20px;
  }
  .hero-stats {
    width: 100%;
  }
  .stat-card {
    flex: 1;
  }

  /* Certificate Mobile Polish */
  .modal.verify-mode {
    padding: 10px 6px 40px !important;
  }
  .modal.verify-mode .cert-content,
  .cert-content {
    padding: 12px 6px !important;
    border-radius: 12px;
  }
  .cert-status-banner {
    flex-direction: column;
    text-align: center;
    gap: 5px;
    font-size: 9.5px;
    padding: 6px 8px;
    line-height: 1.35;
  }
  .certificate-frame {
    padding: 12px 6px;
    border-width: 6px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cert-inner {
    padding: 8px 6px;
    outline: none;
    border: 1px solid rgba(201, 151, 56, 0.45);
  }
  .cert-watermark svg {
    width: 180px;
    height: 180px;
  }
  .cert-corner {
    width: 28px;
    height: 28px;
  }
  .cert-corner-tl { top: 3px; left: 3px; }
  .cert-corner-tr { top: 3px; right: 3px; }
  .cert-corner-bl { bottom: 3px; left: 3px; }
  .cert-corner-br { bottom: 3px; right: 3px; }
  .cert-microprint-border {
    display: none;
  }
  .cert-crest-wrap svg {
    width: 74px;
    height: 38px;
  }
  .cert-academy-title {
    font-size: clamp(12px, 3.6vw, 15px);
    letter-spacing: 0.04em;
    line-height: 1.25;
    margin-top: 1px;
  }
  .cert-subtitle {
    font-size: clamp(6px, 1.7vw, 7.5px);
    letter-spacing: 0.08em;
  }
  .cert-accreditation-line {
    font-size: clamp(5.5px, 1.6vw, 7px);
    letter-spacing: 0.02em;
    padding-bottom: 4px;
    white-space: normal;
  }
  .cert-title-container {
    margin: 6px 0 4px;
  }
  .cert-badge-gold {
    font-size: clamp(8px, 2.1vw, 9.5px);
    letter-spacing: 0.05em;
    padding: 3px 8px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .cert-reg-code {
    font-size: 7px;
    letter-spacing: 0.05em;
  }
  .cert-presented-to {
    font-size: 10.5px;
    margin: 5px 0 2px;
  }
  .cert-name {
    font-size: clamp(17px, 5vw, 23px);
    letter-spacing: 0.01em;
    word-break: break-word;
  }
  .cert-body-text {
    font-size: clamp(8px, 2.2vw, 10px);
    line-height: 1.38;
    padding: 0 4px;
    margin: 0 auto 4px;
  }
  .cert-course {
    font-size: clamp(12.5px, 3.5vw, 16px);
    letter-spacing: 0.01em;
    margin: 2px 0 5px;
  }
  .cert-meta-row {
    gap: 4px;
    margin-bottom: 6px;
  }
  .cert-meta-pill {
    font-size: clamp(7px, 1.9vw, 8.5px);
    padding: 2px 6px;
  }

  /* Triad Footer on Mobile: High-end compact alignment */
  .cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4px;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px solid rgba(201, 151, 56, 0.35);
  }
  .cert-verify-block {
    text-align: left;
    flex: 1;
    min-width: 0;
  }
  .cert-qr-frame {
    padding: 2px;
    border-radius: 2px;
  }
  .cert-qr-img {
    width: 38px;
    height: 38px;
  }
  .cert-qr-text {
    font-size: 5.5px;
    letter-spacing: 0.02em;
    margin-top: 2px;
  }
  .cert-sig-id {
    font-size: 6.5px;
    word-break: break-all;
  }
  .cert-barcode {
    width: 65px;
    height: 10px;
    margin-top: 2px;
  }

  /* Center Gold Seal */
  .cert-seal-block {
    flex: 0 0 auto;
    margin: 0 2px;
  }
  .cert-gold-seal-container {
    width: 52px;
    height: 64px;
  }
  .cert-seal-ribbon {
    width: 12px;
    height: 24px;
  }
  .cert-ribbon-left {
    left: 10px;
  }
  .cert-ribbon-right {
    right: 10px;
  }
  .cert-seal-embossed {
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  }
  .cert-seal-inner-ring {
    width: 36px;
    height: 36px;
  }
  .cert-seal-curved-text-top {
    font-size: 4.5px;
    letter-spacing: 0.08em;
    top: 2px;
  }
  .cert-seal-center-star {
    font-size: 5.5px;
  }
  .cert-seal-core-symbol svg {
    width: 11px;
    height: 11px;
  }
  .cert-seal-curved-text-bot {
    font-size: 4.5px;
    letter-spacing: 0.06em;
    bottom: 2px;
  }

  /* Right Director Signature & Stamp */
  .cert-sig-block {
    text-align: right;
    flex: 1;
    min-width: 0;
  }
  .cert-date-wrap {
    margin-bottom: 2px;
  }
  .cert-date-val {
    font-size: 8px;
  }
  .cert-sig-role {
    font-size: 6.5px;
  }
  .cert-sig-line {
    font-size: 22px;
    line-height: 1;
  }
  .cert-sig-name {
    font-size: 9px;
  }
  .cert-sig-org {
    display: none;
  }
  .cert-official-stamp {
    width: 42px;
    height: 42px;
    right: -2px;
    top: -10px;
  }
  .cert-stamp-inner {
    font-size: 5px;
    border-width: 1px;
  }
  .cert-stamp-inner b {
    font-size: 5.5px;
  }
  .cert-stamp-inner small {
    font-size: 4px;
  }
  .cert-bottom-tamper {
    font-size: 5.5px;
    letter-spacing: 0.01em;
    margin-top: 5px;
    line-height: 1.25;
  }

  /* Action Buttons Grid */
  .cert-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }
  .cert-modal-actions .btn {
    width: 100%;
    padding: 9px 6px;
    font-size: 11.5px;
    justify-content: center;
    box-sizing: border-box;
  }
  .cert-modal-actions a.btn {
    grid-column: span 2;
  }

  /* Ledger on mobile */
  .cert-verify-ledger {
    padding: 14px 10px;
    margin-top: 16px;
  }
  .ledger-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Precision A4 Landscape Print Style */
@page {
  size: A4 landscape;
  margin: 0;
}

@media print {
  html, body {
    width: 297mm;
    height: 210mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body * {
    visibility: hidden;
  }
  #modal-certificate,
  #modal-certificate .modal-dialog,
  #modal-certificate .modal-content {
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
  .cert-status-banner,
  .modal-close,
  .cert-modal-actions,
  .confetti-canvas {
    display: none !important;
  }
  #certificate-print-area,
  #certificate-print-area * {
    visibility: visible;
  }
  #certificate-print-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 297mm;
    height: 210mm;
    box-sizing: border-box;
    box-shadow: none !important;
    border: 12px double #c99738 !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    margin: 0 !important;
    padding: 16mm 20mm 12mm !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ================= Video Playback Controls ================= */
.video-playback-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.playback-speed-group,
.playback-skip-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.speed-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.speed-btn,
.skip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.speed-btn:hover,
.skip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.speed-btn.active {
  background: var(--gold-gradient);
  color: #0b0b0d;
  border-color: var(--gold);
}

/* ================= Catalog & Checkout Modals ================= */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.catalog-thumb {
  height: 140px;
  position: relative;
}

.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.catalog-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}

.cat-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
}

.cat-orig {
  font-size: 12px;
  color: var(--text-sub);
  text-decoration: line-through;
}

.checkout-price-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.checkout-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-light);
}

.checkout-orig-price {
  font-size: 14px;
  color: var(--text-sub);
  text-decoration: line-through;
}

.checkout-save-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pay-option.active {
  border-color: var(--gold);
  background: rgba(216, 161, 83, 0.08);
  color: var(--gold-light);
}

.checkout-perks {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ================= Module Quiz ================= */
.quiz-card {
  padding: 8px;
}

.quiz-q-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.quiz-q-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-opt-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.quiz-opt-label:hover {
  background: rgba(255, 255, 255, 0.06);
}

.quiz-opt-label.selected {
  border-color: var(--gold);
  background: rgba(216, 161, 83, 0.1);
  color: var(--gold-light);
}

.quiz-result-banner {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.quiz-result-banner.pass {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

.quiz-result-banner.fail {
  background: var(--red-bg);
  border: 1px solid var(--red);
  color: var(--red);
}

