/* Quizzalo CSS Module: 03_cbt_mock_portal.css - Real Exam CBT Simulator, Palette, Mock Hub & Exam Intelligence Portal */

/* ==========================================================================
   REAL EXAM CBT SIMULATOR & MOCK TEST ARENA STYLES
   ========================================================================== */

/* Full Viewport CBT Exam Layout */
.cbt-console-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: #0b1120;
  color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.cbt-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem;
  background: #0f172a;
  border-bottom: 2px solid #ca8a04;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  gap: 1rem;
}

.cbt-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cbt-exam-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cbt-brand-icon {
  font-size: 1.8rem;
  background: rgba(202, 138, 4, 0.2);
  border: 1px solid #ca8a04;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
}

.cbt-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.cbt-header-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.cbt-header-center {
  display: flex;
  align-items: center;
}

.cbt-timer-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid #38bdf8;
  border-radius: 10px;
  padding: 0.35rem 1rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.cbt-timer-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.cbt-timer-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
}

.cbt-timer-mob {
  display: none !important;
}

.cbt-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cbt-lang-btn, .cbt-fs-btn {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}

.cbt-candidate-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(202, 138, 4, 0.4);
  border-radius: 24px;
  padding: 0.25rem 0.85rem 0.25rem 0.35rem;
}

.cbt-candidate-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ca8a04, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1.5px solid #ffffff;
  overflow: hidden;
}

.cbt-candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.cbt-candidate-details {
  display: flex;
  flex-direction: column;
}

.cbt-candidate-details .cbt-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fef08a;
  line-height: 1.2;
}

.cbt-candidate-details .cbt-roll {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* Section Selector Bar */
.cbt-sec-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 1.5rem;
  flex-shrink: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.cbt-sec-bar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.cbt-sec-title-mob {
  display: none;
}

.cbt-sec-title-desk {
  display: inline;
}

.cbt-q-num-mob {
  display: none;
}

.cbt-q-num-desk {
  display: inline;
}

.cbt-sec-bar-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ca8a04;
  letter-spacing: 0.5px;
}

.cbt-sec-tabs {
  display: flex;
  gap: 0.5rem;
}

.cbt-sec-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cbt-sec-tab:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: #ca8a04;
}

.cbt-sec-tab.active {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.25) 0%, rgba(202, 138, 4, 0.1) 100%);
  border-color: #ca8a04;
  color: #fef08a;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(202, 138, 4, 0.2);
}

.cbt-sec-tag {
  background: rgba(202, 138, 4, 0.2);
  color: #fef08a;
  border: 1px solid rgba(202, 138, 4, 0.4);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cbt-sec-count {
  font-size: 0.75rem;
  color: #94a3b8;
}

.cbt-sec-desk-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cbt-sec-mob-wrap {
  display: none !important;
}

/* Main 2-Column Grid (fills remaining viewport height) */
.cbt-exam-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 110px);
  overflow: hidden;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cbt-exam-grid {
    grid-template-columns: 1fr 280px;
    height: calc(100vh - 110px);
    overflow: hidden;
  }
}

/* Question Canvas (Left Column) */
.cbt-question-canvas {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.cbt-q-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.5rem;
  flex-shrink: 0;
  background: #0f172a;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cbt-q-number-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cbt-q-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.cbt-q-sec {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.cbt-q-marking-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.82rem;
}

.cbt-mark-tag {
  color: #94a3b8;
}

.cbt-mark-val {
  font-weight: 800;
}

/* Scrollable question and options area */
.cbt-q-scrollable-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cbt-q-statement-wrap {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cbt-q-statement {
  font-size: 1.12rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.7;
}

/* Options */
.cbt-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cbt-option-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cbt-option-row:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: #ca8a04;
}

.cbt-option-row.selected {
  background: linear-gradient(90deg, rgba(202, 138, 4, 0.2) 0%, rgba(30, 41, 59, 0.8) 100%);
  border-color: #ca8a04;
  box-shadow: 0 0 12px rgba(202, 138, 4, 0.25);
}

.cbt-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.cbt-radio-circle.checked {
  border-color: #ca8a04;
}

.cbt-radio-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ca8a04;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s ease;
}

.cbt-radio-circle.checked .cbt-radio-inner {
  opacity: 1;
  transform: scale(1);
}

/* Modern CBT Option Letter Badges & Check Indicators */
.cbt-opt-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fef08a;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.cbt-opt-badge.checked,
.cbt-option-row.selected .cbt-opt-badge {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%) !important;
  color: #0f172a !important;
  border-color: #fef08a !important;
  box-shadow: 0 0 10px rgba(202, 138, 4, 0.4) !important;
}

.cbt-opt-check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.cbt-opt-check-indicator.checked,
.cbt-option-row.selected .cbt-opt-check-indicator {
  display: flex !important;
}

.cbt-opt-letter {
  font-weight: 800;
  font-size: 1rem;
  color: #fef08a;
  min-width: 1.25rem;
}

.cbt-opt-text {
  font-size: 1rem;
  color: #f1f5f9;
  line-height: 1.5;
}

/* Bottom Actions Bar - ALWAYS PINNED / FIXED AT THE BOTTOM */
.cbt-bottom-bar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: space-between;
  background: #0b1120 !important;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1.5rem;
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 50 !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.6);
  gap: 1rem;
}

.cbt-bottom-left, .cbt-bottom-right {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cbt-btn-save {
  font-size: 1rem !important;
  font-weight: 900 !important;
  padding: 0.65rem 2rem !important;
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%) !important;
  color: #0f172a !important;
  border: 1.5px solid #fde047 !important;
  box-shadow: 0 0 15px rgba(202, 138, 4, 0.4) !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
}

.cbt-btn-save:hover {
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%) !important;
  box-shadow: 0 0 20px rgba(202, 138, 4, 0.6) !important;
  transform: translateY(-1px);
}

.cbt-btn-review {
  background: #7c3aed !important;
  color: #ffffff !important;
  border: 1.5px solid #a855f7 !important;
  font-weight: 700 !important;
  padding: 0.65rem 1.25rem !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
}

.cbt-btn-clear {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
  padding: 0.65rem 1.25rem !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Question Palette Sidebar (Right Column) */
.cbt-sidebar-palette {
  background: #0b1120;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cbt-palette-legend-panel {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.cbt-legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.cbt-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cbt-legend-item.full-span {
  grid-column: span 2;
}

.cbt-legend-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  color: #ffffff;
}

.cbt-legend-text {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.2;
}

.cbt-palette-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.cbt-palette-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ca8a04;
  letter-spacing: 0.5px;
}

.cbt-palette-subtitle {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* 90 Question Buttons Grid (Scrolls smoothly inside sidebar) */
.cbt-palette-numbers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.35rem;
  margin-bottom: 0.85rem;
}

.cbt-palette-numbers::-webkit-scrollbar {
  width: 5px;
}

.cbt-palette-numbers::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

.cbt-palette-btn {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  position: relative;
}

.cbt-palette-btn:hover {
  transform: scale(1.08);
  z-index: 2;
}

.cbt-palette-btn.current-active {
  box-shadow: 0 0 0 2.5px #fef08a, 0 0 10px rgba(254, 240, 138, 0.8) !important;
  z-index: 5;
}

/* CBT Standard 5 Status Colors */
.status-not-visited {
  background: #334155 !important;
  color: #e2e8f0 !important;
}

.status-not-answered {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.status-answered {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
}

.status-marked-review {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #8b5cf6 !important;
}

.status-answered-review {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
  position: relative;
}

.status-answered-review::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  border: 1px solid #ffffff;
}

/* Submit Test Footer Pinned at Bottom */
.cbt-palette-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.cbt-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #ef4444 !important;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  letter-spacing: 0.5px;
}

.cbt-btn-submit:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

/* Modals */
.cbt-modal-card {
  background: #0f172a !important;
  border-radius: 16px !important;
  color: #f8fafc !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}

.cbt-stat-pill {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.cbt-stat-pill .label {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.cbt-stat-pill .value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

@keyframes cbtPulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.04); }
}

.cbt-pulse {
  animation: cbtPulseGlow 1s infinite;
}

.cbt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.cbt-modal-backdrop[style*="display: none"],
.cbt-modal-backdrop[style*="display:none"] {
  display: none !important;
  pointer-events: none !important;
}

/* Fix Point 1: CBT Secondary Buttons text visibility (always white & clear) */
.cbt-modal-card .btn-secondary,
.cbt-console-wrapper .btn-secondary,
.cbt-lang-btn,
.cbt-fs-btn,
.cbt-btn-secondary {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.cbt-modal-card .btn-secondary:hover,
.cbt-console-wrapper .btn-secondary:hover,
.cbt-lang-btn:hover,
.cbt-fs-btn:hover,
.cbt-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}

/* Fix Point 2: Sub-label for countdown timer */
.cbt-timer-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fef08a;
  margin-left: 0.4rem;
  letter-spacing: 0;
}

/* Fix Point 3: High-Visibility Navbar CBT Mock Test Badge */
.btn-nav-cbt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: linear-gradient(135deg, #b91c1c 0%, #c2410c 100%);
  color: #ffffff !important;
  border: 1.5px solid #fb923c;
  border-radius: 20px;
  padding: 0.33rem 0.78rem;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-nav-cbt-badge:hover {
  background: linear-gradient(135deg, #991b1b 0%, #ea580c 100%);
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.6);
  transform: translateY(-1px);
}

.btn-nav-cbt-badge.active-portal {
  box-shadow: 0 0 0 2.5px #fef08a, 0 4px 20px rgba(234, 88, 12, 0.8) !important;
  border-color: #fef08a !important;
}

.cbt-badge-pulse {
  background: #22c55e;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  letter-spacing: 0.5px;
  animation: cbtPulseGlow 1.5s infinite;
}

/* Fix Point 4: Full CBT Takeover & hide unrelated website elements */
body.cbt-exam-active {
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

body.cbt-exam-active main.container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

body.cbt-exam-active #view-cbt-mock {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 99999 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #0b1120 !important;
  overflow: hidden !important;
  display: block !important;
}

body.cbt-exam-active #top-multilang-bar,
body.cbt-exam-active .navbar,
body.cbt-exam-active #mobile-bottom-nav,
body.cbt-exam-active #pwa-install-app-banner,
body.cbt-exam-active #sim-push-banner,
body.cbt-exam-active footer.footer,
body.cbt-exam-active #dpdp-consent-banner,
body.cbt-exam-active #quizzalo-cookie-banner,
body.cbt-exam-active .qc-floating-pill,
body.cbt-exam-active .qc-popup-backdrop {
  display: none !important;
}

/* ==========================================================================
   CBT MOBILE ARCHITECTURE: PORTRAIT BOTTOM SHEET & PINNED THUMB-BAR
   ========================================================================== */

/* Desktop defaults (>768px): Hide mobile-only triggers and bottom-sheet controls */
.cbt-mobile-palette-trigger,
.cbt-mobile-submit-trigger,
.cbt-meta-palette-btn,
.cbt-bs-topbar,
.cbt-btn-text-mob,
.cbt-lang-label-mob,
.cbt-palette-backdrop {
  display: none !important;
}

.cbt-btn-text-desk,
.cbt-lang-label-desk {
  display: inline !important;
}

/* Hide Fullscreen button on all mobile and tablet screens to eliminate header overflow */
@media (max-width: 900px) {
  .cbt-console-wrapper .cbt-fs-btn,
  .cbt-console-wrapper button.cbt-fs-btn,
  button.cbt-fs-btn,
  .cbt-console-wrapper .cbt-fs-btn,
  .cbt-console-wrapper button.cbt-fs-btn,
  button.cbt-fs-btn,
  .cbt-fs-btn {
    display: none !important;
  }
}

/* Mobile Screen Layout (<= 768px) */
@media (max-width: 768px) {
  /* Toggle desktop/mobile text */
  .cbt-btn-text-desk,
  .cbt-lang-label-desk,
  .cbt-sec-title-desk,
  .cbt-q-num-desk {
    display: none !important;
  }

  .cbt-btn-text-mob,
  .cbt-lang-label-mob,
  .cbt-sec-title-mob,
  .cbt-q-num-mob {
    display: inline !important;
  }

  /* Full screen CBT mobile container */
  .cbt-console-wrapper {
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Compact sticky top header: Single line, ZERO overflow */
  .cbt-top-header {
    padding: 0.35rem 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
    background: #0b1120 !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    min-height: 48px !important;
  }

  .cbt-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    flex: 0 0 auto !important;
  }

  .cbt-exam-branding {
    display: none !important;
  }

  /* Mobile View: Only Profile Avatar Photo (Name Hidden to Save Space) */
  .cbt-candidate-chip {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cbt-candidate-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%) !important;
    border: 2px solid #fef08a !important;
    box-shadow: 0 0 10px rgba(202, 138, 4, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cbt-candidate-details {
    display: none !important;
  }

  /* Compact Live Timer */
  .cbt-header-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
  }

  .cbt-timer-container {
    padding: 0.24rem 0.55rem !important;
    gap: 0.25rem !important;
    border-radius: 8px !important;
    border-width: 1.5px !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
    background: rgba(15, 23, 42, 0.95) !important;
  }

  .cbt-timer-label,
  .cbt-timer-sub,
  .cbt-timer-desk {
    display: none !important;
  }

  .cbt-timer-mob {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    color: #38bdf8 !important;
    white-space: nowrap !important;
  }

  .cbt-timer-val {
    font-size: 0.84rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  /* Right Header Controls: Palette + En + Submit */
  .cbt-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.22rem !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
  }

  /* Mobile Question Palette Pill Trigger */
  .cbt-mobile-palette-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%) !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    font-size: 0.76rem !important;
    padding: 0.28rem 0.5rem !important;
    border-radius: 8px !important;
    border: 1px solid #fef08a !important;
    cursor: pointer !important;
    box-shadow: 0 0 8px rgba(202, 138, 4, 0.35) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .cbt-mobile-palette-trigger .palette-icon {
    font-size: 0.8rem !important;
    line-height: 1 !important;
  }

  .cbt-lang-btn {
    padding: 0.28rem 0.42rem !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  .cbt-console-wrapper .cbt-fs-btn,
  .cbt-console-wrapper button.cbt-fs-btn,
  button.cbt-fs-btn,
  .cbt-fs-btn {
    display: none !important;
  }

  .cbt-mobile-submit-trigger {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    padding: 0.28rem 0.45rem !important;
    border-radius: 6px !important;
    border: 1px solid #ef4444 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  /* Section Selector Bar on Mobile: 100% Width Equal-Segment Tabs (ZERO Cutting / Zero Overflow) */
  .cbt-sec-desk-wrap {
    display: none !important;
  }

  .cbt-sec-bar {
    padding: 0.25rem 0.35rem !important;
    background: #0f172a !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .cbt-sec-bar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .cbt-sec-bar-label {
    display: none !important;
  }

  .cbt-sec-tabs {
    display: flex !important;
    width: 100% !important;
    gap: 0.25rem !important;
    overflow: hidden !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cbt-sec-tab {
    flex: 1 1 25% !important;
    min-width: 0 !important;
    padding: 0.24rem 0.15rem !important;
    border-radius: 8px !important;
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    overflow: hidden !important;
  }

  .cbt-sec-tab.active {
    background: rgba(202, 138, 4, 0.22) !important;
    border-color: #ca8a04 !important;
    box-shadow: 0 0 10px rgba(202, 138, 4, 0.25) !important;
  }

  .cbt-sec-mob-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0.1rem !important;
  }

  .cbt-sec-top-line {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.22rem !important;
    width: 100% !important;
  }

  .cbt-sec-mob-name {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #cbd5e1 !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
  }

  .cbt-sec-tab.active .cbt-sec-mob-name {
    color: #fef08a !important;
  }

  .cbt-sec-mob-count {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    line-height: 1 !important;
  }

  .cbt-sec-tab.active .cbt-sec-mob-count {
    color: #cbd5e1 !important;
    font-weight: 800 !important;
  }

  .cbt-sec-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    padding: 0.08rem 0.28rem !important;
    border-radius: 4px !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
  }

  .cbt-sec-tag-s1 {
    background: rgba(202, 138, 4, 0.3) !important;
    color: #fef08a !important;
    border: 1px solid rgba(202, 138, 4, 0.6) !important;
  }

  .cbt-sec-tag-s2 {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
  }

  /* Main Examination Grid on Mobile */
  .cbt-exam-grid {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .cbt-question-canvas {
    height: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    border-right: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* Ultra-Compact Question Meta Bar: Saves ~35px Vertical Space */
  .cbt-q-meta-bar {
    padding: 0.35rem 0.75rem !important;
    gap: 0.45rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 34px !important;
    background: rgba(15, 23, 42, 0.8) !important;
  }

  .cbt-q-sec {
    display: none !important; /* Hide redundant session label in meta bar */
  }

  .cbt-mark-tag {
    display: none !important; /* Hide "Marking Scheme:" label */
  }

  .cbt-q-num {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
  }

  .cbt-q-marking-box {
    font-size: 0.74rem !important;
    padding: 0.15rem 0.45rem !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
  }

  /* Center Palette Pill in Mobile Meta Bar */
  .cbt-meta-palette-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.28rem !important;
    background: rgba(30, 41, 59, 0.95) !important;
    color: #fef08a !important;
    border: 1.5px solid rgba(202, 138, 4, 0.6) !important;
    border-radius: 6px !important;
    padding: 0.16rem 0.55rem !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px rgba(202, 138, 4, 0.25) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    transition: all 0.15s ease !important;
  }

  .cbt-meta-palette-btn:active {
    transform: scale(0.96) !important;
    background: rgba(202, 138, 4, 0.25) !important;
  }

  /* Question & Options Scrollable Canvas: Safe Area for Bottom Bar */
  .cbt-q-scrollable-body {
    padding: 0.75rem 0.75rem calc(90px + env(safe-area-inset-bottom, 0px)) 0.75rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    flex: 1 1 auto !important;
  }

  .cbt-q-scrollable-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .cbt-q-statement-wrap {
    padding: 0.85rem 1rem !important;
    margin-bottom: 0.85rem !important;
    border-radius: 12px !important;
    background: rgba(30, 41, 59, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 3.5px solid #ca8a04 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  }

  .cbt-q-statement {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  /* Interactive Option Cards: Testbook-Grade Touch Targets */
  .cbt-options-list {
    gap: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }

  .cbt-option-row {
    padding: 0.8rem 1rem !important;
    min-height: 56px !important;
    border-radius: 12px !important;
    gap: 0.85rem !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(30, 41, 59, 0.45) !important;
    transition: all 0.15s ease !important;
    position: relative !important;
  }

  .cbt-option-row:active {
    transform: scale(0.985) !important;
  }

  .cbt-option-row.selected {
    background: linear-gradient(90deg, rgba(202, 138, 4, 0.22) 0%, rgba(30, 41, 59, 0.85) 100%) !important;
    border-color: #ca8a04 !important;
    box-shadow: 0 0 14px rgba(202, 138, 4, 0.3) !important;
  }

  .cbt-opt-badge {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #fef08a !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
  }

  .cbt-opt-badge.checked,
  .cbt-option-row.selected .cbt-opt-badge {
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%) !important;
    color: #0f172a !important;
    border-color: #fef08a !important;
    box-shadow: 0 0 10px rgba(202, 138, 4, 0.4) !important;
  }

  .cbt-opt-text {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    flex: 1 1 auto !important;
  }

  .cbt-opt-check-indicator {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .cbt-opt-check-indicator.checked,
  .cbt-option-row.selected .cbt-opt-check-indicator {
    display: flex !important;
  }

  /* Fixed Bottom Action Bar: 1-Thumb Reach with iPhone Safe-Area Inset */
  .cbt-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px)) 0.5rem !important;
    background: #0b1120 !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.85) !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
  }

  .cbt-bottom-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    flex: 1 1 50% !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .cbt-bottom-right {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 50% !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .cbt-btn-review {
    padding: 0.55rem 0.35rem !important;
    font-size: 0.76rem !important;
    flex: 1 1 50% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    justify-content: center !important;
    background: rgba(124, 58, 237, 0.22) !important;
    border: 1.5px solid #a855f7 !important;
    color: #f3e8ff !important;
  }

  .cbt-btn-clear {
    padding: 0.55rem 0.35rem !important;
    font-size: 0.76rem !important;
    flex: 1 1 50% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    color: #cbd5e1 !important;
  }

  .cbt-btn-save {
    padding: 0.55rem 0.5rem !important;
    font-size: 0.88rem !important;
    width: 100% !important;
    flex: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%) !important;
    border: 1.5px solid #fef08a !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 14px rgba(202, 138, 4, 0.4) !important;
  }

  /* Slide-Up Bottom Sheet Drawer for Question Palette */
  .cbt-sidebar-palette {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 78vh !important;
    max-height: 78vh !important;
    background: #0f172a !important;
    border-top: 2.5px solid #ca8a04 !important;
    border-left: none !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.95) !important;
    z-index: 1050 !important;
    transform: translateY(105%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0.65rem 0.85rem 1rem 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: visible !important;
  }

  .cbt-sidebar-palette.open-sheet {
    transform: translateY(0%) !important;
    pointer-events: auto !important;
  }

  /* Top Drag Handle & Title in Bottom Sheet */
  .cbt-bs-topbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 0.6rem !important;
    flex-shrink: 0 !important;
  }

  .cbt-bs-handle-bar {
    width: 44px;
    height: 5px;
    background: #475569;
    border-radius: 10px;
    margin-bottom: 0.5rem;
  }

  .cbt-bs-header-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cbt-bs-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .cbt-bs-icon {
    font-size: 1.1rem;
  }

  .cbt-bs-heading {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fef08a;
  }

  .cbt-bs-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .cbt-bs-close-btn:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.65);
    color: #fca5a5;
    transform: scale(1.08);
  }

  .cbt-bs-close-btn:active {
    transform: scale(0.92);
    background: rgba(239, 68, 68, 0.38);
  }

  /* Legend in mobile bottom sheet */
  .cbt-palette-legend-panel {
    padding: 0.55rem !important;
    margin-bottom: 0.6rem !important;
  }

  .cbt-legend-grid {
    gap: 0.4rem !important;
  }

  .cbt-legend-box {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.7rem !important;
  }

  .cbt-legend-text {
    font-size: 0.7rem !important;
  }

  .cbt-palette-header {
    margin-bottom: 0.4rem !important;
  }

  .cbt-palette-title {
    font-size: 0.78rem !important;
  }

  /* 6-column grid for question numbers in mobile sheet */
  .cbt-palette-numbers {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0.4rem !important;
    padding-right: 0.2rem !important;
    margin-bottom: 0.65rem !important;
  }

  .cbt-palette-btn {
    height: 42px !important;
    font-size: 0.92rem !important;
    border-radius: 8px !important;
  }

  .cbt-palette-footer {
    padding-top: 0.5rem !important;
  }

  .cbt-btn-submit {
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem !important;
  }

  /* Dark Blurred Backdrop behind Bottom Sheet */
  .cbt-palette-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 1040 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }

  .cbt-palette-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ==========================================================================
   STATUTORY COOKIE & DPDP DATA PRIVACY BANNER
   ========================================================================== */
.quizzalo-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 450px;
  width: calc(100% - 3rem);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(202, 138, 4, 0.5);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  color: #f8fafc;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65);
  z-index: 99995;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quizzalo-cookie-banner.hidden {
  display: none !important;
}

.quizzalo-cookie-banner .cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.quizzalo-cookie-banner .cookie-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fef08a;
  letter-spacing: 0.3px;
}

.quizzalo-cookie-banner .cookie-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.quizzalo-cookie-banner .cookie-close-btn:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  transform: scale(1.06);
}

.quizzalo-cookie-banner .cookie-close-btn:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.35);
}

.quizzalo-cookie-banner .cookie-close-btn:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

/* CBT Overview & Guidelines Header Close Button */
.cbt-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cbt-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.65);
  color: #fca5a5;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cbt-modal-close-btn:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.4);
}

.cbt-modal-close-btn:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

.quizzalo-cookie-banner .cookie-body {
  font-size: 0.83rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.quizzalo-cookie-banner .cookie-body strong {
  color: #f8fafc;
}

.quizzalo-cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.quizzalo-cookie-banner .cookie-actions .btn-cookie-accept {
  background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
  color: #0f172a;
  border: none;
  font-weight: 800;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quizzalo-cookie-banner .cookie-actions .btn-cookie-accept:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(202, 138, 4, 0.5);
  transform: translateY(-1px);
}

.quizzalo-cookie-banner .cookie-actions .btn-cookie-essential {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quizzalo-cookie-banner .cookie-actions .btn-cookie-essential:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.quizzalo-cookie-banner .cookie-policy-link {
  font-size: 0.78rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  margin-left: auto;
}

.quizzalo-cookie-banner .cookie-policy-link:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness for Cookie Banner */
@media (max-width: 768px) {
  .quizzalo-cookie-banner {
    bottom: calc(65px + env(safe-area-inset-bottom, 8px) + 0.75rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    padding: 1.1rem 1.2rem;
  }
}

/* Fix Point 5: Checkbox shake and highlight animation */
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.cbt-ack-shake {
  animation: shakeError 0.4s ease-in-out !important;
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5) !important;
}

/* ==========================================================================
   ALL-INDIA CBT MOCK TEST HUB & EXAM GUIDELINES PORTAL STYLES
   ========================================================================== */

.mock-hub-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 2px solid rgba(202, 138, 4, 0.4);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.mock-hub-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(202, 138, 4, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.mock-hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(202, 138, 4, 0.15);
  border: 1px solid rgba(202, 138, 4, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.mock-hub-hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.mock-hub-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.mock-hub-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 860px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.mock-hub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.mock-pill-icon {
  font-size: 1rem;
}

/* Educational Fair-Use Legal Disclaimer Banner */
.mock-legal-disclaimer-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-left: 4px solid #0284c7;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.mock-legal-disclaimer-box .disclaimer-title {
  font-weight: 800;
  color: #0284c7;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.mock-legal-disclaimer-box .disclaimer-body {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.65;
}

.mock-legal-disclaimer-box .disclaimer-body strong {
  color: #0f172a;
  font-weight: 700;
}

body.hotseat-mode .mock-legal-disclaimer-box {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.25);
  border-left: 4px solid #38bdf8;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

body.hotseat-mode .mock-legal-disclaimer-box .disclaimer-title {
  color: #38bdf8;
}

body.hotseat-mode .mock-legal-disclaimer-box .disclaimer-body {
  color: #cbd5e1;
}

body.hotseat-mode .mock-legal-disclaimer-box .disclaimer-body strong {
  color: #ffffff;
}

/* Category Filter Bar */
.mock-filter-container {
  margin-bottom: 2rem;
}

.mock-filter-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.mock-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.mock-filter-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.mock-tab-text-desk {
  display: inline;
}

.mock-tab-text-mob {
  display: none;
}

.mock-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  white-space: nowrap;
  outline: none !important;
  transform: none !important;
}

.mock-tab:hover {
  border-color: #ca8a04;
  transform: none !important;
  box-shadow: 0 2px 6px rgba(202, 138, 4, 0.15) !important;
}

.mock-tab.active {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.2) 0%, rgba(202, 138, 4, 0.05) 100%);
  border-color: #ca8a04;
  color: #ca8a04;
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.2);
  transform: none !important;
}

.mock-tab:active {
  transform: none !important;
}

.mock-tab:focus,
.mock-tab:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  transform: none !important;
}

.mock-tab .tab-badge {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

body.hotseat-mode .mock-tab .tab-badge,
[data-theme="dark"] .mock-tab .tab-badge {
  background: rgba(255, 255, 255, 0.1);
}

/* Featured Live Mock Test Card */
.mock-featured-card {
  background: var(--bg-card);
  border: 2px solid #ca8a04;
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(202, 138, 4, 0.15);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mock-featured-card:hover {
  box-shadow: 0 12px 35px rgba(202, 138, 4, 0.25);
}

.featured-badge-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.featured-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #16a34a;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.featured-live-tag .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulseDot 1.5s infinite;
}

.featured-exam-type {
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(202, 138, 4, 0.12);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.featured-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .featured-content-grid {
    grid-template-columns: 1fr;
  }
}

.featured-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.featured-icon {
  font-size: 2.2rem;
  background: rgba(202, 138, 4, 0.15);
  border: 1.5px solid #ca8a04;
  border-radius: 12px;
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.featured-meta-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.featured-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.featured-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.spec-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 800;
}

.featured-sessions-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .featured-sessions-box {
    grid-template-columns: 1fr;
  }
}

.session-pill {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
}

.session-pill.s1 {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.25);
}

.session-pill.s2 {
  background: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.25);
}

.session-pill .s-head {
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: 0.3px;
}

.session-pill.s1 .s-head { color: #2563eb; }
.session-pill.s2 .s-head { color: #dc2626; }

.session-pill .s-body {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.session-pill .s-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* CTA Column */
.featured-cta-col .cta-box {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cta-price-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.badge-free {
  background: #16a34a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.cta-coins {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ca8a04;
}

.cta-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cta-micro-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* All Exams Cards Grid */
.mock-section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mock-grid-heading {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.mock-grid-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mock-status-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.leg-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.leg-pill.live {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.leg-pill.pipeline {
  background: rgba(202, 138, 4, 0.1);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.3);
}

.leg-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.leg-pill .dot.live { background: #16a34a; }
.leg-pill .dot.pipeline { background: #ca8a04; }

.mock-exam-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .mock-filter-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .mock-tab {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.8rem !important;
    border-radius: 9999px !important;
    gap: 0.35rem !important;
    min-height: 40px !important;
    height: 100% !important;
  }

  .mock-tab:first-child {
    grid-column: 1 / -1 !important;
    font-size: 0.84rem !important;
  }

  .mock-tab-text-desk {
    display: none !important;
  }

  .mock-tab-text-mob {
    display: inline !important;
  }

  .mock-tab .tab-badge {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .mock-exam-cards-grid {
    grid-template-columns: 1fr;
  }
}

.mock-exam-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mock-exam-card:hover {
  transform: translateY(-3px);
  border-color: #ca8a04;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mock-exam-card.active-live {
  border-color: #ca8a04;
  background: linear-gradient(180deg, rgba(202, 138, 4, 0.05) 0%, var(--bg-card) 30%);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.card-status-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.card-status-badge.live {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.35);
}

.card-status-badge.pipeline {
  background: rgba(202, 138, 4, 0.12);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.35);
}

.card-status-badge.scheduled {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.card-header-info {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.card-exam-icon {
  font-size: 1.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-exam-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.card-agency {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.card-chip {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.card-sections-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
}

.card-sec-head {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.card-sec-item {
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.card-sec-item:last-child {
  border-bottom: none;
}

.card-rules-note {
  font-size: 0.76rem;
  color: #b45309;
  background: rgba(202, 138, 4, 0.08);
  border-left: 2.5px solid #ca8a04;
  padding: 0.4rem 0.65rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
  line-height: 1.4;
}

body.hotseat-mode .card-rules-note,
[data-theme="dark"] .card-rules-note {
  color: #fef08a;
}

/* Card Set Switcher & Entry Fee Info Bar */
.card-set-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  margin: 0.75rem 0 0.35rem 0;
}

body.hotseat-mode .card-set-switcher,
[data-theme="dark"] .card-set-switcher {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-set-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.hotseat-mode .card-set-label,
[data-theme="dark"] .card-set-label {
  color: #cbd5e1;
}

.set-pill-group {
  display: flex;
  gap: 0.35rem;
}

.btn-set-pill {
  padding: 0.28rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  background: #ffffff;
  color: #334155;
  transition: all 0.2s ease;
}

body.hotseat-mode .btn-set-pill,
[data-theme="dark"] .btn-set-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
}

.btn-set-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.hotseat-mode .btn-set-pill:hover,
[data-theme="dark"] .btn-set-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-set-pill.active {
  background: #ca8a04 !important;
  color: #ffffff !important;
  border-color: #eab308 !important;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.35) !important;
}

.card-entry-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0.25rem 0 0.65rem 0;
  padding: 0.45rem 0.75rem;
  background: #fffbeb;
  border: 1.5px solid #fef08a;
  border-radius: 8px;
}

body.hotseat-mode .card-entry-info,
[data-theme="dark"] .card-entry-info {
  background: rgba(202, 138, 4, 0.12);
  border-color: rgba(202, 138, 4, 0.35);
}

.card-entry-badge {
  color: #b45309;
  font-weight: 800;
}

body.hotseat-mode .card-entry-badge,
[data-theme="dark"] .card-entry-badge {
  color: #f59e0b;
}

.card-reward-badge {
  color: #15803d;
  font-weight: 800;
}

body.hotseat-mode .card-reward-badge,
[data-theme="dark"] .card-reward-badge {
  color: #4ade80;
}

.card-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

/* Universal Guidelines Accordion Section */
.cbt-universal-guidelines-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .cbt-universal-guidelines-box {
    padding: 1.25rem 0.85rem !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .ug-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .ug-card {
    padding: 1rem 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .ug-header {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
    margin-bottom: 1.25rem !important;
  }
  .ug-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }
  .ug-subtitle {
    font-size: 0.8rem !important;
  }
}

.ug-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.ug-icon {
  font-size: 2.2rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 12px;
  padding: 0.4rem 0.7rem;
}

.ug-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.ug-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.ug-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}

.ug-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ug-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.ug-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.palette-mini-guide {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.p-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.p-dot.c-green { background: #16a34a; }
.p-dot.c-red { background: #dc2626; }
.p-dot.c-gray { background: #64748b; }
.p-dot.c-purple { background: #7c3aed; }
.p-dot.c-purp-green { background: #0284c7; }


/* =============================================================
   DUAL-TOKEN GAMIFIED ECONOMY & EXAM INTELLIGENCE PORTAL STYLES
   ============================================================= */

/* Study Energy Fuel Badge */
.energy-badge {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1.5px solid #0284c7;
  color: #0369a1;
  padding: 0 0.85rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.energy-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.energy-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: #0284c7;
  filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.4));
}

body.hotseat-mode .energy-badge {
  background: linear-gradient(135deg, #0c2b4e 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #e0f2fe;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

body.hotseat-mode .energy-icon {
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

body.hotseat-mode .coin-badge {
  background: linear-gradient(135deg, #422006 0%, #78350f 100%);
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* All-In-One Exam Intelligence Portal Modal */
.exam-portal-modal-content {
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 2rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

body.hotseat-mode .exam-portal-modal-content {
  background: linear-gradient(145deg, #111827 0%, #0f172a 100%);
  border-color: #ca8a04;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.exam-portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.exam-portal-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.exam-portal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ca8a04;
  margin-bottom: 0.25rem;
}

.exam-portal-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0;
}

.exam-portal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 580px;
}

.exam-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid #10b981;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* 4 Multi-Tab Navigation (Zero-Scroll Responsive Tabs) */
.exam-portal-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: var(--bg-main, rgba(15, 23, 42, 0.5));
  border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.12));
  padding: 0.35rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: visible !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.exam-portal-nav-tabs::-webkit-scrollbar {
  display: none;
}

.portal-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #94a3b8);
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  white-space: normal;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  transition: all 0.2s ease;
  min-height: 44px;
}

.portal-tab:hover {
  color: var(--text-main, #ffffff);
  background: rgba(255, 255, 255, 0.06);
}

.portal-tab.active {
  color: #ffffff !important;
  background: var(--primary, #0284c7) !important;
  border-color: var(--primary, #0284c7) !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

body.hotseat-mode .exam-portal-nav-tabs {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

body.hotseat-mode .portal-tab {
  color: #94a3b8;
}

body.hotseat-mode .portal-tab:hover {
  color: #fef08a;
  background: rgba(202, 138, 4, 0.12);
}

body.hotseat-mode .portal-tab.active {
  color: #0f172a !important;
  background: #ca8a04 !important;
  border-color: #ca8a04 !important;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.45);
}

@media (max-width: 768px) {
  .exam-portal-nav-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .portal-tab {
    font-size: 0.8rem;
    padding: 0.5rem 0.35rem;
    min-height: 42px;
  }
}

.portal-tab-panel {
  display: none;
  animation: fadeInPortal 0.25s ease-out;
}

.portal-tab-panel.active {
  display: block;
}

@keyframes fadeInPortal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pyq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(202, 138, 4, 0.12);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.3);
  text-transform: uppercase;
}

/* Exam Intelligence Modal & Responsive Calendar Table for Mobile */
@media (max-width: 768px) {
  .exam-portal-modal-content {
    width: 96% !important;
    max-width: 96% !important;
    padding: 1.25rem 0.75rem !important;
    border-radius: 14px !important;
    margin: 0.5rem auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .exam-portal-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .exam-portal-title {
    font-size: 1.25rem !important;
  }
  .exam-calendar-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border: none !important;
  }
  .exam-calendar-table thead {
    display: none !important;
  }
  .exam-calendar-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .exam-calendar-table tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    padding: 0.85rem !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .exam-calendar-table td {
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .exam-calendar-table td:first-child {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    line-height: 1.35 !important;
    justify-content: flex-start !important;
    margin-bottom: 0.2rem !important;
  }
  .exam-calendar-table td:nth-child(2) {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #ca8a04 !important;
  }
  .exam-calendar-table td:nth-child(2)::before {
    content: "📅 Date / Window:";
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
  }
  .exam-calendar-table td:nth-child(3)::before {
    content: "Status:";
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
  }
}



