/* ==========================================================================
   OPEN TEXTBOOKS - Premium Test Styles
   Styling for premium full-length SAT/ACT practice tests
   ========================================================================== */

/* ==========================================================================
   Premium Hero Section
   ========================================================================== */
.premium-hero {
  text-align: center;
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--indigo-50) 0%, var(--amber-50) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-10);
}

[data-theme="dark"] .premium-hero {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
}

.premium-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-heading);
  margin-bottom: var(--space-4);
}

.premium-tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.premium-price-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-8);
  background: var(--amber-500);
  color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.premium-price-badge .price {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
}

.premium-price-badge .price-label {
  font-size: var(--text-sm);
  opacity: 0.9;
}

/* ==========================================================================
   Premium Features Grid
   ========================================================================== */
.premium-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.premium-feature {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.premium-feature .feature-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.premium-feature h3 {
  font-size: var(--text-lg);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.premium-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-heading);
  text-align: center;
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   Test Type Tabs
   ========================================================================== */
.test-type-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.test-type-tab {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.test-type-tab:hover {
  border-color: var(--amber-400);
  color: var(--color-text);
}

.test-type-tab.active {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: white;
}

/* ==========================================================================
   Premium Test Cards
   ========================================================================== */
.premium-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.premium-test-card {
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.premium-test-card:hover {
  border-color: var(--amber-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.test-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.test-badge {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.test-badge.sat {
  background: var(--indigo-100);
  color: var(--indigo-700);
}

.test-badge.act {
  background: var(--sage-100);
  color: var(--sage-700);
}

[data-theme="dark"] .test-badge.sat {
  background: rgba(99, 102, 241, 0.2);
  color: var(--indigo-300);
}

[data-theme="dark"] .test-badge.act {
  background: rgba(34, 197, 94, 0.2);
  color: var(--sage-300);
}

.test-duration {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.premium-test-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-3);
}

.test-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.test-domains {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.domain-tag {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .domain-tag {
  background: var(--slate-700);
  color: var(--slate-300);
}

.test-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.question-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.purchase-btn {
  min-width: 120px;
}

/* ==========================================================================
   Purchased Tests Section
   ========================================================================== */
.purchased-tests-section {
  margin-bottom: var(--space-10);
  padding: var(--space-6);
  background: var(--sage-50);
  border-radius: var(--radius-lg);
}

[data-theme="dark"] .purchased-tests-section {
  background: rgba(34, 197, 94, 0.1);
}

.purchased-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.purchased-test-card {
  background: var(--color-bg-elevated);
  border: 2px solid var(--sage-300);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.purchased-test-info h4 {
  font-size: var(--text-base);
  color: var(--color-heading);
  margin-bottom: var(--space-1);
}

.purchased-test-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.start-test-btn {
  background: var(--sage-500);
  border-color: var(--sage-500);
}

.start-test-btn:hover {
  background: var(--sage-600);
  border-color: var(--sage-600);
}

/* ==========================================================================
   Payment Modal
   ========================================================================== */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
}

.payment-modal-content {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--slate-100);
  color: var(--color-text);
}

.payment-modal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-heading);
  margin-bottom: var(--space-6);
  text-align: center;
}

.payment-summary {
  background: var(--slate-50);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

[data-theme="dark"] .payment-summary {
  background: var(--slate-800);
}

.payment-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
}

.item-name {
  font-weight: 500;
  color: var(--color-text);
}

.item-price {
  color: var(--color-text-muted);
}

.payment-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-heading);
}

.form-help {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.card-element {
  padding: var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
}

.card-element.StripeElement--focus {
  border-color: var(--indigo-500);
}

.card-errors {
  color: var(--rose-600);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.btn--full {
  width: 100%;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.payment-security svg {
  color: var(--sage-500);
}

/* ==========================================================================
   Test Screen
   ========================================================================== */
.premium-test-screen {
  min-height: 80vh;
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.test-header-left h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin: 0 0 var(--space-2);
}

.section-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-badge {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--indigo-100);
  color: var(--indigo-700);
  border-radius: var(--radius-sm);
}

.question-progress {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.test-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.timer-display {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--slate-100);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-mono);
}

[data-theme="dark"] .timer-display {
  background: var(--slate-700);
}

.timer-display.warning {
  background: var(--amber-100);
  color: var(--amber-700);
}

.timer-display.critical {
  background: var(--rose-100);
  color: var(--rose-700);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.timer-icon {
  width: 20px;
  height: 20px;
}

/* Progress Bar */
.test-progress-bar {
  height: 4px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

[data-theme="dark"] .test-progress-bar {
  background: var(--slate-700);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo-500), var(--amber-500));
  transition: width 0.3s ease;
}

/* Question Container */
.question-container {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  min-height: 400px;
}

.question-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.question-number {
  font-weight: 700;
  color: var(--color-heading);
}

.domain-indicator {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .domain-indicator {
  background: var(--slate-700);
  color: var(--slate-300);
}

.flag-btn {
  margin-left: auto;
  padding: var(--space-2);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.flag-btn:hover {
  border-color: var(--amber-400);
  color: var(--amber-500);
}

.flag-btn.flagged {
  background: var(--amber-100);
  border-color: var(--amber-400);
  color: var(--amber-600);
}

.flag-btn svg {
  width: 18px;
  height: 18px;
}

.question-content {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.question-content p {
  margin-bottom: var(--space-4);
}

.question-content .passage {
  padding: var(--space-4);
  background: var(--slate-50);
  border-left: 4px solid var(--indigo-400);
  margin-bottom: var(--space-6);
  font-size: var(--text-base);
}

[data-theme="dark"] .question-content .passage {
  background: var(--slate-800);
}

/* Answer Choices */
.answer-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.answer-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.answer-choice:hover {
  border-color: var(--indigo-400);
  background: var(--indigo-50);
}

[data-theme="dark"] .answer-choice:hover {
  background: rgba(99, 102, 241, 0.1);
}

.answer-choice.selected {
  border-color: var(--indigo-500);
  background: var(--indigo-50);
}

[data-theme="dark"] .answer-choice.selected {
  background: rgba(99, 102, 241, 0.15);
}

.choice-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-weight: 600;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

[data-theme="dark"] .choice-letter {
  background: var(--slate-700);
  color: var(--slate-300);
}

.answer-choice.selected .choice-letter {
  background: var(--indigo-500);
  color: white;
}

.choice-text {
  flex: 1;
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

/* Test Navigation */
.test-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.question-navigator {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
  max-width: 60%;
}

.nav-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--slate-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .nav-dot {
  background: var(--slate-700);
}

.nav-dot:hover {
  border-color: var(--indigo-400);
}

.nav-dot.current {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
  color: white;
}

.nav-dot.answered {
  background: var(--sage-100);
  border-color: var(--sage-400);
  color: var(--sage-700);
}

.nav-dot.flagged {
  background: var(--amber-100);
  border-color: var(--amber-400);
  color: var(--amber-700);
}

.test-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* ==========================================================================
   Results Screen
   ========================================================================== */
.premium-results-screen {
  padding: var(--space-8) 0;
}

.results-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.results-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.results-test-name {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
}

/* Score Display */
.score-display {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin-bottom: var(--space-10);
  text-align: center;
}

.primary-score {
  margin-bottom: var(--space-8);
}

.score-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-500), var(--amber-500));
  color: white;
  margin-bottom: var(--space-4);
}

.scaled-score {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.score-range {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.score-breakdown {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
}

.score-stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Domain Breakdown */
.domain-breakdown {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.domain-breakdown h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-6);
  text-align: center;
}

.domain-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.domain-bar-item {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  gap: var(--space-4);
  align-items: center;
}

@media (max-width: 640px) {
  .domain-bar-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

.domain-name {
  font-weight: 500;
  color: var(--color-text);
}

.domain-progress {
  height: 12px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

[data-theme="dark"] .domain-progress {
  background: var(--slate-700);
}

.domain-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.domain-progress-fill.excellent {
  background: var(--sage-500);
}

.domain-progress-fill.good {
  background: var(--amber-500);
}

.domain-progress-fill.needs-work {
  background: var(--rose-500);
}

.domain-score {
  font-weight: 600;
  color: var(--color-heading);
  text-align: right;
}

/* Results Actions */
.results-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* Answer Review */
.answer-review {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.answer-review h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-6);
}

.review-filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--slate-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .filter-btn {
  background: var(--slate-700);
}

.filter-btn:hover {
  border-color: var(--indigo-400);
}

.filter-btn.active {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
  color: white;
}

.review-questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.review-question {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.review-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--slate-50);
}

[data-theme="dark"] .review-question-header {
  background: var(--slate-800);
}

.review-question-header.correct {
  background: var(--sage-50);
}

.review-question-header.incorrect {
  background: var(--rose-50);
}

[data-theme="dark"] .review-question-header.correct {
  background: rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .review-question-header.incorrect {
  background: rgba(244, 63, 94, 0.1);
}

.review-question-num {
  font-weight: 600;
  color: var(--color-heading);
}

.review-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

.review-status.correct {
  color: var(--sage-600);
}

.review-status.incorrect {
  color: var(--rose-600);
}

.review-question-body {
  padding: var(--space-4);
}

.review-question-text {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.review-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.review-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.review-choice.correct-answer {
  background: var(--sage-50);
  border: 1px solid var(--sage-300);
}

.review-choice.user-wrong {
  background: var(--rose-50);
  border: 1px solid var(--rose-300);
}

[data-theme="dark"] .review-choice.correct-answer {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--sage-600);
}

[data-theme="dark"] .review-choice.user-wrong {
  background: rgba(244, 63, 94, 0.1);
  border-color: var(--rose-600);
}

.review-explanation {
  padding: var(--space-4);
  background: var(--slate-50);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

[data-theme="dark"] .review-explanation {
  background: var(--slate-800);
}

.review-explanation strong {
  color: var(--color-text);
}

/* ==========================================================================
   Free Tests CTA
   ========================================================================== */
.free-tests-cta {
  text-align: center;
  padding: var(--space-6);
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  margin-top: var(--space-10);
}

[data-theme="dark"] .free-tests-cta {
  background: var(--slate-800);
}

.free-tests-cta p {
  margin: 0;
  color: var(--color-text-muted);
}

.free-tests-cta a {
  color: var(--color-link);
  font-weight: 500;
}

/* ==========================================================================
   History Section
   ========================================================================== */
.premium-history {
  margin-bottom: var(--space-10);
}

.history-table {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.history-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.history-row:last-child {
  border-bottom: none;
}

.history-row.header {
  background: var(--slate-50);
  font-weight: 600;
  color: var(--color-heading);
}

[data-theme="dark"] .history-row.header {
  background: var(--slate-800);
}

@media (max-width: 768px) {
  .history-row {
    grid-template-columns: 1fr 1fr;
  }

  .history-row.header {
    display: none;
  }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .premium-hero h1 {
    font-size: var(--text-3xl);
  }

  .premium-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .test-header {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .test-header-right {
    width: 100%;
    justify-content: center;
  }

  .question-navigator {
    max-width: 100%;
  }

  .score-breakdown {
    flex-direction: column;
    gap: var(--space-6);
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .premium-features {
    grid-template-columns: 1fr;
  }

  .test-type-tabs {
    flex-direction: column;
  }

  .test-type-tab {
    width: 100%;
  }
}
