/* ==================== EZ IELTS DESIGN SYSTEM ==================== */
/* Dark premium theme with glassmorphism and gradient accents */

:root {
  /* Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-card-hover: rgba(31, 41, 55, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-1: #6C63FF;
  /* Purple */
  --accent-2: #00C9A7;
  /* Teal */
  --accent-3: #FF6B6B;
  /* Coral */
  --accent-4: #FFA726;
  /* Amber */
  --accent-5: #AB47BC;
  /* Violet */

  --gradient-main: linear-gradient(135deg, #6C63FF 0%, #00C9A7 100%);
  --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, #FFA726 100%);
  --gradient-cool: linear-gradient(135deg, #6C63FF 0%, #AB47BC 100%);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(108, 99, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 201, 167, 0.06) 0%, transparent 50%);
}

/* ==================== SIDEBAR ==================== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  background: var(--gradient-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  box-shadow: var(--shadow-glow);
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-main);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: rgba(108, 99, 255, 0.12);
  color: var(--text-primary);
}

.nav-link.active::before {
  opacity: 1;
}

.nav-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-subtle);
}

.api-key-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.api-key-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ==================== APP CONTAINER ==================== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================== HEADER ==================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 60px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.hamburger {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger:hover {
  background: var(--bg-glass-hover);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-spacer {
  width: 40px;
}

/* ==================== MAIN CONTENT ==================== */
.app-main {
  flex: 1;
  padding: 16px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.app-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.app-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  margin-bottom: 24px;
}

.section-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==================== DASHBOARD ==================== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.welcome-text h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.welcome-text p {
  color: var(--text-secondary);
  font-size: 14px;
}

.balance-card {
  background: var(--gradient-main);
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  text-align: center;
  min-width: 160px;
}

.balance-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  font-weight: 600;
}

.balance-amount {
  font-size: 20px;
  font-weight: 800;
}

.stats-overview {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stat-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-2);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.section-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--card-accent);
  transition: width 0.3s ease;
}

.section-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.section-card:hover::before {
  width: 6px;
}

.section-card:active {
  transform: translateX(2px) scale(0.99);
}

.card-icon {
  font-size: 36px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.card-info {
  flex: 1;
}

.card-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.card-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.card-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.card-score {
  color: var(--accent-2);
  font-weight: 600;
}

.card-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.section-card:hover .card-arrow {
  color: var(--text-primary);
  transform: translateX(4px);
}

/* Recent Activity */
.recent-activity h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.activity-item:hover {
  background: var(--bg-glass-hover);
}

.activity-icon {
  font-size: 22px;
}

.activity-info {
  flex: 1;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.activity-date {
  font-size: 12px;
  color: var(--text-muted);
}

.activity-score {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-2);
}

/* ==================== TEST LIST ==================== */
.test-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.test-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.test-card:active {
  transform: translateY(0);
}

.test-card.completed {
  border-left: 3px solid var(--accent-2);
}

.test-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.test-card-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.test-badge {
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 600;
}

.test-badge.new {
  background: rgba(108, 99, 255, 0.2);
  color: var(--accent-1);
}

.test-badge.done {
  background: rgba(0, 201, 167, 0.2);
  color: var(--accent-2);
}

.test-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.test-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== TEST ACTIVE VIEW ==================== */
.test-active {
  animation: fadeIn 0.3s ease;
}

.test-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.test-top-bar h2 {
  font-size: 18px;
  font-weight: 700;
}

.btn-back {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-back:hover {
  background: var(--bg-glass-hover);
}

/* Transcript / Passage Box */
.transcript-box,
.passage-box,
.prompt-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.transcript-label,
.passage-label,
.prompt-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-1);
  font-weight: 600;
  margin-bottom: 12px;
}

.transcript-text,
.passage-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.transcript-text p,
.passage-text p {
  margin-bottom: 12px;
}

.prompt-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.prompt-req {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ==================== QUESTIONS ==================== */
.questions-container {
  margin-bottom: 24px;
}

.questions-container h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.question-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.question-number {
  display: inline-block;
  background: var(--gradient-main);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.question-text {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.option-label:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-1);
}

.option-label input[type="radio"] {
  accent-color: var(--accent-1);
  width: 16px;
  height: 16px;
}

.option-label input[type="radio"]:checked~.option-text {
  color: var(--accent-1);
  font-weight: 600;
}

.fill-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.fill-input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* ==================== BUTTONS ==================== */
.btn-submit,
.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--gradient-main);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-submit:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.4);
}

.btn-submit:active,
.btn-primary:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* ==================== RESULTS ==================== */
.results-container {
  animation: fadeIn 0.3s ease;
}

.results-header {
  text-align: center;
  margin-bottom: 24px;
}

.results-header h2 {
  font-size: 24px;
  font-weight: 800;
}

.results-header h3 {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
}

.score-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-glass);
  border: 3px solid var(--border-light);
}

.score-circle.good {
  border-color: var(--accent-2);
  box-shadow: 0 0 30px rgba(0, 201, 167, 0.3);
}

.score-circle.ok {
  border-color: var(--accent-4);
  box-shadow: 0 0 30px rgba(255, 167, 38, 0.3);
}

.score-circle.poor {
  border-color: var(--accent-3);
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.score-circle .score-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.score-circle .score-number {
  font-size: 32px;
  font-weight: 800;
}

.score-circle .score-percent {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Result items */
.results-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.result-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.result-item.correct {
  border-left: 3px solid var(--accent-2);
}

.result-item.incorrect {
  border-left: 3px solid var(--accent-3);
}

.result-status {
  font-size: 20px;
  flex-shrink: 0;
}

.result-content {
  flex: 1;
}

.result-question {
  font-size: 14px;
  margin-bottom: 4px;
}

.result-answer {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.result-correct {
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.result-explanation {
  font-size: 13px;
  color: var(--accent-4);
  padding: 8px 12px;
  background: rgba(255, 167, 38, 0.08);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ==================== WRITING SECTION ==================== */
.writing-area {
  margin-bottom: 20px;
}

.writing-area textarea,
.speaking-textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: var(--transition);
  min-height: 200px;
}

.writing-area textarea:focus,
.speaking-textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.word-counter {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.api-warning {
  background: rgba(255, 167, 38, 0.12);
  border: 1px solid rgba(255, 167, 38, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--accent-4);
  margin-top: 10px;
}

/* Criteria Grid */
.criteria-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.criteria-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.criteria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.criteria-name {
  font-size: 14px;
  font-weight: 600;
}

.criteria-score {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-2);
}

.criteria-bar {
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.criteria-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.criteria-comment {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Feedback sections */
.feedback-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.feedback-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feedback-section ul {
  padding-left: 20px;
}

.feedback-section li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.feedback-section.strengths {
  border-left: 3px solid var(--accent-2);
}

.feedback-section.improvements {
  border-left: 3px solid var(--accent-4);
}

.feedback-section.revised {
  border-left: 3px solid var(--accent-1);
}

.revised-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}

.your-response-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.your-response-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.your-response-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
}

/* ==================== SPEAKING SECTION ==================== */
.part-indicator {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
}

.part-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  right: 30%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}

.part-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  z-index: 1;
  transition: var(--transition);
}

.part-dot.active {
  background: var(--gradient-main);
  border-color: var(--accent-1);
  box-shadow: var(--shadow-glow);
}

.part-dot.done {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.speaking-part-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.speaking-part-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.part-duration {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cue-card {
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.cue-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-1);
  margin-bottom: 8px;
  font-weight: 600;
}

.cue-card h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.cue-card ul {
  padding-left: 20px;
}

.cue-card li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.prep-timer {
  text-align: center;
}

.btn-prep {
  padding: 10px 24px;
  background: rgba(255, 167, 38, 0.15);
  border: 1px solid rgba(255, 167, 38, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-4);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-prep:hover {
  background: rgba(255, 167, 38, 0.25);
}

.timer-display {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-4);
}

.questions-list-speaking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.speaking-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}

.sq-number {
  width: 24px;
  height: 24px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-1);
  flex-shrink: 0;
}

.sq-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Recording Controls */
.recording-controls {
  margin-bottom: 24px;
}

.recording-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-glass);
  padding: 4px;
  border-radius: var(--radius-md);
}

.mode-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.mode-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.recording-section {
  text-align: center;
}

.record-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-glass);
  border: 2px solid var(--accent-3);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.record-btn:hover {
  background: rgba(255, 107, 107, 0.1);
}

.record-btn.recording {
  background: rgba(255, 107, 107, 0.2);
  border-color: var(--accent-3);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(255, 107, 107, 0);
  }
}

.record-icon {
  font-size: 20px;
}

.recording-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent-2);
}

.part-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.part-navigation .btn-secondary,
.part-navigation .btn-primary,
.part-navigation .btn-submit {
  flex: 1;
}

/* ==================== PROGRESS SECTION ==================== */
.stats-dashboard {
  margin-bottom: 28px;
}

.stats-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  min-width: 100px;
  flex: 1;
  backdrop-filter: blur(10px);
}

.stat-card.highlight {
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.2);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mistake Analysis */
.mistake-analysis {
  margin-bottom: 28px;
}

.mistake-analysis h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mistake-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mistake-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.mistake-type {
  font-size: 14px;
  font-weight: 500;
}

.mistake-count {
  font-size: 13px;
  color: var(--accent-3);
  font-weight: 600;
}

/* History Section */
.history-section {
  margin-bottom: 24px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.history-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-glass);
  padding: 3px;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.filter-btn {
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.filter-btn:hover {
  color: var(--text-primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
}

/* History List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.history-item:hover {
  background: var(--bg-glass-hover);
}

.history-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.history-icon {
  font-size: 22px;
}

.history-info {
  flex: 1;
}

.history-title {
  font-size: 14px;
  font-weight: 600;
}

.history-date {
  font-size: 12px;
  color: var(--text-muted);
}

.history-score {
  font-size: 16px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
}

.history-score.good {
  background: rgba(0, 201, 167, 0.15);
  color: var(--accent-2);
}

.history-score.ok {
  background: rgba(255, 167, 38, 0.15);
  color: var(--accent-4);
}

.history-score.poor {
  background: rgba(255, 107, 107, 0.15);
  color: var(--accent-3);
}

/* Detail Section */
.history-detail {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.2s ease;
}

.detail-perfect {
  color: var(--accent-2);
  font-size: 14px;
  padding: 12px 0;
}

.detail-mistakes h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.detail-mistake {
  padding: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.dm-question {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.dm-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.dm-wrong {
  color: var(--accent-3);
}

.dm-right {
  color: var(--accent-2);
}

.dm-explanation {
  font-size: 12px;
  color: var(--accent-4);
  line-height: 1.5;
}

.detail-feedback {
  padding: 12px 0;
}

.detail-criteria {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.dc-item {
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.dc-item .dc-name {
  font-size: 13px;
  font-weight: 600;
}

.dc-item .dc-score {
  float: right;
  color: var(--accent-2);
  font-weight: 700;
}

.dc-item .dc-comment {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.detail-improvements h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-improvements li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.detail-response h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 6px;
}

.detail-response p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  margin-bottom: 8px;
  transition: var(--transition);
}

.modal-input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.modal-note {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-bottom: 20px !important;
}

.modal-card .btn-primary {
  margin-top: 8px;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
  .app-main {
    padding: 24px 32px;
  }

  .section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stats-row {
    flex-wrap: nowrap;
  }

  .criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .app-header {
    height: 52px;
    padding: 0 12px;
  }

  .header-title {
    font-size: 16px;
  }

  .app-main {
    padding: 12px;
  }

  .balance-card {
    min-width: 140px;
    padding: 10px 18px;
  }

  .balance-amount {
    font-size: 17px;
  }
}

/* ==================== ONBOARDING SCREEN ==================== */
.onboarding-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.onboarding-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.onboarding-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(108, 99, 255, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 201, 167, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(171, 71, 188, 0.08) 0%, transparent 70%);
}

.onboarding-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  max-width: 400px;
  width: 100%;
}

.onboarding-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-main);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 32px;
  color: white;
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.onboarding-title {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.onboarding-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.onboarding-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

.onboarding-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.ob-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: left;
  backdrop-filter: blur(10px);
}

.ob-feature span {
  font-size: 22px;
  width: 28px;
  text-align: center;
}

.onboarding-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.auth-btn:hover {
  transform: translateY(-2px);
}

.auth-btn:active {
  transform: translateY(0);
}

.google-btn {
  background: white;
  color: #333;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.google-btn:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.apple-btn {
  background: #000;
  color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.apple-btn:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.skip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  padding: 10px 20px;
  transition: var(--transition);
}

.skip-btn:hover {
  color: var(--text-primary);
}

/* ==================== SIDEBAR USER ==================== */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.user-name {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== AUDIO PLAYER ==================== */
.audio-player-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.audio-player-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-1);
  margin-bottom: 12px;
}

.audio-player-info {
  margin-bottom: 16px;
}

.audio-player-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.audio-played-notice {
  color: var(--accent-2) !important;
  font-weight: 600;
}

.audio-controls {
  margin-bottom: 12px;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gradient-main);
  border: none;
  border-radius: var(--radius-xl);
  color: white;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.4);
}

.play-btn:active {
  transform: translateY(0);
}

.play-icon {
  font-size: 22px;
}

.audio-complete {
  padding: 12px 20px;
  background: rgba(0, 201, 167, 0.1);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 500;
}

.audio-progress {
  margin-top: 16px;
}

.audio-progress-bar {
  height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.audio-progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

.audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
}

.audio-wave span {
  display: inline-block;
  width: 3px;
  background: var(--accent-1);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.audio-wave span:nth-child(1) {
  animation-delay: 0s;
  height: 10px;
}

.audio-wave span:nth-child(2) {
  animation-delay: 0.1s;
  height: 20px;
}

.audio-wave span:nth-child(3) {
  animation-delay: 0.2s;
  height: 15px;
}

.audio-wave span:nth-child(4) {
  animation-delay: 0.3s;
  height: 25px;
}

.audio-wave span:nth-child(5) {
  animation-delay: 0.4s;
  height: 12px;
}

.audio-wave span:nth-child(6) {
  animation-delay: 0.5s;
  height: 20px;
}

.audio-wave span:nth-child(7) {
  animation-delay: 0.6s;
  height: 18px;
}

.audio-wave span:nth-child(8) {
  animation-delay: 0.7s;
  height: 22px;
}

.audio-wave span:nth-child(9) {
  animation-delay: 0.8s;
  height: 14px;
}

.audio-wave span:nth-child(10) {
  animation-delay: 0.9s;
  height: 10px;
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.transcript-reveal {
  margin-bottom: 24px;
}

/* ==================== PAUSE BUTTON ==================== */
.audio-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pause-btn:hover {
  background: var(--bg-glass-hover);
}

.pause-btn.paused {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.audio-paused-label {
  text-align: center;
  font-size: 14px;
  color: var(--accent-4);
  font-weight: 600;
  margin-top: 8px;
}

/* ==================== MISTAKE ANALYSIS (TABBED + BAR CHARTS) ==================== */
.mistake-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-glass);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.mistake-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.mistake-tab:hover {
  color: var(--text-primary);
}

.mistake-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.mistake-tab-icon {
  font-size: 16px;
}

.mistake-chart-area {
  min-height: 60px;
}

.mistake-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.mistake-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mistake-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mistake-bar-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 120px;
  text-align: right;
  flex-shrink: 0;
}

.mistake-bar-track {
  flex: 1;
  height: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mistake-bar-fill {
  height: 100%;
  background: var(--gradient-warm);
  border-radius: var(--radius-sm);
  min-width: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mistake-bar-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-3);
  min-width: 60px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .mistake-bar-label {
    min-width: 80px;
    font-size: 12px;
  }

  .mistake-tab {
    font-size: 11px;
    padding: 8px 4px;
  }

  .mistake-tab-icon {
    font-size: 14px;
  }
}