:root {
  --bg: #fbf4e8;
  --ink: #102033;
  --muted: #5d6b81;
  --line: rgba(16, 32, 51, 0.1);
  --brand: #0f4c81;
  --brand-2: #156a9a;
  --teal: #0f8a74;
  --gold: #d79d14;
  --paper: #ffffff;
  --night: #0f1f35;
  --shadow: 0 24px 60px rgba(16, 32, 51, 0.12);
  --shadow-soft: 0 14px 36px rgba(16, 32, 51, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 171, 95, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 138, 116, 0.12), transparent 24%),
    linear-gradient(180deg, #fff8ed 0%, #f5ebd7 100%);
}

body.student-page {
  color: #111;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.05), transparent 28%),
    linear-gradient(180deg, #fcfcfc 0%, #f2f2f2 100%);
}

body.student-auth-page {
  background: #07090d;
  color: #111;
}

body.student-home-page {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 171, 95, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 138, 116, 0.12), transparent 24%),
    linear-gradient(180deg, #fff8ed 0%, #f5ebd7 100%);
}

body.policy-page {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 171, 95, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 138, 116, 0.12), transparent 24%),
    linear-gradient(180deg, #fff8ed 0%, #f5ebd7 100%);
}

.student-home-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto 48px;
  display: grid;
  gap: 22px;
}

.student-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
  align-items: end;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #0f1f35, #123e67 52%, #0f8a74);
  color: #fff;
  box-shadow: var(--shadow);
}

.student-home-copy {
  display: grid;
  gap: 14px;
}

.student-home-copy h1 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.student-home-copy p,
.student-home-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.student-home-note {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.student-home-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.student-choice-cards {
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-page {
  color: #f4f7fb;
  background:
    radial-gradient(circle at top left, rgba(21, 106, 154, 0.28), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 138, 116, 0.18), transparent 26%),
    linear-gradient(180deg, #07101d 0%, #0d1a2e 48%, #09111d 100%);
}

body.admin-page .site-header {
  background: rgba(7, 16, 29, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.admin-page .brand-copy strong,
body.admin-page .brand-copy span,
body.admin-page .primary-nav a,
body.admin-page .ghost-btn,
body.admin-page .nav-toggle {
  color: #f3f7fb;
}

body.admin-page .primary-nav a::after {
  background: linear-gradient(90deg, #ffffff, #7ad7c7);
}

body.admin-page .ghost-btn,
body.admin-page .nav-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

body.admin-page .panel .ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 32, 51, 0.1);
}

body.admin-page .panel .ghost-btn:hover,
body.admin-page .panel .ghost-btn:focus-visible {
  background: #ffffff;
}

body.admin-page .solid-btn {
  color: #fff;
  background: linear-gradient(135deg, #0f4c81, #0f8a74);
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.22);
}

body.admin-page .panel {
  background: rgba(255, 255, 255, 0.96);
}

body.student-auth-page .site-header {
  display: none;
}

body.student-auth-page .brand-copy strong,
body.student-auth-page .brand-copy span,
body.student-auth-page .primary-nav a,
body.student-auth-page .ghost-btn,
body.student-auth-page .nav-toggle {
  color: #f3f7fb;
}

body.student-auth-page .primary-nav a::after {
  background: linear-gradient(90deg, #ffffff, #7ad7c7);
}

body.student-auth-page .ghost-btn,
body.student-auth-page .nav-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

body.student-page .solid-btn {
  color: #fff;
  background: linear-gradient(135deg, #111, #343434);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.18);
}

body.student-page .ghost-btn {
  color: #111;
  background: #fff;
  border: 1px solid #111;
}

body.student-page .status-pill,
body.student-page .status-pill-soft {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

body.student-page .photo-upload,
body.student-page .photo-card,
body.student-page .results-card,
body.student-page .dashboard-empty,
body.student-page .stat-card,
body.student-page .chart-wrap {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.14);
}

body.student-page .welcome-card {
  background: linear-gradient(135deg, #111, #323232);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.18);
}

body.student-page .upload-preview,
body.student-page .profile-photo {
  background: linear-gradient(135deg, #111, #3a3a3a);
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.18);
}

body.student-page .chart-grid {
  stroke: rgba(17, 17, 17, 0.1);
}

body.student-page .chart-axis,
body.student-page .chart-label,
body.student-page .chart-value {
  fill: #111;
}

body.student-page .chart-point {
  stroke: #111;
}

body,
a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  cursor: pointer;
}

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

.section {
  padding: 84px 0;
}

.eyebrow,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mini-label {
  color: rgba(16, 32, 51, 0.62);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.hero-copy h1,
.hero-card h2 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p,
.hero-copy p,
.hero-notes p,
.panel-note,
.dashboard-empty p,
.details-grid dd,
.step-card p,
.footer-brand p,
.footer-contact p {
  color: var(--muted);
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 235, 0.82);
  border-bottom: 1px solid rgba(16, 32, 51, 0.06);
}

.header-inner {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand-mark,
.brand-logo,
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.22);
}

.brand-logo {
  display: block;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.12);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: clamp(0.96rem, 1.5vw, 1.12rem);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-copy span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(16, 32, 51, 0.84);
}

.primary-nav a {
  position: relative;
  padding-bottom: 4px;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.solid-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.solid-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.22);
}

.ghost-btn {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.text-link {
  min-height: 44px;
  padding-inline: 6px;
  color: var(--brand);
  font-weight: 800;
}

.solid-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.solid-btn:focus-visible,
.ghost-btn:focus-visible,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ticker-band {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  background: linear-gradient(135deg, #27415f, #0f8a74);
  color: #fff;
  overflow: hidden;
}

.ticker-label {
  margin-left: 16px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-viewport {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 16px;
  align-items: stretch;
  animation: ticker-marquee 26s linear infinite;
}

.ticker-card {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

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

.ticker-card h3 {
  font-size: 1.08rem;
  color: #fff;
}

.ticker-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.rank {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
  flex: 0 0 auto;
}

@keyframes ticker-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero {
  padding: 22px 0 40px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #0f1f35, #123e67 52%, #0f8a74);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(8px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy .eyebrow::before {
  background: rgba(255, 255, 255, 0.88);
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 6.2rem);
  max-width: 12ch;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.hero-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-card h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
}

.hero-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 16px 28px rgba(15, 76, 129, 0.22);
}

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

.hero-metrics article {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.hero-metrics strong,
.stat-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 900;
  color: var(--ink);
}

.hero-metrics span,
.stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-notes {
  display: grid;
  gap: 10px;
}

.hero-notes p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff, #eef7f4);
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 251, 243, 0.96), rgba(248, 240, 226, 0.98)),
    linear-gradient(120deg, rgba(15, 76, 129, 0.04), rgba(15, 138, 116, 0.05));
  border: 1px solid rgba(16, 32, 51, 0.07);
  min-height: calc(100svh - 166px);
}

.home-hero::after {
  inset: auto -18% -34% auto;
  width: 340px;
  height: 340px;
  background: rgba(15, 138, 116, 0.08);
}

.home-hero .hero-copy {
  color: var(--ink);
}

.home-hero .hero-copy .eyebrow {
  color: var(--brand);
}

.home-hero .hero-copy .eyebrow::before {
  background: currentColor;
}

.home-hero .hero-copy h1 {
  color: var(--night);
  max-width: 10ch;
}

.home-hero .hero-copy p {
  color: var(--muted);
}

.home-hero .hero-actions .ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 32, 51, 0.1);
}

.home-hero .hero-actions .text-link {
  color: var(--brand);
}

.home-hero .hero-banner {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: stretch;
}

.hero-banner-frame {
  position: relative;
  width: min(100%, 640px);
  margin-left: auto;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(15, 31, 53, 0.12), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 0 22px 46px rgba(16, 32, 51, 0.14);
  overflow: hidden;
}

.hero-banner-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, var(--brand), var(--teal), #f1c232);
}

.hero-banner-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  background: #fff;
}

.hero-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.demo-btn {
  color: #132238;
  background: linear-gradient(135deg, #f6d45d, #ffe6a2);
  box-shadow: 0 12px 24px rgba(214, 171, 95, 0.22);
}

.demo-btn:hover,
.demo-btn:focus-visible {
  color: #0f1b2d;
  filter: brightness(1.02);
}

.feature-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(16, 32, 51, 0.06);
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.08);
}

.feature-carousel::before,
.feature-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}

.feature-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(252, 246, 236, 1), rgba(252, 246, 236, 0));
}

.feature-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(252, 246, 236, 1), rgba(252, 246, 236, 0));
}

.feature-track,
.carousel-track {
  display: flex;
  width: max-content;
  gap: 16px;
  align-items: stretch;
  will-change: transform;
  animation: feature-marquee 12s linear infinite;
}

.feature-carousel:hover .feature-track,
.feature-carousel:hover .carousel-track,
.ticker-viewport:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes feature-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.feature-card {
  flex: 0 0 260px;
  min-height: 196px;
  padding: 18px 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 0 18px 34px rgba(16, 32, 51, 0.1);
  display: grid;
  align-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.9);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--teal));
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), transparent 70%);
  z-index: -1;
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--night), var(--brand));
  box-shadow: 0 10px 20px rgba(16, 32, 51, 0.18);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-height: 30px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.feature-card h3 {
  margin: 0;
  font-size: clamp(1.22rem, 1.5vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--night);
}

.feature-card p {
  margin: 0;
  color: rgba(16, 32, 51, 0.68);
  line-height: 1.5;
  font-size: 0.92rem;
}

.feature-card a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(15, 138, 116, 0.12));
  color: var(--night);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.05);
}

.feature-card a:hover,
.feature-card a:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.18), rgba(15, 138, 116, 0.18));
  box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.08), 0 10px 20px rgba(16, 32, 51, 0.08);
}

.feature-blue {
  background:
    radial-gradient(circle at top right, rgba(15, 76, 129, 0.14), transparent 28%),
    linear-gradient(180deg, #edf6ff, #ffffff);
}

.feature-cream {
  background:
    radial-gradient(circle at top right, rgba(214, 171, 95, 0.18), transparent 28%),
    linear-gradient(180deg, #fff8ec, #ffffff);
}

.feature-green {
  background:
    radial-gradient(circle at top right, rgba(15, 138, 116, 0.16), transparent 28%),
    linear-gradient(180deg, #ebfbf4, #ffffff);
}

.visual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-green,
.cta-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 32, 51, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-green {
  background: linear-gradient(135deg, #0f8a74, #1ca48e);
}

.cta-red {
  background: linear-gradient(135deg, #d9425c, #ef5b6a);
}

.cta-green:hover,
.cta-red:hover,
.cta-green:focus-visible,
.cta-red:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(16, 32, 51, 0.18);
  filter: saturate(1.06);
}

.portal-section {
  background: linear-gradient(180deg, #fff3df, #fff8ef);
}

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

.portal-card {
  padding: 26px;
  border-radius: 28px;
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 0 18px 44px rgba(16, 32, 51, 0.08);
}

.portal-card h3,
.faculty-card h3,
.testimonial-card strong,
.footer-brand h3,
.footer-links h4,
.footer-contact h4 {
  margin: 0;
}

.portal-tag {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-card.admin {
  background: linear-gradient(180deg, #f3f8ff, #fffdf7);
}

.portal-card.student {
  background: linear-gradient(180deg, #fff4e4, #fffdf8);
}

.portal-card.teacher {
  background: linear-gradient(180deg, #edf9f4, #fffdf8);
}

.portal-card.admin .portal-tag {
  color: var(--brand);
  background: rgba(15, 76, 129, 0.12);
}

.portal-card.student .portal-tag {
  color: #a16207;
  background: rgba(240, 180, 41, 0.16);
}

.portal-card.teacher .portal-tag {
  color: var(--teal);
  background: rgba(15, 138, 116, 0.14);
}

.portal-card .portal-btn {
  margin-top: auto;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.22);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h3,
.welcome-card h4,
.results-card h4,
.step-card h3,
.footer-brand h3,
.footer-links h4,
.footer-contact h4 {
  margin: 0;
}

.panel-heading h3 {
  font-size: 1.35rem;
}

.panel-note {
  margin: 0 0 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.1);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill-soft {
  background: rgba(15, 138, 116, 0.12);
  color: var(--teal);
}

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

.photo-upload {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff, #f2f8ff);
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.upload-preview,
.profile-photo {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f4c81, #0f8a74);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(15, 76, 129, 0.18);
}

.upload-preview img,
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-copy {
  display: grid;
  gap: 8px;
}

.photo-upload-copy label,
.field > span {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.photo-upload-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.photo-upload input[type="file"] {
  width: 100%;
  padding: 12px 0 0;
  color: var(--muted);
}

.photo-upload input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

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

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

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(93, 107, 129, 0.72);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(15, 76, 129, 0.28);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

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

.dashboard-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 520px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(15, 138, 116, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfdff, #f3f7fb);
  border: 1px dashed rgba(16, 32, 51, 0.14);
}

.empty-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(15, 138, 116, 0.12));
  font-size: 2rem;
}

.dashboard-empty h4 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

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

.welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f4c81, #0f8a74);
  box-shadow: 0 18px 40px rgba(15, 76, 129, 0.22);
}

.welcome-card h4 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.welcome-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.welcome-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-overview {
  display: grid;
  gap: 16px;
}

.photo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.profile-photo {
  position: relative;
  flex: 0 0 auto;
}

.profile-photo span {
  display: block;
}

.photo-card h4 {
  margin: 0;
  font-size: 1.18rem;
}

.photo-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.details-grid div {
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.details-grid dt {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.details-grid dd {
  margin: 8px 0 0;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.details-span {
  grid-column: 1 / -1;
}

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

.stat-card {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.results-card {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.chart-card {
  overflow: hidden;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-title-row h4 {
  font-size: 1.15rem;
}

.card-title-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.card-title-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 138, 116, 0.12);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.marks-list {
  display: grid;
  gap: 12px;
}

.mark-item {
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.mark-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mark-item-head strong {
  font-size: 1rem;
}

.mark-item-head span {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand);
}

.mark-subline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.mark-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(16, 32, 51, 0.08);
}

.mark-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--teal));
}

.chart-wrap {
  background: linear-gradient(180deg, #fbfdff, #eef6ff);
  border-radius: 22px;
  padding: 12px;
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid {
  stroke: rgba(16, 32, 51, 0.08);
  stroke-width: 1;
  stroke-dasharray: 5 8;
}

.chart-axis {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-value {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.chart-point {
  fill: #fff;
  stroke: var(--teal);
  stroke-width: 3;
}

.chart-hit {
  fill: transparent;
}

.how-it-works {
  background: linear-gradient(180deg, rgba(237, 245, 255, 0.8), rgba(255, 255, 255, 0.96));
}

.about {
  background: linear-gradient(180deg, #eef7ec, #fbfff8);
}

.about-grid {
  display: grid;
  gap: 18px;
}

.about-grid article {
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.team {
  background: linear-gradient(180deg, #f1f6ff, #fbfdff);
}

.faculty-slider {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.faculty-slider::-webkit-scrollbar {
  display: none;
}

.faculty-track {
  display: flex;
  width: max-content;
  gap: 14px;
  will-change: scroll-position;
}

.faculty-set {
  display: flex;
  gap: 14px;
}

.faculty-card {
  flex: 0 0 255px;
  width: 255px;
  padding: 15px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.faculty-featured {
  position: relative;
  flex-basis: 300px;
  width: 300px;
  display: grid;
  grid-template-rows: 1fr auto;
  height: 330px;
  padding: 0;
  overflow: hidden;
}

.faculty-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35)),
    linear-gradient(135deg, rgba(15, 76, 129, 0.16), rgba(15, 138, 116, 0.16));
}

.faculty-photo-wrap.is-missing::after {
  content: "Add founder.jpg";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.58);
}

.faculty-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-copy {
  padding: 8px 12px 10px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.faculty-post {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 800;
}

.faculty-featured h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.faculty-qualification {
  margin: 0;
  color: var(--ink);
  line-height: 1.28;
  font-weight: 700;
  font-size: 0.64rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.faculty-subject {
  margin: 0;
  color: var(--brand);
  line-height: 1.28;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.faculty-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
}

.faculty-card p,
.faculty-copy p {
  margin: 8px 0;
  font-weight: 800;
  color: var(--brand);
}

.faculty-featured .faculty-copy p {
  margin: 0;
}

.faculty-copy .faculty-qualification {
  color: var(--ink);
  font-size: 0.64rem;
  line-height: 1.3;
}

.faculty-copy .faculty-subject {
  color: var(--brand);
  font-size: 0.68rem;
  line-height: 1.25;
}

.faculty-card span,
.faculty-copy .faculty-post {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.testimonials {
  background: linear-gradient(135deg, #1f3148, #14385f 55%, #0f8a74);
  color: #fff;
}

.section-heading.light .eyebrow,
.section-heading.light h2,
.section-heading.light p {
  color: #fff;
}

.section-heading.light .eyebrow::before {
  background: rgba(255, 255, 255, 0.85);
}

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

.testimonial-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
  margin-top: 0;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
}

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

.step-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.step-no {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.1);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.site-footer {
  padding: 72px 0 28px;
  background: linear-gradient(180deg, #132035, #08111d);
  color: #d8e4f3;
}

.student-hero {
  padding-top: 24px;
}

.student-hero-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 22px;
  align-items: center;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #0f1f35, #123e67 52%, #0f8a74);
  box-shadow: var(--shadow);
}

.student-hero-copy {
  display: grid;
  gap: 18px;
}

.student-hero-shell h1 {
  margin: 12px 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 14ch;
}

.student-hero-shell p {
  max-width: 62ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.student-hero-badge {
  min-width: 220px;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.student-hero-badge span {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.student-hero-badge strong {
  display: block;
  margin-top: 10px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 2rem;
}

.student-hero-badge p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.student-page-title {
  margin: 8px 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.student-auth-shell {
  position: relative;
  width: min(1240px, calc(100% - 28px));
  margin: 30px auto 40px;
  display: grid;
  gap: 20px;
  padding: 12px 0 20px;
}

.student-auth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: start;
}

.student-auth-single {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

.dbk-watermark {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  font-size: clamp(3.5rem, 9vw, 10rem);
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}

.student-auth-card,
.student-preview-card {
  position: relative;
  z-index: 1;
}

.student-auth-card {
  background: rgba(244, 246, 249, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 26px 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
}

.student-login-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.student-setup-card {
  display: grid;
  gap: 18px;
}

.student-auth-header {
  display: grid;
  gap: 12px;
}

.student-auth-header h1,
.student-auth-header h2 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.student-auth-header h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.student-auth-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.student-auth-header p,
.auth-help-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.student-login-form .field {
  gap: 10px;
}

.student-login-form .field > span,
.single-form .field > span {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.single-form .field {
  gap: 10px;
}

.single-form input,
.single-form textarea,
.student-login-form input {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
}

.single-form input[readonly],
.student-login-form input[readonly] {
  background: rgba(15, 76, 129, 0.06);
  border-style: dashed;
}

.single-form textarea {
  min-height: 100px;
}

.single-form .field {
  gap: 10px;
}

.photo-field {
  margin-top: 4px;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.06);
  color: var(--ink);
  font-weight: 700;
}

.toggle-row input {
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
}

.single-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.student-dashboard-shell,
.student-results-shell,
.student-profile-shell {
  width: min(1200px, calc(100% - 28px));
  margin: 28px auto 44px;
  display: grid;
  gap: 20px;
}

.dashboard-topbar,
.profile-head,
.page-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.96), rgba(15, 138, 116, 0.94));
  color: #fff;
  box-shadow: 0 20px 42px rgba(15, 76, 129, 0.18);
}

.dashboard-topbar h1,
.profile-head h1,
.page-banner h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-family: "Merriweather", Georgia, serif;
}

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

.logout-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dashboard-grid,
.results-layout,
.profile-layout {
  display: grid;
  gap: 20px;
}

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

.results-layout,
.profile-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 18px 38px rgba(16, 32, 51, 0.06);
  border-radius: 26px;
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-header h3,
.stat-panel h3,
.profile-card-panel h2,
.virtual-id-panel strong {
  margin: 0;
}

.profile-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 12px;
}

.profile-inline img,
.profile-avatar-box img,
#avatarImage {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(15, 76, 129, 0.12);
}

.profile-inline-text h3,
.profile-summary h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
}

.profile-avatar-box {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(15, 138, 116, 0.12));
  color: var(--brand);
  font-weight: 900;
  border: 1px solid rgba(15, 76, 129, 0.08);
}

.virtual-id-box {
  background: linear-gradient(135deg, #0f1f35, #123e67 55%, #0f8a74);
  color: #fff;
  border-radius: 22px;
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.virtual-id-box strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 1.3rem;
}

.virtual-id-box p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.id-chip {
  min-width: 78px;
  justify-self: end;
}

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

.recent-results {
  display: grid;
  gap: 12px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafcff, #f5f9ff);
  border: 1px solid rgba(15, 76, 129, 0.06);
}

.result-row strong,
.result-row b {
  display: block;
}

.result-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 138, 116, 0.12);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.78rem;
}

.admin-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 26px auto 48px;
  display: grid;
  gap: 20px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: end;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #0f1f35, #123e67 52%, #0f8a74);
  box-shadow: 0 28px 62px rgba(4, 10, 18, 0.28);
  overflow: hidden;
}

.admin-hero-copy {
  display: grid;
  gap: 14px;
}

.admin-hero-copy h1 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 11ch;
}

.admin-hero-copy p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.admin-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-hero-metrics article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.admin-hero-metrics strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 900;
}

.admin-hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

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

.admin-login-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.admin-login-actions {
  justify-content: flex-start;
}

.admin-help-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-portal {
  display: grid;
  gap: 20px;
}

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

.admin-toolbar-head {
  margin-bottom: 0;
}

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

.admin-counts .status-pill b {
  margin-left: 6px;
}

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

.admin-search-field {
  width: 100%;
}

.admin-search-field input {
  min-height: 52px;
}

.admin-refresh-btn {
  min-height: 52px;
}

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

.admin-list-panel,
.admin-detail-panel {
  display: grid;
  gap: 18px;
}

.admin-directory-panel {
  gap: 16px;
}

.admin-student-list {
  display: grid;
  gap: 12px;
}

.admin-student-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: linear-gradient(180deg, #f8fbff, #f2f7fd);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
}

.admin-student-row.is-active {
  border-color: rgba(15, 76, 129, 0.26);
  background: linear-gradient(180deg, #eef6ff, #eafaf5);
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.1);
}

.admin-student-chip {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 12px 24px rgba(15, 76, 129, 0.22);
}

.admin-student-copy {
  display: grid;
  gap: 3px;
}

.admin-student-copy strong {
  font-size: 1rem;
}

.admin-student-copy span,
.admin-student-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-row-open {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.76rem;
}

.admin-empty-list,
.admin-empty-state {
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(16, 32, 51, 0.14);
  background: linear-gradient(180deg, #fbfdff, #f5f8fc);
  color: var(--muted);
}

.admin-empty-state strong,
.admin-empty-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.02rem;
}

.admin-empty-state p,
.admin-empty-list p {
  margin: 0;
  line-height: 1.65;
}

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

.admin-profile-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(15, 138, 116, 0.08));
  border: 1px solid rgba(15, 76, 129, 0.08);
}

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

.admin-student-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 28px auto 44px;
  display: grid;
  gap: 20px;
}

.admin-student-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #0f1f35, #123e67 52%, #0f8a74);
  box-shadow: 0 28px 62px rgba(4, 10, 18, 0.28);
  color: #fff;
}

.admin-student-hero h1 {
  margin: 10px 0 6px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.admin-student-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.admin-student-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: start;
}

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

.admin-student-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.admin-student-meta-grid div {
  display: grid;
  gap: 6px;
}

.admin-student-meta-grid strong {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-student-meta-grid span {
  color: var(--ink);
  line-height: 1.5;
  font-weight: 700;
}

.admin-id-card-preview {
  display: grid;
  gap: 10px;
}

.admin-id-card-preview .id-card-preview {
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
}

.policy-shell {
  width: min(1100px, calc(100% - 28px));
  margin: 28px auto 48px;
  display: grid;
  gap: 20px;
}

.policy-banner {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #0f1f35, #123e67 52%, #0f8a74);
  color: #fff;
  box-shadow: var(--shadow);
}

.policy-banner h1 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.policy-banner p {
  margin: 0;
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

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

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

.policy-card h2,
.policy-card h3 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: -0.04em;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-note {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(15, 76, 129, 0.08);
  border: 1px solid rgba(15, 76, 129, 0.1);
  color: var(--muted);
  line-height: 1.7;
}

.admin-photo-box {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--night), var(--brand));
  box-shadow: 0 16px 30px rgba(15, 76, 129, 0.2);
}

.admin-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-detail-form .field {
  gap: 10px;
}

.admin-detail-form input,
.admin-detail-form textarea {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 16px;
}

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

.admin-detail-form input[readonly] {
  background: rgba(15, 76, 129, 0.06);
  border-style: dashed;
}

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

.admin-wide-field {
  grid-column: 1 / -1;
}

.admin-actions {
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-danger-btn {
  color: #c22544;
  border-color: rgba(194, 37, 68, 0.18);
}

.admin-danger-btn:hover,
.admin-danger-btn:focus-visible {
  background: rgba(194, 37, 68, 0.08);
}

.admin-progress-panel {
  display: grid;
  gap: 18px;
  padding: 4px 0 0;
}

.admin-progress-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-progress-summary article {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.admin-progress-summary span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-progress-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.1;
}

.admin-progress-list {
  display: grid;
  gap: 12px;
}

.admin-progress-row {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: linear-gradient(180deg, #fbfdff, #f4f8fc);
  display: grid;
  gap: 14px;
}

.admin-progress-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.admin-progress-row-grid .admin-wide-field {
  grid-column: 1 / -1;
}

.admin-row-remove {
  min-height: 34px;
  padding-inline: 12px;
}

.admin-progress-panel .field input {
  min-height: 48px;
}

@media (max-width: 900px) {
  .student-auth-shell {
    width: min(100%, calc(100% - 18px));
  }

  .student-auth-grid {
    grid-template-columns: 1fr;
  }

  .student-home-shell {
    width: min(100%, calc(100% - 18px));
  }

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

  .dashboard-grid,
  .results-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-shell {
    width: min(100%, calc(100% - 18px));
  }

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

  .admin-student-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-toolbar-row,
  .admin-field-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-progress-summary,
  .admin-progress-row-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-student-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-shell {
    width: min(100%, calc(100% - 18px));
  }
}

@media (max-width: 640px) {
  .student-auth-shell {
    margin-top: 20px;
  }

  .student-home-shell {
    margin-top: 18px;
  }

  .student-home-hero {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .student-auth-card {
    padding: 20px 16px 18px;
  }

  .student-auth-header h1 {
    font-size: clamp(1.85rem, 10vw, 2.6rem);
  }

  .student-auth-header h2 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .single-form-actions,
  .topbar-actions,
  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .single-form-actions .ghost-btn,
  .single-form-actions .solid-btn,
  .topbar-actions .ghost-btn,
  .topbar-actions .solid-btn,
  .header-actions .ghost-btn {
    flex: 1 1 auto;
    width: 100%;
  }

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

  .dashboard-topbar,
  .profile-head,
  .page-banner {
    padding: 18px 16px;
  }

  .panel,
  .student-auth-card {
    border-radius: 20px;
  }

  .student-choice-cards {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    margin-top: 18px;
  }

  .admin-student-shell {
    width: min(100%, calc(100% - 18px));
    margin-top: 18px;
  }

  .admin-hero,
  .admin-login-panel,
  .admin-toolbar,
  .admin-list-panel,
  .admin-detail-panel {
    padding: 18px 16px;
    border-radius: 20px;
  }

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

  .admin-profile-strip {
    align-items: flex-start;
  }

  .admin-actions,
  .admin-counts {
    width: 100%;
  }

  .admin-actions .ghost-btn,
  .admin-actions .solid-btn,
  .admin-login-actions .solid-btn,
  .admin-toolbar-row .ghost-btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .admin-profile-actions,
  .admin-progress-summary,
  .admin-progress-row-grid {
    grid-template-columns: 1fr;
  }

  .admin-student-actions {
    width: 100%;
  }

  .admin-student-meta-grid {
    grid-template-columns: 1fr;
  }

  .policy-banner {
    padding: 22px 18px;
    border-radius: 24px;
  }
}

.student-panel-note {
  margin-bottom: 0;
}

.student-entry {
  padding-top: 28px;
}

.student-entry-shell {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.student-entry-intro {
  width: min(760px, 100%);
  display: grid;
  gap: 8px;
}

.student-entry-intro h2 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.student-entry-intro p {
  margin: 0;
  color: #444;
  line-height: 1.65;
}

.student-mini-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: #fafafa;
  border: 1px solid rgba(17, 17, 17, 0.16);
}

.student-mini-banner strong {
  display: block;
  margin-top: 8px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.student-mini-banner p {
  margin: 0;
  max-width: 34ch;
  color: #444;
  line-height: 1.65;
}

.student-hero-actions .ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.id-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #111 0%, #111 42%, #fff 42%, #fff 100%);
  border: 1.5px solid #111;
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.12);
}

.id-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  word-break: break-word;
}

.id-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.id-card > div {
  max-width: 60%;
}

.id-card strong,
.id-card .mini-label {
  color: #fff;
}

.virtual-id-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.id-card-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 1600;
  object-fit: contain;
  max-width: 620px;
  margin-inline: auto;
  border-radius: 28px;
  background: #f7f7f7;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 22px 48px rgba(17, 17, 17, 0.12);
}

.id-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.field-muted-box {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid rgba(17, 17, 17, 0.16);
}

.field-muted-box p {
  margin: 0;
  color: #444;
  line-height: 1.7;
}

.flip-scene {
  width: min(760px, 100%);
  margin: 0 auto;
  perspective: 1800px;
}

.flip-card {
  display: grid;
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.is-flipped {
  transform: rotateY(180deg);
}

.flip-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
}

.compact-heading {
  margin-bottom: 0;
}

.flip-trigger {
  background: #111;
  color: #fff;
  border-color: #111;
}

.student-back-panel {
  display: grid;
  gap: 16px;
  min-height: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #111;
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.08);
}

.student-back-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-large {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.18);
  box-shadow: none;
}

.student-back-top h3 {
  margin: 6px 0 0;
  font-size: 1.6rem;
}

.student-back-list {
  display: grid;
  gap: 10px;
}

.student-back-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.student-back-list strong {
  color: #111;
}

.student-back-list span {
  color: #555;
  text-align: right;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.footer-brand,
.footer-links,
.footer-contact {
  display: grid;
  gap: 12px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.55rem;
}

.footer-logo {
  width: 60px;
  height: 60px;
}

.footer-links a {
  width: fit-content;
  color: rgba(216, 228, 243, 0.86);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer-contact {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact .solid-btn {
  width: fit-content;
}

[id] {
  scroll-margin-top: 110px;
}

@media (max-width: 1080px) {
  .hero-shell,
  .portal-grid,
  .results-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portal-cards,
  .about-grid,
  .testimonial-grid,
  .steps-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section {
    padding: 66px 0;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    gap: 0;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(16, 32, 51, 0.08);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .primary-nav a {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .primary-nav a::after {
    display: none;
  }

  .site-header .header-actions > .ghost-btn {
    display: none;
  }

  .hero-shell {
    padding: 24px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .hero-actions .solid-btn,
  .hero-actions .ghost-btn,
  .form-actions .solid-btn,
  .form-actions .ghost-btn {
    width: 100%;
  }

  .hero-metrics,
  .field-grid-id,
  .field-grid,
  .details-grid,
  .portal-cards,
  .about-grid,
  .testimonial-grid,
  .steps-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .faculty-slider {
    padding-inline: 0;
  }

  .faculty-card {
    flex-basis: min(82vw, 280px);
    width: min(82vw, 280px);
  }

  .faculty-featured {
    flex-basis: min(88vw, 300px);
    width: min(88vw, 300px);
    height: 330px;
  }

  .faculty-photo-wrap {
    min-height: 165px;
  }

  .card-title-row,
  .welcome-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-mini-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-back-list div {
    flex-direction: column;
    align-items: flex-start;
  }

  .id-card,
  .dashboard-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .id-card > div {
    max-width: 100%;
  }

  .photo-upload,
  .photo-card {
    grid-template-columns: 1fr;
  }

  .photo-upload,
  .photo-card {
    justify-items: start;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions .ghost-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .section-shell {
    width: min(1180px, calc(100% - 20px));
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .panel,
  .step-card,
  .results-card,
  .hero-card {
    border-radius: 24px;
  }

  .profile-photo,
  .upload-preview {
    width: 82px;
    height: 82px;
    border-radius: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
