/* North Talent Learning Platform · Stylesheet
   Sigma Technology North Solutions Scandinavian Tech Aesthetic */

:root {
  --bg: #071224;
  --bg-card: #0d2140;
  --bg-card-hover: #122b52;
  --bg-subtle: #091a33;
  --line: #1c365d;
  --line-strong: #2a4e80;
  
  --navy: #0b1f3a;
  --navy-dark: #050e1a;
  --aurora: #14b8a6;
  --aurora-light: #5eead4;
  --aurora-glow: rgba(20, 184, 166, 0.2);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.2);
  
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, 0.15);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.15);
  --err: #ef4444;
  --err-bg: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.15);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--aurora-light);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #fff;
}

code, pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

pre {
  background: var(--navy-dark);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  color: #e2e8f0;
}

p code, li code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Layout Utilities */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.card-head h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}
.page-head h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Typography & Helpers */
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.small-link { font-size: 0.85rem; color: var(--aurora-light); font-weight: 500; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; border: 0; border-top: 1px solid var(--line); }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.m-8 { margin: 2rem; }
.grow { flex-grow: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--aurora);
  color: #03201f;
  border-color: var(--aurora);
}
.btn-primary:hover {
  background: var(--aurora-light);
  border-color: var(--aurora-light);
  box-shadow: 0 0 15px var(--aurora-glow);
}
.btn-accent {
  background: var(--gold);
  color: #1a0f00;
  border-color: var(--gold);
}
.btn-accent:hover {
  background: var(--gold-light);
  box-shadow: 0 0 15px var(--gold-glow);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
}
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn-success {
  background: var(--ok);
  color: #022617;
}
.btn-err {
  background: var(--err);
  color: #fff;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
  border-radius: 8px;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1.1rem;
  border-radius: 4px;
}
.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}
.chip-gold {
  background: var(--gold-glow);
  color: var(--gold-light);
  border-color: rgba(245, 158, 11, 0.3);
}
.chip-area {
  background: rgba(94, 234, 212, 0.1);
  color: var(--aurora-light);
  border-color: rgba(94, 234, 212, 0.25);
}
.chip-sm {
  font-size: 0.7rem;
  padding: 1px 7px;
}

/* Rings & Progress Bars */
.ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ring-label {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.ring-label strong {
  font-size: 1.15rem;
  line-height: 1.1;
}
.ring-label span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bar {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--aurora);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  gap: 0.4rem;
}
.form input, .form textarea, .form select {
  background: var(--navy-dark);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--aurora);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem !important;
  cursor: pointer;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th, .table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.15);
}
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Public Header & Footer */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 18, 36, 0.85);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.pub-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}
.logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo strong {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.logo small {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.pub-nav nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.pub-nav nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.pub-nav nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at 50% 20%, #0d2952 0%, var(--bg) 70%);
  text-align: center;
}
.hero-inner {
  max-width: 840px;
}
.hero .eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--aurora-light);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stats dd {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.section {
  padding: 5rem 0;
}
.section-alt {
  background: rgba(13, 33, 64, 0.4);
}
.section-dark {
  background: var(--navy-dark);
}
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-head .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  font-weight: 700;
}
.section-head h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.split-card {
  border-top: 4px solid var(--c);
}
.split-pct {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--c);
  margin-bottom: 0.5rem;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.area-card {
  padding: 1.75rem;
}
.area-icon {
  font-size: 1.8rem;
  color: var(--aurora-light);
  margin-bottom: 0.75rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
}
.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: center;
}
.tl-q {
  display: flex;
  flex-direction: column;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.tl-q small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: normal;
  margin-top: 0.35rem;
}
.tl-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0.75rem 0;
}
.tl-mods li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}
.tl-mods .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.crit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.crit-card {
  position: relative;
  padding-top: 2rem;
}
.crit-n {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
}

.how .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 2.5rem 0 3rem;
}
.how .steps li span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aurora);
  color: #03201f;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pub-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
  background: var(--navy-dark);
}
.pub-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* App Topbar & Layout */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 1.05rem;
  color: #fff;
}
.brand-text small {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.topbar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.topbar-nav a.active {
  color: var(--aurora-light);
  background: rgba(20, 184, 166, 0.12);
}
.user-menu-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.avatar {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aurora);
  color: #03201f;
  font-size: 0.75rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}
.user-pill-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.app-body-container {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

/* Dashboard Grid */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.hero-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0e2952 0%, var(--bg-card) 100%);
  border: 1px solid var(--line-strong);
  padding: 2.2rem;
}
.hero-banner-content h2 {
  font-size: 1.8rem;
  margin: 0.5rem 0 0.25rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.hero-banner-rings {
  display: flex;
  gap: 1.5rem;
}

.balance-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.balance-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.cert-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.crit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}
.crit-met {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}
.crit-bullet {
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 0.75rem;
}
.crit-info {
  display: flex;
  align-items: center;
}

.award-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--gold-glow);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}
.award-callout-icon {
  font-size: 2rem;
}

.mentor-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mentor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--aurora);
  color: #03201f;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Curriculum Quarters & Modules */
.q-nav-pills {
  display: flex;
  gap: 0.5rem;
}
.q-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.q-pill.active {
  background: var(--aurora);
  color: #03201f;
  border-color: var(--aurora);
}

.quarter-overview-card {
  margin-bottom: 2rem;
}
.quarter-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.quarter-theme {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-top: 0.35rem;
}
.quarter-summary-html {
  margin: 1.25rem 0;
  color: #cbd5e1;
}
.outcomes-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: var(--radius-sm);
}
.outcomes-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.module-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.module-complete {
  border-color: rgba(16, 185, 129, 0.4);
}
.module-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.module-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.module-progress-bar {
  margin: 1rem 0;
}
.module-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.module-lessons-compact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.lesson-row-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  padding: 4px 6px;
  border-radius: 4px;
}
.lesson-row-link:hover {
  background: rgba(255, 255, 255, 0.05);
}
.lesson-row-link.done .lesson-check {
  color: var(--ok);
}
.lesson-name {
  flex-grow: 1;
}

/* Lesson Viewer Layout */
.lesson-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.lesson-sidebar {
  position: sticky;
  top: 80px;
}
.lesson-sidebar-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
}
.sidebar-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-lesson-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.sidebar-lesson-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-lesson-item.active {
  color: var(--aurora-light);
  background: rgba(20, 184, 166, 0.12);
  font-weight: 600;
}
.sidebar-quiz-btn {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.lesson-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.lesson-complete-toggle {
  margin-left: auto;
}

.markdown-content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
}
.markdown-content h4 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--aurora-light);
}
.markdown-content p {
  margin-bottom: 1rem;
  color: #cbd5e1;
}
.markdown-content ul, .markdown-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #cbd5e1;
}
.markdown-content li {
  margin-bottom: 0.35rem;
}

.exercise-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0 1.5rem;
}
.exercise-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.resources-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
}
.resources-list {
  list-style: none;
  margin-top: 0.5rem;
}
.lesson-footer-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

/* Quiz */
.quiz-container {
  max-width: 760px;
  margin: 0 auto;
}
.quiz-card {
  margin-top: 1rem;
}
.quiz-q-block {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--navy-dark);
}
.quiz-q-text {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quiz-opt-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--bg-card);
}
.quiz-opt-label:hover {
  background: var(--bg-card-hover);
}
.quiz-explanation {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.exp-ok { background: var(--ok-bg); color: var(--ok); }
.exp-err { background: var(--err-bg); color: var(--err); }
.hidden { display: none !important; }

.quiz-results-banner {
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1.5rem;
}
.res-pass { background: var(--ok-bg); border: 1px solid var(--ok); }
.res-fail { background: var(--err-bg); border: 1px solid var(--err); }

/* PDP Columns */
.pdp-status-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pdp-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pdp-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--line);
}
.pdp-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pdp-card {
  padding: 1rem;
}
.pdp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}
.pdp-card-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Standup Layout */
.standup-layout, .timelog-layout, .detail-split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.standups-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.standup-log-item {
  border-left: 2px solid var(--line-strong);
  padding-left: 1rem;
}
.log-date {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--aurora-light);
}
.log-blocker {
  color: var(--err);
}

/* Meetings & Reviews */
.meeting-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.meeting-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.meeting-actions-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

/* Certificate Frame */
.certificate-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}
.cert-frame {
  background: #fdfbf7;
  color: #1e293b;
  width: 100%;
  max-width: 880px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}
.cert-border {
  border: 4px double #0b1f3a;
  padding: 2.5rem;
  text-align: center;
}
.cert-logo-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #0b1f3a;
}
.cert-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0.5rem 0;
  letter-spacing: 0.05em;
}
.cert-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: #64748b;
}
.cert-body {
  margin: 2.5rem 0;
}
.cert-recipient {
  font-size: 2.8rem;
  font-family: Georgia, serif;
  font-weight: normal;
  color: #0b1f3a;
  margin: 0.5rem 0 1rem;
}
.cert-statement {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  color: #334155;
}
.cert-footer {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  margin: 3rem 0 1.5rem;
}
.cert-sig {
  width: 160px;
}
.sig-line {
  border-bottom: 1px solid #94a3b8;
  margin-bottom: 0.35rem;
}
.cert-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seal-inner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #d97706;
  color: #d97706;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-seal span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #d97706;
  margin-top: 0.25rem;
  font-weight: 700;
}
.cert-id-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  margin-top: 2rem;
}

/* Modals & Toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}
.modal-wide {
  max-width: 760px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 1.5rem;
}

#toasts {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--navy-dark);
  border: 1px solid var(--line-strong);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.2s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-err {
  border-color: var(--err);
  background: #3b0d0d;
}

.copy-box {
  background: #000;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
}

/* Auth Cards */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .split-grid, .area-grid, .how .steps, .pdp-status-columns { grid-template-columns: 1fr; }
  .dash-grid, .standup-layout, .timelog-layout, .detail-split-view, .lesson-layout, .modules-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-banner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .topbar-nav { display: none; }
}
