/* ═══════════════════════════════════════════════════════════════
   الصفحات العامة — منصة أ. محمد خالد
   ═══════════════════════════════════════════════════════════════ */

body.bio-site { background: var(--surface); }

.bio-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.bio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.bio-btn svg, .bio-btn img { width: 18px; height: 18px; }
.bio-btn--solid {
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}
.bio-btn--solid:hover { background: var(--red-700); transform: translateY(-2px); }
.bio-btn--ghost {
  background: transparent;
  color: var(--red);
  border-color: var(--line-2);
}
.bio-btn--ghost:hover { background: var(--red-50); border-color: var(--red); }
.bio-btn--white {
  background: #fff;
  color: var(--red-700);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.bio-btn--white:hover { transform: translateY(-2px); }
.bio-btn--sm { padding: 10px 18px; font-size: 14px; }
.bio-btn--block { width: 100%; }

/* ── Header ────────────────────────────────────────────────── */
.bio-hdr {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.bio-hdr__row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  flex-wrap: nowrap;
}
.bio-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong) !important;
  min-width: 0;
  flex: 0 1 auto;
}
.bio-brand__mark {
  width: 68px;
  height: 68px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.bio-brand__mark img, .bio-brand__mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bio-brand__txt { display: grid; line-height: 1.28; min-width: 0; }
.bio-brand__txt b { font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.bio-brand__txt span { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

.bio-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
  list-style: none;
}
.bio-nav a {
  display: block;
  padding: 9px 16px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted-strong);
  transition: background .18s, color .18s;
}
.bio-nav a:hover, .bio-nav a.is-active { background: var(--red-50); color: var(--red); }

.bio-hdr__act {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-inline-start: auto;
}
.bio-hdr__auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bio-hdr .theme-switch--pro {
  --ts-w: 72px;
  --ts-h: 38px;
}
.bio-hdr__theme { flex: none; }

.bio-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--red);
  cursor: pointer;
  place-items: center;
  flex: none;
}
.bio-burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* ── Hero ──────────────────────────────────────────────────── */
.bio-hero {
  position: relative;
  overflow: visible;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(1100px 620px at 88% -12%, var(--red-50), transparent 62%),
    radial-gradient(760px 460px at -8% 108%, var(--red-50), transparent 60%);
}
.bio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--red);
  opacity: .06;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
}
.bio-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.bio-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-1);
  font-size: 13px;
  font-weight: 800;
  color: var(--red-700);
}
.bio-tag i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
}
.bio-tag i::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }

.bio-hero__title {
  margin-top: 22px;
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.bio-hero__title em {
  font-style: normal;
  color: var(--red);
  white-space: nowrap;
}
.bio-hero__lead {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.95;
  color: var(--muted-strong);
  font-weight: 500;
}
.bio-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.bio-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.bio-hero__facts li { display: grid; gap: 2px; }
.bio-hero__facts b {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.bio-hero__facts span { font-size: 13px; font-weight: 700; color: var(--muted); }

/* Hero media */
.bio-hero__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  isolation: isolate;
}
.bio-hero__ring {
  position: absolute;
  inset: -6% -4%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--red-100), transparent 40%, var(--red-100) 75%, transparent);
  filter: blur(2px);
  opacity: .85;
  animation: bioSpin 34s linear infinite;
}
@keyframes bioSpin { to { transform: rotate(360deg); } }
.bio-hero__frame {
  position: relative;
  margin: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  aspect-ratio: 1 / 1;
}
.bio-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.bio-hero__frame--art { border-radius: 50%; border: none; box-shadow: none; background: transparent; }
.bio-hero__frame--art img { object-fit: contain; }
.bio-hero__frame--teacher {
  z-index: 1;
  overflow: hidden;
  background: var(--red-900);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3), var(--sh-red);
  aspect-ratio: 9 / 16;
}
.bio-hero__frame--teacher .bio-hero__teacher {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.bio-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  animation: bioFloat 6s ease-in-out infinite;
}
.bio-float__ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  background: var(--red-50);
  display: grid; place-items: center;
  padding: 7px;
}
.bio-float__ico img { width: 100%; height: 100%; object-fit: contain; }
.bio-float b { display: block; font-size: 14px; font-weight: 900; color: var(--text-strong); line-height: 1.3; }
.bio-float span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.bio-float { z-index: 3; }
.bio-float--a { top: 16%; inset-inline-start: 0; }
.bio-float--b { bottom: 12%; inset-inline-end: 0; animation-delay: -3s; }
@keyframes bioFloat { 50% { transform: translateY(-12px); } }

/* ── Section shell ─────────────────────────────────────────── */
.bio-sec { padding: clamp(56px, 7vw, 100px) 0; }
.bio-sec--tint { background: var(--surface-2); }
.bio-sec__head { max-width: 660px; margin-bottom: clamp(32px, 4vw, 54px); }
.bio-sec__head--center { margin-inline: auto; text-align: center; }
.bio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--red);
  text-transform: uppercase;
}
.bio-eyebrow::before {
  content: "";
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--red);
}
.bio-sec__head--center .bio-eyebrow::after {
  content: "";
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--red);
}
.bio-sec__title {
  margin-top: 14px;
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.bio-sec__sub {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--muted-strong);
}

/* ── Pillars (فروع المادة) ─────────────────────────────────── */
.bio-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.bio-pillar {
  position: relative;
  align-content: start;
  padding: 30px 26px 30px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.bio-pillar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.bio-pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: var(--line-2);
}
.bio-pillar:hover::after { transform: scaleX(1); }
.bio-pillar__ico {
  width: 66px; height: 66px;
  border-radius: 20px;
  background: var(--red);
  display: grid; place-items: center;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--sh-red);
}
.bio-pillar__ico img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.bio-pillar__n {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  font-size: 40px;
  font-weight: 900;
  color: var(--red);
  opacity: .14;
  letter-spacing: -.05em;
  line-height: 1;
}
.bio-pillar h3 { font-size: 19px; font-weight: 900; }
.bio-pillar p { margin-top: 10px; font-size: 14.5px; line-height: 1.85; color: var(--muted-strong); }

/* ── Learning path ─────────────────────────────────────────── */
.bio-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}
.bio-path::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline: 8%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--line-2) 0 8px, transparent 8px 16px);
}
.bio-path li { position: relative; text-align: center; }
.bio-path__n {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--red);
  color: var(--red);
  display: grid; place-items: center;
  font-size: 17px; font-weight: 900;
  box-shadow: 0 0 0 8px var(--surface-2);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.bio-sec--tint .bio-path__n { box-shadow: 0 0 0 8px var(--surface-2); }
.bio-path li:hover .bio-path__n { background: var(--red); color: #fff; transform: translateY(-4px); }
.bio-path h3 { font-size: 17.5px; font-weight: 900; }
.bio-path p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--muted-strong); }

/* ── Stats band ────────────────────────────────────────────── */
.bio-stats {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5vw, 68px) 0;
  background: linear-gradient(135deg, var(--red-900), var(--red-700) 55%, var(--red));
  color: #fff;
}
.bio-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .07;
}
.bio-stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  text-align: center;
}
.bio-stats__grid > div { padding-inline: 12px; }
.bio-stats__grid > div + div { border-inline-start: 1px solid rgba(255,255,255,.16); }
.bio-stats b {
  display: block;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: #fff;
}
.bio-stats span { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.82); }

/* ── Feature cards ─────────────────────────────────────────── */
.bio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.bio-card {
  display: flex;
  gap: 18px;
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.bio-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.bio-card__ico {
  width: 52px; height: 52px; flex: none;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  padding: 12px;
  box-shadow: var(--sh-red);
}
.bio-card__ico img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.bio-card h3 { font-size: 18px; font-weight: 900; }
.bio-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.85; color: var(--muted-strong); }

/* ── Grades ────────────────────────────────────────────────── */
.bio-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 22px;
}
.bio-grade {
  position: relative;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  color: inherit !important;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bio-grade:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.bio-grade__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.bio-grade__media img { width: 100%; height: 100%; object-fit: contain; }
.bio-grade__body { padding: 20px 22px 24px; }
.bio-grade__body h3 { font-size: 19px; font-weight: 900; }
.bio-grade__body p { margin-top: 6px; font-size: 14px; color: var(--muted-strong); }
.bio-grade__go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 14px; font-weight: 800; color: var(--red);
}
.bio-grade__go::after { content: "←"; transition: transform .25s var(--ease); }
.bio-grade:hover .bio-grade__go::after { transform: translateX(-5px); }

.bio-gradeStrip {
  --bio-grade-card: min(320px, calc((100vw - 72px) / 1.85));
  --bio-grade-gap: 18px;
  direction: ltr;
  margin-top: 8px;
}
.bio-gradeStrip__viewport {
  overflow: hidden;
  padding-block: 12px;
}
.bio-gradeStrip__track {
  display: flex;
  width: max-content;
  animation: bioGradeMarquee var(--bio-grade-dur, 28s) linear infinite;
  will-change: transform;
}
.bio-gradeStrip__set {
  display: flex;
  gap: var(--bio-grade-gap);
  flex: none;
  padding-inline-end: var(--bio-grade-gap);
}
.bio-gradeStrip .bio-grade {
  flex: 0 0 var(--bio-grade-card);
  width: var(--bio-grade-card);
  max-width: var(--bio-grade-card);
  direction: rtl;
  text-align: start;
}
.bio-gradeStrip.is-js .bio-gradeStrip__track {
  animation: none;
}
@keyframes bioGradeMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-33.333%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .bio-gradeStrip__viewport { overflow: visible; }
  .bio-gradeStrip__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    transform: none !important;
    will-change: auto;
  }
  .bio-gradeStrip__set:nth-child(n + 2) { display: none; }
  .bio-gradeStrip__set { padding-inline-end: 0; flex-wrap: wrap; justify-content: center; }
}

.bio-gradePage { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
.bio-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 18px;
}
.bio-crumb a { color: var(--red); }
.bio-gradeHero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  margin-bottom: clamp(28px, 4vw, 42px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.bio-gradeHero__mark {
  width: 84px;
  height: 84px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.bio-gradeHero__mark img { width: 100%; height: 100%; object-fit: contain; }
.bio-gradeHero h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.bio-gradeHero p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted-strong);
  font-weight: 700;
}
.bio-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.bio-course {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.bio-course__media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.bio-course__media img { width: 100%; height: 100%; object-fit: cover; }
.bio-course__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--red);
  background: linear-gradient(160deg, var(--red-50), var(--surface-2));
}
.bio-course__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  flex: 1;
}
.bio-course__title { font-size: 18px; font-weight: 900; line-height: 1.45; }
.bio-course__hint { font-size: 13.5px; line-height: 1.75; color: var(--muted-strong); font-weight: 700; }
.bio-course__pricing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bio-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--red-50);
  color: var(--red);
}
.bio-badge--buy { background: #fff4e8; color: #9a4a00; }
.bio-price { font-size: 14px; font-weight: 800; }
.bio-price s { color: var(--muted); font-weight: 700; margin-inline-end: 6px; }
.bio-course__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.bio-course__actions .bio-btn { flex: 1 1 auto; min-width: 0; }
.bio-empty {
  text-align: center;
  padding: 42px 20px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--muted-strong);
  font-weight: 800;
  line-height: 1.9;
}

/* ── CTA ───────────────────────────────────────────────────── */
.bio-ctaWrap { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.bio-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 68px) clamp(26px, 5vw, 68px);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--red-900), var(--red-700) 58%, var(--red));
  color: #fff;
  text-align: center;
  box-shadow: var(--sh-3);
}
.bio-cta::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  inset-inline-end: -110px; top: -160px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.06);
}
.bio-cta::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  inset-inline-start: -80px; bottom: -130px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05);
}
.bio-cta > * { position: relative; }
.bio-cta h2 {
  font-size: clamp(25px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: #fff;
}
.bio-cta p {
  margin: 16px auto 0;
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(255,255,255,.86);
}
.bio-cta__act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ── Footer ────────────────────────────────────────────────── */
.bio-ftr {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 5vw, 68px) 0 0;
}
.bio-ftr__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
}
.bio-ftr__about p {
  margin-top: 18px;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted-strong);
}
.bio-ftr__col h4 {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bio-ftr__col ul { list-style: none; display: grid; gap: 11px; }
.bio-ftr__col a, .bio-ftr__col li {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted-strong);
  transition: color .18s;
}
.bio-ftr__col a:hover { color: var(--red); }
.bio-social { display: flex; gap: 10px; margin-top: 20px; }
.bio-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--red);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.bio-social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.bio-social svg, .bio-social img { width: 19px; height: 19px; }
.bio-ftr__bar {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Auth pages ────────────────────────────────────────────── */
body.bio-auth-body { background: var(--surface-2); }
.bio-auth {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 40px 20px 64px;
  background:
    radial-gradient(900px 520px at 85% -10%, var(--red-50), transparent 60%),
    radial-gradient(700px 460px at 5% 105%, var(--red-50), transparent 60%);
}
.bio-auth__card {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}
.bio-auth__form { padding: clamp(30px, 4vw, 52px); }
.bio-auth__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 800; color: var(--muted);
  margin-bottom: 26px;
}
.bio-auth__back:hover { color: var(--red); }
.bio-auth__form h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.bio-auth__form > p { margin-top: 10px; font-size: 15px; color: var(--muted-strong); }
.bio-auth__card--wide { width: min(1120px, 100%); grid-template-columns: 1.25fr .75fr; }
.bio-auth__card:has(.bio-auth__art--photo),
.bio-auth__card--wide:has(.bio-auth__art--photo) {
  grid-template-columns: 1.05fr .95fr;
}
.bio-auth__fields { display: grid; gap: 16px; margin-top: 28px; }
.bio-auth__fields .field { display: grid; gap: 7px; }
.bio-auth__fields .label {
  font-size: 13.5px; font-weight: 800; color: var(--text-strong);
}
.bio-auth__fields .hint { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bio-auth__fields .field[hidden] { display: none; }
.bio-auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bio-auth__submit { margin-top: 8px; padding-block: 16px; font-size: 16px; }
.bio-auth__minor { margin-top: 14px; text-align: center; }
.bio-auth__linkBtn {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bio-auth__linkBtn:hover { color: var(--red); }
.bio-auth__alt {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14.5px;
  color: var(--muted-strong);
}
.bio-auth__alt a { font-weight: 900; color: var(--red); }

.bio-auth__side {
  position: relative;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(30px, 4vw, 52px);
  background: linear-gradient(150deg, var(--red-900), var(--red-700) 55%, var(--red));
  color: #fff;
  overflow: hidden;
}
.bio-auth__side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .08;
}
.bio-auth__side > * { position: relative; }
.bio-auth__art {
  width: min(300px, 74%);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
}
.bio-auth__art img { width: 100%; height: 100%; object-fit: cover; }
.bio-auth__art--svg { background: #fff; padding: 0; }
.bio-auth__art--svg img { object-fit: contain; }
.bio-auth__art--photo {
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  border-radius: 22px;
  background: rgba(0,0,0,.16);
}
.bio-auth__art--photo img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: contain;
  object-position: center;
  display: block;
}
.bio-auth__side h2 { font-size: 25px; font-weight: 900; color: #fff; text-align: center; }
.bio-auth__side p { text-align: center; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.85); }
.bio-auth__points { display: grid; gap: 12px; list-style: none; margin-top: 4px; }
.bio-auth__points li {
  display: flex; align-items: center; gap: 11px;
  font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,.94);
}
.bio-auth__points li::before {
  content: "";
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.34);
  background-image: linear-gradient(45deg, transparent 44%, #fff 44% 52%, transparent 52%),
                    linear-gradient(-45deg, transparent 56%, #fff 56% 64%, transparent 64%);
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .bio-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio-path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .bio-path::before { display: none; }
  .bio-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .bio-stats__grid > div:nth-child(3) { border-inline-start: none; }
  .bio-ftr__grid { grid-template-columns: 1fr 1fr; }
  .bio-ftr__about { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .bio-nav { display: none; }
  .bio-hdr__act { margin-inline-start: auto; gap: 8px; }
  .bio-hdr__auth { display: none !important; }
  .bio-hdr__theme {
    display: inline-block !important;
    visibility: visible !important;
  }
  .bio-hdr .theme-switch--pro {
    --ts-w: 56px;
    --ts-h: 32px;
    --ts-pad: 3px;
  }
  .bio-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }
  .bio-brand__txt {
    display: grid;
    min-width: 0;
  }
  .bio-brand__txt b {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bio-brand__txt span {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bio-burger { display: grid; }
  .bio-hdr__row { min-height: 68px; gap: 10px; }
  .bio-brand__mark { width: 46px; height: 46px; border-radius: 12px; }
  .bio-hero {
    padding-top: 18px;
    padding-bottom: 40px;
  }
  .bio-hero__grid { grid-template-columns: 1fr; }
  .bio-hero__media {
    order: -1;
    display: grid;
    gap: 10px;
    max-width: min(100%, 360px);
    margin-inline: auto;
    justify-items: stretch;
  }
  .bio-hero__copy { order: 1; }
  .bio-hero__title { margin-top: 18px; }
  .bio-hero__frame { max-width: 320px; margin-inline: auto; width: 100%; }
  .bio-float {
    position: static;
    animation: none;
    width: 100%;
    box-shadow: var(--sh-1);
  }
  .bio-hero__ring { display: none; }
  .bio-auth__card,
  .bio-auth__card--wide,
  .bio-auth__card:has(.bio-auth__art--photo),
  .bio-auth__card--wide:has(.bio-auth__art--photo) {
    grid-template-columns: 1fr;
  }
  .bio-auth__side {
    order: -1;
    padding: 0;
    gap: 0;
    background: var(--surface);
  }
  .bio-auth__side::before { display: none; }
  .bio-auth__side h2,
  .bio-auth__side p,
  .bio-auth__points,
  .bio-auth__art--svg {
    display: none;
  }
  .bio-auth__side:not(:has(.bio-auth__art--photo)) {
    display: none;
  }
  .bio-auth__art { width: min(190px, 55%); }
  .bio-auth__art--photo {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: 0;
    background: var(--surface-2);
  }
  .bio-auth__art--photo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}

@media (max-width: 620px) {
  .bio-container { padding-inline: 18px; }
  .bio-pillars, .bio-path, .bio-stats__grid, .bio-ftr__grid { grid-template-columns: 1fr; }
  .bio-stats__grid > div + div { border-inline-start: none; border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; }
  .bio-hero__facts { gap: 14px 24px; }
  .bio-hero__cta .bio-btn { flex: 1 1 100%; }
  .bio-gradeHero { flex-direction: column; align-items: flex-start; text-align: start; }
  .bio-course__actions .bio-btn { flex: 1 1 100%; }
  .bio-float { padding: 9px 12px; }
  .bio-float b { font-size: 12.5px; }
  .bio-float span { font-size: 10.5px; }
  .bio-float__ico { width: 30px; height: 30px; }
  .bio-auth__row { grid-template-columns: 1fr; }
  .bio-ftr__bar { justify-content: center; text-align: center; }
}

/* Mobile drawer for nav */
.bio-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  background: rgba(27, 6, 9, .48);
}
.bio-drawer.is-open { display: block; }
html.bio-nav-open,
html.bio-nav-open body {
  overflow: hidden !important;
}
.bio-drawer__panel {
  position: absolute;
  inset-inline: 0;
  top: 0;
  width: 100%;
  max-height: min(88dvh, 560px);
  background: var(--surface);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--sh-3);
  overflow: auto;
}
.bio-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.bio-drawer__who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bio-drawer__who .bio-brand__mark {
  width: 48px;
  height: 48px;
}
.bio-drawer__who .bio-brand__txt { display: grid; }
.bio-drawer__who b { font-size: 16px; font-weight: 900; }
.bio-drawer__who span { font-size: 12px; font-weight: 700; color: var(--muted); }
.bio-drawer__nav {
  display: grid;
  gap: 6px;
}
.bio-drawer__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  color: var(--text-strong);
  background: var(--surface-2);
}
.bio-drawer__nav a:hover { background: var(--red-50); color: var(--red); }
.bio-drawer__actions {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}
.bio-drawer__actions .bio-btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
}
.bio-drawer__close {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--red);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
}
