/* ==========================================================================
   HITIT UNIVERSITY - ULTRA-PREMIUM STUDY PLATFORM DESIGN SYSTEM
   Inspired by Linear.app, Vercel, Stripe, Raycast
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-deep: #06070a;
  --bg-surface: #0c0e14;
  --bg-card: rgba(16, 20, 31, 0.75);
  --bg-card-hover: rgba(23, 29, 45, 0.85);
  --bg-elevated: rgba(28, 35, 55, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-glow: rgba(99, 102, 241, 0.35);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #334155;

  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-secondary: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
  --accent-glow: rgba(99, 102, 241, 0.25);
  
  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);
  
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --danger-border: rgba(244, 63, 94, 0.3);

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.3);

  /* Radius & Shadows */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.2);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --sidebar-w: 280px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  background: 
    radial-gradient(ellipse 90% 40% at 50% -10%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.07), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05), transparent 50%),
    var(--bg-deep);
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   SIDEBAR COMPONENT (ULTRA-SLEEK LINEAR / RAYCAST STYLE)
   ========================================================================== */
.app-sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-brand {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 19px;
  height: 19px;
  stroke: #818cf8;
  fill: none;
  stroke-width: 1.8;
}

.brand-info h1 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.25;
}

.brand-info .brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.brand-info .brand-sub .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.nav-category {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link span:not(.nav-badge) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  stroke: var(--text-muted);
  stroke-width: 1.75;
  flex-shrink: 0;
  transition: all var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transform: translateX(2px);
}

.nav-link:hover svg {
  stroke: #c7d2fe;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.nav-link.active svg {
  stroke: #818cf8;
}

/* Refined Subtle Nav Badge (No clumsy pills) */
.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-link:hover .nav-badge {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active .nav-badge {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

/* Sidebar Footer Refined Study Status */
.sidebar-footer {
  padding: 14px 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 8, 12, 0.6);
}

.portal-status-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.portal-status-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.status-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.status-badge-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
}

.status-badge-live .pulse-ring {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 2s infinite;
}

.status-progress-label {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.sidebar-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.sidebar-progress-fill {
  height: 100%;
  width: 50%;
  background: var(--accent-gradient);
  border-radius: 999px;
}

.status-desc-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}
.status-desc-text strong {
  color: #fff;
  font-weight: 600;
}

/* ==========================================================================
   MAIN APP SHELL
   ========================================================================== */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  height: 64px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 7, 10, 0.6);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-title-wrap h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.header-title-wrap p {
  font-size: 12px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  width: 240px;
  transition: all var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
  width: 280px;
}

.search-box svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  width: 100%;
}
.search-box input::placeholder {
  color: var(--text-muted);
}

.app-content {
  padding: 36px;
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* Views Container */
.view-section {
  display: none;
  animation: viewFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
  display: block;
}

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

/* ==========================================================================
   HERO & STATS CARDS (DASHBOARD)
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(59, 130, 246, 0.06) 50%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg {
  width: 18px;
  height: 18px;
}
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stat-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: var(--font-sans);
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 6px;
}

.stat-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Quick Hub Cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  display: flex;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hub-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hub-card-icon svg {
  width: 26px;
  height: 26px;
}

.hub-card.quiz .hub-card-icon { background: rgba(99, 102, 241, 0.18); color: #818cf8; }
.hub-card.cards .hub-card-icon { background: rgba(6, 182, 212, 0.18); color: #22d3ee; }
.hub-card.notes .hub-card-icon { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.hub-card.video .hub-card-icon { background: rgba(244, 63, 94, 0.18); color: #fb7185; }

.hub-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.hub-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.hub-card-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.hub-card:hover .hub-card-action {
  gap: 8px;
  color: #93c5fd;
}

.hub-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.hub-card:hover .hub-card-tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
}

/* Hero Actions */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   ROADMAP / SYLLABUS TIMELINE (DASHBOARD)
   ========================================================================== */
.roadmap-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
}

.roadmap-title-wrap h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.roadmap-title-wrap p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.timeline-step {
  display: flex;
  gap: 20px;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -16px;
  width: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-mono);
  z-index: 2;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.timeline-step.completed .timeline-marker {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.timeline-step.pending .timeline-marker {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

.timeline-body {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all var(--transition);
}

.timeline-body:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}

.timeline-status-badge {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.timeline-status-badge.done {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}
.timeline-status-badge.waiting {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-meta-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.timeline-chip {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}
   ========================================================================== */
.quiz-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.filter-pill {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover {
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* Quiz Active Screen */
.quiz-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-progress-wrap {
  flex: 1;
  max-width: 400px;
  margin: 0 24px;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-text {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
}

.quiz-score-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.score-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}
.score-tag.correct { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.score-tag.wrong { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }

/* Question Container */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.q-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.course-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
}
.course-pill.inkilap { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.25); }
.course-pill.ingilizce { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }

.unit-label {
  font-size: 12px;
  color: var(--text-muted);
}

.question-prompt {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

/* Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
  color: var(--text-main);
  font-size: 14.5px;
  line-height: 1.4;
  position: relative;
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: all var(--transition);
}

.option-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.option-item:hover:not(:disabled) .option-letter {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

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

.option-item.wrong {
  background: var(--danger-bg) !important;
  border-color: var(--danger) !important;
  color: #fff;
}
.option-item.wrong .option-letter {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* Explanation Box */
.explanation-panel {
  display: none;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  animation: expSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.explanation-panel.visible {
  display: block;
}

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

.exp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #818cf8;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.exp-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Quiz Controls */
.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.keyboard-hint {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Results Screen */
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.results-trophy {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
}
.results-trophy svg {
  width: 36px;
  height: 36px;
  stroke: #818cf8;
}

.results-score-num {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.results-badge {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.results-breakdown {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.breakdown-item h4 {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.breakdown-item p {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ==========================================================================
   BILGI KARTLARI (FLASHCARDS)
   ========================================================================== */
.flashcards-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.flashcard-scene {
  perspective: 1400px;
  width: 100%;
  height: 380px;
  margin-bottom: 28px;
}

.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.flashcard-inner.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition);
}

.card-face:hover {
  border-color: var(--border-glow);
}

.card-face.card-back {
  transform: rotateY(180deg);
  background: rgba(18, 24, 38, 0.85);
  border-color: rgba(99, 102, 241, 0.25);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}

.card-question {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.card-answer {
  font-size: 16px;
  color: #e2e8f0;
  line-height: 1.7;
  text-align: left;
  max-width: 520px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.card-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.card-nav-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.card-nav-circle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.card-nav-circle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-main);
}

.card-counter-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 90px;
  text-align: center;
}

/* ==========================================================================
   DERS NOTLARI (NOTES & WIKI)
   ========================================================================== */
.notes-container {
  max-width: 960px;
  margin: 0 auto;
}

.notes-search-bar {
  margin-bottom: 28px;
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.note-accordion:hover {
  border-color: var(--border-hover);
}

.note-accordion-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.note-accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.note-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.note-title-wrap h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.note-accordion.open .accordion-chevron {
  transform: rotate(180deg);
  stroke: var(--accent-primary);
}

.note-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.note-accordion-content {
  padding: 0 28px 28px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.8;
}

.note-accordion-content h4 {
  color: #fff;
  font-size: 15px;
  margin: 22px 0 8px;
  font-weight: 700;
}
.note-accordion-content h4:first-child {
  margin-top: 20px;
}

.note-accordion-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.note-accordion-content li {
  margin-bottom: 8px;
}

.note-accordion-content strong {
  color: #f1f5f9;
}

/* Exam Critical Callout */
.exam-alert {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0;
  color: #fde68a !important;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.exam-alert svg {
  width: 18px;
  height: 18px;
  stroke: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   DERS KAYITLARI (VIDEO RECS)
   ========================================================================== */
.recordings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}

.rec-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.rec-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rec-duration {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.rec-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}

.rec-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.rec-btn-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-stream-btn {
  background: var(--accent-gradient);
  color: #fff;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.rec-stream-btn:hover {
  opacity: 0.95;
  box-shadow: var(--shadow-glow);
}

.rec-download-row {
  display: flex;
  gap: 8px;
}

.rec-sub-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}
.rec-sub-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #fff;
}

/* ==========================================================================
   HOCA NE SORAR? (SPOT BİLGİLER & SINAV TÜYOLARI)
   ========================================================================== */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.spot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.spot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  opacity: 0.8;
}

.spot-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
}

.spot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.spot-prob-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.spot-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
}

.spot-box {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.spot-box-question {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
.spot-box-question strong {
  color: #a5b4fc;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.spot-box-answer {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #d1fae5;
}
.spot-box-answer strong {
  color: #34d399;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.spot-box-trap {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fecdd3;
}
.spot-box-trap strong {
  color: #fb7185;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.spot-ref-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   MOBILE & RESPONSIVE (PHONE OPTIMIZATIONS)
   ========================================================================== */
.mobile-header-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 8px 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(8, 10, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 90;
  padding: 0 8px;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  flex: 1;
}

.mobile-nav-item svg {
  width: 19px;
  height: 19px;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  transition: all var(--transition);
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

.mobile-nav-item.active {
  color: #fff;
}

.mobile-nav-item.active svg {
  stroke: #818cf8;
}

.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 16px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spot-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for mobile bottom nav */
  }

  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .mobile-header-toggle {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .app-header {
    height: 56px;
    padding: 0 16px;
  }
  .header-title-wrap h2 {
    font-size: 16px;
  }
  .header-title-wrap p {
    font-size: 11px;
  }

  .search-box {
    display: none;
  }

  .app-content {
    padding: 16px 12px;
  }

  /* 2x2 Clean Mobile Grid for Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-meta {
    font-size: 10px;
  }

  /* Mobile Hero */
  .hero-banner {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: 20px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .hero-actions-row {
    gap: 8px;
    flex-direction: column;
  }
  .btn-hero-primary, .btn-hero-outline {
    width: 100%;
    justify-content: center;
    padding: 11px;
  }

  /* Hub grid */
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .hub-card {
    padding: 16px;
    gap: 14px;
  }
  .hub-card-icon {
    width: 44px;
    height: 44px;
  }
  .hub-card-icon svg {
    width: 22px;
    height: 22px;
  }
  .hub-card-body h3 {
    font-size: 15px;
  }

  /* Roadmap on phone */
  .roadmap-section {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
  }
  .roadmap-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .timeline-step {
    gap: 12px;
  }
  .timeline-marker {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .timeline-step::before {
    left: 13px;
  }
  .timeline-body {
    padding: 12px 14px;
  }
  .timeline-title {
    font-size: 13.5px;
  }

  /* Spot Grid on phone */
  .spot-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .spot-card {
    padding: 18px 16px;
  }

  /* Recordings on phone */
  .recordings-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Quiz on phone */
  .question-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }
  .question-prompt {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .option-item {
    padding: 14px 14px;
    font-size: 13.5px;
  }
  .option-letter {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .quiz-header-card {
    padding: 14px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .quiz-progress-wrap {
    max-width: 100%;
    margin: 0;
  }

  /* Flashcards on phone */
  .flashcard-scene {
    height: 290px;
    margin-bottom: 20px;
  }
  .card-face {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }
  .card-question {
    font-size: 18px;
  }
  .card-answer {
    font-size: 13.5px;
  }
  .card-controls {
    gap: 14px;
  }
  .card-nav-circle {
    width: 40px;
    height: 40px;
  }
}
