/* ==========================================================================
   Future Bridge International Academy (FBIA) — Official Academic Portal
   File 1: assets/site.css
   Aesthetic: Prestigious International Academic · Tactile 3D · Living Motion
   ========================================================================== */

/* 1. Fonts & Design Tokens ------------------------------------------------ */
@font-face {
  font-family: "Vazirmatn";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Vazirmatn-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Vazirmatn";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Vazirmatn-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Vazirmatn";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/Vazirmatn-ExtraBold.ttf") format("truetype");
}

:root {
  /* Academic Palette */
  --navy-950: #04101f;
  --navy-900: #071b34;
  --navy-800: #0c2b50;
  --navy-700: #154072;
  --navy-tint: #eaf1f8;
  --navy-tint-strong: #d1e0f0;

  /* Brand Emerald */
  --green-700: #06593b;
  --green-600: #09754e;
  --green-500: #0e9665;
  --green-400: #34bd8b;
  --green-tint: #e4f6ee;

  /* Heritage Academic Gold */
  --gold-600: #9f7520;
  --gold-500: #c99d3e;
  --gold-400: #e5bf6a;
  --gold-tint: #fcf6e7;

  /* Architectural Surfaces & Ink */
  --paper: #f3f6fa;
  --paper-warm: #f8fafd;
  --surface: #ffffff;
  --surface-subtle: #edf2f8;
  --ink: #09172a;
  --text: #223449;
  --muted: #526478;
  --line: #dbe3ee;
  --line-strong: #b8c6d7;

  /* Semantic Status */
  --amber: #8c5408;
  --amber-tint: #fef3dc;
  --red: #a6261c;
  --red-tint: #fcebe9;

  /* Geometry & 3D Depth */
  --radius-xs: 7px;
  --radius-sm: 11px;
  --radius: 15px;
  --radius-lg: 22px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 78px;

  /* Multi-layered 3D Shadows & Specular Highlights */
  --shadow-xs:
    0 1px 2px rgba(7, 27, 52, 0.05), 0 3px 8px -3px rgba(7, 27, 52, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-sm:
    0 2px 5px rgba(7, 27, 52, 0.04), 0 10px 24px -10px rgba(7, 27, 52, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --shadow-md:
    0 6px 14px -4px rgba(7, 27, 52, 0.07),
    0 22px 44px -16px rgba(7, 27, 52, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --shadow-3d-hover:
    0 14px 28px -8px rgba(7, 27, 52, 0.14),
    0 32px 64px -20px rgba(7, 27, 52, 0.24), 0 0 0 1px rgba(201, 157, 62, 0.16),
    inset 0 1px 0 #ffffff;
  --focus:
    0 0 0 4px rgba(14, 150, 101, 0.22), 0 4px 12px rgba(14, 150, 101, 0.12);

  /* Motion Curves */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.48, 0.64, 1);
}

/* 2. Base & Typography ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 22px);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background-color: var(--paper);
  background-image:
    radial-gradient(
      ellipse 60rem 38rem at 10% -5%,
      rgba(12, 43, 80, 0.055),
      transparent 70%
    ),
    radial-gradient(
      ellipse 52rem 34rem at 92% 8%,
      rgba(201, 157, 62, 0.06),
      transparent 70%
    ),
    radial-gradient(
      ellipse 48rem 34rem at 50% 100%,
      rgba(14, 150, 101, 0.04),
      transparent 70%
    );
  background-attachment: fixed;
  color: var(--text);
  font-family:
    "Vazirmatn",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Tahoma,
    sans-serif;
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.92;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="ltr"] body {
  font-size: 16px;
  line-height: 1.68;
}

::selection {
  background: rgba(14, 150, 101, 0.2);
  color: var(--navy-900);
}

main#app {
  flex: 1 0 auto;
  width: 100%;
  outline: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  transition: color 0.24s var(--ease);
}

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

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a,
button,
input,
select,
textarea,
label,
[role="button"] {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2.5px solid var(--green-500);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
h3[tabindex="-1"]:focus,
main#app:focus {
  outline: none;
}

[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
  line-height: 1.75;
}

.wrap {
  width: min(1200px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.sec {
  padding-block: clamp(64px, 7.5vw, 110px);
}

.btns,
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* 3. Tactile 3D Buttons with Specular Sweep ------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 26px;
  border: 1px solid var(--green-700);
  border-radius: var(--radius-sm);
  background: linear-gradient(
    180deg,
    #14a872 0%,
    var(--green-500) 45%,
    var(--green-600) 100%
  );
  color: #ffffff;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 6px 16px -3px rgba(9, 117, 78, 0.38),
    0 2px 5px rgba(7, 27, 52, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s var(--ease),
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    color 0.24s var(--ease);
}

/* Specular Glass Light Sweep */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0.06) 56%,
    transparent 76%
  );
  transform: translateX(-130%) skewX(-16deg);
  transition: transform 0.7s var(--ease-silk);
  pointer-events: none;
}

.btn:hover {
  background: linear-gradient(
    180deg,
    #19b87e 0%,
    #109e6b 50%,
    var(--green-600) 100%
  );
  border-color: var(--green-700);
  color: #ffffff;
  transform: translate3d(0, -3px, 0);
  box-shadow:
    0 14px 28px -6px rgba(9, 117, 78, 0.46),
    0 5px 12px rgba(7, 27, 52, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.btn:hover::before {
  transform: translateX(130%) skewX(-16deg);
}

.btn:active {
  transform: translate3d(0, 1px, 0) scale(0.985);
  box-shadow:
    0 2px 6px rgba(9, 117, 78, 0.25),
    inset 0 2px 5px rgba(0, 0, 0, 0.22);
  transition-duration: 0.1s;
}

.btn:disabled {
  opacity: 0.54;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:disabled::before {
  display: none;
}

.btn.busy,
.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.88;
}

.btn.busy::before,
.btn[aria-busy="true"]::before {
  animation: btnSweepLoop 1.35s var(--ease) infinite;
}

.btn.wide {
  width: 100%;
}

.btn.ghost {
  background: var(--surface);
  color: var(--navy-800);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn.ghost::before {
  background: linear-gradient(
    115deg,
    transparent 24%,
    rgba(12, 43, 80, 0.06) 50%,
    transparent 76%
  );
}

.btn.ghost:hover {
  background: var(--navy-tint);
  border-color: var(--navy-700);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn.line {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}

.btn.line:hover {
  background: var(--surface);
  border-color: var(--navy-800);
  color: var(--navy-900);
  box-shadow: var(--shadow-xs);
}

/* 4. Header & Institutional Navigation ------------------------------------ */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  border-bottom: 1px solid rgba(229, 191, 106, 0.24);
  color: #ffffff;
  transition:
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.top.scrolled {
  background: rgba(5, 19, 37, 0.88);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: rgba(229, 191, 106, 0.36);
  box-shadow:
    0 16px 38px -12px rgba(4, 16, 31, 0.72),
    0 1px 0 rgba(229, 191, 106, 0.28);
}

.top .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 4px 0;
  transition:
    transform 0.3s var(--ease-spring),
    filter 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.34));
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navlinks a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: var(--radius-xs);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition:
    color 0.24s var(--ease),
    background-color 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.navlinks a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 5px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-400), var(--green-400));
  box-shadow: 0 0 10px rgba(229, 191, 106, 0.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s var(--ease-spring);
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.navlinks a:hover {
  transform: translateY(-1px);
}

.navlinks a:hover::after,
.navlinks a[aria-current="page"]::after {
  transform: scaleX(1);
}

.langs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.32);
}

.lg,
.theme-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  transition:
    background-color 0.24s var(--ease),
    color 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease-spring);
}

.lg:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.lg[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffffff 0%, #ebf1f8 100%);
  color: var(--navy-900);
  transform: scale(1.02);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 #ffffff;
}

.menu-btn {
  display: none;
  appearance: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 18px;
  place-items: center;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease-spring);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.04);
}

/* 5. Cinematic Photo & Hero Sections -------------------------------------- */
.photo-sec {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  text-align: center;
  background-color: var(--navy-950);
}

.photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: contrast(1.05) saturate(0.98);
  will-change: transform;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

.photo-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 22%,
      rgba(21, 64, 114, 0.48) 0%,
      rgba(4, 16, 31, 0.9) 85%
    ),
    radial-gradient(
      circle at 80% 18%,
      rgba(201, 157, 62, 0.14) 0%,
      transparent 45%
    ),
    linear-gradient(
      180deg,
      rgba(4, 16, 31, 0.48) 0%,
      rgba(4, 16, 31, 0.88) 100%
    );
}

.photo-sec::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 4%,
    var(--gold-400) 32%,
    var(--green-400) 68%,
    transparent 96%
  );
  background-size: 200% 100%;
  opacity: 0.88;
  z-index: 1;
  animation: horizonShimmer 7s ease-in-out infinite alternate;
}

.photo-in {
  position: relative;
  z-index: 2;
  padding-block: clamp(88px, 11vw, 152px);
}

.photo-text {
  max-width: 44rem;
  margin-inline: auto;
}

.photo-sec h1,
.photo-sec h2 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.42;
  font-size: clamp(30px, 4.3vw, 52px);
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.photo-sec p,
.photo-sec .muted {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.photo-text .btns,
.photo-in > .btns {
  justify-content: center;
  margin-top: 36px;
}

.photo-sec .btn {
  background: linear-gradient(
    180deg,
    #15ab74 0%,
    var(--green-500) 48%,
    var(--green-600) 100%
  );
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  padding-inline: 30px;
  min-height: 52px;
}

.photo-sec .btn:hover {
  background: linear-gradient(180deg, #1bc084 0%, var(--green-600) 100%);
  border-color: rgba(255, 255, 255, 0.45);
}

.photo-sec .btn.ghost {
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    0 8px 24px -8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.photo-sec .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
}

/* 6. Home: Hero, Courses, How It Works, About ----------------------------- */
.hero {
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
}

.hero .photo-in {
  width: 100%;
}

/* Staggered Cinematic Hero Choreography */
.hero .kicker {
  animation: cinemaReveal 0.65s var(--ease-silk) 0.04s both;
}

.hero h1 {
  margin-top: 18px;
  max-width: 18em;
  margin-inline: auto;
  animation: cinemaReveal 0.78s var(--ease-silk) 0.14s both;
}

.hero p {
  max-width: 38em;
  margin-inline: auto;
  animation: cinemaReveal 0.78s var(--ease-silk) 0.26s both;
}

.hero .btns {
  animation: cinemaReveal 0.78s var(--ease-silk) 0.38s both;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 191, 106, 0.52);
  color: var(--gold-400);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow:
    0 10px 28px -8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  animation: sonarPulse 2.4s ease-out infinite;
}

/* Section Headers */
.classes {
  padding-top: clamp(68px, 8vw, 112px);
}

.sec-h {
  position: relative;
  max-width: 680px;
  margin-bottom: 38px;
}

.sec-h h2 {
  position: relative;
  display: inline-block;
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy-900);
}

.sec-h h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), var(--green-500));
  background-size: 200% 100%;
  animation: horizonShimmer 5s ease-in-out infinite alternate;
}

.sec-h p {
  margin-top: 16px;
  font-size: 17.5px;
  line-height: 1.95;
}

.eyebrow-s {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf7 0%, var(--gold-tint) 100%);
  border: 1px solid rgba(159, 117, 32, 0.28);
  color: var(--gold-600);
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: var(--shadow-xs);
}

/* Category Dividers & 3D Course Rows */
.cat-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy-900);
}

.sec-h + .cat-h {
  margin-top: 28px;
}

.cat-h h2,
.cat-h h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
}

.cat-h > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 29px;
  padding-inline: 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  color: var(--gold-400);
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 4px 10px -2px rgba(7, 27, 52, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 118px;
  padding: 24px 26px;
  padding-inline-end: 60px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(201, 157, 62, 0.05),
      transparent 55%
    ),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  transition:
    transform 0.34s var(--ease-spring),
    box-shadow 0.34s var(--ease),
    border-color 0.28s var(--ease),
    background-color 0.28s var(--ease);
}

.li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--navy-800), var(--green-500));
  opacity: 0.78;
  transition:
    opacity 0.28s var(--ease),
    top 0.28s var(--ease-spring),
    bottom 0.28s var(--ease-spring),
    width 0.28s var(--ease);
}

html[dir="rtl"] .li::before {
  border-radius: 4px 0 0 4px;
}

.li::after {
  content: "\f060";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--navy-800);
  font-size: 13px;
  transform: translateY(-50%);
  transition:
    background-color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    color 0.28s var(--ease),
    transform 0.32s var(--ease-spring),
    box-shadow 0.28s var(--ease);
}

html[dir="ltr"] .li::after {
  content: "\f061";
}

.li:hover {
  border-color: var(--navy-tint-strong);
  box-shadow: var(--shadow-3d-hover);
  transform: translate3d(0, -5px, 10px) rotateX(1deg);
}

.li:hover::before {
  opacity: 1;
  top: 10px;
  bottom: 10px;
  width: 5px;
}

.li:hover::after {
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  border-color: var(--navy-900);
  color: var(--gold-400);
  box-shadow: 0 6px 14px -4px rgba(7, 27, 52, 0.38);
  transform: translate(-4px, -50%) scale(1.08);
}

html[dir="ltr"] .li:hover::after {
  transform: translate(4px, -50%) scale(1.08);
}

.li b {
  display: block;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--navy-900);
  transition: color 0.24s var(--ease);
}

.li:hover b {
  color: var(--green-700);
}

.li small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.li small > span[dir] {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

.li .o {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--green-tint);
  border: 1px solid rgba(14, 150, 101, 0.2);
  color: var(--green-700);
  font-weight: 800;
  font-size: 12.5px;
}

.li .o::before {
  content: "";
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--green-500);
  animation: sonarPulseGreen 2.4s ease-out infinite;
}

.li .c {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
}

/* How It Works — 3D Academic Stepper */
.how-sec {
  position: relative;
  border-top: 1px solid var(--line);
}

.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  perspective: 1200px;
}

.stepper li {
  counter-increment: step;
  position: relative;
  padding: 30px 24px 28px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(12, 43, 80, 0.035),
      transparent 60%
    ),
    var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.34s var(--ease-spring),
    box-shadow 0.34s var(--ease),
    border-color 0.28s var(--ease);
}

.stepper li:first-child {
  border-top-color: var(--green-500);
}

.stepper li:hover {
  transform: translate3d(0, -7px, 12px) rotateX(1.5deg);
  box-shadow: var(--shadow-3d-hover);
  border-top-color: var(--gold-500);
}

.stepper .dot {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  color: var(--gold-400);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 10px 20px -6px rgba(7, 27, 52, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    transform 0.36s var(--ease-spring),
    box-shadow 0.36s var(--ease);
}

.stepper li:hover .dot {
  transform: translateY(-3px) scale(1.07) rotate(-3deg);
  box-shadow:
    0 14px 26px -6px rgba(7, 27, 52, 0.55),
    0 0 0 4px var(--gold-tint),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stepper li:first-child .dot {
  background: linear-gradient(145deg, var(--green-500), var(--green-700));
  color: #ffffff;
  box-shadow:
    0 10px 20px -6px rgba(9, 117, 78, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stepper li:first-child:hover .dot {
  box-shadow:
    0 14px 26px -6px rgba(9, 117, 78, 0.55),
    0 0 0 4px var(--green-tint),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stepper .dot::before {
  content: counter(step);
}

html[lang="fa"] .stepper .dot::before {
  content: counter(step, persian);
}

.stepper h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
  line-height: 1.5;
}

.stepper p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* About Section — Architectural Bento Grid */
.about-sec {
  padding-top: clamp(64px, 8vw, 106px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.acard {
  position: relative;
  padding: 34px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.34s var(--ease-spring),
    box-shadow 0.34s var(--ease),
    border-color 0.28s var(--ease);
}

.acard::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold-500));
}

.acard::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  inset-inline-end: -70px;
  top: -70px;
  background: radial-gradient(circle, rgba(201, 157, 62, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.acard.office {
  background: linear-gradient(180deg, #ffffff 0%, var(--navy-tint) 100%);
}

.acard.office::before {
  background: linear-gradient(90deg, var(--green-600), var(--gold-500));
}

.acard:hover {
  transform: translate3d(0, -6px, 10px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--navy-tint-strong);
}

.acard:hover::after {
  opacity: 1;
}

.acard h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.acard > p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.95;
}

.ofl {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ofl li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(12, 43, 80, 0.09);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
}

.ofl li:first-child {
  padding-top: 2px;
}

.ofl li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.ofl a {
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 700;
}

.ofl a:hover {
  color: var(--green-600);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 7. Institutional Footer ------------------------------------------------- */
.site-foot {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  padding-block: 74px 32px;
  background:
    radial-gradient(
      ellipse 50rem 24rem at 85% 0%,
      rgba(201, 157, 62, 0.09),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45rem 24rem at 12% 100%,
      rgba(14, 150, 101, 0.08),
      transparent 70%
    ),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  border-top: 3px solid var(--gold-500);
  color: rgba(255, 255, 255, 0.8);
}

.fcols {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr 1.2fr;
  gap: 56px;
}

.fcols h4 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  position: relative;
}

.fbrand p {
  margin-top: 18px;
  max-width: 34em;
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.76);
}

.plate {
  display: inline-block;
  transition: transform 0.28s var(--ease-spring);
}

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

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

.soc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.soc a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.28s var(--ease-spring),
    background-color 0.24s var(--ease),
    border-color 0.24s var(--ease),
    color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.soc a:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(145deg, var(--gold-400), var(--gold-500));
  border-color: var(--gold-400);
  color: var(--navy-950);
  box-shadow: 0 10px 20px -6px rgba(201, 157, 62, 0.48);
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-foot li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  transition:
    color 0.22s var(--ease),
    transform 0.24s var(--ease-spring);
}

.site-foot li a i {
  font-size: 11px;
  color: var(--gold-400);
  transition: transform 0.24s var(--ease-spring);
}

html[dir="rtl"] .site-foot li a i {
  transform: scaleX(-1);
}

.site-foot li a:hover {
  color: #ffffff;
  transform: translateX(-5px);
}

html[dir="ltr"] .site-foot li a:hover {
  transform: translateX(5px);
}

.fnote {
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.24s var(--ease-spring);
}

.mail i {
  color: var(--gold-400);
}

.mail:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.faddr {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.8;
}

.faddr a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.32);
}

.faddr a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.fphone {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-400);
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.fphone:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

.legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.legal a:hover {
  color: var(--gold-400);
  text-decoration: underline;
}

/* 8. Inner Page Headers --------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(48px, 6.5vw, 82px) clamp(36px, 4.5vw, 54px);
  background:
    radial-gradient(
      ellipse 45rem 26rem at 85% 15%,
      rgba(201, 157, 62, 0.12),
      transparent 70%
    ),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  border-bottom: 3px solid var(--gold-500);
  color: #ffffff;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px dashed rgba(229, 191, 106, 0.18);
  inset-inline-end: -140px;
  top: -180px;
  pointer-events: none;
  animation: orbitSlow 60s linear infinite;
}

.page-head::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(52, 189, 139, 0.14);
  inset-inline-end: -70px;
  top: -110px;
  pointer-events: none;
  animation: orbitSlow 42s linear infinite reverse;
}

.page-head > .wrap {
  position: relative;
  z-index: 1;
}

.page-head h1 {
  margin-top: 16px;
  max-width: 22em;
  color: #ffffff;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.42;
  animation: cinemaReveal 0.55s var(--ease-silk) both;
}

.page-head > .wrap > p,
.page-head > .wrap > p.muted {
  margin-top: 12px;
  max-width: 40em;
  font-size: 17px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.86) !important;
  animation: cinemaReveal 0.6s var(--ease-silk) 0.08s both;
}

.page-head .phmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  animation: cinemaReveal 0.6s var(--ease-silk) 0.14s both;
}

.track-head {
  text-align: center;
  border-bottom: 0;
}

.track-head h1 {
  margin-inline: auto;
}

.track-head > .wrap > p {
  margin-inline: auto;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.24s var(--ease-spring);
}

.back:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.pad > .back {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--navy-800);
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.pad > .back:hover {
  background: var(--navy-tint);
  border-color: var(--navy-700);
}

.back i {
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition:
    transform 0.22s var(--ease-spring),
    filter 0.22s var(--ease);
}

.pill.ok {
  background: var(--green-tint);
  border: 1px solid rgba(14, 150, 101, 0.22);
  color: var(--green-700);
}

.page-head .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.page-head .pill.ok {
  background: rgba(14, 150, 101, 0.28);
  border-color: rgba(52, 189, 139, 0.58);
  color: #d6faeb;
}

a.pill:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  text-decoration: underline;
}

.views {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.views b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-head .views {
  color: rgba(255, 255, 255, 0.82);
}

.page-head .views b {
  color: #ffffff;
}

/* 9. Class & Opportunity Cards Grid --------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.ccard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.34s var(--ease-spring),
    box-shadow 0.34s var(--ease),
    border-color 0.28s var(--ease);
}

.ccard::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3.5px;
  background: linear-gradient(
    90deg,
    var(--navy-800),
    var(--gold-500),
    var(--green-500)
  );
  transform: scaleX(0.35);
  transform-origin: center;
  opacity: 0.85;
  transition:
    transform 0.38s var(--ease-spring),
    opacity 0.28s var(--ease);
}

.ccard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 35%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 65%
  );
  transform: translateX(-140%);
  transition: transform 0.75s var(--ease-silk);
  pointer-events: none;
}

.ccard:hover {
  transform: translate3d(0, -7px, 12px) rotateX(1.2deg);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--navy-tint-strong);
}

.ccard:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

.ccard:hover::after {
  transform: translateX(140%);
}

.ccard h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--navy-900);
  transition: color 0.24s var(--ease);
}

.ccard:hover h3 {
  color: var(--green-700);
}

.ccard > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ccard .pill {
  align-self: flex-start;
}

.ccard .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.ccard .meta div {
  color: var(--ink);
  font-size: 14.5px;
}

.ccard .meta small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.ccard .more {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
  font-weight: 800;
  font-size: 14.5px;
  transition:
    color 0.24s var(--ease),
    gap 0.24s var(--ease-spring);
}

.ccard:hover .more {
  color: var(--navy-800);
  gap: 12px;
}

.jfilter {
  width: auto;
  min-width: 240px;
  min-height: 48px;
  margin-top: 22px;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.jcard[hidden] {
  display: none !important;
}

.jdetail {
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--text);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 240px;
  padding: 48px 28px;
  text-align: center;
  background: var(--surface);
  color: var(--muted);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.empty i {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--navy-tint);
  color: var(--navy-800);
  font-size: 24px;
  animation: floatGentle 3.6s ease-in-out infinite;
}

.empty p {
  max-width: 34rem;
  font-size: 16px;
  line-height: 1.95;
}

/* Skeleton Loader */
.skel {
  border-radius: var(--radius-sm);
  background-color: #e2e8f1;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.72) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.45s var(--ease) infinite;
}

.skel-title {
  height: 44px;
  width: min(420px, 65%);
  margin-bottom: 16px;
}

.skel-line {
  height: 18px;
  width: min(640px, 85%);
  margin-bottom: 38px;
}

.skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.skel-card {
  height: 200px;
  border-radius: var(--radius-lg);
}

/* 10. Class Detail View --------------------------------------------------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 84px);
}

.detail > div > h3 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-900);
}

.detail > div > h3 + p {
  margin-bottom: 40px;
}

.detail > div:first-child > h3:not(:first-child) {
  margin-top: 44px;
}

.lead {
  max-width: 44em;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--navy-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 17px;
  line-height: 2.05;
  color: var(--text);
}

.facts {
  display: grid;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(130px, 210px) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.2s var(--ease),
    padding-inline-start 0.22s var(--ease);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts > div:hover {
  background: var(--paper-warm);
  padding-inline-start: 26px;
}

.facts dt {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 800;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.facts a {
  color: var(--green-600);
  text-underline-offset: 4px;
}

.dside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.dside > h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
}

.reqs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reqs li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.reqs li:first-child {
  border-top: 0;
  padding-top: 0;
}

.reqs li > i {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  background: var(--green-tint);
  color: var(--green-700);
  font-size: 15px;
  transition: transform 0.24s var(--ease-spring);
}

.reqs li:hover > i {
  transform: scale(1.1);
}

.reqs .opt {
  margin-inline-start: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
}

/* 3D Chronometer Countdown Timer */
.cdbox {
  padding: 18px;
  border-radius: var(--radius);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(229, 191, 106, 0.16),
      transparent 60%
    ),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
  border: 1px solid rgba(229, 191, 106, 0.24);
  color: #ffffff;
  box-shadow:
    0 14px 28px -10px rgba(7, 27, 52, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cdbox.closed {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  box-shadow: none;
}

.cdlabel {
  margin-bottom: 12px;
  color: var(--gold-400);
  font-size: 13.5px;
  font-weight: 800;
}

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

.cdcell {
  padding: 10px 4px;
  text-align: center;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 0.22s var(--ease-spring),
    background-color 0.22s var(--ease);
}

.cdcell:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.cdcell b {
  display: block;
  direction: ltr;
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.cdcell small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy-tint);
  border: 1px solid var(--navy-tint-strong);
  color: var(--navy-900);
  font-size: 14.5px;
  line-height: 1.85;
}

.note i {
  margin-top: 5px;
  color: var(--navy-700);
}

.note a {
  color: var(--green-700);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.share {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.share h4 {
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy-900);
}

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

.sbtns .sb:first-child,
.sbtns .sb-poster {
  grid-column: 1 / -1;
}

.sb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  cursor: pointer;
  background: var(--surface);
  color: var(--navy-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease),
    transform 0.24s var(--ease-spring),
    box-shadow 0.22s var(--ease);
}

.sb:hover {
  border-color: var(--navy-800);
  background: var(--navy-tint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sb-poster {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  border-color: var(--navy-950);
  color: #ffffff;
}

.sb-poster:hover {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  color: var(--gold-400);
}

/* 11. Application & Opportunity Forms ------------------------------------- */
.apply {
  max-width: 860px;
  padding-block: clamp(40px, 5vw, 68px) 96px;
}

.jform {
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.rwrap > h3 {
  margin: 12px 0 18px;
  font-size: 22px;
  color: var(--navy-900);
}

.apply-prog {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.apply-prog span {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  transition:
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.apply-prog span.on {
  background: linear-gradient(
    90deg,
    var(--green-600) 0%,
    var(--green-400) 50%,
    var(--green-600) 100%
  );
  background-size: 200% 100%;
  box-shadow: 0 2px 10px rgba(14, 150, 101, 0.38);
  animation: shimmer 2.4s linear infinite;
}

#stepTxt {
  margin: 0 0 24px !important;
  color: var(--navy-800);
  font-weight: 800;
  font-size: 14.5px;
}

.panel {
  margin-bottom: 22px;
  padding: clamp(24px, 3.5vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.28s var(--ease);
}

.panel:focus-within {
  box-shadow: var(--shadow-3d-hover);
}

.panel > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-900);
}

.panel > h3 > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--green-tint);
  color: var(--green-700);
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.fgrid > *,
.jgrid > * {
  min-width: 0;
}

.fld {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fld.full,
.fgrid > .full,
.jgrid > .full,
.jgrid > fieldset,
.jgrid > .consent,
.jgrid > .step-nav,
.jgrid > .picks {
  grid-column: 1 / -1;
}

.fld > span,
.fld > legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy-900);
}

.req {
  margin-inline-start: 3px;
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.fld input,
.fld select,
.fld textarea,
.rsearch {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  line-height: 1.6;
  box-shadow: inset 0 1px 2px rgba(7, 27, 52, 0.04);
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease),
    transform 0.18s var(--ease);
}

.fld textarea {
  min-height: 116px;
  resize: vertical;
}

.fld input::placeholder,
.rsearch::placeholder {
  color: #8896a6;
}

.fld input:hover,
.fld select:hover,
.fld textarea:hover,
.rsearch:hover {
  border-color: var(--navy-700);
}

.fld input:focus,
.fld select:focus,
.fld textarea:focus,
.rsearch:focus,
.jfilter:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: var(--focus);
}

.fld input:user-invalid {
  border-color: var(--red);
}

.fld input[dir="ltr"] {
  text-align: start;
}

/* Radio Pills */
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    transform 0.24s var(--ease-spring);
}

.radio:hover {
  border-color: var(--navy-700);
  transform: translateY(-1px);
}

.radio:has(input:checked) {
  border-color: var(--green-600);
  background: var(--green-tint);
  color: var(--green-700);
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 0 0 3px rgba(14, 150, 101, 0.15);
}

.radio input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--green-600);
}

/* Gregorian Date Picker */
.dfld {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.dfld > legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dhint {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.dgrid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  max-width: 560px;
}

.dsel {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dsel select {
  min-height: 48px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 700;
}

.dmsg {
  margin-top: 8px;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 700;
}

/* Document Uploads */
.docs {
  display: grid;
  gap: 14px;
}

.doc {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.24s var(--ease),
    background-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease-spring);
}

.doc:hover {
  border-color: var(--navy-tint-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.doc-ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--navy-tint);
  color: var(--navy-800);
  font-size: 18px;
  transition:
    background-color 0.24s var(--ease),
    color 0.24s var(--ease),
    transform 0.28s var(--ease-spring);
}

.doc:hover .doc-ico {
  background: var(--green-tint);
  color: var(--green-700);
  transform: scale(1.08) rotate(-3deg);
}

.doc-body {
  flex: 1;
  min-width: 0;
}

.doc-body b {
  display: block;
  color: var(--navy-900);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.6;
}

.doc-body .opt {
  margin-inline-start: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
}

.picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.picks .pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0;
  padding: 18px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.picks .pick:hover {
  background: var(--surface);
  border-color: var(--navy-tint-strong);
  box-shadow: var(--shadow-xs);
}

.picks .pick .dlabel {
  order: -1;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
}

.pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.pick-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  cursor: pointer;
  border: 1.5px solid var(--navy-800);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
  transition:
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease-spring);
}

.pick-btn:hover {
  background: var(--navy-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.pick-btn:focus-within {
  outline: 2.5px solid var(--green-500);
  outline-offset: 2px;
}

.fin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pick-name {
  color: var(--muted);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.pick-name:not(:empty) {
  color: var(--green-700);
  font-weight: 700;
}

/* Consent & Step Navigation */
.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  font-size: 14.5px;
  line-height: 1.9;
  cursor: pointer;
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.consent:hover {
  border-color: var(--navy-tint-strong);
  box-shadow: var(--shadow-sm);
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  flex: none;
  accent-color: var(--green-600);
}

.consent a {
  color: var(--navy-800);
  font-weight: 800;
  text-underline-offset: 4px;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.factions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.factions > p {
  flex: 1 1 260px;
  margin-inline-end: auto;
}

/* Submission Confirmation (Done View) */
.done {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(56px, 8vw, 92px) 24px;
  text-align: center;
  animation: cinemaReveal 0.55s var(--ease-silk) both;
}

.okbig {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-400), var(--green-700));
  color: #ffffff;
  font-size: 36px;
  box-shadow:
    0 18px 36px -10px rgba(9, 117, 78, 0.52),
    0 0 0 10px var(--green-tint),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
  animation:
    popIn 0.55s var(--ease-spring) both,
    celebrateHalo 2.8s ease-in-out 0.55s infinite;
}

.codebox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  margin: 22px 0;
  padding: 16px 30px;
  border: 2px dashed var(--green-600);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, var(--green-tint) 160%);
  color: var(--navy-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s var(--ease-spring);
}

.codebox:hover {
  transform: scale(1.03);
}

/* 12. Track & Published Results ------------------------------------------- */
.track {
  max-width: 880px;
  padding-block: clamp(40px, 5vw, 68px) 96px;
  margin-inline: auto;
}

.tcard {
  padding: clamp(24px, 3.5vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.tform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.tform .btn {
  min-height: 48px;
}

#res {
  margin-top: 28px;
}

#res .tcard h3 {
  margin-top: 6px;
  font-size: 21px;
  color: var(--navy-900);
}

#res .tcard h4 {
  margin: 20px 0 8px;
  font-size: 16px;
  color: var(--navy-800);
}

.res {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--navy-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: cinemaReveal 0.42s var(--ease-silk) both;
}

.res h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--navy-900);
}

.res p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.ri {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--navy-800);
  background: var(--navy-tint);
  animation: popIn 0.45s var(--ease-spring) 0.08s both;
}

.res.ok {
  border-inline-start-color: var(--green-500);
}

.res.ok .ri {
  color: var(--green-700);
  background: var(--green-tint);
}

.res.warn {
  border-inline-start-color: var(--gold-500);
}

.res.warn .ri {
  color: var(--amber);
  background: var(--amber-tint);
}

.res.bad {
  border-inline-start-color: var(--red);
}

.res.bad .ri {
  color: var(--red);
  background: var(--red-tint);
}

/* Accepted Applicants Results List */
.rwrap {
  padding-block: clamp(40px, 5vw, 68px) 96px;
}

.rsearch {
  margin-bottom: 24px;
  max-width: 480px;
}

#rlist {
  margin-bottom: 48px;
}

.rgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.rchip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.2s var(--ease),
    padding-inline-start 0.22s var(--ease);
}

.rchip:hover {
  background: var(--paper-warm);
  padding-inline-start: 22px;
}

.rchip:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}

.rnum {
  width: 34px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  background: var(--surface-subtle);
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rname {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rchip em {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-600);
  color: #ffffff;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 800;
}

.rchip.me {
  background: var(--green-tint);
  box-shadow: inset 4px 0 0 var(--green-600);
  animation: flashbg 1.1s var(--ease);
}

html[dir="ltr"] .rchip.me {
  box-shadow: inset -4px 0 0 var(--green-600);
}

.rbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(14, 150, 101, 0.26);
  border: 1px solid rgba(52, 189, 139, 0.52);
  color: #d6faeb;
  font-size: 13.5px;
  font-weight: 800;
}

.rfull {
  margin-top: 8px;
  padding: clamp(24px, 3.5vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.rfull > h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
}

.rfull > p.muted {
  margin-bottom: 24px;
  line-height: 1.9;
}

.rform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  align-items: end;
}

.rform .btn {
  justify-self: start;
}

.rnotice {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.rnotice i {
  margin-top: 4px;
  color: var(--navy-700);
}

.rerr {
  grid-column: 1 / -1;
  color: var(--red);
  font-weight: 800;
  font-size: 14.5px;
}

.rok {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  border: 1px solid rgba(14, 150, 101, 0.28);
  color: var(--green-700);
  font-weight: 800;
  animation: rise 0.35s var(--ease) both;
}

/* 13. Poster Studio Preview ----------------------------------------------- */
.pad {
  padding-block: 48px 84px;
}

.pbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.themes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.theme-btn {
  color: var(--muted);
  padding: 8px 16px;
}

.theme-btn:hover {
  color: var(--navy-900);
  background: var(--paper);
}

.theme-btn.on {
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pv {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: clamp(20px, 3.5vw, 44px);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.65),
      transparent 70%
    ),
    linear-gradient(145deg, #e4eaf2, #d5dfec);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 2px 10px rgba(7, 27, 52, 0.08);
}

.pv canvas {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 32px 64px -20px rgba(4, 16, 31, 0.48);
  transition: transform 0.35s var(--ease-spring);
}

.pv canvas:hover {
  transform: translateY(-4px);
}

#pvWait {
  font-size: 14.5px;
}

/* 14. Static Pages: 404 & Privacy Prose ----------------------------------- */
.nf {
  padding-block: clamp(88px, 13vw, 152px);
  text-align: center;
}

.nf-code {
  font-size: clamp(88px, 15vw, 164px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(
    135deg,
    var(--navy-900) 0%,
    var(--navy-700) 50%,
    var(--gold-500) 100%
  );
  background-size: 160% 160%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  animation:
    floatGentle 4.5s ease-in-out infinite,
    horizonShimmer 6s ease-in-out infinite alternate;
}

.nf h1 {
  margin: 18px 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy-900);
}

.nf p {
  max-width: 32em;
  margin: 0 auto 28px;
}

.nf .btns,
.nf .cta {
  justify-content: center;
  margin-top: 28px;
}

.prose {
  max-width: 820px;
  margin: 48px auto 96px;
  padding: clamp(28px, 4.5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--text);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.55;
  color: var(--navy-900);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-inline-start: 24px;
}

.prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.95em;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-500);
}

.prose .en {
  direction: ltr;
  text-align: start;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 2px solid var(--line);
  font-size: 15.5px;
  line-height: 1.85;
}

.prose .en h2 {
  margin-top: 0;
}

/* 15. Orchestrated Animations, Stagger & Scroll Reveal -------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cinemaReveal {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 20px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.1) translate3d(-1%, -1%, 0);
  }
}

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

@keyframes btnSweepLoop {
  0% {
    transform: translateX(-130%) skewX(-16deg);
  }
  100% {
    transform: translateX(130%) skewX(-16deg);
  }
}

@keyframes sonarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 189, 139, 0.65);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(52, 189, 139, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 189, 139, 0);
  }
}

@keyframes sonarPulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 150, 101, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(14, 150, 101, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 150, 101, 0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.68);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes celebrateHalo {
  0%,
  100% {
    box-shadow:
      0 18px 36px -10px rgba(9, 117, 78, 0.52),
      0 0 0 10px var(--green-tint),
      inset 0 2px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 22px 42px -8px rgba(9, 117, 78, 0.62),
      0 0 0 16px rgba(14, 150, 101, 0.12),
      inset 0 2px 0 rgba(255, 255, 255, 0.42);
  }
}

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

@keyframes orbitSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes flashbg {
  0% {
    background-color: var(--amber-tint);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes scrollGlide {
  from {
    opacity: 0.01;
    transform: translate3d(0, 24px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#app.leaving {
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.2s var(--ease),
    filter 0.2s var(--ease),
    transform 0.2s var(--ease);
}

#app.entering {
  animation: rise 0.45s var(--ease-silk) both;
}

/* Staggered Card Cascade on Page Entry */
.rows .li:nth-child(1),
.grid .ccard:nth-child(1),
.stepper li:nth-child(1),
.about-grid .acard:nth-child(1) {
  animation: rise 0.48s var(--ease-silk) 0.04s both;
}
.rows .li:nth-child(2),
.grid .ccard:nth-child(2),
.stepper li:nth-child(2),
.about-grid .acard:nth-child(2) {
  animation: rise 0.48s var(--ease-silk) 0.1s both;
}
.rows .li:nth-child(3),
.grid .ccard:nth-child(3),
.stepper li:nth-child(3),
.about-grid .acard:nth-child(3) {
  animation: rise 0.48s var(--ease-silk) 0.16s both;
}
.rows .li:nth-child(4),
.grid .ccard:nth-child(4),
.stepper li:nth-child(4) {
  animation: rise 0.48s var(--ease-silk) 0.22s both;
}
.rows .li:nth-child(n + 5),
.grid .ccard:nth-child(n + 5) {
  animation: rise 0.48s var(--ease-silk) 0.26s both;
}

/* Progressive Scroll-Driven Viewport Reveal (Zero-JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .how-sec .stepper li,
    .about-sec .acard {
      animation: scrollGlide linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
  }
}

#st1,
#st2 {
  animation: rise 0.32s var(--ease-silk) both;
}

.flash {
  animation: flashbg 0.7s var(--ease);
}

/* 16. Responsive Architecture --------------------------------------------- */
@media (max-width: 1060px) {
  .detail {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .fcols {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }
}

@media (max-width: 880px) {
  :root {
    --header-h: 70px;
  }
  .logo img {
    height: 42px;
  }
  .menu-btn {
    display: grid;
  }
  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter) 22px;
    background: rgba(4, 16, 31, 0.97);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--gold-500);
    box-shadow: 0 28px 48px -16px rgba(0, 0, 0, 0.75);
    animation: cinemaReveal 0.26s var(--ease-silk) both;
  }
  .top.open .nav {
    display: flex;
  }
  .navlinks {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .navlinks a {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 16px;
    border-radius: var(--radius-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .navlinks a:hover {
    transform: none;
  }
  .navlinks a::after {
    display: none;
  }
  .langs {
    margin-top: 16px;
    display: flex;
    width: 100%;
  }
  .lg {
    flex: 1 1 0;
    text-align: center;
    padding: 9px 8px;
  }
  .rows {
    grid-template-columns: 1fr;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dside {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
    background-attachment: scroll;
  }
  .photo-in {
    padding-block: 68px;
  }
  .hero {
    min-height: min(72vh, 560px);
  }
  .photo-text .btns .btn,
  .hero .btns .btn {
    width: 100%;
  }
  .stepper {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fgrid,
  .jgrid,
  .rform,
  .rgrid,
  .tform {
    grid-template-columns: 1fr;
  }
  .rchip:nth-child(odd) {
    border-inline-end: 0;
  }
  .tform .btn,
  .rform .btn {
    width: 100%;
  }
  .dgrid {
    gap: 8px;
  }
  .factions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .factions .btn {
    width: 100%;
  }
  .step-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .step-nav > span:empty {
    display: none;
  }
  .step-nav .btn {
    width: 100%;
  }
  .facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
  .grid,
  .picks {
    grid-template-columns: 1fr;
  }
  .li {
    padding: 20px;
    padding-inline-end: 54px;
    min-height: 0;
  }
  .res {
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
  }
  .doc {
    flex-direction: column;
    gap: 12px;
  }
  .share-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .share-row .btn {
    width: 100%;
  }
  .prose {
    margin: 24px 0 64px;
    padding: 24px 20px;
  }
  /* Compact Mobile Footer */
  .site-foot {
    padding-block: 44px 26px;
  }
  .fcols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .plate img {
    height: 44px;
  }
  .legal {
    margin-top: 32px;
    padding-top: 18px;
    justify-content: center;
    text-align: center;
  }
}

/* 17. Accessibility & Print ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  #app.leaving {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .li:hover,
  .ccard:hover,
  .stepper li:hover,
  .acard:hover {
    transform: none !important;
  }
}

@media print {
  .no-print,
  .top,
  .site-foot {
    display: none !important;
  }
  body {
    background: #ffffff;
  }
  .pv {
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .pv canvas {
    box-shadow: none;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
    background-attachment: scroll;
  }

  /* بخش Hero و دکمه‌های جمع‌وجور موبایل */
  .photo-in {
    padding-block: 52px;
  }
  .hero {
    min-height: min(64vh, 490px);
  }
  .kicker {
    padding: 5px 14px;
    font-size: 12.5px;
  }
  .btn {
    min-height: 42px;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 9px;
  }
  .photo-text .btns,
  .photo-in > .btns,
  .hero .btns {
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
  }
  .photo-sec .btn,
  .photo-text .btns .btn,
  .hero .btns .btn {
    width: auto;
    flex: 0 1 auto;
    min-height: 40px;
    padding: 8px 18px;
    font-size: 13.5px;
    border-radius: 9px;
  }

  /* چیدمان کارت‌ها و فرم‌ها در موبایل */
  .stepper {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .fgrid,
  .jgrid,
  .rform,
  .rgrid,
  .tform {
    grid-template-columns: 1fr;
  }
  .rchip:nth-child(odd) {
    border-inline-end: 0;
  }
  .tform .btn,
  .rform .btn {
    width: 100%;
  }
  .dgrid {
    gap: 8px;
  }
  .factions,
  .step-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .step-nav > span:empty {
    display: none;
  }
  .factions .btn,
  .step-nav .btn {
    width: 100%;
  }
  .facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
  .grid,
  .picks {
    grid-template-columns: 1fr;
  }
  .li {
    padding: 18px;
    padding-inline-end: 50px;
    min-height: 0;
  }
  .res {
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px;
  }
  .doc {
    flex-direction: column;
    gap: 12px;
  }
  .share-row {
    gap: 8px;
  }
  .prose {
    margin: 24px 0 56px;
    padding: 22px 18px;
  }

  /* فوتر کوتاه و فشرده مخصوص موبایل */
  .site-foot {
    padding-block: 26px 16px;
  }
  .fcols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fcols > div + div {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .plate img {
    height: 36px;
  }
  .fbrand p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .soc {
    margin-top: 10px;
    gap: 8px;
  }
  .soc a {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 8px;
  }
  .fcols h4 {
    margin: 0 0 8px;
    font-size: 14px;
  }
  .site-foot ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
  }
  .site-foot li a {
    padding: 3px 0;
    font-size: 13.5px;
    gap: 7px;
  }
  .fnote {
    font-size: 13px;
    line-height: 1.6;
  }
  .mail {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 13px;
  }
  .faddr {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.6;
  }
  .fphone {
    margin-top: 6px;
    font-size: 14px;
  }
  .legal {
    margin-top: 16px;
    padding-top: 12px;
    gap: 6px 14px;
    font-size: 12px;
    justify-content: center;
    text-align: center;
  }
}
