:root {
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --claude-accent: #d97706;
  --claude-accent-hover: #b45309;
  --claude-coral: #ea580c;
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.15);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.15);
  --border-subtle: #334155;
  --border-focus: #d97706;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #d97706, #ea580c);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--claude-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

nav.nav-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-primary);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: var(--claude-accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clearance-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #fcd34d;
}

/* Main Container */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

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

/* Typography & General Components */
h2.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

p.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--claude-accent);
}

.metric-card.success::before { background: var(--color-success); }
.metric-card.info::before { background: var(--color-info); }
.metric-card.coral::before { background: var(--claude-coral); }

.metric-header {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.metric-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Progress Bars */
.progress-container {
  width: 100%;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706, #ea580c);
  transition: width 0.4s ease;
}

.progress-bar.success {
  background: linear-gradient(90deg, #059669, #10b981);
}

/* Domain Mastery Section */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.domain-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.domain-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.domain-stats-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* Action Banner */
.action-banner {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.action-card {
  flex: 1;
  min-width: 280px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.action-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.action-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.btn-primary {
  background: var(--claude-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--claude-accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* FREE MODE (Adaptive Learning) */
.practice-container {
  max-width: 860px;
  margin: 0 auto;
}

.practice-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

select.app-select {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  outline: none;
}

select.app-select:focus {
  border-color: var(--claude-accent);
}

.question-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-domain {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-mastery-unseen {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-mastery-failed {
  background: var(--color-danger-bg);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-mastery-learning {
  background: var(--color-warning-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-mastery-mastered {
  background: var(--color-success-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.question-text {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  color: #f1f5f9;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.option-item:hover:not(.locked) {
  border-color: var(--claude-accent);
  background: rgba(217, 119, 6, 0.05);
}

.option-item.selected {
  border-color: var(--claude-accent);
  background: rgba(217, 119, 6, 0.1);
}

.option-item.correct {
  border-color: var(--color-success) !important;
  background: var(--color-success-bg) !important;
}

.option-item.incorrect {
  border-color: var(--color-danger) !important;
  background: var(--color-danger-bg) !important;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.option-item.selected .option-letter {
  background: var(--claude-accent);
  color: #fff;
}

.option-item.correct .option-letter {
  background: var(--color-success);
  color: #fff;
}

.option-item.incorrect .option-letter {
  background: var(--color-danger);
  color: #fff;
}

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

/* Explanation Box */
.explanation-card {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: none;
  animation: fadeIn 0.2s ease;
}

.explanation-card.show {
  display: block;
}

.explanation-card.correct-feedback {
  background: var(--color-success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.explanation-card.incorrect-feedback {
  background: var(--color-danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.explanation-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.explanation-text {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
  color: #e2e8f0;
}

.explanation-reference {
  font-size: 0.825rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.65rem;
}

.explanation-reference a {
  color: #60a5fa;
  text-decoration: underline;
  margin-left: 0.3rem;
}

/* MOCK TEST MODE */
.mock-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: monospace;
  color: #f59e0b;
}

.palette-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.palette-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.palette-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.palette-btn.current {
  border-color: var(--claude-accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.5);
}

.palette-btn.answered {
  background: #1e3a8a;
  color: #93c5fd;
  border-color: #3b82f6;
}

.palette-btn.flagged {
  border-color: #f59e0b;
  position: relative;
}

.palette-btn.flagged::after {
  content: '★';
  position: absolute;
  top: -4px;
  right: -2px;
  color: #f59e0b;
  font-size: 9px;
}

.mock-nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.mock-nav-row {
  display: flex;
  gap: 0.75rem;
}

.free-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Post-Mock Scorecard */
.scorecard-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.scorecard-banner.pass {
  border-color: var(--color-success);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.scorecard-banner.fail {
  border-color: var(--color-danger);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.score-badge-large {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.score-badge-large.pass {
  background: var(--color-success);
  color: #064e3b;
}

.score-badge-large.fail {
  background: var(--color-danger);
  color: #450a0a;
}

.score-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.score-benchmark {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.review-item.wrong {
  border-left: 4px solid var(--color-danger);
}

.review-item.right {
  border-left: 4px solid var(--color-success);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

textarea.json-input {
  width: 100%;
  height: 180px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  outline: none;
}

/* ========================================================
   RESPONSIVE DESIGN SYSTEM (SMARTPHONES & TABLETS)
   ======================================================== */

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  main {
    padding: 1rem 0.75rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-container {
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
  }

  .logo-area {
    gap: 0.5rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .logo-text h1 {
    font-size: 1.05rem;
  }

  .logo-text span {
    font-size: 0.65rem;
  }

  nav.nav-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 0.25rem;
    gap: 0.35rem;
    scrollbar-width: none; /* Firefox */
  }

  nav.nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
  }

  .nav-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .header-status {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-star {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .clearance-pill {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }

  /* Dashboard Cards */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .metric-card {
    padding: 1rem;
  }

  .metric-value {
    font-size: 1.85rem;
  }

  .action-banner {
    flex-direction: column;
    gap: 0.85rem;
  }

  .action-card {
    min-width: 0;
    width: 100%;
    padding: 1.25rem;
  }

  .domain-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Free Mode */
  .practice-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  select.app-select {
    width: 100%;
    font-size: 0.85rem;
  }

  .question-box {
    padding: 1.15rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
  }

  .question-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .question-text {
    font-size: 1.025rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .option-item {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    border-radius: var(--radius-sm);
  }

  .option-letter {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .option-label {
    font-size: 0.88rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .free-actions-bar {
    width: 100%;
  }

  .free-actions-bar button {
    width: 100%;
    justify-content: center;
  }

  /* MOCK EXAM MODE — RESPONSIVE PAGERS & HUD */
  .mock-bar {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
    justify-content: space-between;
    flex-wrap: nowrap;
    position: relative;
    top: auto;
    z-index: 10;
  }

  .timer-box {
    font-size: 1.05rem;
  }

  /* Question Palette on Mobile: Contained & Scrollable, not taking 400px! */
  .palette-container {
    max-height: 130px;
    overflow-y: auto;
    padding: 0.6rem;
    gap: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    scrollbar-width: thin;
  }

  .palette-btn {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  /* Mock Navigation buttons */
  .mock-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .mock-nav-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .mock-nav-row button {
    flex: 1;
    justify-content: center;
  }

  #btn-mock-submit {
    width: 100%;
    justify-content: center;
  }

  /* Scorecard & Review */
  .scorecard-banner {
    padding: 1.5rem 1rem;
    margin-bottom: 1.25rem;
  }

  .score-number {
    font-size: 2.25rem;
  }

  .score-badge-large {
    font-size: 0.95rem;
    padding: 0.3rem 1rem;
  }

  .review-item {
    padding: 0.85rem;
    font-size: 0.85rem;
  }

  /* Voucher Guide & Pitch Deck on Mobile */
  .voucher-hero {
    padding: 1.25rem;
  }

  .voucher-hero::after {
    top: 10px;
    right: -35px;
    font-size: 0.65rem;
    padding: 0.2rem 2.2rem;
  }

  .step-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .deck-slide {
    padding: 1.25rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 1.25rem;
    margin: 0.5rem;
  }
}

/* Small Smartphone Devices (<= 400px - iPhone SE, small Androids) */
@media (max-width: 400px) {
  .logo-text h1 {
    font-size: 0.95rem;
  }

  .timer-box {
    font-size: 0.95rem;
  }

  .score-number {
    font-size: 1.95rem;
  }

  .palette-btn {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }
}

/* ========================================================
   STAR ON GITHUB, PARTNER VOUCHER GUIDE & PITCH DECK STYLES
   ======================================================== */

/* GitHub Star Button in Navbar */
.btn-star {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f8fafc;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-star:hover {
  background: linear-gradient(135deg, #334155, #1e293b);
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
  color: #fef08a;
}

.btn-star svg {
  fill: #f59e0b;
  width: 14px;
  height: 14px;
}

/* Free Voucher Hero Banner */
.voucher-hero {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(234, 88, 12, 0.08));
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.voucher-hero::after {
  content: '100% FREE';
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--claude-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: var(--claude-accent);
  transform: translateX(4px);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--claude-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.partner-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

/* Pitch Deck Presentation Views */
.deck-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.deck-slide {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.slide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--claude-accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.timeline-card strong {
  color: #fcd34d;
  display: block;
  margin-bottom: 0.4rem;
}

/* Share Score Box on Mock Review */
.share-score-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.share-buttons-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-share {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-share:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-copy {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================================
   TRACK SELECTOR & MICRO-SHORTS INFOGRAPHICS STYLES
   ======================================================== */
.track-selector-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
}

.track-select {
  background: transparent;
  color: #fbbf24;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.track-select option {
  background: #0f172a;
  color: #f8fafc;
}

/* Shorts Visual Reels Container */
.shorts-container {
  max-width: 780px;
  margin: 0 auto;
}

.shorts-reel-card {
  background: linear-gradient(145deg, #090d16 0%, #0f172a 60%, #1a1638 100%);
  border: 2px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.shorts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shorts-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.shorts-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.shorts-infographic-viewport {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Visual Pulse & Flow Animations for Micro-Shorts */
@keyframes pulseGlow {
  0% { 
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4)); 
    opacity: 0.85;
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 25px rgba(217, 119, 6, 0.5)); 
    opacity: 1;
    transform: scale(1.03);
  }
  100% { 
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4)); 
    opacity: 0.85;
    transform: scale(1);
  }
}

@keyframes pulseGlowGreen {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.4));
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.9));
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes pulseGlowBlue {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.4));
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.9));
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes dataFlow {
  from {
    stroke-dashoffset: 28;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pulse, .pulse-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseGlow 2s infinite ease-in-out;
}

.pulse-green {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseGlowGreen 2s infinite ease-in-out;
}

.pulse-blue {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseGlowBlue 2s infinite ease-in-out;
}

.dataFlow, .flow-anim {
  stroke-dasharray: 8, 6 !important;
  animation: dataFlow 0.9s infinite linear !important;
}

.float-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeFloat 3s infinite ease-in-out;
}

.shorts-takeaway-box {
  background: rgba(217, 119, 6, 0.12);
  border-left: 4px solid var(--claude-accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.shorts-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-audio-narrate {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-audio-narrate:hover {
  background: #2563eb;
}

.btn-audio-narrate.speaking {
  background: #ef4444;
  animation: pulseGlow 1s infinite alternate;
}
