/* ===== MARIAM KHALED ENGLISH PLATFORM DESIGN SYSTEM ===== */
:root {
  --primary: #2e75b6;
  --primary-light: #4a9ae0;
  --primary-dark: #1d5a94;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --gold: #f59e0b;
  --gold-bg: rgba(245, 158, 11, 0.12);
  --success: #27ae60;
  --success-bg: rgba(39, 174, 96, 0.1);
  --danger: #e74c3c;
  --danger-bg: rgba(231, 76, 60, 0.1);
  --warning: #f1c40f;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font: inherit; }
input, select { font: inherit; }
img { max-width: 100%; display: block; }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s;
}
.shine:hover::after { left: 125%; }

/* Background Blobs */
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -25px) scale(1.05); }
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: float-blob 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes pulseWarning {
  0%, 100% { transform: scale(1); color: var(--danger); }
  50% { transform: scale(1.15); color: #b91c1c; }
}

.animated-fade { animation: fadeInUp 0.4s ease-out both; }
.animated-slide { animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46,117,182,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,126,34,0.3);
}
.btn-google {
  background: #ffffff;
  color: #374151;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.btn-google:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.btn-skip {
  background: rgba(100,116,139,0.08);
  color: var(--text-muted);
  border: 1.5px dashed var(--border);
}
.btn-skip:hover {
  background: rgba(100,116,139,0.15);
  color: var(--text);
  border-color: var(--text-muted);
}
.btn-nav {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46,117,182,0.08);
  color: var(--primary);
  transition: all var(--transition);
}
.btn-nav:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}
.btn-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-xs); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.45s ease-out;
}
.auth-instructor-profile {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
}
.instructor-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 20px rgba(46,117,182,0.3);
}
.verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  border: 2px solid white;
}
.auth-title { text-align: center; font-size: 1.6rem; font-weight: 800; }
.auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  text-align: center;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.auth-divider span {
  padding: 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.auth-alert {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}
.auth-success {
  background: var(--success-bg);
  color: var(--success);
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  text-align: center;
  font-weight: 600;
}
.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-toggle a { color: var(--primary); font-weight: 700; cursor: pointer; }
.auth-toggle a:hover { text-decoration: underline; }

/* Forms */
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}

/* OTP Code Box */
.otp-input {
  letter-spacing: 8px;
  font-size: 1.6rem !important;
  font-weight: 800;
  text-align: center;
  padding: 12px !important;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.navbar-user { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,117,182,0.08);
  padding: 4px 12px 4px 6px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.user-chip:hover {
  background: rgba(46,117,182,0.15);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.user-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }

.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-bg);
  color: #b45309;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Dashboard */
.dashboard {
  max-width: 1050px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.instructor-hero-banner {
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(46,117,182,0.25);
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,247,255,0.95) 100%);
  animation: fadeInUp 0.4s ease-out;
}
.instructor-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.instructor-banner-photo {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(46,117,182,0.25);
}
.instructor-tag {
  display: inline-block;
  background: rgba(230,126,34,0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 0.3rem;
}
.instructor-banner-text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.2rem 0;
}
.instructor-banner-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.dashboard-header {
  text-align: center;
  margin-bottom: 2rem;
}
.dashboard-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
}
.dashboard-header p {
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-size: 1.02rem;
}
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.level-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.45s ease-out both;
}
.level-card:nth-child(1) { animation-delay: 0.05s; }
.level-card:nth-child(2) { animation-delay: 0.1s; }
.level-card:nth-child(3) { animation-delay: 0.15s; }
.level-card:nth-child(4) { animation-delay: 0.2s; }
.level-card:nth-child(5) { animation-delay: 0.25s; }
.level-card:nth-child(6) { animation-delay: 0.3s; }

.level-card.active-card {
  cursor: pointer;
  border: 1.5px solid rgba(46,117,182,0.3);
}
.level-card.active-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.level-card.locked { opacity: 0.6; cursor: not-allowed; }
.level-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.level-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.level-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.level-badge.active { background: var(--success-bg); color: var(--success); }
.level-badge.locked-badge { background: rgba(100,116,139,0.1); color: var(--text-muted); }
.level-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem; }
.level-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; }
.level-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.85rem;
}
.level-q-count { color: var(--text-muted); font-weight: 500; }
.level-arrow { color: var(--primary); font-weight: 700; }

/* Exam Setup */
.exam-setup { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; animation: fadeInUp 0.4s ease-out; }
.exam-hero {
  border-radius: var(--radius);
  padding: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(46,117,182,0.25);
}
.back-link { color: rgba(255,255,255,0.85); font-size: 0.9rem; cursor: pointer; display: inline-block; }
.back-link:hover { color: white; }
.setup-card { border-radius: var(--radius); padding: 2rem; }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.setup-stat {
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius-xs);
  background: rgba(46,117,182,0.06);
  border: 1px solid rgba(46,117,182,0.12);
}
.setup-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.setup-stat .label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.quick-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 0.5rem; }

/* Timer Selector Cards */
.timer-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.timer-opt-card {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: white;
}
.timer-opt-card:hover { border-color: var(--primary); }
.timer-opt-card.selected {
  border-color: var(--primary);
  background: rgba(46,117,182,0.08);
  font-weight: 700;
}
.timer-opt-icon { font-size: 1.3rem; margin-bottom: 2px; }
.timer-opt-title { font-size: 0.85rem; }

/* Quiz */
.quiz-container { max-width: 820px; margin: 0 auto; padding: 1.5rem 1rem; }
.quiz-card { border-radius: var(--radius); overflow: hidden; }
.quiz-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.quiz-back { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.quiz-back:hover { color: var(--danger); }
.quiz-unit-tag {
  background: rgba(230,126,34,0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}
.quiz-counter {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(46,117,182,0.1);
  padding: 4px 12px;
  border-radius: 6px;
}
.quiz-nav-tools { display: flex; align-items: center; gap: 6px; }

/* Timer Display in Quiz Header */
.quiz-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.quiz-timer-badge.warning {
  animation: pulseWarning 0.6s infinite;
  background: #fee2e2;
}

.quiz-progress { height: 6px; background: rgba(46,117,182,0.1); }
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}
.quiz-body { padding: 2.2rem; }
.quiz-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.quiz-type-badge.mcq { background: rgba(46,117,182,0.1); color: var(--primary); }
.quiz-type-badge.article { background: rgba(230,126,34,0.1); color: var(--accent); }
.topic-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(100,116,139,0.08);
  color: var(--text-muted);
  margin-left: 6px;
}
.quiz-question {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

/* Options */
.options-list { display: flex; flex-direction: column; gap: 0.8rem; }
.option-btn {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-xs);
  border: 2px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
  font-size: 1rem;
}
.option-btn:hover:not(:disabled):not(.correct):not(.wrong) {
  border-color: var(--primary);
  background: rgba(46,117,182,0.04);
  transform: translateX(4px);
}
.option-letter {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: rgba(46,117,182,0.08);
  color: var(--primary);
  border: 1.5px solid rgba(46,117,182,0.2);
}
.option-text { flex: 1; font-weight: 500; font-size: 1.05rem; }
.option-icon { flex-shrink: 0; font-size: 1.2rem; font-weight: 800; }

.option-btn.correct {
  border-color: var(--success);
  background: var(--success-bg);
  color: #1b5e20;
}
.option-btn.correct .option-letter {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.option-btn.wrong {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: #b71c1c;
}
.option-btn.wrong .option-letter {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.option-btn.dimmed { opacity: 0.45; }

/* Feedback */
.feedback-box {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeInUp 0.3s ease-out;
}
.feedback-box.correct-feedback {
  background: var(--success-bg);
  color: #1b5e20;
  border: 1px solid rgba(39,174,96,0.3);
}
.feedback-box.wrong-feedback {
  background: var(--danger-bg);
  color: #b71c1c;
  border: 1px solid rgba(231,76,60,0.3);
}
.quiz-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Result */
.result-container { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem; animation: fadeInUp 0.45s ease-out; }
.result-card { border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.result-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid;
}
.result-circle.pass { background: var(--success-bg); border-color: var(--success); }
.result-circle.fail { background: var(--danger-bg); border-color: var(--danger); }
.result-circle .icon { font-size: 3rem; }
.result-score { font-size: 3.8rem; font-weight: 900; margin: 0.5rem 0; }
.result-score.pass-score { color: var(--success); }
.result-score.fail-score { color: var(--danger); }
.result-score span { font-size: 1.8rem; color: var(--text-muted); }
.points-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1.5px solid #f59e0b;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  animation: pulse 1.5s infinite;
}
.result-text { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.result-text b { color: var(--text); }
.result-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.result-review {
  text-align: left;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 6px;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.review-item {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xs);
  border: 1px solid;
  margin-bottom: 0.75rem;
}
.review-item.correct-review { border-color: rgba(39,174,96,0.3); background: var(--success-bg); }
.review-item.wrong-review { border-color: rgba(231,76,60,0.3); background: var(--danger-bg); }
.review-item .q-text { font-weight: 600; font-size: 0.95rem; }
.review-item .correct-ans { color: var(--success); font-weight: 700; }

/* Profile Page */
.profile-container { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem; animation: fadeInUp 0.45s ease-out; }
.profile-hero {
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  border: 3px solid white;
  box-shadow: 0 6px 16px rgba(46,117,182,0.25);
}
.profile-details h2 { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.profile-details p { color: var(--text-muted); font-size: 0.92rem; }
.profile-points-box {
  text-align: center;
  background: white;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid #fcd34d;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}
.profile-points-num { font-size: 2.4rem; font-weight: 900; color: #d97706; line-height: 1; }
.profile-points-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-top: 4px; }

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.stat-card .val { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-card .lbl { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

.history-card { border-radius: var(--radius); padding: 2rem; }
.history-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.history-table th, .history-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.history-table th { color: var(--text-muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; }
.badge-pass { background: var(--success-bg); color: var(--success); padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 0.8rem; }
.badge-fail { background: var(--danger-bg); color: var(--danger); padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 0.8rem; }
.badge-points { background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 10px; font-weight: 800; font-size: 0.78rem; }

/* Utilities */
.hidden { display: none !important; }

@media (max-width: 640px) {
  .auth-card { padding: 2rem 1.5rem; }
  .dashboard-header h1 { font-size: 1.7rem; }
  .levels-grid, .setup-grid, .timer-options { grid-template-columns: 1fr; }
  .quiz-body { padding: 1.25rem; }
  .quiz-question { font-size: 1.1rem; }
  .result-card { padding: 1.75rem 1.25rem; }
  .result-score { font-size: 2.8rem; }
  .instructor-banner-content { flex-direction: column; text-align: center; }
  .profile-hero { flex-direction: column; text-align: center; }
}
