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

:root {
  --font-body: 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg:       #0e0e10;
  --bg2:      #16161a;
  --bg3:      #1e1e24;
  --bg4:      #26262e;
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.14);

  --text:     #e8e8f0;
  --text2:    #9090a8;
  --text3:    #5a5a70;

  --teal:     #1D9E75;
  --teal-l:   #E1F5EE;
  --blue:     #378ADD;
  --blue-l:   #E6F1FB;
  --purple:   #7F77DD;
  --purple-l: #EEEDFE;
  --amber:    #EF9F27;
  --amber-l:  #FAEEDA;
  --coral:    #D85A30;
  --coral-l:  #FAECE7;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --nav-h: 56px;
  --sidebar-w: 280px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; }

/* ── Nav ── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(14,14,16,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; padding: 0 1.5rem; gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text); font-weight: 700;
  font-size: 16px; letter-spacing: -0.02em; cursor: pointer;
  flex-shrink: 0;
}
.logo-icon { font-size: 20px; color: var(--teal); }
.nav-center { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); min-width: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.breadcrumb-sep { color: var(--text3); }
.breadcrumb-item { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-item.active { color: var(--text); }

#nav-progress { display: none; }
.progress-pill {
  position: relative; overflow: hidden;
  background: var(--bg3); border: 0.5px solid var(--border);
  border-radius: 20px; padding: 4px 12px; min-width: 80px;
  text-align: center; font-size: 12px; font-weight: 500;
}
.progress-fill-pill {
  position: absolute; inset: 0;
  background: rgba(29,158,117,0.15);
  border-radius: 20px;
  width: 0%; transition: width 0.5s ease;
}
#nav-progress-text { position: relative; color: var(--teal); }

/* ── Pages ── */
.page { display: none; min-height: 100vh; padding-top: var(--nav-h); }
.page.active { display: block; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1.5rem;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(29,158,117,0.08) 0%, transparent 70%);
}
.hero-inner { max-width: 680px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(29,158,117,0.12); border: 0.5px solid rgba(29,158,117,0.3);
  color: var(--teal); font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.hero-title {
  font-size: clamp(28px, 5vw, 48px); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.03em;
  margin-bottom: 1.25rem; color: var(--text);
}
.hero-title em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 2rem; }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 2.5rem;
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item { padding: 1rem 1.5rem; text-align: center; }
.stat-n { display: block; font-size: 22px; font-weight: 700; color: var(--text); }
.stat-l { display: block; font-size: 11px; color: var(--text2); margin-top: 2px; }
.stat-sep { width: 0.5px; height: 40px; background: var(--border); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { background: #16855f; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text2);
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px;
  border: 0.5px solid var(--border2); cursor: pointer; transition: all 0.2s;
}
.btn-ghost:hover { background: var(--bg2); color: var(--text); }

/* ── Section Wrap ── */
.section-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-wrap.alt { background: var(--bg2); max-width: 100%; }
.section-wrap.alt > * { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 2rem;
}

/* ── Module Grid (Home) ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.module-card-home {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; gap: 10px;
}
.module-card-home:hover { border-color: var(--border2); transform: translateY(-2px); background: var(--bg3); }
.mc-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.mc-num { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.mc-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.mc-sub { font-size: 12px; color: var(--text2); line-height: 1.5; }
.mc-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.mc-lessons { font-size: 11px; color: var(--text3); }
.mc-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); margin-left: auto; }
.mc-status-dot.complete { background: var(--teal); }

/* ── What Grid ── */
.what-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.what-card {
  background: var(--bg3); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.what-icon { font-size: 28px; margin-bottom: 0.75rem; }
.what-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.what-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── Course Layout ── */
.course-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  border-right: 0.5px solid var(--border);
  background: var(--bg2);
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-inner { padding: 1.25rem 1rem; }
.sidebar-overall { margin-bottom: 1.5rem; }
.sidebar-prog-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text2); margin-bottom: 6px; }
.sidebar-prog-bar { height: 3px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.sidebar-prog-fill { height: 100%; background: var(--teal); border-radius: 2px; transition: width 0.4s; }

.sb-module { margin-bottom: 4px; }
.sb-module-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s; font-size: 13px; font-weight: 500;
}
.sb-module-header:hover { background: var(--bg3); }
.sb-module-header.open { background: var(--bg3); }
.sb-m-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sb-m-title { flex: 1; color: var(--text); }
.sb-m-chevron { color: var(--text3); font-size: 11px; transition: transform 0.2s; }
.sb-module-header.open .sb-m-chevron { transform: rotate(90deg); }

.sb-lessons { display: none; padding-left: 16px; margin-bottom: 4px; }
.sb-module-header.open + .sb-lessons { display: block; }
.sb-lesson {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12px; color: var(--text2);
  transition: all 0.15s;
}
.sb-lesson:hover { background: var(--bg3); color: var(--text); }
.sb-lesson.active { background: rgba(29,158,117,0.1); color: var(--teal); }
.sb-lesson.done { color: var(--teal); }
.sb-l-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--text3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.sb-l-dot.done { background: var(--teal); border-color: var(--teal); color: #fff; }
.sb-l-dot.active { border-color: var(--teal); }
.sb-l-title { flex: 1; line-height: 1.4; }

/* ── Lesson Main ── */
.lesson-main { flex: 1; min-width: 0; padding: 2.5rem 3rem 4rem; max-width: 780px; }

/* Module Overview */
.module-overview {}
.mo-header { display: flex; align-items: center; gap: 16px; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 0.5px solid var(--border); }
.mo-icon-big { width: 56px; height: 56px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.mo-num { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.mo-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.mo-sub { font-size: 14px; color: var(--text2); margin-top: 4px; }
.mo-lessons-list { display: flex; flex-direction: column; gap: 8px; }
.mo-lesson-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg2);
  border: 0.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s;
}
.mo-lesson-item:hover { border-color: var(--border2); background: var(--bg3); }
.mo-l-num { font-size: 11px; color: var(--text3); min-width: 20px; }
.mo-l-title { font-size: 14px; font-weight: 500; flex: 1; }
.mo-l-meta { display: flex; align-items: center; gap: 8px; }
.mo-l-type { font-size: 11px; padding: 2px 8px; border-radius: 12px; background: var(--bg4); color: var(--text2); }
.mo-l-dur { font-size: 11px; color: var(--text3); }
.mo-l-done { font-size: 12px; color: var(--teal); }

/* Lesson Content */
.lesson-view {}
.lesson-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 0.5px solid var(--border); }
.lesson-type-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 12px; margin-bottom: 10px; }
.lesson-header h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.lesson-meta-row { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text2); }
.lesson-body { line-height: 1.8; }
.lesson-body h2 { font-size: 20px; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); letter-spacing: -0.02em; }
.lesson-body h2:first-child { margin-top: 0; }
.lesson-body h3 { font-size: 16px; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text); }
.lesson-body h4 { font-size: 14px; font-weight: 600; margin: 1rem 0 0.4rem; color: var(--text2); }
.lesson-body p { margin-bottom: 1rem; color: var(--text); }
.lesson-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.lesson-body ul, .lesson-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.lesson-body li { margin-bottom: 0.3rem; color: var(--text); }
.lesson-body code { font-family: var(--font-mono); font-size: 13px; background: var(--bg3); padding: 1px 5px; border-radius: 4px; color: var(--teal); }
.lesson-body strong { font-weight: 600; color: var(--text); }

.code-block {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  background: var(--bg3); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem; overflow-x: auto;
  color: #b8d0e8; white-space: pre;
}
.info-box {
  background: rgba(29,158,117,0.06); border: 0.5px solid rgba(29,158,117,0.25);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem; font-size: 14px; color: var(--text);
}
.info-box.success { background: rgba(55,138,221,0.06); border-color: rgba(55,138,221,0.25); }
.info-box strong { color: var(--teal); }
.info-box.success strong { color: var(--blue); }

.step-list { display: flex; flex-direction: column; gap: 10px; margin: 1rem 0 1.25rem; }
.step { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1rem 0; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

.lesson-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 1rem 0 1.25rem; }
.lesson-table th { background: var(--bg3); color: var(--text2); font-weight: 600; padding: 8px 12px; text-align: left; border: 0.5px solid var(--border); }
.lesson-table td { padding: 8px 12px; border: 0.5px solid var(--border); color: var(--text); }
.lesson-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1rem 0; }
.plugin-card { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 12px; }
.plugin-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.plugin-desc { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 8px; }
.plugin-tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--bg4); color: var(--text2); }
.plugin-tag.rag { background: rgba(29,158,117,0.15); color: var(--teal); }
.plugin-tag.deploy { background: rgba(55,138,221,0.12); color: var(--blue); }

.rendered-preview { background: #fff; color: #222; border-radius: var(--radius); padding: 12px 16px; font-size: 13px; line-height: 1.6; }

.checklist { display: flex; flex-direction: column; gap: 10px; margin: 1rem 0; }
.checklist label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.checklist input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--teal); }

/* Lesson Nav */
.lesson-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 0.5px solid var(--border);
  gap: 12px;
}
.lesson-nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  border: 0.5px solid var(--border); background: var(--bg2);
  cursor: pointer; color: var(--text2); transition: all 0.15s;
}
.lesson-nav-btn:hover { border-color: var(--border2); color: var(--text); background: var(--bg3); }
.lesson-nav-btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.lesson-nav-btn.primary:hover { background: #16855f; }
.done-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  border: 0.5px solid var(--border); background: transparent;
  cursor: pointer; color: var(--text2); transition: all 0.2s;
}
.done-toggle.done { background: rgba(29,158,117,0.1); border-color: var(--teal); color: var(--teal); }

/* Concept page */
.page-inner { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 1.5rem; font-family: var(--font-body); }
.back-btn:hover { color: var(--text); }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2rem; }
.concept-section { margin-bottom: 2.5rem; }
.concept-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 1rem; }
.concept-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.concept-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
.concept-card-icon { font-size: 20px; margin-bottom: 8px; }
.concept-card-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.concept-card p { font-size: 12px; color: var(--text2); line-height: 1.6; }
.flow-diagram { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; }
.flow-diagram h3 { font-size: 14px; font-weight: 600; margin-bottom: 1rem; }
.flow-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-step { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 12px; font-weight: 500; }
.flow-step.hi { background: rgba(29,158,117,0.1); border-color: rgba(29,158,117,0.3); color: var(--teal); }
.flow-arrow { color: var(--text3); font-size: 14px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .lesson-main { padding: 1.5rem 1rem 3rem; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .stat-item { padding: 0.75rem 1rem; }
}

/* ── v2 New Components ─────────────────────────────────────── */

/* Nav link buttons */
.nav-link-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 13px;
  color: var(--text2); padding: 4px 10px; border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-link-btn:hover { color: var(--text); background: var(--bg3); }

/* Section header row */
.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 12px;
}
.section-desc { font-size: 13px; color: var(--text2); margin-top: 4px; }
.btn-ghost.small { padding: 7px 14px; font-size: 13px; }

/* Capsone section */
.capsone-section { background: linear-gradient(180deg, var(--bg) 0%, rgba(15,110,86,0.04) 100%); }
.module-card-home.capsone { border-color: rgba(15,110,86,0.3); }
.module-card-home.capsone:hover { border-color: rgba(15,110,86,0.6); }
.capsone-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; padding: 2px 8px; border-radius: 10px;
  margin-bottom: 8px; text-transform: uppercase;
}

/* Home progress bar */
#home-progress-bar { display: none; }
.home-progress-wrap {
  background: var(--bg2); border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border); padding: 1rem 0;
}
.hp-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 16px;
}
.hp-label { font-size: 13px; color: var(--text2); flex-shrink: 0; }
.hp-bar { flex: 1; height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.hp-fill { height: 100%; background: var(--teal); border-radius: 2px; transition: width 0.5s; }
.hp-pct { font-size: 13px; font-weight: 500; color: var(--teal); min-width: 36px; text-align: right; }
.hp-resume { padding: 7px 16px; font-size: 13px; flex-shrink: 0; }

/* Coming tracks */
.coming-preview-label { font-size: 11px; color: var(--text3); margin: 1.5rem 0 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.coming-preview-row { display: flex; flex-wrap: wrap; gap: 8px; }
.coming-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 0.5px solid var(--border);
  border-radius: 20px; padding: 6px 14px; cursor: pointer;
  font-size: 13px; transition: all 0.15s;
}
.coming-pill:hover { border-color: var(--border2); background: var(--bg4); }
.coming-pill-title { color: var(--text); font-weight: 500; }
.coming-pill-eta { font-size: 11px; color: var(--text3); }

/* Capsone banner */
.capsone-banner {
  display: flex; align-items: flex-start; gap: 12px;
  border: 0.5px solid; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 1.5rem;
  font-size: 13px; line-height: 1.6;
}

/* ── Tracks Page ──────────────────────────────────────────── */
.page-inner.wide { max-width: 1100px; }
.tracks-hero { margin-bottom: 2.5rem; }
.tracks-hero .page-title { margin-bottom: 0.5rem; }
.section-label.capstone { color: #0F6E56; }
.tracks-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(15,110,86,0.12); border: 0.5px solid rgba(15,110,86,0.3);
  color: #1D9E75; padding: 4px 12px; border-radius: 20px; margin-bottom: 0.75rem;
}
.tracks-sub { font-size: 14px; color: var(--text2); line-height: 1.8; margin-top: 0.5rem; max-width: 680px; }
.tracks-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 1rem;
}
.tracks-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 0.5rem;
}
.track-card {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.2s;
}
.track-card.active-track { cursor: pointer; }
.track-card.active-track:hover { border-color: var(--border2); transform: translateY(-2px); background: var(--bg3); }
.track-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.track-icon-big {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.track-status-badge {
  font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 12px;
  letter-spacing: 0.04em; white-space: nowrap;
}
.track-status-badge.available { background: rgba(29,158,117,0.12); color: var(--teal); }
.track-status-badge.coming { background: rgba(55,138,221,0.12); color: var(--blue); }
.track-status-badge.planned { background: var(--bg4); color: var(--text3); }
.track-title { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.3; }
.track-sub { font-size: 12px; color: var(--text2); }
.track-desc { font-size: 12px; color: var(--text2); line-height: 1.6; }
.track-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.track-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--bg4); color: var(--text2);
}
.track-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text3); margin-top: auto;
}
.track-cta { font-weight: 600; margin-left: auto; }

/* ── Nav Auth ── */
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav-user { font-size: 13px; color: var(--text2); }
.nav-link-btn.accent { color: var(--teal); border: 1px solid var(--teal); border-radius: 6px; padding: 4px 10px; }

/* ── Auth Modal ── */
.auth-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7); align-items: center; justify-content: center;
}
.auth-modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px; width: 100%; max-width: 380px;
  position: relative;
}
.auth-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text3);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.auth-close:hover { color: var(--text); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.auth-tab {
  background: none; border: none; color: var(--text3);
  font-size: 14px; font-weight: 500; padding: 8px 16px;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text);
  font-size: 14px; font-family: var(--font-body);
}
.auth-form input:focus { outline: none; border-color: var(--teal); }
.auth-submit { margin-top: 4px; padding: 11px; font-size: 15px; }
.auth-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; border-radius: 8px; padding: 8px 12px; font-size: 13px;
}

/* ── Footer ── */
.site-footer {
  margin-top: 6rem;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  position: relative;
}
.site-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal) 30%, var(--blue) 70%, transparent);
  position: absolute;
  top: -1px; left: 0; right: 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 2rem 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-size: 18px; font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.footer-logo:hover { opacity: 0.8; }
.footer-tagline {
  font-size: 13px; color: var(--text2);
  line-height: 1.7; max-width: 260px;
  font-style: italic;
}
.footer-col-title {
  font-size: 11px; font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col p {
  font-size: 13px; color: var(--text2); line-height: 2;
}
.footer-col a {
  font-size: 13px; color: var(--text2);
  text-decoration: none; display: block; line-height: 2;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 12px; color: var(--text3);
}
.footer-bottom a {
  color: var(--text3); text-decoration: none;
}
.footer-bottom a:hover { color: var(--teal); }
.footer-gwangmyeong {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text3);
}
.footer-gwangmyeong span { font-size: 14px; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
