:root {
  --navy: #1b2f8f;
  --yellow: #f2c216;
  --white: #ffffff;
  --ink: #0b163d;
  --muted: #5b6b86;
  --soft: #e9eeff;
  --shadow: 0 24px 50px rgba(8, 18, 66, 0.2);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(242, 194, 22, 0.2), transparent 45%),
    radial-gradient(circle at 20% 60%, rgba(27, 47, 143, 0.15), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3 {
  font-family: "Playfair Display", "Georgia", serif;
  margin: 0 0 16px;
  color: var(--ink);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(70%, 1100px);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(18, 32, 102, 0.95);
  box-shadow: 0 12px 35px rgba(5, 12, 48, 0.35);
  border-bottom: 4px solid var(--yellow);
  z-index: 100;
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  font-size: 1.1rem;
}

.brand-logo {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 500;
  color: var(--white);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

main {
  padding-top: 100px;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 110px;
}

.section.alt {
  background: rgba(27, 47, 143, 0.06);
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.hero {
  padding: 50px 0 110px;
  background: linear-gradient(135deg, #1b2f8f 0%, #16256f 100%);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: #ffd23c;
  font-weight: 700;
}

.hero-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.hero-logo {
  width: auto;
  height: clamp(220px, 30vw, 360px);
  object-fit: contain;
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 12px;
}

.hero-title-main {
  display: block;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0 28px;
}

.hero-stats {
  display: flex;
  gap: 24px;
}

.hero-stats span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--yellow);
}

.hero-stats p {
  color: rgba(255, 255, 255, 0.72);
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(242, 194, 22, 0.28);
}

.hero-card ul {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
}

.hero-card li::before {
  content: "•";
  color: var(--yellow);
  margin-right: 8px;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.link {
  color: var(--navy);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card,
.quote,
.form-card,
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.quote p {
  font-style: italic;
  color: var(--ink);
}

.quote span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

.testimonial-shell {
  display: grid;
  gap: 24px;
}

.testimonial-page {
  display: none;
}

.testimonial-page.is-active {
  display: block;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.testimonial-dots {
  display: flex;
  gap: 10px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--yellow);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-dot.is-active {
  background: var(--yellow);
}

.testimonial-dot:hover,
.testimonial-dot:focus {
  transform: scale(1.15);
}

.resource-list {
  display: grid;
  gap: 18px;
}

.resource-list div {
  padding: 18px 22px;
  border-left: 3px solid var(--yellow);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 14px 25px rgba(1, 27, 60, 0.08);
}

.faq details {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: 0 12px 25px rgba(1, 27, 60, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.stack {
  display: grid;
  gap: 24px;
}

.form-card label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.form-card input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 47, 143, 0.2);
  font-size: 0.95rem;
}

.form-card textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 47, 143, 0.2);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.form-card select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 47, 143, 0.2);
  font-size: 0.95rem;
  background: var(--white);
}

.form-card input:focus {
  outline: 2px solid rgba(27, 47, 143, 0.25);
}

.form-card select:focus {
  outline: 2px solid rgba(27, 47, 143, 0.25);
}

.form-card textarea:focus {
  outline: 2px solid rgba(27, 47, 143, 0.25);
}

.form-card select:disabled {
  background: #f4f6f9;
  color: #8a97a8;
}

.form-card input:disabled {
  background: #f4f6f9;
  color: #8a97a8;
}

.form-card textarea:disabled {
  background: #f4f6f9;
  color: #8a97a8;
}

.form-message {
  min-height: 20px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--muted);
}

.form-message.error {
  color: #b42318;
}

.form-message.success {
  color: #067647;
}

.form-card .form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.form-card.muted {
  background: rgba(27, 47, 143, 0.05);
  opacity: 0.8;
}

.form-card.muted.is-active {
  opacity: 1;
}

.calendar-shell {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  margin-bottom: 28px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.calendar-controls {
  display: flex;
  gap: 10px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.calendar-day {
  background: #f9fbff;
  border: 1px solid rgba(27, 47, 143, 0.12);
  border-radius: 14px;
  padding: 12px;
  min-height: 92px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(1, 27, 60, 0.12);
}

.calendar-day:focus-visible {
  outline: 2px solid rgba(27, 47, 143, 0.35);
  outline-offset: 2px;
}

.calendar-day.placeholder {
  background: transparent;
  border: 1px dashed rgba(27, 47, 143, 0.08);
  cursor: default;
  box-shadow: none;
}

.calendar-day.placeholder:hover {
  transform: none;
  box-shadow: none;
}

.calendar-day.has-bookings {
  border-color: rgba(27, 47, 143, 0.4);
}

.calendar-day.full {
  border-color: rgba(242, 194, 22, 0.85);
  background: rgba(242, 194, 22, 0.18);
}

.calendar-day.editor-full {
  border-color: rgba(27, 47, 143, 0.45);
  background: rgba(27, 47, 143, 0.08);
}

.calendar-day.editor-full .day-meta span {
  background: rgba(27, 47, 143, 0.2);
}

.calendar-day.today {
  border-color: var(--navy);
}

.calendar-day.selected {
  box-shadow: 0 0 0 2px rgba(27, 47, 143, 0.35);
}

.calendar-day .day-number {
  font-weight: 700;
  color: var(--ink);
}

.calendar-day .day-meta {
  display: flex;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 10px;
  flex-wrap: wrap;
}

.calendar-day .day-meta span {
  background: rgba(27, 47, 143, 0.08);
  padding: 2px 6px;
  border-radius: 999px;
}

.calendar-day.full .day-meta span {
  background: rgba(242, 194, 22, 0.3);
}

.calendar-tooltip {
  position: absolute;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 12px 25px rgba(1, 27, 60, 0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: 220px;
  z-index: 5;
}

.calendar-tooltip strong {
  display: block;
  margin-bottom: 4px;
}

.calendar-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.calendar-details {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.admin-panel {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.admin-actions {
  display: none;
  gap: 24px;
}

.admin-actions.is-active {
  display: grid;
}

.admin-card {
  margin-top: 24px;
  border: 1px solid rgba(27, 47, 143, 0.18);
}

.details-list li.attendance-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.details-list li.walkin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.remove-walkin {
  border: none;
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.remove-walkin:hover,
.remove-walkin:focus {
  transform: scale(1.05);
  background: rgba(180, 35, 24, 0.18);
}

.details-list li.attendance-item input {
  margin-top: 3px;
  accent-color: var(--navy);
}

.attendance-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.attendance-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.attendance-toggle {
  border: 1px solid rgba(255, 210, 60, 0.6);
  background: rgba(255, 210, 60, 0.2);
  color: var(--navy);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.attendance-toggle.is-active {
  background: var(--yellow);
  color: var(--navy);
}

.attendance-toggle:hover,
.attendance-toggle:focus {
  transform: scale(1.05);
}

.remove-booking {
  border: none;
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.remove-booking:hover,
.remove-booking:focus {
  transform: scale(1.05);
  background: rgba(180, 35, 24, 0.18);
}

.walkin-section {
  margin-top: 24px;
}

.walkin-section h5 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.profile-metrics span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}

.profile-metrics p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}


.calendar-details h4 {
  margin: 0 0 12px;
}

.details-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.details-list {
  display: grid;
  gap: 10px;
}

.details-list li {
  background: rgba(27, 47, 143, 0.06);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink);
}

.details-list li.empty {
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(27, 47, 143, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 18px 30px rgba(242, 194, 22, 0.25);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(27, 47, 143, 0.35);
  color: var(--navy);
}

.hero .btn.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn.small {
  padding: 10px 18px;
}

.nav .btn.small {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 18px 30px rgba(242, 194, 22, 0.25);
}

.btn:hover,
.btn:focus {
  transform: scale(1.05);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  padding: 40px 0 50px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-logo {
  width: auto;
  height: 52px;
  max-width: 76px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal.is-active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 44, 0.6);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  width: min(420px, 90vw);
  box-shadow: 0 24px 60px rgba(5, 12, 48, 0.4);
  border: 2px solid rgba(242, 194, 22, 0.5);
}

.modal-card h3 {
  margin-bottom: 8px;
}

.modal-card p {
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.footer p {
  color: var(--white);
  margin: 0;
}

@media (max-width: 1000px) {
  .container {
    width: min(90%, 720px);
  }

  .hero-grid,
  .card-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-heading {
    flex-direction: column;
  }

  .hero-title-main {
    white-space: normal;
  }

  .testimonial-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-controls {
    flex-wrap: wrap;
  }

  .details-columns {
    grid-template-columns: 1fr;
  }

  .profile-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn {
    transition: none;
  }
}

/* ── Nav tab active state ──────────────────────────────────────────────────── */
.nav-links a.is-active {
  color: var(--yellow);
}

.nav-links a.is-active::after {
  width: 100%;
}

/* ── Nav "coming soon" tooltip ─────────────────────────────────────────────── */
.nav-soon-wrap {
  position: relative;
}

.nav-soon-wrap .nav-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.nav-soon-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.nav-soon-tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--navy);
}

.nav-soon-wrap:hover .nav-soon-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Auth layout (sign-up / log-in pages) ─────────────────────────────────── */
.auth-layout {
  max-width: 500px;
  margin: 0 auto;
}

.auth-header {
  margin-bottom: 28px;
}

.auth-header p {
  margin-bottom: 8px;
}

.auth-form {
  display: grid;
  gap: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}

.field-error {
  font-size: 0.85rem;
  color: #b42318;
  margin: 0 0 8px;
}

.password-requirements {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.req-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.req-pill.req-met {
  background: rgba(6, 118, 71, 0.12);
  color: #067647;
}

/* ── Calendar cells (new .cal-day system) ─────────────────────────────────── */
.cal-day {
  background: #f9fbff;
  border: 1px solid rgba(27, 47, 143, 0.12);
  border-radius: 12px;
  padding: 10px 8px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cal-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(1, 27, 60, 0.1);
}

.cal-day:focus-visible {
  outline: 2px solid rgba(27, 47, 143, 0.35);
  outline-offset: 2px;
}

.cal-day.empty {
  background: transparent;
  border: 1px dashed rgba(27, 47, 143, 0.07);
  cursor: default;
  pointer-events: none;
}

.cal-day.is-today {
  border-color: var(--navy);
  border-width: 2px;
}

.cal-day.has-bookings {
  border-color: rgba(27, 47, 143, 0.3);
}

.cal-day.is-filling {
  border-color: rgba(255, 160, 0, 0.7);
  background: rgba(255, 160, 0, 0.07);
}

.cal-day.is-full {
  border-color: rgba(180, 35, 24, 0.5);
  background: rgba(180, 35, 24, 0.06);
}

.cal-day.editor-full {
  border-style: dashed;
}

.cal-day-num {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1;
}

.cal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.4;
}

.cal-badge.stu {
  background: rgba(27, 47, 143, 0.1);
  color: var(--navy);
}

.cal-day.is-filling .cal-badge.stu {
  background: rgba(255, 140, 0, 0.18);
  color: #7a4800;
}

.cal-day.is-full .cal-badge.stu {
  background: rgba(180, 35, 24, 0.14);
  color: #b42318;
}

.cal-badge.ed {
  background: rgba(27, 47, 143, 0.07);
  color: var(--muted);
}

/* ── App section + tab layout ─────────────────────────────────────────────── */
.dashboard-hero {
  margin-bottom: 24px;
}

.hero-welcome,
.hero-next-session {
  background: linear-gradient(135deg, var(--navy) 0%, #16256f 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
}

.hero-welcome h2,
.hero-next-session h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.hero-welcome p,
.hero-next-session p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.hero-next-session .eyebrow {
  color: var(--yellow);
  margin-bottom: 4px;
}

.session-purpose {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.95rem;
  margin-bottom: 16px !important;
}

.hero-next-session .btn.ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  margin-top: 12px;
}

.hero-completion-banner {
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ── Toasts ─────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  font-weight: 500;
  animation: toast-in 0.2s ease-out;
}

@keyframes toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Profile sections (sessions / stats / courses tabs) ────────────────────── */
.profile-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.profile-section h3 {
  margin-bottom: 16px;
}

.details-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 0;
}

.details-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.details-list li span {
  flex: 1;
  min-width: 0;
}

.attendance-present {
  color: #067647;
  font-weight: 600;
}

.attendance-absent {
  color: #b42318;
  font-weight: 600;
}

/* ── Personal info card (About You tab) ────────────────────────────────────── */
.info-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(27, 47, 143, 0.08);
  font-size: 0.95rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--ink);
  min-width: 64px;
  flex-shrink: 0;
}

/* ── Course progress (stats + courses tabs) ────────────────────────────────── */
.course-progress-card {
  background: rgba(27, 47, 143, 0.04);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.course-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.course-progress-header strong {
  color: var(--ink);
}

.progress-bar {
  height: 8px;
  background: rgba(27, 47, 143, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.course-complete {
  color: #067647;
  font-weight: 700;
  font-size: 1rem;
}

/* ── Course enroll cards (courses tab) ─────────────────────────────────────── */
.course-enroll-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: rgba(27, 47, 143, 0.04);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.course-enroll-card strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.course-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* ── Booking modal additions ───────────────────────────────────────────────── */
.booking-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.booking-type-btn {
  flex: 1;
}

.booking-type-btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.booking-roster {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.88rem;
}

.booking-roster .eyebrow {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.booking-roster .details-list {
  margin-bottom: 8px;
}

.booking-roster .details-list li {
  font-size: 0.85rem;
  justify-content: flex-start;
}

.form-message--error {
  color: #b42318;
}

/* ── Roster modal ─────────────────────────────────────────────────────────── */
.roster-modal-card {
  width: min(580px, 94vw);
  max-height: 85vh;
  overflow-y: auto;
}

.roster-header {
  margin-bottom: 12px;
}

.roster-header h3 {
  margin-bottom: 4px;
}

.roster-list {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.roster-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 8px 0 4px;
  font-weight: 600;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(27, 47, 143, 0.04);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.roster-name {
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.roster-purpose {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.att-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.att-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(27, 47, 143, 0.2);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  color: var(--muted);
}

.att-btn:hover {
  background: rgba(27, 47, 143, 0.08);
}

.att-btn.is-present {
  background: rgba(6, 118, 71, 0.12);
  border-color: rgba(6, 118, 71, 0.5);
  color: #067647;
}

.att-btn.is-absent {
  background: rgba(180, 35, 24, 0.1);
  border-color: rgba(180, 35, 24, 0.45);
  color: #b42318;
}

.roster-divider {
  margin: 14px 0 12px;
  border: none;
  border-top: 1px solid rgba(27, 47, 143, 0.1);
}

.walkin-form h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.roster-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

/* ── Teacher create-course form ───────────────────────────────────────────── */
.file-upload-placeholder {
  margin-bottom: 16px;
}

.file-upload-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.file-drop-zone {
  border: 2px dashed rgba(27, 47, 143, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(27, 47, 143, 0.03);
  color: var(--muted);
}

.file-drop-zone p {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

/* ── Teacher courses list ─────────────────────────────────────────────────── */
.teacher-course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.teacher-course-card--inactive {
  opacity: 0.7;
}

.teacher-courses-section-title {
  margin: 24px 0 12px;
  font-size: 1rem;
  color: var(--muted);
}

.badge-inactive {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(120, 120, 120, 0.15);
  color: var(--muted);
  font-size: 0.8rem;
}

.teacher-course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.teacher-course-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.teacher-course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.teacher-course-stats {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.teacher-course-stats span {
  font-weight: 700;
  color: var(--navy);
}

.teacher-course-edit-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(27, 47, 143, 0.1);
  display: grid;
  gap: 4px;
}

.teacher-course-edit-form.is-hidden {
  display: none;
}

/* ── Teacher editors tab ─────────────────────────────────────────────────── */
.editors-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.editors-panel {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.search-bar input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--card-bg, #f8f9fa);
}

.editor-person-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.editor-person-row:last-child {
  border-bottom: none;
}

.editor-person-info {
  flex: 1;
  min-width: 0;
}

.editor-person-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.editor-person-email {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  .editors-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .course-enroll-card {
    flex-direction: column;
  }

  .course-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .teacher-course-header {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── Editor session note (Sessions tab upcoming list) ────────────────────── */
.details-list li.session-row-editor {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.session-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.session-main-row span {
  flex: 1;
  min-width: 0;
}
.session-note-area {
  padding-top: 6px;
  border-top: 1px solid rgba(27, 47, 143, 0.08);
}
.session-note-view {
  display: flex;
  align-items: center;
  gap: 8px;
}
.note-text {
  flex: 1;
  min-width: 0;
  font-size: 0.83rem;
  color: var(--muted);
  font-style: italic;
}
.note-empty {
  flex: 1;
  font-size: 0.83rem;
  color: var(--muted);
  opacity: 0.55;
}
.session-note-form textarea {
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
}
.note-form-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.note-delete-btn {
  margin-left: auto;
}

/* ── Editor note in teacher roster ──────────────────────────────────────── */
.roster-row.roster-row--with-note {
  align-items: flex-start;
}
.roster-note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
  margin-top: 2px;
}

/* ── Roster row delete + Clear Day/Week ───────────────────────────────────── */
.roster-delete-btn {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.35);
}
.roster-delete-btn:hover {
  background: rgba(180, 35, 24, 0.1);
}

/* ── Eligible-roles checkboxes (Create Course) ───────────────────────────── */
.eligible-roles-group {
  margin-bottom: 16px;
}
.form-card label.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
}
.checkbox-inline input {
  width: auto;
}

/* ── Teacher course enrollments panel ────────────────────────────────────── */
.teacher-course-enrollments {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 47, 143, 0.1);
}
.teacher-course-enrollments.is-hidden {
  display: none;
}
.teacher-course-enrollments .search-bar {
  margin-bottom: 8px;
}
