
:root {
  --primary: #146B5C;
  --primary-rgb: 20, 107, 92;
  --primary-light: #e6f5f2;
  --primary-hover: #0f5448;
  --accent-gold: #d6ad62;
  --accent-blue: #5278bd;
  --accent-pink: #c98aa4;
  --accent-purple: #9387c9;
  
  --bg-page: #f8fafc;
  --surface-card: #ffffff;
  --border-card: #e2e8f0;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-dim: #94a3b8;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 16px 36px -6px rgba(20, 107, 92, 0.14);
  --shadow-float: 0 24px 50px -12px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 70px;
  overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', monospace; }
.outfit { font-family: 'Outfit', sans-serif; }

.bg-aurora {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 500px;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 18% 10%, rgba(20, 107, 92, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 82% 15%, rgba(214, 173, 98, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 50% -20%, rgba(82, 120, 189, 0.06) 0%, transparent 60%);
}

.container {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 1. Global Navigation Bar */
.hub-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 12px 0;
  margin-bottom: 24px;
}
.hub-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.brand-box {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
}
.brand-logo-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a8f7c 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.35rem; box-shadow: 0 4px 14px rgba(20, 107, 92, 0.28);
}
.brand-text h1 {
  font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px;
}
.brand-tag {
  font-size: 0.7rem; font-weight: 800; color: var(--primary); background: var(--primary-light);
  padding: 2px 7px; border-radius: 999px;
}
.brand-sub { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav-auth {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 800; text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.btn-nav-auth.primary {
  background: var(--primary); color: #ffffff; border: 1px solid var(--primary);
  box-shadow: 0 4px 12px rgba(20, 107, 92, 0.25);
}
.btn-nav-auth.primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-nav-auth.outline { background: #ffffff; color: var(--text-main); border: 1px solid var(--border-card); }
.btn-nav-auth.outline:hover { border-color: var(--primary); color: var(--primary); }

.user-badge {
  display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px;
  background: #ffffff; border: 1px solid var(--border-card); border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.user-avatar-mini {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #d9905a);
  color: #fff; font-size: 0.85rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.user-info-text { font-size: 0.84rem; font-weight: 800; color: var(--text-main); }
.user-info-text span { font-size: 0.72rem; color: var(--text-dim); font-weight: 600; margin-left: 4px; }

/* 2. Hero Dashboard */
.hero-section { margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }

.hero-welcome-card {
  background: linear-gradient(145deg, #ffffff 0%, #f6fbf9 100%);
  border: 1px solid rgba(20, 107, 92, 0.18);
  border-radius: var(--radius-lg); padding: 36px 38px;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-welcome-card::after {
  content: '📖'; position: absolute; right: -10px; bottom: -20px;
  font-size: 130px; opacity: 0.06; pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 800;
  color: var(--primary); background: var(--primary-light); padding: 4px 12px; border-radius: 999px;
  width: fit-content; margin-bottom: 14px;
}
.hero-welcome-card h2 {
  font-size: 1.95rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text-main); line-height: 1.25;
}
.hero-welcome-card h2 span { color: var(--primary); }
.hero-desc { font-size: 0.95rem; color: var(--text-sub); margin: 12px 0 24px; line-height: 1.65; word-break: keep-all; }

.hero-quick-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-hero-act {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px;
  font-size: 0.92rem; font-weight: 800; text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
}
.btn-hero-act.primary {
  background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(20, 107, 92, 0.3);
}
.btn-hero-act.primary:hover {
  background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(20, 107, 92, 0.4);
}
.btn-hero-act.secondary { background: #ffffff; color: var(--text-main); border: 1px solid var(--border-card); }
.btn-hero-act.secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.side-status-deck { display: flex; flex-direction: column; gap: 16px; }

/* 3D 펫 & 스트릭 카드 */
.gamify-card {
  background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-md);
  padding: 22px 24px; box-shadow: var(--shadow-soft); position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gamify-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.gamify-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gamify-badge {
  font-size: 0.74rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.gamify-badge.green { background: #e6f3ec; color: #4d8a6c; }
.gamify-badge.gold { background: #fdf8ee; color: #b88a3a; }

.pet-status-row { display: flex; align-items: center; gap: 14px; }
.pet-avatar-frame {
  width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bbf7d0 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 4px 14px rgba(95, 160, 128, 0.2); flex-shrink: 0;
}
.pet-meta { flex: 1; }
.pet-name-line {
  font-size: 1.05rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px;
}
.pet-level-pill { font-size: 0.68rem; font-weight: 900; background: #5fa080; color: #fff; padding: 2px 7px; border-radius: 999px; }
.pet-coin-text { font-size: 0.82rem; color: var(--text-sub); margin-top: 2px; font-weight: 600; }
.pet-progress-wrap { height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.pet-progress-bar { height: 100%; background: linear-gradient(90deg, #5fa080, #d6ad62); border-radius: 999px; }

/* 독서 여권 버튼 & 상태 카드 */
.passport-teaser-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-md); padding: 18px 22px; color: #ffffff;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-soft); cursor: pointer; transition: all 0.2s;
}
.passport-teaser-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3); }
.passport-teaser-left { display: flex; align-items: center; gap: 12px; }
.passport-badge-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(214, 173, 98, 0.2); border: 1px solid rgba(214, 173, 98, 0.4);
  color: #e0bd7a; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.passport-teaser-info h4 { font-size: 0.98rem; font-weight: 800; color: #f8fafc; }
.passport-teaser-info p { font-size: 0.78rem; color: #94a3b8; }
.passport-stamp-count {
  font-size: 1.1rem; font-weight: 900; color: #e0bd7a; display: flex; align-items: center; gap: 4px;
}

/* 3. 오늘의 4단계 독서 파이프라인 (Daily 4-Step Routine) */
.pipeline-section { margin-bottom: 34px; }
.pipeline-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.pipeline-header h3 {
  font-size: 1.25rem; font-weight: 900; color: var(--text-main); display: flex; align-items: center; gap: 8px;
}
.pipeline-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.pipeline-step-card {
  background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-md);
  padding: 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; transition: all 0.22s ease;
  box-shadow: var(--shadow-soft);
}
.pipeline-step-card:hover {
  transform: translateY(-3px); border-color: var(--step-color, var(--primary));
  box-shadow: var(--shadow-hover);
}
.step-num-pill {
  font-size: 0.68rem; font-weight: 900; padding: 2px 8px; border-radius: 999px;
  background: var(--step-bg, #f1f5f9); color: var(--step-color, var(--primary));
  display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-bottom: 10px;
}
.step-title { font-size: 1.05rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.step-desc { font-size: 0.8rem; color: var(--text-sub); line-height: 1.45; margin-bottom: 14px; flex: 1; }
.step-cta {
  font-size: 0.78rem; font-weight: 800; color: var(--step-color, var(--primary));
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px dashed var(--border-card);
}

/* 4. 문해력 1분 챌린지 위젯 */
.quiz-widget-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg); padding: 28px 32px; color: #ffffff;
  margin-bottom: 36px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.quiz-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.quiz-badge {
  background: rgba(214, 173, 98, 0.2); border: 1px solid rgba(214, 173, 98, 0.4);
  color: #e0bd7a; font-size: 0.74rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.quiz-reward-pill { font-size: 0.76rem; font-weight: 700; color: #8fc4a8; display: inline-flex; align-items: center; gap: 5px; }
.quiz-question-box {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 16px;
}
.quiz-prompt { font-size: 1.05rem; font-weight: 700; color: #f8fafc; line-height: 1.55; }
.quiz-prompt mark { background: rgba(214, 173, 98, 0.35); color: #fbf3dc; padding: 1px 6px; border-radius: 4px; }
.quiz-options-deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc; padding: 12px 16px; border-radius: 12px; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.quiz-opt-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.quiz-opt-btn.correct {
  background: #5fa080 !important; border-color: #5fa080 !important; color: #fff !important;
  box-shadow: 0 0 20px rgba(95, 160, 128, 0.5);
}
.quiz-opt-btn.wrong { background: #cf6f6f !important; border-color: #cf6f6f !important; color: #fff !important; }
.quiz-feedback-banner {
  margin-top: 14px; padding: 10px 16px; border-radius: 10px; font-size: 0.86rem; font-weight: 700;
  display: none; align-items: center; justify-content: space-between;
}

/* 5. 초등 교과 낱말 500 플래시카드 도감 위젯 */
.vocab-deck-card {
  background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-lg);
  padding: 26px 30px; margin-bottom: 36px; box-shadow: var(--shadow-soft);
}
.vocab-deck-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.vocab-flip-container {
  perspective: 1000px; max-width: 520px; margin: 0 auto 16px; cursor: pointer;
}
.vocab-flip-box {
  width: 100%; min-height: 160px; position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.vocab-flip-box.flipped { transform: rotateY(180deg); }
.vocab-front, .vocab-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.vocab-front {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f3ec 100%);
  border: 1.5px solid #86efac; box-shadow: 0 6px 18px rgba(95, 160, 128, 0.12);
}
.vocab-back {
  background: linear-gradient(135deg, #f2f5fb 0%, #e3ebf6 100%);
  border: 1.5px solid #bdd0ea; transform: rotateY(180deg);
  box-shadow: 0 6px 18px rgba(82, 120, 189, 0.12);
}
.vocab-word { font-size: 1.85rem; font-weight: 900; color: var(--primary); letter-spacing: -0.01em; }
.vocab-hanja { font-size: 0.85rem; font-weight: 700; color: #4d8a6c; margin-top: 4px; }
.vocab-tip-hint { font-size: 0.74rem; color: #166534; margin-top: 10px; font-weight: 600; }
.vocab-meaning { font-size: 1.05rem; font-weight: 800; color: #2f4a80; margin-bottom: 6px; }
.vocab-ex { font-size: 0.84rem; color: #5278bd; line-height: 1.5; }

.vocab-nav-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-vocab-nav {
  background: #f1f5f9; border: 1px solid var(--border-card); color: var(--text-sub);
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
}
.btn-vocab-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-vocab-speak {
  background: var(--primary-light); border: 1px solid var(--primary-border); color: var(--primary);
  padding: 6px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 800; cursor: pointer; transition: all 0.2s;
}
.btn-vocab-speak:hover {
  background: var(--primary); color: #fff; transform: translateY(-2px);
}
.vocab-counter { font-size: 0.84rem; font-weight: 800; color: var(--text-dim); }

/* 6. 달빛 서재 동화 큐레이션 */
.section-title-wrap {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 16px;
}
.section-title h3 {
  font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; color: var(--text-main); display: flex; align-items: center; gap: 8px;
}
.section-title p { font-size: 0.88rem; color: var(--text-sub); margin-top: 2px; }
.btn-view-all {
  font-size: 0.85rem; font-weight: 800; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}

.stories-carousel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.story-card {
  background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--story-color, var(--primary)); opacity: 0.8; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--story-color, var(--primary)); }
.story-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.story-icon-box {
  width: 48px; height: 48px; border-radius: 14px; background: rgba(var(--primary-rgb), 0.08);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--story-color, var(--primary));
}
.story-grade-tag { font-size: 0.72rem; font-weight: 800; padding: 3px 8px; background: #f1f5f9; color: var(--text-sub); border-radius: 6px; }
.story-card h4 { font-size: 1.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
.story-sub { font-size: 0.78rem; font-weight: 700; color: var(--story-color, var(--primary)); margin-bottom: 8px; }
.story-card p { font-size: 0.86rem; color: var(--text-sub); line-height: 1.55; margin-bottom: 18px; flex: 1; }
.story-card-footer {
  display: flex; align-items: center; justify-content: space-between; padding-top: 12px;
  border-top: 1px dashed var(--border-card); font-size: 0.82rem; font-weight: 800; color: var(--story-color, var(--primary));
}

/* 7. 핵심 훈련 프로그램 그리드 */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.program-card {
  background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-soft); transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}
.program-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background: var(--p-color, var(--primary)); }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--p-color, var(--primary)); }
.program-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.program-icon-shell {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; background: var(--p-bg, #f1f5f9); color: var(--p-color, var(--primary));
}
.program-rec-pill {
  font-size: 0.72rem; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: #0f172a; color: #fff;
  display: inline-flex; align-items: center; gap: 4px;
}
.program-card h4 { font-size: 1.25rem; font-weight: 900; color: var(--text-main); margin-bottom: 6px; }
.program-desc { font-size: 0.88rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.program-meta-box { background: #f8fafc; border-radius: 10px; padding: 10px 14px; font-size: 0.82rem; color: var(--text-sub); margin-bottom: 18px; font-weight: 600; }
.btn-program-launch {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px;
  background: var(--p-color, var(--primary)); color: #ffffff; font-size: 0.92rem; font-weight: 800; text-decoration: none;
}

/* 8. 포모도로 타이머 & 리포트 */
.study-assist-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; margin-bottom: 40px; }
.timer-card { background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow-soft); }
.timer-circle {
  width: 140px; height: 140px; border-radius: 50%; border: 6px solid var(--primary-light);
  border-top-color: var(--primary); margin: 14px auto 18px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 900; color: var(--text-main);
}
.timer-controls { display: flex; justify-content: center; gap: 10px; }
.btn-timer { padding: 8px 18px; border-radius: 10px; font-size: 0.86rem; font-weight: 800; cursor: pointer; border: none; }
.btn-timer.start { background: var(--primary); color: #fff; }
.btn-timer.reset { background: #f1f5f9; color: var(--text-sub); }

.report-preview-card {
  background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-lg);
  padding: 28px 30px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: space-between;
}
.report-bars-deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 20px; }
.report-stat-col { background: #f8fafc; border-radius: 12px; padding: 14px; text-align: center; }
.report-stat-label { font-size: 0.74rem; font-weight: 700; color: var(--text-dim); }
.report-stat-val { font-size: 1.45rem; font-weight: 900; color: var(--text-main); margin: 4px 0; }
.report-stat-bar { height: 5px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.report-stat-fill { height: 100%; background: var(--primary); border-radius: 999px; }

/* 9. 통합 포털 퀵 링크 & 관리자 도구 */
.portal-links-card { background: #ffffff; border: 1px solid var(--border-card); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow-soft); }
.links-flex-deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.quick-link-box {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #f8fafc;
  border: 1px solid var(--border-card); border-radius: 12px; text-decoration: none; color: var(--text-main);
  font-weight: 800; font-size: 0.9rem; transition: all 0.2s;
}
.quick-link-box:hover { background: #ffffff; border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.admin-deck { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border-card); }
.admin-links-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-admin-pill {
  padding: 8px 16px; background: #f1f5f9; border: 1px solid var(--border-card); border-radius: 999px;
  font-size: 0.82rem; font-weight: 800; color: var(--text-sub); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}

/* 10. 독서 여권 팝업 모달 */
.passport-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(10px);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.passport-modal-backdrop.active { display: flex; }
.passport-deck-box {
  background: #0f172a; border: 2px solid #d6ad62; border-radius: var(--radius-lg);
  width: 100%; max-width: 580px; padding: 36px; color: #ffffff; position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(214, 173, 98, 0.2);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.passport-emblem {
  text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.passport-emblem-icon {
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #d6ad62, #b88a3a);
  color: #0f172a; font-size: 1.8rem; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px; box-shadow: 0 0 20px rgba(214, 173, 98, 0.4);
}
.passport-emblem h3 { font-size: 1.35rem; font-weight: 900; letter-spacing: 0.05em; color: #fbf3dc; }
.passport-emblem p { font-size: 0.78rem; color: #94a3b8; font-family: 'JetBrains Mono', monospace; }

.passport-stamps-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0;
}
.passport-stamp-slot {
  background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px; padding: 14px 8px; text-align: center;
}
.passport-stamp-slot.earned {
  background: rgba(214, 173, 98, 0.15); border: 1px solid #d6ad62;
}
.stamp-slot-icon { font-size: 1.8rem; margin-bottom: 4px; }
.stamp-slot-label { font-size: 0.72rem; font-weight: 800; color: #cbd5e1; }
.stamp-slot-req { font-size: 0.65rem; color: #64748b; font-family: 'JetBrains Mono', monospace; }

/* 간편 로그인 모달 */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.active { display: flex; }
.login-modal-box {
  background: #ffffff; border-radius: var(--radius-lg); width: 100%; max-width: 440px;
  padding: 34px; box-shadow: var(--shadow-float); position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close-btn {
  position: absolute; top: 18px; right: 18px; background: #f1f5f9; border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text-sub);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.modal-title h3 { font-size: 1.4rem; font-weight: 900; color: var(--text-main); }
.modal-title p { font-size: 0.86rem; color: var(--text-sub); margin-top: 4px; }
.modal-role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; background: #f1f5f9; padding: 5px; border-radius: 12px; }
.modal-tab-btn { background: transparent; border: none; padding: 9px; border-radius: 8px; font-size: 0.86rem; font-weight: 800; color: var(--text-sub); cursor: pointer; }
.modal-tab-btn.active { background: #ffffff; color: var(--primary); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.input-field-group { margin-bottom: 14px; }
.input-label { display: block; font-size: 0.82rem; font-weight: 800; color: var(--text-sub); margin-bottom: 6px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap i { position: absolute; left: 14px; color: var(--text-dim); font-size: 1rem; }
.input-ctrl {
  width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--border-card);
  border-radius: 12px; font-size: 0.95rem; font-family: inherit; outline: none;
}
.input-ctrl:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 107, 92, 0.15); }
.btn-modal-submit {
  width: 100%; padding: 14px; border-radius: 12px; background: var(--primary); color: #fff;
  border: none; font-size: 1rem; font-weight: 800; cursor: pointer; margin-top: 8px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-carousel { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .study-assist-grid { grid-template-columns: 1fr; }
  .links-flex-deck { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pipeline-grid { grid-template-columns: 1fr; }
  .stories-carousel { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .links-flex-deck { grid-template-columns: 1fr; }
  .quiz-options-deck { grid-template-columns: 1fr; }
  .hero-welcome-card { padding: 26px 22px; }
  .hero-welcome-card h2 { font-size: 1.55rem; }
}
