@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0a2240;
  --secondary: #071a33;
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --accent2: #0d3161;
  --gold: #d4880f;
  --gold-light: #f5a623;
  --green: #1e8449;
  --green-light: #27ae60;
  --blue: #2471a3;
  --blue-light: #3498db;
  --purple: #7d3c98;
  --purple-light: #9b59b6;
  --orange: #ca6f1e;
  --bg: #f0f3f8;
  --bg-warm: #fefefe;
  --card: #ffffff;
  /* text-clean: 글자 투명도 최대 (모든 텍스트 진하게, WCAG AAA 목표) */
  --text: #000000;              /* L1: 제목, 헤더 — 21:1 AAA */
  --text-secondary: #000000;    /* L2: 본문, 라벨 — 21:1 AAA */
  --text-tertiary: #1e293b;     /* L3: 보조 설명 — 12.7:1 AAA */
  --text-muted: #334155;        /* L4: 힌트, 메타 — 8.5:1 AAA */
  --text-disabled: #475569;     /* L5: 비활성 — 6.5:1 AA */
  --text-inverse: #ffffff;      /* 어두운 배경 위 텍스트 */
  --text-success: #15803d;      /* 성공 — 5.8:1 AA */
  --text-error: #b91c1c;        /* 에러 — 6.3:1 AA */
  --text-warning: #a16207;      /* 경고 — 4.7:1 AA */
  /* 어두운 배경(헤더/히어로/푸터) 위 텍스트 위계 */
  --text-on-dark: #ffffff;            /* 제목 — 100% */
  --text-on-dark-secondary: #ffffff;                /* 본문 — 100% */
  --text-on-dark-tertiary: #ffffff;                 /* 보조 — 100% */
  --text-on-dark-muted: #ffffff;      /* 메타 — 100% */
  /* 파스텔톤 배경 */
  --pastel-blue: #e8eef6;
  --pastel-green: #eefbf4;
  --pastel-gold: #fef9ee;
  --pastel-red: #fef2f0;
  --pastel-purple: #f0ecf6;
  --kf-navy: #0a2240;
  --kf-navy-light: #0d2d52;
  --kf-navy-bg: #f0f3f8;
  --border: #e2e8f0;
  --border-light: #f0f3f7;
  --glow: rgba(26,58,107,0.06);
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(26,58,107,0.12);
  --gradient-navy: linear-gradient(135deg, #0a2240 0%, #1a3a6c 100%);
  --gradient-gold: linear-gradient(135deg, #d4880f, #f5a623);
  --gradient-blue: linear-gradient(135deg, #2471a3, #5dade2);
  --gradient-green: linear-gradient(135deg, #1e8449, #2ecc71);
  --gradient-purple: linear-gradient(135deg, #7d3c98, #af7ac5);
  --gradient-accent: linear-gradient(135deg, #c0392b, #e74c3c);
  --glow-gold: 0 0 20px rgba(245,166,35,0.3);
  --glow-blue: 0 0 20px rgba(52,152,219,0.3);
  --glow-green: 0 0 15px rgba(39,174,96,0.25);
  --glow-purple: 0 0 15px rgba(142,68,173,0.25);
}

[data-theme="dark"] {
  --primary: #1a3a5c;
  --secondary: #0f2744;
  --bg: #0f172a;
  --bg-warm: #1e293b;
  --card: #1e293b;
  --text: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-muted: #64748b;
  --text-disabled: #475569;
  --border: #334155;
  --border-light: #1e293b;
  --pastel-blue: #1e293b;
  --pastel-green: #1a2e23;
  --pastel-gold: #2a2517;
  --pastel-red: #2a1a1a;
  --pastel-purple: #231e2e;
  --kf-navy-bg: #0f172a;
  --glow: rgba(200,220,255,0.06);
  --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.2), 0 20px 60px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #e4e9f2 40%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(26,58,107,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(245,166,35,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(142,68,173,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(192,57,43,0.03) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--gold), var(--gold-light), var(--blue-light), var(--gold)) 1;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15), 0 4px 12px rgba(245,166,35,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 10px;
  color: #ffffff;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
}

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

.team-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-on-dark);
  cursor: pointer;
  display: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.team-badge:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 12px rgba(245,166,35,0.2);
}
.team-badge[data-team="A"] { border-color: rgba(52,152,219,0.6); background: rgba(52,152,219,0.15); }
.team-badge[data-team="B"] { border-color: rgba(231,76,60,0.6); background: rgba(231,76,60,0.15); }
.team-badge[data-team="C"] { border-color: rgba(39,174,96,0.6); background: rgba(39,174,96,0.15); }
.team-badge[data-team="D"] { border-color: rgba(142,68,173,0.6); background: rgba(142,68,173,0.15); }
.team-badge[data-team="E"] { border-color: rgba(245,166,35,0.6); background: rgba(245,166,35,0.15); }

.score-display {
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(212,136,15,0.2));
  border: 1px solid rgba(245,166,35,0.4);
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  display: none;
  text-shadow: 0 0 6px rgba(245,166,35,0.3);
}

/* Navigation */
.nav {
  display: flex;
  background: linear-gradient(135deg, #0d2d52 0%, #0a2240 50%, #0d2d52 100%);
  border-bottom: 2px solid rgba(10,34,64,0.3);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(10,34,64,0.2);
  position: sticky;
  top: 74px;
  z-index: 99;
}
.nav::-webkit-scrollbar { display: none; }

.nav-item {
  flex: none;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all 0.25s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.nav-icon { font-size: 13px; }

.nav-item:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.18) 100%);
}
.nav-item.active {
  color: #ffffff;
  border-bottom-color: var(--gold-light);
  background: linear-gradient(180deg, rgba(245,166,35,0.1) 0%, rgba(255,255,255,0.2) 100%);
  font-weight: 800;
  box-shadow: inset 0 -4px 0 var(--gold-light), 0 0 12px rgba(245,166,35,0.15);
  text-shadow: 0 0 8px rgba(245,166,35,0.3);
}

/* 서브메뉴 (드롭다운) — position:fixed로 overflow 회피 */
.nav-item-wrap { position: relative; display: inline-block; }
.nav-submenu {
  display: none;
  position: fixed;
  min-width: 240px;
  background: linear-gradient(135deg, #0d2d52 0%, #0a2240 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  padding: 8px 0;
  z-index: 9999;
}
.nav-item-wrap:hover .nav-submenu,
.nav-submenu:hover { display: block; }
.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}
.nav-sub-item:hover { background: rgba(255,255,255,0.12); padding-left: 20px; }
.nav-sub-item span { font-size: 14px; width: 20px; text-align: center; }
.nav-sub-divider {
  padding: 6px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-sub-divider:first-of-type { border-top: none; margin-top: 0; }

.nav-icon { font-size: 15px; }

/* Main Content */
.main { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }

/* Section */
.section {
  display: block;
  animation: fadeIn 0.4s ease;
  background: linear-gradient(180deg, var(--pastel-blue) 0%, rgba(254,249,238,0.3) 50%, transparent 100%);
  border: 1.5px solid rgba(36,113,163,0.12);
  border-radius: 20px;
  padding: 12px;
  position: relative;
}

.section + .section {
  margin-top: 24px;
  border-top: 2px solid transparent;
  background-clip: padding-box;
}

.section::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,34,64,0.08), rgba(245,166,35,0.08), transparent);
  pointer-events: none;
}

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

/* Cards */
.card {
  background: linear-gradient(135deg, #ffffff 0%, var(--pastel-blue) 100%);
  border: 2px solid rgba(10,34,64,0.12);
  border-top: none;
  border-radius: var(--radius);
  padding: 28px 32px;
  padding-top: 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(26,58,107,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kf-navy), var(--blue-light), var(--gold-light));
}

.card:hover {
  box-shadow: 0 12px 36px rgba(26,58,107,0.16), 0 4px 12px rgba(245,166,35,0.08);
  border-color: rgba(36,113,163,0.3);
  transform: translateY(-4px);
  background: linear-gradient(135deg, #ffffff 0%, #e4ecff 100%);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kf-navy);
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-light), transparent) 1;
}

.card-title .icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(10,34,64,0.15));
}

/* Buttons */
.btn {
  padding: 11px 26px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 2px 8px rgba(192,57,43,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 2px solid #a93226;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,57,43,0.35), 0 0 20px rgba(231,76,60,0.2); border-color: #922b21; }
.btn-primary:hover::after { transform: translateX(100%); }

.btn-secondary {
  background: linear-gradient(135deg, #ffffff, var(--bg));
  color: var(--text-tertiary);
  border: 2px solid var(--blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.25s;
}
.btn-secondary:hover { background: linear-gradient(135deg, #ffffff, var(--pastel-blue)); color: var(--text); border-color: #1a5276; box-shadow: 0 4px 12px rgba(36,113,163,0.15); transform: translateY(-1px); }
.btn-secondary.active { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: white; border-color: #a93226; box-shadow: 0 4px 16px rgba(192,57,43,0.25); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  box-shadow: 0 2px 8px rgba(212,136,15,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 2px solid #b8760c;
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,136,15,0.35), var(--glow-gold); }
.btn-gold:hover::after { transform: translateX(100%); }

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  box-shadow: 0 2px 8px rgba(36,113,163,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 2px solid #1a5276;
  position: relative;
  overflow: hidden;
}
.btn-blue::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(36,113,163,0.35), var(--glow-blue); }
.btn-blue:hover::after { transform: translateX(100%); }

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: white;
  box-shadow: 0 2px 8px rgba(30,132,73,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 2px solid #186a3b;
  position: relative;
  overflow: hidden;
}
.btn-green::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,132,73,0.35), var(--glow-green); }
.btn-green:hover::after { transform: translateX(100%); }

.btn-sm { padding: 7px 15px; font-size: 12px; border-radius: 8px; }

/* ========== HOME ========== */
.hero {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  border: none;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.12), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52,152,219,0.1), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-on-dark);
  letter-spacing: -0.5px;
  position: relative;
}

.hero p { color: var(--text-on-dark-tertiary); font-size: 15px; line-height: 1.7; position: relative; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 20px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-on-dark-secondary);
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--pastel-green) 100%);
  border: 1.5px solid rgba(30,132,73,0.1);
  border-left: 3px solid var(--green);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(30,132,73,0.12);
  border-color: rgba(30,132,73,0.25);
  background: linear-gradient(135deg, #ffffff 0%, #dbf5e6 100%);
}

.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.feature-card p { font-size: 12px; color: var(--text-tertiary); line-height: 1.55; }

/* ========== TEAM SETUP ========== */
.team-setup { max-width: 480px; margin: 0 auto; }

.input-group { margin-bottom: 16px; }

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15), 0 0 12px rgba(245,166,35,0.08);
  background: #fff;
}

/* ========== QUIZ ========== */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-bar {
  flex: 1;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold-light), var(--green-light));
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(245,166,35,0.3);
}

.quiz-count { font-size: 13px; font-weight: 600; color: var(--text-tertiary); white-space: nowrap; }

.quiz-question {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--bg);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  color: var(--text);
}

.quiz-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: rgba(36,113,163,0.08);
  color: var(--blue);
}

.quiz-options { display: flex; flex-direction: column; gap: 8px; }

.quiz-option {
  padding: 14px 20px;
  background: linear-gradient(135deg, #ffffff, var(--pastel-blue));
  border: 1.5px solid rgba(36,113,163,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.quiz-option:hover {
  background: linear-gradient(135deg, #ffffff, var(--pastel-red));
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(192,57,43,0.1);
  transform: translateX(4px);
}

.quiz-option.correct {
  background: rgba(30,132,73,0.06);
  border-color: var(--green);
  color: var(--text-success);
  font-weight: 600;
}

.quiz-option.wrong {
  background: rgba(192,57,43,0.06);
  border-color: var(--accent);
  color: var(--text-error);
}

.quiz-option.selected { border-color: var(--accent); background: rgba(192,57,43,0.04); }

.quiz-explain {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(212,136,15,0.06);
  border: 1px solid rgba(212,136,15,0.15);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  display: none;
  color: var(--text-tertiary);
}

.quiz-timer {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  text-align: center;
}

/* ========== SCENARIO ========== */
.scenario-dialogue {
  background: linear-gradient(180deg, var(--pastel-blue) 0%, var(--pastel-green) 100%);
  border: 1.5px solid rgba(36,113,163,0.12);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  max-height: 420px;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.dialogue-line {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  gap: 12px;
}

.dialogue-line:last-child { border-bottom: none; }

.dialogue-num {
  flex: none;
  width: 26px;
  height: 26px;
  background: var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-disabled);
}

.dialogue-speaker {
  font-weight: 700;
  color: var(--blue);
  min-width: 36px;
}

.dialogue-speaker.buyer { color: var(--green); }

.spin-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  cursor: pointer;
}

.spin-tag.S { background: rgba(36,113,163,0.15); color: var(--blue); border: 1px solid rgba(36,113,163,0.25); }
.spin-tag.P { background: rgba(192,57,43,0.15); color: var(--accent); border: 1px solid rgba(192,57,43,0.25); }
.spin-tag.I { background: rgba(125,60,152,0.15); color: var(--purple); border: 1px solid rgba(125,60,152,0.25); }
.spin-tag.N { background: rgba(212,136,15,0.15); color: var(--gold); border: 1px solid rgba(212,136,15,0.25); }

.spin-classify-btns {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.spin-btn {
  padding: 5px 14px;
  border: 1.5px solid;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.spin-btn.S { border-color: var(--blue); color: var(--blue); }
.spin-btn.S:hover, .spin-btn.S.active { background: var(--blue); color: white; }
.spin-btn.P { border-color: var(--accent); color: var(--accent); }
.spin-btn.P:hover, .spin-btn.P.active { background: var(--accent); color: white; }
.spin-btn.I { border-color: var(--purple); color: var(--purple); }
.spin-btn.I:hover, .spin-btn.I.active { background: var(--purple); color: white; }
.spin-btn.N { border-color: var(--gold); color: var(--gold); }
.spin-btn.N:hover, .spin-btn.N.active { background: var(--gold); color: white; }

/* ========== QUESTION PRACTICE ========== */
.practice-context {
  background: rgba(36,113,163,0.04);
  border: 1px solid rgba(36,113,163,0.12);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.practice-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--purple);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.practice-input:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(52,152,219,0.12), 0 0 12px rgba(52,152,219,0.08);
  background: #fff;
}

.spin-type-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.spin-type-btn {
  flex: 1;
  padding: 12px;
  border: 1.5px solid;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.spin-type-btn .type-name { display: block; font-size: 16px; margin-bottom: 4px; }
.spin-type-btn .type-desc { display: block; font-size: 10px; font-weight: 400; color: inherit; }

.spin-type-btn.S { border-color: var(--blue); color: var(--blue); }
.spin-type-btn.S:hover, .spin-type-btn.S.active { background: rgba(36,113,163,0.08); }
.spin-type-btn.P { border-color: var(--accent); color: var(--accent); }
.spin-type-btn.P:hover, .spin-type-btn.P.active { background: rgba(192,57,43,0.08); }
.spin-type-btn.I { border-color: var(--purple); color: var(--purple); }
.spin-type-btn.I:hover, .spin-type-btn.I.active { background: rgba(125,60,152,0.08); }
.spin-type-btn.N { border-color: var(--gold); color: var(--gold); }
.spin-type-btn.N:hover, .spin-type-btn.N.active { background: rgba(212,136,15,0.08); }

.ai-feedback {
  margin-top: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #fef9f0, #fff8f0);
  border: 1px solid rgba(212,136,15,0.15);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.ai-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ========== ROLEPLAY ========== */
.chat-container {
  background: linear-gradient(180deg, var(--pastel-blue) 0%, var(--pastel-purple) 100%);
  border: 1.5px solid rgba(125,60,152,0.1);
  border-radius: 12px;
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.chat-msg {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: none;
}

.chat-msg.ai .chat-avatar { background: linear-gradient(135deg, var(--accent2), var(--blue)); }
.chat-msg.user .chat-avatar { background: linear-gradient(135deg, var(--accent), var(--gold)); }

.chat-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.chat-msg.ai .chat-bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  color: var(--text-tertiary);
}

.chat-msg.user .chat-bubble {
  background: var(--accent);
  border: none;
  border-top-right-radius: 4px;
  color: #fff;
}

.chat-input-area {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg);
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.chat-input:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(52,152,219,0.12), 0 0 12px rgba(52,152,219,0.08); }

/* ========== SCOREBOARD ========== */
.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
}

.scoreboard-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--gradient-navy);
  border-bottom: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scoreboard-table th:first-child { border-radius: 8px 0 0 0; }
.scoreboard-table th:last-child { border-radius: 0 8px 0 0; }

.scoreboard-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: background 0.2s;
}

.scoreboard-table tr:hover td { background: rgba(52,152,219,0.06); }
.scoreboard-table tr:nth-child(even) td { background: rgba(10,34,64,0.02); }
.scoreboard-table tr:nth-child(even):hover td { background: rgba(52,152,219,0.08); }

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.rank-1 { background: linear-gradient(135deg, #f5a623, #f7d794); color: #000; box-shadow: 0 2px 8px rgba(245,166,35,0.4); }
.rank-2 { background: linear-gradient(135deg, #bdc3c7, #dfe6e9); color: #2d3436; box-shadow: 0 2px 6px rgba(189,195,199,0.4); }
.rank-3 { background: linear-gradient(135deg, #cd6133, #e58e26); color: #fff; box-shadow: 0 2px 6px rgba(205,97,51,0.4); }

.team-score-bar {
  width: 100%;
  height: 16px;
  background: var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.team-score-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s ease;
}

/* ========== COACHING ========== */
.spin-radar {
  width: 280px;
  height: 280px;
  margin: 0 auto 24px;
  position: relative;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff, var(--pastel-gold));
  border: 1.5px solid rgba(212,136,15,0.1);
  border-bottom: 3px solid var(--gold);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.stat-card:hover {
  box-shadow: 0 6px 20px rgba(212,136,15,0.12);
  border-color: rgba(212,136,15,0.25);
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ffffff, #fdf0d5);
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ========== IN/EN Practice ========== */
.need-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--pastel-purple) 100%);
  border: 1.5px solid rgba(125,60,152,0.1);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.need-card:hover { border-color: var(--purple); box-shadow: 0 6px 18px rgba(125,60,152,0.1); transform: translateY(-2px); background: linear-gradient(135deg, #ffffff, #ece3ff); }

.need-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.need-btn {
  flex: 1;
  padding: 9px;
  border: 1.5px solid;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.need-btn.in { border-color: var(--blue); color: var(--blue); }
.need-btn.in:hover, .need-btn.in.active { background: var(--blue); color: white; }
.need-btn.en { border-color: var(--green); color: var(--green); }
.need-btn.en:hover, .need-btn.en.active { background: var(--green); color: white; }

.need-card.correct { border-color: var(--green); background: rgba(30,132,73,0.04); }
.need-card.wrong { border-color: var(--accent); background: rgba(192,57,43,0.04); }

/* ========== Day Schedule ========== */
.schedule-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.schedule-time {
  flex: none;
  width: 80px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.schedule-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text-secondary); }
.schedule-content p { font-size: 12px; color: var(--text-muted); }

.schedule-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 8px;
}
.schedule-badge.lecture { background: rgba(36,113,163,0.08); color: var(--blue); }
.schedule-badge.practice { background: rgba(30,132,73,0.08); color: var(--green); }
.schedule-badge.ai { background: rgba(192,57,43,0.08); color: var(--accent); }

/* Buying Cycle */
.cycle-visual {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 32px 0;
  flex-wrap: wrap;
}

.cycle-stage {
  text-align: center;
  padding: 20px 16px;
  position: relative;
  flex: 1;
  min-width: 140px;
}

.cycle-stage::after {
  content: '>';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

.cycle-stage:last-child::after { display: none; }

.cycle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
}

.cycle-stage:nth-child(1) .cycle-icon { background: rgba(36,113,163,0.12); border: 2px solid rgba(36,113,163,0.2); box-shadow: 0 4px 12px rgba(36,113,163,0.1); }
.cycle-stage:nth-child(2) .cycle-icon { background: rgba(192,57,43,0.12); border: 2px solid rgba(192,57,43,0.2); box-shadow: 0 4px 12px rgba(192,57,43,0.1); }
.cycle-stage:nth-child(3) .cycle-icon { background: rgba(125,60,152,0.12); border: 2px solid rgba(125,60,152,0.2); box-shadow: 0 4px 12px rgba(125,60,152,0.1); }
.cycle-stage:nth-child(4) .cycle-icon { background: rgba(212,136,15,0.12); border: 2px solid rgba(212,136,15,0.2); box-shadow: 0 4px 12px rgba(212,136,15,0.1); }

.cycle-name { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.cycle-eng { font-size: 10px; color: var(--text-disabled); }

/* Results modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal h2 { font-size: 22px; margin-bottom: 8px; color: var(--text); }
.modal .big-score { font-size: 56px; font-weight: 900; color: var(--gold); }

/* FAB Section */
.fab-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--pastel-blue) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: all 0.3s;
}
.fab-card:hover {
  border-left-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(36,113,163,0.1);
  transform: translateY(-1px);
}

.fab-label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.fab-label.f { background: rgba(36,113,163,0.08); color: var(--blue); }
.fab-label.a { background: rgba(125,60,152,0.08); color: var(--purple); }
.fab-label.b { background: rgba(30,132,73,0.08); color: var(--green); }

/* ========== RESPONSIVE: TABLET (768px) ========== */
@media (max-width: 768px) {
  .header { padding: 12px 16px; }
  .main { padding: 20px 12px; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 40px 16px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .spin-type-selector { flex-wrap: wrap; }
  .spin-type-btn { flex: none; width: calc(50% - 4px); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cycle-visual { flex-direction: column; align-items: center; }
  .cycle-stage::after { display: none; }
  .chat-bubble { max-width: 85%; }
  .card { padding: 20px 16px; }
  .nav-item { padding: 8px 8px; font-size: 11px; gap: 3px; }
  .nav-icon { font-size: 12px; }
  .section { padding: 6px; }

  /* 터치 타겟 최소 44px */
  .btn { min-height: 44px; padding: 12px 20px; font-size: 14px; }
  .btn-sm { min-height: 38px; padding: 8px 12px; font-size: 12px; }
}

/* ========== RESPONSIVE: MOBILE (480px) ========== */
@media (max-width: 480px) {
  .header { padding: 10px 12px; }
  .logo-text { font-size: 14px; }
  .logo-sub { font-size: 9px; }
  .logo-img { height: 28px; }
  .main { padding: 12px 8px; }
  .section { padding: 4px; border: none; }
  .card { padding: 16px 12px; margin-bottom: 12px; border-radius: 12px; }
  .card-title { font-size: 15px; margin-bottom: 12px; padding-bottom: 8px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; }

  /* 네비게이션 극도로 컴팩트 */
  .nav-item { padding: 8px 6px; font-size: 10px; gap: 2px; }
  .nav-icon { font-size: 11px; }

  /* 폰트 최소 크기 보정 */
  .quiz-count { font-size: 12px; }
  .quiz-question { font-size: 14px; padding: 14px 16px; }
  .quiz-option { padding: 12px 14px; font-size: 13px; }
  .quiz-explain { font-size: 12px; padding: 12px 14px; }
  .practice-context { font-size: 13px; padding: 14px; }
  .dialogue-line { font-size: 13px; gap: 8px; }

  /* 채팅 */
  .chat-container { height: 300px; padding: 12px; }
  .chat-bubble { max-width: 90%; font-size: 13px; padding: 10px 12px; }

  /* 이미지 반응형 */
  img { max-width: 100%; height: auto; }
}

/* ========== RESPONSIVE: SMALL MOBILE (360px) ========== */
@media (max-width: 360px) {
  .nav-item { padding: 6px 4px; font-size: 9px; }
  .card { padding: 12px 10px; }
  .btn { font-size: 13px; padding: 10px 14px; }
}

/* ========== 터치 UX ========== */
@media (hover: none) and (pointer: coarse) {
  button:active, .btn:active, a:active { transform: scale(0.97); }
  * { -webkit-tap-highlight-color: transparent; }
}

/* ========== 저전력 모드 대응 ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Animations */
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.confetti { pointer-events: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 300; }

/* ========== AUTH SCREENS ========== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}

.auth-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 0 20px;
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-logo-img {
  height: 44px;
  width: auto;
}

.auth-logo-text { text-align: left; }

.auth-logo-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.auth-logo-text span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-input-group { margin-bottom: 16px; }

.auth-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15), 0 0 12px rgba(245,166,35,0.08);
  background: #fff;
}

.auth-input::placeholder { color: var(--text-disabled); }

.auth-row { display: flex; gap: 12px; }
.auth-row .auth-input-group { flex: 1; }

.auth-btn {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 8px;
  box-shadow: 0 2px 10px rgba(192,57,43,0.2);
}

.auth-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.25);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-error {
  background: rgba(192,57,43,0.06);
  border: 1px solid rgba(192,57,43,0.15);
  color: var(--text-error);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.auth-error.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-disabled);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-disabled);
  line-height: 1.5;
}

/* Header logout */
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-on-dark-tertiary);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-on-dark);
}

/* ========== PREMIUM FOOTER ========== */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-on-dark-secondary);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-top {
  display: flex;
  gap: 60px;
  margin-bottom: 32px;
}

.footer-brand { flex: 0 0 320px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-on-dark);
}

.footer-logo-sub {
  font-size: 9px;
  color: var(--text-on-dark-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #ffffff;
}

.footer-links {
  flex: 1;
  display: flex;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #2ecc71;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.footer-col a:hover { color: var(--text-on-dark-secondary); }

.footer-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.3), rgba(52,152,219,0.3), transparent);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-sep { margin: 0 4px; color: var(--text-on-dark); }

.footer-badges { display: flex; gap: 8px; }

.footer-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-badge.accent {
  background: rgba(233,69,96,0.2);
  border-color: rgba(233,69,96,0.4);
  color: #e94560;
}

@media (max-width: 768px) {
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-brand { flex: none; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
  .footer-col { min-width: 120px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { padding: 32px 16px 24px; }
  .footer-badges { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .footer-links { gap: 16px; }
  .footer-col { min-width: 100%; }
  .footer-copy { font-size: 11px; }
  .footer-desc { font-size: 12px; }
}
