/* =========================================================
   가천학원 신청 접수 시스템 — 공통 스타일
   다크 테마 + 에메랄드 포인트 / 모바일 우선 반응형
   ========================================================= */

:root {
  --bg: #060a08;
  --bg-soft: #0a1210;
  --surface: rgba(17, 27, 23, 0.72);
  --surface-solid: #101a16;
  --surface-hi: rgba(26, 41, 34, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --emerald: #10b981;
  --emerald-soft: #34d399;
  --emerald-deep: #047857;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --text: #e9f2ed;
  --text-dim: #a9bbb3;
  --muted: #7d918a;
  --danger: #f87171;
  --warn: #fbbf24;
  --amber: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.85);
  --font: "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(16, 185, 129, 0.16), transparent 62%),
    radial-gradient(760px 420px at 96% 4%, rgba(4, 120, 87, 0.18), transparent 60%),
    radial-gradient(680px 520px at 50% 112%, rgba(16, 185, 129, 0.08), transparent 65%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 아주 은은한 그리드 질감 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

::selection { background: rgba(16, 185, 129, 0.32); color: #fff; }

/* ---------------- 레이아웃 ---------------- */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px 64px;
}
.shell--wide { max-width: 1280px; }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 18px 10px;
}
.site-header--wide { max-width: 1280px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--emerald-soft), var(--emerald-deep));
  color: #04120c;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 22px -8px var(--emerald-glow);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 700; font-size: 15px; letter-spacing: -0.2px; }
.brand__sub { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* 로고 (다크 배경 위 크림색 플레이트) */
.brand__logo {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  background: #f7f3ec;
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.9);
}
.brand__logo img { display: block; height: 17px; width: auto; }

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------- 히어로 ---------------- */
.hero { padding: 26px 0 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-soft);
  box-shadow: 0 0 0 0 var(--emerald-glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(26px, 7.4vw, 40px);
  line-height: 1.26;
  letter-spacing: -1.2px;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--emerald-soft), #6ee7b7 55%, #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 14.5px;
  word-break: keep-all;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 12.5px;
}
.hero-facts svg { width: 14px; height: 14px; stroke: var(--emerald-soft); }

/* ---------------- 카드 / 폼 ---------------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card__title svg { width: 17px; height: 17px; stroke: var(--emerald-soft); }
.card__body { padding: 20px; }

.form-step {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-soft);
}
.form-step::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.42), transparent);
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--line); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--span-2 { grid-column: span 2; }
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}
.label .req { color: var(--emerald-soft); font-size: 14px; line-height: 1; }
.label .hint { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--muted); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #5f7269; }
.input:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.07);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

/* 라디오 카드 (학년 / 신청구분) */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.12s;
  user-select: none;
}
.choice:hover { border-color: rgba(16, 185, 129, 0.5); }
.choice:active { transform: scale(0.985); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  transition: border-color 0.16s, background 0.16s;
}
.choice__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #04120c;
  transform: scale(0);
  transition: transform 0.16s ease-out;
}
.choice__body { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.choice__label { font-size: 14.5px; font-weight: 600; }
.choice__desc { font-size: 11.5px; color: var(--muted); }
.choice:has(input:checked) {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35);
}
.choice:has(input:checked) .choice__dot { border-color: var(--emerald-soft); background: var(--emerald-soft); }
.choice:has(input:checked) .choice__dot::after { transform: scale(1); }
.choice:has(input:checked) .choice__label { color: #d7fbeb; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.26); }

/* 세그먼트 (재원구분) */
.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.segment label {
  position: relative;
  text-align: center;
  padding: 10px 8px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.segment input { position: absolute; opacity: 0; width: 0; height: 0; }
.segment label:has(input:checked) {
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.1));
  color: #d7fbeb;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.42);
}
.segment label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.24); }

/* 동의 */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  font-size: 12.8px;
  color: var(--text-dim);
  line-height: 1.55;
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--emerald);
  cursor: pointer;
}
.consent label { cursor: pointer; }
.consent strong { color: var(--text); font-weight: 600; }

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.16s, background 0.16s, border-color 0.16s, opacity 0.16s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn:disabled { opacity: 0.62; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  color: #04120c;
  background: linear-gradient(150deg, #6ee7b7, var(--emerald) 52%, #0ea672);
  box-shadow: 0 14px 34px -14px var(--emerald-glow), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.btn--primary:hover:not(:disabled) {
  box-shadow: 0 18px 40px -12px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--ghost {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}
.btn--ghost:hover:not(:disabled) { color: var(--text); border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.09); }
.btn--sm { padding: 9px 13px; font-size: 12.5px; border-radius: 10px; }

.form-actions { margin-top: 20px; }
.form-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11.8px;
  color: var(--muted);
  line-height: 1.6;
}

/* 스피너 */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(4, 18, 12, 0.28);
  border-top-color: #04120c;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn__label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 알림 ---------------- */
.alert {
  display: none;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}
.alert.is-visible { display: flex; }
.alert--error {
  border: 1px solid rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}
.alert--ok {
  border: 1px solid rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.1);
  color: #b7f7dd;
}
.alert__icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* 입력 오류 */
.field.has-error .input,
.field.has-error .textarea { border-color: rgba(248, 113, 113, 0.7); background: rgba(248, 113, 113, 0.07); }
.field-error {
  display: none;
  font-size: 11.8px;
  color: #fca5a5;
}
.field.has-error .field-error { display: block; }

/* ---------------- 접수 완료 화면 ---------------- */
.success {
  display: none;
  text-align: center;
  padding: 34px 20px 30px;
  animation: rise 0.42s ease-out both;
}
.success.is-visible { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(110, 231, 183, 0.5), rgba(16, 185, 129, 0.16));
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.07), 0 16px 40px -16px var(--emerald-glow);
}
.success__icon svg { width: 30px; height: 30px; stroke: #6ee7b7; stroke-width: 2.6; }
.success h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.6px; }
.success p { margin: 0 auto; max-width: 42ch; color: var(--text-dim); font-size: 13.6px; word-break: keep-all; }
.receipt {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 22px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
  text-align: left;
}
.receipt__item { padding: 12px 14px; background: rgba(10, 18, 16, 0.9); }
.receipt__k { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.receipt__v { font-size: 13.5px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.receipt__v--code { color: var(--emerald-soft); letter-spacing: 0.06em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------------- 푸터 (학부모 화면: 관리자 흔적 없음) ---------------- */
.site-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 11.8px;
  color: #6b7d75;
}
.site-footer p { margin: 0; }

.reveal { animation: rise 0.5s ease-out both; }
.reveal-2 { animation-delay: 0.08s; }

/* =========================================================
   관리자 페이지
   ========================================================= */
body.is-admin { }

/* 로그인 게이트 */
.gate {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 24px 18px 56px;
}
.gate__card {
  width: 100%;
  max-width: 420px;
  padding: 30px 24px 26px;
  text-align: center;
}
.gate__lock {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
}
.gate__lock svg { width: 24px; height: 24px; stroke: var(--emerald-soft); }
.gate h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.7px; }
.gate p { margin: 0 0 22px; font-size: 13px; color: var(--muted); word-break: keep-all; }
.gate form { text-align: left; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; letter-spacing: 0.2em; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.pw-toggle:hover { color: var(--emerald-soft); background: rgba(255, 255, 255, 0.05); }
.pw-toggle svg { width: 17px; height: 17px; }
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
}
.remember input { width: 16px; height: 16px; accent-color: var(--emerald); cursor: pointer; }
.gate__note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #6b7d75;
  line-height: 1.65;
  text-align: left;
  word-break: keep-all;
}

/* 관리자 대시보드 */
.admin-main { display: none; }
.admin-main.is-visible { display: block; }

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald-soft);
}
.live-chip .badge__dot { animation: none; box-shadow: none; }
.live-chip.is-stale { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.live-chip.is-stale .badge__dot { background: var(--muted); }

.page-title { margin: 6px 0 4px; font-size: clamp(21px, 5.4vw, 27px); letter-spacing: -0.9px; font-weight: 800; }
.page-sub { margin: 0 0 20px; font-size: 13px; color: var(--muted); }

/* 통계 */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.stat {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tint, var(--emerald)), transparent);
  opacity: 0.85;
}
.stat__k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stat__k i { width: 7px; height: 7px; border-radius: 50%; background: var(--tint, var(--emerald)); flex: none; }
.stat__v { margin-top: 4px; font-size: 25px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.stat__v small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat--new { --tint: #34d399; }
.stat--notified { --tint: #fbbf24; }
.stat--enrolled { --tint: #60a5fa; }
.stat--total { --tint: #a78bfa; }

/* 툴바 */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
  background: var(--surface);
  backdrop-filter: blur(12px);
}
@media (min-width: 820px) {
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  pointer-events: none;
}
.search-wrap .input { padding-left: 36px; font-size: 13.5px; padding-top: 10px; padding-bottom: 10px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 8px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: rgba(16, 185, 129, 0.5); }
.chip.is-active {
  color: #04120c;
  background: linear-gradient(150deg, #6ee7b7, var(--emerald));
  border-color: transparent;
  box-shadow: 0 8px 20px -10px var(--emerald-glow);
}
.chip span { opacity: 0.7; font-size: 11px; margin-left: 3px; }

/* 목록 컨테이너 */
.list-card {
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

/* 데스크톱 테이블 */
.table-scroll { display: none; overflow-x: auto; }
@media (min-width: 900px) { .table-scroll { display: block; } }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #0e1713;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
table.data tbody tr { transition: background 0.16s; }
table.data tbody tr:hover { background: rgba(16, 185, 129, 0.055); }
table.data tbody tr.is-new { animation: flashRow 2.6s ease-out 1; }
@keyframes flashRow {
  0% { background: rgba(16, 185, 129, 0.24); }
  100% { background: transparent; }
}
.cell-strong { font-weight: 700; letter-spacing: -0.2px; }
.cell-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cell-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.2px; color: var(--text-dim); white-space: nowrap; }
.cell-time { font-size: 11.8px; color: var(--muted); white-space: nowrap; line-height: 1.45; }
/* 신청 메모 — 자르지 않고 전부 보여준다.
   (예전에는 2줄에서 잘라 '더보기' 로 펼쳤는데, 화면 폭·브라우저에 따라
    잘린 높이를 재는 판정이 실패해서 메모를 볼 수 없는 경우가 생겼다.
    학원에서 메모를 읽는 것이 목적이므로 접지 않고 그대로 보여준다.) */
.cell-memo {
  max-width: 300px;
  font-size: 12.2px;
  line-height: 1.55;
  color: var(--text-dim);
  word-break: break-word;
  white-space: pre-wrap;   /* 학부모가 줄바꿈을 넣었으면 그대로 보여준다 */
}
.cell-memo.is-empty { color: #5c6f66; font-style: italic; }

.cell-memo-wrap { max-width: 300px; }
.cell-memo-wrap:hover .cell-memo { color: var(--text); }

/* 수강 프로그램 칸 — 수리논술(SHOW_PROGRAMS) 목록에서만 쓰인다.
   한 학생이 여러 과정을 동시에 고를 수 있어서 한 줄에 하나씩 쌓는다. */
.cell-progs { display: flex; flex-direction: column; gap: 3px; max-width: 210px; }
.cell-prog {
  font-size: 11.8px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: #a5b4fc;
  word-break: keep-all;
}

/* 금액 칸 — 총액을 크게, 회차·수강료·교재비를 아래에 작게 */
.cell-fee { min-width: 96px; }
.cell-fee__total {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fde68a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cell-fee__sub {
  margin-top: 2px;
  font-size: 10.8px;
  line-height: 1.45;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 문의과목 칩 — 윈터브릿지(SHOW_SUBJECTS) 목록에서만 쓰인다 */
.subject-pills { display: flex; flex-wrap: wrap; gap: 4px; max-width: 132px; }
.subject-pill {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #fde68a;
  background: rgba(250, 204, 21, 0.13);
  border: 1px solid rgba(250, 204, 21, 0.32);
  white-space: nowrap;
}

/* 비고(관리자 메모) — 칸을 누르면 바로 입력 */
.th-hint {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.3);
  vertical-align: middle;
}
.note-cell { min-width: 168px; }
.note-btn {
  display: block;
  width: 100%;
  max-width: 230px;
  padding: 7px 9px;
  font: inherit;
  font-size: 12.2px;
  line-height: 1.45;
  text-align: left;
  color: var(--text-dim);
  background: rgba(167, 139, 250, 0.055);
  border: 1px dashed rgba(167, 139, 250, 0.34);
  border-radius: 8px;
  cursor: text;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.note-btn:hover { border-color: rgba(167, 139, 250, 0.62); background: rgba(167, 139, 250, 0.1); color: var(--text); }
.note-btn:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.note-btn.is-empty { color: #6f6383; font-style: italic; }
.note-btn.has-note { border-style: solid; color: #ddd0ff; }
.note-btn.is-saving { opacity: 0.6; cursor: progress; }

.note-edit { display: flex; flex-direction: column; gap: 6px; min-width: 168px; }
.note-edit textarea {
  width: 100%;
  min-height: 62px;
  max-width: 230px;
  padding: 7px 9px;
  font: inherit;
  font-size: 12.2px;
  line-height: 1.45;
  color: var(--text);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(167, 139, 250, 0.62);
  border-radius: 8px;
  resize: vertical;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.14);
}
.note-edit textarea:focus { outline: none; border-color: #a78bfa; }
.note-edit__row { display: flex; gap: 5px; align-items: center; }
.note-edit__btn {
  padding: 5px 10px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.note-edit__btn--save { color: #04120c; background: linear-gradient(150deg, #c4b5fd, #a78bfa); }
.note-edit__btn--save:hover { filter: brightness(1.08); }
.note-edit__btn--cancel { color: var(--text-dim); background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); }
.note-edit__btn--cancel:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.note-edit__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.note-edit__count { margin-left: auto; font-size: 10.5px; color: var(--muted); }

/* 삭제 버튼 */
.del-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #7d918a;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s;
  flex: none;
}
.del-btn svg { width: 15px; height: 15px; }
.del-btn:hover { color: #fca5a5; border-color: rgba(248, 113, 113, 0.6); background: rgba(248, 113, 113, 0.12); }
.del-btn:focus-visible { outline: 2px solid #f87171; outline-offset: 2px; }
.del-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 삭제 확인 모달 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 4, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: modalFade 0.16s ease-out both;
}
.modal[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal__card {
  width: 100%;
  max-width: 388px;
  padding: 24px 22px 20px;
  text-align: center;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #141d19, #0e1512);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.95);
  animation: modalRise 0.2s ease-out both;
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.13);
  border: 1px solid rgba(248, 113, 113, 0.34);
}
.modal__icon svg { width: 21px; height: 21px; }
.modal__title { margin: 0 0 7px; font-size: 17.5px; letter-spacing: -0.5px; color: #fff; }
.modal__text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  word-break: keep-all;
}
.modal__text strong { color: #fff; }
.modal__warn {
  margin: 0 0 18px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: left;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.24);
  word-break: keep-all;
}
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.modal__actions .btn { width: 100%; }
.btn--danger {
  color: #2a0707;
  background: linear-gradient(150deg, #fca5a5, #ef4444);
  box-shadow: 0 12px 28px -14px rgba(239, 68, 68, 0.8);
}
.btn--danger:hover:not(:disabled) { filter: brightness(1.06); }
.btn--danger .spinner { border-color: rgba(42, 7, 7, 0.3); border-top-color: #2a0707; }
.btn--danger.is-loading .spinner { display: block; }

/* 모바일 카드 내 비고 */
.app-card__note { margin-top: 10px; }
.app-card__note-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
}
.app-card__note-label svg { width: 12px; height: 12px; }
.app-card__note .note-btn,
.app-card__note .note-edit,
.app-card__note .note-edit textarea { max-width: none; }
.app-card__tools { display: flex; gap: 6px; align-items: center; margin-left: auto; }

/* 등록 확정 문자 — 상단 공통 복사 바 */
.sms-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.04));
  flex-wrap: wrap;
}
.sms-bar__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sms-bar__text strong { font-size: 13.5px; letter-spacing: -0.2px; color: #bfdbfe; }
.sms-bar__text span { font-size: 11.5px; line-height: 1.5; color: #8fa8c4; word-break: keep-all; }
.sms-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #06121f;
  background: linear-gradient(150deg, #93c5fd, #3b82f6);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 28px -14px rgba(59, 130, 246, 0.9);
  transition: filter 0.16s, transform 0.12s;
}
.sms-open-btn svg { width: 15px; height: 15px; flex: none; }
.sms-open-btn:hover { filter: brightness(1.07); }
.sms-open-btn:active { transform: translateY(1px); }
.sms-open-btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
@media (max-width: 560px) {
  .sms-bar { padding: 12px 13px; }
  .sms-open-btn { width: 100%; }
}

/* 학생 행/카드의 도구 영역 (삭제 버튼) */
.row-tools { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }

/* 문자 미리보기/복사 모달 */
.modal--sms .modal__card {
  max-width: 460px;
  text-align: left;
  border-color: rgba(59, 130, 246, 0.34);
}
.modal__icon--sms {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.36);
}
.modal--sms .modal__title { text-align: center; }
.modal--sms .modal__text { text-align: center; margin-bottom: 12px; }

/* 문자 문구 대학 선택 (가천대 / 국민대) */
.sms-uni {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}
.sms-uni__btn {
  padding: 8px 10px;
  font: inherit;
  font-size: 12.4px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #9aa0a6;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}
.sms-uni__btn:hover { color: #e6e8ea; background: rgba(255, 255, 255, 0.05); }
.sms-uni__btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 1px; }
.sms-uni__btn.is-current[data-sms-uni="가천대"] {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
}
.sms-uni__btn.is-current[data-sms-uni="국민대"] {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.46);
}
.sms-body {
  display: block;
  width: 100%;
  padding: 12px 13px;
  font-family: var(--font);
  font-size: 12.8px;
  line-height: 1.68;
  color: var(--text);
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  resize: vertical;
  min-height: 168px;
  word-break: keep-all;
  white-space: pre-wrap;
}
.sms-body:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}
.sms-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 7px 0 16px;
  font-size: 11px;
  color: var(--muted);
}
.sms-count { font-weight: 700; color: #93c5fd; flex: none; }
.sms-count.is-long { color: #fbbf24; }
.sms-hint { text-align: right; }
.modal--sms .modal__actions { grid-template-columns: 1fr 1.35fr; }
.modal--sms .btn--primary .spinner { border-color: rgba(4, 18, 12, 0.3); border-top-color: #04120c; }
.modal--sms .btn--primary.is-loading .spinner { display: block; }

.badge-mini {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-mini--apply { color: #a7f3d0; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); }
.badge-mini--consult { color: #c7d2fe; background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.32); }
.badge-mini--enrolled { color: #fde68a; background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.32); }
.badge-mini--new { color: #bae6fd; background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); }
/* 신청 대학 — 가천대(빨강) / 국민대(주황). 값이 없는 기존 신청은 가천대로 본다. */
.badge-mini--gachon { color: #fca5a5; background: rgba(239, 68, 68, 0.13); border-color: rgba(239, 68, 68, 0.32); }
.badge-mini--kukmin { color: #fdba74; background: rgba(249, 115, 22, 0.14); border-color: rgba(249, 115, 22, 0.34); }

/* 상태 변경 스위치 */
.status-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}
.status-switch button {
  padding: 6px 9px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.status-switch button:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.status-switch button.is-current { color: #04120c; }
.status-switch button.is-current[data-status="신청완료"] { background: linear-gradient(150deg, #6ee7b7, #10b981); }
.status-switch button.is-current[data-status="안내완료"] { background: linear-gradient(150deg, #fde68a, #f59e0b); }
.status-switch button.is-current[data-status="등록완료"] { background: linear-gradient(150deg, #93c5fd, #3b82f6); color: #06121f; }
.status-switch button:disabled { opacity: 0.5; cursor: progress; }
.status-switch.is-saving { opacity: 0.6; pointer-events: none; }

/* 모바일 카드 */
.cards { display: block; padding: 12px; display: grid; gap: 10px; }
@media (min-width: 900px) { .cards { display: none; } }
.app-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  padding: 13px 14px;
  transition: border-color 0.18s;
}
.app-card.is-new { border-color: rgba(16, 185, 129, 0.55); animation: flashCard 2.6s ease-out 1; }
@keyframes flashCard {
  0% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.24); }
  100% { box-shadow: none; }
}
.app-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-card__name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.35; }
.app-card__name span { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 5px; }
.app-card__badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.app-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 11px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--line);
  font-size: 12.2px;
}
.app-card__meta div { display: flex; gap: 6px; min-width: 0; }
.app-card__meta dt { color: var(--muted); flex: none; }
.app-card__meta dd { margin: 0; color: var(--text-dim); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card__meta div.is-wide { grid-column: span 2; }
.app-card__meta dd.is-wrap { white-space: normal; word-break: break-word; font-weight: 500; line-height: 1.5; }
.app-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.app-card__time { font-size: 11.2px; color: var(--muted); }
.status-switch--mobile { flex: 1; justify-content: stretch; }
.status-switch--mobile button { flex: 1; padding: 8px 4px; font-size: 11.5px; }

/* 빈 상태 / 로딩 스켈레톤 */
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty svg { width: 34px; height: 34px; stroke: #2f4239; margin-bottom: 10px; }
.empty p { margin: 0; }
.empty strong { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 4px; }

.skeleton-row {
  height: 46px;
  margin: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 11.8px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* 토스트 */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: rgba(14, 24, 20, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.9);
  animation: toastIn 0.24s ease-out both;
}
.toast svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.toast--ok { border-color: rgba(16, 185, 129, 0.5); }
.toast--ok svg { stroke: #34d399; }
.toast--err { border-color: rgba(248, 113, 113, 0.5); }
.toast--err svg { stroke: #f87171; }
.toast.is-out { animation: toastOut 0.2s ease-in both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* 접근성 */
.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;
}
:focus-visible { outline: 2px solid var(--emerald-soft); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   프로그램 목록 페이지 — 대시보드로 돌아가는 링크
   ========================================================= */
.prog-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 10px;
  padding: 6px 11px 6px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-dim);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.prog-back svg { width: 14px; height: 14px; flex: none; }
.prog-back:hover { color: var(--text); border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.09); }
.prog-back:focus-visible { outline: 2px solid var(--emerald-soft); outline-offset: 3px; }

/* =========================================================
   대시보드(admin.html) — 프로그램 카드
   ========================================================= */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
@media (min-width: 760px) {
  .dash-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.dash-card {
  --tint: var(--emerald);
  --tint-soft: #6ee7b7;
  display: block;
  position: relative;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.14s, box-shadow 0.18s;
}
.dash-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tint), transparent);
  opacity: 0.9;
}
/* 프로그램별 색상 — 요청된 색으로 구분 */
.dash-card--red {
  --tint: #ef4444;
  --tint-soft: #fca5a5;
}
.dash-card--green {
  --tint: #10b981;
  --tint-soft: #6ee7b7;
}
.dash-card--navy {
  --tint: #4f6ef7;
  --tint-soft: #a5b4fc;
}
.dash-card--sky {
  --tint: #38bdf8;
  --tint-soft: #7dd3fc;
}
.dash-card--yellow {
  --tint: #facc15;
  --tint-soft: #fde68a;
}
/* 색이 있는 카드는 상단 띠를 더 진하게 해 한눈에 구분되게 */
.dash-card--red::before,
.dash-card--green::before,
.dash-card--navy::before,
.dash-card--sky::before,
.dash-card--yellow::before { height: 3px; opacity: 1; }

.dash-card:hover {
  border-color: color-mix(in srgb, var(--tint) 55%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.9);
}
.dash-card:active { transform: translateY(0); }
.dash-card:focus-visible { outline: 2px solid var(--tint-soft); outline-offset: 3px; }

.dash-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dash-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--tint-soft);
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 42%, transparent);
  border-radius: 999px;
}
.dash-card__go {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--tint-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: background 0.16s, transform 0.16s;
}
.dash-card__go svg { width: 14px; height: 14px; }
.dash-card:hover .dash-card__go {
  background: color-mix(in srgb, var(--tint) 22%, transparent);
  transform: translate(1px, -1px);
}

.dash-card__name {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
.dash-card__sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.1px;
}

/* 수업 기간 */
.dash-card__period {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0 13px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--tint-soft);
  background: color-mix(in srgb, var(--tint) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 28%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}
.dash-card__period svg { width: 12px; height: 12px; flex: none; }
/* 일정 미확정 */
.dash-card__period--tbd {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
  font-weight: 600;
}

.dash-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
}
.dash-mini {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 8px;
  background: rgba(9, 16, 13, 0.72);
  min-width: 0;
}
.dash-mini__k {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-mini__v {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--text);
}
.dash-mini--total .dash-mini__v { color: var(--tint-soft); }

.dash-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 9px;
}
.dash-card__updated {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: -0.1px;
}
.dash-card.is-error { border-color: rgba(248, 113, 113, 0.42); }
.dash-card.is-error .dash-card__updated { color: #fca5a5; }

/* 신청 폼 주소 안내 */
.dash-forms {
  padding: 16px 17px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dash-forms__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.dash-forms__hint {
  margin: 3px 0 12px;
  font-size: 11.5px;
  color: var(--muted);
  word-break: keep-all;
}
.dash-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
  flex-wrap: wrap;
}
.dash-links__name {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.2px;
}
.dash-links__url {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}
/* 신청 폼이 아직 없는 프로그램 */
.dash-links__url--tbd {
  font-family: var(--font);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: -0.1px;
}
.dash-forms__note {
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  word-break: keep-all;
}
.dash-forms__note strong { color: var(--text-dim); font-weight: 700; }
.dash-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  padding: 7px 11px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #04120c;
  background: linear-gradient(150deg, #6ee7b7, var(--emerald));
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.16s, transform 0.12s;
}
.dash-copy svg { width: 13px; height: 13px; flex: none; }
.dash-copy:hover { filter: brightness(1.06); }
.dash-copy:active { transform: translateY(1px); }
.dash-copy:focus-visible { outline: 2px solid var(--emerald-soft); outline-offset: 3px; }

@media (max-width: 400px) {
  .dash-card { padding: 16px 14px 12px; }
  .dash-mini { padding: 8px 6px; }
  .dash-mini__v { font-size: 16px; }
  .dash-links li { gap: 7px; }
  .dash-links__name { width: 100%; }
}
