/* ==========================================================================
   밸류업 클래스 — 유료 수강 전용 스타일
   (내 강의실 · 결제 현황 · 영상 수강실 classroom.html · 분할결제 관리 split-payments.html)
   기존 vu.css 의 색상·폰트 토큰만 사용한다. 새 변수를 만들지 않는다.
   ========================================================================== */

/* ---------- 상태 배지 (vu.css .badge 와 별도 — 다섯 상태 전용 색) ---------- */
.l-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.l-badge-ok { background: var(--cobalt-50); color: var(--cobalt-700); }
.l-badge-wait { background: var(--coral-50); color: var(--coral); }
.l-badge-dim { background: var(--paper-2); color: var(--text-3); }

/* ---------- 내 강의실 탭 버튼 수가 늘어난 my-nav 보완 ---------- */
.my-nav.has-learning { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .my-nav.has-learning { grid-template-columns: repeat(2, 1fr); }
  .my-nav.has-learning button { font-size: 13.5px; padding: 10px 6px; }
}

/* ---------- 내 강의실 — 강의 카드 ---------- */
.l-course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.l-course { padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.l-course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.l-exp { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.l-course h3 { font-size: 17.5px; font-weight: 800; line-height: 1.4; margin-top: 2px; }
.l-inst { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.l-progress { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-top: 6px; }
.l-progress-bar { height: 100%; background: var(--cobalt); border-radius: 999px; transition: width .3s var(--ease); }
.l-progress-txt { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.l-course .btn { margin-top: 6px; }
@media (max-width: 720px) { .l-course-grid { grid-template-columns: 1fr; } }

/* ---------- 결제 현황 — 분할결제 그룹 카드 ---------- */
.l-group-list { display: grid; gap: 16px; }
.l-group { padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.l-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.l-group-head h3 { font-size: 17px; font-weight: 800; }
.l-group-amt { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--text-2); }
.l-parts { margin-top: 14px; display: grid; gap: 8px; }
.l-part { display: grid; grid-template-columns: 56px 90px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 13.5px; }
.l-part-no { font-weight: 800; color: var(--ink); }
.l-part-amt { font-weight: 700; }
.l-part-due { color: var(--text-3); }
@media (max-width: 560px) {
  .l-part { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; row-gap: 6px; }
}

/* ---------- 영상 수강실 (classroom.html) ---------- */
.l-bar { display: flex; gap: 18px; padding: 18px 20px 0; }
.l-back { font-size: 14.5px; font-weight: 700; color: var(--text-2); }
.l-back:hover { color: var(--cobalt); }
.l-room { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 18px 20px 60px; align-items: start; }
.l-player { min-width: 0; }
.l-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0B0E17; display: grid; place-items: center; box-shadow: var(--shadow-2); }
.l-video-ph { color: rgba(255,255,255,.72); font-size: 15px; font-weight: 600; text-align: center; padding: 0 24px; }
.l-course-title { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.l-course-inst { margin-top: 4px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.l-nav-btns { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.l-side { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); display: flex; flex-direction: column; }
.l-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper); flex: none; }
.l-tab { padding: 9px 4px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--text-3); }
.l-tab.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.l-tabpanel { margin-top: 14px; overflow-y: auto; }
.l-lessons { display: grid; gap: 4px; }
.l-lesson { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 10px; text-align: left; font-size: 14px; font-weight: 600; color: var(--text-2); }
.l-lesson:hover { background: var(--paper); }
.l-lesson.is-on { background: var(--cobalt-50); color: var(--cobalt-700); font-weight: 800; }
.l-lesson-chk { color: var(--cobalt); font-weight: 800; }
.l-lesson-time { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.l-notice { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.l-notice:last-child { border-bottom: 0; }
.l-notice h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.l-notice p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.l-resource { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--cobalt-700); text-align: left; }
.l-resource:hover { background: var(--cobalt-50); }
.l-access { padding: 100px 20px; display: grid; place-items: center; text-align: center; }
.l-access-box { max-width: 420px; }
.l-access-box h1 { font-family: var(--display); font-weight: 800; font-size: 24px; margin-bottom: 10px; }
.l-access-box p { color: var(--text-2); line-height: 1.7; }

@media (max-width: 900px) {
  .l-room { grid-template-columns: 1fr; }
  .l-side { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .l-bar { padding: 14px 16px 0; gap: 12px; }
  .l-room { padding: 14px 16px 44px; gap: 18px; }
  .l-course-title { font-size: 19px; }
  .l-nav-btns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .l-nav-btns { grid-template-columns: 1fr; }
}

/* ==========================================================================
   분할결제 관리 (split-payments.html) — 관리자 전용
   ========================================================================== */
.sp-shell { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
.sp-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.sp-login-card { width: 100%; max-width: 420px; padding: 34px 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.sp-login-card h1 { font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.sp-login-card p.help { margin-bottom: 20px; }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.sp-top h1 { font-family: var(--display); font-weight: 800; font-size: 22px; }
.sp-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.sp-tab { padding: 12px 18px; font-size: 15px; font-weight: 700; color: var(--text-3); border-bottom: 2.5px solid transparent; }
.sp-tab.is-on { color: var(--ink); border-color: var(--cobalt); }
.sp-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.sp-side { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; position: sticky; top: 20px; }
.sp-side input[type="search"] { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; outline: none; margin-bottom: 10px; }
.sp-member-list { display: grid; gap: 4px; max-height: 420px; overflow-y: auto; }
.sp-member { display: block; width: 100%; text-align: left; padding: 10px 10px; border-radius: 10px; font-size: 13.5px; }
.sp-member:hover { background: var(--paper); }
.sp-member.is-on { background: var(--cobalt-50); color: var(--cobalt-700); font-weight: 700; }
.sp-member b { display: block; font-size: 14px; }
.sp-member span { color: var(--text-3); font-size: 12.5px; }
.sp-clear { margin-top: 8px; font-size: 13px; color: var(--text-3); text-decoration: underline; }
.sp-main { min-width: 0; }
.sp-filter-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.sp-filter-row select { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13.5px; background: #fff; }
.sp-filter-row .sp-spacer { flex: 1; }
.sp-note { padding: 12px 14px; border-radius: 12px; background: var(--cobalt-50); color: var(--cobalt-700); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
table.sp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.sp-table th, table.sp-table td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.sp-table th { color: var(--text-3); font-weight: 700; font-size: 12.5px; }
.sp-group-card { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.sp-group-card .l-group-head { margin-bottom: 4px; }
.sp-dirty { color: var(--coral); font-weight: 700; margin-top: 10px; }
.sp-group-sub { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.sp-part-admin { display: grid; grid-template-columns: 56px 90px 1fr 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--paper); font-size: 13px; margin-top: 6px; }
.sp-part-admin input { height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12.5px; width: 100%; }
.sp-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sp-part-rows { display: grid; gap: 10px; margin: 12px 0; }
.sp-part-row-new { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 8px; align-items: center; }
.sp-sum-check { margin-top: 10px; font-size: 13.5px; font-weight: 700; }
.sp-sum-ok { color: var(--cobalt-700); }
.sp-sum-bad { color: var(--coral); }

@media (max-width: 900px) {
  .sp-grid { grid-template-columns: 1fr; }
  .sp-side { position: static; }
}
@media (max-width: 480px) {
  .sp-shell { padding: 18px 14px 60px; }
  .sp-part-admin { grid-template-columns: 1fr 1fr; }
  .sp-part-row-new { grid-template-columns: 1fr; }
}
