/* ==========================================================================
   SuperTET.com - CBT Online Examination System Stylesheet
   Specialized for 2019 ATR / 69,000 Assistant Teacher Practice Interface
   Production-Grade, Fully Responsive, Cross-Browser Verified
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BREADCRUMBS (Bulletproof Navigation Bar & Fallback Rules)
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
  background-color: var(--bg-warm-subtle, #fefaf6);
  border-bottom: 1px solid #fed7aa;
  padding: 10px 0;
  font-size: 0.84rem;
  width: 100%;
}

.breadcrumb-list,
ol.breadcrumb,
ul.breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
}

.breadcrumb-item,
ol.breadcrumb li,
ul.breadcrumb li {
  display: inline-flex !important;
  align-items: center !important;
  list-style: none !important;
  color: var(--text-muted, #64748b);
  font-size: 0.84rem;
  margin: 0 !important;
  padding: 0 !important;
}

.breadcrumb-item a,
.breadcrumb-link,
ol.breadcrumb li a,
ul.breadcrumb li a {
  color: var(--color-orange-dark, #c2410c);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.breadcrumb-item a:hover,
.breadcrumb-link:hover,
ol.breadcrumb li a:hover,
ul.breadcrumb li a:hover {
  color: var(--color-orange-main, #ea580c);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb-separator {
  color: #f97316;
  font-size: 0.78rem;
  user-select: none;
  display: inline-block;
  margin: 0 2px;
}

ol.breadcrumb li + li::before,
ul.breadcrumb li + li::before {
  content: "/";
  padding-right: 8px;
  color: #f97316;
  user-select: none;
}

.breadcrumb-current,
.breadcrumb-item[aria-current="page"],
ol.breadcrumb li[aria-current="page"],
ul.breadcrumb li[aria-current="page"] {
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

/* --------------------------------------------------------------------------
   2. HISTORICAL NOTICE BANNER
   -------------------------------------------------------------------------- */
.cbt-historical-alert {
  background: linear-gradient(135deg, #fffaf0 0%, #fff7ed 50%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-left: 5px solid #ea580c;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

@media (max-width: 640px) {
  .cbt-historical-alert {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }
}

.cbt-historical-alert .alert-badge {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.25);
}

.cbt-historical-alert .alert-text {
  font-size: 0.90rem;
  color: #7c2d12;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.cbt-historical-alert .alert-text strong {
  color: #431407;
  font-weight: 700;
}

.cbt-historical-alert .alert-text a {
  color: #c2410c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cbt-historical-alert .alert-text a:hover {
  color: #ea580c;
}

/* --------------------------------------------------------------------------
   3. EXAM START SCREEN (INSTRUCTIONS & MODE SELECTOR)
   -------------------------------------------------------------------------- */
.cbt-start-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 43, 72, 0.07), 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: clamp(20px, 3.5vw, 36px);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.cbt-start-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #fed7aa 100%);
}

.cbt-start-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 26px;
}

.cbt-start-header h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: #0f2b48;
  margin: 0 0 6px 0;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.cbt-start-header .exam-sub {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Exam Metadata Grid */
.cbt-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.cbt-meta-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.cbt-meta-box:hover {
  border-color: #fdba74;
  background: #fffaf5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.cbt-meta-box .meta-val {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 900;
  color: #ea580c;
  display: block;
  margin-bottom: 4px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cbt-meta-box .meta-lbl {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mode Selection Cards */
.cbt-mode-selection {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 28px;
}

.cbt-mode-selection h3 {
  font-size: 1.1rem;
  color: #0f2b48;
  margin: 0 0 14px 0;
  font-weight: 800;
}

.cbt-mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .cbt-mode-options { grid-template-columns: 1fr; }
}

.cbt-mode-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cbt-mode-label:hover {
  border-color: #fdba74;
  background: #fffaf5;
}

.cbt-mode-label.active {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.cbt-mode-label input[type="radio"] {
  margin-top: 4px;
  accent-color: #ea580c;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cbt-mode-info .mode-title {
  font-weight: 800;
  color: #1e293b;
  font-size: 0.98rem;
  display: block;
  margin-bottom: 4px;
}

.cbt-mode-info .mode-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Section Dropdown in Mode Selector */
.cbt-section-pick-wrapper {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

.cbt-section-pick-wrapper select {
  width: 100%;
  max-width: 520px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.92rem;
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
}

.cbt-section-pick-wrapper select:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* Instructions List */
.cbt-instructions {
  margin-bottom: 30px;
}

.cbt-instructions h3 {
  font-size: 1.1rem;
  color: #0f2b48;
  margin: 0 0 14px 0;
  font-weight: 800;
}

.cbt-instructions ul {
  margin: 0;
  padding-left: 20px;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.65;
}

.cbt-instructions li {
  margin-bottom: 10px;
}

.cbt-instructions li strong {
  color: #1e293b;
}

/* Big Start Button */
.cbt-start-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  color: #ffffff;
  border: 1px solid #ea580c;
  border-radius: 10px;
  padding: 16px 40px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cbt-start-btn:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.45);
}

/* --------------------------------------------------------------------------
   4. LIVE EXAM INTERFACE (CBT WORKSPACE)
   -------------------------------------------------------------------------- */
.cbt-exam-workspace {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 43, 72, 0.08);
  overflow: hidden;
  margin-bottom: 36px;
}

/* Workspace Top Bar */
.cbt-top-bar {
  background: #0f2b48;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 3px solid #ea580c;
}

.cbt-exam-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cbt-exam-title-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.cbt-booklet-badge {
  background: rgba(234, 88, 12, 0.3);
  border: 1px solid #ea580c;
  color: #fed7aa;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Real Countdown Timer Box */
.cbt-timer-box {
  background: #091a2c;
  border: 1.5px solid #1e3a5f;
  border-radius: 8px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cbt-timer-box .timer-icon {
  font-size: 1rem;
  color: #fed7aa;
}

.cbt-timer-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.cbt-timer-box.timer-warning {
  border-color: #f59e0b;
  background: #451a03;
}
.cbt-timer-box.timer-warning .cbt-timer-display {
  color: #fbbf24;
}

.cbt-timer-box.timer-danger {
  border-color: #ef4444;
  background: #7f1d1d;
  animation: pulse-timer-danger 1.5s infinite;
}
.cbt-timer-box.timer-danger .cbt-timer-display {
  color: #fecaca;
}

@keyframes pulse-timer-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Section Navigation Strip */
.cbt-section-strip {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.cbt-section-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.cbt-section-tab:hover {
  border-color: #94a3b8;
  color: #0f2b48;
  background: #f8fafc;
}

.cbt-section-tab.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.cbt-sec-progress-pill {
  background: rgba(15, 23, 42, 0.08);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.cbt-section-tab.active .cbt-sec-progress-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Stage Split: Question Canvas vs Palette */
.cbt-stage-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 560px;
}

@media (max-width: 991px) {
  .cbt-stage-grid {
    grid-template-columns: 1fr;
  }
}

/* Left/Center: Question Canvas */
.cbt-question-canvas {
  padding: clamp(16px, 3vw, 28px);
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 991px) {
  .cbt-question-canvas {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
}

/* Question Header */
.cbt-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cbt-q-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cbt-q-badge {
  background: #0f2b48;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.cbt-q-sec-name {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 700;
}

.cbt-q-marks-info {
  font-size: 0.82rem;
  color: #16a34a;
  font-weight: 800;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

/* Reading Comprehension Passage Container */
.cbt-passage-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.05);
}

.cbt-passage-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.cbt-passage-direction {
  font-size: 0.88rem;
  color: #92400e;
  font-weight: 700;
  margin-bottom: 10px;
}

.cbt-passage-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #1e293b;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #fef3c7;
}

/* Question Text */
.cbt-q-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.65;
  color: #0f172a;
  margin-bottom: 24px;
}

/* SVG Geometry Diagram */
.exam-geom-svg {
  display: block;
  margin: 14px auto 20px auto;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  max-width: 320px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Question Options */
.cbt-options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.cbt-option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.cbt-option-item:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateX(2px);
}

.cbt-option-item.selected {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.cbt-option-item input[type="radio"] {
  margin-top: 3px;
  accent-color: #2563eb;
  width: 18px;
  height: 18px;
}

.cbt-opt-idx-badge {
  background: #e2e8f0;
  color: #334155;
  font-weight: 800;
  font-size: 0.82rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.cbt-option-item.selected .cbt-opt-idx-badge {
  background: #2563eb;
  color: #ffffff;
}

.cbt-opt-text {
  font-size: 1.02rem;
  line-height: 1.55;
  color: #1e293b;
  flex: 1;
}

/* Bottom Action Bar */
.cbt-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.cbt-action-left,
.cbt-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cbt-btn {
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1.25;
}

.cbt-btn-prev {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}
.cbt-btn-prev:hover { background: #f1f5f9; border-color: #94a3b8; }

.cbt-btn-next {
  background: #0f2b48;
  color: #ffffff;
}
.cbt-btn-next:hover { background: #1b426d; transform: translateY(-1px); }

.cbt-btn-mark {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #7e22ce;
}
.cbt-btn-mark:hover { background: #e9d5ff; }

.cbt-btn-clear {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.cbt-btn-clear:hover { background: #fecaca; }

.cbt-btn-submit-main {
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.cbt-btn-submit-main:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* Right Sidebar: Question Palette */
.cbt-palette-sidebar {
  background: #f8fafc;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.cbt-palette-header {
  margin-bottom: 14px;
}

.cbt-palette-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f2b48;
  margin: 0 0 4px 0;
}

.cbt-palette-summary {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  font-weight: 600;
}

/* Palette Bubbles Grid */
.cbt-bubbles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.cbt-bubble {
  height: 38px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.12s ease;
  user-select: none;
}

.cbt-bubble:hover {
  border-color: #64748b;
  transform: translateY(-1px);
}

/* 5 Visual Palette States */
.cbt-bubble.state-unattempted {
  background: #ffffff;
  color: #475569;
  border-color: #cbd5e1;
}

.cbt-bubble.state-answered {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
}

.cbt-bubble.state-marked {
  background: #9333ea;
  color: #ffffff;
  border-color: #7e22ce;
}

.cbt-bubble.state-marked-answered {
  background: #9333ea;
  color: #ffffff;
  border-color: #7e22ce;
}
.cbt-bubble.state-marked-answered::after {
  content: "";
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
}

.cbt-bubble.state-current {
  box-shadow: 0 0 0 3px #2563eb;
  font-weight: 900;
}

/* Palette Legend */
.cbt-palette-legend {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.76rem;
  color: #475569;
}

.cbt-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cbt-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.cbt-legend-dot.leg-ans { background: #16a34a; border-color: #15803d; }
.cbt-legend-dot.leg-unans { background: #ffffff; border-color: #cbd5e1; }
.cbt-legend-dot.leg-mark { background: #9333ea; border-color: #7e22ce; }
.cbt-legend-dot.leg-mark-ans {
  background: #9333ea;
  border-color: #7e22ce;
  position: relative;
}
.cbt-legend-dot.leg-mark-ans::after {
  content: "";
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 4px;
  height: 4px;
  background: #22c55e;
  border-radius: 50%;
}
.cbt-legend-dot.leg-curr { background: #ffffff; border: 2px solid #2563eb; }

/* --------------------------------------------------------------------------
   5. CONFIRMATION MODAL
   -------------------------------------------------------------------------- */
.cbt-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.cbt-modal-box {
  background: #ffffff;
  border-radius: 14px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 30px;
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.cbt-modal-title {
  font-size: 1.35rem;
  color: #0f2b48;
  margin: 0 0 8px 0;
  font-weight: 800;
}

.cbt-modal-desc {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 22px;
  line-height: 1.55;
}

.cbt-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 26px;
}

.cbt-summary-num {
  font-size: 1.5rem;
  font-weight: 900;
  display: block;
}

.cbt-summary-lbl {
  font-size: 0.74rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cbt-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   6. RESULT SCREEN & DASHBOARD (PREMIUM OVERHAUL)
   -------------------------------------------------------------------------- */
.cbt-result-dashboard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(20px, 3.8vw, 36px);
  box-shadow: 0 4px 24px rgba(15, 43, 72, 0.08);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.cbt-result-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7 0%, #16a34a 50%, #ea580c 100%);
}

/* Result Top Bar / Action Ribbon */
.cbt-result-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.cbt-result-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cbt-res-badge-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
}

.cbt-badge-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.cbt-badge-info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.cbt-result-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cbt-btn-retake-primary {
  background: #0f2b48;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 6px;
}
.cbt-btn-retake-primary:hover {
  background: #1b426d;
  transform: translateY(-1px);
}

.cbt-btn-download-top {
  background: #ea580c;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 6px;
}
.cbt-btn-download-top:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

/* Result Hero Score Display */
.cbt-result-hero {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 30px;
}

.cbt-score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #091a2c 0%, #0f2b48 40%, #1e40af 100%);
  color: #ffffff;
  margin: 0 auto 18px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15, 43, 72, 0.28), inset 0 2px 6px rgba(255, 255, 255, 0.2);
  border: 4px solid #ffffff;
  outline: 2px solid #93c5fd;
}

.cbt-score-big {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cbt-score-total {
  font-size: 0.86rem;
  color: #93c5fd;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 5px;
}

.cbt-result-headline {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  color: #0f2b48;
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.cbt-result-meta {
  color: #64748b;
  font-size: 0.98rem;
  margin: 0;
}

/* 7 Summary Stat Cards */
.cbt-stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.cbt-stat-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.18s ease;
}

.cbt-stat-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.cbt-stat-card .sc-num {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 900;
  display: block;
  margin-bottom: 4px;
  line-height: 1.15;
}

.cbt-stat-card .sc-lbl {
  font-size: 0.74rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Section Breakdown Table */
.cbt-section-table-wrap {
  margin-bottom: 36px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cbt-sec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 620px;
}

.cbt-sec-table th {
  background: #0f2b48;
  color: #ffffff;
  text-align: left;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cbt-sec-table th:last-child { border-right: none; }

.cbt-sec-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: #334155;
}

.cbt-sec-table td:last-child { border-right: none; }

.cbt-sec-table tbody tr:hover td {
  background: #f8fafc;
}

/* Review Filters Strip */
.cbt-review-filter-strip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.cbt-filter-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cbt-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cbt-filter-btn:hover {
  background: #f8fafc;
  color: #0f2b48;
}

.cbt-filter-btn.active {
  background: #0f2b48;
  color: #ffffff;
  border-color: #0f2b48;
  box-shadow: 0 2px 6px rgba(15, 43, 72, 0.2);
}

/* Question Review Cards */
.cbt-review-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cbt-review-card.status-correct { border-left: 6px solid #16a34a; }
.cbt-review-card.status-incorrect { border-left: 6px solid #dc2626; }
.cbt-review-card.status-unattempted { border-left: 6px solid #94a3b8; }

.cbt-rev-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.cbt-rev-status-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-correct .cbt-rev-status-pill { background: #dcfce7; color: #15803d; }
.status-incorrect .cbt-rev-status-pill { background: #fee2e2; color: #b91c1c; }
.status-unattempted .cbt-rev-status-pill { background: #f1f5f9; color: #475569; }

.cbt-rev-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.96rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.cbt-rev-opt.opt-correct {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
  font-weight: 700;
}

.cbt-rev-opt.opt-user-wrong {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  font-weight: 700;
}

.cbt-explanation-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}
.cbt-explanation-box strong { color: #0f2b48; }

/* --------------------------------------------------------------------------
   7. ORIGINAL PAPER PREVIEWS GALLERY
   -------------------------------------------------------------------------- */
.cbt-pdf-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.cbt-preview-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  text-align: center;
}

.cbt-preview-card:hover {
  transform: translateY(-3px);
  border-color: #fdba74;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.12);
}

.cbt-preview-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid #e2e8f0;
  display: block;
}

.cbt-preview-caption {
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
}

/* --------------------------------------------------------------------------
   8. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.cbt-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f2b48;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.3);
  font-size: 0.92rem;
  font-weight: 700;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.25s ease-out;
  border-left: 4px solid #ea580c;
}

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
