/* ============================================================
   JEDUC 한국대학유학지원플랫폼 — Design System
   Brand: #4f46e5 (indigo)  |  Type: Inter + Noto Sans KR  |  Style: clean, glassy, rounded
   ============================================================ */

:root {
  /* ---- Brand ---------------------------------------------------- */
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-deep: #312e81;
  --brand-light: #818cf8;
  --brand-soft: rgba(79, 70, 229, 0.08);
  --brand-softer: rgba(79, 70, 229, 0.04);
  --gold: #b8860b;
  --gold-soft: rgba(184, 134, 11, 0.1);

  /* 내부 색상 토큰(RGB 삼원색) — 알파 조합에 사용 */
  --brand-rgb: 79, 70, 229;
  --ink-rgb: 16, 24, 40;

  /* ---- Text ------------------------------------------------------ */
  --ink: #10151c;
  --ink-2: #1c2229;
  --muted: #586374;
  --muted-2: #7d8899;

  /* ---- Surface --------------------------------------------------- */
  --line: #e4e9f0;
  --line-soft: #eef2f7;
  --bg: #f5f7fa;
  --bg-2: #eef1f6;
  --card: #ffffff;

  /* ---- Status ---------------------------------------------------- */
  --ok: #0f9d58;
  --ok-soft: rgba(15, 157, 88, 0.1);
  --warn: #b7791f;
  --warn-soft: rgba(183, 121, 31, 0.12);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, 0.1);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);

  /* ---- Radius ---------------------------------------------------- */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  /* ---- Elevation (다층 그림자: 근거리 접촉 + 원거리 확산) --------- */
  --shadow-xs: 0 1px 2px rgba(var(--ink-rgb), 0.04);
  --shadow-sm:
    0 1px 2px rgba(var(--ink-rgb), 0.04),
    0 2px 6px rgba(var(--ink-rgb), 0.04);
  --shadow:
    0 1px 2px rgba(var(--ink-rgb), 0.04),
    0 6px 16px rgba(var(--ink-rgb), 0.05),
    0 18px 36px -22px rgba(var(--ink-rgb), 0.12);
  --shadow-lg:
    0 1px 2px rgba(var(--ink-rgb), 0.04),
    0 12px 28px rgba(var(--ink-rgb), 0.07),
    0 36px 64px -32px rgba(var(--ink-rgb), 0.20);
  --shadow-brand: 0 10px 30px -12px rgba(var(--brand-rgb), 0.45);
  --ring-brand: 0 0 0 4px rgba(var(--brand-rgb), 0.12);

  /* ---- Motion ---------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.24s;

  --max: 1200px;
  --max-wide: 1320px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 8% -8%, rgba(var(--brand-rgb), 0.055), transparent 62%),
    radial-gradient(900px 460px at 102% 2%, rgba(var(--brand-rgb), 0.04), transparent 58%);
  background-attachment: fixed;
  color: var(--ink-2);
  line-height: 1.62;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* 키보드 접근성 — 포커스 링을 명확하게 (마우스 클릭 시엔 나타나지 않음) */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 숫자 강조(통계·금액)는 등폭 숫자로 정렬을 맞춘다 */
.stat .n, .kpi .v, .fee-card .amt, .num, .admin-table .num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* 스크롤바 정돈 (WebKit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(var(--ink-rgb), 0.16);
  border: 3px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--ink-rgb), 0.28); }

/* 텍스트 선택 색상 */
::selection { background: rgba(var(--brand-rgb), 0.18); color: var(--brand-deep); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 880px; }

/* ---------- Typography (fluid premium scale) ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em; line-height: 1.14; letter-spacing: -0.022em; color: var(--ink);
  font-weight: 800; text-wrap: pretty;
  word-break: keep-all; overflow-wrap: break-word;
}
h1 {
  font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.5rem);
  letter-spacing: -0.035em; line-height: 1.08;
}
h2 {
  font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.25rem);
  letter-spacing: -0.028em; line-height: 1.14;
}
h3 { font-size: clamp(1.08rem, 1rem + 0.32vw, 1.26rem); font-weight: 700; letter-spacing: -0.016em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.012em; }
p { margin: 0 0 1rem; color: var(--muted); }
/* 큰 화면에서는 본문도 한 단계 키워 가독성·격을 올린다 */
@media (min-width: 1280px) { body { font-size: 15.5px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .7rem;
}
/* 아이브로우 앞 짧은 룰 — 섹션 시작을 정돈해 주는 프리미엄 디테일 */
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.text-center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.02rem, .97rem + .28vw, 1.14rem); color: var(--muted); line-height: 1.72; }
.section { padding: clamp(52px, 5.4vw, 84px) 0; }
.section-tight { padding: clamp(36px, 3.6vw, 52px) 0; }
.section-head { max-width: 730px; margin-bottom: clamp(28px, 3vw, 44px); }
/* 흰 배경 섹션과 회색 배경 섹션을 번갈아 쓰기 위한 유틸 */
.section-surface { background: #fff; border-block: 1px solid var(--line-soft); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .93rem; padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap; text-decoration: none;
  position: relative; isolation: isolate;
}
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 46%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(var(--brand-rgb), .3), 0 8px 20px -8px rgba(var(--brand-rgb), .55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(var(--brand-rgb), .3), 0 16px 30px -12px rgba(var(--brand-rgb), .62);
  filter: saturate(1.06);
}
.btn-outline {
  background: #fff; border-color: var(--line); color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: rgba(var(--brand-rgb), .55); color: var(--brand); transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.btn-dark {
  background: linear-gradient(135deg, #232a33, #12161b);
  color: #fff; box-shadow: 0 8px 20px -10px rgba(var(--ink-rgb), .6);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(var(--ink-rgb), .7); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1040;
  background: rgba(255,255,255,.78); backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(228,233,240,.85);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 22px -18px rgba(var(--ink-rgb), .35);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav-inner { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); flex-shrink: 0; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-deep));
  color: #fff;
  display: grid; place-items: center; font-size: 1.02rem; font-weight: 800;
  box-shadow: 0 1px 2px rgba(var(--brand-rgb), .35), 0 8px 18px -8px rgba(var(--brand-rgb), .6);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.4), transparent 55%);
  pointer-events: none;
}
.brand-mark i { font-size: 1rem; position: relative; z-index: 1; }
.brand-sub { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; }
.nav-links {
  display: flex; align-items: center; justify-content: flex-end; gap: 3px; row-gap: 4px;
  margin-left: auto; min-width: 0; flex-wrap: wrap;
}
.nav-links > a {
  font-weight: 500; color: #46505f; padding: 7px 8px; border-radius: 10px; font-size: .8rem;
  transition: color .18s var(--ease), background-color .18s var(--ease);
  white-space: nowrap; flex: 0 0 auto; position: relative;
}
.nav-links > a:hover { color: var(--brand); background: var(--brand-softer); }
.nav-links > a.active { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
.nav-links > a.highlight { color: var(--brand); font-weight: 700; }
.nav-links > a.highlight::after { content: 'AI'; font-size: .55rem; font-weight: 800; vertical-align: super; background: var(--brand); color: #fff; padding: 1px 4px; border-radius: 4px; margin-left: 3px; }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-drawer-cta { display: none; }
.nav-toggle { display: none; background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 50%; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(255,255,255,.6); color: var(--ink);
  font-size: .84rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; transition: .18s;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-softer); }
.lang-select {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(255,255,255,.72); color: var(--ink);
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.lang-select:hover { border-color: rgba(var(--brand-rgb), .5); background: #fff; box-shadow: var(--shadow-xs); }
.lang-select > i { color: var(--brand); font-size: .85rem; }
.lang-select select {
  border: none; background: transparent; font-weight: 700; color: var(--ink);
  cursor: pointer; outline: none; max-width: 84px; padding: 2px 0; font-size: .78rem;
  text-overflow: ellipsis;
}
.lang-select select:focus { outline: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; padding: 56px 0 0; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(920px 440px at 10% -14%, rgba(var(--brand-rgb), .12), transparent 62%),
    radial-gradient(720px 420px at 102% -4%, rgba(var(--brand-rgb), .09), transparent 58%),
    radial-gradient(620px 380px at 46% 118%, rgba(129,140,248, .10), transparent 60%);
  pointer-events: none;
}
/* 미세한 격자 텍스처 — "고급" 느낌을 주는 저채도 패턴 */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(var(--ink-rgb), .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(760px 460px at 22% 12%, #000, transparent 78%);
  mask-image: radial-gradient(760px 460px at 22% 12%, #000, transparent 78%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-bottom: 50px; }
.hero h1 {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .12em;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  display: block;
  background: linear-gradient(100deg, var(--brand) 10%, #7c3aed 52%, var(--brand-dark) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand);
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600;
  color: var(--brand); background: var(--brand-soft); padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgba(var(--brand-rgb), .1);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.pill:hover { background: rgba(var(--brand-rgb), .13); transform: translateY(-1px); }
.pill i { font-size: .8rem; }
.hero-visual { position: relative; }
.hero-visual::after {
  content: ''; position: absolute; inset: auto -18px -18px auto; width: 62%; height: 62%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .18), transparent 65%);
  filter: blur(28px); z-index: -1;
}
.hero-visual img {
  border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover;
  box-shadow:
    0 1px 2px rgba(var(--ink-rgb), .06),
    0 18px 40px -18px rgba(var(--ink-rgb), .28),
    0 48px 80px -40px rgba(var(--ink-rgb), .34);
  outline: 1px solid rgba(255,255,255,.6); outline-offset: -1px;
}
.hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.hero-badge {
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .28); }
.hero-badge .t { font-weight: 700; font-size: .88rem; color: var(--ink); }
.hero-badge .d { font-size: .78rem; color: var(--muted); }
.hero-badge i { color: var(--brand); margin-right: 6px; }
.hero-wave { height: 46px; background: linear-gradient(180deg, #fff, var(--bg)); }

/* ---------- Search card ---------- */
.search-card {
  position: relative; margin-top: -38px; z-index: 5;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.search-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr auto; gap: 12px; align-items: end; }
.field label { display: block; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted-2); margin-bottom: 6px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fbfcfe; color: var(--ink); outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.field input:not([type="radio"]):not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: #cfd8e3; }
.field input:not([type="radio"]):not([type="checkbox"]):focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); background: #fff; box-shadow: var(--ring-brand);
}
.choice-q { display: block; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted-2); margin: 0 0 10px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.field .choice-list > label {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe;
  font-size: .92rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--ink); line-height: 1.45; cursor: pointer;
}
.field .choice-list > label:hover { border-color: #cfd8e3; }
.field .choice-list input[type="radio"],
.field .choice-list input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0; padding: 0;
  flex-shrink: 0; accent-color: var(--brand);
}
.field .choice-list > label span { flex: 1; min-width: 0; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff, #fdfdff);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stat::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-deep));
  opacity: .85;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .24); }
.stat .n { font-size: 1.95rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em; line-height: 1.1; }
.stat .n span { color: var(--brand); }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .24); }
.card-body { padding: 18px; }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(var(--ink-rgb), .28));
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.card:hover .card-media::after { opacity: 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.055); }
.card-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1.35; letter-spacing: -.012em; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.card-meta i { color: var(--brand); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: #f1f4f7; color: #475569;
  text-transform: capitalize; letter-spacing: .02em;
  border: 1px solid rgba(16, 24, 40, .04);
}
.badge.brand { background: var(--brand-soft); color: var(--brand); border-color: rgba(var(--brand-rgb), .12); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(15,157,88,.14); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: rgba(37,99,235,.14); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(183,121,31,.16); }
.badge-abs {
  position: absolute; top: 12px; left: 12px;
  width: max-content; max-width: calc(100% - 24px);
  height: max-content;
  white-space: nowrap; line-height: 1.2;
  backdrop-filter: blur(6px); background: rgba(255,255,255,.92); box-shadow: var(--shadow-xs);
}
.badge-bl, .badge-abs[style*="bottom"] {
  top: auto; bottom: 12px; left: 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: #475569;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}
.chip:hover { border-color: rgba(var(--brand-rgb), .5); color: var(--brand); transform: translateY(-1px); }
.chip.active {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(var(--brand-rgb), .7);
}

/* Field tiles */
.field-tile {
  display: block; padding: 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.field-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .26); }
.field-tile .ic {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(var(--brand-rgb), .16));
  color: var(--brand); display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 13px;
  transition: transform var(--dur) var(--ease);
}
.field-tile:hover .ic { transform: scale(1.07) rotate(-3deg); }
.field-tile .t { font-weight: 700; color: var(--ink); margin-bottom: 3px; letter-spacing: -.012em; }
.field-tile .d { font-size: .84rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step .num {
  counter-increment: step; position: absolute; top: -16px; left: 20px; width: 34px; height: 34px;
  border-radius: 11px; color: #fff; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow: 0 8px 18px -8px rgba(var(--brand-rgb), .7);
}
.step .num::before { content: counter(step); }
.step h3 { margin-top: 12px; font-size: 1.02rem; }
.step p { font-size: .86rem; margin: 0; }

/* Steps (Korea 6-step grid) */
.step-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.step-card:hover { border-color: rgba(var(--brand-rgb), .26); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step-num {
  position: absolute; top: -15px; left: 22px; min-width: 34px; height: 34px; padding: 0 9px;
  border-radius: 11px; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow: 0 8px 18px -8px rgba(var(--brand-rgb), .7);
}
.step-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), rgba(var(--brand-rgb), .16));
  color: var(--brand); font-size: 1.18rem; margin-bottom: 14px;
  transition: transform var(--dur) var(--ease);
}
.step-card:hover .step-ic { transform: scale(1.07); }
.step-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step-card p { font-size: .86rem; color: var(--muted); margin: 0; }

/* Testimonials */
.testi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .22); }
.testi img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.testi .q { font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.5; margin-bottom: 10px; letter-spacing: -.01em; }
.testi .who { font-size: .84rem; font-weight: 700; color: var(--brand); }
.testi .prg { font-size: .78rem; color: var(--muted); }

/* Trust panel */
.trust {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 48px;
  background:
    radial-gradient(520px 300px at 88% -10%, rgba(var(--brand-rgb), .5), transparent 68%),
    linear-gradient(140deg, #171b22 0%, #20262f 52%, #2b323c 100%);
  box-shadow: var(--shadow-lg);
}
.trust::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(640px 380px at 92% 0%, #000, transparent 76%);
  mask-image: radial-gradient(640px 380px at 92% 0%, #000, transparent 76%);
}
.trust h2 { color: #fff; }
.trust p { color: rgba(255,255,255,.74); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; position: relative; z-index: 2; }
.trust-item {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px; padding: 18px; backdrop-filter: blur(8px);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.trust-item:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.trust-item .l { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.56); font-weight: 700; margin-bottom: 6px; }
.trust-item .v { font-weight: 700; font-size: .96rem; }

/* ---------- Page header ---------- */
.page-head {
  position: relative; border-bottom: 1px solid var(--line); padding: 38px 0;
  background:
    radial-gradient(760px 300px at 8% -60%, rgba(var(--brand-rgb), .085), transparent 64%),
    linear-gradient(180deg, #fff, #fcfdff);
}
.page-head h1 { font-size: clamp(1.62rem, 3vw, 2.35rem); margin-bottom: 6px; letter-spacing: -.028em; }
.page-head .crumb { font-size: .82rem; color: var(--muted-2); }
.page-head .crumb a:hover { color: var(--brand); }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-xs); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
th {
  background: linear-gradient(180deg, #fafbfd, #f6f8fb); font-size: .73rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted-2); font-weight: 700;
}
tbody tr { transition: background-color .16s var(--ease); }
tbody tr:hover td { background: rgba(var(--brand-rgb), .022); }
tr:last-child td { border-bottom: none; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--line), var(--line-soft)); }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item::before {
  content: ''; position: absolute; left: -32px; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 3px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.tl-item.done::before { border-color: var(--ok); background: var(--ok); }
.tl-item.active::before { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.tl-item .t { font-weight: 700; color: var(--ink); }
.tl-item .d { font-size: .85rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow);
}
.divider { height: 1px; background: var(--line-soft); margin: 22px 0; }

.alert {
  padding: 14px 16px; border-radius: 12px; font-size: .88rem; font-weight: 500;
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid transparent;
}
.alert.ok { background: var(--ok-soft); color: #0b7038; border-color: rgba(15,157,88,.16); }
.alert.err { background: rgba(var(--brand-rgb), .07); color: var(--brand-dark); border-color: rgba(var(--brand-rgb), .16); }
.alert.info { background: var(--info-soft); color: #1d4ed8; border-color: rgba(37,99,235,.16); }

/* ---------- Footer ---------- */
.footer {
  position: relative; margin-top: 68px; padding: 60px 0 32px;
  color: rgba(255,255,255,.68);
  background:
    radial-gradient(760px 300px at 6% 0%, rgba(var(--brand-rgb), .18), transparent 62%),
    linear-gradient(180deg, #12161c 0%, #0c0f13 100%);
}
.footer::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), #7c3aed, var(--brand-light));
  opacity: .75;
}
.footer h4 { color: #fff; font-size: .93rem; margin-bottom: 14px; letter-spacing: -.01em; }
.footer a { display: block; font-size: .87rem; color: rgba(255,255,255,.62); padding: 5px 0; transition: color .16s var(--ease), transform .16s var(--ease); }
.footer a:hover { color: #fff; transform: translateX(2px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center; padding: 0;
  transition: background-color .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); border-color: transparent; }

/* ---------- Mobile bottom nav ---------- */
.mobile-nav { display: none; }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.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}
.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}
.ml-auto { margin-left: auto; }
.hidden { display: none; }

/* Info list */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.info-list li:last-child { border-bottom: none; }
.info-list .k { min-width: 150px; font-weight: 600; color: var(--muted-2); font-size: .85rem; }
.info-list .v { font-weight: 600; color: var(--ink); font-size: .9rem; }

/* Programme row */
.prog-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.prog-row:hover { border-color: rgba(var(--brand-rgb), .26); box-shadow: var(--shadow); transform: translateY(-2px); }
.prog-logo {
  width: 56px; height: 56px; border-radius: 15px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(var(--brand-rgb), .16));
  color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}

/* Accordion */
.acc {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  margin-bottom: 10px; overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.acc:hover { border-color: rgba(var(--brand-rgb), .24); }
.acc[open] { box-shadow: var(--shadow-sm); border-color: rgba(var(--brand-rgb), .28); }
.acc summary { padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 1.3rem; color: var(--brand); font-weight: 400; line-height: 1; transition: transform var(--dur) var(--ease); }
.acc[open] summary::after { content: '\2212'; }
.acc .acc-body { padding: 0 18px 16px; color: var(--muted); font-size: .9rem; }

/* ---------- Nav drawer ----------
   12개 언어의 라벨 길이가 제각각이라, 가로로 한 줄에 다 들어가지 않으면
   글자가 쪼개지는 대신 햄버거 드로어로 전환한다. */
@media (max-width: 1200px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    max-height: calc(100vh - 80px); overflow-y: auto;
    background: rgba(255,255,255,.98); backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(230,235,241,.9); border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links > a {
    padding: 12px 16px; background: rgba(244,246,248,.7); border-radius: 12px; font-weight: 600; font-size: .95rem;
  }
  .nav-drawer-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-drawer-cta .btn, .nav-drawer-cta form, .nav-drawer-cta form .btn { width: 100%; justify-content: center; }
  .nav-cta .btn { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps, .stats, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .nav-inner { height: 60px; }
  .navbar { margin: 10px 12px 0; border-radius: 26px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 10px 30px rgba(0,0,0,.05); }
  .nav-links {
    display: none; position: absolute; left: 12px; right: 12px; top: 100%; margin-top: 12px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 18px;
    background: rgba(255,255,255,.85); backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255,255,255,.6); border-radius: 22px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 16px; background: rgba(255,255,255,.5); border-radius: 12px; font-weight: 600; font-size: .95rem; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps, .stats, .trust-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .trust { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-card { margin-top: 0; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .prog-row { grid-template-columns: auto 1fr; }
  .prog-row .prog-action { grid-column: 1 / -1; }

  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1040;
    background: rgba(255,255,255,.78); backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,.7); box-shadow: 0 -10px 30px rgba(0,0,0,.05);
    justify-content: space-around; padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; font-weight: 600; color: #718096; padding: 6px 0; }
  .mobile-nav a i { font-size: 1.2rem; padding: 4px 16px; border-radius: 20px; transition: .2s; }
  .mobile-nav a.active { color: var(--brand); }
  .mobile-nav a.active i { background: var(--brand-soft); }
  .stat .n { font-size: 1.5rem; }
}

/* ============================================================
   대학 심볼 (자체 제작 크레스트) + 대학명 병기
   ============================================================ */
.uni-id { display: inline-flex; align-items: center; gap: 12px; }
.uni-id-name { font-weight: 700; color: var(--ink); }
.uni-id-name-sm { font-size: .92rem; }
.uni-id-name-lg { font-size: 1.02rem; }
.uni-crest {
  position: relative; display: inline-grid; place-items: center;
  border-radius: 14px; color: #fff; flex: 0 0 auto; line-height: 1;
  overflow: hidden;
}
.uni-crest b { font-weight: 800; letter-spacing: -.02em; position: relative; z-index: 2; }
.uni-crest .uni-crest-cap {
  position: absolute; right: -4px; bottom: -6px; font-size: 1.6em; opacity: .22; z-index: 1;
}
.uni-crest.lg { border-radius: 20px; }
.card-title .uni-id, h1 .uni-id { gap: 14px; }

/* ============================================================
   요금 안내 (가입비 · 컨설팅비)
   ============================================================ */
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fee-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff, #fdfdff);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.fee-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  opacity: .8;
}
.fee-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .24); }
.fee-card .lbl { font-size: .78rem; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.fee-card .amt { font-size: 1.4rem; font-weight: 800; color: var(--brand); margin: 8px 0 4px; letter-spacing: -.03em; }
.fee-card .sub { font-size: .84rem; color: var(--muted); }
.fee-note {
  background: linear-gradient(135deg, #fff, rgba(var(--brand-rgb), .045));
  border: 1px solid rgba(var(--brand-rgb), .12); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-xs);
}

/* ============================================================
   서류 체크리스트
   ============================================================ */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-item {
  display: flex; gap: 12px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.doc-item:hover { border-color: rgba(var(--brand-rgb), .24); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.doc-item .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(var(--brand-rgb), .15));
  color: var(--brand); display: grid; place-items: center; flex: 0 0 auto;
}
.doc-item .nm { font-weight: 700; color: var(--ink); font-size: .93rem; letter-spacing: -.01em; }
.doc-item .mt { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.doc-item .tag { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.doc-item .tag.req { background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(var(--brand-rgb), .12); }
.doc-item .tag.opt { background: #eef1f5; color: var(--muted-2); }
.docs-split { grid-template-columns: 1.4fr 1fr; }
.docs-checklist.table-scroll { overflow: visible; }
.docs-checklist .admin-table th { position: static; }
.docs-checklist .admin-table td.wrap { white-space: normal; min-width: 220px; }
.docs-checklist .admin-table tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   관리자 대시보드 — 공개 사이트와 동일한 디자인 토큰을 사용한다
   ------------------------------------------------------------------
   여기에는 관리자 전용 selector(.admin-* / .kpi / .bar-row)만 정의한다.
   · 공용(.panel / .table-scroll / .pill / .btn / .field / .alert)은
     공개 페이지와 공유되므로 이 블록에서 손대지 않는다.
   · 사이드바 다크 팔레트·그라디언트·그림자·모션은 :root 토큰을 재사용한다.
   ============================================================ */
.admin-body {
  --admin-side: 248px;
  background: var(--bg);
  background-image:
    radial-gradient(1000px 460px at 92% -8%, rgba(var(--brand-rgb), .06), transparent 62%),
    radial-gradient(760px 380px at -4% 4%, rgba(var(--brand-rgb), .035), transparent 58%);
  background-attachment: fixed;
}
.admin-shell { display: grid; grid-template-columns: var(--admin-side) 1fr; min-height: 100vh; }

/* 사이드바 — 브랜드 계열 다크 패널(공개 헤더/푸터와 동일한 시각 언어) */
.admin-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 24px 16px;
  color: #c7d2e0;
  background:
    radial-gradient(420px 220px at 50% -14%, rgba(var(--brand-rgb), .30), transparent 68%),
    linear-gradient(180deg, #141a24 0%, #0d1219 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 1px 0 0 rgba(255,255,255,.03) inset;
  scrollbar-width: thin;
}
.admin-side .brand { color: #fff; margin-bottom: 24px; letter-spacing: -.02em; }
.admin-side .brand .brand-mark {
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-deep));
  box-shadow: var(--shadow-brand);
}
.admin-side .brand-sub { color: rgba(199,210,224,.55); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: #c7d2e0; font-size: .88rem; font-weight: 600;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.admin-nav a.active {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff;
  box-shadow: var(--shadow-brand), 0 0 0 1px rgba(255,255,255,.14) inset;
}
.admin-nav .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 16px 0 6px; padding: 0 12px; }

/* 본문 */
.admin-main { padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2.6vw, 34px) 72px; min-width: 0; }
.admin-top {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px;
}
/* 제목 아래 프리미엄 헤어라인 — 공개 .page-head 와 동일한 시각 언어 */
.admin-top::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(var(--brand-rgb), .28), rgba(var(--brand-rgb), .04) 42%, transparent);
}
.admin-top h1 {
  font-size: clamp(1.3rem, 1.14rem + 0.6vw, 1.6rem);
  margin: 0; letter-spacing: -.03em; line-height: 1.15; color: var(--ink);
}

/* KPI — 다층 그림자 + 그라디언트 액센트 바 (공개 .stat 과 동일 계열) */
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 16px; }
.kpi {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .2); }
.kpi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
}
.kpi .k { font-size: .73rem; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v {
  font-size: clamp(1.6rem, 1.4rem + 0.7vw, 2rem);
  font-weight: 800; color: var(--ink); margin-top: 6px; line-height: 1.06; letter-spacing: -.035em;
}
.kpi .d { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.kpi.brand::before { background: linear-gradient(180deg, var(--brand-light), var(--brand-deep)); }
.kpi.brand .v { color: var(--brand); }
.kpi.ok::before { background: linear-gradient(180deg, #34d399, var(--ok)); }
.kpi.ok .v { color: var(--ok); }
.kpi.warn::before { background: linear-gradient(180deg, #f0b429, var(--warn)); }
.kpi.warn .v { color: var(--warn); }

/* 표 — 관리자 전용 테이블만. 공용 .table-scroll 은 공개 페이지와 공유하므로 미변경 */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .85rem; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.admin-table th {
  font-size: .71rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2);
  background: linear-gradient(180deg, #fafbfd, #f6f8fb); position: sticky; top: 0; z-index: 1;
  box-shadow: 0 1px 0 var(--line);
}
.admin-table tr { transition: background-color .16s var(--ease); }
.admin-table tbody tr:hover td { background: rgba(var(--brand-rgb), .04); }
.admin-table td.wrap { white-space: normal; min-width: 180px; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }

/* 분포 바 */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: .82rem; }
.bar-row .nm { flex: 0 0 42%; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { flex: 1; height: 9px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.bar-row .bar > i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  box-shadow: 0 0 10px -2px rgba(var(--brand-rgb), .5);
  transition: width .6s var(--ease-out);
}
.bar-row .n { flex: 0 0 42px; text-align: right; font-weight: 700; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.accepted { background: var(--ok-soft); color: var(--ok); }
.pill.rejected { background: var(--danger-soft); color: var(--danger); }
.pill.hold { background: #eef1f5; color: var(--muted-2); }
.pill.d2 { background: var(--info-soft); color: var(--info); }
.pill.d4 { background: rgba(124,58,237,.1); color: #7c3aed; }

@media (max-width: 900px) {
  .fee-grid, .doc-grid, .docs-split { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav .grp { display: none; }
}

/* ============================================================
   프리미엄 인터랙션 레이어 (점진적 향상)
   ------------------------------------------------------------------
   · JS 는 html.js 클래스를 붙인다 → JS 가 없으면 아무 것도 숨겨지지 않는다
   · 관리자 화면은 app.js 를 로드하지 않으므로 이 레이어의 영향을 받지 않는다
   · 모든 모션은 prefers-reduced-motion 을 존중한다
   ============================================================ */

/* ---- 상단 읽기 진행바 ---- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-light), var(--brand) 55%, #7c3aed);
  box-shadow: 0 0 12px rgba(var(--brand-rgb), .55);
  z-index: 1100; pointer-events: none;
  opacity: 0; transition: opacity .32s var(--ease);
}
.read-progress.on { opacity: 1; }

/* ---- 스크롤 시 헤더 응축 (더 또렷하고, 살짝 얇아진다) ---- */
.navbar.scrolled {
  background: rgba(255,255,255,.93);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 12px 34px -24px rgba(var(--ink-rgb), .55);
}
.navbar.scrolled .nav-inner { min-height: 62px; }
.navbar .nav-inner { transition: min-height var(--dur) var(--ease); }

/* ---- 스크롤 리빌 ---- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(15px);
  transition: opacity .64s var(--ease-out), transform .64s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---- 맨 위로 ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1050;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5); color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 60%, var(--brand-dark));
  box-shadow: 0 1px 2px rgba(var(--brand-rgb), .35), 0 12px 26px -12px rgba(var(--brand-rgb), .8);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.94);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-2px) scale(1.05); }
.to-top:active { transform: scale(.97); }
@media (max-width: 760px) {
  .to-top { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
}

/* ---- 프리미엄 디테일: 주요 버튼의 빛 스윕 ---- */
.btn { overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.3) 49%, transparent 66%);
  transform: translateX(-125%);
  transition: transform .72s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(125%); }
@media (hover: none) { .btn-primary::after { display: none; } }

/* ---- 주요 섹션 구분 헤어라인 (격을 주는 미세 디테일) ---- */
.page-head::after,
.section-surface::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .28), transparent);
}
.section-surface { position: relative; }
.page-head { position: relative; }

/* ---- 리드 문단은 줄바꿈을 균형 있게 ---- */
.lead { text-wrap: pretty; word-break: keep-all; }

/* ---- 접근성: 모션 최소화 설정 존중 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .read-progress { transition: none; }
  .btn-primary::after { display: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---- 인쇄: 화면 장식 제거 ---- */
@media print {
  .navbar, .mobile-nav, .to-top, .read-progress, .footer { display: none !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
