:root {
  --black: #0a0a0b;
  --charcoal: #131315;
  --charcoal-2: #1b1b1e;
  --charcoal-3: #202023;
  --line: rgba(244, 241, 236, 0.1);
  --line-soft: rgba(244, 241, 236, 0.06);
  --off-white: #f4f1ec;
  --off-white-dim: rgba(244, 241, 236, 0.62);
  --off-white-faint: rgba(244, 241, 236, 0.4);
  --bronze: #b08d57;
  --gold: #d9b483;
  --gold-bright: #e8caa0;
  --green: #7fae8e;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font-family: inherit; background: none; border: none; }
img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--bronze));
  color: #14100a;
  box-shadow: 0 8px 20px -8px rgba(216, 175, 120, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(216, 175, 120, 0.6); }
.btn-outline { background: transparent; color: var(--off-white); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-lg { padding: 14px 24px; }
.btn-block { width: 100%; }
.link-ghost { font-size: 0.85rem; color: var(--off-white-dim); }
.link-ghost:hover { color: var(--gold-bright); }

/* ============ LOGIN PAGE ============ */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}
.login-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.2) 0%, rgba(176, 141, 87, 0.05) 40%, transparent 70%);
  pointer-events: none;
}
.login-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}
.login-logo span { color: var(--gold); font-weight: 400; }
.login-card {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
}
.login-card h1 { font-size: 2rem; margin-bottom: 10px; }
.login-sub { color: var(--off-white-dim); font-size: 0.92rem; margin: 0 0 30px; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.78rem; color: var(--off-white-faint); }
.field input, .field textarea, .field select {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
  resize: vertical;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.login-row { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--off-white-dim); cursor: pointer; }
.checkbox input { accent-color: var(--gold); }
.form-note { min-height: 0; font-size: 0.82rem; color: var(--gold-bright); text-align: center; margin: 0; }
.form-note.error { color: #d98c8c; }
.hidden { display: none !important; }
.login-tabs { display: flex; gap: 4px; background: var(--black); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 28px; }
.login-tab {
  flex: 1; background: none; border: none; border-radius: 7px;
  padding: 9px 0; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--off-white-faint); cursor: pointer; transition: background 0.18s ease, color 0.18s ease;
}
.login-tab.active { background: var(--charcoal-3); color: var(--gold-bright); }
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: var(--off-white-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.login-divider::before, .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-footer-note { margin-top: 28px; font-size: 0.85rem; color: var(--off-white-faint); }
.login-footer-note a { color: var(--gold-bright); }

/* ============ APP SHELL ============ */
.app-body { background: var(--black); }
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--charcoal);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: 26px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 10px 30px;
}
.sidebar-logo span { color: var(--gold); font-weight: 400; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--off-white-dim);
  transition: background 0.18s ease, color 0.18s ease;
}
.sidebar-link .icon { width: 18px; text-align: center; color: var(--off-white-faint); font-size: 0.95rem; }
.sidebar-link:hover { background: var(--charcoal-2); color: var(--off-white); }
.sidebar-link.active { background: var(--charcoal-3); color: var(--gold-bright); }
.sidebar-link.active .icon { color: var(--gold-bright); }
.sidebar-footer { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 16px; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 8px 12px 16px; }
.sidebar-user-name { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--off-white); }
.sidebar-user-level { margin: 2px 0 0; font-size: 0.76rem; color: var(--gold); }
.sidebar-link.logout { color: var(--off-white-faint); }
.sidebar-link.logout:hover { color: var(--off-white); }

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--bronze));
  color: #14100a;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
.avatar-sm { width: 34px; height: 34px; font-size: 0.72rem; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.sidebar-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.sidebar-toggle span { width: 18px; height: 1.5px; background: var(--off-white); }
.search-bar {
  position: relative;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
  z-index: 50;
}
.search-results.open { display: block; }
.search-result-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 8px; font-size: 0.86rem; color: var(--off-white);
}
.search-result-row:hover { background: var(--charcoal-3); }
.search-result-type {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(217, 180, 131, 0.1); padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}
.search-empty { padding: 14px 12px; font-size: 0.84rem; color: var(--off-white-faint); }

/* ============ MODAL ============ */
body.kz-modal-open { overflow: hidden; }
.kz-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,5,6,0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.kz-modal {
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 18px;
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 34px;
  animation: kzModalIn 0.18s ease;
}
@keyframes kzModalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.kz-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--charcoal-3); border: 1px solid var(--line); color: var(--off-white-dim);
  cursor: pointer; font-size: 0.9rem;
}
.kz-modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 6px; }
.kz-modal h2 { font-size: 1.5rem; margin-bottom: 4px; }
.kz-modal-tag { display: inline-block; margin-bottom: 14px; }
.kz-modal-body { color: var(--off-white-dim); font-size: 0.94rem; line-height: 1.65; white-space: pre-line; }
.kz-modal-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.kz-modal-section h4 { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--off-white-faint); font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; }
.kz-modal-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.search-icon { color: var(--off-white-faint); }
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.86rem;
}
.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--off-white-faint); }
.topbar-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 9px; width: 38px; height: 38px; cursor: pointer; font-size: 0.95rem; }

.content { padding: 36px 32px 80px; max-width: 1180px; width: 100%; margin: 0 auto; }
.content-head h1 { font-size: 2rem; margin-top: 4px; }
.content-lede { color: var(--off-white-dim); font-size: 0.96rem; margin: 12px 0 0; max-width: 560px; line-height: 1.55; }

.grid-2col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 36px; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }

.card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  margin-top: 20px;
}
.grid-2col .card, .grid-3col .card { margin-top: 0; }
.card-feature { background: linear-gradient(155deg, var(--charcoal-2), var(--charcoal)); }
.card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white-faint);
  margin: 0 0 14px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card-text { color: var(--off-white-dim); font-size: 0.9rem; margin: 0 0 18px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.progress-label { font-size: 0.8rem; color: var(--off-white-faint); }

.progress { height: 6px; border-radius: 999px; background: var(--charcoal-3); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--bronze), var(--gold-bright)); }

.card-link { display: inline-block; margin-top: 18px; font-size: 0.84rem; color: var(--gold-bright); }
.card-link:hover { text-decoration: underline; }

.meeting-list, .announce-list, .new-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.meeting-list li { display: flex; align-items: center; gap: 14px; }
.meeting-date {
  width: 46px; flex-shrink: 0; text-align: center;
  background: var(--charcoal-3); border-radius: 9px; padding: 6px 0;
}
.meeting-date span { display: block; font-size: 0.62rem; color: var(--gold); letter-spacing: 0.06em; }
.meeting-date strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--off-white); }
.meeting-info p { margin: 0; font-size: 0.88rem; color: var(--off-white); }
.meeting-info span { font-size: 0.78rem; color: var(--off-white-faint); }

.announce-title { margin: 0; font-size: 0.88rem; color: var(--off-white); line-height: 1.4; }
.announce-meta { font-size: 0.76rem; color: var(--off-white-faint); }

.new-list li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--off-white-dim); }
.tag {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--charcoal-3); color: var(--gold-bright);
  padding: 4px 9px; border-radius: 999px; flex-shrink: 0;
}

.quick-links { margin-top: 20px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 16px; font-size: 0.86rem; font-weight: 500; color: var(--off-white-dim);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.quick-link .icon { color: var(--gold); font-size: 1rem; }
.quick-link:hover { border-color: var(--gold); color: var(--off-white); transform: translateY(-2px); }

.progress-rows { display: flex; flex-direction: column; gap: 18px; }
.progress-row-head { display: flex; justify-content: space-between; font-size: 0.86rem; margin-bottom: 8px; }
.progress-row-head span:first-child { color: var(--off-white); }
.progress-row-head span:last-child { color: var(--off-white-faint); }
.progress-row-head .complete { color: var(--green); }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  font-size: 0.78rem; font-weight: 600; color: var(--gold-bright);
  border: 1px solid rgba(217, 180, 131, 0.35); background: rgba(217, 180, 131, 0.08);
  padding: 8px 14px; border-radius: 999px;
}

/* ============ TRAINING LIBRARY ============ */
.module-filter-row { display: flex; gap: 10px; margin: 30px 0 6px; flex-wrap: wrap; }
.filter-chip {
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--off-white-dim);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.filter-chip:hover { color: var(--off-white); border-color: var(--off-white-faint); }
.filter-chip.active { background: var(--gold-bright); color: #14100a; border-color: var(--gold-bright); font-weight: 600; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.module-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.module-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.module-card-featured { background: linear-gradient(155deg, var(--charcoal-2), var(--charcoal)); border-color: rgba(217, 180, 131, 0.3); }
.module-card-locked { opacity: 0.55; cursor: not-allowed; }
.module-card-top { display: flex; align-items: center; justify-content: space-between; }
.module-index { font-family: var(--font-display); font-size: 0.85rem; color: var(--bronze); }
.module-card h3 { font-size: 1.15rem; margin: 2px 0 2px; }
.module-card p { font-size: 0.85rem; color: var(--off-white-dim); line-height: 1.5; margin: 0 0 6px; flex: 1; }
.module-meta { font-size: 0.76rem; color: var(--off-white-faint); }

.status-badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; flex-shrink: 0;
}
.status-complete { background: rgba(127, 174, 142, 0.15); color: var(--green); }
.status-progress { background: rgba(217, 180, 131, 0.15); color: var(--gold-bright); }
.status-notstarted { background: var(--charcoal-3); color: var(--off-white-faint); }
.status-locked { background: var(--charcoal-3); color: var(--off-white-faint); }
.status-lapsed { background: rgba(217, 140, 140, 0.15); color: #d98c8c; }
.as-earned-projected { color: var(--off-white-faint); }
.as-earned-projected em { color: var(--gold); font-style: normal; font-size: 0.78rem; margin-left: 4px; }

/* ============ COURSE DETAIL ============ */
.content-wide { max-width: 1180px; }
.breadcrumb { display: inline-block; font-size: 0.84rem; color: var(--off-white-faint); margin-bottom: 20px; }
.breadcrumb:hover { color: var(--gold-bright); }

.course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}
.course-header h1 { font-size: 2.2rem; margin: 6px 0 10px; }
.course-progress-ring {
  flex-shrink: 0;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold-bright);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--charcoal);
}
.ring-value { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-bright); }
.ring-label { font-size: 0.68rem; color: var(--off-white-faint); text-transform: uppercase; letter-spacing: 0.04em; }

.course-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 30px; }

.video-player {
  aspect-ratio: 16/9;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(217, 180, 131, 0.2), transparent 55%),
    linear-gradient(155deg, var(--charcoal-2), var(--black));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.play-btn-lg {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(244,241,236,0.08); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright); font-size: 1.2rem; padding-left: 6px;
}
/* Real lesson media — YouTube / podcast embeds and link-out cards for anything that can't be framed */
.video-embed {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(217, 180, 131, 0.08);
}
.video-embed iframe { width: 100%; height: 100%; border: none; display: block; }
.video-embed-podcast { aspect-ratio: auto; height: 175px; }

.video-linkout {
  aspect-ratio: 16/9;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(217, 180, 131, 0.2), transparent 55%),
    linear-gradient(155deg, var(--charcoal-2), var(--black));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 0 40px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.video-linkout:hover { border-color: var(--gold); transform: translateY(-2px); }
.video-linkout-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: rgba(244,241,236,0.08); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright); font-size: 1rem; padding-left: 4px;
}
.video-linkout-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.video-linkout-text strong { color: var(--off-white); font-size: 1rem; font-weight: 600; }
.video-linkout-text span { color: var(--off-white-faint); font-size: 0.82rem; }
.video-linkout-arrow { color: var(--gold); font-size: 1.3rem; margin-left: auto; }

.lesson-header { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.lesson-header h2 { font-size: 1.5rem; margin: 0; }
.lesson-desc { color: var(--off-white-dim); font-size: 0.95rem; line-height: 1.65; margin: 16px 0 26px; max-width: 640px; }
.lesson-actions { display: flex; gap: 12px; margin-bottom: 36px; }

.resource-list { border-top: 1px solid var(--line-soft); padding-top: 22px; }
.resource-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; font-size: 0.88rem; color: var(--off-white-dim);
  border-bottom: 1px solid var(--line-soft);
}
.resource-row:last-child { border-bottom: none; }
.resource-row:hover { color: var(--off-white); }
.resource-row .icon { color: var(--gold); }
.resource-type {
  margin-left: auto; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--off-white-faint); background: var(--charcoal-3); padding: 3px 9px; border-radius: 999px;
}

.course-sidebar { background: var(--charcoal); border: 1px solid var(--line); border-radius: 16px; padding: 22px; align-self: start; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lesson-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: 9px; font-size: 0.85rem; color: var(--off-white-faint);
  cursor: pointer; transition: background 0.15s ease;
}
.lesson-item:hover { background: var(--charcoal-3); }
.lesson-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--charcoal-3); color: var(--off-white-faint);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
}
.lesson-item.done { color: var(--off-white-dim); }
.lesson-item.done .lesson-check { background: rgba(127, 174, 142, 0.15); color: var(--green); }
.lesson-item.current { background: var(--charcoal-3); color: var(--off-white); font-weight: 600; }
.lesson-item.current .lesson-check { background: var(--gold-bright); color: #14100a; }

/* ============ LIBRARY PAGES (scripts, carriers, case studies) ============ */
.lib-search {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin-top: 28px; max-width: 480px;
}
.lib-search .search-icon { color: var(--off-white-faint); }
.lib-search input { flex: 1; background: none; border: none; color: var(--off-white); font-family: var(--font-body); font-size: 0.9rem; }
.lib-search input:focus { outline: none; }
.lib-search input::placeholder { color: var(--off-white-faint); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.lib-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-align: left;
}
.lib-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.lib-card-tag {
  align-self: flex-start;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(217, 180, 131, 0.1); padding: 4px 10px; border-radius: 999px;
}
.lib-card h3 { font-size: 1.1rem; margin: 2px 0 2px; }
.lib-card p { font-size: 0.85rem; color: var(--off-white-dim); line-height: 1.5; margin: 0; }
.lib-card-meta { font-size: 0.76rem; color: var(--off-white-faint); margin-top: auto; padding-top: 8px; }

/* Objection accordion */
.accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.accordion-item { background: var(--charcoal); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.accordion-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; color: var(--off-white);
}
.accordion-head:hover { color: var(--gold-bright); }
.accordion-chevron { color: var(--off-white-faint); transition: transform 0.2s ease; flex-shrink: 0; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: var(--gold-bright); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-body-inner { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.accordion-block h4 { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--off-white-faint); font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; }
.accordion-block p { font-size: 0.9rem; color: var(--off-white-dim); line-height: 1.6; margin: 0; }

/* Carrier grid */
.carrier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.carrier-card {
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 22px; text-align: left; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.carrier-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.carrier-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--bronze));
  color: #14100a; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.carrier-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.carrier-card p { font-size: 0.82rem; color: var(--off-white-faint); margin: 0; }

/* Locked page (leadership) */
.locked-hero {
  margin-top: 40px; text-align: center; padding: 80px 40px;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 20px;
}
.locked-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--charcoal-3); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--gold);
}
.locked-hero h2 { font-size: 1.8rem; margin-bottom: 12px; }
.locked-hero p { color: var(--off-white-dim); max-width: 460px; margin: 0 auto; line-height: 1.6; }
.locked-progress { max-width: 320px; margin: 32px auto 0; text-align: left; }
.locked-progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--off-white-faint); margin-bottom: 8px; }

/* Resources page */
.resource-section-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.resource-block { background: var(--charcoal); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.resource-block h3 { font-size: 1.1rem; margin-bottom: 4px; }
.resource-block > p { font-size: 0.85rem; color: var(--off-white-dim); margin: 0 0 18px; }
.resource-block .resource-row { padding: 12px 0; }

/* ============ ADMIN ============ */
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 16px; gap: 16px; }
.admin-table { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px;
}
.admin-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.admin-row-main span:first-child { font-size: 0.94rem; color: var(--off-white); font-weight: 500; }
.admin-row-main span:not(:first-child) { font-size: 0.82rem; color: var(--off-white-faint); }
.admin-row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-row-actions .btn { padding: 8px 16px; font-size: 0.82rem; }
.admin-select {
  background: var(--black); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; color: var(--off-white); font-family: var(--font-body); font-size: 0.82rem;
}

/* ============ NUMBERS ============ */
.progress-bar-hit { background: linear-gradient(90deg, var(--green), var(--gold-bright)); }

.policy-table, .leaderboard-table { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.policy-row, .leaderboard-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--off-white);
  background: var(--charcoal-2);
}
.leaderboard-row { grid-template-columns: 0.6fr 1.6fr 0.8fr 1fr 1fr 0.8fr; }
.policy-row-head, .leaderboard-row-head {
  background: none; color: var(--off-white-faint); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; padding: 0 16px;
}
.policy-row-total { background: var(--charcoal-3); font-weight: 600; color: var(--gold-bright); }
.policy-row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.policy-row-actions .btn { padding: 7px 12px; font-size: 0.78rem; }
.leaderboard-row-top { background: linear-gradient(90deg, rgba(217,180,131,0.1), var(--charcoal-2)); border: 1px solid rgba(217,180,131,0.25); }
.leaderboard-rank { font-size: 1.1rem; font-family: var(--font-display); }

/* Celebration overlay */
.celebrate-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(5,5,6,0.82);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.celebrate-overlay.show { opacity: 1; pointer-events: auto; }
.celebrate-rocket {
  font-size: 5rem;
  animation: rocketLaunch 3.2s ease-in forwards;
}
.celebrate-overlay.show .celebrate-rocket { animation-play-state: running; }
@keyframes rocketLaunch {
  0% { transform: translateY(0) rotate(-45deg) scale(0.8); opacity: 0; }
  15% { opacity: 1; transform: translateY(0) rotate(-45deg) scale(1); }
  100% { transform: translateY(-70vh) translateX(40vw) rotate(-45deg) scale(1.2); opacity: 0; }
}
.celebrate-text { text-align: center; margin-top: 20px; animation: celebrateFadeIn 0.5s ease 0.2s both; }
@keyframes celebrateFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.celebrate-eyebrow { color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; }
.celebrate-text h2 { font-size: 2.4rem; color: var(--off-white); }
.confetti-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece {
  position: absolute; top: -20px; width: 8px; height: 14px; opacity: 0.9;
  animation-name: confettiFall; animation-timing-function: ease-in; animation-fill-mode: forwards;
}
@keyframes confettiFall {
  from { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  to { transform: translateY(105vh) rotate(540deg); opacity: 0.4; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid-2col { grid-template-columns: 1fr; }
  .grid-3col { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .course-layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .carrier-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-section-grid { grid-template-columns: 1fr; }
  .policy-row, .leaderboard-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .policy-row-head, .leaderboard-row-head { display: none; }
  .policy-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 40px rgba(0,0,0,0.4);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .topbar { padding: 16px 18px; }
  .content { padding: 26px 18px 60px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .course-header { flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .carrier-grid { grid-template-columns: 1fr 1fr; }
  .locked-hero { padding: 50px 24px; }
}
