:root {
  --ink: #0b1f3f;
  --muted: #5d6f8a;
  --line: #d8e7f5;
  --paper: #f4f9ff;
  --white: #ffffff;
  --un-blue: #009edb;
  --deep-blue: #004b93;
  --navy: #06366d;
  --sky: #dff3ff;
  --silver: #eef5fb;
  --page-blue: #bcd6ec;
  --shadow: 0 22px 60px rgba(6, 54, 109, 0.14);
}

* {
  box-sizing: border-box;
}

/* The HTML `hidden` attribute / IDL property must always win over
   class-based display rules like `.metric-grid { display: grid }`. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 286px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  color: var(--navy);
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #25486f;
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a,
.portal-header-link {
  color: #25486f;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
  transition: color 150ms ease, background 150ms ease;
}

.nav-links a:hover,
.portal-header-link:hover {
  color: var(--deep-blue);
}

.nav-links a.active {
  background: var(--deep-blue);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
}

.nav-links a.active:hover {
  color: var(--white);
}

.header-action,
.primary-button,
.secondary-button,
.interest-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.header-action,
.primary-button,
.interest-form button {
  background: var(--deep-blue);
  color: var(--white);
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.home-page {
  background: #031f42;
  overflow: hidden;
}

.home-page .site-header {
  display: none;
}

.home-page main {
  height: 100svh;
  overflow: hidden;
}

.home-page main > section:not(.hero),
.home-page > .site-footer {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 0;
  background: #031f42;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-rows: 9% minmax(0, 80.4%) 10.6%;
  width: min(100vw, calc(100svh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  max-width: 100vw;
  max-height: 100svh;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: #e5b85f;
  box-shadow: 0 0 14px rgba(229, 184, 95, 0.7);
  pointer-events: none;
}

.hero-stage::before {
  top: 9%;
}

.hero-stage::after {
  bottom: 10.6%;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #031f42;
}

.hero-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  grid-row: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto;
  gap: clamp(8px, 1.2vw, 20px);
  align-items: center;
  align-self: stretch;
  height: 9%;
  min-height: 0;
  padding: 0 3.2% 1%;
  background: rgba(3, 31, 66, 0.78);
  overflow: hidden;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  min-width: 0;
}

.hero-brand img {
  width: clamp(24px, min(3.2vw, 5.6svh), 52px);
  height: clamp(24px, min(3.2vw, 5.6svh), 52px);
  object-fit: contain;
}

.hero-brand strong,
.hero-brand small {
  display: block;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-brand strong {
  font-size: clamp(0.58rem, min(1vw, 1.8svh), 1.08rem);
}

.hero-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.42rem, min(0.64vw, 1.2svh), 0.72rem);
  font-weight: 700;
}

.hero-top-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, min(1.1vw, 1.8svh), 20px);
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.5rem, min(0.78vw, 1.45svh), 0.86rem);
  font-weight: 800;
}

.hero-top-links a {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.hero-top-links a,
.hero-register {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-top-links a:hover {
  color: var(--white);
}

.hero-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(24px, min(2.8vw, 4.6svh), 38px);
  padding: 0 clamp(9px, min(1.2vw, 1.9svh), 18px);
  color: #071f44;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  font-size: clamp(0.56rem, min(0.84vw, 1.55svh), 0.94rem);
  font-weight: 900;
}

.hero-register:hover {
  background: var(--white);
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-row: 2;
  display: grid;
  place-items: center;
  align-self: center;
  transform: translateY(-8%);
  width: min(50%, 820px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(4px, 0.8vw, 12px) 0;
  color: #082247;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
}

.hero-content::-webkit-scrollbar {
  display: none;
}

.hero-panel {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 690px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.985);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--un-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .section-kicker {
  color: #9fe4ff;
}

.hero .eyebrow {
  margin-bottom: clamp(8px, 1vw, 14px);
  color: var(--deep-blue);
  font-size: clamp(0.58rem, 0.76vw, 0.84rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: clamp(8px, min(1.2vw, 1.7svh), 18px);
  font-size: clamp(1rem, min(2.28vw, 4.4svh), 2.75rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 690px;
  color: rgba(8, 34, 71, 0.78);
  font-size: clamp(0.66rem, min(1.12vw, 1.9svh), 1.16rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(7px, min(1vw, 1.6svh), 12px);
  margin-top: clamp(10px, min(1.8vw, 2.4svh), 26px);
}

.hero .primary-button,
.hero .secondary-button {
  min-height: clamp(28px, min(3.4vw, 4.8svh), 44px);
  padding: 0 clamp(10px, min(1.2vw, 1.9svh), 18px);
  font-size: clamp(0.62rem, min(0.9vw, 1.55svh), 0.95rem);
}

.hero .secondary-button {
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 75, 147, 0.28);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, min(1vw, 1.5svh), 14px);
  margin-top: clamp(10px, min(1.6vw, 2.2svh), 22px);
}

.hero-mini-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-mini-grid article {
  display: grid;
  gap: 8px;
  min-height: clamp(62px, min(7vw, 10svh), 112px);
  padding: clamp(9px, min(1.2vw, 1.8svh), 18px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 75, 147, 0.16);
  border-radius: 8px;
}

.hero-mini-grid span {
  color: var(--deep-blue);
  font-size: clamp(0.5rem, min(0.7vw, 1.2svh), 0.76rem);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-mini-grid strong {
  color: #082247;
  font-size: clamp(0.62rem, min(0.98vw, 1.65svh), 1.05rem);
  line-height: 1.2;
}

.hero-mini-grid small {
  color: rgba(8, 34, 71, 0.68);
  font-size: clamp(0.52rem, min(0.74vw, 1.25svh), 0.82rem);
  line-height: 1.35;
}

.hero-focus-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, min(0.8vw, 1.2svh), 10px);
  margin-top: clamp(10px, min(1.3vw, 1.9svh), 18px);
}

.hero-focus-strip span {
  padding: clamp(5px, min(0.6vw, 1svh), 8px) clamp(8px, min(0.9vw, 1.4svh), 12px);
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(0, 75, 147, 0.16);
  border-radius: 999px;
  font-size: clamp(0.54rem, min(0.72vw, 1.25svh), 0.78rem);
  font-weight: 900;
}

.hero-note {
  max-width: 640px;
  margin: clamp(8px, min(1vw, 1.5svh), 14px) auto 0;
  color: rgba(8, 34, 71, 0.72);
  font-size: clamp(0.58rem, min(0.9vw, 1.55svh), 0.94rem);
  line-height: 1.45;
}

.hero-list {
  display: grid;
  gap: clamp(6px, min(0.9vw, 1.5svh), 12px);
  margin: clamp(10px, min(1.5vw, 2.2svh), 22px) 0 0;
  padding: 0;
  list-style: none;
  color: rgba(8, 34, 71, 0.82);
  font-size: clamp(0.62rem, min(1vw, 1.65svh), 1.08rem);
  font-weight: 800;
}

.hero-list li {
  padding: clamp(7px, min(0.8vw, 1.3svh), 10px) 12px;
  background: rgba(255, 255, 255, 0.56);
  border-left: 3px solid rgba(0, 75, 147, 0.58);
  border-radius: 6px;
}

.hero-list strong,
.hero-list small {
  display: block;
}

.hero-list small {
  margin-top: 3px;
  color: rgba(8, 34, 71, 0.66);
  font-size: clamp(0.52rem, min(0.74vw, 1.25svh), 0.82rem);
  line-height: 1.32;
}

.hero-contact-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(7px, min(0.9vw, 1.35svh), 12px);
  margin-top: clamp(12px, min(1.4vw, 2svh), 20px);
  color: rgba(8, 34, 71, 0.76);
  font-size: clamp(0.58rem, min(0.84vw, 1.4svh), 0.9rem);
  font-weight: 800;
}

.hero-contact-lines a,
.hero-contact-lines span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 75, 147, 0.14);
  border-radius: 999px;
}

.hero-page-footer {
  position: relative;
  z-index: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  min-height: 0;
  padding: 0 4.2%;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  font-size: clamp(0.5rem, min(0.82vw, 1.5svh), 0.9rem);
  font-weight: 800;
}

.hero-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, min(0.7vw, 1.1svh), 8px);
}

.hero-progress button {
  width: clamp(7px, 0.7vw, 10px);
  height: clamp(7px, 0.7vw, 10px);
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  cursor: pointer;
}

.hero-progress button.active {
  width: clamp(20px, 1.8vw, 28px);
  background: #e5b85f;
  border-color: #e5b85f;
}

.hero-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, min(1vw, 1.5svh), 12px);
  margin: clamp(10px, min(1.6vw, 2.2svh), 22px) auto 0;
  text-align: left;
}

.hero-form label {
  display: grid;
  gap: 6px;
  color: #082247;
  font-size: clamp(0.56rem, min(0.82vw, 1.35svh), 0.88rem);
  font-weight: 900;
}

.hero-form label:last-of-type,
.hero-form button {
  grid-column: 1 / -1;
}

.hero-form input,
.hero-form select {
  min-height: clamp(28px, min(3vw, 4.4svh), 44px);
  width: 100%;
  padding: 0 12px;
  color: #082247;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 75, 147, 0.22);
  border-radius: 8px;
  font: inherit;
}

.hero-form button {
  min-height: clamp(30px, min(3.2vw, 4.6svh), 46px);
  color: var(--white);
  background: var(--deep-blue);
  border: 0;
  border-radius: 8px;
  font: 900 clamp(0.62rem, min(0.9vw, 1.55svh), 0.95rem)/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.hero-page-footer p {
  margin: 0;
}

.hero-page-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: clamp(10px, 1.4vw, 20px);
}

.hero-page-footer a:hover {
  color: var(--white);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.signal-strip div {
  min-height: 116px;
  padding: 28px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.signal-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--un-blue);
  font-weight: 800;
}

.signal-strip strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 68px);
}

.intro-grid,
.section-heading,
.lab,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.lab h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
}

.intro p,
.section-heading p,
.lab p,
.contact p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.programs {
  background: var(--white);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.program-card,
.scenario-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
}

.program-card.featured {
  background: var(--deep-blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.program-card span,
.scenario-grid span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--un-blue);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.program-card.featured span {
  color: #aee8ff;
}

.program-card p,
.scenario-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.program-card.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.curriculum-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.module {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px 14px;
  min-height: 150px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module:hover,
.module.active {
  transform: translateY(-2px);
  border-color: rgba(0, 158, 219, 0.55);
  box-shadow: 0 14px 30px rgba(6, 54, 109, 0.1);
}

.module span {
  grid-row: span 2;
  color: var(--un-blue);
  font-weight: 800;
}

.module strong {
  font-size: 1rem;
}

.module small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}

.lab {
  background: var(--sky);
}

.scenario-grid {
  display: grid;
  gap: 14px;
}

.scenario-grid article {
  min-height: 180px;
  background: var(--white);
}

.scenario-grid span {
  margin-bottom: 22px;
}

.contact {
  background: var(--navy);
  color: var(--white);
}

.contact-panel {
  align-items: stretch;
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.interest-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.interest-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.interest-form input,
.interest-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
}

.interest-form button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  padding: 48px clamp(18px, 5vw, 68px) 28px;
  background: #031f42;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p,
.site-footer h2 {
  margin: 0;
}

.footer-main {
  display: grid;
  gap: 22px;
  max-width: 620px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-logo {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-brand div {
  min-width: 0;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand p,
.footer-main > p,
.footer-bottom p {
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-columns h2 {
  color: var(--white);
  font: 800 0.78rem/1.2 Inter, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-columns a,
.footer-columns span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.footer-columns a:hover,
.footer-socials a:hover {
  color: var(--white);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.legal-page {
  background: var(--page-blue);
}

.legal-content {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.legal-content h1 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.legal-content section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font: 800 1.1rem/1.25 Inter, Arial, sans-serif;
}

.legal-content p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-content a {
  color: var(--deep-blue);
  font-weight: 800;
}

.app-page,
.legal-page {
  position: relative;
  overflow-x: hidden;
}

.app-page {
  min-height: 100vh;
  background: url("GDI/GDI Admin Login Background.png") center center / cover fixed no-repeat;
}

.legal-page {
  background: url("GDI/GDI Admin Login Background.png") center center / cover fixed no-repeat;
}

/* GDI emblem watermark — fixed in the center of the viewport, only
   the circular wreath/globe/figures portion is visible. The source
   logo is 1254x1254 with the emblem in roughly the top 58% and the
   "GDI" wordmark + tagline below. We render the image at the
   container width (1:1 ratio) and crop the bottom by setting the
   container shorter than the rendered image. No horizontal clipping
   because container width = image rendered width. */
.app-page::before,
.legal-page::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(720px, 95vw, 1400px);
  /* Height ≈ 58% of width — matches the emblem's portion of the
     square source image so the wordmark below is cropped out. */
  aspect-ratio: 1 / 0.58;
  background-image: url("GDI/GDI Logo Transparent.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all real content sits above the watermark. */
.app-page > *,
.legal-page > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .app-page::before,
  .legal-page::before {
    width: clamp(300px, 86vw, 520px);
    opacity: 0.06;
  }
}

/* =============================================================
   Admin shell — visually distinct from the public site.
   - top "CRM · Internal" bar (orange accent)
   - dark navy app background
   - permanent left sidebar with sectioned navigation
   - white content panels for high contrast on the navy bg
   ============================================================= */

.admin-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(2, 18, 43, 0.96), rgba(5, 42, 86, 0.9)),
    url("GDI/GDI Admin Login Background.png") center center / cover fixed no-repeat;
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 7px 26px;
  background: linear-gradient(90deg, #a53b0d, #bd4d16 46%, #8f330c);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  border-bottom: 1px solid rgba(255, 213, 128, 0.18);
  box-shadow: 0 10px 28px rgba(2, 10, 24, 0.24);
}
.admin-bar-left,
.admin-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.admin-bar-pill {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.admin-bar-title { color: rgba(255, 255, 255, 0.95); }
.admin-bar-meta {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  font-size: 0.78rem;
}
.admin-bar-meta strong { color: var(--white); font-weight: 600; }
.admin-bar-metrics {
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.admin-bar-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1.1;
}
.admin-bar-stat:last-child { border-right: none; }
.admin-bar-stat strong {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}
.admin-bar-stat span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.admin-bar-link {
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font: inherit;
  cursor: pointer;
}
.admin-bar-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.crm-global-search {
  position: relative;
  min-width: min(34vw, 420px);
  flex: 1 1 280px;
  max-width: 460px;
}

.crm-global-search input {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font: inherit;
}

.crm-global-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.crm-profile-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  width: min(92vw, 460px);
  max-height: 380px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(7, 31, 68, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(2, 10, 24, 0.24);
}

.crm-profile-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  text-align: left;
  background: #f8fbff;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  cursor: pointer;
}

.crm-profile-search-result strong {
  color: var(--navy);
}

.crm-profile-search-result span,
.crm-profile-search-result small {
  color: var(--muted);
}

.admin-frame {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 42px); /* minus admin-bar */
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(4, 28, 61, 0.92), rgba(3, 20, 45, 0.96)),
    rgba(4, 28, 61, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}
.admin-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-sidebar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(1.05) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}
.admin-sidebar-brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.05;
}
.admin-sidebar-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.admin-nav {
  display: grid;
  gap: 6px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: translateX(2px);
}
.admin-nav a.active {
  background: linear-gradient(90deg, rgba(0, 158, 219, 0.2), rgba(255, 255, 255, 0.08));
  color: var(--white);
  font-weight: 600;
  box-shadow:
    inset 3px 0 0 var(--un-blue),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.admin-nav-icon {
  display: inline-block;
  width: 18px;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}
.admin-nav a.active .admin-nav-icon { color: var(--un-blue); }
.admin-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: #c2410c;
  color: var(--white);
  border-radius: 999px;
  text-align: center;
  line-height: 18px;
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-sidebar-footer .admin-bar-link {
  display: block;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  padding: 6px 8px;
}
.admin-sidebar-footer .admin-bar-link:hover { color: var(--white); }

.admin-main {
  padding: 28px clamp(22px, 3vw, 42px) 54px;
  background:
    radial-gradient(circle at 72% 0%, rgba(0, 158, 219, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(6, 54, 109, 0.92), rgba(4, 36, 76, 0.98));
  color: var(--white);
  display: grid;
  gap: 24px;
  align-content: start;
}

.admin-view { display: none; }
.admin-view.active { display: grid; gap: 22px; }

.admin-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}
.admin-view-head h1 {
  margin: 6px 0 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.65rem);
  color: var(--white);
  text-shadow: 0 10px 24px rgba(2, 10, 24, 0.26);
}
.admin-view-head .section-kicker { color: #4ec3ef; }
.admin-view-sub {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
  font-size: 1rem;
}

/* Cards on the dark canvas */
.admin-main .status-card,
.admin-main .dashboard-panel,
.admin-main .metric-grid article {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(210, 226, 245, 0.82);
  box-shadow: 0 18px 40px rgba(2, 10, 24, 0.18);
}
.admin-main .metric-grid article span,
.admin-main .record-item span { color: var(--un-blue); }
.admin-main .metric-grid strong,
.admin-main .panel-heading h2 { color: var(--navy); }

.admin-main .status-card {
  min-width: 184px;
  padding: 22px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 245, 255, 0.96));
}

.admin-main .status-card strong {
  color: var(--navy);
  line-height: 1.1;
}

.admin-main .status-card span {
  color: var(--navy);
}

/* Accent button used for primary admin actions (e.g. + New course) */
.primary-button.admin-accent {
  background: #c2410c;
}
.primary-button.admin-accent:hover { background: #9a330a; }

@media (max-width: 900px) {
  .admin-frame {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: sticky;
    top: 42px;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 12px;
    gap: 14px;
  }
  .admin-sidebar-brand { flex-shrink: 0; }
  .admin-nav {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
  }
  .admin-nav a { padding: 8px 10px; }
  .admin-sidebar-footer { display: none; }
}

.portal-page {
  background: url("GDI/GDI Admin Login Background.png") center center / cover fixed no-repeat;
}

.app-header {
  position: static;
}

.app-shell {
  display: grid;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.dashboard-hero,
.dashboard-panel,
.metric-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(6, 54, 109, 0.08);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.dashboard-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
}

.dashboard-hero p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.portal-login-hero {
  position: relative;
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(28px, 5vw, 64px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(3, 23, 52, 0.94) 0 42%, rgba(5, 58, 111, 0.58) 72%, rgba(255, 255, 255, 0.16)),
    url("GDI/GDI Website Background No Text.png") right center / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(2, 10, 24, 0.28);
}

.portal-login-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(191, 138, 43, 0.75), transparent);
}

.portal-login-hero .section-kicker,
.portal-login-hero h1,
.portal-login-hero p {
  color: var(--white);
}

.portal-login-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.portal-login-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  text-shadow: 0 20px 46px rgba(2, 10, 24, 0.38);
}

.student-login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.student-login-highlights span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.portal-brand-showcase {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
}

.portal-brand-showcase img {
  display: block;
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.status-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  color: var(--white);
  background: var(--deep-blue);
  border-radius: 8px;
}

.status-card span,
.metric-grid span,
.record-item span,
.check-item small {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-card strong {
  font-size: 1.45rem;
}

.login-card,
.registration-form {
  display: grid;
  gap: 14px;
}

.login-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
}

.login-card label,
.registration-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.login-card input,
.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.registration-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.login-card button,
.registration-form button {
  min-height: 46px;
  color: var(--white);
  background: var(--deep-blue);
  border: 0;
  border-radius: 8px;
  font: 800 0.95rem/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.login-card a {
  color: var(--deep-blue);
  font-weight: 800;
}

/* OTP variant of the portal login card — no password field, with a
   short explainer of how the passwordless flow works.
   Selectors are kept specific so they override .portal-login-hero p
   (which forces white text on the rest of the dark hero). */
.login-card-otp {
  display: grid;
  gap: 12px;
}
.portal-login-hero .login-card-otp .login-card-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--un-blue);
}
.portal-login-hero .login-card-otp .login-card-fine {
  margin: -4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.portal-login-hero .login-card {
  align-self: center;
  transform: translateX(-15%);
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025) 54%, rgba(6, 32, 67, 0.075)),
    rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.025),
    0 24px 58px rgba(2, 10, 24, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.portal-login-hero .login-card > div {
  display: grid;
  gap: 14px;
}
.portal-login-hero .login-card > div[hidden] {
  display: none;
}
.portal-login-hero .login-card label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}
.portal-login-hero .login-card input {
  min-height: 48px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(2, 18, 43, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 12px rgba(2, 10, 24, 0.12);
}
.portal-login-hero .login-card input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.portal-login-hero .login-card input:focus {
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 12px rgba(2, 10, 24, 0.12),
    0 0 0 3px rgba(255, 255, 255, 0.12);
}
.portal-login-hero .login-card a,
.portal-login-hero .login-card #portal-back-btn {
  color: rgba(255, 255, 255, 0.82) !important;
}
.portal-login-hero #portal-otp-hint {
  color: rgba(255, 255, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}
.portal-login-helper,
.portal-login-hero .login-card small {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 400;
  line-height: 1.5;
}
.portal-login-hero .login-card small strong {
  color: var(--white);
  font-weight: 800;
}
.portal-login-hero .login-card a {
  color: var(--white) !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-underline-offset: 3px;
}
.portal-login-hero #portal-email-btn {
  width: 50%;
  min-height: 48px;
  margin-top: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px rgba(2, 10, 24, 0.2) !important;
}
.portal-login-hero #portal-otp-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px rgba(2, 10, 24, 0.2) !important;
}
.portal-login-hero .login-card .primary-button:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.1);
}
.portal-otp-hint {
  margin: 0;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.84) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.55;
}
.portal-otp-hint strong {
  color: var(--white);
  font-weight: 800;
}
.portal-login-back {
  justify-self: start;
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 8px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 10, 24, 0.16);
}
.portal-login-back:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}
.portal-register-prompt {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: calc(-1 * clamp(12px, 2vw, 21px));
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
}
.portal-register-prompt strong {
  color: var(--white);
  font-weight: 800;
}
.portal-register-prompt a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-grid article {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.metric-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--un-blue), rgba(191, 138, 43, 0.8));
}

.metric-grid article::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(0, 158, 219, 0.08);
}

.metric-grid span,
.record-item span {
  color: var(--un-blue);
}

.metric-grid strong {
  color: var(--navy);
  font-size: 2.15rem;
  line-height: 1;
}

/* ── Pipeline funnel ── */
.pipeline-funnel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: linear-gradient(180deg, #f4f9ff, #eaf3ff);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.pipeline-stage:hover {
  border-color: var(--un-blue);
  box-shadow: 0 6px 20px rgba(0, 158, 219, 0.12);
}

.pipeline-stage-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.pipeline-stage-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--un-blue);
}

.pipeline-stage-bar {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.pipeline-stage-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--un-blue), var(--deep-blue));
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pipeline-stage.is-lead    .pipeline-stage-bar-fill { background: #64b5f6; }
.pipeline-stage.is-applicant .pipeline-stage-bar-fill { background: #ffb74d; }
.pipeline-stage.is-accepted  .pipeline-stage-bar-fill { background: #81c784; }
.pipeline-stage.is-enrolled  .pipeline-stage-bar-fill { background: var(--deep-blue); }
.pipeline-stage.is-active    .pipeline-stage-bar-fill { background: #00897b; }

/* Lead source pill */
.lead-source-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lead-source-pill.webinar { background: #fff8dc; color: #856404; }
.lead-source-pill.direct  { background: #dff3ff; color: #004b93; }
.lead-source-pill.lead { background: #eaf4ff; color: #07538f; }
.lead-source-pill.applicant { background: #fff1dc; color: #875400; }
.lead-source-pill.accepted { background: #eaf8ef; color: #1d6a34; }
.lead-source-pill.enrolled,
.lead-source-pill.active { background: #e6f7f4; color: #00695c; }
.lead-source-pill.new { background: #f3f6fb; color: #4d6078; }
.lead-source-pill.nurturing { background: #fff8dc; color: #856404; }
.lead-source-pill.converted { background: #eaf8ef; color: #1d6a34; }
.lead-source-pill.unsubscribed,
.lead-source-pill.do_not_contact { background: #fff0f0; color: #b03434; }

.crm-profile-link {
  display: inline;
  padding: 0;
  color: var(--deep-blue);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.crm-profile-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.crm-profile-link.is-strong {
  color: var(--ink);
  font-weight: 800;
}

.doc-review-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #875400;
  background: #fff1dc;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-review-pill.is-clear {
  color: var(--muted);
  background: var(--silver);
}

.registration-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.registration-stage-pill.is-info {
  color: #07538f;
  background: #eaf4ff;
}

.registration-stage-pill.is-warning {
  color: #875400;
  background: #fff1dc;
}

.registration-stage-pill.is-urgent {
  color: #a72c2c;
  background: #ffe5e5;
}

.registration-stage-pill.is-ready {
  color: #1d6a34;
  background: #eaf8ef;
}

.registration-stage-pill.is-complete {
  color: #00695c;
  background: #e6f7f4;
}

.crm-next-action-cell {
  margin-top: 7px;
}

.crm-next-action-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.crm-stage-action-card {
  display: grid;
  gap: 8px;
  align-items: start;
}

.crm-stage-action-card strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.crm-stage-action-card .crm-next-action-btn {
  justify-self: start;
}

.registration-queue-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.registration-queue-chip {
  display: grid;
  gap: 2px;
  min-height: 68px;
  padding: 12px;
  text-align: left;
  background: #f8fbff;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  cursor: pointer;
}

.registration-queue-chip strong {
  color: var(--navy);
  font-size: 1.3rem;
}

.registration-queue-chip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.registration-queue-chip.is-urgent {
  background: #fff3f3;
  border-color: #ffd2d2;
}

.registration-queue-chip.is-ready {
  background: #effaf3;
  border-color: #cfeeda;
}

.registration-queue-chip.is-warning {
  background: #fff8ea;
  border-color: #ffe1aa;
}

.registration-queue-chip.is-info {
  background: #eef7ff;
  border-color: #cfe6fb;
}

.registration-queue-action {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.queue-signal {
  display: inline-flex;
  margin: 0 5px 5px 0;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--silver);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .pipeline-funnel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .pipeline-funnel { grid-template-columns: repeat(2, 1fr); }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.admin-grid {
  align-items: start;
}

.registration-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
}

.dashboard-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin-bottom: 0;
  color: var(--navy);
  font: 800 1.18rem/1.25 Inter, Arial, sans-serif;
}

.admin-main .dashboard-panel .section-kicker {
  color: var(--un-blue);
}

.panel-heading button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--white);
  background: var(--deep-blue);
  border: 0;
  border-radius: 8px;
  font: 800 0.9rem/1 Inter, Arial, sans-serif;
}

.record-list,
.checklist {
  display: grid;
  gap: 12px;
}

.enrollment-progress {
  grid-template-columns: repeat(5, 1fr);
}

.enrollment-progress .check-item {
  grid-template-columns: 18px minmax(0, 1fr);
  flex-direction: column;
}

.enrollment-progress .check-item small {
  grid-column: 2;
}

.portal-package-panel .panel-heading {
  align-items: center;
}

.portal-package-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 12px;
}

.portal-package-card > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(7, 31, 68, 0.05);
  border: 1px solid rgba(7, 31, 68, 0.1);
  border-radius: 8px;
}

.portal-package-card span {
  color: var(--deep-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-package-card strong {
  color: var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.25;
}

.portal-package-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.portal-package-next {
  background: rgba(229, 184, 95, 0.16) !important;
  border-color: rgba(229, 184, 95, 0.32) !important;
}

.portal-webinar-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(77, 152, 216, 0.1);
  border: 1px solid rgba(77, 152, 216, 0.22);
  border-radius: 8px;
}

.portal-webinar-card span {
  color: var(--deep-blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-webinar-card strong {
  color: var(--navy);
}

.portal-webinar-card p {
  margin: 0;
  color: var(--muted);
}

.document-upload-grid,
.enrollment-documents-log {
  display: grid;
  gap: 14px;
}

.document-upload-card,
.enrollment-document-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 31, 68, 0.12);
  border-radius: 8px;
}

.document-upload-card.approved {
  border-color: rgba(18, 122, 74, 0.28);
  background: rgba(237, 249, 242, 0.86);
}

.document-upload-head,
.document-upload-row,
.enrollment-document-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.document-upload-head h3,
.enrollment-document-group strong {
  margin: 3px 0 0;
  color: var(--navy);
}

.document-upload-head p,
.enrollment-document-group small,
.document-upload-row small,
.enrollment-document-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.document-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-height: 34px;
  margin-top: 8px;
  padding: 7px 12px;
  color: var(--deep-blue);
  background: #fff;
  border: 1.5px solid rgba(0, 70, 140, 0.28);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(7, 31, 68, 0.08);
}

.document-open-button::after {
  content: "\2197";
  font-size: 0.78rem;
  line-height: 1;
}

.document-open-button:hover {
  color: #fff;
  background: var(--deep-blue);
  border-color: var(--deep-blue);
}

.document-upload-head span:first-child {
  color: var(--deep-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-option-list span {
  padding: 7px 10px;
  color: #18345b;
  background: rgba(0, 75, 147, 0.07);
  border: 1px solid rgba(0, 75, 147, 0.12);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.document-upload-history {
  display: grid;
  gap: 8px;
}

.document-upload-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.document-upload-form-status {
  grid-column: 1 / -1;
  margin-top: 0;
}

.document-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-status.submitted {
  color: #7a4610;
  background: #fff1df;
}

.document-status.approved {
  color: #127a4a;
  background: #def7e9;
}

.document-status.rejected {
  color: #a72c2c;
  background: #ffe5e5;
}

.enrollment-document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.enrollment-document-actions .ghost-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.record-item {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: linear-gradient(180deg, #f9fcff, #f2f8ff);
  border: 1px solid #d9e8f7;
  border-radius: 8px;
}

.record-item strong {
  color: var(--ink);
}

.record-item p,
.record-item small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.compact .record-item {
  padding: 14px;
}

.check-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: #f8fcff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-item span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--un-blue);
  border-radius: 999px;
}

.check-item.complete span {
  background: var(--un-blue);
  box-shadow: inset 0 0 0 4px #f8fcff;
}

.check-item.current {
  background: var(--sky);
  border-color: var(--un-blue);
  box-shadow: 0 8px 24px rgba(0, 158, 219, 0.18);
}

.check-item.current span {
  background: var(--un-blue);
  box-shadow: inset 0 0 0 3px var(--sky), 0 0 0 4px rgba(0, 158, 219, 0.18);
}

.check-item.current strong {
  color: var(--navy);
}

.check-item.current small {
  color: var(--deep-blue);
  font-weight: 700;
}

.check-item small {
  color: var(--muted);
}

.step-timestamp {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 2px;
}

.step-pending-msg {
  grid-column: 2;
  color: var(--un-blue);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 4px 0 0;
}

.payment-action-block {
  grid-column: 2;
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px;
  background: rgba(229, 184, 95, 0.14);
  border: 1px solid rgba(229, 184, 95, 0.34);
  border-radius: 8px;
}

.payment-action-block strong {
  color: var(--navy);
  font-size: 1rem;
}

.payment-action-block small {
  color: var(--muted);
  font-weight: 600;
}

.enrollment-rejection-notice {
  grid-column: 1 / -1;
  background: #fff0f0;
  border: 1px solid #ffc0c0;
  border-radius: 8px;
  padding: 12px 16px;
}

.enrollment-rejection-notice strong { color: #c0392b; }
.enrollment-rejection-notice p { margin: 4px 0; color: #0b1f3f; }
.enrollment-rejection-notice small { color: var(--muted); }

.enrollment-history-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.enrollment-payment-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.enrollment-payment-row {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: #fffaf0;
  border: 1px solid rgba(229, 184, 95, 0.34);
  border-radius: 8px;
  font-size: 0.82rem;
}

.enrollment-payment-row strong {
  color: var(--navy);
}

.enrollment-payment-row span,
.enrollment-payment-row small {
  color: var(--muted);
}

.enrollment-event {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: #f8fcff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
}

.enrollment-event-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.enrollment-event-badge.advance { background: #dff3ff; color: #004b93; }
.enrollment-event-badge.submitted { background: #fff8dc; color: #856404; }
.enrollment-event-badge.reject { background: #fff0f0; color: #c0392b; }
.enrollment-event-badge.registered { background: #f0f9f0; color: #1a7a1a; }

.empty-state {
  margin: 0;
  padding: 22px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.95), rgba(241, 248, 255, 0.9));
  border: 1px dashed #c6def4;
  border-radius: 8px;
  text-align: center;
}

/* CRM row controls */
.row-student-id {
  display: block;
  color: var(--un-blue);
  font-family: ui-monospace, Menlo, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.row-status {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  color: var(--ink);
  min-width: 130px;
}
.row-status:disabled { opacity: 0.6; }
.row-status-feedback {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
  min-height: 14px;
  color: var(--muted);
}
.row-status-feedback[data-kind="success"] { color: var(--deep-blue); }
.row-status-feedback[data-kind="error"]   { color: #c43d3d; }

.ghost-button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  color: var(--deep-blue);
  cursor: pointer;
}
.ghost-button:hover { background: var(--silver); }
.primary-button {
  appearance: none;
  background: var(--deep-blue);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.primary-button:hover { background: var(--navy); }

/* Form status messages (registration form + dialogs) */
.form-status {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-status[data-kind="success"] { color: var(--deep-blue); }
.form-status[data-kind="error"]   { color: #c43d3d; }
.form-status[data-kind="info"]    { color: var(--navy); }

/* Webinar session landing page */
.webinar-page {
  min-height: 100vh;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(3, 31, 66, 0.62), rgba(3, 31, 66, 0.78)),
    linear-gradient(90deg, rgba(3, 31, 66, 0.82), rgba(3, 31, 66, 0.36) 52%, rgba(3, 31, 66, 0.74)),
    url("GDI/GDI Admin Login Background.png") center top / cover repeat-y,
    #031f42;
}

.admin-course-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(7, 31, 68, 0.12);
  border-radius: 8px;
}

.admin-course-card h3 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.18rem;
}

.admin-course-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-course-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-course-stats span {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: rgba(7, 31, 68, 0.05);
  border: 1px solid rgba(7, 31, 68, 0.08);
  border-radius: 8px;
}

.admin-course-stats strong {
  color: var(--navy);
  font-size: 1.25rem;
}

.admin-course-stats small,
.admin-course-interest {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.webinar-standalone-page .webinar-standalone-header {
  position: relative;
  justify-content: center;
  min-height: 92px;
  padding: 14px 18px;
  background:
    linear-gradient(90deg, rgba(2, 13, 35, 0.96), rgba(4, 27, 61, 0.88), rgba(2, 13, 35, 0.96));
  border-bottom: 1px solid rgba(229, 184, 95, 0.34);
  box-shadow: 0 18px 48px rgba(2, 10, 24, 0.22);
  backdrop-filter: blur(16px);
}

.webinar-standalone-page .webinar-standalone-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 184, 95, 0.12), transparent 44%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.webinar-static-brand {
  position: relative;
  min-width: 0;
  gap: 14px;
  justify-content: center;
}

.webinar-static-brand img {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.webinar-static-brand strong {
  color: var(--white);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.webinar-static-brand small {
  color: #e5b85f;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webinar-shell {
  display: grid;
  gap: 22px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 0;
}

.webinar-hero,
.webinar-register,
.webinar-session {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(2, 13, 35, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(2, 10, 24, 0.22);
  backdrop-filter: blur(16px);
}

.webinar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  min-height: 330px;
  padding: clamp(24px, 5vw, 54px);
  overflow: hidden;
  position: relative;
}

.webinar-hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -60% 38%;
  height: 280px;
  background: rgba(229, 184, 95, 0.16);
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.webinar-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

.webinar-hero p,
.webinar-register p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.webinar-hero img {
  width: min(100%, 260px);
  justify-self: center;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.webinar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.webinar-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: #071f44;
  background: #e5b85f;
  border-radius: 8px;
  font-weight: 900;
}

.webinar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.webinar-session {
  display: grid;
  gap: 14px;
  min-height: 280px;
  padding: 24px;
  color: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.webinar-session:hover,
.webinar-session.active {
  transform: translateY(-2px);
  border-color: rgba(229, 184, 95, 0.78);
  background:
    linear-gradient(145deg, rgba(229, 184, 95, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(2, 13, 35, 0.78);
}

.webinar-session.unavailable {
  cursor: default;
  opacity: 0.62;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(2, 13, 35, 0.72);
}

.webinar-session.unavailable:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
}

.webinar-session.unavailable button {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.16);
  cursor: not-allowed;
}

.webinar-session span {
  color: #e5b85f;
  font-weight: 900;
  text-transform: uppercase;
}

.webinar-session h2 {
  margin: 0;
  color: var(--white);
  font: 800 clamp(2.4rem, 5vw, 4.2rem)/1 Inter, Arial, sans-serif;
}

.webinar-session p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.webinar-session button,
.webinar-form button {
  min-height: 46px;
  padding: 0 16px;
  color: #071f44;
  background: #e5b85f;
  border: 0;
  border-radius: 8px;
  font: 900 0.92rem/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.webinar-register {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(22px, 5vw, 54px);
  padding: clamp(24px, 5vw, 46px);
}

.webinar-register h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.selected-session {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 184, 95, 0.34);
  border-radius: 8px;
}

.selected-session span {
  color: #e5b85f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-session strong {
  color: var(--white);
  line-height: 1.35;
}

.webinar-request-card {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(229, 184, 95, 0.34);
  border-radius: 8px;
}

.webinar-request-card span {
  color: #e5b85f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.webinar-request-card strong {
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.3;
}

.webinar-request-card .primary-button {
  justify-self: start;
}

.pricing-hero .status-card strong {
  text-transform: none;
}

.portal-id-card strong {
  text-transform: none;
}

.pricing-gate,
.pricing-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.pricing-gate[hidden],
.pricing-status[hidden],
.pricing-grid[hidden] {
  display: none;
}

.pricing-gate h2,
.pricing-status h2 {
  margin: 4px 0 8px;
  color: var(--navy);
}

.pricing-gate p,
.pricing-status p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 300px);
}

.pricing-student-card {
  display: grid;
  gap: 6px;
  min-width: min(100%, 280px);
  padding: 18px;
  background: rgba(7, 31, 68, 0.06);
  border: 1px solid rgba(7, 31, 68, 0.12);
  border-radius: 8px;
}

.pricing-student-card span,
.pricing-student-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.pricing-student-card strong {
  color: var(--navy);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  display: grid;
  gap: 12px;
  min-height: 310px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(7, 31, 68, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 31, 68, 0.1);
}

.pricing-card span {
  color: var(--deep-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-amount {
  align-self: end;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 13px;
  color: var(--navy);
  background: rgba(229, 184, 95, 0.18);
  border-radius: 8px;
  font-weight: 900;
}

.pricing-card.locked {
  opacity: 0.72;
}

.pricing-card small {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-gate,
  .pricing-status {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .portal-package-card {
    grid-template-columns: 1fr;
  }
}

.webinar-form {
  display: grid;
  gap: 14px;
}

.webinar-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.webinar-form input,
.webinar-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font: inherit;
}

.webinar-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.webinar-form .webinar-consent {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(229, 184, 95, 0.28);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.webinar-form .webinar-consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: #e5b85f;
}

.webinar-form .form-status {
  color: rgba(255, 255, 255, 0.74);
}

.webinar-form .form-status[data-kind="success"] {
  color: #e5b85f;
}

.webinar-form .form-status[data-kind="error"] {
  color: #ffb4b4;
}

/* Native <dialog> styling */
.app-dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(640px, 92vw);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.app-dialog::backdrop {
  background: rgba(6, 54, 109, 0.5);
}
.app-dialog-form {
  display: block;
  margin: 0;
}
.app-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
  border-bottom: 1px solid var(--line);
}
.app-dialog-head h2 {
  margin: 4px 0 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy);
}
.app-dialog-head small,
.app-dialog-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}
.app-dialog-body {
  padding: 18px 22px 22px;
}
.app-dialog-subhead {
  margin: 22px 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--un-blue);
}
.app-dialog-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.app-dialog-field > span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.app-dialog-field input,
.app-dialog-field select,
.app-dialog-field textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fcff;
  color: var(--ink);
}
.app-dialog-field textarea { resize: vertical; min-height: 64px; }
.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.notes-list li {
  background: #f8fcff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.notes-list li small {
  color: var(--muted);
  font-size: 0.75rem;
}
.notes-list li p {
  margin: 6px 0 0;
  color: var(--ink);
  line-height: 1.4;
  white-space: normal;
}
.notes-loading,
.notes-empty {
  color: var(--muted);
  font-style: italic;
}

/* Messages */
.app-dialog-wide {
  width: min(760px, 94vw);
}
.crm-profile-dialog {
  width: min(1120px, 96vw);
}
.crm-profile-page-head {
  align-items: flex-end;
}

.crm-profile-page {
  display: grid;
  gap: 14px;
}

.crm-profile-content {
  display: grid;
  gap: 16px;
}
.crm-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 14px;
}
.crm-profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.crm-profile-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dce8f6;
  border-radius: 8px;
}
.crm-profile-overview {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
  align-items: start;
  background: #eef6ff;
}
.crm-profile-card h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1.2rem;
}
.crm-profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.crm-profile-id-block {
  display: grid;
  gap: 5px;
  justify-items: start;
  color: var(--muted);
  font-size: 0.88rem;
}
.crm-profile-facts {
  display: grid;
  gap: 9px;
  margin: 0;
}
.crm-profile-facts div {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}
.crm-profile-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}
.crm-profile-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}
.crm-profile-message {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(229, 184, 95, 0.12);
  border: 1px solid rgba(229, 184, 95, 0.28);
  border-radius: 8px;
}
.crm-profile-message strong,
.crm-profile-list strong {
  color: var(--navy);
}
.crm-profile-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}
.crm-profile-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(7, 31, 68, 0.09);
  border-radius: 8px;
}
.crm-profile-list small {
  color: var(--muted);
}
.app-dialog-narrow {
  width: min(440px, 92vw);
}
.confirm-body {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.5;
  font-size: 0.95rem;
}
.messages-log {
  max-height: 420px;
  overflow-y: auto;
  background: #f8fcff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.message {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 80%;
  margin-right: auto;
}
.message.is-mine {
  background: var(--sky);
  border-color: var(--un-blue);
  margin-right: 0;
  margin-left: auto;
}
.message header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 0.78rem;
}
.message header strong {
  color: var(--navy);
}
.message header small {
  color: var(--muted);
}
.message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
  white-space: normal;
}

.unread-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--un-blue);
  color: var(--white);
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
  margin-left: 6px;
  font-weight: 700;
}

.messages-inbox-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.messages-search {
  min-height: 36px;
  min-width: min(100%, 240px);
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.messages-unread-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.gdi-id-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.gdi-id-badge {
  display: inline-flex;
  min-width: 26px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 18px;
  text-transform: uppercase;
}

.gdi-id-badge.is-wl {
  background: #fff8dc;
  color: #856404;
}

.gdi-id-badge.is-m {
  background: #dff3ff;
  color: #004b93;
}

.gdi-id-badge.is-s {
  background: #f0f9f0;
  color: #1a7a1a;
}

.messages-table {
  min-width: 880px;
}

.message-preview {
  display: -webkit-box;
  max-width: 380px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-read-pill {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--silver);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.crm-table .empty-state {
  background: transparent;
  border: 0;
  padding: 28px 16px;
}

.table-wrap {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.crm-table th,
.crm-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.crm-table th {
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crm-table td {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: var(--deep-blue);
  background: var(--sky);
  border-radius: 999px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-links,
  .header-action {
    display: none;
  }

  .hero-stage {
    width: min(100vw, calc(100svh * 1672 / 941));
    aspect-ratio: 1672 / 941;
    max-height: 100svh;
  }

  .hero-top-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-top-links {
    display: none;
  }

  .hero-register {
    justify-self: end;
  }

  .hero-content {
    width: 56%;
    transform: translateY(-7%);
  }

  .signal-strip,
  .program-grid,
  .curriculum-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .section-heading,
  .lab,
  .contact-panel,
  .dashboard-hero,
  .portal-login-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .portal-login-hero .login-card {
    transform: none;
  }

  .portal-brand-showcase {
    min-height: 220px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .webinar-hero,
  .webinar-register {
    grid-template-columns: 1fr;
  }

  .webinar-hero img {
    width: min(220px, 60vw);
    justify-self: start;
  }

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

  .webinar-session {
    min-height: auto;
  }
}

@media (max-height: 620px) {
  .hero-brand small {
    display: none;
  }

  .hero-top-nav {
    gap: 8px;
  }

  .hero-content {
    transform: translateY(-4%);
  }

  .hero-copy {
    line-height: 1.35;
  }

  .hero-page-footer p {
    display: none;
  }
}

@media (max-width: 760px), (max-height: 520px) {
  .hero-top-links {
    display: none;
  }

  .hero-top-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-content {
    width: 66%;
  }
}

@media (max-width: 1100px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-main {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 0;
    background: #031f42;
  }

  .hero-stage {
    grid-template-rows: 72px minmax(0, 1fr) 76px;
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    max-height: none;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .hero-stage::before {
    top: 72px;
  }

  .hero-stage::after {
    bottom: 76px;
  }

  .hero-art {
    object-fit: cover;
    object-position: center;
    opacity: 0.62;
  }

  .hero-top-nav {
    position: absolute;
    height: 72px;
    grid-template-columns: 1fr auto;
    padding: 0 14px;
    background: rgba(3, 31, 66, 0.92);
  }

  .hero-brand img {
    width: 40px;
    height: 40px;
  }

  .hero-brand strong {
    font-size: 0.9rem;
  }

  .hero-brand small {
    display: none;
  }

  .hero-register {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .hero-content {
    position: relative;
    width: min(100% - 28px, 540px);
    max-height: 100%;
    transform: none;
    padding: 18px 0;
    color: #082247;
  }

  .hero-panel {
    max-height: calc(100svh - 176px);
    padding: 18px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    scrollbar-width: thin;
  }

  .hero-panel::-webkit-scrollbar {
    width: 6px;
  }

  .hero-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 75, 147, 0.35);
    border-radius: 999px;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(1.45rem, 8vw, 2.35rem);
    line-height: 1.06;
  }

  .hero-copy,
  .hero-note {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero .primary-button,
  .hero .secondary-button,
  .hero-form button {
    width: 100%;
    min-height: 42px;
    font-size: 0.9rem;
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-mini-grid article {
    min-height: auto;
    padding: 9px 10px;
  }

  .hero-list {
    gap: 6px;
  }

  .hero-list li {
    padding: 7px 9px;
  }

  .hero-form {
    grid-template-columns: 1fr;
  }

  .hero-form input,
  .hero-form select {
    min-height: 42px;
  }

  .hero-copy-block {
    max-width: 560px;
  }

  .hero .eyebrow {
    color: var(--deep-blue);
    font-size: 0.7rem;
  }

  h1 {
    color: #082247;
    font-size: clamp(1.1rem, 6vw, 2.1rem);
  }

  .hero-copy {
    color: rgba(8, 34, 71, 0.78);
    font-size: clamp(0.66rem, 3vw, 1rem);
  }

  .hero .secondary-button {
    color: var(--deep-blue);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 75, 147, 0.28);
  }

  .hero-page-footer {
    min-height: 76px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(3, 31, 66, 0.92);
    font-size: 0.72rem;
  }

  .hero-page-footer p {
    display: none;
  }

  .hero-page-footer nav {
    justify-content: center;
    gap: 14px;
  }

  .hero-progress button {
    width: 9px;
    height: 9px;
  }

  .hero-progress button.active {
    width: 26px;
  }

  .signal-strip,
  .program-grid,
  .curriculum-list {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

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

  .webinar-shell {
    width: min(100% - 28px, 560px);
    padding: 24px 0 42px;
  }

  .webinar-hero,
  .webinar-register,
  .webinar-session {
    padding: 20px;
  }

  .webinar-hero h1 {
    font-size: clamp(2.1rem, 13vw, 3.25rem);
  }

  .webinar-register h2 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .webinar-meta span,
  .webinar-session button,
  .webinar-form button {
    width: 100%;
    justify-content: center;
  }

  .webinar-register {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: grid;
  }

  .check-item {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .check-item small {
    grid-column: 2;
  }

  .enrollment-progress {
    grid-template-columns: 1fr;
  }

  .document-upload-form,
  .document-upload-head,
  .document-upload-row,
  .enrollment-document-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .enrollment-document-actions {
    justify-content: flex-start;
  }
}

.portal-login-hero #portal-email-btn,
.portal-login-hero #portal-otp-btn,
.portal-login-hero .portal-login-back,
.portal-login-hero #portal-email-btn:hover,
.portal-login-hero #portal-otp-btn:hover,
.portal-login-hero .portal-login-back:hover,
.portal-login-hero #portal-email-btn:focus,
.portal-login-hero #portal-otp-btn:focus,
.portal-login-hero .portal-login-back:focus,
.portal-login-hero #portal-email-btn:active,
.portal-login-hero #portal-otp-btn:active,
.portal-login-hero .portal-login-back:active {
  color: var(--white) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.055) !important;
  background-color: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px rgba(2, 10, 24, 0.2) !important;
}

.portal-login-hero .portal-login-back,
.portal-login-hero .portal-login-back:hover,
.portal-login-hero .portal-login-back:focus,
.portal-login-hero .portal-login-back:active {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}
