/* ============================================================
   ROUNDS 16-30 — ReviseKit CSS Extensions
   ============================================================ */

/* ============================================================
   ROUND 16: Exam Date Picker
   ============================================================ */
.exam-date-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin: 12px 16px;
}
.edp-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.edp-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
}
.edp-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
.edp-countdown {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}
.edp-green { color: #00c896; }
.edp-amber { color: #ffb800; }
.edp-red { color: #ff4757; }

/* ============================================================
   ROUND 17: Install Banner
   ============================================================ */
.install-banner {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a2744;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  max-width: 360px;
  width: calc(100% - 32px);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
#install-dismiss {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.8rem;
}

/* ============================================================
   ROUND 18: Teacher Dashboard
   ============================================================ */
.footer-teacher-btn {
  font-size: 0.75rem;
  opacity: 0.5;
}
.footer-teacher-btn:hover { opacity: 1; }

.teacher-auth-modal {
  background: #131e36;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 90%;
  position: relative;
}
.tam-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  margin-bottom: 6px;
}
.tam-sub { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.tam-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 1rem;
}
.tam-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: #fff; padding: 10px 14px; font-size: 0.9rem; font-family: inherit;
  margin-bottom: 12px;
}
.tam-error { color: #ff4757; font-size: 0.82rem; margin-bottom: 10px; }
.tam-submit {
  width: 100%; background: #00d4ff; color: #0f1729; border: none;
  border-radius: 10px; padding: 12px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.tam-submit:hover { background: #00b8e0; }

.screen-teacher { padding: 0 16px 100px; }
.teacher-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.teacher-stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px; text-align: center;
}
.tsc-val { font-size: 2rem; font-weight: 800; color: #00d4ff; font-family: 'Plus Jakarta Sans', sans-serif; }
.tsc-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.teacher-section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin: 20px 0 10px;
}
.teacher-lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; margin-bottom: 6px;
}
.teacher-lb-me { border-color: rgba(0,212,255,0.3) !important; background: rgba(0,212,255,0.05) !important; }
.tlb-rank { width: 28px; font-weight: 700; color: #ffb800; font-size: 0.9rem; }
.tlb-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #00d4ff;
}
.tlb-name { flex: 1; font-size: 0.88rem; }
.tlb-reviews, .tlb-mastery, .tlb-streak { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.teacher-student-row {
  padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; margin-bottom: 6px;
}
.tsr-name { font-weight: 600; font-size: 0.9rem; }
.tsr-email { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.tsr-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.teacher-class-section, .teacher-homework-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.teacher-create-class-btn, .teacher-gen-link-btn {
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: #00d4ff;
  border-radius: 10px; padding: 10px 16px; font-size: 0.88rem; cursor: pointer; font-family: inherit;
  width: fit-content;
}
.teacher-create-class-btn:hover, .teacher-gen-link-btn:hover { background: rgba(0,212,255,0.2); }
.teacher-class-code-display, .teacher-share-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(255,255,255,0.05); border-radius: 8px;
}
.teacher-share-input {
  flex: 1; background: none; border: none; color: #00d4ff; font-size: 0.85rem; font-family: monospace;
  outline: none;
}
.teacher-hw-select {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 0.88rem; font-family: inherit;
}
.copy-btn {
  background: rgba(255,184,0,0.1); border: 1px solid rgba(255,184,0,0.3); color: #ffb800;
  border-radius: 6px; padding: 4px 10px; font-size: 0.78rem; cursor: pointer; font-family: inherit;
}
.teacher-empty { color: rgba(255,255,255,0.4); font-size: 0.88rem; padding: 12px 0; }

/* ============================================================
   ROUND 20: Past Paper Filters
   ============================================================ */
.exam-filter-row {
  margin: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exam-filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.exam-filter-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); white-space: nowrap; }
.exam-cmd-pills, .exam-marks-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.exam-filter-pill {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7); border-radius: 20px; padding: 4px 12px;
  font-size: 0.78rem; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.exam-filter-pill.active { background: rgba(0,212,255,0.15); border-color: rgba(0,212,255,0.4); color: #00d4ff; }
.exam-filter-pill:hover { border-color: rgba(255,255,255,0.2); }

.random-paper-btn {
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px 16px;
  background: linear-gradient(135deg, rgba(255,184,0,0.15), rgba(255,184,0,0.08));
  border: 1px solid rgba(255,184,0,0.3); color: #ffb800;
  border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.random-paper-btn:hover { background: rgba(255,184,0,0.2); }

.paper-timer-bar {
  display: flex; align-items: center; gap: 12px;
  margin: 0 16px 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
}
.paper-timer-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.paper-timer-val { font-size: 1.1rem; font-weight: 700; color: #00d4ff; font-family: 'Plus Jakarta Sans', monospace; }
.paper-end-btn {
  margin-left: auto; background: rgba(255,71,87,0.15); border: 1px solid rgba(255,71,87,0.3);
  color: #ff4757; border-radius: 8px; padding: 6px 12px; font-size: 0.82rem; cursor: pointer; font-family: inherit;
}

.paper-header {
  margin: 0 16px 16px;
  padding: 14px 16px;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); border-radius: 12px;
}
.paper-title { font-size: 1rem; font-weight: 700; color: #00d4ff; }
.paper-meta { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* Exam question card enhanced */
.exam-q-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 16px; margin: 0 16px 12px;
}
.eqc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.eqc-num { font-weight: 700; color: #ffb800; font-size: 0.9rem; }
.eqc-cmd-badge {
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
  color: #00d4ff; border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; text-transform: capitalize;
}
.eqc-marks-badge {
  background: rgba(255,184,0,0.1); border: 1px solid rgba(255,184,0,0.2);
  color: #ffb800; border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; margin-left: auto;
}
.eqc-question { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.9); margin-bottom: 14px; }

/* Round 24: Hints */
.eqc-hint-area { margin-bottom: 12px; }
.eqc-hint-btn {
  background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.25); color: #00c896;
  border-radius: 8px; padding: 6px 14px; font-size: 0.82rem; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.eqc-hint-btn:hover { background: rgba(0,200,150,0.2); }
.eqc-hint-btn:disabled { opacity: 0.4; cursor: default; }
.eqc-hints-shown { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.eqc-hint {
  padding: 8px 12px; border-radius: 8px; font-size: 0.85rem;
  background: rgba(0,200,150,0.08); border-left: 3px solid #00c896; color: rgba(255,255,255,0.8);
}
.eqc-hint strong { color: #00c896; }

.eqc-ms-details summary.eqc-ms-toggle {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 8px 12px; font-size: 0.82rem; color: rgba(255,255,255,0.7);
  cursor: pointer; list-style: none; margin-bottom: 0;
}
.eqc-ms-details[open] summary.eqc-ms-toggle { border-radius: 8px 8px 0 0; }
.eqc-ms-content {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-top: none; border-radius: 0 0 8px 8px; padding: 12px;
}
.eqc-ms-point { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.eqc-model-answer { font-size: 0.82rem; color: rgba(0,200,150,0.9); margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ============================================================
   ROUND 21: Required Practicals
   ============================================================ */
.screen-practicals { padding: 0 0 100px; }
.practicals-subject-tabs { display: flex; gap: 6px; padding: 0 16px 12px; flex-wrap: wrap; }
.prac-tab {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7); border-radius: 20px; padding: 6px 16px;
  font-size: 0.85rem; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.prac-tab.active { background: rgba(0,212,255,0.15); border-color: rgba(0,212,255,0.4); color: #00d4ff; }
.practicals-list { padding: 0 16px; }
.prac-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s;
}
.prac-card:hover { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); }
.prac-card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.prac-card-meta { display: flex; gap: 8px; margin-bottom: 6px; }
.prac-topic-badge, .prac-tier-badge {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 6px;
}
.prac-topic-badge { background: rgba(0,212,255,0.1); color: #00d4ff; }
.prac-tier-badge { background: rgba(0,200,150,0.1); color: #00c896; }
.prac-card-spec { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

.practicals-detail { padding: 0 16px 80px; overflow-y: auto; }
.prac-detail-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; color: #00d4ff; cursor: pointer; font-size: 0.88rem;
  padding: 12px 0 8px; font-family: inherit;
}
.prac-detail-title { font-size: 1.3rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; margin: 12px 0 16px; }
.prac-spec-box {
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px; padding: 14px; margin-bottom: 16px;
}
.prac-spec-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #00d4ff; margin-bottom: 6px; }
.prac-spec-box p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin: 0; }
.prac-section { margin-bottom: 20px; }
.prac-section-title { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.prac-equipment-list, .prac-method-list, .prac-errors-list, .prac-tips-list {
  margin: 0; padding-left: 20px;
}
.prac-equipment-list li, .prac-errors-list li, .prac-tips-list li {
  font-size: 0.88rem; color: rgba(255,255,255,0.8); margin-bottom: 4px;
}
.prac-step {
  font-size: 0.88rem; color: rgba(255,255,255,0.85); margin-bottom: 10px; padding-left: 4px;
}
.prac-step-safety { background: rgba(255,184,0,0.05); border-radius: 8px; padding: 8px; }
.prac-safety-icon { margin-right: 4px; }
.prac-safety-note { font-size: 0.8rem; color: #ffb800; margin-top: 4px; padding-left: 20px; }
.prac-variables-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.prac-variables-table th { background: rgba(255,255,255,0.08); padding: 8px 10px; text-align: left; font-size: 0.78rem; }
.prac-variables-table td { padding: 8px 10px; border-top: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.prac-errors-section .prac-section-title { color: #ff4757; }
.prac-errors-list li { color: rgba(255,100,100,0.9); }
.prac-errors-section { background: rgba(255,71,87,0.06); border: 1px solid rgba(255,71,87,0.15); border-radius: 10px; padding: 12px 12px 12px 4px; }
.prac-tips-section { background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15); border-radius: 10px; padding: 12px 12px 12px 4px; }
.prac-tips-section .prac-section-title { color: #00d4ff; }
.prac-tips-list li { color: rgba(0,212,255,0.9); }
.prac-empty { color: rgba(255,255,255,0.4); padding: 24px 0; font-size: 0.9rem; }

/* ============================================================
   ROUND 23: Leaderboard
   ============================================================ */
.screen-leaderboard { padding: 0 16px 100px; }
.leaderboard-join-class { display: flex; gap: 10px; margin: 12px 0 16px; }
.join-class-input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff; padding: 10px 14px; font-size: 0.9rem;
  font-family: inherit; text-transform: uppercase; letter-spacing: 0.1em;
}
.join-class-btn {
  background: rgba(0,212,255,0.15); border: 1px solid rgba(0,212,255,0.3); color: #00d4ff;
  border-radius: 10px; padding: 10px 16px; font-size: 0.88rem; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
}
.lb-me { border-color: rgba(0,212,255,0.35) !important; background: rgba(0,212,255,0.05) !important; }
.lb-rank { width: 32px; font-size: 1.2rem; }
.lb-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: #00d4ff;
  flex-shrink: 0;
}
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.lb-streak { font-size: 0.85rem; color: rgba(255,184,0,0.9); white-space: nowrap; }
.leaderboard-loading, .leaderboard-empty, .leaderboard-error {
  text-align: center; padding: 32px; color: rgba(255,255,255,0.4); font-size: 0.9rem;
}

/* Stats actions */
.stats-actions-row { display: flex; gap: 10px; margin: 16px; }
.stats-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8); border-radius: 12px; padding: 12px; font-size: 0.85rem;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.stats-action-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

/* ============================================================
   ROUND 25: Video Links
   ============================================================ */
.topic-video-icon {
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
  border-radius: 6px; padding: 2px 6px; font-size: 0.75rem; cursor: pointer;
  margin-left: 8px; transition: all 0.2s; line-height: 1;
  color: transparent; /* show emoji only */
}
.topic-video-icon:hover { background: rgba(0,212,255,0.2); transform: scale(1.1); }

.video-links-modal {
  background: #131e36; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 20px; max-width: 480px; width: 90%; max-height: 80vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.vlm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vlm-title { font-size: 1.05rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.vlm-close {
  background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 1.1rem;
}
.vlm-list { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.vlm-video-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 14px;
}
.vlm-video-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.vlm-video-title { font-size: 0.9rem; font-weight: 600; color: #fff; }
.vlm-recommended-badge {
  background: rgba(255,184,0,0.12); border: 1px solid rgba(255,184,0,0.25); color: #ffb800;
  border-radius: 6px; padding: 2px 8px; font-size: 0.72rem; white-space: nowrap;
}
.vlm-channel { font-size: 0.78rem; color: rgba(0,212,255,0.8); margin-bottom: 6px; }
.vlm-desc { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.vlm-footer { display: flex; align-items: center; justify-content: space-between; }
.vlm-duration { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.vlm-watch-btn {
  background: rgba(255,0,0,0.15); border: 1px solid rgba(255,0,0,0.3); color: #ff6b6b;
  border-radius: 8px; padding: 6px 12px; font-size: 0.82rem; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center;
}
.vlm-watch-btn:hover { background: rgba(255,0,0,0.25); }
.vlm-empty { color: rgba(255,255,255,0.4); text-align: center; padding: 24px; font-size: 0.9rem; }

/* ============================================================
   ROUND 26: Misconception Feedback
   ============================================================ */
.misconception-feedback {
  background: rgba(255,255,255,0.03); border-radius: 12px; overflow: hidden;
}
.mcf-wrong-header {
  background: rgba(255,71,87,0.15); color: #ff4757; padding: 10px 14px;
  font-weight: 700; font-size: 0.95rem;
}
.mcf-misconception { padding: 10px 14px; font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.mcf-correct-section {
  background: rgba(0,200,150,0.08); border-top: 1px solid rgba(0,200,150,0.15);
  padding: 10px 14px;
}
.mcf-correct-label { font-size: 0.78rem; font-weight: 700; color: #00c896; margin-bottom: 4px; }
.mcf-correct-answer { font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.mcf-tip-section {
  background: rgba(0,212,255,0.06); border-top: 1px solid rgba(0,212,255,0.12);
  padding: 10px 14px;
}
.mcf-tip-label { font-size: 0.78rem; font-weight: 700; color: #00d4ff; margin-bottom: 4px; }
.mcf-tip { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ============================================================
   ROUND 27: Custom Card Creation
   ============================================================ */
.create-card-fab {
  position: fixed; bottom: 80px; right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border: none; color: #0f1729; font-size: 1.8rem; font-weight: 300;
  cursor: pointer; z-index: 1000; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,212,255,0.4);
  transition: all 0.2s;
}
.create-card-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,212,255,0.5); }

.create-card-modal {
  background: #131e36; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 24px; max-width: 440px; width: 92%;
  position: relative; max-height: 85vh; overflow-y: auto;
}
.ccm-title { font-size: 1.1rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 16px; }
.ccm-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 1.1rem;
}
.ccm-label { display: block; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.ccm-select, .ccm-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff; padding: 10px 12px; font-size: 0.9rem;
  font-family: inherit; margin-bottom: 14px; resize: vertical;
}
.ccm-textarea::placeholder { color: rgba(255,255,255,0.3); }
.ccm-save-btn {
  width: 100%; background: linear-gradient(135deg, #00d4ff, #0099cc); color: #0f1729;
  border: none; border-radius: 12px; padding: 13px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-top: 4px;
}
.ccm-save-btn:hover { opacity: 0.9; }

.screen-my-cards { padding: 0 16px 100px; }
.my-cards-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.custom-card-item {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px 16px;
}
.cci-subject-tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: #00d4ff; margin-bottom: 8px;
}
.cci-front { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.cci-back { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.cci-actions { display: flex; gap: 8px; }
.cci-study-btn {
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); color: #00d4ff;
  border-radius: 8px; padding: 6px 12px; font-size: 0.8rem; cursor: pointer; font-family: inherit;
}
.cci-delete-btn {
  background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.25); color: #ff4757;
  border-radius: 8px; padding: 6px 12px; font-size: 0.8rem; cursor: pointer; font-family: inherit;
}
.my-cards-empty { text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* ============================================================
   ROUND 28: Daily Goal Ring
   ============================================================ */
.daily-goal-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin: 8px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px;
}
.daily-goal-ring-wrap { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.daily-goal-ring .dgr-bg {
  fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 5;
}
.daily-goal-ring .dgr-fill {
  fill: none; stroke: #00d4ff; stroke-width: 5;
  stroke-linecap: round;
  transform-origin: 32px 32px;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.5s ease;
  stroke-dasharray: 175.9; stroke-dashoffset: 175.9;
}
.daily-goal-pct {
  position: absolute; font-size: 0.7rem; font-weight: 700; color: #00d4ff;
}
.dg-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.dg-sub { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ============================================================
   ROUND 29: Parent Progress Report
   ============================================================ */
.parent-report-modal {
  background: #fff; color: #333;
  border-radius: 16px; padding: 24px; max-width: 560px; width: 92%; max-height: 85vh; overflow-y: auto;
}
.prm-actions {
  display: flex; gap: 10px; margin-bottom: 16px;
}
.prm-print-btn {
  background: #0f1729; color: #fff; border: none;
  border-radius: 8px; padding: 8px 16px; font-size: 0.85rem; cursor: pointer; font-family: inherit;
}
.prm-close-btn {
  background: #eee; color: #333; border: none;
  border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; cursor: pointer; font-family: inherit;
  margin-left: auto;
}
.prm-report { font-family: 'Inter', Arial, sans-serif; }
.prm-report-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; border-bottom: 2px solid #0f1729; padding-bottom: 12px; }
.prm-logo { font-size: 1.1rem; font-weight: 800; color: #0f1729; }
.prm-report-title { font-size: 1rem; font-weight: 700; color: #0f1729; }
.prm-report-date { margin-left: auto; font-size: 0.82rem; color: #666; }
.prm-student-name { font-size: 1.6rem; font-weight: 800; color: #0f1729; margin-bottom: 16px; font-family: 'Plus Jakarta Sans', sans-serif; }
.prm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.prm-stat { background: #f5f7fc; border-radius: 10px; padding: 12px; text-align: center; }
.prm-stat-val { font-size: 1.4rem; font-weight: 800; color: #0f1729; }
.prm-stat-label { font-size: 0.72rem; color: #666; margin-top: 2px; }
.prm-section-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #999; margin: 16px 0 8px; }
.prm-subject-mastery { display: flex; flex-direction: column; gap: 6px; }
.prm-subject-row { display: flex; align-items: center; gap: 10px; }
.prm-subject-name { width: 90px; font-size: 0.82rem; color: #333; text-transform: capitalize; }
.prm-subject-bar-wrap { flex: 1; height: 8px; background: #e8ecf5; border-radius: 4px; overflow: hidden; }
.prm-subject-bar { height: 100%; background: #0f1729; border-radius: 4px; transition: width 0.5s ease; }
.prm-subject-pct { width: 36px; text-align: right; font-size: 0.78rem; color: #333; }
.prm-activity-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.prm-day-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.prm-day-bar { width: 100%; background: #0f1729; border-radius: 3px; min-height: 4px; }
.prm-day-label { font-size: 0.68rem; color: #999; }
.prm-footer { margin-top: 20px; font-size: 0.72rem; color: #aaa; text-align: center; border-top: 1px solid #eee; padding-top: 10px; }
@media print {
  .no-print { display: none !important; }
  .modal-overlay { position: static !important; background: white !important; }
  .parent-report-modal { max-height: none !important; box-shadow: none !important; border: none !important; }
  body { background: white !important; }
}

/* ============================================================
   ROUND 30: EAL Glossary
   ============================================================ */
.screen-eal-glossary { padding: 0 16px 100px; }
.eal-controls { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.eal-language-select, .eal-subject-select {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 0.88rem; font-family: inherit;
  flex: 1; min-width: 140px;
}
.eal-search-wrap { margin-bottom: 14px; }
.eal-search-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff; padding: 10px 14px; font-size: 0.9rem; font-family: inherit;
}
.eal-search-input::placeholder { color: rgba(255,255,255,0.3); }
.eal-terms-list { display: flex; flex-direction: column; gap: 10px; }
.eal-term-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px 16px;
}
.eal-term-english { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.eal-term-subject-tag {
  display: inline-block; font-size: 0.72rem; padding: 2px 8px; border-radius: 6px;
  background: rgba(0,212,255,0.1); color: #00d4ff; margin-bottom: 6px;
}
.eal-subject-biology { background: rgba(0,200,150,0.1) !important; color: #00c896 !important; }
.eal-subject-chemistry { background: rgba(255,184,0,0.1) !important; color: #ffb800 !important; }
.eal-subject-physics { background: rgba(0,212,255,0.1) !important; color: #00d4ff !important; }
.eal-subject-maths { background: rgba(139,92,246,0.1) !important; color: #8b5cf6 !important; }
.eal-term-definition { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.eal-translation-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: rgba(255,255,255,0.04); border-radius: 8px; }
.eal-lang-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); }
.eal-translation { font-size: 0.95rem; font-weight: 600; color: #fff; }
.eal-rtl { direction: rtl; unicode-bidi: bidi-override; }
.eal-romanised { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-style: italic; }
.eal-no-translation { font-size: 0.8rem; color: rgba(255,255,255,0.3); font-style: italic; }
.eal-empty { color: rgba(255,255,255,0.4); text-align: center; padding: 32px; font-size: 0.9rem; }

/* ============================================================
   MISC: Video tab on topics screen
   ============================================================ */
.topic-card { position: relative; }
.topic-card-top { position: relative; }

/* ============================================================
   MISC: Interleaved badge
   ============================================================ */
.study-mode-badge.interleaved { background: rgba(139,92,246,0.2); color: #a78bfa; border-color: rgba(139,92,246,0.3); }
