/* ================================================================
   LMS E-Learning Design System v2
   Primary: #1a6cf0  Accent: #00c896  Background: #f8faff
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── 브랜드 컬러 ── */
  --primary:      #1a6cf0;
  --primary-d:    #1155cc;
  --primary-l:    #e8f1fe;
  --primary-ll:   #f0f6ff;
  --accent:       #00c896;
  --accent-d:     #00a87c;
  --accent-l:     #e6faf5;

  /* ── 시스템 컬러 ── */
  --success:      #10b981;
  --success-l:    #ecfdf5;
  --warning:      #f59e0b;
  --warning-l:    #fffbeb;
  --danger:       #ef4444;
  --danger-l:     #fef2f2;
  --info:         #3b82f6;
  --info-l:       #eff6ff;

  /* ── 텍스트 ── */
  --text:         #111827;
  --text-sub:     #6b7280;
  --text-muted:   #9ca3af;
  --text-invert:  #ffffff;

  /* ── 배경 / 테두리 ── */
  --bg:           #f8faff;
  --bg-card:      #ffffff;
  --bg-section:   #f3f7fe;
  --border:       #e2e8f5;
  --border-light: #eef2fb;

  /* ── 반경 ── */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;

  /* ── 그림자 ── */
  --shadow-sm:  0 1px 4px rgba(26,108,240,.06);
  --shadow-md:  0 4px 16px rgba(26,108,240,.10);
  --shadow-lg:  0 8px 32px rgba(26,108,240,.13);
  --shadow-card: 0 2px 12px rgba(0,0,0,.06);

  /* ── 헤더 ── */
  --header-h: 70px;

  /* ── 트랜지션 ── */
  --trans: all .18s ease;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
html, body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
button { cursor: pointer; }

/* ─────────────────────────────────────────────
   GNB (Global Navigation Bar)
───────────────────────────────────────────── */
#gnb {
  position: sticky;
  top: 0; z-index: 900;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(26,108,240,.07);
}
.gnb-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 0;
}

/* 로고 */
.gnb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 36px;
  text-decoration: none;
}
.gnb-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f8cff 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(26,108,240,.3);
}
.gnb-logo .logo-icon svg { color: #fff; }
.gnb-logo .logo-text {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.3px;
  line-height: 1;
}
.gnb-logo .logo-text span {
  color: var(--primary);
}

/* 메인 메뉴 */
.gnb-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.gnb-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: var(--trans);
  white-space: nowrap;
  position: relative;
}
.gnb-menu > li > a:hover {
  color: var(--primary);
  background: var(--primary-ll);
}
.gnb-menu > li.active > a {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-l);
}
.gnb-menu > li.active > a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* 알림 뱃지 */
.nav-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  border-radius: var(--r-full);
  line-height: 1;
}

/* 우측 액션 */
.gnb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* 공통 GNB 버튼 */
.gnb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: .83rem;
  font-weight: 600;
  transition: var(--trans);
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.gnb-btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-sub);
}
.gnb-btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.gnb-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(26,108,240,.3);
}
.gnb-btn-primary:hover {
  background: var(--primary-d);
  border-color: var(--primary-d);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,108,240,.4);
}

/* 사용자 드롭다운 */
.gnb-user-wrap { position: relative; }
.gnb-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  transition: var(--trans);
  color: var(--text);
}
.gnb-user-trigger:hover { border-color: var(--primary); }
.gnb-user-trigger.open { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }
.gnb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gnb-user-name {
  font-size: .83rem;
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gnb-chevron {
  transition: transform .18s;
  color: var(--text-muted);
  flex-shrink: 0;
}
.gnb-user-trigger.open .gnb-chevron { transform: rotate(180deg); }

/* 드롭다운 메뉴 */
.gnb-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 999;
}
.gnb-user-wrap.open .gnb-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.gnb-dropdown-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-section);
}
.gnb-dropdown-header .dh-name {
  font-size: .9rem;
  font-weight: 700;
}
.gnb-dropdown-header .dh-id {
  font-size: .75rem;
  color: var(--text-sub);
  margin-top: 2px;
}
.gnb-dropdown-body a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .84rem;
  color: var(--text);
  transition: background .12s;
}
.gnb-dropdown-body a:hover { background: var(--bg-section); color: var(--primary); }
.gnb-dropdown-body a svg { color: var(--text-muted); flex-shrink: 0; }
.gnb-dropdown-body a:hover svg { color: var(--primary); }
.gnb-dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.gnb-dropdown-body .link-danger { color: var(--danger) !important; }
.gnb-dropdown-body .link-danger svg { color: var(--danger) !important; }
.gnb-dropdown-body .link-danger:hover { background: var(--danger-l) !important; }

/* 모바일 햄버거 */
.gnb-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-sub);
  transition: var(--trans);
  margin-left: 8px;
}
.gnb-hamburger:hover { border-color: var(--primary); color: var(--primary); }

/* ─────────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────────── */
#mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
#mobile-drawer .md-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,20,50,.5);
  backdrop-filter: blur(2px);
}
#mobile-drawer .md-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: #fff;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
}
#mobile-drawer.open .md-panel { transform: translateX(0); }

.md-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.md-header .md-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.md-header .md-logo-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.md-header .md-logo-text {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
}
.md-close {
  background: none; border: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-sub);
  transition: var(--trans);
}
.md-close:hover { background: var(--bg-section); color: var(--text); }

.md-user-info {
  padding: 16px 20px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.md-user-info .md-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.md-user-info .md-uname { font-weight: 700; font-size: .9rem; }
.md-user-info .md-uid { font-size: .75rem; color: var(--text-sub); margin-top: 2px; }

.md-nav { padding: 8px 0; flex: 1; }
.md-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: var(--trans);
  border-left: 3px solid transparent;
}
.md-nav a:hover,
.md-nav a.active {
  color: var(--primary);
  background: var(--primary-ll);
  border-left-color: var(--primary);
}
.md-nav a svg { flex-shrink: 0; }
.md-nav-sep {
  height: 1px;
  background: var(--border-light);
  margin: 8px 20px;
}

.md-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.md-footer .gnb-btn { justify-content: center; }

/* ─────────────────────────────────────────────
   LAYOUT CONTAINERS
───────────────────────────────────────────── */
.site-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}
.site-wrap-md  { max-width: 900px; }
.site-wrap-sm  { max-width: 720px; }
.site-wrap-xl  { max-width: 1440px; }

/* 브레드크럼 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-sub); transition: color .15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .bc-sep { color: var(--border); }
.breadcrumb .bc-cur { color: var(--text); font-weight: 600; }

/* 페이지 히어로 헤더 */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #3d8bff 100%);
  color: #fff;
  padding: 40px 28px;
  margin-bottom: 36px;
}
.page-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.page-hero h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: .92rem;
  opacity: .85;
}

/* 섹션 타이틀 */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.section-title h3 {
  font-size: 1.2rem;
  font-weight: 800;
}
.section-title .st-bar {
  width: 4px; height: 22px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 3px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   CARD COMPONENT
───────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.card-header h4 {
  font-size: 1rem;
  font-weight: 700;
}
.card-body { padding: 22px; }
.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-section);
}

/* 과정 카드 */
.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-l);
}
.course-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: var(--bg-section);
  overflow: hidden;
}
.course-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.course-card:hover .course-card-thumb img { transform: scale(1.04); }
.course-card-thumb .cc-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
}
.course-card-thumb .cc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #e8f1fe, #f0f6ff);
}
.course-card-body {
  padding: 18px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-card-category {
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.course-card-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.course-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .77rem;
  color: var(--text-sub);
  flex-wrap: wrap;
}
.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.course-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-section);
}
.course-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}
.course-card-price.free { color: var(--accent-d); }

/* ─────────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────────── */
.progress-wrap {
  background: var(--border-light);
  border-radius: var(--r-full);
  height: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--r-full);
  transition: width .4s ease;
}
.progress-wrap.sm { height: 5px; }
.progress-wrap.lg { height: 12px; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-xs  { padding: 5px 12px; font-size: .75rem; }
.btn-sm  { padding: 7px 16px; font-size: .82rem; }
.btn-lg  { padding: 13px 30px; font-size: .95rem; }
.btn-xl  { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-square { border-radius: var(--r-md); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(26,108,240,.25);
}
.btn-primary:hover {
  background: var(--primary-d);
  border-color: var(--primary-d);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,108,240,.38);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(0,200,150,.22);
}
.btn-accent:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
  color: #fff;
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-l);
  color: var(--primary-d);
}
.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-section);
  color: var(--text);
  border-color: var(--border);
}
.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-warning {
  background: var(--warning);
  color: #fff;
  border-color: var(--warning);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 7px;
}
.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,108,240,.1);
}
.form-control::placeholder { color: #c4cad8; }
.form-control[disabled],
.form-control[readonly] {
  background: var(--bg-section);
  color: var(--text-sub);
  cursor: not-allowed;
}
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
}
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 5px; }

/* ─────────────────────────────────────────────
   BADGES
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}
.badge-primary { background: var(--primary-l); color: var(--primary); }
.badge-accent   { background: var(--accent-l);   color: var(--accent-d); }
.badge-success  { background: var(--success-l);  color: #065f46; }
.badge-warning  { background: var(--warning-l);  color: #92400e; }
.badge-danger   { background: var(--danger-l);   color: #991b1b; }
.badge-info     { background: var(--info-l);     color: #1e40af; }
.badge-gray     { background: #f3f4f6;           color: #4b5563; }

/* ─────────────────────────────────────────────
   ALERTS / FLASH
───────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: .875rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-l); border-color: #6ee7b7; color: #065f46; }
.alert-danger  { background: var(--danger-l);  border-color: #fca5a5; color: #991b1b; }
.alert-warning { background: var(--warning-l); border-color: #fcd34d; color: #92400e; }
.alert-info    { background: var(--info-l);    border-color: #93c5fd; color: #1e40af; }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  margin: 36px 0 0;
  flex-wrap: wrap;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: var(--r-md);
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--trans);
}
.page-link:hover {
  background: var(--primary-l);
  color: var(--primary);
  border-color: var(--primary-l);
}
.page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,108,240,.3);
}
.page-link.disabled {
  opacity: .4;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-sub);
}
.empty-state .es-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: .875rem;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   STAT CARD
───────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .sc-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card .sc-num {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.stat-card .sc-label {
  font-size: .8rem;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────
   TABLE
───────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.tbl th {
  padding: 12px 16px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.tbl tr:hover td { background: var(--bg-section); }
.tbl tr:last-child td { border-bottom: none; }

/* ─────────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent-d); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted   { color: var(--text-sub); }
.text-small   { font-size: .82rem; }
.fw-bold    { font-weight: 700; }
.fw-black   { font-weight: 800; }
.d-flex     { display: flex; }
.d-grid     { display: grid; }
.flex-col   { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap  { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.p-0 { padding: 0 !important; }
.w-100 { width: 100%; }
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 24px 0;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 960px) {
  .gnb-menu, .gnb-actions .gnb-btn { display: none; }
  .gnb-actions .gnb-user-wrap { display: none; }
  .gnb-hamburger { display: flex; }
  .gnb-inner { gap: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .site-wrap { padding: 24px 16px 60px; }
  .gnb-inner { padding: 0 16px; }
  .page-hero { padding: 28px 16px; }
  .page-hero h2 { font-size: 1.3rem; }
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}
.animate-fadein    { animation: fadeIn .35s ease; }
.animate-slidein-r { animation: slideInRight .3s ease; }
