/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #142F52;
  --gold:       #C8922A;
  --gold-alt:   #D4A13A;
  --bg:         #F5F5F0;
  --text:       #1a1a1a;
  --text-light: #ffffff;
  --card-bg:    #ffffff;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,.12);
  --transition: .25s ease;
  --max-width:  1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: block;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: .65rem 1.6rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--navy);
  color: var(--text-light);
  border-color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-light);
  outline: none;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--navy);
  color: var(--text-light);
  outline: none;
}

.btn-danger {
  background: #dc2626;
  color: var(--text-light);
  border-color: #dc2626;
}

.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-full { width: 100%; padding: .8rem; }

/* Password show/hide toggle */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 2.6rem; }
.password-toggle {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  line-height: 1;
}
.password-toggle:hover { color: var(--navy); }
.password-toggle svg { width: 18px; height: 18px; display: block; }

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(20,47,82,.1);
  min-height: 90px;
  display: flex;
  align-items: center;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo img {
  height: 80px;
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.navbar__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition);
  white-space: nowrap;
}

.navbar__links a:hover { color: var(--gold); }

.navbar__links .nav-cta {
  background: var(--navy);
  color: var(--text-light) !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}

.navbar__links .nav-cta:hover { background: var(--gold); color: var(--text-light) !important; }

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__logo,
.footer__logo img {
  height: 75px;
  width: auto;
  margin-bottom: .5rem;
}

.footer__contact h3,
.footer__partners h3 {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-alt);
  margin-bottom: .65rem;
}

.footer__contact p {
  font-size: .88rem;
  line-height: 1.9;
  opacity: .85;
}

.footer__partner-placeholder {
  font-size: .85rem;
  opacity: .65;
}

.footer__partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer__partner-badge {
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__partner-badge img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.footer__contact a {
  color: var(--gold-alt);
  transition: color var(--transition);
}
.footer__contact a:hover { color: var(--text-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: .85rem;
  font-size: .8rem;
  opacity: .6;
  text-align: center;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .88rem;
  line-height: 1.5;
}

.flash-icon { flex-shrink: 0; font-weight: 700; }

.flash-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.flash-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1d4ed8; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 480px;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #e8edf2;
}

.auth-logo img {
  height: 72px;
  width: auto;
}

.auth-card h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
}

.auth-subtitle {
  font-size: .88rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Form fields */
.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: .855rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}

.field input {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}

.field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,47,82,.08);
}

.field input.is-invalid { border-color: #ef4444; }

.field select {
  width: 100%;
  padding: .6rem 2.2rem .6rem .85rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpolyline points='2 4 6 8 10 4' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .85rem center;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,47,82,.08);
}

.field-error {
  font-size: .79rem;
  color: #dc2626;
  margin-top: .3rem;
}

/* Password strength bar */
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  margin-top: .4rem;
  overflow: hidden;
}

.strength-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .3s ease, background .3s ease;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: .82rem;
  color: var(--gold);
  margin-top: -.4rem;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}

.forgot-link:hover { color: var(--navy); }

.auth-footer-link {
  text-align: center;
  margin-top: 1.35rem;
  font-size: .875rem;
  color: #6b7280;
}

.auth-footer-link a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition);
}

.auth-footer-link a:hover { color: var(--gold); }

/* Verify email sent page */
.auth-confirm-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.auth-confirm-text {
  text-align: center;
  color: #555;
  font-size: .9rem;
  line-height: 1.7;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-page { flex: 1; padding-bottom: 4rem; }

.dashboard-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a7a 100%);
  padding: 2.25rem 0;
  margin-bottom: 2.5rem;
}

.dashboard-hero h1 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: .2rem;
}

.dashboard-hero p {
  font-size: .92rem;
  color: rgba(255,255,255,.78);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  margin-top: 1rem;
  max-width: 420px;
}

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-badge__name  { font-weight: 600; color: #fff; font-size: .95rem; }
.user-badge__email { font-size: .82rem; color: rgba(255,255,255,.72); }

.badge-verified {
  display: inline-block;
  font-size: .72rem;
  background: #dcfce7;
  color: #15803d;
  border-radius: 10px;
  padding: .1rem .5rem;
  font-weight: 600;
  margin-top: .15rem;
}

/* Dashboard sections */
.dash-section { margin-bottom: 3rem; }

.dash-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid #e8edf2;
  padding-bottom: .6rem;
  margin-bottom: 1.25rem;
}

.dash-section__head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

/* Empty state */
.dash-empty {
  background: var(--card-bg);
  border: 2px dashed #d1d5db;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #6b7280;
}

.dash-empty__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
}

/* Course cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.dash-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

/* Sign-out form */
.signout-form { display: inline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .navbar { position: relative; }

  .navbar__links {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(20,47,82,.12);
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }

  .navbar__links.open { display: flex; }
  .navbar__toggle { display: flex; }

  .auth-card { padding: 2rem 1.25rem; }

  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DASHBOARD APP SHELL — sidebar layout
   ============================================================ */

body.dashboard-shell {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* ---- Sidebar ---- */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: width .25s ease;
  position: relative;
  z-index: 200;
}

.sidebar.collapsed { width: 72px; }

/* Logo + toggle */
.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem .85rem .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  min-height: 72px;
  flex-shrink: 0;
  gap: .5rem;
  overflow: hidden;
}

.sidebar__logo-link {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.sidebar__logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.sidebar__toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .35rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.sidebar__toggle-btn:hover,
.sidebar__toggle-btn:focus {
  color: #fff;
  background: rgba(255,255,255,.1);
  outline: none;
}

/* User info strip */
.sidebar__user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar__user-info {
  overflow: hidden;
  min-width: 0;
  transition: opacity .2s ease, max-width .25s ease;
  max-width: 180px;
}

.sidebar.collapsed .sidebar__user-info {
  opacity: 0;
  max-width: 0;
}

.sidebar__user-name {
  font-size: .83rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-email {
  font-size: .72rem;
  color: rgba(255,255,255,.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__verified {
  display: inline-block;
  font-size: .65rem;
  background: #dcfce7;
  color: #15803d;
  border-radius: 10px;
  padding: .06rem .4rem;
  font-weight: 600;
}

/* Navigation list */
.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .4rem 0;
}

.sidebar__menu { list-style: none; }

.sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .72rem 1rem;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}

.sidebar__nav-item:hover,
.sidebar__nav-item:focus {
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
}

.sidebar__nav-item.active {
  background: rgba(200,146,42,.15);
  color: var(--gold-alt);
  border-left-color: var(--gold);
}

.sidebar__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.sidebar__label {
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .2s ease, max-width .25s ease;
  max-width: 180px;
}

.sidebar.collapsed .sidebar__label {
  opacity: 0;
  max-width: 0;
}

/* Bottom section */
.sidebar__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .4rem 0;
  flex-shrink: 0;
}

.sidebar__signout-form { display: block; }

.sidebar__nav-item--signout { color: rgba(255,255,255,.45); }

.sidebar__nav-item--signout:hover,
.sidebar__nav-item--signout:focus {
  color: #fca5a5;
  background: rgba(248,113,113,.08);
}

/* ---- Main content scroll area ---- */
.dashboard-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
}

/* Flash messages at top of content */
.flash-container { padding: 1.25rem 2.5rem 0; }

/* ---- Panels ---- */
.dash-panel { padding: 2rem 2.5rem; }
.dash-panel.hidden { display: none; }

.dash-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  border-bottom: 2px solid #e8edf2;
  padding-bottom: .75rem;
  margin-bottom: 2rem;
}

.dash-panel__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: .2rem;
}

/* Empty-state icon */
.dash-empty__icon {
  display: flex;
  justify-content: center;
  margin-bottom: .85rem;
  color: #d1d5db;
}

/* ---- Account settings ---- */
.account-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  max-width: 760px;
}

.account-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: .75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e8edf2;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.form-row .field { margin-bottom: 1.1rem; }

.form-row__expand { flex: 1; min-width: 140px; }
.form-row__mi     { flex: 0 0 72px; }

.form-row--city-state .form-row__city  { flex: 2; min-width: 140px; }
.form-row--city-state .form-row__state { flex: 1.5; min-width: 140px; }
.form-row--city-state .form-row__zip   { flex: 0 0 110px; }

.field-input--readonly {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  cursor: not-allowed;
  border-color: #e5e7eb !important;
}

.field-hint {
  display: block;
  font-size: .77rem;
  color: #6b7280;
  margin-top: .25rem;
}

.account-form__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  margin-top: .5rem;
  border-top: 1px solid #e8edf2;
}

/* ---- State searchable dropdown ---- */
.state-select { position: relative; }

.state-select__input {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.state-select__input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,47,82,.08);
}

.state-select__list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  max-height: 220px;
  overflow-y: auto;
  z-index: 600;
  box-shadow: var(--shadow);
  list-style: none;
}

.state-select__list.open { display: block; }

.state-select__list li {
  padding: .48rem .85rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text);
  transition: background var(--transition);
}

.state-select__list li:hover { background: #eff6ff; color: var(--navy); }

.state-select__list li.no-results {
  color: #9ca3af;
  cursor: default;
  font-style: italic;
}

/* Required field star */
.req-star { color: #dc2626; font-weight: 700; }

/* Account card description subtitle */
.account-card__desc {
  font-size: .85rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
  margin-top: -.5rem;
}

/* Profile incomplete notice banner */
.profile-notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  color: #1d4ed8;
  font-size: .88rem;
  line-height: 1.6;
  max-width: 760px;
}

.profile-notice p { margin: 0; }

/* ---- Dashboard responsive ---- */
@media (max-width: 768px) {
  .sidebar { width: 72px; }

  .dash-panel { padding: 1.25rem 1rem; }
  .flash-container { padding: .75rem 1rem 0; }
  .explore-panel-nav { margin: 0 -1rem 1.25rem; }
  .explore-panel-nav__links { padding: 0 1rem; }
  .explore-card__cert-logo { height: 38px; }
  .account-card { padding: 1.25rem 1rem; }

  .form-row { flex-direction: column; gap: 0; }
  .form-row__mi { flex: 0 0 auto; }
  .form-row--city-state .form-row__zip { flex: 0 0 auto; }
}

/* ============================================================
   AVAILABLE COURSES PANEL (explore)
   ============================================================ */

/* ---- Section nav ---- */
.explore-panel-nav {
  background: #f8f9fb;
  border-top: 1px solid #e2e6ea;
  border-bottom: 1px solid #e2e6ea;
  padding: .55rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -2.5rem 1.75rem;
}
.explore-panel-nav__links {
  display: flex;
  gap: .2rem;
  flex-wrap: wrap;
  padding: 0 2.5rem;
}
.explore-panel-nav__link {
  padding: .4rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: 20px;
  transition: background .15s, color .15s;
  letter-spacing: .02em;
  white-space: nowrap;
}
.explore-panel-nav__link:hover,
.explore-panel-nav__link:focus { background: var(--navy); color: #fff; outline: none; }

.explore-category {
  margin-bottom: 2rem;
  scroll-margin-top: 58px;
}

.explore-category--bundles {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e6ea;
}

.explore-category__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: .7rem;
  margin-bottom: .9rem;
}

.explore-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
  margin-bottom: .85rem;
}

.explore-card--bundle {
  border-top-color: var(--gold);
}

.explore-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .5rem;
}
.explore-card__head-text { flex: 1; min-width: 0; }
.explore-card__cert-logos {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-shrink: 0;
}
.explore-card__cert-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.explore-card__name {
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
  line-height: 1.4;
}

.explore-card__badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  background: var(--gold);
  color: #fff;
  border-radius: 4px;
  padding: .1rem .45rem;
  letter-spacing: .03em;
  white-space: nowrap;
}

.explore-card__tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  border-radius: 4px;
  padding: .1rem .42rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.explore-card__tag--soon {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.explore-card__tag--progress {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.explore-card__tag--done {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.explore-card__tag--enrolled {
  background: transparent;
  color: #15803d;
  border: 1.5px solid #16a34a;
}

.explore-card__desc {
  font-size: .88rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: .6rem;
}

.explore-card__meta {
  display: flex;
  gap: 1.25rem;
  padding: .38rem .72rem;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: .8rem;
  color: #5a6472;
  margin-bottom: .7rem;
  flex-wrap: wrap;
}

.explore-card__footer { }

.explore-card__footer .btn {
  font-size: .84rem;
  padding: .42rem 1.1rem;
}

.btn-primary:disabled,
button.btn-primary[disabled] {
  background: #d1d5db !important;
  color: #9ca3af !important;
  border-color: #d1d5db !important;
  cursor: not-allowed;
  pointer-events: none;
}

.explore-card__footer {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

/* ============================================================
   COURSE DETAIL MODAL  (cdm-*)
   ============================================================ */

/* Overlay / backdrop */
.cdm-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 20, 40, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  animation: cdm-fade-in .18s ease;
}

.cdm-overlay[hidden] { display: none; }

@keyframes cdm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Dialog container */
.cdm {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 48px rgba(0,0,0,.28);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cdm-slide-in .2s ease;
}

@keyframes cdm-slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sticky header */
.cdm__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.75rem 1.1rem;
  border-bottom: 2px solid #e8edf2;
  flex-shrink: 0;
  background: var(--navy);
}

.cdm__header-text { min-width: 0; }

.cdm__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-alt);
  margin-bottom: .25rem;
}

.cdm__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 .3rem;
}

.cdm__tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

.cdm__close {
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
  transition: background var(--transition), color var(--transition);
}

.cdm__close:hover,
.cdm__close:focus {
  background: rgba(255,255,255,.22);
  color: #fff;
  outline: none;
}

/* Scrollable body */
.cdm__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.75rem 1.5rem;
  scroll-behavior: smooth;
}

/* Sticky footer */
.cdm__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.75rem;
  border-top: 2px solid #e8edf2;
  background: var(--bg);
  flex-shrink: 0;
}

/* ── Stats bar ── */
.cdm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #f0f4f8;
  border-bottom: 1px solid #e2e6ea;
  padding: 1rem 0;
  margin-bottom: .25rem;
}

.cdm-stat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 120px;
  padding: .3rem .75rem .3rem 0;
}

.cdm-stat + .cdm-stat {
  border-left: 1px solid #d1d8e0;
  padding-left: .75rem;
}

.cdm-stat__val {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.cdm-stat__val--cert {
  color: #15803d;
  font-size: .82rem;
}

.cdm-stat__lbl {
  font-size: .72rem;
  color: #6b7280;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .15rem;
}

/* ── Content sections ── */
.cdm-section {
  padding-top: 1.6rem;
  padding-bottom: .25rem;
}

.cdm-section + .cdm-section {
  border-top: 1px solid #f0f2f5;
}

.cdm-section__title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .85rem;
}

.cdm-p {
  font-size: .9rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: .85rem;
}

/* ── Outcomes list ── */
.cdm-outcomes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .45rem .85rem;
}

.cdm-outcomes li {
  font-size: .875rem;
  color: #374151;
  line-height: 1.5;
  padding-left: 1.2rem;
  position: relative;
}

.cdm-outcomes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: .8rem;
  top: .1rem;
}

/* ── Modules ── */
.cdm-modules { display: flex; flex-direction: column; gap: .85rem; }

.cdm-module {
  background: #f8f9fa;
  border-radius: var(--radius);
  border-left: 3px solid var(--navy);
  padding: .9rem 1.1rem;
}

.cdm-module__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .4rem;
}

.cdm-module__code {
  font-size: .72rem;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  padding: .1rem .42rem;
  letter-spacing: .05em;
  white-space: nowrap;
}

.cdm-module__name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.cdm-module__hours {
  font-size: .78rem;
  color: #6b7280;
  white-space: nowrap;
}

.cdm-module__summary {
  font-size: .83rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: .5rem;
}

.cdm-module__topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.cdm-module__topics li {
  font-size: .83rem;
  color: #374151;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.cdm-module__topics li::before {
  content: '·';
  position: absolute;
  left: .25rem;
  color: var(--gold);
  font-weight: 700;
}

/* ── Tools ── */
.cdm-tags { display: flex; flex-wrap: wrap; gap: .45rem; }

.cdm-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  background: #eff6ff;
  color: var(--navy);
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: .22rem .65rem;
}

/* ── Certification section ── */
.cdm-section--cert { }

.cdm-cert {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4e8 100%);
  border: 1px solid #c3dafe;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.cdm-cert__badge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-bottom: .65rem;
}

.cdm-cert__name {
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy);
}

.cdm-cert__provider {
  font-size: .78rem;
  color: #4b5563;
}

.cdm-cert__voucher {
  font-size: .78rem;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 4px;
  padding: .1rem .45rem;
}

.cdm-cert__note {
  margin-bottom: 0;
  font-size: .87rem;
  color: #374151;
  line-height: 1.65;
}

/* ── Generic list ── */
.cdm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.cdm-list li {
  font-size: .875rem;
  color: #374151;
  line-height: 1.5;
  padding-left: 1.1rem;
  position: relative;
}

.cdm-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #9ca3af;
}

/* ── Career outcomes ── */
.cdm-careers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.cdm-careers__label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

/* ── Cost section ── */
.cdm-section--cost { }

.cdm-cost {
  background: #f8f9fa;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
}

.cdm-cost__total {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .65rem;
}

.cdm-cost__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  margin-bottom: .6rem;
}

.cdm-cost__table td {
  padding: .22rem 0;
  color: #374151;
}

.cdm-cost__table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--navy);
}

.cdm-cost__table tr:last-child td {
  border-top: 1px solid #d1d5db;
  padding-top: .45rem;
  margin-top: .25rem;
}

.cdm-cost__note {
  font-size: .8rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* ── Bundle components ── */
.cdm-components { display: flex; flex-direction: column; gap: .85rem; }

.cdm-component {
  background: #f8f9fa;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  padding: .9rem 1.1rem;
}

.cdm-component__head {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}

.cdm-component__name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
  min-width: 160px;
}

.cdm-component__cert {
  font-size: .72rem;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  padding: .1rem .42rem;
  white-space: nowrap;
}

.cdm-component__meta {
  display: flex;
  gap: 1rem;
  font-size: .79rem;
  color: #6b7280;
  margin-bottom: .4rem;
}

.cdm-component__voucher { color: #15803d; font-weight: 600; }

.cdm-component__desc {
  font-size: .84rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

/* ── Footer elements ── */
.cdm-register-btn {
  padding: .45rem 1.25rem;
  font-size: .85rem;
  min-width: 130px;
}

.cdm-enrolled-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: transparent;
  color: #15803d;
  border: 2px solid #16a34a;
  border-radius: 9999px;
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 700;
}

/* ── Modal responsive ── */
@media (max-width: 640px) {
  .cdm-overlay { padding: 0; align-items: flex-end; }
  .cdm { max-width: 100%; max-height: 95vh; border-radius: 12px 12px 0 0; }
  .cdm-stats { flex-direction: column; gap: .5rem; }
  .cdm-stat + .cdm-stat { border-left: none; padding-left: 0; border-top: 1px solid #d1d8e0; padding-top: .5rem; }
  .cdm-outcomes { grid-template-columns: 1fr; }
  .cdm-careers { grid-template-columns: 1fr; }
}

/* ============================================================
   SCHEDULE PICKER MODAL (SPM)
   ============================================================ */

.spm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.spm-overlay[hidden] { display: none; }

.spm {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spm__header {
  background: var(--navy);
  color: var(--text-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.spm__header-text { flex: 1; min-width: 0; }

.spm__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin: .2rem 0 .25rem;
  line-height: 1.3;
}

.spm__subtitle {
  font-size: .82rem;
  opacity: .75;
  margin: 0;
}

.spm__body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.spm__footer {
  background: var(--bg);
  padding: .9rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.spm__footer-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}

.spm__footer-actions .spm__cancel { margin-right: auto; }

/* Loading / error / empty states */
.spm__loading,
.spm__error {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #666;
  font-size: .9rem;
}

.spm__empty {
  text-align: center;
  padding: 2rem 1rem;
}

.spm__empty svg { margin: 0 auto; display: block; }

.spm__empty-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin: .85rem 0 .4rem;
}

.spm__empty-msg {
  color: #555;
  font-size: .875rem;
  line-height: 1.6;
  margin: 0;
}

.spm__empty-msg a { color: var(--gold); }

/* Schedule option cards */
.spm__list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.spm-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: .9rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.spm-option:has(input:checked) {
  border-color: var(--navy);
  background: rgba(20,47,82,.05);
}

.spm-option:hover:not(.spm-option--full) { border-color: #9ca3af; }

.spm-option--full {
  opacity: .5;
  cursor: not-allowed;
}

.spm-option input[type="radio"] {
  margin-top: .25rem;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}

.spm-option__body { flex: 1; min-width: 0; }

.spm-option__dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
  line-height: 1.3;
}

.spm-option__sep { color: #9ca3af; font-weight: 400; }

.spm-option__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: .35rem;
  font-size: .8rem;
  color: #555;
}

.spm-option__seats { color: #059669; font-weight: 600; }
.spm-option__seats--full { color: #dc2626; font-weight: 600; }

.spm-option__notes {
  margin: .45rem 0 0;
  font-size: .8rem;
  color: #666;
  font-style: italic;
}

/* Disabled-state for action links */
.btn--disabled {
  opacity: .4;
  pointer-events: none;
  cursor: not-allowed;
}

/* ── SPM responsive ── */
@media (max-width: 600px) {
  .spm { max-height: 92vh; }
  .spm__footer-actions { flex-direction: column-reverse; align-items: stretch; }
  .spm__footer-actions .spm__cancel { margin-right: 0; order: 3; }
  .spm-option__meta { flex-direction: column; gap: .2rem; }
}


/* ============================================================
   ADMIN PANEL
   ============================================================ */

/* Shell layout */
.admin-shell {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: #f0f2f5;
}

/* Sidebar */
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar__header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text-light);
}
.admin-sidebar__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.admin-sidebar__title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-sidebar__nav {
  flex: 1;
  padding: .75rem 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition);
}
.admin-sidebar__link:hover,
.admin-sidebar__link.active {
  background: rgba(255,255,255,.1);
  color: var(--text-light);
  border-left-color: var(--gold);
}
.admin-sidebar__footer {
  padding: .75rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* Main content */
.admin-main {
  flex: 1;
  padding: 2rem;
  min-width: 0;
}
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

/* Stats grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-stat-card--warn { border-top: 3px solid var(--gold); }
.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.admin-stat-label {
  font-size: .8rem;
  color: #666;
  margin-top: .4rem;
}

/* Section grid */
.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

/* Cards */
.admin-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.admin-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #e5e7eb;
}
.admin-card__footer {
  margin-top: .75rem;
  font-size: .85rem;
}
.admin-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.admin-table th {
  text-align: left;
  font-weight: 600;
  color: #555;
  padding: .5rem .75rem;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}
.admin-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table__actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.admin-row--disabled td { opacity: .55; }
.nowrap { white-space: nowrap; }
.text-muted { color: #888; }

/* Badges */
.admin-badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.admin-badge--scheduled   { background: #dcfce7; color: #166534; }
.admin-badge--in_progress { background: #dbeafe; color: #1e40af; }
.admin-badge--completed   { background: #f3f4f6; color: #374151; }
.admin-badge--cancelled   { background: #fee2e2; color: #991b1b; }
.admin-badge--warn        { background: #fef3c7; color: #92400e; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border: none;
       border-radius: var(--radius); font-size: .875rem; font-weight: 500; cursor: pointer;
       text-decoration: none; transition: opacity var(--transition); }
.btn:hover { opacity: .85; }
.btn--primary  { background: var(--navy);  color: #fff; }
.btn--ghost    { background: transparent; border: 1px solid #d1d5db; color: var(--text); }
.btn--warn     { background: #d97706; color: #fff; }
.btn--danger   { background: #dc2626; color: #fff; }
.btn--sm       { padding: .3rem .65rem; font-size: .8rem; }

/* Forms */
.admin-form { display: flex; flex-direction: column; gap: .85rem; }
.admin-form__row { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-form__field { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 160px; }
.admin-form__field--sm { max-width: 130px; }
.admin-form label { font-size: .8rem; font-weight: 600; color: #555; }
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: .45rem .6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .875rem;
  background: #fff;
  width: 100%;
}
.admin-form textarea { resize: vertical; }
.admin-form__actions { display: flex; gap: .5rem; margin-top: .5rem; }

/* Search */
.admin-search-form { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-search-input { padding: .45rem .75rem; border: 1px solid #d1d5db; border-radius: 6px;
                      font-size: .875rem; flex: 1; min-width: 200px; }
.admin-count { font-size: .85rem; color: #555; margin-bottom: .75rem; }

/* Global utility */
.hidden { display: none !important; }

/* Filter bar */
.admin-filter-bar { display: flex; flex-direction: column; gap: .6rem; }
.admin-filter-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.admin-filter-control {
  padding: .42rem .7rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .875rem;
  background: #fff;
  color: var(--text);
}
.admin-filter-control:focus { outline: 2px solid var(--navy); outline-offset: 1px; }

/* Period tab pills (inside the filter form) */
.admin-period-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.admin-period-tab {
  padding: .3rem .8rem;
  border-radius: 99px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: .8rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-period-tab:hover  { border-color: var(--navy); color: var(--navy); }
.admin-period-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Sortable column headers */
.admin-th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.admin-th-sort:hover { background: #f0f2f5; }
.sort-arrow { font-size: .7rem; color: #999; margin-left: .2rem; }

/* Extra-small button variant for inline table actions */
.btn--xs { padding: .2rem .55rem; font-size: .75rem; }

/* Registration control buttons inside table */
.admin-reg-actions { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .3rem; }

/* Registration status badges */
.admin-badge--reg-open       { background: #dcfce7; color: #15803d; }
.admin-badge--reg-closed     { background: #fee2e2; color: #b91c1c; }
.admin-badge--reg-auto-open  { background: #dbeafe; color: #1d4ed8; }
.admin-badge--reg-auto-closed{ background: #f3f4f6; color: #6b7280; }

/* Empty state */
.admin-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}
.admin-empty-state__icon { font-size: 2.5rem; margin-bottom: .5rem; }
.admin-empty-state__msg  { margin-bottom: 1rem; font-size: .95rem; }

/* Modal overlay + dialog panel */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-dialog {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  width: 92vw;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.admin-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.admin-dialog__title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.admin-dialog__close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: .25rem .5rem;
  border-radius: 4px;
}
.admin-dialog__close:hover { background: #f3f4f6; }
.admin-dialog__body { padding: 1.25rem; overflow-y: auto; }

/* Filter tabs */
.admin-filter-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.admin-filter-tab { padding: .4rem .85rem; border-radius: 99px; font-size: .85rem; font-weight: 500;
                    text-decoration: none; color: #555; background: #e5e7eb; transition: all .15s; }
.admin-filter-tab.active,
.admin-filter-tab:hover { background: var(--navy); color: #fff; }

/* Enrollment rows */
.admin-enrollment-row {
  padding: .85rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.admin-enrollment-row:last-child { border-bottom: none; }
.admin-enrollment-row__header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.admin-enrollment-row__meta { font-size: .825rem; color: #666; margin-bottom: .35rem; }
.admin-enrollment-row__payment { font-size: .85rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.admin-enrollment-row__actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Definition list */
.admin-dl { display: grid; grid-template-columns: 130px 1fr; gap: .4rem .75rem; font-size: .875rem; }
.admin-dl dt { font-weight: 600; color: #555; }
.admin-dl dd { color: var(--text); }

/* Dashboard sidebar admin link */
.sidebar__admin-link {
  padding: .5rem .75rem;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: auto;
}
.sidebar__nav-item--admin {
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.sidebar__nav-item--admin:hover { background: rgba(200,146,42,.15); }

.admin-empty { color: #888; font-size: .9rem; padding: 1rem 0; }
.admin-code  { font-size: .75rem; color: #555; font-family: monospace; }


/* ---- My Courses — enrollment cards ---- */
.enr-list { display: flex; flex-direction: column; gap: .85rem; }

.enr-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
}

.enr-card--completed { border-top-color: #22c55e; }
.enr-card--withdrawn { border-top-color: #9ca3af; }
.enr-card--deposit   { border-top-color: var(--gold); }

.enr-card__name {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}

.enr-card__dates {
  font-size: .85rem;
  color: #4b5563;
  margin-bottom: .25rem;
}

.enr-card__meta {
  display: flex;
  gap: 1.25rem;
  font-size: .8rem;
  color: #6b7280;
  flex-wrap: wrap;
  margin-bottom: .55rem;
}

.enr-card__payment {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .72rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  margin-top: .1rem;
}

.enr-card__payment--paid    { background: #dcfce7; color: #166534; }
.enr-card__payment--deposit { background: #fef3c7; color: #92400e; }

.enr-card__registered {
  font-size: .78rem;
  color: #6b7280;
  margin-bottom: .45rem;
}

.enr-card__receipts {
  margin-bottom: .45rem;
}

.enr-card__receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #4b5563;
  padding: .18rem 0;
  border-top: 1px solid #f3f4f6;
}
.enr-card__receipt-row:first-child { border-top: none; }

.enr-receipt-link {
  color: var(--navy);
  font-size: .78rem;
  text-decoration: underline;
  white-space: nowrap;
}
.enr-receipt-link:hover { color: var(--gold); }

/* Enrollment card — refund processed notice */
.enr-card__refund-result {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .65rem;
  padding: .5rem .65rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: .85rem;
  color: #166534;
}
.enr-refund-check {
  font-weight: 700;
  color: #16a34a;
}
.enr-refund-receipt-note {
  font-size: .78rem;
  color: #6b7280;
  margin: .3rem 0 0;
}

/* Enrollment card — refund request button */
.enr-card__refund {
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px solid #f3f4f6;
}

/* Refund request modal */
.refund-modal__course {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
}
.refund-modal__policy {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #4b5563;
  margin-bottom: 1rem;
}
.refund-modal__policy p { margin: .35rem 0 0; }
.refund-modal__policy p:first-child { margin-top: 0; }

.refund-calc {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: .65rem 1rem;
  margin-bottom: .85rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.refund-calc__label { font-size: .75rem; font-weight: 600; color: #1d4ed8; text-transform: uppercase; letter-spacing: .04em; }
.refund-calc__amount { font-size: 1.3rem; font-weight: 700; color: #1e3a8a; }
.refund-calc__note { font-size: .75rem; color: #4b5563; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.25rem;
}

/* Admin refund rows */
.refund-row {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.refund-row:last-child { border-bottom: none; }
.refund-row--fulfilled { opacity: .75; }

.refund-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .3rem;
  flex-wrap: wrap;
}
.refund-row__student { font-weight: 600; color: var(--navy); text-decoration: none; }
.refund-row__student:hover { text-decoration: underline; }

.refund-row__course {
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: .3rem;
}
.refund-row__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  font-size: .82rem;
  color: #374151;
  margin-bottom: .3rem;
}
.refund-row__reason {
  font-size: .83rem;
  color: #4b5563;
  margin-bottom: .2rem;
}
.refund-row__meta {
  font-size: .78rem;
  margin-bottom: .5rem;
}
.refund-row__admin-note {
  font-size: .82rem;
  color: #374151;
  background: #fef9c3;
  border-radius: 4px;
  padding: .3rem .6rem;
  margin-bottom: .5rem;
}

.refund-row__form {
  margin-top: .65rem;
  padding: .75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.refund-row__form-fields {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: .6rem;
}
.refund-row__form-actions { display: flex; gap: .4rem; }

.form-group-inline { display: flex; flex-direction: column; gap: .2rem; min-width: 140px; }

/* Refund help button (next to page title) */
.refund-help-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .75rem;
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 99px;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
  transition: color .15s, border-color .15s;
}
.refund-help-btn:hover { color: var(--navy); border-color: var(--navy); }

/* Refund help modal content */
.refund-help__note {
  background: #fef9ec;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  padding: .65rem .85rem;
  font-size: .875rem;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.refund-help__section {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6b7280;
  margin: 1rem 0 .45rem;
}
.refund-help__list {
  font-size: .875rem;
  line-height: 1.65;
  padding-left: 1.35rem;
  margin: 0;
}
.refund-help__list li { margin-bottom: .35rem; }
.refund-help__list--ordered { list-style-type: decimal; }
.refund-help__footer {
  font-size: .8rem;
  color: #6b7280;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid #e5e7eb;
}
.form-label-sm { font-size: .78rem; font-weight: 600; color: #555; }
.form-control--sm { padding: .3rem .55rem; font-size: .83rem; border: 1px solid #d1d5db; border-radius: 5px; }


/* ── Registration Checklist ─────────────────────────────────────────────────── */
.spm-checklist { display: flex; flex-direction: column; gap: 1rem; padding: .25rem 0; }

.spm-checklist__item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fafafa;
  transition: border-color .2s, background .2s;
}
.spm-checklist__item--done {
  border-color: #22c55e;
  background: #f0fdf4;
}

.spm-checklist__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
}
.spm-checklist__item--done .spm-checklist__num {
  background: #22c55e;
}

.spm-checklist__content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.spm-checklist__title   { font-weight: 700; font-size: .95rem; color: var(--navy); }
.spm-checklist__desc    { font-size: .85rem; color: #4b5563; margin: 0; }
.spm-checklist__pending { font-size: .8rem; color: #9ca3af; font-style: italic; }

.spm-checklist__label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  cursor: pointer;
  padding-top: .25rem;
}
.spm-checklist__label input[type="checkbox"] { flex-shrink: 0; margin-top: .15rem; cursor: pointer; }
.spm-checklist__label--off { opacity: .45; cursor: not-allowed; }
.spm-checklist__label--off input { cursor: not-allowed; }

/* ── Schedule picker intro text ───────────────────────────────────── */
.spm__intro {
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 .75rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

/* ── Registration confirmation step ──────────────────────────────── */
.spm-confirm { padding: .25rem 0; }
.spm-confirm__lead {
  font-size: .95rem;
  color: #111827;
  margin: 0 0 1.1rem;
  line-height: 1.65;
  font-weight: 500;
}
.spm-confirm__steps {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.spm-confirm__steps li {
  font-size: .9rem;
  color: #374151;
  line-height: 1.65;
}
.spm-confirm__steps li strong { color: #111827; }
.spm-confirm__steps li a     { color: var(--color-primary, #2563eb); }
.spm-confirm__note {
  font-size: .85rem;
  color: #4b5563;
  line-height: 1.65;
  background: #fef9ec;
  border: 1px solid #f5d876;
  border-radius: 6px;
  padding: .75rem 1rem;
  margin: 0;
}
.spm-confirm__note strong { color: #92400e; }
.spm-confirm__google-note {
  font-size: .82rem;
  color: #4b5563;
  line-height: 1.6;
  background: #f0f4ff;
  border: 1px solid #c7d7fd;
  border-radius: 6px;
  padding: .65rem .9rem;
  margin-top: .6rem;
}

/* ── Payment method step ────────────────────────────────────────── */
.spm__payment-method { padding: .25rem 0; }

.spm__pm-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: .75rem 0;
}

.spm__pm-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  color: #374151;
  transition: border-color .15s;
}

.spm__pm-option:hover { border-color: #9ca3af; }

.spm__pm-option:has(input:checked) {
  border-color: var(--navy);
  background: #f0f4ff;
  font-weight: 600;
  color: #111827;
}

.spm__pm-option input[type="radio"] { accent-color: var(--navy); }

.spm__pm-other {
  margin-top: .5rem;
}

.spm__pm-other-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .3rem;
}

.spm__pm-other-input {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .9rem;
  box-sizing: border-box;
}

.spm__pm-other-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(10,36,68,.15);
}

/* ── Pending registration block (My Documents) ───────────────────── */
.reg-pending {
  background: #fff;
  border: 1.5px solid #c4c9d4;
  border-top: 3px solid var(--navy);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.reg-pending__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reg-pending__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: .25rem 0 .25rem;
}
.reg-pending__meta {
  font-size: .85rem;
  color: #6b7280;
  margin: 0;
}
.reg-pending__intro {
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  padding: .75rem 1rem;
  background: #f0f9ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 4px 4px 0;
}

/* ── Checklist items ─────────────────────────────────────────────── */
.reg-cl__item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid #e5e7eb;
}
.reg-cl__item--done .reg-cl__num { background: #22c55e; }
.reg-cl__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  margin-top: .15rem;
}
.reg-cl__content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
.reg-cl__title   { font-weight: 700; font-size: .95rem; color: var(--navy); }
.reg-cl__desc    { font-size: .875rem; color: #4b5563; margin: 0; line-height: 1.6; }
.reg-cl__pending { font-size: .8rem; color: #9ca3af; font-style: italic; }
.reg-cl__open    { align-self: flex-start; }

.reg-cl__security-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: .65rem .85rem;
  line-height: 1.55;
}
.reg-cl__security-note a     { color: var(--color-primary, #2563eb); }
.reg-cl__security-note strong { color: #374151; }

.reg-cl__label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  cursor: pointer;
  padding-top: .25rem;
}
.reg-cl__label input[type="checkbox"] { flex-shrink: 0; margin-top: .15rem; cursor: pointer; }
.reg-cl__label--disabled { opacity: .45; cursor: not-allowed; }
.reg-cl__label--disabled input { cursor: not-allowed; }
.reg-cl__label--done { color: #6b7280; cursor: default; }

.reg-cl__item--locked {
  opacity: .55;
  pointer-events: none;
}
.reg-cl__item--locked .reg-cl__num {
  background: #d1d5db;
}
.reg-cl__lock-msg {
  font-size: .875rem;
  color: #6b7280;
  margin: .35rem 0 0;
  font-style: italic;
}

.reg-cl__signed-note {
  font-size: .875rem;
  color: #16a34a;
  margin: .5rem 0 0;
  font-weight: 500;
}

.reg-cl__signing-status {
  margin-top: .75rem;
  padding: .75rem 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  font-size: .875rem;
  line-height: 1.5;
  color: #0c4a6e;
}

.reg-cl__sig-block {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.reg-cl__sig-label {
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
}
.reg-cl__sig-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.reg-cl__sig-input {
  flex: 1 1 220px;
  padding: .45rem .6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .875rem;
  font-family: inherit;
  color: #111827;
  background: #fff;
  min-width: 0;
}
.reg-cl__sig-input:focus { outline: 2px solid var(--color-primary, #2563eb); border-color: transparent; }
.reg-cl__sig-input--error { border-color: #ef4444; outline: 2px solid #ef4444; }
.reg-cl__sig-input:disabled { background: #f9fafb; color: #9ca3af; }
.reg-cl__sig-hint {
  font-size: .78rem;
  color: #9ca3af;
  margin: 0;
  font-style: italic;
}

/* ── Payment section ─────────────────────────────────────────────── */
.reg-pending__payment {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.reg-pending__payment-hint {
  font-size: .85rem;
  color: #6b7280;
  margin: 0 0 .85rem;
}
.reg-pending__payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}
.reg-pending__payment-note {
  font-size: .8rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}
.reg-pending__section-label { padding-top: .5rem; margin-bottom: .5rem; }

/* ============================================================
   FILED DOCUMENTS — My Documents completed section
   ============================================================ */
.filed-group {
  border: 1.5px solid #c4c9d4;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.filed-group__hdr {
  background: #e8ebf0;
  padding: .65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1.5px solid #c4c9d4;
}
.filed-group__course {
  font-weight: 600;
  font-size: .875rem;
  color: var(--navy);
}
.filed-group__meta {
  font-size: .8rem;
  color: #6b7280;
  white-space: nowrap;
}
.filed-group__body { padding: 0; }
.filed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  gap: 1rem;
  border-top: 1px solid #e0e3e8;
}
.filed-row:first-child { border-top: none; }
.filed-row__label {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  font-size: .875rem;
  color: var(--text);
}
.filed-row__date {
  font-size: .775rem;
  color: #6b7280;
}
.filed-row__link {
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.filed-row__link:hover { text-decoration: underline; }
.filed-row__empty {
  font-size: .875rem;
  color: #9ca3af;
  padding: .75rem 1rem;
  margin: 0;
}

/* ── Sidebar notification dot ──────────────────────────────────────────────── */
.sidebar__nav-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}
.sidebar.collapsed .sidebar__nav-dot { display: none; }

/* ── Action-required badge (My Documents items) ────────────────────────────── */
.doc-action-badge {
  display: inline-flex;
  align-items: center;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .65rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Pending catalog acknowledgment card (My Documents) ────────────────────── */
.catalog-ack-pending {
  background: #fff;
  border: 1.5px solid #c4c9d4;
  border-top: 3px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.catalog-ack-pending__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.catalog-ack-pending__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: .2rem 0 0;
}
.catalog-ack-pending__desc {
  font-size: .875rem;
  color: #4b5563;
  margin: 0 0 1rem;
  line-height: 1.55;
}
.catalog-ack-pending__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}
