/* ==========================================================================
   A1M - Modern Test Series Portal CSS
   Design: Clean Crisp White Background with Original Vibrant Blue/Purple Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Color Palette - Clean White Base with Original Vibrant Blue & Purple Accents */
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;
  --border-glow: rgba(59, 130, 246, 0.4);

  --text-primary: #0f172a;   /* Rich Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b;     /* Slate 500 */

  --accent-primary: #3b82f6;   /* Royal Blue */
  --accent-secondary: #8b5cf6; /* Electric Purple */
  --accent-cyan: #06b6d4;      /* Vibrant Cyan */
  --accent-emerald: #10b981;   /* Emerald Green */
  --accent-amber: #f59e0b;     /* Star Gold */
  --accent-rose: #f43f5e;      /* Rose Red */

  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 70%);

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 8px 30px rgba(59, 130, 246, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Optional Dark Theme Toggle */
[data-theme="dark"] {
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(27, 36, 56, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%);
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Container */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-lg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .navbar {
  background: rgba(11, 15, 25, 0.85);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo i {
  font-size: 1.75rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .btn-icon {
  background: rgba(255, 255, 255, 0.05);
}

.btn-icon:hover {
  background: #e2e8f0;
  color: var(--accent-primary);
  transform: scale(1.05);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .btn-outline {
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  background: var(--gradient-glow);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.stat-card {
  padding: 1.25rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .stat-card {
  background: var(--bg-card);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Search & Filter Bar Section
   ========================================================================== */
.filter-section {
  max-width: 1280px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.search-box-wrapper {
  position: relative;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.25rem;
  font-size: 1rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  outline: none;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .search-input {
  background: var(--bg-card);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .tab-btn {
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn:hover {
  background: #f0f7ff;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.tab-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   Exam Cards Grid
   ========================================================================== */
.exams-section {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--text-primary);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.exam-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

[data-theme="dark"] .exam-card {
  background: var(--bg-card);
}

.exam-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.exam-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.exam-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.exam-card-body {
  padding: 0 1.5rem 1.25rem;
  flex-grow: 1;
}

.exam-category-name {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.exam-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.exam-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rating-tag {
  color: var(--accent-amber);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breakdown-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag-pill {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  color: var(--text-secondary);
}

[data-theme="dark"] .tag-pill {
  background: rgba(255, 255, 255, 0.05);
}

.highlights-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.highlights-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.highlights-list li i {
  color: var(--accent-emerald);
  font-size: 0.75rem;
}

.exam-card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #f8fafc;
}

[data-theme="dark"] .exam-card-footer {
  background: rgba(0, 0, 0, 0.15);
}

.btn-card-action {
  flex: 1;
  text-align: center;
  padding: 0.65rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Full Screen CBT Test Simulator Modal (Light & Clean Workspace)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.cbt-modal-container {
  width: 100vw;
  height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #0f172a;
}

[data-theme="dark"] .cbt-modal-container {
  background: #0f172a;
  color: #f8fafc;
}

/* CBT Top Bar */
.cbt-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .cbt-header {
  background: #1e293b;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.cbt-exam-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cbt-timer-box {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #2563eb;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cbt-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cbt-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

/* CBT Main Workspace */
.cbt-workspace {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  height: calc(100vh - 65px - 60px);
  overflow: hidden;
}

.cbt-left-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
}

[data-theme="dark"] .cbt-left-pane {
  border-right-color: rgba(255, 255, 255, 0.1);
  background: #0b0f19;
}

/* Subject Tabs */
.cbt-sections-bar {
  background: #ffffff;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .cbt-sections-bar {
  background: #182234;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.cbt-sec-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cbt-sec-tab.active {
  background: var(--accent-primary);
  color: #fff;
}

/* Question Area */
.cbt-question-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

[data-theme="dark"] .cbt-question-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(30, 41, 59, 0.3);
}

.q-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.q-marks-tag {
  font-size: 0.8rem;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.cbt-question-body {
  flex-grow: 1;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.q-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.7;
  white-space: pre-line;
}

.options-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 750px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .option-item {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.option-item:hover {
  border-color: var(--accent-primary);
  background: #f0f7ff;
}

.option-item.selected {
  border-color: var(--accent-primary);
  background: #eff6ff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.option-radio {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-primary);
}

.option-label {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* CBT Right Palette Pane */
.cbt-right-pane {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
  border-left: 1px solid #e2e8f0;
}

[data-theme="dark"] .cbt-right-pane {
  background: #0f172a;
  border-left-color: rgba(255, 255, 255, 0.1);
}

.palette-status-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: var(--text-secondary);
}

.legend-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.bg-answered { background: var(--accent-emerald); }
.bg-marked { background: var(--accent-secondary); }
.bg-not-answered { background: var(--accent-rose); }
.bg-not-visited { background: #cbd5e1; color: #334155 !important; }

[data-theme="dark"] .bg-not-visited { background: #334155; color: #fff !important; }

.palette-grid-container {
  flex-grow: 1;
}

.palette-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.q-palette-btn {
  height: 42px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.q-palette-btn:hover {
  transform: scale(1.08);
}

.q-palette-btn.current {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* CBT Bottom Action Footer */
.cbt-footer {
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .cbt-footer {
  background: #1e293b;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.cbt-action-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Scorecard / Analytics Modal
   ========================================================================== */
.score-modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  color: var(--text-primary);
}

[data-theme="dark"] .score-modal-content {
  background: #0f172a;
}

.score-header {
  text-align: center;
  margin-bottom: 2rem;
}

.score-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.score-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.score-stat-box {
  padding: 1.25rem;
  text-align: center;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .score-stat-box {
  background: rgba(30, 41, 59, 0.6);
}

.score-val {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.val-green { color: var(--accent-emerald); }
.val-blue { color: var(--accent-primary); }
.val-purple { color: var(--accent-secondary); }
.val-amber { color: var(--accent-amber); }

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.solution-card {
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

[data-theme="dark"] .solution-card {
  background: rgba(30, 41, 59, 0.4);
}

.solution-q-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.solution-status-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sol-correct { background: #d1fae5; color: #059669; }
.sol-incorrect { background: #fee2e2; color: #dc2626; }
.sol-unattempted { background: #e2e8f0; color: #64748b; }

.solution-box {
  margin-top: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border-left: 4px solid var(--accent-cyan);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .solution-box {
  background: rgba(15, 23, 42, 0.6);
  border-color: transparent;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
}

[data-theme="dark"] .pricing-card {
  background: var(--bg-card);
}

.pricing-card.popular {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
  transform: scale(1.03);
}

.pricing-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
}

.price-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li i {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Footer & Testimonials
   ========================================================================== */
.testimonials-section {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  padding: 2rem;
  background: #ffffff;
}

[data-theme="dark"] .testimonial-card {
  background: var(--bg-card);
}

.topper-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.topper-photo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.topper-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.topper-exam {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

[data-theme="dark"] .footer {
  background: #070a12;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .cbt-workspace { grid-template-columns: 1fr; }
  .cbt-right-pane { display: none; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .nav-menu { display: none; }
  .exams-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
}
