/* ==========================================================================
   BIZMASTER : 경영의 신 - 화사한 프리미엄 라이트 테마 (LIGHT THEME)
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-border-hover: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  --primary-blue: #2563eb;
  --primary-blue-light: #eff6ff;
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-purple: #7c3aed;
  --accent-purple-light: #f5f3ff;
  --accent-rose: #e11d48;
  --accent-rose-light: #fff1f2;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Base Container */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 80px 20px;
}

/* Header & Status Bar */
.app-header {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple), var(--accent-emerald), var(--accent-amber));
}

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

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #bfdbfe;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.brand-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #bfdbfe;
}

.brand-text p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Status Grid in Header */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-avatar {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

.status-info {
  flex: 1;
}

.status-label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.status-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

/* EXP Progress Bar */
.exp-progress-wrapper {
  margin-top: 4px;
  width: 100%;
}

.exp-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.exp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.exp-text {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 2px;
  text-align: right;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.nav-tab-btn {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.nav-tab-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Main Content Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

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

/* ==========================================================================
   1. CURRICULUM PANEL
   ========================================================================== */
.stage-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stage-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.stage-card.active {
  border-color: var(--primary-blue);
  background: #f8faff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.stage-badge {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-titles h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.stage-titles p {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.stage-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 6px;
}

/* Stage Detail Box */
.stage-detail-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.stage-detail-header {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 18px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.stage-detail-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-detail-title p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Modules List */
.modules-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.module-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.module-item:hover {
  border-color: #cbd5e1;
}

.module-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--bg-primary);
  user-select: none;
}

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

.module-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.module-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.module-time {
  font-size: 0.8rem;
  color: var(--text-light);
}

.module-chevron {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: transform var(--transition-fast);
}

.module-item.open .module-chevron {
  transform: rotate(180deg);
}

.module-body {
  display: none;
  padding: 20px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--card-border);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.module-item.open .module-body {
  display: block;
}

.module-body h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin: 16px 0 8px 0;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 4px;
}

.module-body h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin: 12px 0 6px 0;
}

.module-body ul, .module-body ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.module-body code {
  background: #e2e8f0;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: monospace;
}

/* Case Study Box */
.case-study-box {
  background: linear-gradient(135deg, #eff6ff, #f8faff);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-study-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
}

.case-situation {
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 18px;
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #dbeafe;
  line-height: 1.6;
}

.case-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-option-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-size: 0.92rem;
  color: #1e293b;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.case-option-btn:hover {
  border-color: var(--primary-blue);
  background: #f0f7ff;
  transform: translateX(4px);
}

.case-feedback {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
  display: none;
}

.case-feedback.show {
  display: block;
}

.case-feedback.correct {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.case-feedback.wrong {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

/* ==========================================================================
   2. QUIZ ARENA PANEL
   ========================================================================== */
.quiz-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.quiz-counter {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
}

.quiz-streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.quiz-question-box {
  margin-bottom: 24px;
}

.quiz-stage-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 8px;
}

.quiz-question-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-opt-btn {
  background: var(--bg-primary);
  border: 2px solid var(--card-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-opt-btn:hover:not(:disabled) {
  border-color: var(--primary-blue);
  background: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quiz-opt-btn.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

.quiz-opt-btn.wrong {
  background: #fff1f2 !important;
  border-color: #f43f5e !important;
  color: #9f1239 !important;
}

.quiz-explanation-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  display: none;
}

.quiz-explanation-box.show {
  display: block;
}

.quiz-exp-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quiz-exp-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.quiz-action-bar {
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: all var(--transition-fast);
}

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

/* ==========================================================================
   3. CEO TYCOON MANAGEMENT SIMULATOR
   ========================================================================== */
.tycoon-dashboard {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.tycoon-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.metric-item {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-gauge-bg {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.metric-gauge-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Tycoon Event Stage */
.tycoon-event-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.tycoon-quarter-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-purple);
  background: var(--accent-purple-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid #ddd6fe;
}

.tycoon-event-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.tycoon-event-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: #f1f5f9;
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.tycoon-choices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tycoon-choice-card {
  background: var(--bg-primary);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

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

.choice-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.choice-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.choice-reason {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Tycoon Finish Report Modal / Card */
.tycoon-report-box {
  text-align: center;
  padding: 36px 20px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
}

.tycoon-grade-badge {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin: 12px 0;
}

/* ==========================================================================
   4. FLASHCARDS & DICTIONARY PANEL
   ========================================================================== */
.flashcards-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--bg-primary);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.filter-category-select {
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.flashcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.flashcard-item {
  perspective: 1000px;
  height: 220px;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.flashcard-front, .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1.5px solid var(--card-border);
}

.flashcard-front {
  background: #ffffff;
}

.flashcard-front:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.flashcard-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.flashcard-term {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.flashcard-eng {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.flashcard-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 16px;
}

.flashcard-back {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  transform: rotateY(180deg);
  border-color: #bfdbfe;
  text-align: left;
  align-items: flex-start;
  justify-content: space-between;
}

.flashcard-def {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

/* ==========================================================================
   5. ACHIEVEMENTS & HALL OF FAME
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.achievement-card {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.achievement-card.locked {
  opacity: 0.55;
  filter: grayscale(80%);
}

.achievement-card.unlocked {
  border-color: #fde68a;
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.ach-icon {
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ach-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.ach-info p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--primary-blue);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease forwards;
  pointer-events: auto;
}

.toast.levelup {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .app-container {
    padding: 12px 14px 60px 14px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .stage-selector {
    grid-template-columns: 1fr;
  }

  .quiz-container {
    padding: 18px;
  }

  .quiz-question-text {
    font-size: 1.1rem;
  }
}
