/* Genius Brain Academy - Modern Crisp Light Theme */
:root {
  --bg-main: #f1f5f9;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-sub: #f8fafc;
  --bg-card-hover: #ffffff;
  --border-color: rgba(203, 213, 225, 0.85);
  --border-glow: rgba(14, 165, 233, 0.4);
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --primary: #0284c7;
  --primary-light: #e0f2fe;
  --blue: #2563eb;
  --purple: #7c3aed;
  --purple-light: #f3e8ff;
  --indigo: #4f46e5;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --emerald: #059669;
  --emerald-light: #d1fae5;
  --rose: #e11d48;
  --rose-light: #ffe4e6;
  --font-main: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 24px rgba(2, 132, 199, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 캔버스 배경 */
#bg-canvas, #confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
#confetti-canvas {
  z-index: 999;
}

/* 앱 메인 래퍼 */
.app-layout {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 상단 글로벌 헤더 */
.global-header {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-md);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-icon {
  font-size: 34px;
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1); filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3)); }
  100% { transform: scale(1.08); filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.35)); }
}

.brand-text h1 {
  font-size: 21px;
  font-weight: 800;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}

.user-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-chip {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.chip-level {
  border-color: #38bdf8;
  color: #0284c7;
  background: #f0f9ff;
}
.chip-coin {
  border-color: #fcd34d;
  color: #b45309;
  background: #fffbeb;
}
.chip-streak {
  border-color: #fca5a5;
  color: #dc2626;
  background: #fef2f2;
}

.icon-button {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.icon-button:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* 경험치 진행률 바 */
.exp-bar-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.exp-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.exp-bar-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.exp-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #0284c7, #8b5cf6);
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
  transition: width 0.4s ease;
}

/* 네비게이션 탭 */
.tab-navigation {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.tab-navigation::-webkit-scrollbar {
  display: none;
}

.nav-tab-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.nav-tab-item:hover {
  color: var(--primary);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.nav-tab-item.active {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

/* 탭 본문 영역 */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-panel.active {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 글래스 카드 기본형 */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.badge-tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.3);
  font-weight: 700;
}

/* 홈 대시보드 스타일 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#radar-canvas {
  max-width: 280px;
  max-height: 280px;
}

/* 두뇌 퀘스트 카드 */
.routine-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.routine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.routine-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.routine-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: transparent;
  transition: all 0.2s;
  background: #fff;
}

.routine-item.done .routine-checkbox {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.routine-item.done .routine-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.routine-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}

.routine-reward {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold);
}

/* 추천 코스 배너 그리드 */
.modes-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.mode-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mode-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.mode-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mode-icon {
  font-size: 30px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.mode-info h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
}
.mode-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

.btn-start-mode {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: var(--primary-light);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-card:hover .btn-start-mode {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* =======================================
   던전 탭 (초/중/고/초고급 4대 던전 배틀)
   ======================================= */
.dungeon-level-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .dungeon-level-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dungeon-level-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 10px;
  border-radius: 14px;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.dungeon-level-btn.active {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.dungeon-level-btn .badge-icon {
  font-size: 24px;
}
.dungeon-level-btn .badge-title {
  font-size: 13.5px;
  font-weight: 700;
}

/* 배틀 아레나 뷰 */
.battle-arena {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.boss-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.boss-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.boss-avatar {
  font-size: 48px;
  filter: drop-shadow(0 4px 8px rgba(225, 29, 72, 0.25));
  animation: float-boss 2.5s ease-in-out infinite alternate;
}

@keyframes float-boss {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.boss-details h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--rose);
}
.boss-details p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.boss-hp-wrap {
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-bar-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.hp-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f43f5e, #fb7185);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
  transition: width 0.3s ease;
}

/* 퀴즈 문제 영역 */
.battle-quiz-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
}

.quiz-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
}

.quiz-question-text {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 20px;
}

.quiz-options-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.quiz-opt-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.quiz-opt-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateX(4px);
}

.quiz-opt-btn.correct {
  background: var(--emerald-light) !important;
  border-color: var(--emerald) !important;
  color: #065f46 !important;
  font-weight: 800;
}

.quiz-opt-btn.wrong {
  background: var(--rose-light) !important;
  border-color: var(--rose) !important;
  color: #9f1239 !important;
  font-weight: 800;
}

.quiz-feedback-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.quiz-feedback-box.show {
  display: block;
}
.quiz-feedback-box.correct {
  background: var(--emerald-light);
  border: 1px solid var(--emerald);
  color: #065f46;
}
.quiz-feedback-box.wrong {
  background: var(--rose-light);
  border: 1px solid var(--rose);
  color: #9f1239;
}

.btn-next-quiz {
  margin-top: 16px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.btn-next-quiz.show {
  display: block;
}

/* 이론 학습 모듈 아코디언 */
.theory-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.theory-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
}

.theory-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.theory-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.theory-content {
  display: none;
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
}
.theory-card.open .theory-content {
  display: block;
}
.theory-card.open .theory-header {
  border-bottom: 1px solid var(--border-color);
  background: #f0f9ff;
}

.action-tip-box {
  margin-top: 14px;
  background: #fffbeb;
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 8px;
}
.action-tip-box strong {
  color: #b45309;
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}
.action-tip-box ul {
  padding-left: 20px;
  font-size: 13px;
  color: #92400e;
}

/* =======================================
   기억의 궁전 (Memory Palace) 탭
   ======================================= */
.palace-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.palace-rooms-nav {
  display: flex;
  gap: 12px;
}

.palace-room-btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.palace-room-btn.active {
  background: #ffffff;
  border-color: var(--purple);
  color: var(--purple);
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

.palace-arena {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.palace-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.palace-spot-card {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 120px;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.palace-spot-card.filled {
  border-style: solid;
  border-color: #38bdf8;
  background: #f0f9ff;
}

.spot-icon {
  font-size: 34px;
}
.spot-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}
.spot-word {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary);
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* =======================================
   사고 실험실 (Mental Model Simulator)
   ======================================= */
.experiment-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.experiment-choices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.choice-btn {
  flex: 1;
  min-width: 220px;
  padding: 15px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.choice-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.experiment-result {
  display: none;
  background: #f5f3ff;
  border-left: 4px solid var(--purple);
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #4c1d95;
}
.experiment-result.show {
  display: block;
}

/* =======================================
   페르미 추정 랩
   ======================================= */
.fermi-step-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fermi-input-row {
  display: flex;
  gap: 10px;
}

.fermi-input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 14px;
}

.btn-fermi-calc {
  padding: 11px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: none;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* =======================================
   천재 카드 도감 & 가챠
   ======================================= */
.gacha-hero-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #e0f2fe 100%);
  border: 1px solid #fde68a;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.btn-gacha-pull {
  padding: 14px 34px;
  border-radius: 30px;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
  transition: all 0.2s;
}

.btn-gacha-pull:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.5);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.genius-card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.genius-card-item.locked {
  filter: grayscale(1);
  opacity: 0.6;
  background: #f1f5f9;
}

.genius-card-item:hover:not(.locked) {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.18);
}

.card-rarity-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.card-avatar {
  font-size: 44px;
}
.card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}
.card-title-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.card-principle {
  font-size: 12.5px;
  color: #78350f;
  background: #fffbeb;
  padding: 10px;
  border-radius: 8px;
  font-style: italic;
  line-height: 1.5;
  border: 1px solid #fef3c7;
}

/* 모달 팝업 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 30px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-btn {
  margin-top: 20px;
  padding: 12px 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: none;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

/* 푸터 */
.global-footer {
  text-align: center;
  padding: 24px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(203, 213, 225, 0.8);
  margin-top: 24px;
}
