/* ========================================
   English Star - 英语之星
   Global Stylesheet
   ======================================== */

/* CSS Variables */
:root {
  --pink: #FF6B9D;
  --teal: #4ECDC4;
  --yellow: #FFD93D;
  --green: #6BCB77;
  --blue: #4D96FF;
  --purple: #C77DFF;
  --orange: #FF9A3C;
  --light-pink: #FFE4F0;
  --light-teal: #E0F7F6;
  --light-yellow: #FFF9E0;
  --light-green: #E6F9E8;
  --light-blue: #E3EFFF;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-600: #6C757D;
  --dark: #2D3436;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 50px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #FFF0F7 0%, #F0F8FF 50%, #F0FFF4 100%);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ========================================
   Typography
   ======================================== */
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ========================================
   Layout
   ======================================== */
.container { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.page-wrap { padding: 20px 0 100px; }

/* ========================================
   Header
   ======================================== */
.site-header {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  color: white;
  padding: 16px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.site-header h1 {
  font-size: 1.6rem;
  margin: 0;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}
.site-header .subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 2px;
}
.back-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: background 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.back-btn:hover { background: rgba(255,255,255,0.4); }

/* ========================================
   Bottom Navigation
   ======================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 200;
  border-top: 1px solid var(--gray-200);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-item .nav-icon { font-size: 1.5rem; transition: transform 0.2s; }
.nav-item:hover .nav-icon { transform: scale(1.2); }
.nav-item.active { color: var(--pink); }
.nav-item.active .nav-icon { filter: drop-shadow(0 2px 4px rgba(255,107,157,0.4)); }

/* ========================================
   Cards
   ======================================== */
.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-pink { border-color: var(--light-pink); background: linear-gradient(135deg, #FFF, var(--light-pink)); }
.card-teal { border-color: var(--light-teal); background: linear-gradient(135deg, #FFF, var(--light-teal)); }
.card-yellow { border-color: var(--light-yellow); background: linear-gradient(135deg, #FFF, var(--light-yellow)); }
.card-green { border-color: var(--light-green); background: linear-gradient(135deg, #FFF, var(--light-green)); }
.card-blue { border-color: var(--light-blue); background: linear-gradient(135deg, #FFF, var(--light-blue)); }

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-pink { background: linear-gradient(135deg, var(--pink), #FF8FB1); }
.btn-teal { background: linear-gradient(135deg, var(--teal), #6EE7E1); }
.btn-yellow { background: linear-gradient(135deg, #F9A825, var(--yellow)); color: var(--dark); }
.btn-green { background: linear-gradient(135deg, var(--green), #8FE09A); }
.btn-blue { background: linear-gradient(135deg, var(--blue), #7AB8FF); }
.btn-purple { background: linear-gradient(135deg, var(--purple), #DDA0FF); }
.btn-gray { background: var(--gray-300); color: var(--gray-600); }
.btn-outline {
  background: white;
  border: 2px solid var(--pink);
  color: var(--pink);
  box-shadow: none;
}
.btn-outline:hover { background: var(--light-pink); }
.btn-lg { padding: 16px 32px; font-size: 1.2rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; display: flex; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ========================================
   Progress Bar
   ======================================== */
.progress-container { margin: 12px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--gray-600); margin-bottom: 6px; font-weight: 600; }
.progress-bar {
  height: 16px;
  background: var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========================================
   Stars
   ======================================== */
.stars-display { font-size: 1.5rem; letter-spacing: 2px; }
.star { color: #DDD; transition: all 0.3s; }
.star.earned { color: var(--yellow); text-shadow: 0 2px 6px rgba(255,215,0,0.6); }
.star.earned.big { transform: scale(1.2); }

/* ========================================
   Day Calendar Grid (index.html)
   ======================================== */
.calendar-section { margin: 20px 0; }
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.days-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.day-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--gray-200);
  position: relative;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90px;
  justify-content: center;
}
.day-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.day-card.completed { border-color: var(--green); background: linear-gradient(135deg, #FFF, var(--light-green)); }
.day-card.today { border-color: var(--pink); background: linear-gradient(135deg, #FFF, var(--light-pink)); animation: pulse-border 2s infinite; }
.day-card.locked { opacity: 0.5; cursor: not-allowed; background: var(--gray-100); }
.day-card.locked:hover { transform: none; box-shadow: var(--shadow-sm); }
.day-card.review-day { border-color: var(--teal); background: linear-gradient(135deg, #FFF, var(--light-teal)); }
.day-num { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.day-tag { font-size: 0.65rem; font-weight: 700; color: var(--gray-600); margin-top: 2px; }
.day-icon { font-size: 1.2rem; margin-top: 4px; }
.day-stars { font-size: 0.8rem; margin-top: 2px; }
.day-card .check-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
@keyframes pulse-border {
  0%, 100% { border-color: var(--pink); box-shadow: 0 0 0 0 rgba(255,107,157,0.4); }
  50% { border-color: var(--purple); box-shadow: 0 0 0 6px rgba(255,107,157,0); }
}

/* ========================================
   Hero / Stats Area
   ======================================== */
.hero-card {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 50%, var(--blue) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '⭐';
  position: absolute;
  font-size: 100px;
  opacity: 0.08;
  right: -10px;
  top: -20px;
}
.hero-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.hero-subtitle { opacity: 0.9; font-size: 0.95rem; margin-bottom: 16px; }
.stats-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-item {
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  text-align: center;
  flex: 1;
  min-width: 80px;
}
.stat-num { font-size: 1.5rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.7rem; opacity: 0.9; }

/* ========================================
   Vocabulary Cards (Flip Cards)
   ======================================== */
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.flip-card {
  height: 120px;
  cursor: pointer;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.flip-card-front { background: linear-gradient(135deg, var(--blue), var(--teal)); color: white; }
.flip-card-back { background: linear-gradient(135deg, var(--pink), var(--purple)); color: white; transform: rotateY(180deg); }
.vocab-en { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.vocab-phonetic { font-size: 0.75rem; opacity: 0.85; }
.vocab-cn { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.speak-btn {
  background: rgba(255,255,255,0.3);
  border: none;
  color: white;
  border-radius: var(--radius-xl);
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}
.speak-btn:hover { background: rgba(255,255,255,0.5); }

/* ========================================
   Sentences Section
   ======================================== */
.sentence-list { list-style: none; margin: 16px 0; }
.sentence-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.sentence-item:hover { transform: translateX(4px); border-left-color: var(--pink); }
.sentence-item .sentence-icon { font-size: 1.3rem; flex-shrink: 0; }
.sentence-en { font-size: 1rem; font-weight: 700; color: var(--blue); }
.sentence-cn { font-size: 0.9rem; color: var(--gray-600); margin-top: 2px; }

/* ========================================
   Grammar Points
   ======================================== */
.grammar-card {
  background: linear-gradient(135deg, var(--light-yellow), white);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.grammar-card .grammar-title { font-size: 0.8rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.grammar-card .grammar-text { font-size: 1rem; color: var(--dark); }

/* ========================================
   Quiz Styles
   ======================================== */
.quiz-header {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.q-count { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.question-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.question-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--light-blue);
  color: var(--blue);
}
.question-text { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; line-height: 1.5; }
.options-grid { display: grid; gap: 12px; }
.option-btn {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  background: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.option-btn:hover { border-color: var(--blue); background: var(--light-blue); }
.option-btn.selected { border-color: var(--blue); background: var(--light-blue); }
.option-btn.correct { border-color: var(--green); background: var(--light-green); color: #1a5c2a; animation: bounce 0.4s; }
.option-btn.wrong { border-color: var(--pink); background: var(--light-pink); color: #8B0000; }
.option-btn.show-correct { border-color: var(--green); background: var(--light-green); }
.option-label { background: var(--gray-200); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; font-size: 0.85rem; }
.correct .option-label { background: var(--green); color: white; }
.wrong .option-label { background: var(--pink); color: white; }
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.fill-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.fill-input:focus { border-color: var(--blue); }
.fill-input.correct { border-color: var(--green); background: var(--light-green); }
.fill-input.wrong { border-color: var(--pink); background: var(--light-pink); }

.feedback-box {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeIn 0.3s;
}
.feedback-box.correct { background: var(--light-green); border: 2px solid var(--green); color: #1a5c2a; }
.feedback-box.wrong { background: var(--light-pink); border: 2px solid var(--pink); color: #8B0000; }
.feedback-icon { font-size: 1.3rem; flex-shrink: 0; }

/* Quiz Result */
.result-card {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.result-score { font-size: 3.5rem; font-weight: 800; margin: 16px 0; }
.result-stars { font-size: 2.5rem; margin: 12px 0; }
.result-msg { font-size: 1.2rem; opacity: 0.9; margin-bottom: 20px; }

/* ========================================
   Sentence Builder
   ======================================== */
.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 12px 0;
  border: 2px dashed var(--gray-300);
}
.word-chip {
  padding: 8px 14px;
  background: white;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.word-chip:hover { background: var(--blue); color: white; }
.word-chip.used { opacity: 0.3; cursor: not-allowed; }
.answer-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
  background: var(--light-blue);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 12px 0;
  border: 2px solid var(--blue);
}
.answer-chip {
  padding: 8px 14px;
  background: var(--blue);
  color: white;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.answer-chip:hover { background: var(--pink); }
.answer-chip .remove-x { font-size: 0.75rem; opacity: 0.8; }

/* ========================================
   Drag and Drop Matching
   ======================================== */
.matching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.match-col { display: flex; flex-direction: column; gap: 8px; }
.match-item {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  user-select: none;
}
.match-en { background: var(--light-blue); border-color: var(--blue); color: var(--blue); }
.match-cn { background: var(--light-pink); border-color: var(--pink); color: var(--dark); }
.match-item.selected { transform: scale(1.03); }
.match-item.matched-correct { background: var(--light-green); border-color: var(--green); color: #1a5c2a; cursor: default; }
.match-item.matched-wrong { background: var(--light-pink); border-color: var(--pink); animation: shake 0.4s; }
.match-item.disabled { opacity: 0.4; cursor: not-allowed; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ========================================
   Review Page
   ======================================== */
.tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.2s;
}
.tab-btn.active { background: white; color: var(--pink); box-shadow: var(--shadow-sm); }

.review-word-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.review-word-en { font-size: 2rem; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.review-word-phonetic { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 12px; }
.review-answer { font-size: 1.5rem; font-weight: 700; color: var(--pink); margin-top: 12px; display: none; }
.review-answer.show { display: block; animation: fadeIn 0.3s; }

.wrong-list { list-style: none; }
.wrong-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--pink);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.wrong-item .wrong-q { font-weight: 700; font-size: 0.95rem; }
.wrong-item .wrong-details { font-size: 0.85rem; color: var(--gray-600); margin-top: 4px; }
.wrong-item .mastered-badge {
  background: var(--light-green);
  color: var(--green);
  border-radius: var(--radius-xl);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.wrong-item .attempts-count { font-size: 0.8rem; color: var(--gray-600); }

/* ========================================
   Achievement Page
   ======================================== */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.badge-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.badge-card.earned { border-color: var(--yellow); animation: glow 2s infinite; }
.badge-card.locked { opacity: 0.5; filter: grayscale(0.8); }
@keyframes glow {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 20px rgba(255,215,0,0.5); }
}
.badge-icon { font-size: 2.5rem; margin-bottom: 8px; }
.badge-name { font-size: 0.85rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.badge-desc { font-size: 0.75rem; color: var(--gray-600); }
.badge-earned-date { font-size: 0.7rem; color: var(--green); font-weight: 700; margin-top: 4px; }
.badge-card .lock-overlay {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 1rem;
  color: var(--gray-300);
}

/* ========================================
   Exam Page
   ======================================== */
.exam-header {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.exam-timer {
  font-size: 2rem;
  font-weight: 800;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  margin: 8px 0;
}
.section-label {
  background: var(--orange);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 16px;
}

/* ========================================
   Celebration / Confetti
   ======================================== */
.confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 3s ease-in forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.celebration-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-width: 340px;
  width: 90%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.celebration-popup.show { transform: translate(-50%, -50%) scale(1); }
.celebration-popup .big-emoji { font-size: 4rem; margin-bottom: 12px; }
.celebration-popup h2 { font-size: 1.5rem; color: var(--dark); margin-bottom: 8px; }
.celebration-popup p { color: var(--gray-600); margin-bottom: 20px; }

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease; }
.slide-down { animation: slideDown 0.3s ease; }

/* ========================================
   Loading Spinner
   ======================================== */
.spinner {
  width: 48px; height: 48px;
  border: 5px solid var(--gray-200);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   Tooltip / Info boxes
   ======================================== */
.info-box {
  background: var(--light-blue);
  border: 2px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.info-box .info-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ========================================
   Empty States
   ======================================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-600);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .days-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .day-card { padding: 8px 4px; min-height: 75px; }
  .day-num { font-size: 1.1rem; }
  .vocab-grid { grid-template-columns: repeat(2, 1fr); }
  .flip-card { height: 110px; }
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .btn-lg { padding: 14px 24px; font-size: 1.05rem; }
  .hero-card { padding: 18px; }
  .stats-row { gap: 10px; }
  .question-card { padding: 18px; }
  .result-score { font-size: 2.8rem; }
}

@media (max-width: 400px) {
  .days-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .day-card { padding: 6px 2px; min-height: 68px; }
  .day-num { font-size: 1rem; }
  .day-icon { font-size: 1rem; }
  .day-stars, .day-tag { display: none; }
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-pink { color: var(--pink); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray-600); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* Day Page specific */
.lesson-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.lesson-tab {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  background: white;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: var(--gray-600);
}
.lesson-tab.active { background: var(--blue); border-color: var(--blue); color: white; }

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 12px;
}
.section-header .section-icon { font-size: 1.5rem; }
.section-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), transparent);
  margin: 20px 0;
}

/* Phonetic display */
.phonetic { font-size: 0.8rem; color: var(--gray-600); font-style: italic; }

/* Number badge */
.num-badge {
  background: var(--blue);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Fun activity box */
.fun-box {
  background: linear-gradient(135deg, #FFF9E0, #FFF0F7);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.fun-box .fun-title { font-size: 1.1rem; font-weight: 800; color: var(--orange); margin-bottom: 8px; }
.fun-box .fun-desc { font-size: 0.95rem; color: var(--dark); }

/* Review schedule display */
.review-schedule-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
}
.review-due-today { border-color: var(--teal); background: var(--light-teal); }
.review-due-badge {
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.due-today { background: var(--teal); color: white; }
.due-future { background: var(--gray-200); color: var(--gray-600); }
.due-overdue { background: var(--pink); color: white; }

/* Streak display */
.streak-display {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.streak-num { font-size: 2.5rem; font-weight: 800; }
.streak-label { font-size: 0.9rem; opacity: 0.9; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

/* ==========================================
   Additional styles for interactive features
   ========================================== */

/* Toast notification */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--dark); color: white; padding: 12px 24px; border-radius: var(--radius-xl);
  font-size: 0.95rem; z-index: 9999; opacity: 0; transition: all 0.3s ease;
  box-shadow: var(--shadow-lg); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Confetti */
.confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -20px; width: 12px; height: 12px;
  border-radius: 3px; animation: confetti-fall 3s ease-in forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Vocab card flip */
.vocab-card { perspective: 800px; cursor: pointer; min-height: 120px; }
.vocab-card-inner {
  position: relative; width: 100%; min-height: 120px; transition: transform 0.6s;
  transform-style: preserve-3d;
}
.vocab-card.flipped .vocab-card-inner { transform: rotateY(180deg); }
.vocab-front, .vocab-back {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  backface-visibility: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px;
  background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border: 3px solid var(--teal);
}
.vocab-back { transform: rotateY(180deg); background: var(--light-teal); border-color: var(--green); }
.vocab-en { font-size: 1.4rem; font-weight: 800; color: var(--blue); }
.vocab-phonetic { font-size: 0.85rem; color: var(--gray-600); margin-top: 4px; }
.vocab-cn { font-size: 1.5rem; font-weight: 800; color: var(--green); }
.vocab-en-small { font-size: 0.9rem; color: var(--gray-600); margin-top: 4px; }
.vocab-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }

/* Speak button */
.speak-btn {
  background: none; border: none; font-size: 1.3rem; cursor: pointer;
  padding: 4px 8px; border-radius: 50%; transition: transform 0.2s;
}
.speak-btn:hover { transform: scale(1.2); }

/* Sentence items */
.sentence-item {
  background: white; border-radius: var(--radius-md); padding: 14px 18px;
  margin-bottom: 10px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--blue);
}
.sentence-en { font-size: 1.1rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.sentence-cn { font-size: 0.95rem; color: var(--gray-600); margin-top: 4px; }

/* Grammar items */
.grammar-item {
  background: linear-gradient(135deg, var(--light-yellow), var(--light-green));
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 10px;
}
.grammar-point { font-size: 1rem; line-height: 1.6; }

/* Learn sections */
.learn-section { animation: fadeIn 0.3s ease; }
.learn-section.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Step progress */
.learn-progress {
  display: flex; gap: 4px; margin-bottom: 20px; padding: 12px;
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.step {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: var(--radius-sm);
  font-size: 0.8rem; color: var(--gray-600); background: var(--gray-100);
  transition: all 0.3s;
}
.step.active { background: var(--teal); color: white; font-weight: 700; }

/* Section hint */
.section-hint { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 12px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border: none; border-radius: var(--radius-md); font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; text-decoration: none; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--blue)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--gray-200); color: var(--dark); }
.btn-danger { background: var(--pink); color: white; }
.btn-success { background: var(--green); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.2rem; }
.btn-next { display: block; width: 100%; margin-top: 20px; }

/* Quiz entry card */
.quiz-entry-card { text-align: center; background: white; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.quiz-entry-card h2 { margin-bottom: 12px; }
.quiz-entry-card p { margin-bottom: 20px; color: var(--gray-600); }

/* Match game */
.match-game { display: flex; gap: 16px; margin: 16px 0; }
.match-column { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.match-btn {
  padding: 12px 16px; border: 3px solid var(--gray-200); border-radius: var(--radius-md);
  background: white; cursor: pointer; font-size: 1rem; font-weight: 600;
  transition: all 0.3s; text-align: center;
}
.match-btn.selected { border-color: var(--blue); background: var(--light-blue); }
.match-btn.matched { border-color: var(--green); background: var(--light-green); opacity: 0.6; pointer-events: none; }
.match-btn.wrong { border-color: var(--pink); background: var(--light-pink); animation: shake 0.3s; }
.match-result { text-align: center; font-size: 1.2rem; font-weight: 700; padding: 16px; color: var(--green); }

@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Scramble game */
.scramble-hint { font-size: 0.95rem; color: var(--gray-600); margin: 8px 0; }
.scramble-area {
  min-height: 60px; background: var(--light-blue); border: 2px dashed var(--blue);
  border-radius: var(--radius-md); padding: 12px; margin: 12px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.scramble-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.word-chip {
  padding: 8px 16px; background: white; border: 2px solid var(--blue);
  border-radius: var(--radius-xl); cursor: pointer; font-weight: 600;
  transition: all 0.2s;
}
.word-chip:hover { background: var(--light-blue); }
.scramble-result { text-align: center; font-weight: 700; padding: 12px; margin-top: 12px; }

.fun-desc { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 12px; }

/* Quiz styles */
.quiz-progress { margin-bottom: 20px; }
.quiz-progress-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 4px; transition: width 0.3s; }
.quiz-progress-text { font-size: 0.85rem; color: var(--gray-600); text-align: right; margin-top: 4px; }

.quiz-card { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.question-number { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 8px; }
.question-text { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.5; }

.option-btn {
  display: block; width: 100%; padding: 14px 18px; margin-bottom: 10px;
  background: white; border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  text-align: left; font-size: 1rem; cursor: pointer; transition: all 0.2s;
}
.option-btn:hover { border-color: var(--blue); background: var(--light-blue); }
.option-btn.correct { border-color: var(--green); background: var(--light-green); }
.option-btn.wrong { border-color: var(--pink); background: var(--light-pink); }
.option-letter { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); text-align: center; line-height: 28px; font-weight: 800; margin-right: 8px; font-size: 0.85rem; }

.quiz-feedback { margin-top: 16px; padding: 14px; border-radius: var(--radius-md); }
.feedback-correct { color: var(--green); background: var(--light-green); padding: 12px; border-radius: var(--radius-sm); }
.feedback-wrong { color: #c0392b; background: var(--light-pink); padding: 12px; border-radius: var(--radius-sm); }

.fill-input-wrap { display: flex; gap: 8px; }
.fill-input { flex: 1; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-md); font-size: 1.1rem; }
.fill-input:focus { border-color: var(--blue); outline: none; }

/* Quiz result */
.quiz-result { text-align: center; background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.quiz-result.hidden { display: none; }
.result-stars { font-size: 3rem; margin-bottom: 12px; }
.result-score { font-size: 1.2rem; margin: 12px 0; }
.result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* Review styles */
.review-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 12px; border: 2px solid var(--gray-200); background: white; border-radius: var(--radius-md); font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; }
.tab-btn.active { border-color: var(--teal); background: var(--teal); color: white; }
.review-panel.hidden { display: none; }
.review-info { background: white; border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.review-desc { font-size: 0.9rem; color: var(--gray-600); margin: 8px 0; }
.review-stats, .wrong-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; margin-top: 8px; }

.review-card {
  background: white; border-radius: var(--radius-md); padding: 16px;
  margin-bottom: 10px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal);
  transition: all 0.3s;
}
.review-card.reviewed { opacity: 0.4; transform: translateX(50px); }
.review-card.forgot { opacity: 0.4; transform: translateX(-50px); }
.review-word-en { font-size: 1.2rem; font-weight: 700; }
.review-word-cn { font-size: 1rem; margin: 8px 0; }
.review-actions { display: flex; gap: 8px; margin-top: 8px; }

.wrong-card {
  background: white; border-radius: var(--radius-md); padding: 16px;
  margin-bottom: 10px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--pink);
}
.wrong-question { font-weight: 700; margin-bottom: 8px; }
.wrong-text { color: var(--pink); }
.correct-text { color: var(--green); font-weight: 700; }
.wrong-explanation { font-size: 0.9rem; color: var(--gray-600); margin: 8px 0; }
.wrong-progress { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 8px; }

.no-review, .no-wrong { text-align: center; padding: 40px; }
.no-review.hidden, .no-wrong.hidden { display: none; }
.no-review-icon { font-size: 3rem; display: block; margin-bottom: 12px; }

/* Achievement styles */
.achievement-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--blue); }
.stat-label { font-size: 0.85rem; color: var(--gray-600); }

.section-title { margin: 20px 0 16px; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badge-card {
  background: white; border-radius: var(--radius-lg); padding: 20px; text-align: center;
  box-shadow: var(--shadow-sm); border: 3px solid var(--gray-200); transition: all 0.3s;
}
.badge-card.earned { cursor: pointer; }
.badge-card.earned:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.badge-card.celebrate { animation: pulse 0.5s; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.badge-icon { font-size: 2.5rem; margin-bottom: 8px; }
.badge-name { font-weight: 800; font-size: 0.95rem; }
.badge-desc { font-size: 0.8rem; color: var(--gray-600); margin: 4px 0; }
.badge-date { font-size: 0.75rem; }

/* Exam styles */
.exam-section { margin-top: 24px; text-align: center; }
.exam-cards { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.exam-card { display: flex; flex-direction: column; align-items: center; padding: 24px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 3px solid var(--yellow); text-decoration: none; color: var(--dark); transition: all 0.3s; }
.exam-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.exam-icon { font-size: 2rem; margin-bottom: 8px; }
.exam-title { font-weight: 700; }
.exam-score { font-size: 0.9rem; color: var(--green); margin-top: 4px; }

.exam-intro { text-align: center; }
.exam-intro-card { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.exam-body.hidden, .exam-intro.hidden { display: none; }

/* Calendar grid */
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.day-card {
  display: block; background: white; border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-sm); border: 3px solid var(--gray-200);
  text-decoration: none; color: var(--dark); transition: all 0.3s; position: relative;
}
.day-card.unlocked:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.day-card.complete { border-color: var(--green); background: var(--light-green); }
.day-card.locked { opacity: 0.5; cursor: not-allowed; }
.day-card.review { border-color: var(--yellow); }
.day-card.review.complete { border-color: var(--green); }
.day-number { font-weight: 800; font-size: 0.9rem; color: var(--blue); }
.day-title { font-size: 0.85rem; color: var(--gray-600); margin-top: 4px; }
.day-stars { font-size: 0.8rem; margin-top: 6px; }
.day-lock { position: absolute; top: 8px; right: 8px; font-size: 1rem; }
.day-check { position: absolute; top: 8px; right: 8px; font-size: 1rem; }

/* Header */
.app-header { background: linear-gradient(135deg, var(--pink), var(--purple)); color: white; padding: 20px; text-align: center; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.app-header.compact { padding: 12px 16px; }
.app-header h1 { font-size: 1.5rem; }
.subtitle { font-size: 0.9rem; opacity: 0.9; }
.back-btn { color: white; text-decoration: none; font-size: 0.9rem; float: left; }

/* Stats bar */
.stats-bar { display: flex; justify-content: center; gap: 24px; margin-top: 12px; }
.stat-item { font-size: 0.9rem; }
.stat-icon { margin-right: 4px; }

/* Progress section */
.progress-section { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.progress-bar-wrapper { flex: 1; height: 12px; background: var(--gray-200); border-radius: 6px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--green), var(--teal)); border-radius: 6px; transition: width 0.5s; }
.progress-text { font-weight: 700; font-size: 0.9rem; }

/* Container */
.container { max-width: 800px; margin: 0 auto; padding: 16px; }

/* Bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; display: flex; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 100; }
.nav-item { flex: 1; text-align: center; padding: 10px 4px; text-decoration: none; color: var(--gray-600); font-size: 0.75rem; transition: color 0.3s; }
.nav-item.active { color: var(--teal); }
.nav-icon { display: block; font-size: 1.3rem; margin-bottom: 2px; }

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