:root {
  --ink: #08111f;
  --ink-soft: #101b2d;
  --ink-mid: #1a2a40;
  --surface: #e9edf3;
  --surface-2: #f4f6f9;
  --white: #ffffff;
  --text: #101b2d;
  --muted: #5a687a;
  --gold: #c4a35a;
  --gold-bright: #dfc07a;
  --gold-deep: #8f7333;
  --aqua: #1a6b63;
  --aqua-bright: #2a9b90;
  --aqua-deep: #0f4f49;
  --sky: #4a7fb5;
  --danger: #c23b4e;
  --warning: #d97706;
  --success: #1f8a66;
  --border: rgba(16, 27, 45, 0.1);
  --border-strong: rgba(16, 27, 45, 0.16);
  --glow: 0 0 0 1px rgba(196, 163, 90, 0.22), 0 24px 60px rgba(8, 17, 31, 0.16);
  --shadow: 0 18px 48px rgba(8, 17, 31, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(196, 163, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 8%, rgba(26, 107, 99, 0.1), transparent 50%),
    linear-gradient(180deg, #dfe5ee 0%, var(--surface) 38%, #d8dee8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 56px;
}

/* —— Typography —— */
.eyebrow,
.card-label,
.hero-kicker,
.demo-ad-label,
.summary-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

p {
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

/* —— Buttons —— */
.button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition:
    transform 220ms var(--ease-spring),
    box-shadow 220ms var(--ease-out),
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.button:hover,
.nav-cta:hover,
.button:focus-visible,
.nav-cta:focus-visible {
  transform: translateY(-3px) scale(1.02);
}

.button:active,
.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

.button-primary,
.nav-cta {
  color: #08111f;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 14px 36px rgba(143, 115, 51, 0.32);
}

.button-primary:hover,
.nav-cta:hover {
  box-shadow: 0 18px 44px rgba(143, 115, 51, 0.42);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.button-danger {
  color: #fff;
  background: linear-gradient(135deg, #e06b7c, var(--danger));
  box-shadow: 0 14px 30px rgba(194, 59, 78, 0.28);
}

.nav-cta-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.nav-cta-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* —— Full-bleed portal hero —— */
.site-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    calc(16px + env(safe-area-inset-top, 0px))
    clamp(16px, 4vw, 48px)
    calc(48px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform-origin: center 55%;
  will-change: transform;
  animation: heroFloat 10s ease-in-out infinite;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(7, 17, 31, 0.82) 0%,
      rgba(7, 17, 31, 0.55) 32%,
      rgba(7, 17, 31, 0.28) 58%,
      rgba(7, 17, 31, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 17, 31, 0.28) 0%,
      rgba(7, 17, 31, 0.12) 36%,
      rgba(7, 17, 31, 0.78) 100%
    );
}

.site-hero .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  animation: fadeDown 700ms var(--ease-out) both;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  color: #08111f;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 10px 28px rgba(143, 115, 51, 0.35);
}

.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: #08111f;
  box-shadow:
    0 0 0 2px rgba(196, 163, 90, 0.7),
    0 0 0 5px rgba(26, 107, 99, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.35);
  filter: brightness(1.1) contrast(1.05) saturate(1.05);
  transition: transform 280ms var(--ease-spring), box-shadow 280ms var(--ease-out);
}

.brand-logo:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 2px rgba(223, 192, 122, 0.9),
    0 0 0 6px rgba(26, 107, 99, 0.28),
    0 16px 36px rgba(0, 0, 0, 0.4);
}

.brand-logo-sm {
  width: 40px;
  height: 40px;
}

.brand-logo-lg {
  width: 72px;
  height: 72px;
}

.brand-lockup strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-lockup span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  opacity: 0.72;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-content {
  position: relative;
  max-width: 820px;
  padding-bottom: 28px;
  margin-bottom: 8px;
  animation: fadeUp 900ms var(--ease-out) 120ms both;
}

.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -28px -40px -48px -28px;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 85% at 18% 70%,
    rgba(7, 17, 31, 0.78) 0%,
    rgba(7, 17, 31, 0.52) 42%,
    rgba(7, 17, 31, 0.18) 68%,
    transparent 82%
  );
}

.hero-content .brand-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  background: linear-gradient(120deg, #fff 18%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.hero-content .hero-text {
  max-width: 540px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
  font-weight: 500;
  color: #ffffff;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.7);
}

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

.hero-actions .button-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-actions .button-primary:hover {
  background: linear-gradient(135deg, #ead08a, var(--gold-bright));
}

.hero-actions .button-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Legacy compact hero (apply page) */
.hero.compact-hero {
  position: relative;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 17, 31, 0.94), rgba(26, 107, 99, 0.72)),
    url("assets/zubair-navy-desk.jpg") center 20% / cover;
  box-shadow: var(--glow);
}

.hero.compact-hero .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hero.compact-hero .eyebrow {
  color: var(--gold-bright);
}

.hero.compact-hero h1 {
  color: #fff;
  margin-top: 6px;
}

/* —— Sections —— */
/* Trust strip — scholarship portal pattern */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
  color: #fff;
}

.trust-strip > div {
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 28px);
  border: 1px solid rgba(196, 163, 90, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #08111f 0%, #132338 60%, #0f4f49 100%);
  box-shadow: 0 14px 34px rgba(8, 17, 31, 0.14);
}

.trust-strip > div:last-child {
  border-right: 1px solid rgba(196, 163, 90, 0.2);
}

.trust-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.trust-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    border: 1px solid rgba(196, 163, 90, 0.2);
  }

  .trust-strip > div:last-child {
    border-bottom: 1px solid rgba(196, 163, 90, 0.2);
  }
}

.home-application-status {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(194, 59, 78, 0.32);
  border-radius: var(--radius-lg);
  background: #fff4f4;
  color: #7f1d1d;
  box-shadow: 0 12px 30px rgba(8, 17, 31, 0.1);
}

.home-application-status strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.home-application-status span {
  color: #8e3b3b;
}

[data-apply-link].is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
  filter: grayscale(0.25);
  pointer-events: none;
}

.portal-main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto 64px;
}

.section {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 246, 249, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-top: 10px;
  color: var(--ink);
}

.section-heading p,
.info-card p:last-child,
.criteria-panel li,
.conditional-panel p,
.upload-section p {
  color: var(--muted);
  line-height: 1.72;
}

.compact-heading {
  margin: 28px 0 16px;
}

.compact-heading h3 {
  margin-top: 8px;
}

/* How it works — not card-heavy */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.info-card {
  padding: clamp(22px, 3vw, 32px);
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  transition: background 240ms ease;
}

.info-card:last-child {
  border-right: none;
}

.info-card:hover {
  background: linear-gradient(180deg, rgba(196, 163, 90, 0.1), transparent);
}

.info-card .step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(196, 163, 90, 0.22), rgba(26, 107, 99, 0.12));
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.info-card h3 {
  margin-top: 8px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

/* Story band */
.story-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-height: 420px;
}

.story-band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    linear-gradient(145deg, #0f4f49 0%, #08111f 52%, #1a2a40 100%);
}

.story-band-copy .eyebrow {
  color: var(--gold-bright);
}

.story-band-copy h2 {
  margin: 12px 0 0;
  max-width: 16ch;
}

.story-band-copy p {
  max-width: 42ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.story-band-photo {
  min-height: 360px;
  overflow: hidden;
}

.story-band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 800ms var(--ease-out);
}

.story-band:hover .story-band-photo img {
  transform: scale(1.04);
}

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

.criteria-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(233, 237, 243, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border);
  box-shadow: none;
  transition: transform 250ms var(--ease-out), border-color 250ms ease, box-shadow 250ms ease;
}

.criteria-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 163, 90, 0.4);
  box-shadow: 0 12px 28px rgba(8, 17, 31, 0.08);
}

.criteria-panel h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.criteria-panel ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.criteria-panel li + li {
  margin-top: 8px;
}

/* Demo ad / CTA strip */
.demo-ad {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
  margin-top: 22px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--ink);
  box-shadow: var(--glow);
}

.demo-ad-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
}

.demo-ad-label {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(196, 163, 90, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(196, 163, 90, 0.35);
}

.demo-ad h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.demo-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.demo-ad-actions .button-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.demo-ad-photo {
  position: relative;
  min-height: 340px;
  height: 100%;
  overflow: hidden;
  background: #0a1524;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-ad-photo img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  transition: transform 800ms var(--ease-out);
}

.demo-ad:hover .demo-ad-photo img {
  transform: scale(1.02);
}

.photo-focus-top {
  object-position: center center !important;
}

.application-section {
  text-align: left;
}

.application-section .button {
  margin-top: 8px;
}

/* —— Forms —— */
.application-form {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: #243447;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.2);
  transform: translateY(-1px);
}

input[type="file"] {
  padding: 12px;
  background: var(--surface-2);
}

.form-actions,
.hero-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.conditional-panel,
.upload-section {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(238, 243, 248, 0.9), #fff);
  border: 1px solid var(--border);
}

.conditional-panel h3,
.upload-section h3 {
  margin-top: 8px;
  font-size: 1.4rem;
}

.consent-row {
  margin-top: 20px;
}

.checkbox.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.checkbox.consent input {
  width: auto;
  margin-top: 4px;
}

.form-message {
  margin: 16px 0 0;
  font-weight: 600;
}

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

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

.inline-message {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 600;
}

/* —— Track —— */
.track-section {
  position: relative;
  overflow: hidden;
}

.track-section::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.2), transparent 70%);
  pointer-events: none;
}

.track-form {
  max-width: 640px;
}

.track-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.track-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.track-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
}

.track-result.track-error {
  border-color: rgba(225, 29, 72, 0.3);
  background: rgba(225, 29, 72, 0.06);
  color: #9f1239;
}

.track-loading {
  margin: 0;
  color: var(--muted);
}

.track-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.track-card-top h3 {
  margin-top: 6px;
  font-size: 1.6rem;
}

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

.track-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.track-card-meta strong {
  color: var(--text);
}

.track-msg {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
}

.track-msg-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.track-msg-heading {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.track-msg-body p {
  margin: 0 0 6px;
}

.track-msg-pending {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.track-msg-review {
  background: rgba(26, 107, 99, 0.1);
  border: 1px solid rgba(26, 107, 99, 0.25);
}

.track-msg-shortlisted {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.track-msg-approved {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.track-msg-rejected {
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* —— Status pills —— */
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pending {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.status-under-review {
  color: #075985;
  background: rgba(26, 107, 99, 0.16);
}

.status-shortlisted {
  color: #6b21a8;
  background: rgba(168, 85, 247, 0.14);
}

.status-approved {
  color: #065f46;
  background: rgba(16, 185, 129, 0.16);
}

.status-not-selected,
.status-rejected {
  color: #475569;
  background: rgba(100, 116, 139, 0.16);
}

.cgpa-low {
  color: #dc2626 !important;
  font-weight: 800;
}

.cgpa-high {
  color: #059669 !important;
  font-weight: 800;
}

.card-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.legend-dot {
  margin-right: 3px;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* =========================
   ADMIN DASHBOARD
   ========================= */
.admin-page {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(196, 163, 90, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(26, 107, 99, 0.1), transparent 45%),
    linear-gradient(160deg, #06101c 0%, #0a1628 45%, #0d1f33 100%);
  color: #e8eef5;
  min-height: 100vh;
}

.admin-page::before {
  opacity: 0.2;
}

.admin-login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  position: relative;
  z-index: 1;
}

.admin-login-form {
  width: min(440px, 100%);
  padding: 32px 28px;
  border-radius: 28px;
  background: rgba(15, 28, 46, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  animation: fadeUp 600ms var(--ease-out) both;
}

.admin-login-brand,
.admin-brand,
.admin-portal-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-login-brand {
  margin-bottom: 22px;
}

.admin-brand-mark,
.admin-side-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--aqua-bright), var(--aqua-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(196, 163, 90, 0.3);
}

.admin-login-brand .brand-logo,
.admin-brand .brand-logo,
.admin-portal-title .brand-logo {
  filter: brightness(1.14) contrast(1.08) saturate(1.1);
}

.admin-login-brand h1,
.admin-brand strong,
.admin-portal-title h1 {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.admin-login-form .section-heading h3 {
  color: #fff;
  font-size: 1.55rem;
}

.admin-login-form .section-heading p,
.admin-login-form label {
  color: rgba(232, 238, 245, 0.72);
}

.admin-login-form input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.admin-login-form input:focus {
  border-color: var(--aqua-bright);
  box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.2);
}

.admin-console {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: rgba(7, 17, 31, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.admin-brand p,
.admin-portal-title p,
.admin-side-card p {
  margin: 4px 0 0;
  color: rgba(232, 238, 245, 0.55);
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-portal-title h1 {
  font-size: 1.45rem;
  margin-top: 2px;
}

.admin-side-nav {
  display: grid;
  gap: 6px;
}

.admin-side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(232, 238, 245, 0.7);
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.admin-side-nav a:hover,
.admin-side-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.22), rgba(26, 107, 99, 0.12));
  transform: translateX(3px);
}

.admin-side-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-side-card h2 {
  font-size: 0.95rem;
  color: #fff;
}

.admin-main {
  padding: 18px 18px 36px;
  min-width: 0;
}

.admin-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.admin-top-nav nav,
.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-top-nav a {
  color: rgba(232, 238, 245, 0.75);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 160ms ease, background 160ms ease;
}

.admin-top-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-page .button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-workspace {
  animation: fadeUp 500ms var(--ease-out) both;
}

.admin-workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-workspace-heading .eyebrow {
  color: var(--aqua-bright);
}

.admin-workspace-heading h2 {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.admin-workspace-heading p {
  margin: 10px 0 0;
  max-width: 52ch;
  color: rgba(232, 238, 245, 0.62);
}

.admin-search {
  min-width: min(320px, 100%);
}

.admin-search span {
  display: block;
  margin-bottom: 8px;
  color: rgba(232, 238, 245, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-search input,
.admin-toolbar select,
.admin-page input,
.admin-page select,
.admin-page textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-page option {
  color: #0d1a2c;
}

.admin-summary-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.offer-control-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px 20px;
  margin: 0 0 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(8, 17, 31, 0.92), rgba(15, 79, 73, 0.78));
  color: #fff;
  border: 1px solid rgba(196, 163, 90, 0.28);
}

.offer-control-copy h3 {
  margin: 8px 0 10px;
  color: #fff;
}

.offer-control-copy p,
.offer-updated {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.offer-updated {
  margin-top: 10px;
  font-size: 0.85rem;
}

.offer-control-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.offer-control-actions .button {
  width: 100%;
}

.offer-message-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.offer-message-field textarea {
  min-height: 84px;
  resize: vertical;
}

#saveClosedMessageButton {
  grid-column: 1 / -1;
  justify-self: start;
}

.offer-control-panel.is-open {
  box-shadow: inset 3px 0 0 var(--gold-bright);
}

.offer-control-panel.is-closed {
  box-shadow: inset 3px 0 0 #c23b4e;
}

@media (max-width: 900px) {
  .offer-control-panel {
    grid-template-columns: 1fr;
  }
}

.apply-closed-banner {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(194, 59, 78, 0.12), rgba(8, 17, 31, 0.06));
  border: 1px solid rgba(194, 59, 78, 0.28);
  color: #7f1d1d;
}

.apply-closed-banner strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  color: #5f1212;
}

.application-form.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.15);
}

.admin-summary-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 220ms var(--ease-out), border-color 220ms ease;
}

.admin-summary-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.25), transparent 70%);
  pointer-events: none;
}

.admin-summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 163, 90, 0.35);
}

.summary-label {
  color: rgba(232, 238, 245, 0.55);
}

.admin-summary-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  color: #fff;
  letter-spacing: -0.03em;
}

.admin-summary-card p {
  margin: 6px 0 0;
  color: rgba(232, 238, 245, 0.5);
  font-size: 0.8rem;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-toolbar .eyebrow {
  color: var(--aqua-bright);
}

.admin-toolbar h3 {
  margin-top: 6px;
  color: #fff;
  font-size: 1.25rem;
}

.admin-toolbar label {
  color: rgba(232, 238, 245, 0.65);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: start;
}

.admin-list-panel,
.admin-detail-panel {
  min-height: 520px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

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

.admin-panel-heading h3,
.admin-empty-state h3,
.admin-detail-panel h3,
.empty-list h3 {
  color: #fff;
  margin-top: 6px;
}

.admin-panel-heading p,
.admin-empty-state p,
.empty-list p {
  color: rgba(232, 238, 245, 0.55);
}

.admin-applications {
  display: grid;
  gap: 10px;
  max-height: 68vh;
  overflow: auto;
  padding-right: 4px;
}

.application-card {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease;
}

.application-card:hover,
.application-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(196, 163, 90, 0.4);
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.12), rgba(26, 107, 99, 0.06));
}

.application-card.is-active {
  box-shadow: inset 3px 0 0 var(--aqua-bright);
}

.card-identity {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.application-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(196, 163, 90, 0.35), rgba(26, 107, 99, 0.25));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.application-card h4 {
  font-size: 1rem;
  color: #fff;
}

.application-card p,
.status-line {
  margin: 4px 0 0;
  color: rgba(232, 238, 245, 0.55);
  font-size: 0.85rem;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-row strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 0.88rem;
}

.admin-empty-state {
  display: grid;
  place-content: center;
  min-height: 420px;
  text-align: center;
  padding: 24px;
}

.admin-empty-state .eyebrow {
  color: var(--aqua-bright);
}

.detail-shell {
  display: grid;
  gap: 16px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.detail-title .eyebrow {
  color: var(--aqua-bright);
}

.detail-title h3 {
  margin-top: 6px;
  color: #fff;
  font-size: 1.7rem;
}

.detail-meta {
  margin: 8px 0 0;
  color: rgba(232, 238, 245, 0.55);
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 238, 245, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
}

.application-view-form {
  display: grid;
  gap: 12px;
}

.application-view-form fieldset,
.detail-actions,
.detail-block {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.application-view-form h4 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.05rem;
}

.application-view-form {
  display: grid;
  gap: 12px;
}

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

.application-view-form input[readonly],
.application-view-form textarea[readonly] {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 238, 245, 0.9);
}

.application-view-form ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(232, 238, 245, 0.75);
}

.application-view-form a {
  color: var(--aqua-bright);
}

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

.detail-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.documents-workspace {
  margin-top: 8px;
}

.docs-table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.docs-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 245, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.docs-table tbody tr {
  transition: background 160ms ease;
}

.docs-table tbody tr:hover {
  background: rgba(196, 163, 90, 0.08);
}

.docs-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(232, 238, 245, 0.82);
}

.docs-table a {
  color: var(--aqua-bright);
  font-weight: 600;
  text-decoration: none;
}

.docs-table a:hover {
  text-decoration: underline;
}

.docs-count {
  margin: 0;
  color: rgba(232, 238, 245, 0.55);
}

.empty-list {
  padding: 28px 12px;
  text-align: center;
}

/* Legacy unused but keep safe */
.hero-grid,
.hero-card,
.hero-copy,
.stat-list,
.home-gallery,
.gallery-card,
.admin-heading,
.admin-masthead,
.admin-auth-shell {
  /* retained for any leftover markup */
}

.admin-page .eyebrow {
  color: var(--aqua-bright);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
  .admin-summary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 960px) {
  .site-hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-media img {
    object-position: center 52%;
    transform-origin: center 52%;
  }

  .highlights,
  .criteria-grid,
  .story-band,
  .demo-ad {
    grid-template-columns: 1fr;
  }

  .info-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .info-card:last-child {
    border-bottom: none;
  }

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

  .admin-sidebar {
    position: relative;
    height: auto;
  }

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

@media (max-width: 720px) {
  .site-hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-media img {
    object-fit: cover;
    object-position: center 50%;
    transform-origin: center 50%;
    animation: heroFloatMobile 11s ease-in-out infinite;
  }

  .hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(7, 17, 31, 0.35) 0%,
        rgba(7, 17, 31, 0.18) 32%,
        rgba(7, 17, 31, 0.72) 68%,
        rgba(7, 17, 31, 0.92) 100%
      ),
      linear-gradient(
        160deg,
        rgba(7, 17, 31, 0.55) 0%,
        rgba(7, 17, 31, 0.22) 45%,
        rgba(7, 17, 31, 0.35) 100%
      );
  }

  .hero-content {
    max-width: 36rem;
    padding-bottom: 24px;
  }

  .hero-content::before {
    inset: -20px -24px -36px -16px;
    background: radial-gradient(
      ellipse 100% 90% at 20% 75%,
      rgba(7, 17, 31, 0.85) 0%,
      rgba(7, 17, 31, 0.58) 48%,
      transparent 78%
    );
  }

  .hero-content .brand-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 1.05;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
  }

  .hero-content .hero-text {
    font-size: 0.98rem;
    max-width: 34ch;
    font-weight: 500;
    color: #ffffff;
    text-shadow:
      0 0 2px rgba(0, 0, 0, 0.95),
      0 2px 8px rgba(0, 0, 0, 0.9),
      0 10px 22px rgba(0, 0, 0, 0.75);
  }

  .hero-content .hero-text {
    font-size: 0.98rem;
    max-width: 34ch;
  }
.form-grid,
  .detail-section,
  .detail-actions,
  .track-input-row {
    grid-template-columns: 1fr;
  }

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

  .site-hero .topbar,
  .hero.compact-hero .topbar,
  .admin-workspace-heading,
  .track-card-top,
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content .brand-title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media img {
    transform: none;
  }
}


/* Phones in landscape — keep face visible in short height */
@media (max-height: 500px) and (orientation: landscape) {
  .site-hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .hero-media img {
    object-position: center 50%;
    animation: none;
    transform: scale(1.01);
  }

  .hero-content .brand-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hero-content .hero-text {
    display: none;
  }
}

/* Narrow phones */
@media (max-width: 480px) {
  .hero-media img {
    object-position: center 48%;
    transform-origin: center 48%;
  }

  .site-hero .topbar-links {
    width: 100%;
  }

  .site-hero .nav-cta {
    flex: 1;
    text-align: center;
  }
}

/* Tablets portrait */
@media (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-media img {
    object-position: center 50%;
    transform-origin: center 50%;
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .hero-media img {
    object-position: center 55%;
    transform-origin: center 55%;
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.02) translate3d(0, -6px, 0);
  }
}

@keyframes heroFloatMobile {
  0%, 100% {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.015) translate3d(0, -5px, 0);
  }
}

/* Technical support footer */
.support-footer {
  background: #0b1524;
  color: #b7c2d3;
  padding: 18px clamp(16px, 4vw, 40px);
  border-top: 1px solid rgba(201, 162, 39, 0.22);
}

.support-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.support-footer p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
}

.support-footer a {
  color: #f0d789;
  font-weight: 600;
  text-decoration: none;
}

.support-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}


/* Admin password show/hide */
.password-field .password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #7f90a8;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  width: 32px;
  height: 32px;
}

.password-toggle svg {
  display: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.password-toggle .icon-eye {
  display: block;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #e8eef8;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle.is-visible,
.password-toggle[aria-pressed="true"] {
  color: var(--aqua-bright, #5eead4);
}

/* === ADMIN UI REFRESH 2026 === */
.admin-login-fields {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

.admin-login-form {
  width: min(420px, 100%);
  padding: 36px 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 39, 0.16), transparent 42%),
    rgba(10, 20, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-login-form .compact-heading {
  margin-bottom: 8px;
}

.admin-login-submit {
  width: 100%;
  justify-content: center;
}

.admin-console {
  grid-template-columns: 260px minmax(0, 1fr);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(201, 162, 39, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(26, 107, 99, 0.12), transparent 45%);
}

.admin-sidebar {
  gap: 18px;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.94), rgba(8, 18, 32, 0.88));
}

.admin-side-nav a {
  gap: 10px;
  border: 1px solid transparent;
}

.admin-side-nav a .nav-ico {
  width: 1.1rem;
  opacity: 0.7;
  font-size: 0.85rem;
}

.admin-side-nav a.is-active {
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: inset 3px 0 0 #c9a227;
  transform: none;
}

.admin-side-status {
  margin-top: auto;
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.14), rgba(255, 255, 255, 0.03));
  border-color: rgba(201, 162, 39, 0.22);
}

.admin-side-status .side-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0d789;
  font-weight: 700;
}

.admin-top-nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-top-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 245, 0.5);
  font-weight: 700;
}

.admin-top-left strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 1.05rem;
}

.admin-workspace-heading h2 {
  letter-spacing: -0.03em;
}

.admin-summary-row {
  gap: 10px;
}

.admin-summary-card {
  position: relative;
  overflow: hidden;
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 96px;
}

.admin-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(201, 162, 39, 0.75);
}

.admin-summary-card.tone-pending::before { background: #f59e0b; }
.admin-summary-card.tone-review::before { background: #38bdf8; }
.admin-summary-card.tone-shortlist::before { background: #a78bfa; }
.admin-summary-card.tone-approved::before { background: #34d399; }
.admin-summary-card.tone-rejected::before { background: #fb7185; }

.admin-summary-card .summary-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(232, 238, 245, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-summary-card strong {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.admin-summary-card p {
  display: none;
}

.offer-control-panel {
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.18), transparent 40%),
    linear-gradient(145deg, rgba(8, 17, 31, 0.96), rgba(15, 79, 73, 0.72));
}

.admin-toolbar {
  align-items: end;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.admin-list-panel,
.admin-detail-panel,
.docs-table-wrap {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.admin-empty-state {
  padding: 36px 28px;
}

.admin-portal-title {
  display: none !important;
}

.admin-login-shell {
  align-content: center;
}

.admin-login-footer {
  margin-top: 28px;
  width: min(420px, 100%);
  background: transparent;
  border-top: 0;
  padding: 0;
}

.admin-login-footer .support-footer-inner {
  text-align: center;
}

.admin-login-footer p {
  font-size: 0.84rem;
  color: rgba(183, 194, 211, 0.85);
}

@media (max-width: 980px) {
  .admin-top-nav {
    grid-template-columns: 1fr;
  }
}

/* Portal application deadline notice */
.portal-deadline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: #f7e7b0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.portal-deadline strong {
  color: #fff;
  font-weight: 700;
}

.portal-deadline-inline {
  margin-top: 16px;
  color: #6b4e0f;
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.35);
}

.portal-deadline-inline strong {
  color: #3d2c08;
}

.portal-deadline-on-dark {
  margin: 12px 0 0;
}

.hero-content .portal-deadline {
  margin-top: 16px;
}

/* Admin multi-select filters */
.admin-toolbar-filters {
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1fr) minmax(220px, 1fr);
  align-items: start;
}

.admin-toolbar-intro .admin-filter-hint {
  margin: 8px 0 0;
  max-width: 34ch;
  color: rgba(232, 238, 245, 0.55);
  font-size: 0.82rem;
  line-height: 1.45;
}

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

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

.admin-filter-label {
  color: rgba(232, 238, 245, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-filter-clear {
  border: 0;
  background: transparent;
  color: var(--aqua-bright);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.admin-filter-clear:hover,
.admin-filter-clear:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: underline;
}

.admin-multi-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 168px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 238, 245, 0.82);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.admin-filter-option:has(input:checked) {
  background: rgba(201, 162, 39, 0.18);
  border-color: rgba(201, 162, 39, 0.42);
  color: #fff;
}

.admin-filter-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #c9a227;
}

.admin-filter-empty {
  margin: 0;
  color: rgba(232, 238, 245, 0.55);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .admin-toolbar-filters {
    grid-template-columns: 1fr;
  }
}
