/* ==========================================================================
   時代華語 1 (Modern Chinese) — Flashcard Web Application
   Desktop-First Minimalist Learning Design System
   ========================================================================== */

:root {
  /* Color Palette — Warm Minimalist Sage & Lavender */
  --bg-app: #F7F9F8;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F3;
  --bg-card: #FFFFFF;
  --bg-card-back: #FBFDFB;
  
  --primary: #2F4F43;
  --primary-rgb: 47, 79, 67;
  --primary-hover: #233C33;
  --primary-light: #EBF3EF;
  
  --accent-sage: #588157;
  --accent-sage-light: #E8F0E8;
  --accent-lavender: #6D6875;
  --accent-lavender-light: #F0EDF5;
  --accent-gold: #B5832C;
  --accent-gold-light: #FCF6E8;
  
  --text-main: #1D2A24;
  --text-muted: #566861;
  --text-subtle: #899B94;
  --border-light: #E1E8E4;
  --border-subtle: #EDF2EF;
  
  /* Learning Status Colors */
  --status-known: #2E7D32;
  --status-known-bg: #E8F5E9;
  --status-known-border: #A5D6A7;
  
  --status-learning: #E65100;
  --status-learning-bg: #FFF3E0;
  --status-learning-border: #FFCC80;
  
  --status-difficult: #C62828;
  --status-difficult-bg: #FFEBEE;
  --status-difficult-border: #EF9A9A;
  
  /* Typography */
  --font-chinese: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Hiragino Sans GB", "Songti TC", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 12px 36px rgba(47, 79, 67, 0.08), 0 2px 8px rgba(47, 79, 67, 0.04);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-flip: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* App Header */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent-sage));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-chinese);
  box-shadow: 0 2px 6px rgba(47, 79, 67, 0.25);
}

.brand-text h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Top Navigation Tabs */
.nav-modules {
  display: flex;
  background: var(--bg-surface-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  gap: 4px;
}

.nav-tab {
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-tab:hover {
  color: var(--primary);
}

.nav-tab.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-surface-alt);
  color: var(--primary);
  border-color: var(--border-subtle);
}

/* Layout Container */
.main-content {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 2rem 3rem;
}

/* Dashboard View */
.dashboard-hero {
  background: linear-gradient(135deg, #FAF7F2 0%, #EFF5F2 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.25rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.hero-text h2 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
}

.hero-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.4rem;
  text-align: center;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
}

.hero-stat-card .stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stat-card .stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

/* Section Header */
.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Units Grid */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.unit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-sage);
}

.unit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.unit-num {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-sage);
  letter-spacing: 0.5px;
}

.unit-title-cn {
  font-family: var(--font-chinese);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.unit-title-vn {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.unit-sections-preview {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--bg-surface-alt);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.preview-pill {
  text-align: center;
  font-size: 0.75rem;
}

.preview-pill .pill-name {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.preview-pill .pill-count {
  font-weight: 700;
  color: var(--primary);
}

.unit-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unit-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-right: 0.75rem;
}

.unit-progress-fill {
  height: 100%;
  background: var(--accent-sage);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.unit-progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Unit Detail View
   ========================================================================== */
.unit-detail-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.back-btn:hover {
  color: var(--primary);
  background: var(--border-light);
}

.unit-detail-titles h2 {
  font-family: var(--font-chinese);
  font-size: 1.75rem;
  color: var(--primary);
}

.unit-detail-titles p {
  color: var(--text-muted);
  font-size: 1rem;
}

.modes-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.mode-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.mode-card.all-mode {
  border-color: var(--accent-sage);
  background: linear-gradient(to bottom, #FAFDFB, #FFFFFF);
}

.mode-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mode-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.mode-card h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.mode-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.mode-card-stat {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.mode-count {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.mode-btn-start {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mode-btn-start:hover {
  background: var(--primary-hover);
}

/* Full Lesson Reader Toggle Card */
.lesson-reader-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.lesson-reader-info h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.lesson-reader-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Flashcard Study View
   ========================================================================== */
.study-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.study-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.study-info-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.study-unit-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.study-counter {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.study-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tool {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.btn-tool:hover, .btn-tool.active {
  background: var(--bg-surface-alt);
  color: var(--primary);
  border-color: var(--primary);
}

/* Search and Filter Row */
.filter-search-row {
  width: 100%;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-input-box {
  flex: 1;
  position: relative;
}

.search-input-box input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.search-input-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Flashcard 3D Scene */
.flashcard-scene {
  width: 100%;
  height: 440px;
  perspective: 1200px;
  margin-bottom: 1.25rem;
}

.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--transition-flip);
  cursor: pointer;
}

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

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
}

/* Card Front */
.card-front {
  padding: 2rem 2.5rem;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFB 100%);
}

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

.card-source-tag {
  font-size: 0.75rem;
  color: var(--text-subtle);
  background: var(--bg-surface-alt);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.card-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.chinese-char-lg {
  font-family: var(--font-chinese);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pinyin-front {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent-sage);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.pos-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--accent-lavender-light);
  color: var(--accent-lavender);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Card Back */
.card-back {
  transform: rotateY(180deg);
  padding: 1.75rem 2.25rem;
  background: var(--bg-card-back);
  overflow-y: auto;
}

.back-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.back-term {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.back-chinese {
  font-family: var(--font-chinese);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.back-pinyin {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-sage);
}

.meanings-block {
  margin-bottom: 1.25rem;
}

.vietnamese-meaning {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.english-meaning {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Example Box */
.example-box {
  background: var(--bg-surface-alt);
  border-left: 3px solid var(--accent-sage);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  position: relative;
}

.example-cn {
  font-family: var(--font-chinese);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.example-pinyin {
  font-size: 0.85rem;
  color: var(--accent-sage);
  margin-bottom: 0.2rem;
}

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

/* Grammar Card Special Styling */
.grammar-pattern-box {
  background: var(--accent-lavender-light);
  border: 1px dashed var(--accent-lavender);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-lavender);
  text-align: center;
  margin: 1rem 0;
}

.grammar-notes-box {
  background: var(--accent-gold-light);
  border-left: 3px solid var(--accent-gold);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #795516;
  margin-top: 0.75rem;
}

/* Study Control Buttons */
.study-controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nav-buttons-group {
  display: flex;
  gap: 0.5rem;
}

.btn-nav {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-nav:hover:not(:disabled) {
  background: var(--bg-surface-alt);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.audio-buttons-group {
  display: flex;
  gap: 0.5rem;
}

.btn-audio {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-audio:hover {
  background: var(--primary);
  color: #fff;
}

.btn-audio.slow {
  background: var(--bg-surface-alt);
  color: var(--text-muted);
}

.btn-audio.slow:hover {
  background: var(--border-light);
  color: var(--primary);
}

/* Status Rating Bar */
.status-rating-bar {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-status {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: var(--transition-fast);
}

.btn-status.known {
  background: var(--status-known-bg);
  color: var(--status-known);
  border-color: var(--status-known-border);
}

.btn-status.known:hover, .btn-status.known.active {
  background: var(--status-known);
  color: #fff;
}

.btn-status.learning {
  background: var(--status-learning-bg);
  color: var(--status-learning);
  border-color: var(--status-learning-border);
}

.btn-status.learning:hover, .btn-status.learning.active {
  background: var(--status-learning);
  color: #fff;
}

.btn-status.difficult {
  background: var(--status-difficult-bg);
  color: var(--status-difficult);
  border-color: var(--status-difficult-border);
}

.btn-status.difficult:hover, .btn-status.difficult.active {
  background: var(--status-difficult);
  color: #fff;
}

.btn-status .key-hint {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Keyboard Hints Footer */
.keyboard-hints-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.kbd-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  margin-right: 0.25rem;
}

/* ==========================================================================
   Lesson Text Reader View (Dialogue 1, 2, Reading)
   ========================================================================== */
.reader-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 42, 36, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.reader-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.reader-modal-window {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.reader-modal-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-alt);
}

.reader-modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.reader-dialogue-line {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.reader-dialogue-line:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-light);
}

.reader-speaker {
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.5rem;
}

.reader-cn-text {
  font-family: var(--font-chinese);
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.6;
}

.reader-pinyin-text {
  font-size: 0.9rem;
  color: var(--accent-sage);
  margin: 0.2rem 0;
}

.reader-vn-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Data Audit View & Modal
   ========================================================================== */
.audit-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.audit-table th {
  background: var(--bg-surface-alt);
  color: var(--primary);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.audit-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.audit-table tr:hover {
  background: #FAFDFB;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.verified {
  background: var(--status-known-bg);
  color: var(--status-known);
}

.status-badge.review {
  background: var(--status-learning-bg);
  color: var(--status-learning);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--text-main);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.25s ease forwards;
}

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

/* Utilities */
.hidden {
  display: none !important;
}

/* ==========================================================================
   PHASE 2: PRACTICE MODE & WORKSPACE STYLES
   ========================================================================== */

/* Vocabulary Section Workspace */
.vocab-section-workspace {
  margin-bottom: 2rem;
}

.workspace-header-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.workspace-title-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.workspace-scope-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-sage);
  letter-spacing: 0.5px;
}

.workspace-title-box h3 {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}

.workspace-scope-pills {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface-alt);
  padding: 0.35rem;
  border-radius: var(--radius-full);
}

.scope-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.scope-pill:hover {
  color: var(--primary);
}

.scope-pill.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* AREA 1: Study Flashcards Card */
.learning-area-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.learning-area-card:hover {
  border-color: var(--accent-sage);
  box-shadow: var(--shadow-md);
}

.learning-area-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.area-title-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.area-icon {
  font-size: 2rem;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.area-title-group h4 {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.area-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.area-stats-action {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.area-count-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-sage);
}

.btn-primary-sage {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

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

/* AREA 2: Practice Exercises Section */
.practice-exercises-section {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.practice-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.practice-heading-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.practice-heading-icon {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  background: var(--accent-sage-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-heading-left h4 {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.practice-heading-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 3 Practice Cards Grid */
.practice-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.practice-func-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.practice-func-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pfunc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pfunc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.pfunc-icon {
  font-size: 1.35rem;
}

.practice-func-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.practice-func-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  min-height: 40px;
}

.pfunc-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.pfunc-count {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.pfunc-score {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.btn-practice-card {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-sage);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-practice-card:hover {
  background: var(--primary);
}

/* ==========================================================================
   QUIZ SCREEN & EXERCISE INTERFACE
   ========================================================================== */
.practice-container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.practice-top-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.practice-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.practice-title-tag {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.practice-progress-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.practice-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.practice-progress-bar {
  width: 140px;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.practice-progress-fill {
  height: 100%;
  background: var(--accent-sage);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Question Prompt Panels */
.practice-card-prompt {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.prompt-instruction {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prompt-hanzi-large {
  font-family: var(--font-chinese);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0 1rem;
  letter-spacing: 2px;
}

.prompt-vn-large {
  font-family: var(--font-body);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}

.prompt-sentence-box {
  font-family: var(--font-chinese);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0.75rem 0 1.25rem;
  line-height: 1.6;
}

.practice-blank-slot {
  display: inline-block;
  min-width: 80px;
  padding: 0 0.5rem;
  margin: 0 0.25rem;
  color: var(--accent-sage);
  border-bottom: 3px solid var(--accent-sage);
  font-weight: 700;
}

.prompt-sub-hint {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Audio Hero Player for Listening */
.audio-pulse-player {
  margin: 1.25rem auto 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-audio-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent-sage));
  color: #fff;
  border: none;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(47, 79, 67, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-fast);
}

.btn-audio-hero:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(47, 79, 67, 0.35);
}

.audio-hero-icon {
  font-size: 1.5rem;
}

/* 4 Options Grid */
.practice-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.practice-option-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.practice-option-card:hover:not(.locked) {
  border-color: var(--accent-sage);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.practice-option-card.selected:not(.locked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
}

.practice-option-card.locked {
  cursor: default;
}

.practice-option-card.opt-correct {
  border-color: var(--status-known) !important;
  background: var(--status-known-bg) !important;
  box-shadow: 0 0 0 2px var(--status-known);
}

.practice-option-card.opt-incorrect {
  border-color: var(--status-difficult) !important;
  background: var(--status-difficult-bg) !important;
  box-shadow: 0 0 0 2px var(--status-difficult);
}

.opt-letter-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opt-num {
  font-size: 0.65rem;
  color: var(--text-subtle);
  line-height: 1;
}

.opt-letter {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.opt-content {
  flex: 1;
}

.opt-main-text {
  font-family: var(--font-chinese);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.opt-main-text.opt-text-vn {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.4;
}

.opt-sub-pinyin {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.practice-action-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.btn-practice-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-practice-submit.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-practice-submit:hover:not(.disabled) {
  background: var(--primary-hover);
}

/* Feedback Panel */
.practice-feedback-panel {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
  border: 1.5px solid;
  animation: feedbackIn 0.25s ease forwards;
}

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

.practice-feedback-panel.fb-correct {
  background: var(--status-known-bg);
  border-color: var(--status-known-border);
}

.practice-feedback-panel.fb-incorrect {
  background: var(--status-difficult-bg);
  border-color: var(--status-difficult-border);
}

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

.fb-status-badge {
  font-size: 1.15rem;
  font-weight: 700;
}

.fb-correct .fb-status-badge {
  color: var(--status-known);
}

.fb-incorrect .fb-status-badge {
  color: var(--status-difficult);
}

.fb-btn-audio {
  background: #fff;
}

.fb-completed-sentence {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.fb-sen-cn {
  font-family: var(--font-chinese);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.fb-sen-py {
  font-size: 0.95rem;
  color: var(--accent-lavender);
  margin-bottom: 0.2rem;
}

.fb-sen-vn {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fb-target-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.fb-hanzi {
  font-family: var(--font-chinese);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.4rem;
}

.fb-pinyin {
  color: var(--accent-lavender);
  font-weight: 600;
}

.fb-vn {
  color: var(--text-muted);
}

.fb-explanation {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.fb-action-row {
  display: flex;
  justify-content: flex-end;
}

.btn-practice-next {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-practice-next:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   RESULTS DASHBOARD & DETAILED ANSWER REVIEW
   ========================================================================== */
.results-dashboard-box {
  max-width: 900px;
  margin: 0 auto;
}

.results-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.results-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.results-title {
  font-family: var(--font-chinese);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.results-type-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.results-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-stat-item {
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
}

.res-val {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.res-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.results-action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-res-action {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-res-action:hover:not(.disabled) {
  background: var(--bg-surface-alt);
  border-color: var(--border-subtle);
}

.btn-res-action.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-res-action.primary:hover {
  background: var(--primary-hover);
}

.btn-res-action.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Detailed Review Section */
.results-review-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.review-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.review-header-bar h3 {
  font-size: 1.15rem;
  color: var(--primary);
}

.review-filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface-alt);
  padding: 0.35rem;
  border-radius: var(--radius-full);
}

.filter-tab {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.review-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1.5px solid;
}

.review-card.rev-correct {
  background: #F7FCF8;
  border-color: var(--status-known-border);
}

.review-card.rev-incorrect {
  background: #FDF7F7;
  border-color: var(--status-difficult-border);
}

.rev-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.rev-q-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.rev-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

.pill-ok {
  background: var(--status-known-bg);
  color: var(--status-known);
}

.pill-err {
  background: var(--status-difficult-bg);
  color: var(--status-difficult);
}

.rev-card-prompt {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.rev-hanzi {
  font-family: var(--font-chinese);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.rev-sentence {
  font-family: var(--font-chinese);
  font-weight: 600;
  color: var(--primary);
}

.rev-answers-comparison {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
}

.ans-label {
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.text-ok {
  color: var(--status-known);
}

.text-err {
  color: var(--status-difficult);
}

.rev-explanation {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.rev-audio-row {
  display: flex;
  justify-content: flex-end;
}

.empty-review {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

