:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #0d1220;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f6f8ff;
  --muted: #aeb8d0;
  --muted-strong: #d7dded;
  --blue: #62a8ff;
  --purple: #a66cff;
  --teal: #35d6bd;
  --gold: #f2c86b;
  --danger: #ff7c93;
  --success: #48d58f;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --header-height: 74px;
  --grid-line: rgba(255, 255, 255, 0.025);
  --page-gradient: linear-gradient(135deg, #05070d 0%, #071526 42%, #121022 72%, #05070d 100%);
  --page-glow:
    linear-gradient(110deg, rgba(98, 168, 255, 0.16), transparent 32%),
    linear-gradient(290deg, rgba(166, 108, 255, 0.16), transparent 36%),
    linear-gradient(0deg, rgba(53, 214, 189, 0.08), transparent 45%);
  --header-bg: rgba(5, 7, 13, 0.72);
  --control-bg: rgba(255, 255, 255, 0.06);
  --hover-bg: rgba(255, 255, 255, 0.08);
  --soft-panel: rgba(5, 7, 13, 0.62);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fc;
  --bg-soft: #eaf0f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(16, 24, 40, 0.13);
  --text: #101827;
  --muted: #627086;
  --muted-strong: #2f3a4f;
  --blue: #2563eb;
  --purple: #7c3aed;
  --teal: #0f9f8f;
  --gold: #b7791f;
  --danger: #d64261;
  --success: #168a56;
  --shadow: 0 18px 48px rgba(33, 48, 75, 0.14);
  --grid-line: rgba(16, 24, 40, 0.045);
  --page-gradient: linear-gradient(135deg, #f7fbff 0%, #eef5ff 38%, #f7f3ff 72%, #ffffff 100%);
  --page-glow:
    linear-gradient(110deg, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(290deg, rgba(124, 58, 237, 0.11), transparent 38%),
    linear-gradient(0deg, rgba(15, 159, 143, 0.08), transparent 46%);
  --header-bg: rgba(255, 255, 255, 0.74);
  --control-bg: rgba(255, 255, 255, 0.72);
  --hover-bg: rgba(16, 24, 40, 0.06);
  --soft-panel: rgba(255, 255, 255, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--page-gradient);
  background-size: 56px 56px, 56px 56px, auto;
  overflow-x: hidden;
  transition: color 220ms ease, background 320ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--page-glow);
  transition: background 320ms ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 180;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(98, 168, 255, 0.16), transparent 34%),
    rgba(5, 7, 13, 0.08);
  backdrop-filter: blur(0);
  transition: opacity 260ms ease, backdrop-filter 260ms ease;
}

body.is-page-transitioning::after {
  opacity: 1;
  backdrop-filter: blur(5px);
}

.site-header,
main,
.site-footer {
  transition: opacity 260ms ease, filter 260ms ease, transform 260ms ease;
}

body.is-page-transitioning .site-header,
body.is-page-transitioning main,
body.is-page-transitioning .site-footer {
  opacity: 0.45;
  filter: blur(5px);
  transform: scale(0.992);
}

body.is-page-transitioning main {
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease, opacity 260ms ease, filter 260ms ease, transform 260ms ease;
}

.site-header .shell {
  width: min(1360px, calc(100% - 36px));
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 230px;
  padding: 11px 15px 11px 19px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.1), rgba(53, 214, 189, 0.06)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.brand::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--blue), var(--purple));
  box-shadow: 0 0 18px rgba(98, 168, 255, 0.42);
}

.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 38%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.brand-text {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-family: "SF Pro Display", "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 0;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 10px 30px rgba(98, 168, 255, 0.22);
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(98, 168, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.16), rgba(53, 214, 189, 0.09)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 34px rgba(3, 8, 17, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand:hover::after,
.brand:focus-visible::after {
  transform: translateX(120%);
}

:root[data-theme="light"] .brand {
  border-color: rgba(22, 35, 58, 0.1);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(22, 35, 58, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

:root[data-theme="light"] .brand:hover,
:root[data-theme="light"] .brand:focus-visible {
  border-color: rgba(37, 99, 235, 0.26);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.1)),
    rgba(255, 255, 255, 0.88);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  padding: 10px 9px;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text);
  background: var(--hover-bg);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.admin-link {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.admin-link:hover,
.admin-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
  background: var(--hover-bg);
}

.profile-link {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  color: var(--muted-strong);
  border-color: var(--border);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.12), rgba(53, 214, 189, 0.08)),
    var(--control-bg);
}

.profile-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-link:hover,
.profile-link:focus-visible {
  border-color: rgba(98, 168, 255, 0.4);
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--control-bg);
}

.lang-btn {
  min-width: 42px;
  padding: 8px 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease;
}

.lang-btn.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(98, 168, 255, 0.34), rgba(166, 108, 255, 0.3));
}

.theme-toggle {
  display: inline-flex;
  width: 58px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--control-bg);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(98, 168, 255, 0.42);
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.2), rgba(166, 108, 255, 0.16)),
    rgba(255, 255, 255, 0.06);
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, background 220ms ease;
}

:root[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(20px);
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.theme-sun,
.theme-moon {
  position: absolute;
  top: 8px;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.theme-sun {
  left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.theme-moon {
  right: 8px;
  border-radius: 50%;
  box-shadow: inset -4px 0 0 rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .theme-sun {
  border-color: rgba(16, 24, 40, 0.54);
}

:root[data-theme="light"] .theme-moon {
  box-shadow: inset -4px 0 0 rgba(16, 24, 40, 0.44);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  line-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--control-bg);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--text);
  border-radius: 4px;
  transform-origin: center;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.admission-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  min-height: calc(100svh - var(--header-height));
  padding: 112px 0 82px;
  overflow: visible;
}

.spotlight-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.spotlight-photo-stage {
  position: relative;
  display: grid;
  width: min(360px, 100%);
  height: auto;
  margin: 20px 0 0;
  place-items: center;
}

.spotlight-photo-wrap {
  position: relative;
  z-index: 2;
  width: min(270px, 54vw);
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(3, 8, 17, 0.42);
}

.spotlight-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.spotlight-center h1 {
  position: relative;
  z-index: 4;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
}

.spotlight-center p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.scholarship-meter {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 8px;
  min-width: min(100%, 500px);
  overflow: hidden;
  margin: 30px 0 0;
  padding: 24px 28px 22px;
  border: 1px solid rgba(98, 168, 255, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, rgba(98, 168, 255, 0.24), rgba(53, 214, 189, 0.16) 52%, rgba(166, 108, 255, 0.18)),
    rgba(5, 7, 13, 0.76);
  background-size: 220% 100%, auto, auto;
  box-shadow:
    0 26px 70px rgba(3, 8, 17, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 0 46px rgba(98, 168, 255, 0.16);
  animation: scholarship-shine 5.8s ease-in-out infinite;
  backdrop-filter: blur(20px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.scholarship-meter::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--purple));
}

.scholarship-meter::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.scholarship-meter:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 214, 189, 0.48);
  box-shadow:
    0 30px 80px rgba(3, 8, 17, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.045) inset,
    0 0 58px rgba(53, 214, 189, 0.2);
}

.scholarship-meter span,
.scholarship-meter em,
.scholarship-meter small {
  position: relative;
  z-index: 1;
  color: var(--muted-strong);
  font-weight: 800;
}

.scholarship-meter span {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.scholarship-meter strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: transparent;
  background: linear-gradient(120deg, #ffffff, var(--blue) 36%, var(--teal) 68%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.65rem, 6vw, 4.6rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 18px 48px rgba(98, 168, 255, 0.18);
  font-variant-numeric: tabular-nums;
  min-width: 7.2ch;
  will-change: transform, filter;
}

.scholarship-meter strong.is-counting {
  animation: scholarship-number-pop 760ms ease-in-out infinite alternate;
}

.scholarship-meter em {
  display: inline-block;
  width: fit-content;
  min-width: 12.2ch;
  margin: -2px auto 0;
  padding: 8px 13px;
  color: #06101c;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: 0 12px 28px rgba(53, 214, 189, 0.14);
  font-size: clamp(0.92rem, 2vw, 1.14rem);
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  text-shadow: none;
  font-variant-numeric: tabular-nums;
  will-change: transform, filter;
}

.scholarship-meter em.is-counting {
  animation: scholarship-number-pop 760ms ease-in-out infinite alternate;
}

.scholarship-meter small {
  max-width: 420px;
  margin: 0 auto;
  color: rgba(215, 221, 237, 0.82);
  line-height: 1.45;
}

.spotlight-universities {
  position: absolute;
  top: 48%;
  z-index: 1;
  width: 330px;
  height: 590px;
  pointer-events: none;
}

.spotlight-left {
  left: -78px;
  transform: translateY(-50%);
}

.spotlight-right {
  right: -78px;
  transform: translateY(-50%);
}

.spotlight-university-badge {
  position: absolute;
  display: grid;
  width: 132px;
  height: 94px;
  overflow: visible;
  place-items: center;
  padding: 6px;
  color: var(--muted-strong);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 850;
  transform: none;
  animation: none;
  will-change: transform;
}

.spotlight-left .spotlight-university-badge:nth-child(1),
.spotlight-right .spotlight-university-badge:nth-child(1) {
  top: 4px;
}

.spotlight-left .spotlight-university-badge:nth-child(2),
.spotlight-right .spotlight-university-badge:nth-child(2) {
  top: 124px;
}

.spotlight-left .spotlight-university-badge:nth-child(3),
.spotlight-right .spotlight-university-badge:nth-child(3) {
  top: 248px;
}

.spotlight-left .spotlight-university-badge:nth-child(4),
.spotlight-right .spotlight-university-badge:nth-child(4) {
  top: 372px;
}

.spotlight-left .spotlight-university-badge:nth-child(5),
.spotlight-right .spotlight-university-badge:nth-child(5) {
  top: 492px;
}

.spotlight-left .spotlight-university-badge:nth-child(1),
.spotlight-left .spotlight-university-badge:nth-child(5) {
  left: 182px;
}

.spotlight-left .spotlight-university-badge:nth-child(2),
.spotlight-left .spotlight-university-badge:nth-child(4) {
  left: 74px;
}

.spotlight-left .spotlight-university-badge:nth-child(3) {
  left: 26px;
}

.spotlight-right .spotlight-university-badge:nth-child(1),
.spotlight-right .spotlight-university-badge:nth-child(5) {
  right: 182px;
}

.spotlight-right .spotlight-university-badge:nth-child(2),
.spotlight-right .spotlight-university-badge:nth-child(4) {
  right: 74px;
}

.spotlight-right .spotlight-university-badge:nth-child(3) {
  right: 26px;
}

.spotlight-mobile-strip {
  display: none;
}

.spotlight-university-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.spotlight-university-badge[data-university="drexel"] .spotlight-university-logo {
  transform: scale(1.18);
}

.spotlight-university-badge[data-university="umn"] .spotlight-university-logo,
.spotlight-university-badge[data-university="rit"] .spotlight-university-logo,
.spotlight-university-badge[data-university="ub"] .spotlight-university-logo,
.spotlight-university-badge[data-university="uc"] .spotlight-university-logo,
.spotlight-university-badge[data-university="pnw"] .spotlight-university-logo,
.spotlight-university-badge[data-university="utd"] .spotlight-university-logo,
.spotlight-university-badge[data-university="utah"] .spotlight-university-logo,
.spotlight-university-badge[data-university="pfw"] .spotlight-university-logo,
.spotlight-university-badge[data-university="iit"] .spotlight-university-logo {
  transform: scale(1);
}

.spotlight-university-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
}

.spotlight-university-fallback[hidden] {
  display: none;
}

:root[data-theme="light"] .scholarship-meter {
  border-color: rgba(15, 159, 143, 0.18);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent),
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 159, 143, 0.12) 52%, rgba(124, 58, 237, 0.12)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 62px rgba(33, 48, 75, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.64) inset,
    0 0 42px rgba(37, 99, 235, 0.12);
}

:root[data-theme="light"] .scholarship-meter strong {
  background: linear-gradient(120deg, #101827, var(--blue) 38%, var(--teal) 72%, #101827);
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme="light"] .scholarship-meter small {
  color: var(--muted);
}

:root[data-theme="light"] .scholarship-meter em {
  color: #101827;
  box-shadow: 0 12px 26px rgba(15, 159, 143, 0.12);
}

:root[data-theme="light"] .spotlight-university-badge {
  background: transparent;
}

:root[data-theme="light"] .spotlight-university-logo {
  filter: drop-shadow(0 10px 18px rgba(33, 48, 75, 0.14));
}

@keyframes spotlight-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes spotlight-orbit {
  0%,
  100% {
    transform: translate(0, -8px);
  }

  25% {
    transform: translate(8px, 0);
  }

  50% {
    transform: translate(0, 8px);
  }

  75% {
    transform: translate(-8px, 0);
  }
}

@keyframes spotlight-orbit-clockwise {
  from {
    transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(0deg - var(--orbit-angle)));
  }

  to {
    transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 360deg)) translateX(var(--orbit-radius)) rotate(calc(0deg - var(--orbit-angle) - 360deg));
  }
}

@keyframes scholarship-shine {
  0%,
  100% {
    background-position: -120% 0, 0 0, 0 0;
  }

  48%,
  58% {
    background-position: 120% 0, 0 0, 0 0;
  }
}

@keyframes scholarship-number-pop {
  from {
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }

  to {
    filter: brightness(1.18);
    transform: translateY(-1px) scale(1.015);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: center;
  justify-items: center;
  padding: 86px 0 72px;
  text-align: center;
}

.hero-content {
  display: grid;
  justify-items: center;
  max-width: 880px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  font-size: 4.25rem;
  line-height: 1;
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(120deg, var(--blue), var(--purple) 48%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #05101a;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 14px 38px rgba(98, 168, 255, 0.22);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.07);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.hero-facts div,
.score-card,
.admission-card,
.document-card,
.review-card,
.activity-card,
.project-card,
.glass-card,
.gallery-card,
.timeline-item,
.graduate-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-facts div {
  padding: 16px;
}

.hero-facts strong {
  display: block;
  font-size: 1.28rem;
}

.hero-facts span,
.profile-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.graduate-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.graduate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(166, 108, 255, 0.2), transparent 44%);
  pointer-events: none;
}

.graduate-card > * {
  position: relative;
}

.portrait-card {
  animation: portraitFloat 7s ease-in-out infinite;
}

.portrait-card:hover {
  transform: translateY(-5px);
  border-color: rgba(98, 168, 255, 0.32);
}

.photo-panel {
  position: relative;
  min-height: clamp(520px, 56vw, 680px);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(53, 214, 189, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(166, 108, 255, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(98, 168, 255, 0.22), rgba(166, 108, 255, 0.18)),
    rgba(3, 8, 17, 0.66);
}

.portrait-panel {
  margin-top: 0;
}

.photo-panel::before {
  content: "";
  position: absolute;
  inset: -38%;
  z-index: 1;
  pointer-events: none;
  background:
    conic-gradient(from 180deg, transparent, rgba(98, 168, 255, 0.22), transparent, rgba(53, 214, 189, 0.18), transparent);
  opacity: 0.34;
  animation: portraitAura 11s linear infinite;
}

.photo-panel img {
  position: absolute;
  inset: 14px;
  z-index: 0;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  object-position: center;
  image-orientation: from-image;
  border-radius: 6px;
  filter: saturate(1.04) contrast(1.03);
}

.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 58%, rgba(5, 7, 13, 0.62)),
    linear-gradient(90deg, rgba(5, 7, 13, 0.18), transparent 18%, transparent 82%, rgba(5, 7, 13, 0.18));
  pointer-events: none;
}

.photo-panel.is-missing img {
  display: none;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.34), rgba(166, 108, 255, 0.3)),
    rgba(3, 8, 17, 0.66);
}

.photo-panel.is-missing .photo-fallback {
  display: grid;
}

.photo-fallback span {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 900;
}

.photo-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
  display: inline-flex;
  padding: 9px 11px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.62);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.portrait-caption p,
.portrait-caption h2 {
  margin: 0;
}

.portrait-caption p,
.portrait-caption span {
  color: var(--muted);
}

.portrait-caption h2 {
  margin-top: 4px;
  font-size: 1.6rem;
}

@keyframes portraitAura {
  to {
    transform: rotate(1turn);
  }
}

@keyframes portraitFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

:root[data-theme="light"] .graduate-card::before {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(124, 58, 237, 0.12), transparent 44%);
}

:root[data-theme="light"] .photo-panel {
  background:
    radial-gradient(circle at top left, rgba(15, 159, 143, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.1)),
    rgba(255, 255, 255, 0.76);
}

:root[data-theme="light"] .photo-panel::after {
  background:
    linear-gradient(180deg, transparent 62%, rgba(245, 248, 252, 0.72)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.28));
}

:root[data-theme="light"] .photo-badge {
  background: rgba(255, 255, 255, 0.76);
}

.terminal-section {
  padding: 0 0 36px;
}

.terminal-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.1), rgba(53, 214, 189, 0.06)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.terminal-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.terminal-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.12;
}

.terminal-copy p {
  margin: 14px 0 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.terminal-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(3, 8, 17, 0.96), rgba(8, 13, 25, 0.96)),
    #05070d;
}

.terminal-toolbar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.terminal-toolbar span:nth-child(2) {
  background: var(--gold);
}

.terminal-toolbar span:nth-child(3) {
  background: var(--success);
}

.terminal-output {
  min-height: 132px;
  max-height: 200px;
  overflow: auto;
  padding: 14px;
  color: #dbeafe;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-line.is-command {
  color: #93c5fd;
}

.terminal-line.is-output {
  color: #6ee7b7;
}

.terminal-line.is-error {
  color: #fca5a5;
}

.terminal-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--teal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-form input {
  min-width: 0;
  color: #f8fbff;
  border: 0;
  outline: 0;
  background: transparent;
}

.terminal-form input::placeholder {
  color: rgba(219, 234, 254, 0.48);
}

.terminal-form button {
  padding: 8px 10px;
  color: #06101c;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
}

.terminal-shortcuts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-shortcuts button {
  padding: 9px 10px;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.terminal-shortcuts button:hover,
.terminal-shortcuts button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(53, 214, 189, 0.36);
  background: rgba(53, 214, 189, 0.08);
}

:root[data-theme="light"] .terminal-card {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 159, 143, 0.06)),
    rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .terminal-shortcuts button {
  background: rgba(255, 255, 255, 0.74);
}

.section {
  padding: 84px 0;
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.12;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
}

.about-card,
.contact-form {
  padding: 24px;
}

.about-card h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.about-card p {
  color: var(--muted-strong);
  line-height: 1.75;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.profile-grid div {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.profile-grid strong {
  display: block;
  margin-top: 5px;
}

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

.score-card {
  --score-a: var(--blue);
  --score-b: var(--teal);
  --score-progress: 72%;
  appearance: none;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 16px;
  align-items: start;
  padding: 20px;
  min-height: 190px;
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(5, 7, 13, 0.48);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.score-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--score-a), var(--score-b));
}

.score-card:nth-child(3) {
  grid-column: 1 / -1;
  grid-template-columns: minmax(240px, 0.38fr) 1fr;
  align-items: center;
}

.score-card:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 168, 255, 0.34);
}

.score-ring {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(8, 12, 23, 0.96) 0 58%, transparent 59%),
    conic-gradient(var(--score-a), var(--score-b) var(--score-progress), rgba(255, 255, 255, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.score-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.score-heading {
  min-width: 0;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.score-ring strong {
  position: relative;
  z-index: 1;
}

.score-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.score-value {
  color: var(--text);
  font-size: 1.82rem;
  line-height: 1;
}

.score-label {
  display: block;
  color: var(--score-a);
  font-weight: 800;
}

.score-max {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.score-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

:root[data-theme="light"] .score-card {
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.84)),
    rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .score-ring {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 58%, transparent 59%),
    conic-gradient(var(--score-a), var(--score-b) var(--score-progress), rgba(37, 99, 235, 0.13) 0);
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.1),
    0 14px 30px rgba(37, 99, 235, 0.1);
}

:root[data-theme="light"] .score-ring::after {
  border-color: rgba(37, 99, 235, 0.12);
}

.admissions-grid,
.document-grid,
.certificate-grid,
.olympiad-grid,
.work-experience-grid,
.reviews-grid,
.activity-grid,
.project-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

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

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

.work-experience-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  padding-left: 44px;
}

.work-experience-grid::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 13px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blue), var(--teal), var(--purple));
  box-shadow: 0 0 24px rgba(98, 168, 255, 0.26);
}

.work-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.work-timeline-item::after {
  content: "";
  position: absolute;
  top: 28px;
  left: -42px;
  width: 22px;
  height: 22px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(53, 214, 189, 0.36);
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.74;
  background:
    linear-gradient(120deg, rgba(98, 168, 255, 0.12), transparent 42%),
    linear-gradient(290deg, rgba(53, 214, 189, 0.12), transparent 44%);
  pointer-events: none;
}

.work-card > * {
  position: relative;
}

.work-period,
.certificate-provider,
.olympiad-year {
  width: fit-content;
  padding: 8px 10px;
  color: #06101c;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 0.82rem;
  font-weight: 950;
}

.work-card h3,
.certificate-card h3,
.olympiad-card h3 {
  margin: 0;
}

.work-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.work-company {
  color: var(--text);
  font-size: 1.1rem;
}

.work-timeline-item:nth-child(even) .work-period {
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.work-timeline-item:nth-child(3n) .work-period {
  background: linear-gradient(135deg, var(--gold), var(--teal));
}

.work-type,
.work-description {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.work-impact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.work-impact-list span {
  padding: 7px 9px;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.92rem;
  font-weight: 800;
}

:root[data-theme="light"] .work-timeline-item::after {
  border-color: var(--bg);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.14),
    0 0 22px rgba(15, 159, 143, 0.2);
}

.certificate-grid,
.olympiad-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.certificate-card,
.olympiad-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 20px;
  color: var(--text);
  text-align: left;
  align-content: start;
  transition: transform 180ms ease, border-color 180ms ease;
}

.certificate-card .card-action,
.olympiad-card .card-action {
  align-self: end;
  margin-top: auto;
}

.certificate-card:hover,
.certificate-card:focus-visible,
.olympiad-card:hover,
.olympiad-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(98, 168, 255, 0.4);
}

.certificate-card p,
.olympiad-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.reviews-main {
  display: grid;
  gap: 16px;
}

.reviews-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.1), rgba(166, 108, 255, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.review-stats {
  min-width: max-content;
  padding: 10px 12px;
  color: #06101c;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 0.9rem;
  font-weight: 900;
}

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

.review-card,
.review-empty {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 20px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(5, 7, 13, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.review-card::before,
.review-empty::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple));
}

.review-card.is-local::before {
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--blue));
}

.review-card-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.review-avatar {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #06101c;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-size: 0.92rem;
  font-weight: 900;
}

.review-avatar.is-image {
  display: block;
  object-fit: cover;
  object-position: center;
}

.review-avatar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.review-identity strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.review-identity span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.review-text {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--muted-strong);
  line-height: 1.72;
}

.review-empty {
  justify-content: center;
  grid-column: 1 / -1;
  min-height: 220px;
}

.review-empty h3 {
  margin: 0 0 10px;
}

.review-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.review-form-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.review-form-heading h3 {
  margin: 0;
  font-size: 1.42rem;
}

.review-form-heading p {
  margin: 12px 0 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.review-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.review-account-box {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.12), rgba(53, 214, 189, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.review-account-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-account-box strong {
  color: var(--text);
  font-size: 1rem;
}

.review-account-box p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.review-account-link {
  width: fit-content;
  min-height: 38px;
  margin-top: 4px;
  padding: 0 14px;
}

.review-account-link[hidden] {
  display: none;
}

.review-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted-strong) 50%),
    linear-gradient(135deg, var(--muted-strong) 50%, transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 13px) 52%,
    0 0;
  background-size:
    5px 5px,
    5px 5px,
    100% 100%;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.review-form textarea {
  min-height: 118px;
}

.moderation-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.moderation-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242, 200, 107, 0.1), rgba(98, 168, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
  text-align: left;
}

.moderation-toggle span {
  font-weight: 900;
}

.moderation-toggle strong {
  min-width: max-content;
  color: var(--gold);
  font-size: 0.86rem;
}

.admin-login {
  display: grid;
  gap: 10px;
}

.admin-login[hidden] {
  display: none;
}

.admin-login-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.admin-login-row .btn {
  min-height: 46px;
}

.moderation-queue {
  display: grid;
  gap: 12px;
}

.moderation-queue[hidden] {
  display: none;
}

.moderation-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.55;
}

.moderation-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.42);
}

.moderation-item-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.moderation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.moderation-action {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.moderation-action:hover,
.moderation-action:focus-visible {
  transform: translateY(-1px);
}

.moderation-action.is-approve {
  color: var(--success);
  border-color: rgba(72, 213, 143, 0.24);
}

.moderation-action.is-approve:hover,
.moderation-action.is-approve:focus-visible {
  background: rgba(72, 213, 143, 0.1);
}

.moderation-action.is-reject {
  color: var(--danger);
  border-color: rgba(255, 124, 147, 0.24);
}

.moderation-action.is-reject:hover,
.moderation-action.is-reject:focus-visible {
  background: rgba(255, 124, 147, 0.1);
}

.moderation-action.is-delete {
  color: var(--danger);
  border-color: rgba(255, 124, 147, 0.18);
  background: rgba(255, 124, 147, 0.055);
}

.moderation-action.is-delete:hover,
.moderation-action.is-delete:focus-visible {
  background: rgba(255, 124, 147, 0.13);
}

:root[data-theme="light"] .reviews-toolbar,
:root[data-theme="light"] .review-card,
:root[data-theme="light"] .review-empty,
:root[data-theme="light"] .review-form-card {
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.84)),
    rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .review-form input,
:root[data-theme="light"] .review-form textarea,
:root[data-theme="light"] .review-form select {
  border-color: rgba(16, 24, 40, 0.14);
  background-color: rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .admin-account-list div {
  border-color: rgba(16, 24, 40, 0.1);
  background: rgba(255, 255, 255, 0.64);
}

:root[data-theme="light"] .admin-login input,
:root[data-theme="light"] .moderation-toggle,
:root[data-theme="light"] .moderation-empty,
:root[data-theme="light"] .moderation-item {
  border-color: rgba(16, 24, 40, 0.12);
  background-color: rgba(255, 255, 255, 0.72);
}

.admission-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 20px;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.admission-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  min-height: 300px;
  padding: 30px;
  border-color: rgba(255, 204, 51, 0.36);
  background:
    linear-gradient(135deg, rgba(122, 0, 25, 0.5), rgba(255, 204, 51, 0.11) 48%, rgba(98, 168, 255, 0.13)),
    rgba(5, 7, 13, 0.72);
}

.admission-card.is-featured::after {
  content: attr(data-watermark);
  position: absolute;
  right: 24px;
  bottom: -12px;
  color: rgba(255, 204, 51, 0.09);
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.admission-card.is-featured > * {
  position: relative;
  z-index: 1;
}

.admission-card.is-featured > :not(.card-index) {
  grid-column: 2 / -1;
}

.admission-card.is-featured .card-index {
  grid-row: 1 / 8;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ffcc33, #62a8ff);
  font-size: 1.2rem;
}

.admission-card.is-featured h3 {
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1.15;
}

.admission-card.is-featured p {
  max-width: 850px;
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.admission-card.is-featured .card-action {
  width: fit-content;
  margin-top: 18px;
  padding-top: 0;
}

.featured-admission-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 11px;
  color: #ffec99;
  border: 1px solid rgba(255, 204, 51, 0.34);
  border-radius: var(--radius);
  background: rgba(122, 0, 25, 0.42);
  font-size: 0.88rem;
  font-weight: 900;
}

.admission-card:hover,
.document-card:hover,
.review-card:hover,
.activity-card:hover,
.project-card:hover,
.contact-card:hover,
.gallery-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 168, 255, 0.42);
  background: var(--surface-strong);
}

.timeline-item:focus-visible,
.activity-card:focus-visible,
.project-card:focus-visible {
  outline: 2px solid rgba(98, 168, 255, 0.72);
  outline-offset: 3px;
}

.admission-card.is-featured:hover {
  border-color: rgba(255, 204, 51, 0.5);
  background:
    linear-gradient(135deg, rgba(122, 0, 25, 0.58), rgba(255, 204, 51, 0.15) 48%, rgba(98, 168, 255, 0.17)),
    rgba(5, 7, 13, 0.76);
}

.admission-card.featured-cuhk {
  border-color: rgba(53, 214, 189, 0.3);
  background:
    radial-gradient(circle at top right, rgba(98, 168, 255, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(7, 71, 96, 0.88), rgba(18, 128, 122, 0.34) 46%, rgba(98, 168, 255, 0.14)),
    rgba(5, 7, 13, 0.76);
  box-shadow: 0 24px 60px rgba(7, 71, 96, 0.22);
}

.admission-card.featured-cuhk::after {
  color: rgba(110, 220, 210, 0.1);
}

.admission-card.featured-cuhk .card-index {
  background: linear-gradient(135deg, #35d6bd, #62a8ff);
}

.admission-card.featured-cuhk .mini-badge {
  color: #dffdf8;
  border-color: rgba(53, 214, 189, 0.22);
  background: rgba(53, 214, 189, 0.1);
}

.admission-card.featured-cuhk .university-location-chip {
  color: #8df4ea;
  border-color: rgba(53, 214, 189, 0.18);
  background: rgba(53, 214, 189, 0.08);
}

.admission-card.featured-cuhk .university-rank-chip {
  color: #def9ff;
  border-color: rgba(98, 168, 255, 0.16);
  background: rgba(98, 168, 255, 0.08);
}

.admission-card.featured-cuhk:hover {
  border-color: rgba(53, 214, 189, 0.42);
  background:
    radial-gradient(circle at top right, rgba(98, 168, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(8, 86, 116, 0.92), rgba(27, 149, 142, 0.38) 46%, rgba(98, 168, 255, 0.16)),
    rgba(5, 7, 13, 0.8);
}

:root[data-theme="light"] .admission-card.is-featured {
  border-color: rgba(37, 99, 235, 0.2);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(15, 159, 143, 0.08) 46%, rgba(183, 121, 31, 0.12)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.14);
}

:root[data-theme="light"] .admission-card.is-featured::after {
  color: rgba(37, 99, 235, 0.08);
}

:root[data-theme="light"] .admission-card.is-featured .card-index {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f9f8f);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

:root[data-theme="light"] .admission-card.is-featured .featured-admission-badge {
  color: #17406f;
  border-color: rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 159, 143, 0.08)),
    rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .admission-card.is-featured:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 159, 143, 0.1) 46%, rgba(183, 121, 31, 0.14)),
    rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .admission-card.featured-cuhk {
  border-color: rgba(15, 159, 143, 0.16);
  background:
    radial-gradient(circle at top right, rgba(98, 168, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(15, 159, 143, 0.08), rgba(98, 168, 255, 0.1) 48%, rgba(53, 214, 189, 0.08)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 56px rgba(15, 159, 143, 0.12);
}

:root[data-theme="light"] .admission-card.featured-cuhk::after {
  color: rgba(15, 159, 143, 0.08);
}

:root[data-theme="light"] .admission-card.featured-cuhk .card-index {
  color: #ffffff;
  background: linear-gradient(135deg, #0f9f8f, #2563eb);
}

.admission-card.enrolled-card.is-featured {
  border-color: rgba(255, 214, 102, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(14, 33, 84, 0.94), rgba(25, 76, 157, 0.56) 46%, rgba(255, 214, 102, 0.14)),
    rgba(5, 7, 13, 0.78);
  box-shadow: 0 28px 72px rgba(14, 33, 84, 0.28);
}

.admission-card.enrolled-card.is-featured::after {
  content: "UB";
  position: absolute;
  right: 22px;
  bottom: -14px;
  color: rgba(255, 214, 102, 0.12);
  font-size: 7rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.admission-card.enrolled-card.is-featured .card-index {
  color: #06101c;
  background: linear-gradient(135deg, #ffd666, #7cc8ff);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}

.admission-card.enrolled-card.is-featured .featured-admission-badge {
  color: #ffe8a3;
  border-color: rgba(255, 214, 102, 0.34);
  background: rgba(14, 33, 84, 0.52);
}

.admission-card.enrolled-card.is-featured h3 {
  color: #ffffff;
}

.admission-card.enrolled-card.is-featured .mini-badge {
  color: #eef5ff;
  border-color: rgba(255, 214, 102, 0.24);
  background: rgba(37, 99, 235, 0.16);
}

.admission-card.enrolled-card.is-featured .university-location-chip {
  color: #ffd666;
  border-color: rgba(255, 214, 102, 0.22);
  background: rgba(255, 214, 102, 0.08);
}

.admission-card.enrolled-card.is-featured .university-rank-chip {
  color: #eff5ff;
  border-color: rgba(255, 214, 102, 0.18);
  background: rgba(14, 33, 84, 0.42);
}

.admission-card.enrolled-card.is-featured:hover {
  border-color: rgba(255, 214, 102, 0.4);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(16, 40, 96, 0.96), rgba(37, 99, 235, 0.52) 44%, rgba(255, 214, 102, 0.18)),
    rgba(5, 7, 13, 0.82);
}

:root[data-theme="light"] .admission-card.enrolled-card.is-featured {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 214, 102, 0.14) 48%, rgba(15, 159, 143, 0.08)),
    rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
}

:root[data-theme="light"] .admission-card.enrolled-card.is-featured::after {
  color: rgba(37, 99, 235, 0.08);
}

:root[data-theme="light"] .admission-card.enrolled-card.is-featured .card-index {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #f2c86b);
}

:root[data-theme="light"] .admission-card.enrolled-card.is-featured .featured-admission-badge {
  color: #163d74;
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.card-index {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #06101c;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
}

.admission-card h3,
.document-card h3,
.activity-card h3,
.project-card h3 {
  margin: 18px 0 10px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.mini-badge {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 10px;
  color: var(--teal);
  border: 1px solid rgba(53, 214, 189, 0.25);
  border-radius: var(--radius);
  background: rgba(53, 214, 189, 0.08);
  font-weight: 800;
}

.university-location-chip,
.university-rank-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  line-height: 1.35;
}

.university-rank-chip {
  color: var(--gold);
  border-color: rgba(242, 200, 107, 0.26);
  background: rgba(242, 200, 107, 0.08);
}

.admission-card p,
.document-card p,
.activity-card p,
.project-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.65;
}

.document-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  padding: 22px;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.document-card::before,
.admission-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--teal));
}

.document-subject-index {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #06101c;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--teal));
  font-weight: 900;
}

.document-teacher {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  font-weight: 800;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal);
  font-weight: 900;
}

.card-action::after {
  content: ">";
  color: var(--blue);
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 178px;
  padding: 22px 22px 22px 64px;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.timeline-dot {
  position: absolute;
  left: 22px;
  top: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 0 7px rgba(98, 168, 255, 0.1);
}

.timeline-item h3 {
  margin: 0 0 7px;
}

.timeline-item small {
  color: var(--teal);
  font-weight: 800;
}

.activity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activity-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 250px;
  padding: 20px;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.project-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tech-list span {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

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

.gallery-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--border);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.gallery-visual {
  position: absolute;
  inset: 0;
  background: var(--gallery-gradient);
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(0deg, rgba(5, 7, 13, 0.82), rgba(5, 7, 13, 0.08) 55%, transparent);
}

.gallery-card.has-image .gallery-visual::after {
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.16), transparent 34%),
    linear-gradient(0deg, rgba(5, 7, 13, 0.88), rgba(5, 7, 13, 0.16) 58%, transparent);
}

.gallery-content {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 1;
}

.gallery-placeholder {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.58);
  color: var(--muted-strong);
  font-weight: 800;
}

.gallery-card h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
}

.gallery-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.5;
}

.contact-layout {
  justify-content: center;
  align-items: start;
  grid-template-columns: minmax(0, 980px);
}

.contact-cards {
  display: grid;
  width: 100%;
  gap: 18px;
  margin: 0 auto;
}

.contact-card-group {
  display: grid;
  gap: 12px;
}

.contact-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-group-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(98, 168, 255, 0.42), transparent);
}

.contact-group-grid {
  display: grid;
  gap: 14px;
}

.primary-contact-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.social-contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  --contact-a: var(--blue);
  --contact-b: var(--teal);
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 172px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(5, 7, 13, 0.52);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--contact-a), var(--contact-b));
}

.contact-card.is-link {
  cursor: pointer;
}

.contact-card.is-social {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--contact-a) 18%, transparent), transparent 38%),
    rgba(5, 7, 13, 0.52);
}

.contact-card.is-compact {
  min-height: 138px;
  padding: 16px;
}

.contact-card.is-link:focus-visible {
  outline: 2px solid rgba(98, 168, 255, 0.82);
  outline-offset: 3px;
}

.contact-card-top,
.contact-card-body {
  position: relative;
  z-index: 1;
}

.contact-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.contact-card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #06101c;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.platform-github .contact-card-icon svg,
.platform-linkedin .contact-card-icon svg,
.platform-telegram .contact-card-icon svg {
  fill: currentColor;
  stroke: none;
}

.contact-card-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.contact-card-arrow {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.contact-card.is-link:hover .contact-card-arrow,
.contact-card.is-link:focus-visible .contact-card-arrow {
  transform: translate(2px, -2px);
  color: var(--text);
  border-color: rgba(98, 168, 255, 0.3);
}

.contact-card-body {
  margin-top: 28px;
}

.contact-card.is-compact .contact-card-body {
  margin-top: 20px;
}

.contact-card-value {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.35;
}

.contact-card.is-compact .contact-card-value {
  font-size: 0.96rem;
}

.contact-card.is-compact .contact-card-note {
  display: none;
}

.contact-card-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.platform-instagram {
  --contact-a: #f97316;
  --contact-b: #c026d3;
}

.platform-instagram .contact-card-icon {
  color: #fff;
  background: radial-gradient(circle at 30% 110%, #facc15 0 18%, #f97316 36%, #db2777 62%, #7c3aed 100%);
}

.platform-telegram {
  --contact-a: #38bdf8;
  --contact-b: #2563eb;
}

.platform-telegram .contact-card-icon {
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.platform-linkedin {
  --contact-a: #60a5fa;
  --contact-b: #0a66c2;
}

.platform-linkedin .contact-card-icon {
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #0a66c2);
}

.platform-github {
  --contact-a: #cbd5e1;
  --contact-b: #64748b;
}

.platform-github .contact-card-icon {
  color: #f8fafc;
  background: linear-gradient(135deg, #111827, #334155);
}

:root[data-theme="light"] .contact-card {
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.84)),
    rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .contact-card.is-social {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.84)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--contact-a) 14%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .contact-card-arrow {
  border-color: rgba(16, 24, 40, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field[hidden] {
  display: none;
}

label {
  color: var(--muted-strong);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(3, 8, 17, 0.62);
  outline: none;
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(98, 168, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(98, 168, 255, 0.12);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.88rem;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-weight: 800;
}

.form-message.is-success {
  color: var(--success);
}

.form-message.is-error {
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 7, 13, 0.62);
}

.admin-page {
  min-height: 100vh;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-profile-menu {
  position: relative;
}

.admin-profile-menu[hidden] {
  display: none;
}

.admin-header-profile {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  max-width: 220px;
  padding: 6px 10px 6px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.14), rgba(53, 214, 189, 0.08)),
    var(--control-bg);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.admin-header-profile:hover,
.admin-header-profile:focus-visible,
.admin-profile-menu.is-open .admin-header-profile {
  border-color: rgba(98, 168, 255, 0.42);
  transform: translateY(-1px);
}

.admin-header-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #06101c;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-size: 0.72rem;
  font-weight: 950;
}

.admin-header-photo {
  display: block;
  object-fit: cover;
  object-position: center;
}

.admin-header-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 130;
  display: grid;
  width: min(290px, calc(100vw - 24px));
  gap: 14px;
  padding: 16px;
  border-color: rgba(120, 144, 180, 0.42);
  background: #111827;
  box-shadow: var(--shadow);
  transform-origin: top right;
  backdrop-filter: none;
}

:root[data-theme="light"] .admin-profile-dropdown {
  border-color: rgba(25, 38, 62, 0.16);
  background: #ffffff;
}

.admin-profile-dropdown[hidden] {
  display: none;
}

.admin-profile-menu.is-open .admin-profile-dropdown {
  animation: admin-dropdown-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.admin-profile-dropdown::before {
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: #111827;
  content: "";
  transform: rotate(45deg);
}

:root[data-theme="light"] .admin-profile-dropdown::before {
  background: #ffffff;
}

.admin-profile-dropdown-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-profile-dropdown-head strong,
.admin-profile-dropdown-head span,
.admin-profile-dropdown-meta strong {
  overflow-wrap: anywhere;
}

.admin-profile-dropdown-head strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.admin-profile-dropdown-head span,
.admin-profile-dropdown-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-profile-dropdown-meta {
  display: grid;
  grid-template-columns: minmax(64px, 0.32fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.admin-profile-dropdown-meta strong {
  color: var(--text);
  font-size: 0.88rem;
}

.admin-pending-count {
  display: inline-flex;
  width: fit-content;
  min-width: 30px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #06101c !important;
  font-weight: 950;
}

.admin-profile-dropdown-actions {
  display: grid;
  gap: 8px;
}

.admin-profile-dropdown-actions a,
.admin-profile-dropdown-actions button {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--control-bg);
  font-size: 0.9rem;
  font-weight: 850;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-profile-dropdown-actions a:hover,
.admin-profile-dropdown-actions a:focus-visible,
.admin-profile-dropdown-actions button:hover,
.admin-profile-dropdown-actions button:focus-visible {
  color: var(--text);
  background: var(--hover-bg);
  transform: translateY(-1px);
}

@keyframes admin-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-main {
  display: grid;
  gap: 24px;
  padding: 74px 0 92px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: end;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
}

.admin-status {
  align-self: stretch;
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 18px;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.1), rgba(166, 108, 255, 0.06)),
    var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
  font-weight: 850;
}

.admin-status.is-success {
  color: var(--success);
}

.admin-status.is-error {
  color: var(--danger);
}

.admin-side-panel {
  display: grid;
  gap: 14px;
}

.admin-account-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-account-card[hidden] {
  display: none;
}

.admin-account-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-account-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.admin-account-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #06101c;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-size: 0.9rem;
  font-weight: 950;
}

.profile-avatar-preview {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  color: #06101c;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.profile-avatar-preview svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-avatar-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.profile-stats-grid,
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-stat-card,
.admin-overview-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.profile-stat-card span,
.admin-overview-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-stat-card strong,
.admin-overview-card strong {
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 16px;
}

.profile-edit-card,
.profile-security-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.profile-edit-card h3,
.profile-security-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.profile-edit-card p,
.profile-security-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-edit-form {
  margin-top: 0;
}

.profile-avatar-card h3,
.profile-avatar-card p {
  margin: 0;
}

.profile-avatar-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.profile-avatar-upload {
  cursor: pointer;
}

.profile-avatar-card .form-message {
  grid-column: 1 / -1;
}

.admin-account-list {
  display: grid;
  gap: 8px;
}

.admin-account-list div {
  display: grid;
  grid-template-columns: minmax(72px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.admin-account-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-account-list strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-auth-card {
  width: min(560px, 100%);
  padding: 24px;
}

.admin-auth-card h2,
.admin-toolbar h2 {
  margin: 0;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--control-bg);
}

.auth-mode-tabs button {
  min-height: 40px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-weight: 900;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.auth-mode-tabs button.is-active,
.auth-mode-tabs button:hover,
.auth-mode-tabs button:focus-visible {
  color: var(--text);
  border-color: var(--border);
  background: linear-gradient(135deg, rgba(98, 168, 255, 0.2), rgba(53, 214, 189, 0.13));
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-dashboard[hidden] {
  display: none;
}

.admin-panel-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  padding: 6px;
}

.admin-panel-tabs button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-weight: 900;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-panel-tabs button:hover,
.admin-panel-tabs button:focus-visible,
.admin-panel-tabs button.is-active {
  color: var(--text);
  border-color: var(--border);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.18), rgba(53, 214, 189, 0.12)),
    var(--hover-bg);
  transform: translateY(-1px);
}

.admin-panel-section {
  display: grid;
  gap: 18px;
}

.admin-panel-section[hidden] {
  display: none;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}

.admin-toolbar p {
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.admin-review-controls {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px;
}

.admin-review-controls .form-field {
  margin: 0;
}

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

.admin-status-tabs button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-weight: 850;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-status-tabs button:hover,
.admin-status-tabs button:focus-visible,
.admin-status-tabs button.is-active {
  color: var(--text);
  border-color: var(--border);
  background: var(--hover-bg);
  transform: translateY(-1px);
}

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

.admin-review-card,
.admin-empty {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.admin-review-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.admin-review-select {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  cursor: pointer;
}

.admin-review-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.admin-review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-review-status {
  width: fit-content;
  padding: 7px 10px;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-empty {
  grid-column: 1 / -1;
}

.admin-empty h3,
.admin-empty p {
  margin: 0;
}

.admin-empty p {
  color: var(--muted);
  line-height: 1.6;
}

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

.admin-setting-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.admin-setting-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.admin-setting-list {
  display: grid;
  gap: 10px;
}

.admin-setting-list div {
  display: grid;
  grid-template-columns: minmax(90px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.admin-setting-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-setting-list strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.94rem;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}

.footer-mark {
  display: inline-flex;
  padding: 8px 11px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(98, 168, 255, 0.18), rgba(53, 214, 189, 0.12));
  font-weight: 800;
}

.footer-signal {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 8px;
  align-items: end;
  height: 24px;
}

.footer-signal span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0.76;
  animation: footer-signal-pulse 3.2s ease-in-out infinite;
}

.footer-signal span:nth-child(2) {
  height: 12px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  animation-delay: 160ms;
}

.footer-signal span:nth-child(3) {
  height: 18px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  animation-delay: 320ms;
}

.footer-signal span:nth-child(4) {
  height: 12px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  animation-delay: 480ms;
}

.footer-signal span:nth-child(5) {
  height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  animation-delay: 640ms;
}

@keyframes footer-signal-pulse {
  0%,
  100% {
    opacity: 0.48;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 15, 28, 0.92);
  box-shadow: var(--shadow);
}

.modal-art {
  display: grid;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  place-items: center;
  background: var(--gallery-gradient);
}

.modal-art.has-image {
  place-items: stretch;
  background: rgba(5, 7, 13, 0.94);
}

.modal-image {
  display: none;
  width: 100%;
  min-height: 420px;
  max-height: 68vh;
  object-fit: contain;
  background: rgba(3, 8, 17, 0.88);
}

.modal-art.has-image .modal-image {
  display: block;
}

.modal-art.has-image #modalPlaceholder {
  display: none;
}

.modal-art span {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.62);
  color: var(--text);
  font-weight: 900;
}

.modal-copy {
  padding: 22px;
}

.modal-copy h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.modal-copy p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.document-panel {
  width: min(1120px, 100%);
  max-height: none;
  display: grid;
  grid-template-rows: auto;
  overflow: visible;
}

.document-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.12), rgba(166, 108, 255, 0.1)),
    rgba(5, 7, 13, 0.5);
}

.document-modal-header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.document-modal-header p {
  margin: 8px 0 0;
  color: var(--muted-strong);
}

.document-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.document-modal .modal-close {
  position: static;
}

.document-open-link {
  min-height: 42px;
}

.document-mini-hero {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.08), rgba(166, 108, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.document-mini-hero[hidden] {
  display: none;
}

.document-mini-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.1) 42%, transparent 72%);
  transform: translateX(-120%);
  pointer-events: none;
}

.document-mini-hero-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  color: var(--teal);
  border: 1px solid rgba(53, 214, 189, 0.24);
  border-radius: var(--radius);
  background: rgba(53, 214, 189, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.document-mini-hero strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
}

.document-mini-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.university-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.university-preview[hidden] {
  display: none;
}

.score-preview {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(53, 214, 189, 0.075), rgba(98, 168, 255, 0.055)),
    rgba(255, 255, 255, 0.035);
}

.score-preview[hidden] {
  display: none;
}

.evidence-preview {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(166, 108, 255, 0.075), rgba(53, 214, 189, 0.055)),
    rgba(255, 255, 255, 0.035);
}

.evidence-preview[hidden] {
  display: none;
}

.score-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.score-preview-header span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-preview-header p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: right;
}

.evidence-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.evidence-preview-header span {
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-preview-header p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: right;
}

.evidence-detail-list {
  display: grid;
  gap: 10px;
}

.evidence-detail-list p {
  margin: 0;
  padding: 13px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.4);
  line-height: 1.65;
}

.evidence-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-tag-list span {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(166, 108, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(166, 108, 255, 0.08);
  font-size: 0.9rem;
}

.score-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
}

.score-breakdown-card {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.4);
}

.score-breakdown-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.score-breakdown-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.22rem;
}

.university-preview-main,
.university-rank-card,
.university-strengths {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.38);
  padding: 14px;
}

.university-preview-main {
  display: grid;
  gap: 10px;
}

.university-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.university-quick-facts span {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(98, 168, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(98, 168, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
}

.university-location {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  color: var(--blue);
  border: 1px solid rgba(98, 168, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(98, 168, 255, 0.08);
  font-weight: 800;
}

.university-preview p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.university-rank-card span,
.university-strengths h4 {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.university-rank-card strong {
  display: block;
  color: var(--gold);
  line-height: 1.45;
}

.university-strengths {
  grid-column: 1 / -1;
}

.university-strength-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.university-strength-list span {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(53, 214, 189, 0.2);
  border-radius: var(--radius);
  background: rgba(53, 214, 189, 0.07);
  font-size: 0.9rem;
}

.document-frame {
  width: 100%;
  height: min(82vh, 900px);
  min-height: 620px;
  border: 0;
  background: #f7f8fb;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.62);
}

:root[data-theme="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.38);
}

:root[data-theme="light"] .modal-panel {
  border-color: rgba(16, 24, 40, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.94)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 72px rgba(33, 48, 75, 0.22);
}

:root[data-theme="light"] .modal-art.has-image,
:root[data-theme="light"] .modal-image {
  background: rgba(248, 251, 255, 0.98);
}

:root[data-theme="light"] .modal-art span {
  color: var(--text);
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .document-modal-header {
  border-bottom-color: rgba(16, 24, 40, 0.1);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 159, 143, 0.07)),
    rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .university-preview {
  border-bottom-color: rgba(16, 24, 40, 0.1);
  background: rgba(244, 248, 253, 0.9);
}

.document-modal[data-theme="buffalo"] .document-modal-header {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(14, 33, 84, 0.92), rgba(25, 76, 157, 0.42) 54%, rgba(255, 214, 102, 0.14)),
    rgba(5, 7, 13, 0.6);
}

.document-modal[data-theme="buffalo"] #documentModalType {
  color: #ffd666;
}

.document-modal[data-theme="buffalo"] .document-mini-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(14, 33, 84, 0.82), rgba(37, 99, 235, 0.24) 52%, rgba(255, 214, 102, 0.1)),
    rgba(255, 255, 255, 0.035);
  animation: drexelHeroPulse 7.2s ease-in-out infinite;
}

.document-modal[data-theme="buffalo"] .document-mini-hero-label {
  color: #ffd666;
  border-color: rgba(255, 214, 102, 0.24);
  background: rgba(255, 214, 102, 0.08);
}

.document-modal[data-theme="buffalo"] .document-mini-hero strong {
  color: #ffffff;
  text-shadow: 0 18px 42px rgba(14, 33, 84, 0.3);
}

.document-modal[data-theme="buffalo"] .document-mini-hero::before {
  content: "ENROLLED";
  position: absolute;
  right: 18px;
  bottom: -10px;
  color: rgba(255, 214, 102, 0.08);
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.document-modal[data-theme="buffalo"] .document-mini-hero::after {
  animation: drexelHeroShine 4.8s ease-in-out infinite;
}

.document-modal[data-theme="buffalo"] .university-preview {
  background:
    linear-gradient(135deg, rgba(14, 33, 84, 0.18), rgba(255, 214, 102, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.document-modal[data-theme="buffalo"] .university-preview-main,
.document-modal[data-theme="buffalo"] .university-rank-card,
.document-modal[data-theme="buffalo"] .university-strengths {
  border-color: rgba(255, 214, 102, 0.14);
  background:
    linear-gradient(135deg, rgba(14, 33, 84, 0.2), rgba(255, 214, 102, 0.05)),
    rgba(5, 7, 13, 0.36);
}

.document-modal[data-theme="buffalo"] .university-location {
  color: #ffd666;
  border-color: rgba(255, 214, 102, 0.22);
  background: rgba(255, 214, 102, 0.08);
}

.document-modal[data-theme="buffalo"] .university-rank-card strong {
  color: #ffd666;
}

.document-modal[data-theme="buffalo"] .university-quick-facts span {
  color: #fff2c4;
  border-color: rgba(255, 214, 102, 0.18);
  background: rgba(255, 214, 102, 0.08);
}

.document-modal[data-theme="buffalo"] .university-strength-list span {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.09);
}

:root[data-theme="light"] .score-preview {
  border-bottom-color: rgba(16, 24, 40, 0.1);
  background:
    linear-gradient(135deg, rgba(15, 159, 143, 0.08), rgba(37, 99, 235, 0.06)),
    rgba(244, 248, 253, 0.9);
}

:root[data-theme="light"] .evidence-preview {
  border-bottom-color: rgba(16, 24, 40, 0.1);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(15, 159, 143, 0.06)),
    rgba(244, 248, 253, 0.9);
}

:root[data-theme="light"] .university-preview-main,
:root[data-theme="light"] .university-rank-card,
:root[data-theme="light"] .university-strengths,
:root[data-theme="light"] .score-breakdown-card,
:root[data-theme="light"] .evidence-detail-list p {
  border-color: rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .evidence-tag-list span {
  border-color: rgba(124, 58, 237, 0.18);
  background: rgba(124, 58, 237, 0.08);
}

:root[data-theme="light"] .university-location {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
}

:root[data-theme="light"] .university-strength-list span {
  border-color: rgba(15, 159, 143, 0.18);
  background: rgba(15, 159, 143, 0.08);
}

:root[data-theme="light"] .document-modal[data-theme="buffalo"] .document-modal-header {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 214, 102, 0.12) 56%, rgba(15, 159, 143, 0.06)),
    rgba(255, 255, 255, 0.84);
}

:root[data-theme="light"] .document-modal[data-theme="buffalo"] .document-mini-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.24), transparent 26%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(255, 214, 102, 0.12) 56%, rgba(15, 159, 143, 0.05)),
    rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] .document-modal[data-theme="buffalo"] .university-preview {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(255, 214, 102, 0.1)),
    rgba(244, 248, 253, 0.92);
}

:root[data-theme="light"] .document-frame {
  background: #ffffff;
}

:root[data-theme="light"] .icon-button {
  color: var(--text);
  border-color: rgba(16, 24, 40, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 1.35rem;
}

.ai-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
}

.ai-toggle {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #06101c;
  border: 0;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--teal), var(--blue) 52%, var(--purple));
  box-shadow:
    0 18px 44px rgba(53, 214, 189, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ai-toggle:hover,
.ai-toggle:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 22px 54px rgba(98, 168, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.ai-toggle svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 168, 255, 0.13), rgba(166, 108, 255, 0.1)),
    rgba(7, 11, 20, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 190ms ease, transform 190ms ease;
}

.ai-assistant.is-open .ai-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-header span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-header h2 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.ai-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.25rem;
}

.ai-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 270px;
  max-height: min(430px, calc(100vh - 300px));
  overflow: auto;
  padding: 16px;
}

.ai-message {
  width: fit-content;
  max-width: 86%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.065);
  line-height: 1.55;
  white-space: pre-wrap;
}

.ai-message.is-user {
  justify-self: end;
  color: #06101c;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 800;
}

.ai-message.is-loading {
  animation: ai-thinking 900ms ease-in-out infinite alternate;
}

.ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-form textarea {
  min-height: 44px;
  max-height: 130px;
  resize: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(5, 7, 13, 0.52);
  padding: 11px 12px;
}

.ai-form button {
  min-height: 44px;
  padding: 0 14px;
  color: #06101c;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
}

@keyframes ai-thinking {
  from {
    opacity: 0.62;
  }

  to {
    opacity: 1;
  }
}

:root[data-theme="light"] .ai-panel {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(124, 58, 237, 0.08)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(33, 48, 75, 0.2);
}

:root[data-theme="light"] .ai-form textarea {
  background: rgba(255, 255, 255, 0.78);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 90;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #06101c;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 38px rgba(53, 214, 189, 0.18);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(28px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.hero-content.reveal.is-visible {
  animation: heroCopyIn 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual.reveal.is-visible {
  animation: heroPhotoIn 860ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.score-card.reveal.is-visible,
.admission-card.reveal.is-visible,
.document-card.reveal.is-visible,
.review-card.reveal.is-visible,
.activity-card.reveal.is-visible,
.project-card.reveal.is-visible,
.gallery-card.reveal.is-visible,
.contact-card.reveal.is-visible {
  animation: cardRise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.score-card.reveal.is-visible:nth-child(2),
.admission-card.reveal.is-visible:nth-child(2),
.document-card.reveal.is-visible:nth-child(2),
.review-card.reveal.is-visible:nth-child(2),
.activity-card.reveal.is-visible:nth-child(2),
.project-card.reveal.is-visible:nth-child(2),
.gallery-card.reveal.is-visible:nth-child(2),
.contact-card.reveal.is-visible:nth-child(2) {
  animation-delay: 70ms;
}

.score-card.reveal.is-visible:nth-child(3),
.admission-card.reveal.is-visible:nth-child(3),
.document-card.reveal.is-visible:nth-child(3),
.review-card.reveal.is-visible:nth-child(3),
.activity-card.reveal.is-visible:nth-child(3),
.project-card.reveal.is-visible:nth-child(3),
.gallery-card.reveal.is-visible:nth-child(3),
.contact-card.reveal.is-visible:nth-child(3) {
  animation-delay: 130ms;
}

.is-terminal-pulse {
  animation: terminalPulse 1100ms ease;
}

/* Pilot motion layer. Remove `pilot-motion` from <body> to disable this experiment. */
body.pilot-motion .site-header {
  animation: pilotHeaderDrop 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.pilot-motion .spotlight-center .section-kicker {
  animation: pilotHeroLift 1200ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.pilot-motion .spotlight-photo-wrap {
  animation:
    pilotHeroLift 1400ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both,
    pilotPhotoBreath 8.8s 1.8s ease-in-out infinite;
}

body.pilot-motion .spotlight-center h1 {
  animation: pilotHeroTitle 1450ms 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.pilot-motion .scholarship-meter {
  animation:
    pilotHeroLift 1500ms 560ms cubic-bezier(0.16, 1, 0.3, 1) both,
    scholarship-shine 5.8s ease-in-out infinite,
    pilotScholarshipBreath 9.4s 2s ease-in-out infinite;
}

body.pilot-motion .spotlight-university-logo,
body.pilot-motion .spotlight-university-fallback {
  animation: pilotLogoArrive 1250ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(1) .spotlight-university-logo,
body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(1) .spotlight-university-fallback,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(1) .spotlight-university-logo,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(1) .spotlight-university-fallback {
  animation-delay: 420ms;
}

body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(2) .spotlight-university-logo,
body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(2) .spotlight-university-fallback,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(2) .spotlight-university-logo,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(2) .spotlight-university-fallback {
  animation-delay: 520ms;
}

body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(3) .spotlight-university-logo,
body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(3) .spotlight-university-fallback,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(3) .spotlight-university-logo,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(3) .spotlight-university-fallback {
  animation-delay: 620ms;
}

body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(4) .spotlight-university-logo,
body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(4) .spotlight-university-fallback,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(4) .spotlight-university-logo,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(4) .spotlight-university-fallback {
  animation-delay: 720ms;
}

body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(5) .spotlight-university-logo,
body.pilot-motion .spotlight-left .spotlight-university-badge:nth-child(5) .spotlight-university-fallback,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(5) .spotlight-university-logo,
body.pilot-motion .spotlight-right .spotlight-university-badge:nth-child(5) .spotlight-university-fallback {
  animation-delay: 820ms;
}

body.pilot-motion .score-card,
body.pilot-motion .admission-card,
body.pilot-motion .document-card,
body.pilot-motion .certificate-card,
body.pilot-motion .review-card,
body.pilot-motion .activity-card,
body.pilot-motion .project-card,
body.pilot-motion .gallery-card,
body.pilot-motion .contact-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

body.pilot-motion .score-card:hover,
body.pilot-motion .admission-card:hover,
body.pilot-motion .document-card:hover,
body.pilot-motion .certificate-card:hover,
body.pilot-motion .review-card:hover,
body.pilot-motion .activity-card:hover,
body.pilot-motion .project-card:hover,
body.pilot-motion .gallery-card:hover,
body.pilot-motion .contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 76px rgba(3, 8, 17, 0.34), 0 0 0 1px rgba(98, 168, 255, 0.12) inset;
}

@keyframes pilotHeaderDrop {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes pilotHeroLift {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(18px) scale(0.975);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes pilotHeroTitle {
  from {
    opacity: 0;
    filter: blur(22px);
    transform: translateY(16px) scale(0.965);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes pilotPhotoBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 30px 80px rgba(3, 8, 17, 0.42), 0 0 0 rgba(98, 168, 255, 0);
  }

  50% {
    transform: translateY(-2px) scale(1.006);
    box-shadow: 0 36px 96px rgba(3, 8, 17, 0.46), 0 0 38px rgba(98, 168, 255, 0.16);
  }
}

@keyframes pilotScholarshipBreath {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.12);
  }
}

@keyframes pilotLogoArrive {
  from {
    opacity: 0;
    filter: blur(14px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes mobileLogoRow {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-120px);
  }
}

@keyframes drexelHeroPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 rgba(255, 214, 102, 0), 0 0 0 rgba(37, 99, 235, 0);
  }

  50% {
    box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.08), 0 20px 48px rgba(14, 33, 84, 0.16);
  }
}

@keyframes drexelHeroShine {
  0%,
  100% {
    transform: translateX(-120%);
  }

  48%,
  62% {
    transform: translateX(120%);
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes terminalPulse {
  0%,
  100% {
    outline: 0 solid rgba(53, 214, 189, 0);
    box-shadow: var(--shadow);
  }

  42% {
    outline: 3px solid rgba(53, 214, 189, 0.55);
    box-shadow: 0 0 0 8px rgba(53, 214, 189, 0.12), var(--shadow);
  }
}

@media (max-width: 1080px) {
  .admission-spotlight,
  .hero,
  .about-layout,
  .contact-layout,
  .reviews-layout,
  .profile-dashboard-grid,
  .admin-review-controls,
  .terminal-card,
  .admin-hero,
  .profile-avatar-card,
  .admin-review-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .review-form-card {
    position: static;
  }

  .admission-spotlight {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
    overflow: visible;
  }

  .spotlight-center {
    order: 1;
  }

  .admissions-grid,
  .document-grid,
  .certificate-grid,
  .olympiad-grid,
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1240px) {
  .nav {
    gap: 10px;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .language-switcher {
    margin-left: auto;
  }

  .nav-menu {
    position: absolute;
    top: calc(var(--header-height) + 1px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(7, 11, 20, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  :root[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 12px;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 32px, 760px);
  }

  .nav {
    gap: 10px;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .language-switcher {
    margin-left: auto;
  }

  .nav-menu {
    position: absolute;
    top: calc(var(--header-height) + 1px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(7, 11, 20, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  :root[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 12px;
  }

  .hero {
    padding-top: 54px;
  }

  .spotlight-photo-wrap {
    width: min(250px, 58vw);
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .university-preview {
    grid-template-columns: 1fr;
  }

  .brand-text {
    display: block;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 760px);
  }

  .nav {
    gap: 7px;
  }

  .brand {
    width: 38px;
    height: 38px;
    max-width: 38px;
    padding: 0;
  }

  .brand::before {
    left: 50%;
    top: 8px;
    bottom: 8px;
    transform: translateX(-50%);
  }

  .brand-text {
    display: none;
  }

  .language-switcher {
    gap: 2px;
    padding: 3px;
  }

  .theme-toggle {
    width: 46px;
    height: 32px;
  }

  .theme-toggle-track {
    width: 36px;
    height: 22px;
  }

  .theme-toggle-thumb {
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
  }

  :root[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(14px);
  }

  .lang-btn {
    min-width: 32px;
    padding: 7px 5px;
    font-size: 0.82rem;
  }

  .admin-header-actions {
    gap: 6px;
  }

  .admin-header-profile {
    padding: 4px;
  }

  .admin-profile-dropdown {
    right: -48px;
  }

  .admin-header-name {
    display: none;
  }

  .admin-header-avatar {
    width: 28px;
    height: 28px;
  }

  .profile-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .profile-link svg {
    width: 19px;
    height: 19px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 44px 0 52px;
  }

  .admission-spotlight {
    padding: 34px 0 120px;
    gap: 18px;
  }

  .spotlight-center h1 {
    font-size: 3rem;
  }

  .spotlight-center p {
    margin-top: 16px;
    line-height: 1.6;
  }

  .spotlight-photo-wrap {
    width: min(210px, 66vw);
    margin-bottom: 18px;
  }

  .spotlight-photo-stage {
    width: min(360px, 100%);
    height: auto;
    margin-top: 16px;
    gap: 14px;
  }

  .spotlight-photo-wrap {
    order: 1;
  }

  .spotlight-universities {
    display: none;
  }

  .spotlight-mobile-strip {
    order: 2;
    display: flex;
    width: min(100%, 360px);
    height: 64px;
    overflow: hidden;
    gap: 8px;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }

  .spotlight-mobile-strip .spotlight-university-badge {
    position: relative;
    top: auto;
    left: auto;
    inset: auto;
    flex: 0 0 70px;
    width: 62px;
    height: 46px;
    padding: 4px;
    transform: none;
    animation: mobileLogoRow 12s ease-in-out infinite alternate;
  }

  .scholarship-meter {
    min-width: 100%;
    padding: 22px 16px 20px;
  }

  .scholarship-meter strong {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .terminal-card {
    padding: 18px;
  }

  .terminal-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .terminal-form button {
    grid-column: 2;
    width: fit-content;
  }

  .terminal-shortcuts button {
    flex: 1 1 100%;
    text-align: left;
  }

  .hero-facts,
  .profile-grid,
  .profile-stats-grid,
  .admin-overview-grid,
  .score-grid,
  .admissions-grid,
  .document-grid,
  .certificate-grid,
  .olympiad-grid,
  .reviews-grid,
  .review-form-row,
  .activity-grid,
  .project-grid,
  .primary-contact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .work-experience-grid {
    padding-left: 32px;
  }

  .work-experience-grid::before {
    left: 10px;
  }

  .work-timeline-item::after {
    left: -31px;
    width: 18px;
    height: 18px;
  }

  .reviews-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .review-stats {
    width: fit-content;
    min-width: 0;
  }

  .review-card-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .moderation-item-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-login-row,
  .moderation-actions,
  .admin-toolbar,
  .admin-review-actions {
    grid-template-columns: 1fr;
  }

  .admin-page .brand-text {
    display: inline;
  }

  .admin-main {
    padding: 48px 0 72px;
  }

  .admin-toolbar,
  .admin-review-header {
    display: grid;
  }

  .admin-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-account-list div {
    grid-template-columns: 1fr;
  }

  .admin-status-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-card:nth-child(3) {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .admission-card.is-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admission-card.is-featured > :not(.card-index) {
    grid-column: 1;
  }

  .admission-card.is-featured .card-index {
    grid-row: auto;
    width: 52px;
    height: 52px;
  }

  .admission-card.is-featured h3 {
    font-size: 1.45rem;
  }

  .admission-card.is-featured::after {
    right: 12px;
    bottom: 0;
    font-size: 4.6rem;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2 {
    font-size: 1.82rem;
  }

  .graduate-card,
  .about-card,
  .contact-card,
  .contact-form,
  .review-card,
  .review-form-card,
  .project-card,
  .activity-card,
  .document-card,
  .admission-card {
    padding: 18px;
  }

  .document-modal-header {
    display: grid;
    padding: 16px;
  }

  .document-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .document-open-link {
    flex: 1;
  }

  .score-preview {
    padding: 16px;
  }

  .evidence-preview {
    padding: 16px;
  }

  .score-preview-header {
    display: grid;
  }

  .evidence-preview-header {
    display: grid;
  }

  .score-preview-header p {
    max-width: none;
    text-align: left;
  }

  .evidence-preview-header p {
    max-width: none;
    text-align: left;
  }

  .document-frame {
    height: 76vh;
    min-height: 520px;
  }

  .gallery-card {
    min-height: 230px;
  }

  .photo-panel {
    min-height: 480px;
  }

  .photo-panel img {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

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

  .score-ring {
    width: 104px;
    height: 104px;
  }

  .modal {
    padding: 14px;
  }

  .modal-art {
    min-height: 280px;
  }

  .ai-assistant {
    right: 14px;
    bottom: 14px;
  }

  .ai-toggle {
    width: 54px;
    height: 54px;
  }

  .ai-panel {
    right: -2px;
    bottom: 68px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
  }

  .ai-messages {
    max-height: calc(100vh - 288px);
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
