:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

/* Top Navigation / Header */
.top-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0d9488 100%);
  color: #ffffff;
  padding: 28px 20px 68px;
  position: relative;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.season-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.2s;
}

.season-pill:hover {
  background: rgba(255, 255, 255, 0.24);
}

.season-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.25);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.header-title-wrap h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.header-title-wrap p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 660px;
}

/* Child Grade Quick Selector in Header */
.child-grade-box {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  min-width: 280px;
}

.child-grade-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.child-grade-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.grade-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.grade-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.grade-btn.active {
  background: #ffffff;
  color: #1e3a8a;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

/* Main Container */
.container {
  max-width: 1280px;
  margin: -42px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* KPI Row */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
  width: 100%;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.09);
}

.kpi-card.active-kpi {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}

.kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon.green { background: #ecfdf5; color: #059669; }
.kpi-icon.amber { background: #fffbeb; color: #d97706; }
.kpi-icon.rose { background: #fff1f2; color: #e11d48; }

.kpi-meta {
  min-width: 0;
}

.kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* View Tabs */
.view-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.view-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  gap: 4px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--surface-subtle);
}

.tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.notice-inline {
  font-size: 12.5px;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* Insights Grid (Charts + Iksan Zone Map) */
.insights-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Interactive Category Bar Chart */
.cat-chart {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cat-bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.cat-bar-row:hover {
  background: var(--surface-subtle);
}

.cat-bar-row.selected {
  background: var(--accent-soft);
  border-color: #bfdbfe;
}

.cat-bar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.cat-bar-track {
  height: 14px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-bar-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
}

/* Iksan Schematic Zone Map */
.zone-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zone-svg-container {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  position: relative;
}

.zone-svg {
  width: 100%;
  height: auto;
  display: block;
}

.zone-node {
  cursor: pointer;
  transition: transform 0.18s ease;
}

.zone-node:hover .zone-circle {
  stroke-width: 4;
}

.zone-node.active .zone-pulse {
  opacity: 0.32;
}

.zone-legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zone-mini-btn {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.zone-mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.zone-mini-btn.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.zone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Filter Toolbar */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-top-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.search-box {
  flex: 1 1 280px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  font-size: 14px;
  background: var(--surface-subtle);
  color: var(--text-primary);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  background: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.bookmark-filter-btn {
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.bookmark-filter-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.bookmark-filter-btn.active {
  background: var(--rose-soft);
  border-color: var(--rose);
  color: var(--rose);
}

.reset-btn {
  padding: 10px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.reset-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: var(--surface-subtle);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: #93c5fd;
  color: var(--accent);
}

.chip-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Results Bar */
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.results-count {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--accent);
  font-size: 16px;
}

.active-filters-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.active-tag {
  font-size: 12px;
  font-weight: 600;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Program Cards Grid */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.program-card.grade-match {
  border-top: 3px solid var(--accent);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3.5px 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  line-height: 1.3;
}

.badge-free {
  background: var(--success-soft);
  color: var(--success);
  border-color: #a7f3d0;
}

.badge-material {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}

.badge-paid {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: #fde68a;
}

.badge-rec {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.bookmark-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #94a3b8;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.bookmark-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.bookmark-btn.saved {
  background: var(--rose-soft);
  border-color: var(--rose);
  color: var(--rose);
}

.card-institution {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-title {
  font-size: 16.5px;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.38;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-summary {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px;
  background: var(--surface-subtle);
  border-radius: 10px;
  margin-bottom: 13px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.card-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.card-meta-item span.meta-k {
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 44px;
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.highlight-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-secondary {
  background: var(--surface-subtle);
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Institutions Table View */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.inst-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.inst-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.inst-name {
  font-size: 16px;
  font-weight: 750;
  color: var(--text-primary);
}

.inst-zone {
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text-secondary);
  padding: 4px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.inst-role {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.inst-tip {
  font-size: 12.5px;
  background: #eff6ff;
  color: #1e40af;
  padding: 9px 12px;
  border-radius: 9px;
}

.inst-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.phone-copy-btn {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-primary);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.phone-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Season Timeline View */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timeline-card.current-season {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timeline-period {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.timeline-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-secondary);
}

.timeline-card.current-season .timeline-badge {
  background: var(--accent);
  color: #ffffff;
}

.timeline-title {
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 12px;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.timeline-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.timeline-list li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 800;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.modal-title {
  font-size: 21px;
  font-weight: 800;
  margin: 10px 0 4px;
  padding-right: 36px;
}

.modal-inst {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.65;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-info-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.modal-info-box .label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.modal-info-box .val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-tip-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Footer */
.dashboard-footer {
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.7;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .top-header {
    padding: 22px 16px 56px;
  }
  .container {
    padding: 0 14px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kpi-card {
    padding: 14px;
    gap: 10px;
  }
  .kpi-value {
    font-size: 20px;
  }
  .program-grid,
  .directory-grid,
  .timeline-grid,
  .modal-info-grid {
    grid-template-columns: 1fr;
  }
  .view-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Live Recruitment Tab Styles */
.live-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.live-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.live-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  display: inline-block;
}

.live-updated {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.cmd-copy-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.cmd-copy-btn:hover {
  background: #dbeafe;
}

.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.source-pill.ok::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.source-pill.fail::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

.live-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.status-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.status-chip.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.badge-status-open {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.badge-status-upcoming {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.badge-status-notice {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
}

.badge-status-closed {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

.live-card-closed {
  opacity: 0.78;
}

.live-card-closed:hover {
  opacity: 1;
}
