/* ==========================================================================
   MMM Study — Unified Mobile-First Academic Design System
   ========================================================================== */

:root {
  /* Brand Academic Navy */
  --brand-navy-950: #071324;
  --brand-navy-900: #0B1E36;
  --brand-navy-850: #0F2544;
  --brand-navy-800: #143058;
  --brand-navy-700: #1B4075;
  --brand-navy-600: #25579C;
  --brand-navy-gradient: linear-gradient(135deg, #071324 0%, #0B1E36 55%, #143058 100%);
  --brand-navy-subtle: rgba(11, 30, 54, 0.04);

  /* Brand Academic Gold */
  --brand-gold: #C59B27;
  --brand-gold-hover: #D4AF37;
  --brand-gold-light: #FFF9E6;
  --brand-gold-soft: #FEF3C7;
  --brand-gold-border: rgba(197, 155, 39, 0.35);
  --brand-gold-glow: rgba(197, 155, 39, 0.25);
  --brand-gold-gradient: linear-gradient(135deg, #E5BE57 0%, #C59B27 100%);

  /* Academic Accents (from logo books) */
  --accent-green: #15803D;
  --accent-green-hover: #16A34A;
  --accent-green-soft: #DCFCE7;
  --accent-crimson: #991B1B;
  --accent-crimson-hover: #B91C1C;
  --accent-crimson-soft: #FEE2E2;

  /* Surfaces & Neutrals */
  --surface-bg: #F4F6FA;
  --surface-card: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --surface-ivory: #FDFBF7;
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: #C59B27;

  /* Text & Typography */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Metrics & Elevation */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(11, 30, 54, 0.05);
  --shadow-md: 0 4px 14px rgba(11, 30, 54, 0.07);
  --shadow-lg: 0 10px 30px rgba(11, 30, 54, 0.1);
  --shadow-gold: 0 8px 24px rgba(197, 155, 39, 0.28);
  --shadow-bottom-nav: 0 -4px 20px rgba(11, 30, 54, 0.08);

  /* Subject Accent Themes */
  --subj-myanmar: #2563EB;
  --subj-myanmar-soft: #EFF6FF;
  --subj-english: #D97706;
  --subj-english-soft: #FFFBEB;
  --subj-math: #7C3AED;
  --subj-math-soft: #F5F3FF;
  --subj-physics: #0D9488;
  --subj-physics-soft: #F0FDFA;
  --subj-chemistry: #E11D48;
  --subj-chemistry-soft: #FFF1F2;
  --subj-biology: #16A34A;
  --subj-biology-soft: #F0FDF4;

  /* Legacy variable compatibility */
  --blue-900: var(--brand-navy-900);
  --blue-700: var(--brand-navy-700);
  --blue-600: #2563EB;
  --blue-100: #E7EDFF;
  --bg: var(--surface-bg);
  --white: var(--surface-card);
  --yellow: var(--brand-gold);
  --yellow-deep: var(--brand-gold-hover);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --line: var(--border-color);
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-soft: var(--shadow-md);
  --shadow-lift: var(--shadow-lg);
}

/* ==========================================================================
   RESET & TYPOGRAPHY
   ========================================================================== */

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Pyidaungsu", "Noto Sans Myanmar", "Myanmar3", "Segoe UI", Roboto, sans-serif;
  background-color: var(--surface-bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.sidebar-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6,
.brand, .mobile-brand, .card-title, .nav-item, .pill, .btn-primary, .practice-btn {
  font-family: 'Poppins', 'Inter', "Pyidaungsu", sans-serif;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   MAIN APP LAYOUT
   ========================================================================== */

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

main {
  padding: 32px 40px 60px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   BRAND LOGO & HEADER
   ========================================================================== */

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand-gold), 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  background: #FFFDF7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.2px;
  cursor: pointer;
  user-select: none;
}

.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-gold-hover);
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid var(--brand-gold-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 2px;
}

/* ==========================================================================
   DESKTOP SIDEBAR
   ========================================================================== */

.sidebar {
  background: var(--brand-navy-gradient);
  color: var(--text-inverse);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Profile Card */
.profile-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.avatar-ring {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
}

.avatar-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.avatar-fallback {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--brand-gold-gradient);
  color: var(--brand-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.level-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--brand-gold);
  color: var(--brand-navy-950);
  font-size: 11px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-navy-900);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.student-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-inverse);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.xp-wrap {
  margin-top: 12px;
  text-align: left;
}

.xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
  font-weight: 600;
}

.xp-track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--brand-gold-gradient);
  transition: width 0.4s ease;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: left;
}

.stat-chip .val {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-inverse);
}

.stat-chip .lbl {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1px;
}

.continue-btn {
  margin-top: 14px;
  width: 100%;
  background: var(--brand-gold-gradient);
  color: var(--brand-navy-950);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.45);
  filter: brightness(1.05);
}

.continue-btn:active {
  transform: translateY(0);
}

/* Exam Countdown Card */
.countdown {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--brand-gold-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
}

.countdown .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-gold-hover);
  line-height: 1.1;
  font-family: 'Poppins', sans-serif;
}

.countdown .txt {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
  line-height: 1.35;
}

/* Sidebar Nav */
nav.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
  transform: translateX(3px);
}

.nav-item.active {
  background: var(--brand-gold-gradient);
  color: var(--brand-navy-950);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.28);
}

.nav-item.logout {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.nav-item.logout:hover {
  color: #F87171;
  background: rgba(239, 68, 68, 0.1);
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 6px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.4);
  padding: 8px 14px 2px;
}

/* Contextual Study Hub Grid */
.study-hub-section {
  margin-bottom: 28px;
}

.study-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.study-hub-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy-900);
}

.study-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.study-hub-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.study-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold);
}

.study-hub-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.study-hub-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.study-hub-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.study-hub-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .study-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .study-hub-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .study-hub-card {
    padding: 12px 14px;
  }
}

/* ==========================================================================
   MOBILE TOP HEADER (Visible <= 768px)
   ========================================================================== */

.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-navy-900);
  letter-spacing: -0.2px;
  text-decoration: none;
}

.mobile-brand .brand-logo-img {
  width: 32px;
  height: 32px;
}

.sidebar-toggle {
  display: none;
  background: var(--surface-subtle);
  border: 1px solid var(--border-color);
  color: var(--brand-navy-900);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sidebar-toggle:active {
  transform: scale(0.95);
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 36, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (Sticky <= 768px)
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-bottom-nav);
  z-index: 60;
  padding: 4px 8px;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  min-width: 58px;
  min-height: 48px;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.18s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
  color: var(--brand-navy-900);
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

.bottom-nav-item.active {
  color: var(--brand-navy-900);
  font-weight: 700;
}

.bottom-nav-item.active svg {
  stroke: var(--brand-gold);
  transform: translateY(-1px);
}

.bottom-nav-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--brand-gold);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   DASHBOARD HEADING & TOP ROW
   ========================================================================== */

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.heading-block h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-navy-900);
  letter-spacing: -0.4px;
}

.heading-block p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-navy-700);
  transition: color 0.15s ease, transform 0.15s ease;
}

.back-link:hover {
  color: var(--brand-gold);
  transform: translateX(-2px);
}

/* ==========================================================================
   METRICS & QUICK STATS (COMPACT MOBILE-OPTIMIZED)
   ========================================================================== */

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.qstat {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.qstat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qstat .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.qstat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-navy-900);
  line-height: 1.2;
}

.qstat .lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   SUBJECT GRID (2 COLUMNS MOBILE / 3 COLUMNS DESKTOP)
   ========================================================================== */

.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.subject-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.subject-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, var(--brand-navy-700));
}

.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 30, 54, 0.15);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.subj-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft, var(--surface-subtle));
  color: var(--accent, var(--brand-navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
}

.subj-icon svg {
  width: 22px;
  height: 22px;
}

.completion-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy-900);
  margin-bottom: 4px;
}

.card-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prog-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 14px;
}

.prog-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent, var(--brand-navy-700));
  transition: width 0.4s ease;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.qcount {
  font-size: 12px;
  color: var(--text-secondary);
}

.qcount b {
  color: var(--brand-navy-900);
}

.practice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent, var(--brand-navy-700));
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.practice-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.practice-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   LEADERBOARD, ANALYTICS & COMMON CARDS
   ========================================================================== */

.hero-panel {
  background: var(--brand-navy-gradient);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-gold-glow), transparent 70%);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.hero-copy h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-copy p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold-hover);
  margin-bottom: 6px;
}

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

.mini-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-width: 90px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.mini-card .value {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-gold-hover);
  font-family: 'Poppins', sans-serif;
}

.mini-card .label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 2px;
}

.leaderboard-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.table-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy-900);
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--surface-subtle);
  color: var(--brand-navy-700);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.leaderboard-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.table-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 1fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13.5px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.table-row:hover {
  background: var(--surface-card);
  border-color: var(--border-focus);
}

.table-row.table-header {
  background: transparent;
  border: none;
  padding: 0 6px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

.rank-badge.gold {
  background: var(--brand-gold-gradient);
  color: var(--brand-navy-950);
  border-color: var(--brand-gold);
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.35);
}

.rank-badge.silver {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  color: #334155;
  border-color: #94A3B8;
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #FDE68A 0%, #D97706 100%);
  color: #78350F;
  border-color: #B45309;
}

.user-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-cell strong {
  font-size: 14px;
  color: var(--brand-navy-900);
}

.user-cell small {
  font-size: 11px;
  color: var(--text-muted);
}

.top-row-entry {
  background: #FFFDF5;
  border-color: var(--brand-gold-border);
}

.table-row.is-you {
  border: 2px solid var(--brand-gold);
  background: rgba(197, 155, 39, 0.06);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .app {
    grid-template-columns: 240px 1fr;
  }
  main {
    padding: 28px 24px 60px;
  }
  .subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }

  .mobile-header {
    display: flex;
  }

  .sidebar-toggle {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  main {
    padding: 68px 14px 88px;
    max-width: 100%;
  }

  .heading-block h1 {
    font-size: 21px;
  }

  .heading-block p {
    font-size: 12.5px;
  }

  /* Drawer Sidebar on Mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    max-width: 85vw;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.3);
    padding: 20px 16px 32px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar .brand {
    display: flex;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sidebar-backdrop {
    display: block;
  }

  /* Compact 3-Column Metrics Strip on Mobile */
  .quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }

  .qstat {
    padding: 10px 8px;
    gap: 8px;
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .qstat .ic {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
  }

  .qstat .num {
    font-size: 16px;
  }

  .qstat .lbl {
    font-size: 10px;
    white-space: normal;
    line-height: 1.2;
  }

  /* 2-Column Subject Grid on Mobile */
  .subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .subject-card {
    padding: 14px 12px;
    border-radius: var(--radius-md);
  }

  .card-top {
    margin-bottom: 8px;
  }

  .subj-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .subj-icon svg {
    width: 18px;
    height: 18px;
  }

  .completion-pill {
    font-size: 9.5px;
    padding: 3px 6px;
  }

  .card-title {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .card-sub {
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 10px;
    min-height: 28px;
    -webkit-line-clamp: 2;
  }

  .prog-track {
    height: 5px;
    margin-bottom: 10px;
  }

  .card-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }

  .qcount {
    font-size: 10.5px;
    text-align: center;
  }

  .practice-btn {
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
  }

  /* Leaderboard & Hero Panel Mobile */
  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    gap: 14px;
    border-radius: var(--radius-lg);
  }

  .hero-copy h2 {
    font-size: 18px;
  }

  .hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .mini-card {
    min-width: auto;
    padding: 8px 6px;
  }

  .mini-card .value {
    font-size: 15px;
  }

  .mini-card .label {
    font-size: 9.5px;
  }

  .table-row {
    grid-template-columns: 38px 1.4fr 0.9fr 0.8fr;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .table-row.table-header span:nth-child(5),
  .table-row.table-header span:nth-child(6),
  .table-row > span:nth-child(5),
  .table-row > span:nth-child(6) {
    display: none;
  }

  .rank-badge {
    width: 28px;
    height: 28px;
    font-size: 11.5px;
  }

  .user-cell strong {
    font-size: 12.5px;
  }
}

/* Very Small Mobile (<360px) */
@media (max-width: 360px) {
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .quick-stats {
    grid-template-columns: 1fr;
  }
}

/* Touch Targets & Accessibility (WCAG 2.5.5 / Apple HIG) */
.option-label {
  min-height: 48px;
  box-sizing: border-box;
}

/* ==========================================================================
   CORE LEARNING JOURNEY — CHAPTER SELECTION & TABS
   ========================================================================== */

.category-tabs {
  margin-bottom: 28px;
}

.category-tabs input[type="radio"] {
  display: none;
}

.tab-bar {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--surface-card);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: 'Poppins', 'Inter', sans-serif;
  user-select: none;
}

.tab-btn:hover {
  color: var(--brand-navy-900);
  background: var(--surface-subtle);
}

/* Category tab selection states across all 6 subjects */
input[id$="-true"]:checked ~ .tab-bar label[for$="-true"],
input[id$="-mcq"]:checked ~ .tab-bar label[for$="-mcq"],
input[id$="-blank"]:checked ~ .tab-bar label[for$="-blank"] {
  background: var(--brand-navy-900);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 30, 54, 0.25);
}

.category-panel {
  display: none;
}

input[id$="-true"]:checked ~ .category-panels section[id$="-panel-true"],
input[id$="-true"]:checked ~ .category-panels section[id="panel-true"],
input[id$="-mcq"]:checked ~ .category-panels section[id$="-panel-mcq"],
input[id$="-mcq"]:checked ~ .category-panels section[id="panel-mcq"],
input[id$="-blank"]:checked ~ .category-panels section[id$="-panel-blank"],
input[id$="-blank"]:checked ~ .category-panels section[id="panel-blank"] {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-intro {
  margin-bottom: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.panel-intro h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-navy-900);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.panel-intro p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Chapter Grid & Cards */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chapter-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.chapter-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold);
}

.chapter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-navy-subtle);
  color: var(--brand-navy-800);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chapter-type-pill {
  font-size: 11px;
  font-weight: 600;
  color: #78350F;
  background: var(--brand-gold-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.chapter-card h3, .chapter-title {
  color: var(--brand-navy-900);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
  font-family: 'Poppins', 'Inter', "Pyidaungsu", "Noto Sans Myanmar", sans-serif;
}

.chapter-card p, .chapter-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  flex: 1;
}

.start-btn {
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  background: var(--brand-navy-gradient);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-weight: 700;
  font-size: 13.5px;
  min-height: 48px;
  box-shadow: 0 4px 12px rgba(11, 30, 54, 0.2);
  transition: all 0.18s ease;
  border: 1px solid var(--brand-gold-border);
}

.start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.35);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .chapter-grid {
    grid-template-columns: 1fr;
  }
  .tab-bar {
    width: 100%;
  }
  .tab-btn {
    flex: 1;
    min-width: 90px;
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .start-btn {
    width: 100%;
  }
}

/* ==========================================================================
   CORE LEARNING JOURNEY — QUIZ & QUESTION SCREENS
   ========================================================================== */

.quiz-grid {
  display: grid;
  gap: 20px;
}

.quiz-grid.single-column {
  grid-template-columns: 1fr;
}

.quiz-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-card.focused {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.25);
}

.quiz-question-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.quiz-question {
  display: flex;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy-900);
  line-height: 1.55;
  font-family: 'Inter', "Pyidaungsu", "Noto Sans Myanmar", sans-serif;
  word-break: break-word;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  min-height: 52px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.45;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.option-label:hover {
  border-color: var(--brand-navy-600);
  background: var(--surface-subtle);
}

.option-label:has(input:checked) {
  border-color: var(--brand-gold);
  background: #FFFDF5;
  box-shadow: 0 0 0 1px var(--brand-gold), 0 2px 8px rgba(197, 155, 39, 0.15);
  color: var(--brand-navy-950);
  font-weight: 600;
}

.option-label input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-gold);
  flex-shrink: 0;
  cursor: pointer;
}

.answer-field {
  display: grid;
  gap: 8px;
}

.answer-field span {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.answer-field input {
  width: 100%;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  background: #FFFFFF;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.answer-field input:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.18);
}

.bookmark-btn {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  border: 1.5px solid var(--border-color);
  background: var(--surface-card);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  transition: all 0.18s ease;
}

.bookmark-btn:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.bookmark-btn.saved {
  background: var(--brand-gold-soft);
  border-color: var(--brand-gold);
  color: #78350F;
}

.submit-btn {
  appearance: none;
  -webkit-appearance: none;
  grid-column: 1 / -1;
  justify-self: center;
  background: var(--brand-navy-gradient);
  color: #FFFFFF;
  border: 1px solid var(--brand-gold-border);
  border-radius: var(--radius-pill);
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-height: 50px;
  box-shadow: 0 4px 16px rgba(11, 30, 54, 0.2);
  transition: all 0.2s ease;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.35);
}

@media (max-width: 768px) {
  .quiz-card {
    padding: 18px 16px;
  }
  .quiz-question {
    font-size: 15px;
  }
  .option-label {
    padding: 12px 14px;
  }
  .submit-btn {
    width: 100%;
  }
}

/* ==========================================================================
   CORE LEARNING JOURNEY — RESULT & REVIEW SCREENS
   ========================================================================== */

.result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.summary-card.score-card {
  border-color: var(--brand-gold);
  background: #FFFDF7;
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.15);
}

.summary-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.score-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-navy-900);
  line-height: 1.1;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.score-card .score-value {
  color: var(--brand-gold);
}

.score-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.result-block {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.result-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy-900);
  margin-bottom: 12px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

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

.result-item .good {
  color: var(--accent-green);
  font-weight: 800;
}

.result-item .bad {
  color: var(--accent-crimson);
  font-weight: 800;
}

/* Result CTA Panel */
.result-cta-panel {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.result-cta-panel.needs-practice {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF3C7 100%);
  border-color: var(--brand-gold-border);
}

.result-cta-panel.success {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: rgba(22, 163, 74, 0.35);
}

.result-cta-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-navy-900);
  margin-bottom: 6px;
}

.result-cta-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.result-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.result-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-navy-gradient);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 30, 54, 0.25);
  transition: all 0.18s ease;
  border: 1px solid var(--brand-gold-border);
}

.result-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

.result-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface-card);
  color: var(--brand-navy-900) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  text-decoration: none;
  border: 1.5px solid var(--border-color);
  transition: all 0.18s ease;
}

.result-btn-secondary:hover {
  border-color: var(--brand-navy-700);
  background: var(--surface-subtle);
}

.result-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 18px;
  min-height: 48px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.result-btn-outline:hover {
  color: var(--brand-navy-900) !important;
}

/* Question Review List */
.review-header {
  margin-bottom: 16px;
}

.review-header h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-navy-900);
}

.question-list {
  display: grid;
  gap: 14px;
}

.question-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-card.correct {
  border-left: 5px solid var(--accent-green);
}

.question-card.incorrect {
  border-left: 5px solid var(--accent-crimson);
}

.q-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.q-num {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.status-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.status-badge.correct {
  background: var(--accent-green-soft);
  color: var(--accent-green);
}

.status-badge.incorrect {
  background: var(--accent-crimson-soft);
  color: var(--accent-crimson);
}

.question-card p {
  font-size: 15px;
  color: var(--brand-navy-900);
  line-height: 1.5;
  font-family: 'Inter', "Pyidaungsu", "Noto Sans Myanmar", sans-serif;
}

.answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
}

.answer-row .correct-answer {
  color: var(--accent-green);
  font-weight: 700;
}

.answer-row .wrong-answer {
  color: var(--accent-crimson);
  font-weight: 700;
}

@media (max-width: 768px) {
  .result-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .result-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .result-btn-primary, .result-btn-secondary, .result-btn-outline {
    width: 100%;
    min-height: 48px;
  }
  .answer-row {
    flex-direction: column;
    gap: 6px;
  }
}


