/* ==========================================================
   IB메이트 — 공통 스타일
   중고등학생 대상: 밝고 깨끗한 화이트 베이스 + 인디고/바이올렛 포인트
   ========================================================== */

:root {
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef2ff;
  --primary-line: #c7d2fe;
  --violet: #7c3aed;
  --pink: #ec4899;
  --mint: #0d9488;
  --mint-soft: #ccfbf1;
  --sun: #facc15;
  --sun-soft: #fef9c3;
  --coral: #e11d48;
  --coral-soft: #ffe4e6;
  --sky: #0284c7;
  --sky-soft: #e0f2fe;

  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #f7f8fc;
  --surface: #ffffff;

  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 120%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf2f8 100%);

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

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px -4px rgba(30, 27, 75, .10), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px -16px rgba(30, 27, 75, .22);

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-display: 'Outfit', var(--font);

  --header-h: 68px;
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 8px; }
svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 2.2; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow.dark { background: rgba(255, 255, 255, .1); color: #c7d2fe; }
.section-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.section-desc { margin-top: 12px; color: var(--muted); font-size: 17px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.hl-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-mark { background: linear-gradient(transparent 62%, rgba(250, 204, 21, .55) 62%); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px;
}
.card-title { font-size: 18px; font-weight: 800; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap; background: transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(139, 92, 246, .8); }
.btn-grad:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary-line); color: var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: #e0e7ff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f1f5f9; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-live { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px rgba(225, 29, 72, .9); }
.btn-live:hover { background: #be123c; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .15s, color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--primary-line); color: var(--primary); }

/* ---------- Tags / chips / badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--line-soft); color: var(--text);
  white-space: nowrap;
}
.tag svg.lucide { width: 13px; height: 13px; }
.tag-primary { background: var(--primary-soft); color: var(--primary-strong); }
.tag-mint { background: var(--mint-soft); color: #0f766e; }
.tag-sun { background: var(--sun-soft); color: #854d0e; }
.tag-coral { background: var(--coral-soft); color: #be123c; }
.tag-sky { background: var(--sky-soft); color: #0369a1; }
.tag-violet { background: #f3e8ff; color: #6d28d9; }

.chip {
  height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--primary-line); color: var(--primary); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.live-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--coral); line-height: 1.4;
}
.live-pill::before, .live-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite;
}
.live-pill::before { background: #fff; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--coral); font-weight: 800; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.03em; }
.logo-mark {
  position: relative; width: 36px; height: 36px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(99, 102, 241, .8);
}
.logo-mark::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--sun); border: 2px solid #fff;
}
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: -2px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--text); transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--line-soft); color: var(--ink); }
.nav a.is-active { color: var(--primary); background: var(--primary-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1020; color: #cbd5e1; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer .logo { color: #fff; }
.footer-about { margin-top: 16px; font-size: 14px; color: #94a3b8; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.site-footer nav a { display: block; padding: 4px 0; color: #94a3b8; font-size: 14px; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: #8391a7;
}
.demo-note { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; padding: 56px 0 48px; background: var(--grad-soft); overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .18), transparent 70%); pointer-events: none;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.035em; }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 620px; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 360px at 85% 10%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(420px 320px at 10% 90%, rgba(250, 204, 21, .18), transparent 70%),
    radial-gradient(600px 400px at 60% 100%, rgba(99, 102, 241, .12), transparent 70%),
    #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; letter-spacing: -.04em; line-height: 1.18; }
.hero-lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 540px; }
.search-box {
  margin-top: 32px; display: flex; gap: 8px; padding: 8px; max-width: 580px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.search-box .sb-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--faint); }
.search-box input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.search-box select { height: 48px; border: 0; border-radius: 12px; background: var(--line-soft); padding: 0 12px; font-weight: 600; color: var(--ink); }
.search-box .btn { height: 48px; }
.quick-tags { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.quick-tags a {
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  font-weight: 600; color: var(--text); transition: color .15s, border-color .15s;
}
.quick-tags a:hover { color: var(--primary); border-color: var(--primary-line); }

.hero-visual { position: relative; height: 570px; }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 18px; animation: floaty 6s ease-in-out infinite;
}
.fc-mentor { top: 0; left: 0; width: 310px; }
.fc-live { top: 172px; right: 0; width: 320px; background: #0b0f1f; border-color: #1e293b; color: #e2e8f0; animation-delay: -2s; }
.fc-ai { bottom: 0; left: 24px; width: 330px; animation-delay: -4s; }
.fc-sticker {
  position: absolute; top: 40px; right: 40px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--sun); color: var(--ink); display: grid; place-items: center; text-align: center;
  font-weight: 900; font-size: 14px; line-height: 1.2; transform: rotate(12deg);
  box-shadow: 0 12px 24px -10px rgba(202, 138, 4, .7); animation: spin-slow 18s linear infinite;
}
.fc-label { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.stat b { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; }
.step-num { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: .06em; }
.step-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 12px 0 16px;
  background: var(--primary-soft); color: var(--primary);
}
.step-icon svg.lucide { width: 26px; height: 26px; }
.step h3 { font-size: 17px; font-weight: 800; }
.step p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 50px; right: -13px; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid var(--primary-line); border-right: 2px solid var(--primary-line); transform: rotate(45deg);
}

/* ---------- Avatar ---------- */
.avatar {
  --av: #e0e7ff; --size: 56px;
  position: relative; width: var(--size); height: var(--size); flex-shrink: 0; border-radius: 50%;
  background: var(--av); display: inline-grid; place-items: center; overflow: hidden;
  font-weight: 800; font-size: calc(var(--size) * .4); color: var(--primary-strong);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { --size: 28px; } .avatar-sm { --size: 36px; } .avatar-md { --size: 44px; } .avatar-lg { --size: 64px; } .avatar-xl { --size: 120px; }
.avatar.ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary-line); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px #fff; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

/* ---------- Rating ---------- */
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--ink); }
.rating svg.lucide { color: #f59e0b; fill: #fbbf24; width: 15px; height: 15px; }
.rating span { color: var(--muted); font-weight: 500; }

/* ---------- Mentor card ---------- */
.mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.mentor-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .mentor-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mentor-grid.four { grid-template-columns: 1fr; } }
.mentor-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mentor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-line); }
.mc-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.mc-head .avatar { --size: 58px; }
.mc-name { display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 800; color: var(--ink); }
.mc-name svg.lucide { width: 17px; height: 17px; color: var(--primary); }
.mc-univ { font-size: 13.5px; color: var(--muted); }
.mc-tagline {
  font-size: 14.5px; line-height: 1.55; color: var(--text); min-height: 45px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-meta {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted);
}
.mc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mc-meta svg.lucide { width: 14px; height: 14px; }
.mc-ribbon {
  position: absolute; top: -10px; left: 20px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: var(--ink); background: var(--sun); box-shadow: 0 4px 10px -4px rgba(202, 138, 4, .6);
}
.mc-ribbon.new { background: var(--mint); color: #fff; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.fav-btn {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--faint); display: grid; place-items: center;
  transition: color .15s, background-color .15s, border-color .15s, transform .15s;
}
.fav-btn:hover { color: var(--coral); }
.fav-btn[aria-pressed="true"] { color: var(--coral); background: var(--coral-soft); border-color: #fecdd3; }
.fav-btn[aria-pressed="true"] svg.lucide { fill: currentColor; }
.fav-btn.pop, .icon-btn.pop { animation: pop .3s ease; }
.icon-btn[data-fav][aria-pressed="true"] { color: var(--coral); background: var(--coral-soft); border-color: #fecdd3; }
.icon-btn[data-fav][aria-pressed="true"] svg.lucide { fill: currentColor; }
svg.lucide.inline { display: inline-block; vertical-align: -3px; }

/* ---------- Book cover ---------- */
.book {
  --b1: #4338ca; --b2: #818cf8;
  position: relative; aspect-ratio: 3 / 4; border-radius: 5px 12px 12px 5px; overflow: hidden;
  background: linear-gradient(155deg, var(--b1), var(--b2)); color: #fff;
  padding: 16% 12% 12% 20%; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 7px 0 0 rgba(0, 0, 0, .18), inset 9px 0 0 rgba(255, 255, 255, .14), 0 12px 22px -10px rgba(15, 23, 42, .45);
}
.book::after {
  content: ''; position: absolute; right: -30%; bottom: -18%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.book-title { position: relative; z-index: 1; font-weight: 800; font-size: 15px; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.book-author { position: relative; z-index: 1; font-size: 10.5px; font-weight: 600; opacity: .95; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.book-lg .book-title { font-size: 20px; }
.book-lg .book-author { font-size: 12px; }

/* ---------- Club card ---------- */
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.club-card {
  position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.club-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-line); }
.club-card .book { width: 100px; }
.club-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.club-title { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.club-info { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.club-info span { display: inline-flex; align-items: center; gap: 6px; }
.club-info svg.lucide { width: 14px; height: 14px; }
.club-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.seat { flex: 1; min-width: 0; }
.seat-label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.seat-bar { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.seat-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.club-card.is-full .seat-bar i { background: var(--faint); }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 14px; }
.feature {
  display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.feature-icon svg.lucide { width: 24px; height: 24px; }
.feature h3 { font-size: 16.5px; font-weight: 800; }
.feature p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.fi-mint { background: var(--mint-soft); color: #0f766e; }
.fi-sun { background: var(--sun-soft); color: #a16207; }
.fi-coral { background: var(--coral-soft); color: #be123c; }
.fi-sky { background: var(--sky-soft); color: #0369a1; }
.fi-violet { background: #f3e8ff; color: #7c3aed; }

/* ---------- AI chat mock ---------- */
.ai-chat { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ai-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.tori {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 20px;
}
.tori.sm { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }
.ai-chat-body { padding: 20px; display: grid; gap: 14px; background: linear-gradient(#fff, #fafaff); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.msg .bubble { padding: 12px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; }
.msg .who { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.msg.ai .bubble { background: var(--primary-soft); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg.me .who { text-align: right; }
.msg.mentor .bubble { background: var(--sun-soft); color: var(--ink); border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--primary-soft); border-radius: 18px; border-bottom-left-radius: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: .4; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

/* ---------- Dark band (league teaser) ---------- */
.dark-band { position: relative; background: #0b0f1f; color: #cbd5e1; overflow: hidden; }
.dark-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(99, 102, 241, .35), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(236, 72, 153, .25), transparent 70%);
}
.dark-band > .container { position: relative; }
.dark-band .section-title { color: #fff; }
.dark-band .section-desc { color: #94a3b8; }
.dk-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); padding: 22px; }

/* ---------- Arena (live broadcast) ---------- */
.arena {
  position: relative; padding: 24px; border-radius: var(--radius-xl); overflow: hidden;
  background: #0b0f1f; color: #cbd5e1; box-shadow: var(--shadow-lg);
}
.arena::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(99, 102, 241, .32), transparent 70%),
    radial-gradient(500px 260px at 100% 0%, rgba(245, 158, 11, .18), transparent 70%);
}
.arena > * { position: relative; }
.arena-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.arena-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.arena-title h2 { color: #fff; font-size: 20px; font-weight: 800; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px;
  background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em;
}
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.viewer { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #e2e8f0; }
.arena-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; }
.stage { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.team-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.team-side.right { flex-direction: row-reverse; text-align: right; }
.team-logo { width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; font-size: 28px; }
.team-name { color: #fff; font-weight: 800; font-size: 18px; line-height: 1.3; }
.stance { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.stance.pro { background: rgba(45, 212, 191, .16); color: #5eead4; }
.stance.con { background: rgba(251, 113, 133, .16); color: #fda4af; }
.score-center { text-align: center; }
.score { font-family: var(--font-display); font-size: 54px; font-weight: 800; color: #fff; line-height: 1; display: flex; align-items: center; gap: 14px; justify-content: center; }
.score .sep { font-size: 28px; color: #475569; }
.score b.bump { animation: bump .4s ease; }
.round-name { margin-top: 10px; font-size: 13px; font-weight: 700; color: #a5b4fc; }
.timer { margin-top: 2px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--sun); }
.round-track { display: flex; gap: 6px; margin-top: 18px; }
.round-track span { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: background-color .3s; }
.round-track span.done { background: #6366f1; }
.round-track span.now { background: var(--sun); }
.round-labels { display: flex; gap: 6px; margin-top: 6px; }
.round-labels span { flex: 1; font-size: 11px; color: #64748b; text-align: center; }
.round-labels span.now { color: var(--sun); font-weight: 700; }
.motion-banner {
  margin-top: 20px; padding: 14px 18px; border-radius: 16px; color: #e2e8f0;
  background: linear-gradient(90deg, rgba(99, 102, 241, .28), rgba(236, 72, 153, .14));
  border: 1px solid rgba(255, 255, 255, .1);
}
.motion-banner small { display: block; font-size: 12px; font-weight: 700; color: #a5b4fc; margin-bottom: 4px; }
.motion-banner strong { color: #fff; font-size: 17px; font-weight: 800; }
.speakers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.speaker-col { display: grid; gap: 8px; }
.speaker {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); transition: border-color .3s, background-color .3s;
}
.speaker .avatar { --size: 36px; }
.speaker-name { color: #e2e8f0; font-weight: 700; font-size: 14px; line-height: 1.3; }
.speaker-role { color: #64748b; font-size: 12px; }
.speaker.is-speaking { border-color: rgba(250, 204, 21, .7); background: rgba(250, 204, 21, .08); }
.wave { margin-left: auto; display: none; align-items: center; gap: 2px; height: 18px; }
.speaker.is-speaking .wave { display: flex; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--sun); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
.judge { margin-top: 22px; }
.judge-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: #e2e8f0; font-weight: 800; font-size: 14px; }
.judge-row { display: grid; grid-template-columns: 36px 1fr 88px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.judge-row .lbl { text-align: center; color: #94a3b8; font-weight: 600; }
.judge-row .val { font-family: var(--font-display); font-weight: 700; color: #e2e8f0; text-align: center; }
.jbar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; display: flex; }
.jbar.left { justify-content: flex-end; }
.jbar i { display: block; height: 100%; border-radius: inherit; transition: width .6s ease; }
.jbar.left i { background: linear-gradient(90deg, #818cf8, #6366f1); }
.jbar.right i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.chat { display: flex; flex-direction: column; min-height: 0; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; font-weight: 800; font-size: 14px; }
.chat-log { flex: 1; height: 360px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.chat-msg { line-height: 1.5; color: #cbd5e1; animation: fadeUp .25s ease; }
.chat-msg b { font-weight: 700; margin-right: 6px; }
.chat-msg.sys { color: #a5b4fc; font-size: 13px; background: rgba(99, 102, 241, .12); padding: 8px 10px; border-radius: 10px; }
.chat-msg.mine b { color: var(--sun) !important; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.chat-form input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06); color: #fff; outline: none;
}
.chat-form input::placeholder { color: #64748b; }
.chat-form input:focus { border-color: #818cf8; }
.chat-form button { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; }

.arena-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.panel-dk { padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.panel-dk h3 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cheer-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cheer-btn {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .1s, background-color .15s;
}
.cheer-btn:hover { background: rgba(255, 255, 255, .12); }
.cheer-btn:active { transform: scale(.94); }
.cheer-meter { margin-top: 14px; }
.cheer-meter .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: #94a3b8; margin-bottom: 6px; }
.meter { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #ef4444, #ec4899); transition: width .3s ease; }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote-btn {
  height: 48px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
  color: #fff; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s, background-color .15s;
}
.vote-btn:hover { border-color: rgba(255, 255, 255, .3); }
.vote-btn.is-picked { border-color: var(--sun); background: rgba(250, 204, 21, .12); }
.vote-btn:disabled { cursor: default; }
.vote-bar { display: flex; height: 30px; border-radius: 10px; overflow: hidden; margin-top: 12px; font-size: 13px; font-weight: 800; color: #fff; }
.vote-bar span { display: flex; align-items: center; padding: 0 10px; transition: width .5s ease; white-space: nowrap; }
.vote-bar .a { background: #6366f1; }
.vote-bar .b { background: #f59e0b; justify-content: flex-end; }
.emoji-burst { position: absolute; pointer-events: none; font-size: 26px; animation: floatUp 1.6s ease-out forwards; z-index: 5; }

/* ---------- League: schedule / leaderboard / bracket ---------- */
.match-list { display: grid; gap: 12px; }
.match {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.match-date { text-align: center; padding-right: 16px; border-right: 1px solid var(--line); }
.match-date b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.match-date span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.match-vs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; color: var(--ink); }
.match-vs .vs { font-family: var(--font-display); font-size: 12px; color: var(--faint); }
.match-sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.mini-logo { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 16px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.lb { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.lb th { text-align: left; padding: 14px 16px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--line-soft); white-space: nowrap; }
.lb td { padding: 14px 16px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.lb tbody tr { transition: background-color .15s; }
.lb tbody tr:hover { background: #fafaff; }
.lb .rank { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); width: 56px; }
.lb .team-cell { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.lb .num { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.trend { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; }
.trend.up { color: #059669; } .trend.down { color: var(--coral); } .trend.same { color: var(--faint); }
.tier { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tier-diamond { background: linear-gradient(135deg, #e0f2fe, #ede9fe); color: #4338ca; }
.tier-platinum { background: #ccfbf1; color: #0f766e; }
.tier-gold { background: #fef3c7; color: #92400e; }
.tier-silver { background: #f1f5f9; color: #475569; }

.bracket { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 32px; overflow-x: auto; padding-bottom: 8px; }
.round-col { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; }
.round-col h4 { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.bmatch { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bmatch.is-live { border-color: #fda4af; box-shadow: 0 0 0 4px var(--coral-soft); }
.bteam { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
.bteam + .bteam { border-top: 1px solid var(--line-soft); }
.bteam.win { color: var(--ink); }
.bteam .bscore { margin-left: auto; font-family: var(--font-display); font-weight: 800; }
.bteam.win .bscore { color: var(--primary); }
.bmatch-foot { padding: 6px 14px; background: var(--line-soft); font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bmatch.is-live .bmatch-foot { background: var(--coral-soft); color: #be123c; }

.rank-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* ---------- Gamification ---------- */
.level-card { padding: 24px; border-radius: var(--radius-lg); background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.level-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.level-card > * { position: relative; }
.level-num { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; }
.xp { margin-top: 16px; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.xp i { display: block; height: 100%; border-radius: inherit; background: var(--sun); }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gbadge { text-align: center; padding: 16px 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.gbadge .em { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--sun-soft); }
.gbadge b { display: block; font-size: 13px; color: var(--ink); }
.gbadge span { font-size: 11.5px; color: var(--muted); }
.gbadge.locked .em { background: var(--line-soft); filter: grayscale(1); opacity: .5; }
.gbadge.locked b { color: var(--faint); }

.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 12px; align-items: end; }
.pod { text-align: center; padding: 18px 12px; border-radius: 20px 20px 8px 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.pod .medal { font-size: 26px; }
.pod b { display: block; color: #fff; font-size: 14px; margin-top: 6px; }
.pod span { font-size: 12.5px; color: #94a3b8; }
.pod.p1 { padding-top: 34px; background: linear-gradient(180deg, rgba(250, 204, 21, .22), rgba(255, 255, 255, .04)); border-color: rgba(250, 204, 21, .4); }
.pod.p2 { padding-top: 24px; }

/* ---------- Filters (mentors page) ---------- */
.search-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filter-head h2 { font-size: 16px; font-weight: 800; }
.link-btn { border: 0; background: none; padding: 4px; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.link-btn:hover { text-decoration: underline; }
.fgroup { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.fgroup:first-of-type { border-top: 0; }
.fgroup h3 { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips .chip { height: 34px; padding: 0 12px; font-size: 13.5px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar-search { flex: 1; min-width: 220px; position: relative; }
.toolbar-search svg.lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.toolbar-search .input { padding-left: 42px; }
.result-count { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.result-count b { color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-filters button { border: 0; }
.filter-toggle { display: none; }
.empty {
  text-align: center; padding: 64px 24px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.empty .em { font-size: 44px; }
.empty h3 { margin-top: 12px; font-size: 18px; }
.empty p { margin-top: 6px; color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.req { color: var(--coral); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--coral); }
.field.has-error .option > span { border-color: #fda4af; }
.field-error { display: none; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #be123c; }
.field.has-error .field-error { display: flex; }
.hint { font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.check b { color: var(--ink); }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option > span {
  display: flex; align-items: center; gap: 8px; height: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; font-size: 14.5px; color: var(--text);
  transition: border-color .15s, background-color .15s, color .15s;
}
.option > span small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.option:hover > span { border-color: var(--primary-line); }
.option input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }
.option input:focus-visible + span { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.option-col > span { flex-direction: column; align-items: flex-start; gap: 2px; }

.tabs { display: inline-flex; padding: 5px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tab {
  height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: transparent;
  font-weight: 700; font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .15s, color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.st { font-size: 12.5px; font-weight: 700; color: var(--faint); }
.st::before { content: ''; display: block; height: 6px; border-radius: 999px; background: var(--line); margin-bottom: 8px; transition: background-color .3s; }
.st.done::before, .st.now::before { background: var(--primary); }
.st.now { color: var(--primary); }
.st.done { color: var(--text); }
.wizard-step { display: none; }
.wizard-step.is-active { display: grid; gap: 20px; animation: fadeUp .25s ease; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow); }
.upload:focus-within { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.upload {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px;
  background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.upload:hover { border-color: var(--primary-line); background: #fafaff; }
.upload input { position: absolute; opacity: 0; pointer-events: none; }
.upload .feature-icon { width: 44px; height: 44px; }
.success-box { text-align: center; padding: 24px 0; }
.success-box .em { width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 44px; background: var(--sun-soft); animation: pop .4s ease; }
.success-box h2 { margin-top: 20px; font-size: 26px; font-weight: 900; }
.success-box p { margin-top: 8px; color: var(--muted); }

/* ---------- Mentor profile ---------- */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.profile-hero { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.profile-cover { height: 120px; background: var(--grad); position: relative; }
.profile-cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 120%, rgba(250, 204, 21, .5), transparent 40%), radial-gradient(circle at 90% -20%, rgba(255, 255, 255, .35), transparent 40%);
}
.profile-main { padding: 0 32px 28px; }
.profile-main .avatar { margin-top: -60px; box-shadow: 0 0 0 5px #fff; }
.profile-name { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 28px; font-weight: 900; }
.profile-name svg.lucide { color: var(--primary); width: 24px; height: 24px; }
.profile-sub { margin-top: 4px; font-size: 16px; color: var(--muted); }
.profile-tagline { margin-top: 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.kpi { padding: 14px; border-radius: 16px; background: var(--line-soft); text-align: center; }
.kpi b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pblock { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.pblock h2 { font-size: 19px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pblock h2 svg.lucide { color: var(--primary); }
.pblock p { line-height: 1.75; }
.verify-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.verify { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: #f0fdfa; color: #0f766e; font-weight: 700; font-size: 14px; }
.verify svg.lucide { width: 20px; height: 20px; }
.curri { display: grid; gap: 10px; counter-reset: wk; }
.curri li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--line-soft); }
.curri li::before {
  counter-increment: wk; content: counter(wk) '주'; flex-shrink: 0; padding: 2px 10px; border-radius: 8px;
  background: #fff; color: var(--primary); font-weight: 800; font-size: 13px; border: 1px solid var(--primary-line);
}
.curri b { color: var(--ink); }
.book-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.review { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.review-head b { color: var(--ink); }
.review p { margin-top: 8px; font-size: 15px; }

.apply-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow); }
.apply-card h2 { font-size: 18px; font-weight: 800; }
.day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day-tab {
  height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; font-size: 14px; color: var(--text); transition: all .15s;
}
.day-tab:disabled { background: var(--line-soft); color: #cbd5e1; border-color: var(--line-soft); cursor: not-allowed; }
.day-tab[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px;
  color: var(--ink); transition: all .15s;
}
.slot:hover:not(:disabled) { border-color: var(--primary-line); color: var(--primary); }
.slot:disabled { background: var(--line-soft); color: #cbd5e1; border-color: var(--line-soft); cursor: not-allowed; text-decoration: line-through; }
.slot[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-strong); }
.apply-sum { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--line-soft); font-size: 14px; }
.apply-sum div { display: flex; justify-content: space-between; gap: 12px; }
.apply-sum b { color: var(--ink); text-align: right; }
.mobile-cta { display: none; }

/* ---------- Session timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.tl-item { padding: 22px 18px; border-left: 1px solid var(--line-soft); }
.tl-item:first-child { border-left: 0; }
.tl-time { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--primary); }
.tl-item h3 { margin-top: 8px; font-size: 15.5px; font-weight: 800; }
.tl-item p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.tl-bar { height: 6px; margin-top: 14px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.tl-bar i { display: block; height: 100%; background: var(--grad); }
.timeline.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1080px) { .timeline.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .timeline.six { grid-template-columns: 1fr; } }

/* ---------- AI demo ---------- */
.ai-demo { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.book-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.book-pick { padding: 0; border: 0; background: none; border-radius: 12px; transition: transform .15s; }
.book-pick:hover { transform: translateY(-3px); }
.book-pick .book { outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.book-pick[aria-pressed="true"] .book { outline-color: var(--primary); }
.book-pick .book-title { font-size: 12.5px; }
.book-pick .book-author { font-size: 9.5px; }
.ai-output { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; min-height: 420px; box-shadow: var(--shadow); }
.ai-output-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.ai-motion { padding: 18px 20px; border-radius: 18px; background: var(--grad-soft); border: 1px solid var(--primary-line); }
.ai-motion small { font-size: 12.5px; font-weight: 800; color: var(--primary); }
.ai-motion p { margin-top: 6px; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.45; min-height: 28px; }
.caret::after { content: '|'; margin-left: 2px; color: var(--primary); animation: blink 1s infinite; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.procon > div { padding: 16px; border-radius: 16px; }
.procon .pro { background: #f0fdfa; }
.procon .con { background: #fff1f2; }
.procon h4 { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.procon .pro h4 { color: #0f766e; }
.procon .con h4 { color: #be123c; }
.procon ul { margin-top: 8px; display: grid; gap: 6px; font-size: 14px; }
.procon li { padding-left: 14px; position: relative; }
.procon li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }
.ai-block { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--line-soft); }
.ai-block h4 { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.ai-block ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; }
.ai-reveal { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.ai-reveal.in { opacity: 1; transform: none; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: var(--faint); }
.status-dot.on { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.ai-empty { display: grid; place-items: center; text-align: center; min-height: 320px; color: var(--muted); }
.ai-empty .tori { width: 64px; height: 64px; border-radius: 20px; font-size: 32px; margin: 0 auto 14px; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.quote p { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.quote-who { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.quote-who b { color: var(--ink); display: block; }
.quote-who div span { font-size: 13px; }
.quote-mark { font-family: Georgia, serif; font-size: 48px; line-height: .6; color: var(--primary-line); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .15s; }
.faq details[open] { border-color: var(--primary-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; color: var(--ink); font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg.lucide { transition: transform .2s; color: var(--muted); }
.faq details[open] summary svg.lucide { transform: rotate(180deg); color: var(--primary); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); line-height: 1.75; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 56px 48px; text-align: center; color: #fff;
  background: var(--grad);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 10% 0%, rgba(250, 204, 21, .45), transparent 35%), radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .25), transparent 40%);
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -.03em; }
.cta-box p { margin-top: 12px; font-size: 17px; opacity: .92; }
.cta-actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Dialog / toast ---------- */
dialog.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 28px;
  background: #fff; color: var(--text); box-shadow: var(--shadow-lg);
}
dialog.modal[open] { animation: pop .22s ease; }
dialog.modal::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); }
.modal-inner { padding: 28px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.modal-head h2 { font-size: 21px; font-weight: 800; }
.modal-close { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--line-soft); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.modal-close:hover { color: var(--ink); }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions .btn { flex: 1; }

.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
}
.toast svg.lucide { color: #4ade80; }
.toast.out { animation: toastOut .25s ease forwards; }

/* ---------- Animations ---------- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin-slow { to { transform: rotate(372deg); } }
@keyframes pop { 0% { transform: scale(.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); color: var(--sun); } 100% { transform: scale(1); } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes floatUp { 0% { opacity: 1; transform: translate(0, 0) scale(.8); } 100% { opacity: 0; transform: translate(var(--dx, 0), -160px) scale(1.3); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { display: none; }
  .arena-grid { grid-template-columns: 1fr; }
  .chat-log { height: 280px; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .tl-item:nth-child(4) { border-left: 0; }
  .tl-item:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 960px) {
  .nav, .hide-md { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-menu.is-open {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; animation: fadeUp .2s ease;
  }
  .mobile-menu a { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 12px; border-radius: 12px; font-weight: 700; color: var(--ink); }
  .mobile-menu a.is-active { background: var(--primary-soft); color: var(--primary); }
  .mobile-menu .btn { margin-top: 12px; }

  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: auto; display: grid; gap: 14px; }
  .float-card { position: static; width: auto !important; animation: none; }
  .fc-sticker { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .search-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filter-panel { display: none; position: static; }
  .filter-panel.is-open { display: block; }

  .profile-layout { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; }
  .has-mobile-cta .site-footer { padding-bottom: 104px; }

  .ai-demo { grid-template-columns: minmax(0, 1fr); }
  .rank-layout { grid-template-columns: minmax(0, 1fr); }
  .book-picker { grid-template-columns: repeat(6, minmax(84px, 1fr)); overflow-x: auto; padding: 4px 4px 8px; }
  .arena-bottom { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .hero-lead { font-size: 16px; }
  .search-box { flex-wrap: wrap; }
  .search-box .sb-field { flex-basis: 100%; }
  .search-box select { flex: 1; }
  .steps, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .stat b { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mentor-grid, .club-grid { grid-template-columns: 1fr; }
  .club-card { grid-template-columns: 84px 1fr; padding: 16px; gap: 14px; }
  .club-card .book { width: 84px; }
  .club-card .book-title { font-size: 12.5px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .verify-list { grid-template-columns: 1fr; }
  .profile-main { padding: 0 20px 24px; }
  .profile-name { font-size: 24px; }
  .pblock { padding: 22px 20px; }
  .form-card { padding: 22px 18px; border-radius: var(--radius-lg); }
  .form-grid { grid-template-columns: 1fr; }
  .stepper .st { font-size: 0; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
  .arena { padding: 16px; border-radius: var(--radius-lg); }
  .stage { padding: 16px; }
  .scoreboard { gap: 8px; }
  .team-side, .team-side.right { flex-direction: column; text-align: center; gap: 6px; }
  .score { font-size: 38px; gap: 8px; }
  .score .sep { font-size: 22px; }
  .team-logo { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
  .team-name { font-size: 14px; }
  .speakers { gap: 8px; }
  .speaker-col { gap: 6px; }
  .speaker { padding: 8px; gap: 8px; }
  .speaker .avatar { --size: 28px; }
  .speaker-name { font-size: 13px; }
  .speaker-role { display: none; }
  .judge-row { grid-template-columns: 28px 1fr 64px 1fr 28px; gap: 6px; font-size: 12px; }
  .round-labels { display: none; }
  .match { grid-template-columns: 72px 1fr; }
  .match > :last-child { grid-column: 1 / -1; }
  .match-date { padding-right: 12px; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .tl-item { border-left: 0; border-top: 1px solid var(--line-soft); }
  .tl-item:first-child { border-top: 0; }
  .procon { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 22px; }
  .podium { gap: 8px; }
  .ai-output { padding: 18px; }
}
