:root {
  /* Oasis Divine Academy Official Brand Identity */
  --primary-950: #001A4E;
  --primary-900: #002773;
  --primary-800: #003398; /* Official Logo Wordmark Royal Blue (#003398) */
  --primary-700: #0A44B5;
  --primary-600: #1E5BD8;
  --primary-500: #2563EB;
  --primary-100: #DBEAFE;
  --primary-50: #EFF6FF;

  /* Official Emblem Golden Amber Accents */
  --gold-700: #C27400;
  --gold-600: #DF8600;
  --gold-500: #F99A00; /* Official Logo Emblem Golden Amber (#F99A00) */
  --gold-400: #FBB438;
  --gold-100: #FEF3C7;
  --gold-50: #FFFBEB;
  --orange-600: #EA580C;
  --orange-500: #F97316;
  --orange-100: #FFEDD5;

  /* Neutrals & Surfaces - Linear & Stripe Clean EdTech Design */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-muted: #F1F5F9;
  --border-color: #E2E8F0;
  --border-dark: #CBD5E1;

  /* Typography */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Status Colors */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --info: #0284C7;
  --info-bg: #F0F9FF;

  /* Refined Elevation Tokens */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--primary-900);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-800);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.w-full { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(15, 42, 74, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 42, 74, 0.35);
  color: #FFFFFF;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--orange-500));
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-600), var(--orange-600));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--primary-800);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary-700);
  border: 1.5px solid var(--primary-700);
}

.btn-outline:hover {
  background: var(--primary-50);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
  text-align: left;
}

.badge-gold {
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-primary {
  background: var(--primary-100);
  color: var(--primary-700);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

/* Card Container */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 2px;
}

.brand-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-900);
  margin-bottom: -2px;
}

.brand-text span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.navbar .container {
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  flex-shrink: 1;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary-600);
}

/* Dashboard App Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
}

.sidebar {
  width: 260px;
  background: var(--primary-900);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  list-style: none;
  flex: 1;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  color: #CBD5E1;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.sidebar-nav a.active {
  background: linear-gradient(90deg, var(--primary-600), var(--primary-700));
  color: var(--gold-400);
  font-weight: 700;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.main-content {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 260px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-page);
}

.top-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 90;
}

.page-body {
  padding: 1.75rem;
  flex: 1;
}

/* Study Mode Critical Styles */
.study-question-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.study-option-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  /* CRITICAL: Static and non-clickable! */
  cursor: default;
  user-select: none;
  transition: var(--transition);
}

.option-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #E2E8F0;
  color: var(--primary-900);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.study-option-card.correct-revealed {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

.study-option-card.correct-revealed .option-badge {
  background: #10B981;
  color: #FFFFFF;
}

.explanation-reveal-box {
  background: #F0FDF4;
  border-left: 4px solid #10B981;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  animation: fadeIn 0.3s ease;
}

/* CBT Exam Mode Styles */
.cbt-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
}

.cbt-option-card {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.cbt-option-card:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.cbt-option-card.selected {
  border-color: var(--primary-600);
  background: #EFF6FF;
}

.cbt-option-card.selected .option-badge {
  background: var(--primary-600);
  color: #FFFFFF;
}

.question-palette {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  height: fit-content;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.palette-btn {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--bg-muted);
  color: var(--text-main);
  border: 1.5px solid transparent;
}

.palette-btn:hover {
  border-color: var(--primary-600);
}

.palette-btn.current {
  outline: 3px solid var(--primary-500);
  outline-offset: 1px;
}

.palette-btn.answered {
  background: var(--primary-700);
  color: #FFFFFF;
}

.palette-btn.flagged {
  background: var(--gold-500);
  color: #FFFFFF;
}

.cbt-timer {
  background: var(--primary-900);
  color: #FFFFFF;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.cbt-timer.time-warning {
  background: var(--danger);
  animation: pulse 1s infinite;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  animation: modalScale 0.2s ease-out;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideInRight 0.3s ease;
}

.toast-success { background: #059669; }
.toast-error { background: #DC2626; }
.toast-warning { background: #D97706; }
.toast-info { background: #0284C7; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }
  .cbt-container {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* Print Stylesheet for Parent Report */
@media print {
  body { background: #FFFFFF; color: #000000; }
  .sidebar, .top-bar, .no-print, button, #toast-container { display: none !important; }
  .main-content { margin-left: 0; max-width: 100%; padding: 0; }
  .card { border: 1px solid #CCC; box-shadow: none; break-inside: avoid; }
}

/* ==============================================================
   OFFICIAL JAMB 8-DIGIT CBT CALCULATOR STYLES
   ============================================================== */
.jamb-calc-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 290px;
  background: #1E293B;
  border: 2px solid #334155;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  user-select: none;
  font-family: 'Courier New', Courier, monospace;
}

.jamb-calc-header {
  background: #0F172A;
  padding: 8px 12px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
}

.jamb-calc-title {
  color: #F8FAFC;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jamb-calc-badge {
  background: #D97706;
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
}

.jamb-calc-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.jamb-calc-close-btn:hover {
  background: #DC2626;
  color: #FFF;
}

.jamb-calc-screen-wrapper {
  background: #9BB79C; /* Authentic LCD greenish grey */
  margin: 12px;
  border-radius: 6px;
  padding: 8px 10px;
  border: 2px inset #6B8E6D;
  position: relative;
  text-align: right;
  height: 52px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}

.jamb-calc-memory-indicator {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1A381B;
}

.jamb-calc-screen {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0F2810;
  letter-spacing: 2px;
  overflow: hidden;
  line-height: 38px;
}

.jamb-calc-keypad {
  padding: 0 12px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.calc-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  height: 38px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.calc-btn:active {
  transform: translateY(1px);
}

.calc-btn-num {
  background: #334155;
  color: #F8FAFC;
}

.calc-btn-num:hover {
  background: #475569;
}

.calc-btn-op {
  background: #0284C7;
  color: #FFFFFF;
}

.calc-btn-op:hover {
  background: #0369A1;
}

.calc-btn-mem {
  background: #475569;
  color: #FCD34D;
  font-size: 0.8rem;
}

.calc-btn-mem:hover {
  background: #64748B;
}

.calc-btn-func {
  background: #B91C1C;
  color: #FFFFFF;
}

.calc-btn-func:hover {
  background: #991B1B;
}

.calc-btn-equals {
  grid-column: span 4;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 1.2rem;
  height: 40px;
}

.calc-btn-equals:hover {
  background: #15803D;
}

.jamb-calc-footer {
  text-align: center;
  padding: 4px;
  background: #0F172A;
  color: #64748B;
  font-size: 0.65rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ==============================================================
   ORAL ENGLISH & PHONETICS TRAINER STYLES
   ============================================================== */
.oral-badge-tag {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.oral-topic-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.topic-tab-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.topic-tab-btn.active, .topic-tab-btn:hover {
  background: #0A192F;
  color: #FFFFFF;
  border-color: #0A192F;
}

.oral-card {
  padding: 24px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

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

.oral-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.oral-counter {
  font-size: 0.85rem;
  color: #64748B;
}

.oral-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}

.oral-progress-bar-fill {
  height: 100%;
  background: #0284C7;
  transition: width 0.3s ease;
}

.oral-audio-control-bar {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.oral-audio-desc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #1E293B;
}

.oral-stem {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.6;
  margin-bottom: 22px;
}

.oral-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .oral-options-grid {
    grid-template-columns: 1fr;
  }
}

.oral-opt-btn {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.oral-opt-btn:hover:not(.disabled) {
  border-color: #0284C7;
  background: #F0F9FF;
}

.oral-opt-key {
  background: #E2E8F0;
  color: #0F172A;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.oral-opt-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1E293B;
}

.oral-opt-phonetic {
  color: #64748B;
  font-size: 0.85rem;
  font-style: italic;
  margin-left: auto;
}

.oral-opt-btn.correct {
  background: #DCFCE7;
  border-color: #16A34A;
}

.oral-opt-btn.correct .oral-opt-key {
  background: #16A34A;
  color: #FFF;
}

.oral-opt-btn.incorrect {
  background: #FEE2E2;
  border-color: #DC2626;
}

.oral-opt-btn.incorrect .oral-opt-key {
  background: #DC2626;
  color: #FFF;
}

.oral-feedback-panel {
  background: #F8FAFC;
  border-radius: 10px;
  border-left: 4px solid #0284C7;
  padding: 18px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s;
}

.oral-result-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
}

.oral-result-banner.result-correct {
  color: #16A34A;
}

.oral-result-banner.result-incorrect {
  color: #DC2626;
}

.oral-rule-explanation h4 {
  font-size: 0.95rem;
  color: #0F172A;
  margin-bottom: 6px;
}

.oral-rule-explanation p {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

.oral-trap-alert {
  background: #FEF3C7;
  border-left: 4px solid #D97706;
  color: #92400E;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 10px;
}

.oral-card-footer {
  display: flex;
  justify-content: flex-end;
}

/* ==============================================================
   PARENT NOTIFICATION GATEWAY & WHATSAPP SIMULATOR STYLES
   ============================================================== */
.parent-notif-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .parent-notif-hub-grid {
    grid-template-columns: 1fr;
  }
}

.whatsapp-mock-phone {
  background: #0B141B;
  border-radius: 24px;
  padding: 12px;
  border: 4px solid #1F2C34;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  max-width: 400px;
  margin: 0 auto;
}

.whatsapp-topbar {
  background: #1F2C34;
  color: #E9EDEF;
  padding: 10px 14px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.whatsapp-avatar {
  width: 32px;
  height: 32px;
  background: #0A192F;
  color: #D97706;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.whatsapp-chat-body {
  background: #0B141B url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" opacity="0.03"><path d="M10 10h10v10H10z" fill="white"/></svg>') repeat;
  padding: 16px 12px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whatsapp-bubble {
  background: #005C4B;
  color: #E9EDEF;
  border-radius: 8px 8px 0px 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  align-self: flex-end;
  max-width: 90%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  white-space: pre-wrap;
  position: relative;
}

.whatsapp-bubble-time {
  font-size: 0.65rem;
  color: #8696A0;
  text-align: right;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.whatsapp-checkmarks {
  color: #53BDEB; /* Double blue tick */
  font-weight: 800;
}

.notif-logs-table {
  width: 100%;
  border-collapse: collapse;
}

.notif-logs-table th {
  background: #F1F5F9;
  padding: 8px 12px;
  font-size: 0.8rem;
  text-align: left;
  color: #475569;
}

.notif-logs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.85rem;
}

/* ============================================================================
   Standardized Global Form Controls & Onboarding Layout System
   ============================================================================ */
.form-control {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.98rem;
  font-size: 0.94rem;
  font-family: inherit;
  line-height: 1.45;
  color: #0F172A;
  background-color: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-control::placeholder {
  color: #94A3B8;
}

.form-control:hover:not(:disabled):not([readonly]) {
  border-color: #94A3B8;
}

.form-control:focus,
.form-control:focus-visible {
  outline: none;
  border-color: var(--primary-800);
  box-shadow: 0 0 0 3.5px rgba(0, 51, 152, 0.13);
  background-color: #FFFFFF;
}

.form-control[readonly],
.form-control:disabled {
  background-color: #F1F5F9;
  color: #475569;
  border-color: #E2E8F0;
  cursor: not-allowed;
}

select.form-control {
  height: 46px;
  padding: 0 0.98rem;
  line-height: normal;
  cursor: pointer;
}

input.form-control {
  height: 46px;
}

textarea.form-control {
  min-height: 112px;
  resize: vertical;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  line-height: 1.6;
}

.ob-card-shell {
  max-width: 820px;
  width: 100%;
  background: #FFFFFF;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 22px 50px -20px rgba(0, 39, 115, 0.14), 0 4px 14px -4px rgba(15, 23, 42, 0.05);
  border: 1px solid #E2E8F0;
  border-top: 4px solid var(--primary-800);
  border-radius: 18px;
}

.ob-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}

.ob-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ob-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1E293B;
  margin-bottom: 0.45rem;
}

.ob-exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.ob-exam-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 1.2rem 1.25rem;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ob-exam-card:hover {
  border-color: #93C5FD;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(0, 51, 152, 0.22);
}

.ob-exam-card.active {
  border-color: #003398;
  background: #EFF6FF;
  box-shadow: 0 10px 24px -12px rgba(0, 51, 152, 0.28);
}

.ob-exam-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ob-exam-code {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #003398;
  background: #DBEAFE;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-exam-card.active .ob-exam-code {
  background: #003398;
  color: #FFFFFF;
}

.ob-exam-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ob-exam-level {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.4;
}

.ob-assess-list {
  max-height: 390px;
  overflow-y: auto;
  padding-right: 0.45rem;
  margin-bottom: 1.5rem;
  scroll-behavior: auto;
}

.ob-assess-card {
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  background: #FFFFFF;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.ob-assess-card.is-weak {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.ob-conf-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.ob-conf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.ob-conf-btn:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
  color: #003398;
}

.ob-conf-btn.active {
  border-color: #003398;
  background: #003398;
  color: #FFFFFF;
  box-shadow: 0 4px 10px -4px rgba(0, 51, 152, 0.55);
}

@media (max-width: 680px) {
  .ob-card-shell {
    padding: 1.65rem 1.25rem;
  }
  .ob-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================================================
   Sleek Technological Global Hero Section (Oasis Divine Academy Navy & Gold)
   ============================================================================ */
.oasis-tech-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 60% at 82% 18%, rgba(30, 91, 216, 0.36) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 12% 90%, rgba(249, 154, 0, 0.2) 0%, transparent 60%),
    linear-gradient(155deg, #000F2E 0%, #001F5C 48%, #002C82 100%);
  color: #FFFFFF;
  padding: 4.25rem 0 3.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.oasis-tech-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 35%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 35%, #000 45%, transparent 100%);
  pointer-events: none;
}

.oasis-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 3rem;
  align-items: center;
}

.oasis-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #FDE68A;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(10px);
}

.oasis-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
  flex-shrink: 0;
}

.oasis-hero-title {
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.oasis-hero-title .hero-gold-accent {
  background: linear-gradient(95deg, #FBBF24 0%, #F99A00 55%, #FDE68A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.oasis-hero-sub {
  font-size: 1.04rem;
  color: #CBD5E1;
  line-height: 1.72;
  max-width: 560px;
  margin-bottom: 1.9rem;
}

.oasis-hero-sub strong {
  color: #FFFFFF;
  font-weight: 600;
}

.oasis-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.65rem;
}

.oasis-hero-btn-primary {
  background: linear-gradient(135deg, #F99A00 0%, #EA580C 100%);
  color: #FFFFFF;
  padding: 0.92rem 1.7rem;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 12px 28px -8px rgba(249, 154, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.oasis-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(249, 154, 0, 0.68);
  color: #FFFFFF;
}

.oasis-hero-btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 0.92rem 1.45rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.oasis-hero-btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.oasis-hero-btn-ghost {
  background: transparent;
  color: #E2E8F0;
  padding: 0.92rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.oasis-hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}

.oasis-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  font-size: 0.82rem;
  color: #94A3B8;
  font-weight: 500;
}

.oasis-hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.oasis-hero-trust-row strong {
  color: #6EE7B7;
}

/* Right-Side Tech Console Preview Card */
.oasis-console-card {
  background: linear-gradient(165deg, rgba(10, 27, 66, 0.92) 0%, rgba(2, 14, 41, 0.96) 100%);
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow:
    0 28px 65px -20px rgba(0, 6, 24, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.oasis-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #93C5FD;
  text-transform: uppercase;
}

.oasis-console-dots {
  display: inline-flex;
  gap: 6px;
}

.oasis-console-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.oasis-console-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.oasis-console-track {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.oasis-console-track.is-active {
  background: linear-gradient(135deg, #1E5BD8, #003398);
  border-color: rgba(147, 197, 253, 0.55);
  color: #FFFFFF;
}

.oasis-console-telemetry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.oasis-tel-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.oasis-tel-val {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}

.oasis-tel-val.gold {
  color: #FBBF24;
}

.oasis-tel-lbl {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 0.2rem;
}

.oasis-console-live-panel {
  background: rgba(0, 51, 152, 0.26);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.oasis-console-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin: 0.55rem 0 0.7rem;
}

.oasis-console-progress > span {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38BDF8 0%, #FBBF24 100%);
}

@media (max-width: 980px) {
  .oasis-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .oasis-tech-hero {
    padding: 3rem 0 2.75rem;
  }
}

/* ============================================================================
   Authentication & Registration Layout (Sleek Technological Institutional UI)
   ============================================================================ */
.auth-split-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(400px, 46%) 1fr;
  background: #F4F7FC;
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 55% at 15% 12%, rgba(249, 154, 0, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 85%, rgba(37, 99, 235, 0.34) 0%, transparent 58%),
    linear-gradient(155deg, #000E2B 0%, #001F5C 52%, #002D85 100%);
  color: #FFFFFF;
  padding: 2.5rem 2.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  border-right: 1px solid rgba(147, 197, 253, 0.14);
}

.auth-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 90% 85% at 45% 40%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 45% 40%, #000 50%, transparent 100%);
  pointer-events: none;
}

.auth-showcase-watermark {
  position: absolute;
  right: -52px;
  bottom: -52px;
  width: 290px;
  height: 290px;
  opacity: 0.07;
  object-fit: contain;
  pointer-events: none;
}

.auth-showcase-top,
.auth-showcase-body,
.auth-showcase-footer {
  position: relative;
  z-index: 2;
}

.auth-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-crest-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.5rem 1rem;
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(0, 10, 36, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-crest-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 10, 36, 0.42);
}

.auth-crest-pill img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.auth-crest-divider {
  width: 1px;
  height: 22px;
  background: #CBD5E1;
}

.auth-crest-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #002773;
}

.auth-sys-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(147, 197, 253, 0.22);
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
}

.auth-open-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249, 154, 0, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #FDE68A;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.auth-showcase-headline {
  font-size: clamp(1.95rem, 2.75vw, 2.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 0.95rem;
}

.auth-showcase-headline span {
  background: linear-gradient(95deg, #FBBF24 0%, #F99A00 60%, #FDE68A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-showcase-copy {
  color: #CBD5E1;
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 455px;
  margin-bottom: 1.75rem;
}

.auth-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.auth-metric-glass {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.auth-metric-glass:hover {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.auth-metric-val {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.auth-metric-lbl {
  font-size: 0.74rem;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 0.22rem;
}

.auth-exam-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.auth-exam-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(30, 91, 216, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 0.3rem 0.74rem;
  border-radius: 999px;
}

.auth-showcase-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.76rem;
  color: #94A3B8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 12%, rgba(0, 51, 152, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 12% 88%, rgba(249, 154, 0, 0.07) 0%, transparent 45%),
    #F6F9FE;
}

.auth-form-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.25rem;
  gap: 1rem;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

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

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.42rem 0.8rem;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.auth-back-link:hover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: var(--primary-900);
}

.auth-switch-prompt {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-form-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem 2.75rem;
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 20px;
  box-shadow: 0 24px 60px -22px rgba(0, 39, 115, 0.16), 0 6px 18px -6px rgba(15, 23, 42, 0.05);
  padding: 2.35rem 2.45rem 2.15rem;
  backdrop-filter: blur(12px);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #002773 0%, #1E5BD8 62%, #F99A00 100%);
}

.auth-card--narrow {
  max-width: 455px;
}

.auth-card--gold::before {
  background: linear-gradient(90deg, #F99A00 0%, #EA580C 55%, #003398 100%);
}

.auth-card--navy::before {
  background: linear-gradient(90deg, #002773 0%, #1E5BD8 62%, #F99A00 100%);
}

.auth-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: #F1F5F9;
  padding: 0.32rem;
  border-radius: 12px;
  margin-bottom: 1.65rem;
}

.auth-role-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  transition: all 0.18s ease;
}

.auth-role-tab:hover {
  color: var(--primary-900);
}

.auth-role-tab.active {
  background: #FFFFFF;
  color: var(--primary-900);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-header {
  margin-bottom: 1.55rem;
}

.auth-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary-700);
  margin-bottom: 0.4rem;
}

.auth-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: #64748B;
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-field {
  margin-bottom: 1.1rem;
}

.auth-label {
  display: block;
  font-weight: 600;
  font-size: 0.83rem;
  color: #1E293B;
  margin-bottom: 0.42rem;
}

.auth-input,
.auth-select {
  width: 100%;
  padding: 0.76rem 0.98rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.94rem;
  font-family: inherit;
  color: #0F172A;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input::placeholder {
  color: #94A3B8;
}

.auth-input:focus-visible,
.auth-select:focus-visible {
  outline: none;
  border-color: var(--primary-800);
  box-shadow: 0 0 0 3.5px rgba(0, 51, 152, 0.13);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .auth-input {
  padding-right: 3rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: #EFF6FF;
  color: var(--primary-800);
  outline: none;
}

.auth-strength-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 0.45rem;
}

.auth-strength-seg {
  height: 4px;
  border-radius: 99px;
  background: #E2E8F0;
  transition: background 0.2s ease;
}

.auth-strength-text {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 0.25rem;
}

.auth-track-hint {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.97rem;
  font-weight: 700;
  border-radius: 11px;
  letter-spacing: 0.01em;
}

.auth-footer-note {
  margin-top: 1.45rem;
  padding-top: 1.2rem;
  border-top: 1px solid #E2E8F0;
  text-align: center;
  font-size: 0.87rem;
  color: #64748B;
}

/* 6-Digit Email Verification OTP Step */
.auth-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-800);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.auth-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.25rem 0 1.15rem;
}

.auth-otp-digit {
  width: 100%;
  height: 54px;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Outfit', 'Inter', monospace;
  color: #002773;
  background: #F8FAFC;
  border: 2px solid #CBD5E1;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-otp-digit:focus-visible {
  outline: none;
  background: #FFFFFF;
  border-color: var(--primary-800);
  box-shadow: 0 0 0 3.5px rgba(0, 51, 152, 0.14);
}

.auth-otp-digit.filled {
  background: #FFFFFF;
  border-color: #1D4ED8;
}

.auth-otp-preview-box {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  color: #92400E;
  line-height: 1.55;
}

.nav-brand-divider {
  width: 1px;
  height: 26px;
  background: var(--border-dark);
}

.nav-brand-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary-800);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
}

@media (max-width: 960px) {
  .auth-split-shell {
    grid-template-columns: 1fr;
  }
  .auth-showcase {
    display: none;
  }
  .auth-mobile-brand {
    display: inline-flex;
  }
  .auth-form-topbar {
    padding: 1rem 1.25rem;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
  }
  .auth-form-body {
    padding: 1.75rem 1rem 2.5rem;
  }
}

@media (max-width: 600px) {
  .auth-card {
    padding: 1.65rem 1.25rem;
    border-radius: 14px;
  }
  .auth-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-switch-prompt span {
    display: none;
  }
}

/* ============================================================================
   Independent Self-Study Learning Materials Textbook Hub
   ============================================================================ */
.lm-subject-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.25rem 0 0.5rem;
  margin-bottom: 1.25rem;
}

.lm-subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lm-subject-pill:hover {
  border-color: var(--primary-700);
  color: var(--primary-900);
  background: #EFF6FF;
}

.lm-subject-pill.active {
  background: var(--primary-900);
  border-color: var(--primary-900);
  color: #FFFFFF;
  box-shadow: 0 6px 16px -6px rgba(0, 39, 115, 0.45);
}

.lm-subject-pill .lm-pill-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.48rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
}

.lm-subject-pill.active .lm-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #FDE68A;
}

.lm-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.lm-chapter-rail {
  position: sticky;
  top: 86px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.lm-chapter-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 11px;
  border: 1.5px solid transparent;
  background: #F8FAFC;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lm-chapter-item:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.lm-chapter-item.active {
  background: #EFF6FF;
  border-color: var(--primary-800);
  box-shadow: 0 4px 12px -4px rgba(0, 51, 152, 0.18);
}

.lm-chapter-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #E2E8F0;
  color: #1E293B;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.lm-chapter-item.active .lm-chapter-num {
  background: var(--primary-800);
  color: #FFFFFF;
}

.lm-chapter-item.completed .lm-chapter-num {
  background: #10B981;
  color: #FFFFFF;
}

.lm-reader-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 2.35rem 2.6rem;
  box-shadow: var(--shadow-sm);
}

.lm-prose {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #1E293B;
}

.lm-prose h3.lm-subhead {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  margin: 1.65rem 0 0.65rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--gold-500);
  line-height: 1.35;
}

.lm-prose p {
  margin-bottom: 0.85rem;
}

.lm-prose ul {
  margin: 0.5rem 0 1rem 1.35rem;
  padding: 0;
}

.lm-prose li {
  margin-bottom: 0.42rem;
}

.lm-prose pre.lm-ascii {
  background: #0F172A;
  color: #E2E8F0;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: 0.85rem 0 1.1rem;
}

.lm-formulas-card {
  background: linear-gradient(135deg, #001B4D 0%, #002D82 100%);
  color: #F8FAFC;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.85rem;
  border-left: 5px solid #F59E0B;
}

.lm-formulas-card h3 {
  color: #FDE68A;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.lm-formulas-body {
  font-size: 0.93rem;
  line-height: 1.8;
  white-space: pre-line;
  color: #E2E8F0;
}

.lm-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.lm-glossary-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  padding: 0.95rem 1.1rem;
}

.lm-selfcheck-card {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.1rem;
}

.lm-sc-opt {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.95rem;
  border-radius: 9px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: all 0.15s ease;
}

.lm-sc-opt:hover {
  border-color: var(--primary-700);
  background: #EFF6FF;
}

.lm-sc-opt.sc-correct {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
  font-weight: 700;
}

.lm-sc-opt.sc-wrong {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #991B1B;
}

.lm-sc-details {
  margin-top: 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
}

.lm-sc-details summary {
  font-weight: 700;
  color: var(--primary-800);
  cursor: pointer;
}

@media (max-width: 960px) {
  .lm-layout {
    grid-template-columns: 1fr;
  }
  .lm-chapter-rail {
    position: static;
  }
  .lm-reader-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ==============================================================
   OASIS 3.0 SMARTPHONE-FIRST RESPONSIVE OPTIMIZATIONS & HELPERS
   ============================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.sidebar-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  font-size: 1.15rem;
  line-height: 1;
}

.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 95;
}

.sidebar-backdrop.open {
  display: block;
}

/* Performance Analytics Responsive Layout */
.oasis-perf-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.oasis-perf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Flashcards Responsive Grids */
.oasis-leitner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.oasis-rating-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.flashcard-stage-card {
  min-height: 240px;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 26, 78, 0.14);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.flashcard-stage-card:active {
  transform: scale(0.99);
}

.cbt-sticky-header {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: sticky;
  top: 66px;
  z-index: 80;
  box-shadow: var(--shadow-md);
}

/* Prevent horizontal overflow inside flex/grid cards everywhere */
.card, .page-body, .main-content {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .sidebar {
    z-index: 120;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }
  .sidebar-toggle-btn {
    display: inline-flex !important;
  }
  .sidebar-close-btn {
    display: inline-flex;
  }
  .oasis-perf-grid {
    grid-template-columns: 1fr;
  }
  .oasis-perf-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-bar {
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
  }
  .page-body {
    padding: 1.1rem 0.95rem;
  }
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  h1, .portal-page-title {
    font-size: 1.45rem !important;
    line-height: 1.25;
  }
  h2 {
    font-size: 1.32rem !important;
    line-height: 1.28;
  }
  h3 {
    font-size: 1.12rem !important;
  }
  .page-body {
    padding: 0.85rem 0.75rem 4.5rem;
  }
  .card {
    padding: 1rem !important;
    border-radius: 12px;
  }
  .top-bar {
    padding: 0.55rem 0.75rem;
  }
  .topbar-track-label,
  .topbar-access-badge {
    display: none !important;
  }
  .topbar-track-name {
    font-size: 0.82rem !important;
    max-width: 145px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-right {
    gap: 0.35rem !important;
  }
  .topbar-right .btn-sm {
    padding: 0.38rem 0.6rem;
    font-size: 0.78rem;
  }
  .topbar-right .badge {
    font-size: 0.74rem !important;
    padding: 0.32rem 0.55rem !important;
  }
  .btn, .btn-sm, .btn-lg {
    min-height: 40px;
  }
  .btn-lg {
    padding: 0.75rem 1.15rem;
    font-size: 0.95rem;
  }
  .modal-overlay {
    padding: 0.5rem;
  }
  .modal-content {
    max-width: 96vw !important;
    padding: 1.1rem !important;
    max-height: 90dvh;
    border-radius: 14px;
  }
  .oasis-leitner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oasis-leitner-grid > :last-child {
    grid-column: span 2;
  }
  .oasis-rating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flashcard-stage-card {
    min-height: 215px;
    padding: 1.25rem 1rem;
  }
  .cbt-sticky-header {
    position: static;
    padding: 0.85rem;
  }
  .cbt-timer {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }
  .study-question-box {
    padding: 1.1rem;
  }
  .study-option-card, .cbt-option-card {
    padding: 0.85rem 0.9rem;
    gap: 0.7rem;
    font-size: 0.94rem;
  }
  .palette-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .palette-btn {
    height: 38px;
    font-size: 0.82rem;
  }
  .jamb-calc-container {
    right: 10px;
    bottom: 10px;
    width: min(290px, calc(100vw - 20px));
  }
  #toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .toast {
    min-width: 0;
    width: 100%;
    font-size: 0.84rem;
  }
  /* Collapse legacy desktop-only inline grids cleanly on smartphones */
  .grid[style*="1fr 2fr"],
  .grid[style*="1fr 1fr"],
  .grid[style*="repeat(3, 1fr)"],
  .grid[style*="repeat(4, 1fr)"],
  .grid[style*="minmax(340px"],
  .grid[style*="minmax(320px"],
  .grid[style*="minmax(300px"],
  .grid[style*="minmax(280px"],
  .grid[style*="minmax(270px"],
  .grid[style*="minmax(260px"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .navbar .container {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .oral-topic-selector {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}
