/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  --navy:       #1A4731;  /* Deep Forest Green (메인) */
  --navy-light: #2D6A4F;  /* Mid Forest Green */
  --sage:       #52966A;  /* Sage Green */
  --sage-light: #E8F5EE;  /* Light Green Surface */
  --warm:       #7A8C6E;
  --accent:     #38A169;  /* Bright Green Accent */
  --accent-lt:  #C6F6D5;  /* Light Green Accent */
  --gold:       #C9A84C;
  --bg:         #F0F7F2;  /* Very Light Green Background */
  --surface:    #FFFFFF;
  --border:     #D4E8DB;  /* Green-tinted Border */
  --text:       #1A3328;
  --text-2:     #4A6657;
  --text-3:     #7A9985;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 2px 12px rgba(26,71,49,.08);
  --shadow-md:  0 4px 24px rgba(26,71,49,.14);
  --shadow-lg:  0 8px 40px rgba(26,71,49,.18);
  --transition: .2s ease;
  --font:       'Noto Sans KR', sans-serif;
}

/* ─── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; }
input, textarea, select { font-family: var(--font); }

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: baseline; gap: 6px;
  flex-shrink: 0;
}
.brand-inc  { font-size: 1.4rem; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.brand-time { font-size: 1.4rem; font-weight: 800; color: #FFFFFF; letter-spacing: 1px; }
.brand-ko   { font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.5); margin-left: 4px; }
.nav-links  { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links a {
  padding: 6px 14px; border-radius: 20px;
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nav-user   { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.user-badge {
  font-size: .8rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(255,255,255,.15); color: #fff;
}
.user-badge.admin   { background: rgba(201,168,76,.25); color: #F8D78A; }
.user-badge.parent  { background: rgba(107,143,113,.25); color: #A8D4AE; }
.btn-logout {
  font-size: .8rem; padding: 4px 12px; border-radius: 20px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.btn-logout:hover { background: rgba(255,255,255,.18); color: #fff; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 8px; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px;
  transition: var(--transition);
}

/* ─── Winner Banner ─────────────────────────────────────────── */
.winner-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #E8B84B 100%);
  padding: 12px 24px;
  text-align: center;
  font-size: .9rem; font-weight: 600;
  color: #2C1A00;
  letter-spacing: .3px;
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ─── Main Layout ───────────────────────────────────────────── */
main { flex: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-header {
  background: var(--navy);
  padding: 40px 24px 32px;
  color: #fff;
}
.page-header .container { display: flex; align-items: center; justify-content: space-between; }
.page-title { font-size: 1.75rem; font-weight: 700; }
.page-subtitle { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 1rem; font-weight: 600; color: var(--navy); }
.card-body  { padding: 24px; }

/* ─── Landing / Hero ────────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, #2C3F6B 50%, #1a3a4a 100%);
  padding: 80px 24px 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 18px; border-radius: 30px;
  background: rgba(74,144,217,.2); border: 1px solid rgba(74,144,217,.4);
  font-size: .8rem; font-weight: 600; color: #7EC8FF;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.3;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 1.05rem; line-height: 1.8;
  color: rgba(255,255,255,.75);
  max-width: 640px; margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Consulting Section ────────────────────────────────────── */
.consulting-section {
  background: linear-gradient(135deg, var(--sage-light) 0%, #fff 60%);
  padding: 64px 24px;
  border-top: 4px solid var(--sage);
}
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.3; margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem; color: var(--text-2);
  line-height: 1.9; max-width: 680px;
  margin-bottom: 32px;
}
.consulting-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-bottom: 36px;
}
.step-card {
  background: var(--surface);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sage); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  margin-bottom: 14px;
}
.step-card h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step-card p  { font-size: .85rem; color: var(--text-2); line-height: 1.6; }

/* ─── Feature Grid ──────────────────────────────────────────── */
.features-section { padding: 64px 24px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p  { font-size: .875rem; color: var(--text-2); line-height: 1.6; }

/* ─── Category Pill ─────────────────────────────────────────── */
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-size: .8rem; font-weight: 600;
}
.cat-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ─── Stat Cards ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
}
.stat-label { font-size: .8rem; color: var(--text-2); font-weight: 500; margin-bottom: 6px; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-sub   { font-size: .78rem; color: var(--text-3); margin-top: 4px; }

/* ─── Dashboard Grid ────────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dash-grid .span-2 { grid-column: 1 / -1; }
.dash-grid .span-full { grid-column: 1 / -1; }

/* ─── Chart Container ───────────────────────────────────────── */
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { max-width: 100%; }

/* ─── Time Records List ─────────────────────────────────────── */
.record-list { display: flex; flex-direction: column; gap: 8px; }
.record-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
}
.record-time { font-size: .8rem; color: var(--text-3); width: 90px; flex-shrink: 0; }
.record-cat  { font-size: .85rem; font-weight: 600; flex: 1; }
.record-dur  { font-size: .85rem; font-weight: 700; color: var(--navy); }
.record-note { font-size: .78rem; color: var(--text-2); width: 100%; margin-top: 4px; }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-section { padding: 32px 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--navy); }
label span { color: var(--text-3); font-weight: 400; }
input[type=text], input[type=password], input[type=date], input[type=time],
input[type=number], select, textarea {
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: .9rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,.15);
}
textarea { resize: vertical; min-height: 80px; }

/* ─── Timeline Input ────────────────────────────────────────── */
.timeline-entries { display: flex; flex-direction: column; gap: 10px; }
.timeline-entry {
  display: grid;
  grid-template-columns: 80px 80px auto 1fr 90px 36px;
  gap: 8px; align-items: center;
  padding: 12px 16px;
  background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.timeline-entry .tl-sep { text-align: center; color: var(--text-3); font-size: .85rem; }
.btn-remove {
  width: 30px; height: 30px; border-radius: 50%;
  background: #FDE8EF; color: #EC407A;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1;
  transition: var(--transition);
}
.btn-remove:hover { background: #EC407A; color: #fff; }
.btn-add-entry {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent-lt); color: var(--accent);
  font-size: .875rem; font-weight: 600;
  border: 1.5px dashed var(--accent);
  transition: var(--transition);
  margin-top: 4px;
}
.btn-add-entry:hover { background: var(--accent); color: #fff; }

/* ─── Subject Checklist ─────────────────────────────────────── */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.subject-row {
  background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 14px 16px;
}
.subject-row-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.subject-name { font-weight: 700; color: var(--navy); font-size: .9rem; flex: 1; }
.review-btns  { display: flex; gap: 6px; }
.review-btn {
  padding: 4px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text-2);
  transition: var(--transition); cursor: pointer;
}
.review-btn.active-yes { border-color: var(--sage); background: var(--sage-light); color: var(--sage); }
.review-btn.active-no  { border-color: #EC407A; background: #FDE8EF; color: #EC407A; }
.review-btn.active-na  { border-color: var(--text-3); background: #F5F5F5; color: var(--text-3); }

/* ─── View Tabs ─────────────────────────────────────────────── */
.view-tabs {
  display: flex; gap: 4px;
  background: var(--bg); border-radius: 10px; padding: 4px;
  border: 1px solid var(--border);
}
.view-tab {
  padding: 8px 20px; border-radius: 8px; font-size: .875rem; font-weight: 600;
  color: var(--text-2); transition: var(--transition); cursor: pointer;
  border: none; background: none;
}
.view-tab.active { background: var(--navy); color: #fff; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; font-family: var(--font);
  transition: all var(--transition); cursor: pointer;
  border: none; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(74,144,217,.3);
}
.btn-primary:hover { background: #3578c9; transform: translateY(-1px); }
.btn-navy {
  background: var(--navy); color: #fff;
  box-shadow: 0 4px 14px rgba(27,43,75,.25);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-sage {
  background: var(--sage); color: #fff;
  box-shadow: 0 4px 14px rgba(107,143,113,.3);
}
.btn-sage:hover { background: #5a7c60; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: 7px 16px; font-size: .82rem; border-radius: 6px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }

/* ─── Login Page ────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy) 0%, #2C3F6B 100%);
  padding: 24px;
}
.login-card {
  background: var(--surface); border-radius: 20px;
  padding: 48px 40px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center; margin-bottom: 32px;
}
.login-logo .brand-inc  { font-size: 2rem; }
.login-logo .brand-time { font-size: 2rem; }
.login-logo p { font-size: .85rem; color: var(--text-2); margin-top: 6px; }
.login-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.login-alert {
  padding: 10px 14px; border-radius: 8px;
  background: #FDE8EF; border: 1px solid #F8BBD0;
  color: #C62828; font-size: .85rem; margin-bottom: 16px;
}
.login-hint {
  margin-top: 20px; padding: 14px; border-radius: 8px;
  background: var(--sage-light); border: 1px solid #C8E6CA;
}
.login-hint p { font-size: .8rem; color: var(--text-2); line-height: 1.6; }
.login-hint strong { color: var(--sage); }

/* ─── Admin Table ───────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  padding: 12px 16px; text-align: left;
  background: var(--navy); color: rgba(255,255,255,.85);
  font-size: .8rem; font-weight: 600; letter-spacing: .5px;
}
.data-table th:first-child { border-radius: 8px 0 0 8px; }
.data-table th:last-child  { border-radius: 0 8px 8px 0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--bg); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 600;
}
.badge-admin   { background: rgba(201,168,76,.15); color: #B8860B; }
.badge-student { background: var(--accent-lt); color: var(--accent); }
.badge-parent  { background: var(--sage-light); color: var(--sage); }
.badge-active  { background: #E8F5E9; color: #2E7D32; }
.badge-inactive{ background: #FFEBEE; color: #C62828; }

/* ─── Toggle Switch ─────────────────────────────────────────── */
.toggle {
  position: relative; display: inline-block; width: 44px; height: 24px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #ccc; border-radius: 24px; transition: .3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--sage); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: 18px;
  width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(20px); transition: transform .25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-2);
  transition: var(--transition);
}
.modal-close:hover { background: var(--navy); color: #fff; }
.modal-body { padding: 24px 28px 28px; }

/* ─── Week Range Indicator ──────────────────────────────────── */
.week-nav {
  display: flex; align-items: center; gap: 12px;
}
.week-nav button {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: var(--text-2);
  transition: var(--transition);
}
.week-nav button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.week-nav span { font-size: .875rem; font-weight: 600; color: var(--navy); min-width: 180px; text-align: center; }

/* ─── Progress Bar ──────────────────────────────────────────── */
.progress-bar {
  height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 4px;
  transition: width .6s ease;
}

/* ─── Mood Selector ─────────────────────────────────────────── */
.mood-row { display: flex; gap: 10px; }
.mood-btn {
  font-size: 1.5rem; padding: 8px; border-radius: 10px;
  background: var(--bg); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
}
.mood-btn.selected { border-color: var(--accent); background: var(--accent-lt); }

/* ─── Heatmap ───────────────────────────────────────────────── */
.heatmap { display: flex; gap: 3px; flex-wrap: wrap; }
.heatmap-cell {
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--border); transition: var(--transition);
}
.heatmap-cell:hover { transform: scale(1.3); }
.heat-0 { background: #ECEFF1; }
.heat-1 { background: #B3E5FC; }
.heat-2 { background: #4FC3F7; }
.heat-3 { background: #0288D1; }
.heat-4 { background: #01579B; }

/* ─── Season Toggle ─────────────────────────────────────────── */
.season-toggle {
  display: flex; gap: 4px;
  background: var(--bg); border-radius: 10px; padding: 4px;
  border: 1px solid var(--border); margin-bottom: 24px;
}
.season-tab {
  flex: 1; padding: 10px; border-radius: 8px; text-align: center;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  color: var(--text-2); transition: var(--transition); border: none; background: none;
}
.season-tab.active { background: var(--navy); color: #fff; }
.season-tab.active.vacation { background: var(--sage); }

/* ─── Alert / Notice ────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 10px; font-size: .875rem; line-height: 1.6; }
.alert-info    { background: var(--accent-lt); border: 1px solid #BBDEFB; color: #1565C0; }
.alert-success { background: #E8F5E9; border: 1px solid #C8E6CA; color: #2E7D32; }
.alert-warn    { background: #FFF8E1; border: 1px solid #FFE082; color: #F57F17; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,.6);
  padding: 40px 24px 32px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-start; justify-content: space-between;
}
.footer-brand p { font-size: .82rem; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: .85rem; color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .78rem; width: 100%; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px; color: var(--text-2);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.empty-state p  { font-size: .875rem; }

/* ─── Utility ───────────────────────────────────────────────── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.w-full { width: 100%; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-navy { color: var(--navy); }
.text-sage { color: var(--sage); }
.text-muted { color: var(--text-2); }
.font-bold { font-weight: 700; }
.font-600 { font-weight: 600; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-inner { position: relative; }
  .nav-toggle { display: flex; }
  .dash-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .timeline-entry { grid-template-columns: 1fr 1fr auto 1fr 80px 36px; font-size: .82rem; }
  .login-card { padding: 32px 24px; }
  .hero h1 { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .consulting-steps { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; }
  .data-table { font-size: .8rem; }
  .data-table th, .data-table td { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .timeline-entry { grid-template-columns: 1fr 1fr; gap: 6px; }
  .timeline-entry .tl-sep { display: none; }
  .subject-grid { grid-template-columns: 1fr; }
  .view-tabs { flex-wrap: wrap; }
}
