:root {
  --ink: #122033;
  --ink-2: #314159;
  --muted: #6c788b;
  --line: #dfe5ec;
  --line-soft: #edf1f5;
  --paper: #ffffff;
  --surface: #f4f7fa;
  --surface-2: #eaf0f5;
  --navy: #0b1f33;
  --navy-2: #07131f;
  --navy-3: #15344d;
  --emerald: #16a879;
  --emerald-dark: #0d7958;
  --emerald-soft: #e6f8f1;
  --amber: #d89018;
  --amber-soft: #fff5df;
  --red: #ce3d55;
  --red-soft: #fdecef;
  --blue: #2c6ed5;
  --blue-soft: #eaf2ff;
  --shadow-sm: 0 4px 14px rgba(21, 37, 58, 0.06);
  --shadow-md: 0 16px 50px rgba(17, 34, 55, 0.1);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --sidebar-width: 278px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.sidebar-active { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 5px;
  color: var(--emerald-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.text-danger { color: var(--red); }
.text-success { color: var(--emerald-dark); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Buttons */
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(44, 110, 213, .22); outline-offset: 2px; }
.button-primary { color: white; background: var(--emerald); box-shadow: 0 8px 24px rgba(22, 168, 121, .2); }
.button-primary:hover { background: var(--emerald-dark); }
.button-dark { color: white; background: var(--navy); }
.button-dark:hover { background: var(--navy-3); }
.button-secondary { color: var(--ink); background: white; border-color: var(--line); }
.button-secondary:hover { border-color: #b9c4d1; background: #fafbfd; }
.button-danger { color: var(--red); background: var(--red-soft); border-color: #f8ccd4; }
.button-success { color: var(--emerald-dark); background: var(--emerald-soft); border-color: #bcebd9; }
.button-ghost { color: var(--ink-2); background: transparent; border-color: var(--line); }
.button-sm { min-height: 36px; padding: 8px 13px; border-radius: 8px; font-size: 13px; }
.button-lg { min-height: 52px; padding: 14px 23px; font-size: 16px; }
.button-block { width: 100%; }
.button[disabled], .button.disabled { opacity: .55; pointer-events: none; transform: none; box-shadow: none; }

/* Brand & public nav */
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--navy);
  background: #49d3a0;
  border-radius: 11px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.08em;
}
.brand-copy { display: grid; line-height: 1.18; }
.brand-copy strong { font-size: 14px; letter-spacing: .05em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.brand-inverse { color: white; }
.brand-inverse .brand-copy small { color: #9eb0c1; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(223, 229, 236, .85);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(15px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 24px; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.site-nav > a:not(.button):hover { color: var(--emerald-dark); }
.nav-toggle { display: none; padding: 7px 10px; background: white; border: 1px solid var(--line); border-radius: 8px; }

/* Public home */
.public-page { background: white; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 76px;
  color: white;
  background:
    linear-gradient(115deg, rgba(7, 19, 31, .98), rgba(11, 31, 51, .93)),
    radial-gradient(circle at 70% 20%, rgba(73, 211, 160, .24), transparent 36%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.hero-copy h1 { margin: 18px 0 20px; max-width: 720px; font-size: clamp(42px, 6vw, 74px); line-height: .99; letter-spacing: -.055em; }
.hero-copy h1 span { color: #69e4b6; }
.hero-copy > p { max-width: 650px; margin: 0; color: #c8d4df; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .button-secondary { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.hero .button-secondary:hover { background: rgba(255,255,255,.14); }
.hero-note { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: #9fb0bf; font-size: 13px; }
.hero-note span::before { content: "✓"; margin-right: 7px; color: #69e4b6; font-weight: 800; }
.hero-panel {
  position: relative;
  padding: 28px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-panel-head span { color: #9fb0bf; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; }
.hero-panel-head strong { color: #69e4b6; font-size: 13px; }
.hero-panel h2 { margin: 24px 0 6px; font-size: 26px; }
.hero-panel > p { margin: 0; color: #aebdca; }
.deadline-block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.deadline-item { padding: 14px; background: rgba(4, 13, 22, .35); border-radius: 12px; }
.deadline-item span { display: block; color: #8fa4b7; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.deadline-item strong { display: block; margin-top: 4px; color: white; font-size: 15px; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #69e4b6; font-size: 12px; font-weight: 750; }
.live-indicator i, .operations-label i { width: 7px; height: 7px; background: #49d3a0; border-radius: 50%; box-shadow: 0 0 0 5px rgba(73,211,160,.12); }
.stat-strip { position: relative; margin-top: -30px; z-index: 2; }
.stat-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }
.stat-strip-item { padding: 23px 26px; border-right: 1px solid var(--line); }
.stat-strip-item:last-child { border-right: 0; }
.stat-strip-item strong { display: block; color: var(--navy); font-size: 27px; line-height: 1.1; }
.stat-strip-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.section { padding: 88px 0; }
.section-soft { background: var(--surface); }
.section-dark { color: white; background: var(--navy); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-head > div { max-width: 680px; }
.section-head h2 { margin: 8px 0 10px; color: var(--navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -.04em; }
.section-dark .section-head h2 { color: white; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.section-dark .section-head p { color: #aebdca; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card { position: relative; min-height: 245px; padding: 26px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.program-card::after { content: attr(data-code); position: absolute; right: 18px; bottom: -12px; color: #eef2f6; font-size: 76px; font-weight: 900; letter-spacing: -.08em; pointer-events: none; }
.program-card .program-code { display: inline-block; padding: 4px 8px; color: var(--emerald-dark); background: var(--emerald-soft); border-radius: 6px; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.program-card h3 { position: relative; z-index: 1; margin: 18px 0 10px; color: var(--navy); font-size: 21px; line-height: 1.25; }
.program-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); }
.program-card footer { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 12px; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: process; }
.process-card { position: relative; padding: 25px 22px 25px 0; border-top: 1px solid #385067; }
.process-card:not(:last-child)::after { content: ""; position: absolute; top: -3px; right: 18px; width: 6px; height: 6px; background: #49d3a0; border-radius: 50%; }
.process-number { display: grid; width: 36px; height: 36px; place-items: center; margin-top: -19px; color: var(--navy); background: #49d3a0; border-radius: 50%; font-size: 12px; font-weight: 900; }
.process-card h3 { margin: 18px 0 7px; font-size: 16px; }
.process-card p { margin: 0; color: #9fb0bf; font-size: 13px; }
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.schedule-card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.schedule-card.featured { color: white; background: var(--navy); border-color: var(--navy); }
.schedule-card .label { color: var(--emerald-dark); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.schedule-card.featured .label { color: #69e4b6; }
.schedule-card h3 { margin: 8px 0 22px; font-size: 24px; }
.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.schedule-card.featured .schedule-list li { border-color: rgba(255,255,255,.12); }
.schedule-list span { color: var(--muted); }
.schedule-card.featured .schedule-list span { color: #aebdca; }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 45px; color: white; background: linear-gradient(120deg, var(--navy), #123c52); border-radius: 24px; }
.cta-band h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.035em; }
.cta-band p { margin: 0; color: #b9c8d4; }

/* Auth */
.auth-section { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: 56px 0 78px; background: var(--surface); }
.auth-grid { display: grid; grid-template-columns: 1fr 500px; gap: 70px; align-items: center; }
.auth-context { padding: 30px; }
.auth-context h1 { margin: 14px 0 14px; color: var(--navy); font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.05em; }
.auth-context > p { max-width: 600px; color: var(--muted); font-size: 17px; }
.auth-points { display: grid; gap: 12px; margin-top: 28px; }
.auth-point { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.auth-point span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--emerald-dark); background: var(--emerald-soft); border-radius: 8px; font-size: 12px; font-weight: 900; }
.auth-card { padding: 34px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); }
.auth-card-head { margin-bottom: 24px; }
.auth-card-head h2 { margin: 0 0 5px; color: var(--navy); font-size: 26px; }
.auth-card-head p { margin: 0; color: var(--muted); }
.auth-footer { margin-top: 20px; color: var(--muted); text-align: center; font-size: 13px; }
.auth-footer a { color: var(--emerald-dark); font-weight: 750; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--ink-2); font-size: 13px; font-weight: 750; }
.form-label small { color: var(--muted); font-weight: 500; }
.required::after { content: " *"; color: var(--red); }
.form-control,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd7e1;
  border-radius: 9px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-control:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44, 110, 213, .12); }
.form-control[readonly], .form-select[disabled], .form-textarea[readonly] { color: #687589; background: #f4f6f8; cursor: not-allowed; }
.form-textarea { min-height: 112px; resize: vertical; }
.form-help { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.form-error { display: block; margin-top: 5px; color: var(--red); font-size: 12px; }
.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 78px; }
.input-action { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); padding: 5px 8px; color: var(--blue); background: transparent; border: 0; font-size: 11px; font-weight: 750; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-2); font-size: 13px; }
.checkbox-row input { margin-top: 5px; accent-color: var(--emerald); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.filter-bar { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(150px, .6fr)) auto; gap: 10px; align-items: end; }
.search-wrap { position: relative; }
.search-wrap .form-control { padding-left: 38px; }
.search-wrap::before { content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 19px; z-index: 1; }
.file-picker { position: relative; display: grid; place-items: center; min-height: 120px; padding: 20px; color: var(--muted); background: #fafbfd; border: 1px dashed #bcc8d5; border-radius: 12px; text-align: center; transition: border-color .15s, background .15s; }
.file-picker:hover { color: var(--ink-2); background: var(--emerald-soft); border-color: var(--emerald); }
.file-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-picker strong { display: block; margin-bottom: 4px; color: var(--ink); }
.file-name { display: block; margin-top: 7px; font-size: 11px; }

/* Alerts */
.toast-stack { position: fixed; top: 86px; right: 22px; z-index: 999; display: grid; gap: 9px; width: min(390px, calc(100% - 40px)); }
.toast, .alert { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-sm); }
.toast button, .alert button { flex: 0 0 auto; padding: 0; color: inherit; background: none; border: 0; font-size: 20px; line-height: 1; opacity: .55; }
.toast-success, .alert-success { color: var(--emerald-dark); background: var(--emerald-soft); border-color: #bcebd9; }
.toast-warning, .alert-warning { color: #875807; background: var(--amber-soft); border-color: #f1d694; }
.toast-danger, .alert-danger, .toast-error, .alert-error { color: #9f2639; background: var(--red-soft); border-color: #f2c4cc; }
.toast-info, .alert-info { color: #245aa9; background: var(--blue-soft); border-color: #c8dbfa; }
.content-flashes { display: grid; gap: 10px; padding: 20px 28px 0; }

/* Portal layout */
.portal-page { min-height: 100vh; background: #f2f5f8; }
.portal-shell { display: flex; min-height: 100vh; }
.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 22px 18px 18px;
  color: white;
  background: var(--navy);
  overflow-y: auto;
}
.admin-sidebar { background: var(--navy-2); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 7px 18px; }
.sidebar-close { display: none; color: white; background: transparent; border: 0; font-size: 25px; }
.applicant-id-card { margin: 5px 2px 18px; padding: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.applicant-id-card span, .applicant-id-card small { display: block; color: #90a4b6; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.applicant-id-card strong { display: block; margin: 4px 0; color: #69e4b6; font-size: 16px; letter-spacing: .05em; }
.operations-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 5px 2px 18px; padding: 13px 14px; color: #91a4b6; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.operations-label strong { display: flex; align-items: center; gap: 8px; color: #69e4b6; font-size: 10px; }
.sidebar-nav { display: grid; gap: 3px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 9px 11px; color: #afbecb; border-radius: 9px; font-size: 13px; font-weight: 650; transition: .15s ease; }
.sidebar-nav a:hover { color: white; background: rgba(255,255,255,.055); }
.sidebar-nav a.active { color: white; background: rgba(73,211,160,.14); box-shadow: inset 3px 0 #49d3a0; }
.nav-index { color: #60768a; font-size: 10px; font-variant-numeric: tabular-nums; }
.sidebar-nav a.active .nav-index { color: #69e4b6; }
.sidebar-footer { display: grid; gap: 4px; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-footer a { padding: 7px 10px; color: #8096a9; font-size: 12px; }
.sidebar-footer a:hover { color: white; }
.portal-main { display: flex; flex-direction: column; width: calc(100% - var(--sidebar-width)); min-height: 100vh; margin-left: var(--sidebar-width); }
.portal-topbar { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; padding: 14px 28px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.portal-topbar h1 { margin: 0; color: var(--navy); font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.sidebar-open { display: none; flex: 0 0 auto; width: 38px; height: 38px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 9px; }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; color: white; background: var(--navy); border-radius: 10px; font-size: 13px; font-weight: 850; }
.user-chip > div { display: grid; line-height: 1.2; min-width: 0; }
.user-chip strong { max-width: 190px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { max-width: 190px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-meta { display: flex; align-items: center; gap: 22px; }
.system-date { color: var(--muted); font-size: 12px; }
.portal-content { flex: 1; padding: 28px; }
.portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.sidebar-backdrop { display: none; }

/* Content cards */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.content-grid-wide { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; }
.stack { display: grid; gap: 18px; }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px; border-bottom: 1px solid var(--line-soft); }
.card-header > div { min-width: 0; }
.card-header h2, .card-header h3 { margin: 0; color: var(--navy); font-size: 16px; letter-spacing: -.015em; }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 21px; }
.card-body.flush { padding: 0; }
.card-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 21px; border-top: 1px solid var(--line-soft); background: #fcfdfe; border-radius: 0 0 14px 14px; }
.section-card-title { display: flex; align-items: center; gap: 10px; }
.section-card-title .number { display: grid; width: 28px; height: 28px; place-items: center; color: var(--emerald-dark); background: var(--emerald-soft); border-radius: 7px; font-size: 10px; font-weight: 900; }
.info-panel { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.info-panel h3 { margin: 0 0 10px; color: var(--navy); font-size: 14px; }
.info-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.callout { padding: 16px 17px; color: var(--ink-2); background: var(--blue-soft); border: 1px solid #d3e2fb; border-left: 4px solid var(--blue); border-radius: 10px; }
.callout.warning { background: var(--amber-soft); border-color: #efd898; border-left-color: var(--amber); }
.callout.success { background: var(--emerald-soft); border-color: #bcebd9; border-left-color: var(--emerald); }
.callout.danger { background: var(--red-soft); border-color: #f3c6ce; border-left-color: var(--red); }
.callout strong { display: block; margin-bottom: 3px; color: var(--ink); }
.callout p { margin: 0; font-size: 12px; }

/* Dashboards */
.status-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px; overflow: hidden; color: white; background: var(--navy); border-radius: 16px; box-shadow: var(--shadow-md); }
.status-banner::after { content: attr(data-status); position: absolute; right: 140px; bottom: -31px; color: rgba(255,255,255,.045); font-size: 100px; font-weight: 900; letter-spacing: -.06em; text-transform: uppercase; }
.status-banner > * { position: relative; z-index: 1; }
.status-banner h2 { margin: 5px 0 7px; font-size: 25px; }
.status-banner p { margin: 0; color: #b7c6d2; }
.status-banner .status-meta { min-width: 215px; padding: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.status-meta span { display: block; color: #8ea4b7; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.status-meta strong { display: block; margin-top: 4px; color: #69e4b6; font-size: 16px; }
.progress-block { margin-top: 18px; }
.progress-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; font-size: 12px; }
.progress-head strong { color: var(--navy); }
.progress-track { height: 8px; overflow: hidden; background: #e5eaf0; border-radius: 999px; }
.progress-track > span { display: block; height: 100%; background: var(--emerald); border-radius: inherit; transition: width .3s ease; }
.checklist { display: grid; gap: 0; }
.checklist-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.checklist-item:last-child { border-bottom: 0; }
.checklist-main { display: flex; align-items: center; gap: 12px; }
.check-icon { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 850; }
.check-icon.complete { color: white; background: var(--emerald); border-color: var(--emerald); }
.checklist-main strong { display: block; font-size: 13px; }
.checklist-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { position: relative; padding: 19px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.metric-card .metric-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.metric-card .metric-value { display: block; margin-top: 11px; color: var(--navy); font-size: 29px; font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.metric-card .metric-note { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.metric-spark { position: absolute; right: -8px; bottom: -15px; width: 70px; height: 70px; border: 13px solid var(--emerald-soft); border-radius: 50%; }
.metric-card.warning .metric-spark { border-color: var(--amber-soft); }
.metric-card.danger .metric-spark { border-color: var(--red-soft); }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-action { display: block; padding: 16px; background: #fafbfd; border: 1px solid var(--line); border-radius: 11px; }
.quick-action:hover { border-color: #bac6d2; background: white; }
.quick-action span { display: block; color: var(--emerald-dark); font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.quick-action strong { display: block; margin-top: 4px; color: var(--navy); font-size: 13px; }

/* Badges / detail */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge-success { color: var(--emerald-dark); background: var(--emerald-soft); border-color: #bcebd9; }
.badge-warning { color: #8a5c0c; background: var(--amber-soft); border-color: #efd898; }
.badge-danger { color: #a52e41; background: var(--red-soft); border-color: #f2c4cc; }
.badge-neutral { color: #5e6b7c; background: #eef1f4; border-color: #dce2e8; }
.badge-info { color: #245aa9; background: var(--blue-soft); border-color: #c8dbfa; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
.detail-row { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.detail-row span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.detail-row strong { display: block; margin-top: 3px; color: var(--ink); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.timeline { display: grid; }
.timeline-item { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding-bottom: 19px; }
.timeline-item::before { content: ""; position: absolute; top: 16px; bottom: 0; left: 7px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 15px; height: 15px; margin-top: 2px; background: white; border: 4px solid var(--emerald); border-radius: 50%; }
.timeline-content strong { display: block; color: var(--ink); font-size: 12px; }
.timeline-content span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: white; }
.table th { padding: 11px 14px; color: var(--muted); background: #fafbfd; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 13px 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); font-size: 12px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfdfd; }
.table .primary-cell strong { display: block; color: var(--navy); font-size: 12px; }
.table .primary-cell small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.table-actions { display: flex; align-items: center; gap: 6px; }
.icon-button { display: inline-grid; width: 31px; height: 31px; place-items: center; color: var(--ink-2); background: white; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; font-weight: 800; }
.icon-button:hover { color: var(--emerald-dark); border-color: #a9dac7; }
.empty-state { padding: 48px 24px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 15px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 20px; }
.page-link { display: grid; min-width: 34px; height: 34px; padding: 0 8px; place-items: center; color: var(--ink-2); background: white; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; }
.page-link.active { color: white; background: var(--navy); border-color: var(--navy); }
.page-ellipsis { padding: 0 4px; color: var(--muted); }

/* Documents */
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.document-card { padding: 17px; background: #fafbfd; border: 1px solid var(--line); border-radius: 12px; }
.document-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.document-card h3 { margin: 0; color: var(--navy); font-size: 13px; }
.document-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.document-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; background: white; border: 1px solid var(--line-soft); border-radius: 8px; }
.document-file span { min-width: 0; overflow: hidden; color: var(--ink-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

/* Payment / result */
.invoice-box { padding: 22px; color: white; background: linear-gradient(125deg, var(--navy), #164059); border-radius: 15px; }
.invoice-box-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.invoice-box span { display: block; color: #9eb2c2; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.invoice-box strong { display: block; margin-top: 4px; color: #69e4b6; font-size: 18px; }
.invoice-total { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.invoice-total strong { color: white; font-size: 30px; letter-spacing: -.04em; }
.bank-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.bank-card span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.bank-card strong { display: block; margin: 4px 0; color: var(--navy); font-size: 20px; }
.result-card { position: relative; padding: 36px; overflow: hidden; color: white; background: var(--navy); border-radius: 18px; }
.result-card::after { content: "PMB"; position: absolute; right: -16px; bottom: -50px; color: rgba(255,255,255,.05); font-size: 130px; font-weight: 900; }
.result-card > * { position: relative; z-index: 1; }
.result-card h2 { margin: 10px 0 8px; font-size: 32px; }
.result-card p { max-width: 650px; margin: 0; color: #b6c6d3; }
.result-program { display: inline-block; margin-top: 24px; padding: 13px 17px; color: var(--navy); background: #69e4b6; border-radius: 10px; font-weight: 850; }
.announcement-list { display: grid; gap: 12px; }
.announcement-item { padding: 18px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--emerald); border-radius: 11px; }
.announcement-item h3 { margin: 0 0 5px; color: var(--navy); font-size: 15px; }
.announcement-item p { margin: 0; color: var(--muted); font-size: 12px; }
.announcement-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 10px; }

/* Admin charts without libraries */
.bar-chart { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 38px; gap: 12px; align-items: center; }
.bar-row label { color: var(--ink-2); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; overflow: hidden; background: #edf1f4; border-radius: 999px; }
.bar-track span { display: block; height: 100%; min-width: 2px; background: var(--emerald); border-radius: inherit; }
.bar-row strong { color: var(--navy); font-size: 11px; text-align: right; }
.status-distribution { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.status-tile { padding: 14px; background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; }
.status-tile span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.status-tile strong { display: block; margin-top: 5px; color: var(--navy); font-size: 20px; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(4, 13, 22, .65); }
.modal.open { display: flex; }
.modal-dialog { width: min(100%, 620px); max-height: calc(100vh - 48px); overflow-y: auto; background: white; border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,.28); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; color: var(--navy); font-size: 17px; }
.modal-close { width: 32px; height: 32px; color: var(--muted); background: var(--surface); border: 0; border-radius: 8px; font-size: 20px; }
.modal-body { padding: 21px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 21px; border-top: 1px solid var(--line); }

/* Admin login */
.admin-login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; color: white; background: var(--navy-2); }
.admin-login-shell { width: min(100%, 440px); }
.admin-login-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.admin-login-card { padding: 31px; color: var(--ink); background: white; border-radius: 18px; box-shadow: 0 34px 80px rgba(0,0,0,.3); }
.admin-login-card h1 { margin: 0 0 6px; color: var(--navy); font-size: 25px; }
.admin-login-card > p { margin: 0 0 23px; color: var(--muted); }
.admin-login-note { margin-top: 17px; color: #7790a6; font-size: 11px; text-align: center; }

/* Print */
.print-only { display: none; }
.registration-card { max-width: 840px; margin: 30px auto; padding: 34px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.registration-card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--navy); }
.registration-card-title { text-align: right; }
.registration-card-title h1 { margin: 0; font-size: 22px; }
.registration-card-title p { margin: 3px 0 0; color: var(--muted); }
.registration-number { margin: 26px 0; padding: 18px; color: white; background: var(--navy); border-radius: 11px; text-align: center; }
.registration-number span { display: block; color: #9eb2c2; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.registration-number strong { display: block; margin-top: 3px; color: #69e4b6; font-size: 25px; letter-spacing: .1em; }

/* Footer */
.site-footer { padding: 52px 0 24px; color: #a9b9c6; background: var(--navy-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.brand-footer { margin-bottom: 15px; color: white; }
.site-footer h3 { margin: 0 0 10px; color: white; font-size: 13px; }
.site-footer p { margin: 0; font-size: 13px; }
.site-footer a:hover { color: #69e4b6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); color: #71889b; font-size: 11px; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid { gap: 42px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .content-grid-wide { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 278px; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 20px 20px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 0; }
  .site-nav .button { margin-top: 8px; }
  .nav-toggle { display: block; }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .stat-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-item:nth-child(2) { border-right: 0; }
  .stat-strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .auth-grid { grid-template-columns: 1fr; gap: 20px; }
  .auth-context { padding: 0; }
  .auth-card { max-width: 600px; }
  .portal-sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.22); }
  .portal-sidebar.open { transform: translateX(0); }
  .sidebar-close, .sidebar-open { display: grid; place-items: center; }
  .portal-main { width: 100%; margin-left: 0; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(5,14,23,.55); }
  .sidebar-backdrop.open { display: block; }
  .portal-topbar { justify-content: flex-start; }
  .portal-topbar .user-chip, .topbar-meta .system-date { margin-left: auto; }
  .topbar-meta { margin-left: auto; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 64px; }
  .brand-copy small { display: none; }
  .hero { padding: 52px 0 62px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy > p { font-size: 16px; }
  .hero-panel { padding: 21px; }
  .stat-strip { margin-top: -22px; }
  .stat-strip-item { padding: 18px; }
  .stat-strip-item strong { font-size: 23px; }
  .section { padding: 65px 0; }
  .section-head { display: block; }
  .program-grid, .schedule-grid, .footer-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-card { padding-left: 52px; border-top: 0; border-left: 1px solid #385067; }
  .process-number { position: absolute; left: -18px; top: 28px; margin: 0; }
  .process-card:not(:last-child)::after { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 30px; }
  .cta-band h2 { font-size: 27px; }
  .footer-bottom { display: grid; }
  .auth-section { padding: 30px 0 55px; }
  .auth-context h1 { font-size: 42px; }
  .auth-card { padding: 24px; }
  .form-grid, .form-grid-3, .document-grid { grid-template-columns: 1fr; }
  .portal-topbar { min-height: 72px; padding: 12px 16px; }
  .portal-topbar h1 { font-size: 18px; }
  .portal-topbar .eyebrow { font-size: 9px; }
  .portal-topbar .user-chip > div { display: none; }
  .admin-topbar .system-date { display: none; }
  .portal-content { padding: 18px 14px 24px; }
  .content-flashes { padding: 14px 14px 0; }
  .portal-footer { padding: 16px 14px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 15px; }
  .metric-card .metric-value { font-size: 24px; }
  .status-banner { grid-template-columns: 1fr; padding: 22px; }
  .status-banner .status-meta { min-width: 0; }
  .quick-actions { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .card-header { align-items: flex-start; padding: 16px; }
  .card-body { padding: 16px; }
  .card-footer { padding: 14px 16px; }
  .status-distribution { grid-template-columns: repeat(2, 1fr); }
  .bar-row { grid-template-columns: 95px minmax(0,1fr) 30px; gap: 8px; }

  .table[data-responsive-table] thead { display: none; }
  .table[data-responsive-table], .table[data-responsive-table] tbody, .table[data-responsive-table] tr, .table[data-responsive-table] td { display: block; width: 100%; }
  .table[data-responsive-table] tr { padding: 12px; border-bottom: 1px solid var(--line); }
  .table[data-responsive-table] td { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 7px 0; border: 0; }
  .table[data-responsive-table] td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .table[data-responsive-table] .table-actions { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .hero-copy h1 { font-size: 38px; }
  .hero-actions .button { width: 100%; }
  .deadline-block { grid-template-columns: 1fr; }
  .stat-strip-grid, .metric-grid { grid-template-columns: 1fr; }
  .stat-strip-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-strip-item:last-child { border-bottom: 0; }
  .status-distribution { grid-template-columns: 1fr; }
  .portal-footer { display: grid; }
}

@media print {
  body { background: white !important; }
  .site-header, .site-footer, .portal-sidebar, .portal-topbar, .portal-footer, .no-print, .toast-stack, .content-flashes { display: none !important; }
  .portal-main { width: 100% !important; margin: 0 !important; }
  .portal-content { padding: 0 !important; }
  .print-only { display: block; }
  .registration-card { margin: 0; border: 0; box-shadow: none; }
}
