/* ═══════════════════════════════════════════════════════════════
   منصة دكتور عمرو بسيوني — الواجهة العامة
   هيدر · هيرو DNA ثلاثي الأبعاد · أقسام · فوتر · صفحات الدخول
   ═══════════════════════════════════════════════════════════════ */

:where(.bx-hdr, .bx-drawer, .bx-hero, .bx-section, .bx-ft, .auth-page, .bx-welcome) a { color: inherit; text-decoration: none; }
:where(.bx-hero, .bx-section, .bx-ft, .bx-authv) h1,
:where(.bx-hero, .bx-section, .bx-ft, .bx-authv) h2,
:where(.bx-hero, .bx-section, .bx-ft, .bx-authv) h3 { font-family: var(--font-display); }

/* ───────── خلفية عامة ───────── */
.bio-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bio-ambient__glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; }
.bio-ambient__glow--a { width: 42vw; height: 42vw; top: 40vh; inset-inline-end: -14vw; background: radial-gradient(circle, rgba(139,92,246,.22), transparent 70%); }
.bio-ambient__glow--b { width: 36vw; height: 36vw; bottom: -12vw; inset-inline-start: -10vw; background: radial-gradient(circle, rgba(217,70,239,.16), transparent 70%); }
.bio-ambient__cells span {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, .22);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.7), rgba(196,181,253,.18) 60%, transparent 70%);
  animation: bxCellFloat 22s ease-in-out infinite;
}
.bio-ambient__cells span:nth-child(1){ width:26px;height:26px; inset-inline-start:6%;  top:62%; }
.bio-ambient__cells span:nth-child(2){ width:14px;height:14px; inset-inline-start:18%; top:84%; animation-duration:18s; animation-delay:-5s; }
.bio-ambient__cells span:nth-child(3){ width:34px;height:34px; inset-inline-start:88%; top:70%; animation-duration:26s; animation-delay:-9s; }
.bio-ambient__cells span:nth-child(4){ width:12px;height:12px; inset-inline-start:74%; top:92%; animation-duration:15s; animation-delay:-2s; }
.bio-ambient__cells span:nth-child(5){ width:20px;height:20px; inset-inline-start:44%; top:96%; animation-duration:24s; animation-delay:-12s; }
.bio-ambient__cells span:nth-child(6){ width:16px;height:16px; inset-inline-start:94%; top:44%; animation-duration:20s; animation-delay:-7s; }
html[data-theme="dark"] .bio-ambient__cells span { border-color: rgba(196,181,253,.16); background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.18), rgba(139,92,246,.12) 60%, transparent 70%); }

@keyframes bxCellFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-40px) scale(1.1); } }
@keyframes bxSpin { to { transform: rotate(360deg); } }
@keyframes bxSpinRev { to { transform: rotate(-360deg); } }
@keyframes bxHelix { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes bxFloatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bxFloatY2 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(12px) rotate(-3deg); } }
@keyframes bxPlantSway {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  25% { transform: translateY(-8px) rotate(5deg); }
  50% { transform: translateY(-2px) rotate(-4deg); }
  75% { transform: translateY(-10px) rotate(7deg); }
}
@keyframes bxMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bxPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); } 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes bxDash { to { stroke-dashoffset: 0; } }
@keyframes bxBlob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(4%, -6%) scale(1.08); } 66% { transform: translate(-5%, 4%) scale(.95); } }
@keyframes bxShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ───────── أزرار ───────── */
.bx-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 800; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s, color .25s;
  isolation: isolate;
}
.bx-btn:hover { transform: translateY(-2px); }
.bx-btn:active { transform: translateY(0); }
.bx-btn__ico { width: 24px; height: 24px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }
.bx-btn--primary {
  color: #fff;
  background: var(--btn-solid-bg);
  box-shadow: 0 10px 30px -8px rgba(147, 51, 234, .7), inset 0 1px 0 rgba(255,255,255,.28);
}
.bx-btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 250% 100%; opacity: 0; transition: opacity .3s;
}
.bx-btn--primary:hover { box-shadow: 0 18px 40px -10px rgba(192, 38, 211, .8), inset 0 1px 0 rgba(255,255,255,.3); }
.bx-btn--primary:hover::after { opacity: 1; animation: bxShine 1.4s linear; }
.bx-btn--glass {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bx-btn--glass:hover { background: rgba(255,255,255,.14); border-color: rgba(253, 230, 138, .55); }
.bx-btn--gold {
  color: var(--btn-gold-text);
  background: var(--btn-gold-bg);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.5);
  font-weight: 900;
}
.bx-btn--gold:hover { box-shadow: 0 20px 44px -10px rgba(245, 184, 61, .75), inset 0 1px 0 rgba(255,255,255,.5); }
.bx-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.bx-btn--xl { min-height: 58px; padding: 0 30px; font-size: 16.5px; }
.bx-btn--block { width: 100%; }

/* ───────── مفتاح الوضع ───────── */
.theme-switch--pro {
  --ts-w: 78px !important; --ts-h: 40px !important; --ts-pad: 4px !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25) !important;
}
.theme-switch--pro .theme-switch__knob,
.theme-switch--pro .acc-theme__knob {
  background: linear-gradient(180deg, #fff, #f3eefe) !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.3) !important;
}
html[data-theme="dark"] .theme-switch--pro .theme-switch__knob,
html[data-theme="dark"] .theme-switch--pro .acc-theme__knob {
  background: linear-gradient(135deg, #7c3aed, #c026d3) !important;
}
.theme-switch--pro .theme-switch__knob-ico svg { width: 18px !important; height: 18px !important; }
.theme-switch--pro .theme-switch__knob-ico--light svg { color: #f59e0b !important; }
.theme-switch--pro .theme-switch__knob-ico--dark svg { color: #fff !important; }
.theme-switch--pro:focus-within { outline: 2px solid rgba(217,70,239,.5) !important; }

/* ───────── هيدر ───────── */
.bx-hdr {
  position: sticky; top: 0; z-index: 1000;
  color: #fff;
  background: rgba(13, 5, 32, .78);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(196, 181, 253, .12);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.6);
}
.bx-hdr::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,184,61,.6), rgba(217,70,239,.6), transparent);
  opacity: .7;
}
.bx-hdr__bar { display: flex; align-items: center; gap: 22px; min-height: 78px; }
.bx-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.bx-brand__mark {
  position: relative; width: 54px; height: 54px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
}
.bx-brand__mark::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, #fcd34d, #d946ef, #8b5cf6, #fcd34d);
  animation: bxSpin 8s linear infinite; opacity: .9;
}
.bx-brand__mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #12072b; }
.bx-brand__mark img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.bx-brand__logoFallback { position: relative; z-index: 1; color: #fff; }
.bx-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bx-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; white-space: nowrap; line-height: 1.3; }
.bx-brand__slogan { font-family: var(--font-calli); font-size: 15px; line-height: 1.2; color: var(--gold-400); }

.bx-hdr__links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.bx-hdr__links a {
  position: relative; padding: 10px 14px; border-radius: 12px;
  color: rgba(233, 227, 251, .78); font-weight: 700; font-size: 15px;
  transition: color .2s, background .2s;
}
.bx-hdr__links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.bx-hdr__links a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--magenta-500));
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.bx-hdr__links a:hover::after { transform: scaleX(1); }
.bx-hdr__actions { display: flex; align-items: center; gap: 10px; flex: none; margin-inline-start: auto; }
.bx-hdr__actions .bx-btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.bx-hdr__theme { display: flex; flex: none; align-items: center; margin-inline-start: 8px; }

.bx-burger {
  display: none; width: 46px; height: 46px; border-radius: 14px; margin-inline-start: auto;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.bx-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }
.bx-drawer { display: none; }
.bx-drawer.is-open { display: block; padding-bottom: 16px; }
.bx-drawer__box {
  display: grid; gap: 6px; padding: 14px; border-radius: 24px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.bx-drawer__link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  color: #fff; font-weight: 700; background: rgba(255,255,255,.03);
}
.bx-drawer__link .bio3d { width: 30px; height: 30px; }
.bx-drawer__link:hover { background: rgba(255,255,255,.08); }
.bx-drawer__theme { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: rgba(233,227,251,.8); font-weight: 700; }
.bx-drawer__cta { display: grid; gap: 8px; margin-top: 4px; }

/* ───────── HERO ───────── */
.bx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background: var(--grad-hero);
  padding: 72px 0 0;
}
.bx-hero__mesh { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bx-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; animation: bxBlob 18s ease-in-out infinite; }
.bx-blob--a { width: 520px; height: 520px; top: -160px; inset-inline-start: 34%; background: radial-gradient(circle, rgba(147,51,234,.75), transparent 65%); }
.bx-blob--b { width: 460px; height: 460px; bottom: -120px; inset-inline-end: -120px; background: radial-gradient(circle, rgba(217,70,239,.5), transparent 65%); animation-delay: -6s; }
.bx-blob--c { width: 360px; height: 360px; top: 30%; inset-inline-start: -120px; background: radial-gradient(circle, rgba(245,184,61,.22), transparent 65%); animation-delay: -12s; }
.bx-hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(196,181,253,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,181,253,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.bx-hero__wrap {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; align-items: center;
  min-height: min(calc(100vh - 180px), 720px);
  padding-bottom: 56px;
}

.bx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.bx-eyebrow__pulse { width: 9px; height: 9px; border-radius: 50%; background: #34d399; animation: bxPulse 2s infinite; }

.bx-hero__title { margin: 22px 0 0; line-height: 1.05; font-weight: 700; }
.bx-hero__pre {
  display: block; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 500;
  color: rgba(233, 227, 251, .75); margin-bottom: 8px; letter-spacing: .02em;
}
.bx-hero__name {
  display: block;
  font-size: clamp(3rem, 7.2vw, 6rem);
  background: linear-gradient(100deg, #ffffff 0%, #f5eaff 40%, #e9b8ff 70%, #fde68a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(192, 38, 211, .35));
  padding-bottom: .08em;
}
.bx-hero__tag {
  margin: 14px 0 0; font-family: var(--font-calli); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-400);
  text-shadow: 0 4px 24px rgba(245, 184, 61, .35);
}
.bx-hero__lead {
  margin: 18px 0 0; max-width: 36rem;
  font-size: 1.12rem; line-height: 1.95; color: rgba(233, 227, 251, .78); font-weight: 500;
}
.bx-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.bx-hero__trust {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.bx-hero__trust li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 14px; border-radius: 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}
.bx-hero__trust .bio3d { width: 40px; height: 40px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.bx-hero__trust span { display: flex; flex-direction: column; line-height: 1.35; }
.bx-hero__trust b { font-size: 15px; color: #fff; }
.bx-hero__trust small { font-size: 12.5px; color: rgba(233,227,251,.65); font-weight: 600; }

/* المسرح */
.bx-hero__stage { position: relative; min-height: 640px; display: grid; place-items: center; }

/* DNA ثلاثي الأبعاد */
.bx-helix {
  position: absolute; top: 50%; inset-inline-end: -4%;
  display: flex; flex-direction: column; gap: 10px;
  transform: translateY(-50%) rotate(-24deg);
  perspective: 900px; pointer-events: none; opacity: .9; z-index: 0;
}
.bx-helix__rung {
  --w: 190px;
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: var(--w); height: 16px;
  transform-style: preserve-3d;
  animation: bxHelix 6s linear infinite;
  animation-delay: calc(var(--i) * -0.3s);
}
.bx-helix__rung i {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #e879f9 35%, #9333ea 80%);
  box-shadow: 0 0 18px rgba(217, 70, 239, .8);
}
.bx-helix__rung i:last-child {
  background: radial-gradient(circle at 35% 30%, #fff 0%, #fde68a 35%, #f59e0b 85%);
  box-shadow: 0 0 18px rgba(245, 184, 61, .75);
}
.bx-helix__rung b {
  flex: 1; height: 3px; margin-inline: 2px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(232,121,249,.9), rgba(196,181,253,.35) 50%, rgba(253,230,138,.9));
}

/* كرة الشعار */
.bx-orb { position: relative; z-index: 1; width: min(580px, 92vw); aspect-ratio: 1; display: grid; place-items: center; }
.bx-orb__glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,38,211,.55), rgba(124,58,237,.3) 45%, transparent 70%);
  filter: blur(30px);
}
.bx-orb__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.bx-orb__ring--1 { inset: 0; border: 1.5px dashed rgba(253, 230, 138, .45); animation: bxSpin 40s linear infinite; }
.bx-orb__ring--2 {
  inset: 4%; padding: 2px;
  background: conic-gradient(from 0deg, transparent 0 20%, #fcd34d 30%, #d946ef 50%, #8b5cf6 65%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: bxSpin 7s linear infinite;
}
.bx-orb__ring--3 { inset: -8%; border: 1px solid rgba(196, 181, 253, .14); animation: bxSpinRev 60s linear infinite; }
.bx-orb__logo {
  position: relative; z-index: 2; width: 84%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(192,38,211,.35));
  animation: bxFloatY 7s ease-in-out infinite;
}
.bx-orb__logo--hero {
  width: 88%; aspect-ratio: 1; height: auto;
  border-radius: 50%; object-fit: cover; object-position: center 12%;
  box-shadow:
    0 0 0 8px rgba(255,255,255,.14),
    0 0 0 18px rgba(252, 211, 77, .22),
    0 34px 70px rgba(0,0,0,.55),
    0 0 50px rgba(192,38,211,.4);
  filter: none;
}
.bx-orb__sat {
  position: absolute; z-index: 5; display: grid; place-items: center;
  width: 78px; height: 78px; border-radius: 24px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  animation: bxFloatY2 6s ease-in-out infinite;
}
.bx-orb__sat .bio3d { width: 48px; height: 48px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.bx-orb__sat--1 { top: 26%; inset-inline-start: -12%; } /* DNA ظاهر أسفل بطاقة العقل */
.bx-orb__sat--2 { bottom: 4%; inset-inline-start: -6%; animation-delay: -2s; }
.bx-orb__sat--3,
.bx-orb__sat--plant {
  top: 2%;
  inset-inline-end: -2%;
  width: 72px;
  height: 72px;
  z-index: 6;
  animation: bxPlantSway 3.6s ease-in-out infinite;
  transform-origin: 50% 90%;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}
.bx-orb__sat--plant .bio3d {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 6px 12px rgba(16, 185, 129, .35));
}

/* بطاقات عائمة */
.bx-float {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 14px; border-radius: 20px;
  background: rgba(24, 10, 52, .55);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
  animation: bxFloatY 8s ease-in-out infinite;
}
.bx-float .bio3d { filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.bx-float__body { display: grid; gap: 4px; min-width: 0; }
.bx-float__body strong { font-size: 14px; color: #fff; font-weight: 800; }
.bx-float__body small { font-size: 12px; color: rgba(233,227,251,.7); font-weight: 600; }
.bx-float__bar { display: block; width: 150px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.bx-float__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fcd34d, #d946ef); }
.bx-float__ecg { width: 120px; height: 26px; }
.bx-float__ecg path { fill: none; stroke: #f472b6; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 240; stroke-dashoffset: 240; animation: bxDash 2.6s ease-in-out infinite alternate; }
.bx-float__num { font-family: var(--font-display); font-size: 26px !important; line-height: 1; color: #fde68a !important; }
.bx-float__num span { font-size: 14px; color: rgba(233,227,251,.6); font-weight: 600; }
.bx-float--progress { top: 0; inset-inline-end: 58%; animation-delay: -1s; }
.bx-float--pulse { bottom: 6%; inset-inline-end: 44%; animation-delay: -3s; }
.bx-float--score { top: 46%; inset-inline-end: -4%; animation-delay: -5s; }

/* الشريط المتحرك */
.bx-marquee {
  position: relative; overflow: hidden; direction: ltr;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(8, 3, 22, .45);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bx-marquee__track { display: flex; width: max-content; gap: 14px; padding: 18px 0; animation: bxMarquee 50s linear infinite; }
@media (hover: hover) and (pointer: fine) {
  .bx-marquee:hover .bx-marquee__track { animation-play-state: paused; }
}
.bx-marquee__item {
  direction: rtl; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.88); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.bx-marquee__item .bio3d { width: 30px; height: 30px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.bx-marquee__item .bio3d--emoji { --bio3d-size: 30px; font-size: 30px; }

/* ───────── أقسام عامة ───────── */
.bx-section { position: relative; padding: 110px 0; }
.bx-section--tight { padding: 50px 0; }
.bx-head { text-align: center; max-width: 860px; margin: 0 auto 56px; }
.bx-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 800; color: var(--brand-700);
  background: var(--card-bg); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.bx-kicker .bio3d { width: 22px; height: 22px; filter: none; }
.bx-kicker--light { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); box-shadow: none; }
.bx-head__title {
  margin: 22px 0 0; font-weight: 700; line-height: 1.55;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem); color: var(--text-strong);
  letter-spacing: 0.01em;
}
.bx-head__sub {
  margin: 28px auto 0;
  max-width: 54rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--muted-strong);
  line-height: 2.15;
}

/* ───────── وحدات المنهج ───────── */
.bx-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bx-unit {
  --hue: 139, 92, 246;
  position: relative; overflow: hidden;
  padding: 28px 26px 30px; border-radius: var(--radius-xl);
  background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.bx-unit::before {
  content: ""; position: absolute; width: 260px; height: 260px; top: -120px; inset-inline-end: -100px;
  border-radius: 50%; background: radial-gradient(circle, rgba(var(--hue), .22), transparent 70%);
  transition: transform .6s var(--ease);
}
.bx-unit:nth-child(2) { --hue: 217, 70, 239; }
.bx-unit:nth-child(3) { --hue: 244, 63, 94; }
.bx-unit:nth-child(4) { --hue: 16, 185, 129; }
.bx-unit:nth-child(5) { --hue: 56, 189, 248; }
.bx-unit:nth-child(6) { --hue: 245, 184, 61; }
.bx-unit:nth-child(7) { --hue: 34, 197, 94; }
.bx-unit--wide { grid-column: span 2; }
.bx-unit:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); border-color: rgba(var(--hue), .45); }
.bx-unit:hover::before { transform: scale(1.4); }
.bx-unit__no {
  position: absolute; top: 20px; inset-inline-start: 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--hue), .35);
}
.bx-unit__art { position: relative; display: flex; justify-content: flex-end; margin-bottom: 18px; }
.bx-unit__art .bio3d { width: 96px; height: 96px; transition: transform .6s var(--ease-bounce); filter: drop-shadow(0 18px 24px rgba(var(--hue), .35)); }
.bx-unit__art .bio3d--emoji { --bio3d-size: 96px; font-size: 96px; }
.bx-unit:hover .bx-unit__art .bio3d { transform: translateY(-8px) rotate(-8deg) scale(1.08); }
.bx-unit__title { position: relative; margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; color: var(--text-strong); }
.bx-unit__text { position: relative; margin: 0; color: var(--muted); line-height: 1.85; font-size: 15px; }
.bx-unit--wide .bx-unit__art { position: absolute; top: 24px; inset-inline-end: 26px; margin: 0; }
.bx-unit--wide .bx-unit__art .bio3d { width: 120px; height: 120px; }
.bx-unit--wide .bx-unit__art .bio3d--emoji { --bio3d-size: 120px; font-size: 120px; }
.bx-unit--wide .bx-unit__title { margin-top: 70px; font-size: 1.5rem; }
.bx-unit--wide .bx-unit__text { max-width: 26rem; }

/* ───────── عن الدكتور ───────── */
.bx-spot {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center;
  padding: 64px; border-radius: var(--radius-2xl);
  color: #fff; background: var(--grad-hero);
  box-shadow: var(--shadow-strong);
}
.bx-spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(217,70,239,.35), transparent 60%),
    radial-gradient(500px 360px at 100% 100%, rgba(245,184,61,.18), transparent 60%);
}
.bx-spot__media { position: relative; display: grid; place-items: center; }
.bx-spot__frame {
  position: relative; width: min(360px, 70vw); aspect-ratio: 1; border-radius: 50%;
  padding: 10px; background: conic-gradient(from 90deg, #fcd34d, #d946ef, #8b5cf6, #fcd34d);
  box-shadow: 0 30px 80px -20px rgba(192,38,211,.6);
}
.bx-spot__frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: #12072b; }
.bx-spot__badge {
  position: absolute; bottom: 6%; inset-inline-start: 4%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  font-weight: 800; color: #fff;
  background: rgba(24, 10, 52, .7); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
}
.bx-spot__badge .bio3d { width: 34px; height: 34px; }
.bx-spot__title { margin: 18px 0 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.35; font-weight: 700; color: #fff; }
.bx-spot__role {
  margin: 12px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  color: #fde68a;
  line-height: 1.6;
}
.bx-spot__text { margin: 14px 0 0; color: rgba(233,227,251,.85); line-height: 2; font-size: 1.05rem; }
.bx-spot__tagline {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.bx-spot__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.bx-spot__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 18px; font-weight: 700;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.bx-spot__list .bio3d { width: 32px; height: 32px; }

/* ───────── المميزات ───────── */
.bx-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bx-feature {
  position: relative; padding: 32px 28px; border-radius: var(--radius-xl);
  background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.bx-feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef, #fcd34d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.bx-feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); }
.bx-feature:hover::before { opacity: 1; }
.bx-feature__ico {
  width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(139,92,246,.14), rgba(217,70,239,.08));
  border: 1px solid rgba(139,92,246,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  margin-bottom: 22px;
}
.bx-feature__ico .bio3d { width: 60px; height: 60px; transition: transform .6s var(--ease-bounce); }
.bx-feature:hover .bx-feature__ico .bio3d { transform: scale(1.14) rotate(-6deg); }
.bx-feature__title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; color: var(--text-strong); }
.bx-feature__text { margin: 0; color: var(--muted); line-height: 1.85; }

/* ───────── الخطوات ───────── */
.bx-steps {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: var(--radius-2xl);
  background: linear-gradient(145deg, var(--card-bg), var(--card-soft));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.bx-steps__intro .bx-head__title { margin-top: 16px; }
.bx-steps__intro .bx-head__sub { margin-inline: 0; }
.bx-steps__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; position: relative; }
.bx-steps__list::before {
  content: ""; position: absolute; top: 30px; bottom: 30px; inset-inline-start: 23px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--brand-400) 0 6px, transparent 6px 12px);
}
.bx-step {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 18px 20px; border-radius: 22px;
  background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.bx-step:hover { transform: translateX(-6px); box-shadow: var(--shadow); }
.bx-step__num {
  position: relative; z-index: 1; flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: #fff; background: var(--btn-solid-bg); box-shadow: 0 8px 20px -6px rgba(147,51,234,.7);
}
.bx-step .bio3d { width: 56px; height: 56px; }
.bx-step__title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--text-strong); }
.bx-step__text { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* ───────── الصفوف ───────── */
.bx-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.bx-grade {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-xl); background: var(--card-bg);
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.bx-grade:hover { transform: translateY(-10px); box-shadow: var(--shadow-strong); }
.bx-grade__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #12072b;
}
.bx-grade__cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.5px);
  background-size: 18px 18px; opacity: .5;
}
.bx-grade__cover.has-img::after { display: none; }
.bx-grade__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform .6s var(--ease);
}
.bx-grade:hover .bx-grade__img { transform: scale(1.03); }
.bx-grade__halo { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(253,230,138,.45), transparent 70%); }
.bx-grade__art { position: relative; z-index: 1; width: 120px; height: 120px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); transition: transform .6s var(--ease-bounce); }
.bx-grade:hover .bx-grade__art { transform: scale(1.1) rotate(-6deg); }
.bx-grade__chip {
  position: absolute; z-index: 2; bottom: 14px; inset-inline-end: 14px; top: auto; inset-inline-start: auto;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
  color: var(--btn-gold-text); background: var(--btn-gold-bg);
}
.bx-grade__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 22px; }
.bx-grade__name { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--text-strong); }
.bx-grade__cta {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: var(--brand-700); background: var(--surface-highlight);
  transition: background .25s, color .25s;
}
.bx-grade:hover .bx-grade__cta { color: #fff; background: var(--btn-solid-bg); }

/* ───────── ولي الأمر ───────── */
.bx-parent {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 60px; border-radius: var(--radius-2xl);
  color: #fff;
  background:
    radial-gradient(500px 360px at 0% 100%, rgba(245,184,61,.25), transparent 60%),
    var(--grad-bio);
  box-shadow: var(--shadow-strong);
}
.bx-parent__title { margin: 18px 0 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; color: #fff; line-height: 1.35; }
.bx-parent__text { margin: 14px 0 28px; color: rgba(255,255,255,.82); line-height: 1.95; font-size: 1.05rem; }
.bx-parent__mock { display: grid; place-items: center; perspective: 1200px; }
.bx-mock {
  width: min(420px, 100%); padding: 22px; border-radius: 28px;
  background: #fff; color: #120a24;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  transform: rotateY(-10deg) rotateX(4deg);
  transition: transform .6s var(--ease);
}
.bx-parent:hover .bx-mock { transform: rotateY(0) rotateX(0); }
.bx-mock__head { display: flex; align-items: center; gap: 12px; }
.bx-mock__head div { display: grid; flex: 1; line-height: 1.4; }
.bx-mock__head strong { font-size: 16px; }
.bx-mock__head small { font-size: 12.5px; color: #736a8a; font-weight: 600; }
.bx-mock__pill { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #047857; background: #d1fae5; }
.bx-mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.bx-mock__stats div { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 18px; background: #f5f0ff; }
.bx-mock__stats b { font-family: var(--font-display); font-size: 20px; color: #5b21b6; }
.bx-mock__stats small { font-size: 12px; color: #736a8a; font-weight: 700; }
.bx-mock__bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 18px; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #faf7ff, #f3eefe); }
.bx-mock__bars span { flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #d946ef, #7c3aed); }
.bx-mock__bars span:last-child { background: linear-gradient(180deg, #fcd34d, #f59e0b); }

/* ───────── CTA ───────── */
.bx-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
  padding: 48px 56px; border-radius: var(--radius-2xl);
  color: #fff; background: var(--grad-hero);
  border: 1px solid rgba(196,181,253,.14);
  box-shadow: var(--shadow-strong);
}
.bx-cta__helix {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(217,70,239,.45), transparent 60%),
    radial-gradient(360px 240px at 0% 100%, rgba(245,184,61,.25), transparent 60%);
}
.bx-cta__logo { width: 150px; height: 150px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); animation: bxFloatY 7s ease-in-out infinite; }
.bx-cta__title { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; color: #fff; }
.bx-cta__title span { color: var(--gold-400); }
.bx-cta__sub { margin: 10px 0 0; color: rgba(233,227,251,.78); font-size: 1.08rem; }
.bx-cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ───────── فوتر ───────── */
.bx-ft {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 60px; color: rgba(233, 227, 251, .72);
  background: #0a0419;
}
.bx-ft__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(124,58,237,.3), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(217,70,239,.16), transparent 60%);
}
.bx-ft__ecg { display: block; width: 100%; height: 40px; }
.bx-ft__ecg path { fill: none; stroke: url(#none); stroke: rgba(245,184,61,.75); stroke-width: 2; }
.bx-ft__inner { padding: 36px 0 26px; }
.bx-ft__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 40px; }
.bx-ft__logo { display: block; width: 88px; height: 88px; margin-bottom: 14px; }
.bx-ft__logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(192,38,211,.4)); }
.bx-ft__name { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }
.bx-ft__tag { display: block; font-family: var(--font-calli); font-size: 18px; color: var(--gold-400); margin-top: 2px; }
.bx-ft__about { margin: 14px 0 0; line-height: 1.95; max-width: 24rem; }
.bx-ft__heading { position: relative; display: block; color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 18px; padding-bottom: 10px; }
.bx-ft__heading::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-400), var(--magenta-500)); }
.bx-ft__heading--sp { margin-top: 26px; }
.bx-ft__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bx-ft__list a { display: inline-block; font-weight: 600; transition: color .2s, transform .25s var(--ease); }
.bx-ft__list a:hover { color: #fff; transform: translateX(-4px); }
.bx-ft__phones { display: grid; gap: 10px; }
.bx-ft__phone {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 8px 16px 8px 10px; border-radius: 14px; font-weight: 800; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, border-color .2s;
}
.bx-ft__phone:hover { background: rgba(255,255,255,.1); border-color: rgba(245,184,61,.5); }
.bx-ft__phone .bio3d { width: 26px; height: 26px; filter: none; }
.bx-ft__socials { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-ft__social {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 12px;
  color: #fff; font-weight: 700; font-size: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: transform .25s var(--ease), background .2s;
}
.bx-ft__social:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.bx-ft__social img, .bx-ft__social .bio3d { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; filter: none; }
.bx-ft__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13.5px; color: rgba(233,227,251,.5);
}
.bx-ft__bottom p { margin: 0; }

/* ───────── صفحات الدخول ───────── */
.auth-page { padding: 48px 0 40px; }
.auth-card {
  overflow: hidden; border-radius: 36px;
  background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.auth-formPane { position: relative; padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-step { display: none; }
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-head__logo {
  position: relative; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
}
.auth-head__logo::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, #fcd34d, #d946ef, #8b5cf6, #fcd34d);
  animation: bxSpin 8s linear infinite;
}
.auth-head__logo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #12072b; }
.auth-head__logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.auth-head__logoFallback { position: relative; z-index: 1; color: #fff; }
.auth-head__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: var(--text-strong); }
.auth-head__sub { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-weight: 800; font-size: 14px; color: var(--text-strong); }
.input {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 16px;
  border: 1.5px solid var(--field-border); background: var(--card-soft); color: var(--field-text);
  font-size: 15.5px; font-weight: 600;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--muted); opacity: .7; }
.input:hover { border-color: var(--border-strong); }
.input:focus { outline: none; border-color: var(--brand-500); background: var(--field-bg); box-shadow: 0 0 0 5px var(--primary-weak); }
.input[name="student_phone"], .input[name="parent_phone"], .input[name="password"], .input[name="full_name"] {
  padding-inline-start: 48px;
  background-repeat: no-repeat; background-size: 20px 20px; background-position: right 16px center;
}
.input[name="student_phone"], .input[name="parent_phone"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}
.input[name="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='3'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
.input[name="full_name"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4.5-6 8-6s7 2 8 6'/%3E%3C/svg%3E");
}
select.input {
  appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 16px center;
}
.center-area { display: flex; flex-direction: column; gap: 16px; }
.btn-submit {
  position: relative; margin-top: 6px; width: 100%; min-height: 56px; border: 0; border-radius: 16px;
  color: #fff; background: var(--btn-solid-bg);
  font-family: var(--font-body); font-weight: 900; font-size: 16.5px; cursor: pointer;
  box-shadow: 0 16px 34px -12px rgba(147, 51, 234, .75), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -12px rgba(192, 38, 211, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.auth-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.auth-link { color: var(--brand-700); font-weight: 800; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: inherit; }
.auth-link:hover { color: var(--magenta-600); }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-alt__card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px;
  background: var(--card-soft); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .2s, box-shadow .3s;
}
.auth-alt__card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.auth-alt__ico .bio-emo { width: 36px; height: 36px; vertical-align: middle; margin: 0; }
.auth-alt__card span:last-child { display: grid; line-height: 1.45; }
.auth-alt__card b { font-size: 14.5px; color: var(--text-strong); }
.auth-alt__card small { font-size: 13px; color: var(--brand-700); font-weight: 800; }

.auth-imgPane { position: relative; overflow: hidden; display: flex; background: #12072b; padding: 0; min-height: 640px; }
.bx-authv {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; color: #fff; isolation: isolate; overflow: hidden;
  min-height: inherit;
}
.bx-authv__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
}
.bx-authv__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 4, 32, .12) 0%, rgba(12, 4, 32, .05) 42%, rgba(12, 4, 32, .35) 68%, rgba(9, 3, 26, .55) 100%);
}
.bx-authv__badge {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-calli); font-size: 15px; color: var(--gold-400); font-weight: 700;
  box-shadow: 0 10px 28px -12px rgba(0,0,0,.45);
}
.bx-authv__badge img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(252,211,77,.55);
}
.bx-authv__panel {
  position: relative; z-index: 2; margin-top: auto;
  display: grid; gap: 10px; width: 100%;
  padding: 18px 18px 16px; border-radius: 24px;
  background: rgba(18, 7, 43, .58);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
}
.bx-authv__title {
  margin: 0; font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.35; color: #fff;
}
.bx-authv__sub {
  margin: 0; color: rgba(233,227,251,.88); line-height: 1.7; font-weight: 600; font-size: 14.5px;
}
.bx-authv__list {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px; width: 100%;
}
.bx-authv__list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
}
.bx-authv__list .bio3d { width: 24px; height: 24px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.bx-authv__sign { margin: 2px 0 0; font-weight: 700; font-size: 13.5px; color: rgba(233,227,251,.78); }
.bx-authv__sign span { font-family: var(--font-calli); color: var(--gold-400); font-size: 1.15em; }
/* ───────── إشعارات عائمة ───────── */
.phy-toast {
  --toast-accent: var(--success); --toast-duration: 6000ms;
  position: fixed; left: 50%; bottom: 24px; z-index: 14000;
  width: min(440px, calc(100vw - 28px));
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 18px 19px; border-radius: 20px;
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  border: 1px solid var(--border); border-inline-start: 4px solid var(--toast-accent);
  box-shadow: var(--shadow-strong); backdrop-filter: blur(18px);
  transform: translateX(-50%);
  animation: authToastIn .45s var(--ease-bounce) both; overflow: hidden;
}
.phy-toast--top { bottom: auto; top: max(96px, calc(env(safe-area-inset-top, 0px) + 84px)); }
.phy-toast--success { --toast-accent: var(--success); }
.phy-toast--error { --toast-accent: var(--danger); }
.phy-toast__icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--toast-accent); color: #fff; font-weight: 900; }
.phy-toast__body { min-width: 0; flex: 1; }
.phy-toast__title { display: block; font-weight: 800; color: var(--text-strong); }
.phy-toast__msg, .phy-toast__list { margin: 4px 0 0; color: var(--muted-strong); font-size: 14px; line-height: 1.7; }
.phy-toast__close { width: 30px; height: 30px; margin-inline-start: auto; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--border); color: var(--muted); cursor: pointer; }
.phy-toast__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; }
.phy-toast__progress span { display: block; height: 100%; width: 100%; background: var(--toast-accent); transform-origin: right; animation: phyToastBar var(--toast-duration) linear forwards; }
.phy-toast.is-leaving { animation: authToastOut .32s var(--ease) both; pointer-events: none; }
@keyframes phyToastBar { to { transform: scaleX(0); } }
@keyframes authToastIn { from { opacity: 0; transform: translate(-50%, -16px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes authToastOut { to { opacity: 0; transform: translate(-50%, -12px) scale(.97); } }
@keyframes authToastMobileIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes authToastMobileOut { to { opacity: 0; transform: translate(-50%, 20px); } }

/* ───────── تجاوب ───────── */
@media (max-width: 1180px) {
  .bx-hdr__links { display: none; }
  .bx-hdr__actions { margin-inline-start: auto; }
  .bx-units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-float--score { inset-inline-end: 0; }
}
@media (max-width: 980px) {
  .bx-hero { padding-top: 20px; }
  .bx-hero__wrap { grid-template-columns: 1fr; gap: 8px; text-align: center; min-height: 0; }
  .bx-hero__stage { order: -1; min-height: 320px; }
  .bx-orb { width: min(300px, 72vw); }
  .bx-helix { opacity: .45; inset-inline-end: 50%; transform: translate(50%, -50%) rotate(-18deg); }
  .bx-float--pulse { display: flex; bottom: 4%; inset-inline-end: 6%; zoom: .78; }
  .bx-float--progress { display: none; }
  .bx-float--score { top: 2%; inset-inline-end: 2%; zoom: .9; }
  .bx-orb__sat--3,
  .bx-orb__sat--plant {
    top: -6%;
    bottom: auto;
    inset-inline-end: auto;
    inset-inline-start: 6%;
    width: 58px;
    height: 58px;
    z-index: 8;
  }
  .bx-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .bx-marquee__track { animation: bxMarquee 32s linear infinite !important; will-change: transform; }
  .bx-eyebrow { margin-inline: auto; }
  .bx-hero__lead { margin-inline: auto; max-width: 34rem; font-size: 1rem; }
  .bx-hero__name { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .bx-hero__tag { font-size: clamp(1.25rem, 5vw, 1.7rem); }
  .bx-hero__cta, .bx-hero__trust { justify-content: center; }
  .bx-hero__trust { gap: 8px; margin-top: 22px; }
  .bx-hero__trust li { padding: 8px 12px; }
  .bx-spot, .bx-steps, .bx-parent { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .bx-spot__copy, .bx-parent__copy { text-align: center; }
  .bx-spot__list li { text-align: start; }
  .bx-steps__intro { text-align: center; }
  .bx-steps__intro .bx-head__sub { margin-inline: auto; }
  .bx-features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bx-feature { padding: 18px 14px; }
  .bx-feature__ico { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 12px; }
  .bx-feature__ico .bio3d { width: 42px; height: 42px; }
  .bx-grades { grid-template-columns: 1fr; gap: 16px; }
  .bx-grade__cover { aspect-ratio: 16 / 9; height: auto; }
  .bx-grade__body { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .bx-grade__name { font-size: 1.05rem; line-height: 1.4; }
  .bx-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 18px; gap: 18px; }
  .bx-cta__logo { width: 110px; height: 110px; }
  .bx-cta__actions { flex-direction: column; width: 100%; }
  .bx-cta__actions .bx-btn { width: 100%; }
  .bx-ft__grid { grid-template-columns: 1fr; gap: 24px; }
  .auth-grid { grid-template-columns: 1fr; min-height: 0; }
  .auth-imgPane { order: -1; min-height: 380px !important; height: min(52vh, 460px) !important; max-height: none !important; }
  .bx-authv { padding: 10px 12px 12px; justify-content: flex-end; min-height: 100%; }
  .bx-authv__photo { object-fit: contain !important; object-position: center center !important; background: #12072b; }
  .bx-authv__shade {
    background: linear-gradient(180deg, transparent 0%, transparent 62%, rgba(12,4,32,.35) 82%, rgba(9,3,26,.72) 100%);
  }
  .bx-authv__badge { display: none; }
  .bx-authv__panel {
    padding: 10px 12px; border-radius: 14px; gap: 0;
    background: rgba(18, 7, 43, .55);
    max-width: 100%;
  }
  .bx-authv__title { font-size: 1rem; line-height: 1.35; }
  .bx-authv__sub,
  .bx-authv__list,
  .bx-authv__sign { display: none; }
  .auth-formPane { padding: 28px 20px 32px; }
  .auth-page { padding: 24px 0 28px; }
}
@media (max-width: 760px) {
  .bx-hdr__bar { min-height: 64px; gap: 8px; }
  .bx-hdr__actions { display: none; }
  .bx-hdr__theme {
    display: flex !important;
    margin-inline-start: auto;
    flex: none;
  }
  .bx-hdr__theme .theme-switch--pro,
  .bx-hdr__theme .theme-switch {
    --ts-w: 58px !important;
    --ts-h: 30px !important;
  }
  .bx-burger { display: flex; margin-inline-start: 0; flex: none; }
  .bx-brand { min-width: 0; flex: 1 1 auto; overflow: visible; }
  .bx-brand__mark { width: 42px; height: 42px; flex: none; }
  .bx-brand__text { min-width: 0; overflow: visible; }
  .bx-brand__name {
    font-size: clamp(12.5px, 3.6vw, 15px);
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    line-height: 1.25;
  }
  .bx-brand__slogan { font-size: clamp(11px, 3.2vw, 13px); white-space: nowrap; }
  .bx-drawer__theme { display: none; }
  .bx-section { padding: 48px 0; }
  .bx-section--tight { padding: 28px 0; }
  .bx-head { margin-bottom: 28px; }
  .bx-head__title { font-size: clamp(1.4rem, 6vw, 1.85rem); line-height: 1.6; margin-top: 18px; }
  .bx-head__sub { margin-top: 22px; font-size: 1rem; line-height: 2.05; }
  .bx-units, .bx-features { grid-template-columns: 1fr; gap: 12px; }
  .bx-unit { padding: 20px 18px; }
  .bx-unit__art .bio3d { width: 72px; height: 72px; }
  .bx-unit__art .bio3d--emoji { --bio3d-size: 72px; font-size: 72px; }
  .bx-unit--wide { grid-column: auto; }
  .bx-unit--wide .bx-unit__art { position: relative; top: auto; inset-inline-end: auto; margin-bottom: 12px; }
  .bx-unit--wide .bx-unit__art .bio3d { width: 72px; height: 72px; }
  .bx-unit--wide .bx-unit__art .bio3d--emoji { --bio3d-size: 72px; font-size: 72px; }
  .bx-unit--wide .bx-unit__title { margin-top: 0; font-size: 1.2rem; }
  .bx-hero__trust { display: none; }
  .bx-hero__cta { margin-top: 18px; gap: 10px; }
  .bx-hero__cta .bx-btn { min-height: 48px; }
  .bx-marquee__track { animation: bxMarquee 28s linear infinite !important; gap: 10px; padding: 14px 0; }
  .bx-marquee__item { font-size: 13.5px; padding: 8px 14px 8px 12px; }
  .bx-marquee__item .bio3d { width: 24px; height: 24px; }
  .bx-marquee__item .bio3d--emoji { --bio3d-size: 24px; font-size: 24px; }
  .bx-spot__frame { width: min(220px, 58vw); }
  .bx-steps { padding: 22px 16px; }
  .bx-step { padding: 12px 12px; gap: 12px; }
  .bx-step .bio3d { width: 40px; height: 40px; }
  .bx-grade__cover { aspect-ratio: 16 / 9; height: auto; }
  .fgrid, .auth-alt { grid-template-columns: 1fr; }
  .bx-mock { transform: none; width: 100%; }
  .auth-imgPane { min-height: 360px !important; height: min(50vh, 440px) !important; max-height: none !important; }
  .bx-authv__panel { max-width: 100%; }
  .bx-authv__photo { object-fit: contain !important; object-position: center center !important; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  .bx-hero { padding-top: 12px; padding-bottom: 0; }
  .bx-hero__wrap { padding-bottom: 20px; gap: 6px; }
  .bx-hero__stage { min-height: 260px; }
  .bx-orb { width: min(250px, 70vw); }
  .bx-orb__sat { width: 48px; height: 48px; border-radius: 14px; }
  .bx-orb__sat .bio3d { width: 28px; height: 28px; }
  .bx-orb__sat--1 { top: 18%; inset-inline-start: -8%; }
  .bx-orb__sat--2 { bottom: 2%; inset-inline-start: -4%; }
  .bx-orb__sat--3,
  .bx-orb__sat--plant {
    display: grid;
    top: -8%;
    bottom: auto;
    inset-inline-end: auto;
    inset-inline-start: 4%;
    width: 46px;
    height: 46px;
    z-index: 8;
    animation: bxPlantSway 3.6s ease-in-out infinite;
  }
  .bx-orb__sat--plant .bio3d { width: 28px; height: 28px; }
  .bx-float--score { display: flex; top: 2%; inset-inline-end: 0; inset-inline-start: auto; zoom: .78; }
  .bx-float--pulse {
    display: flex;
    zoom: .68;
    bottom: 0;
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
  .bx-float--progress { display: none; }
  .bx-hero__pre { font-size: 1.05rem; }
  .bx-hero__name { font-size: clamp(2rem, 11vw, 2.6rem); }
  .bx-hero__lead { font-size: .95rem; line-height: 1.75; }
  .bx-hero__cta .bx-btn { width: 100%; font-size: 14.5px; }
  .bx-section { padding: 40px 0; }
  .bx-grades { gap: 14px; }
  .bx-grade { border-radius: 22px; }
  .bx-grade__cover { aspect-ratio: 16 / 9; height: auto; }
  .bx-grade__body { padding: 12px 14px; }
  .bx-grade__name { font-size: .98rem; flex: 1; min-width: 0; }
  .bx-grade__cta { font-size: 13px; padding: 7px 12px; }
  .bx-spot, .bx-parent, .bx-steps { padding: 22px 16px; border-radius: 24px; }
  .auth-card { border-radius: 22px; }
  .auth-imgPane { min-height: 340px !important; height: min(48vh, 420px) !important; max-height: none !important; }
  .bx-authv { padding: 8px 10px 10px; justify-content: flex-end; }
  .bx-authv__badge { display: none; }
  .bx-authv__panel { padding: 9px 11px; border-radius: 12px; }
  .bx-authv__title { font-size: .95rem; }
  .bx-authv__sub { display: none; }
  .bx-authv__photo { object-fit: contain !important; object-position: center center !important; }
  .auth-formPane { padding: 22px 16px 28px; }
  .auth-head__logo { width: 72px; height: 72px; margin-bottom: 12px; }
  .input { min-height: 48px; }
  .btn-submit { min-height: 50px; }
  .phy-toast, .phy-toast--top {
    top: auto; bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    width: calc(100vw - 20px); max-width: none;
    animation: authToastMobileIn .36s var(--ease-bounce) both;
  }
  .phy-toast.is-leaving { animation: authToastMobileOut .3s var(--ease) both; }
}

/* وضع الأداء */
/* وضع الأداء: لا تُعطَّل حركات منصة الأحياء على الموبايل */
body.student-perf-lite:not(.bio-lab) .bx-helix__rung,
body.student-perf-lite:not(.bio-lab) .bx-orb__ring,
body.student-perf-lite:not(.bio-lab) .bx-orb__logo,
body.student-perf-lite:not(.bio-lab) .bx-orb__sat,
body.student-perf-lite:not(.bio-lab) .bx-float,
body.student-perf-lite:not(.bio-lab) .bx-blob,
body.student-perf-lite:not(.bio-lab) .bx-marquee__track,
body.student-perf-lite:not(.bio-lab) .bx-brand__mark::before,
body.student-perf-lite:not(.bio-lab) .auth-head__logo::before,
body.student-perf-lite:not(.bio-lab) .bio-ambient__cells span { animation: none !important; }

/* إعادة تفعيل الحركة الأساسية على الموبايل لمنصة الأحياء */
body.bio-lab.student-perf-lite .bx-marquee__track,
body.bio-lab .bx-marquee__track {
  animation: bxMarquee 36s linear infinite !important;
}
body.bio-lab.student-perf-lite .bx-orb__ring--1,
body.bio-lab .bx-orb__ring--1 { animation: bxSpin 40s linear infinite !important; }
body.bio-lab.student-perf-lite .bx-orb__ring--2,
body.bio-lab .bx-orb__ring--2 { animation: bxSpin 7s linear infinite !important; }
body.bio-lab.student-perf-lite .bx-orb__ring--3,
body.bio-lab .bx-orb__ring--3 { animation: bxSpinRev 60s linear infinite !important; }
body.bio-lab.student-perf-lite .bx-orb__logo,
body.bio-lab.student-perf-lite .bx-orb__logo--hero,
body.bio-lab .bx-orb__logo,
body.bio-lab .bx-orb__logo--hero { animation: bxFloatY 7s ease-in-out infinite !important; }
body.bio-lab.student-perf-lite .bx-orb__sat,
body.bio-lab .bx-orb__sat { animation: bxFloatY2 6s ease-in-out infinite !important; }
body.bio-lab.student-perf-lite .bx-orb__sat--plant,
body.bio-lab .bx-orb__sat--plant { animation: bxPlantSway 3.6s ease-in-out infinite !important; }
body.bio-lab.student-perf-lite .bx-float,
body.bio-lab .bx-float { animation: bxFloatY 8s ease-in-out infinite !important; }
body.bio-lab.student-perf-lite .bx-blob,
body.bio-lab .bx-blob { animation: bxBlob 18s ease-in-out infinite !important; }
body.bio-lab.student-perf-lite .bx-brand__mark::before,
body.bio-lab.student-perf-lite .auth-head__logo::before,
body.bio-lab .bx-brand__mark::before,
body.bio-lab .auth-head__logo::before { animation: bxSpin 8s linear infinite !important; }
body.bio-lab.student-perf-lite .bx-helix__rung,
body.bio-lab .bx-helix__rung { animation: bxHelix 6s linear infinite !important; }
body.bio-lab.student-perf-lite .bio-ambient__cells span,
body.bio-lab .bio-ambient__cells span { animation: bxCellFloat 22s ease-in-out infinite !important; }
body.bio-lab .bx-float__ecg path { animation: bxDash 2.6s ease-in-out infinite alternate !important; }

.student-perf-lite .bx-hdr,
.student-perf-lite .bx-float,
.student-perf-lite .bx-orb__sat { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* بعض أجهزة أندرويد تفعّل reduced-motion — نبقي حركة المنصة */
@media (prefers-reduced-motion: reduce) {
  body.bio-lab .bx-marquee__track {
    animation: bxMarquee 40s linear infinite !important;
    animation-duration: 40s !important;
    animation-iteration-count: infinite !important;
  }
  body.bio-lab .bx-orb__ring--1 {
    animation: bxSpin 40s linear infinite !important;
    animation-duration: 40s !important;
    animation-iteration-count: infinite !important;
  }
  body.bio-lab .bx-orb__ring--2 {
    animation: bxSpin 7s linear infinite !important;
    animation-duration: 7s !important;
    animation-iteration-count: infinite !important;
  }
  body.bio-lab .bx-orb__ring--3 {
    animation: bxSpinRev 60s linear infinite !important;
    animation-duration: 60s !important;
    animation-iteration-count: infinite !important;
  }
  body.bio-lab .bx-orb__logo,
  body.bio-lab .bx-orb__logo--hero,
  body.bio-lab .bx-orb__sat,
  body.bio-lab .bx-float,
  body.bio-lab .bx-blob,
  body.bio-lab .bx-helix__rung,
  body.bio-lab .bx-brand__mark::before,
  body.bio-lab .auth-head__logo::before,
  body.bio-lab .bio-ambient__cells span,
  body.bio-lab .bx-float__ecg path {
    animation-duration: inherit !important;
    animation-iteration-count: infinite !important;
  }
  body.bio-lab .bx-orb__logo,
  body.bio-lab .bx-orb__logo--hero { animation: bxFloatY 7s ease-in-out infinite !important; animation-duration: 7s !important; }
  body.bio-lab .bx-orb__sat { animation: bxFloatY2 6s ease-in-out infinite !important; animation-duration: 6s !important; }
  body.bio-lab .bx-orb__sat--plant { animation: bxPlantSway 3.6s ease-in-out infinite !important; animation-duration: 3.6s !important; }
  body.bio-lab .bx-float { animation: bxFloatY 8s ease-in-out infinite !important; animation-duration: 8s !important; }
  body.bio-lab .bx-blob { animation: bxBlob 18s ease-in-out infinite !important; animation-duration: 18s !important; }
  body.bio-lab .bx-helix__rung { animation: bxHelix 6s linear infinite !important; animation-duration: 6s !important; }
  body.bio-lab .bx-brand__mark::before,
  body.bio-lab .auth-head__logo::before { animation: bxSpin 8s linear infinite !important; animation-duration: 8s !important; }
  body.bio-lab .bio-ambient__cells span { animation: bxCellFloat 22s ease-in-out infinite !important; animation-duration: 22s !important; }
  body.bio-lab .bx-float__ecg path { animation: bxDash 2.6s ease-in-out infinite alternate !important; animation-duration: 2.6s !important; }
}

/* ═══════════════════════════════════════════════════════════════
   الوضع الفاتح — هيدر وهيرو فاتحين (الداكن يبقى كما هو)
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="light"] .theme-switch--pro {
  background: var(--surface-soft) !important;
  border-color: var(--border-strong) !important;
  box-shadow: inset 0 1px 3px rgba(40,14,90,.08) !important;
}
html[data-theme="light"] .theme-switch--pro .theme-switch__knob,
html[data-theme="light"] .theme-switch--pro .acc-theme__knob { box-shadow: 0 3px 10px rgba(40,14,90,.18) !important; }

/* هيدر */
html[data-theme="light"] .bx-hdr {
  color: var(--text-strong);
  background: rgba(255, 255, 255, .82);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 34px -22px rgba(40, 14, 90, .35);
}
html[data-theme="light"] .bx-hdr::after { opacity: .45; }
html[data-theme="light"] .bx-brand__name { color: var(--text-strong); }
html[data-theme="light"] .bx-brand__slogan { color: #b7791f; }
html[data-theme="light"] .bx-hdr__links a { color: var(--muted-strong); }
html[data-theme="light"] .bx-hdr__links a:hover { color: var(--brand-700); background: var(--surface-soft); }
html[data-theme="light"] .bx-hdr .bx-btn--glass,
html[data-theme="light"] .bx-drawer .bx-btn--glass {
  color: var(--brand-700);
  background: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .bx-hdr .bx-btn--glass:hover { background: var(--card-soft); border-color: var(--brand-400); }
html[data-theme="light"] .bx-burger { background: #fff; border-color: var(--border-strong); }
html[data-theme="light"] .bx-burger span { background: var(--brand-700); }
html[data-theme="light"] .bx-drawer__box { background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
html[data-theme="light"] .bx-drawer__link { color: var(--text-strong); background: var(--card-soft); }
html[data-theme="light"] .bx-drawer__link:hover { background: var(--surface-highlight); }
html[data-theme="light"] .bx-drawer__theme { color: var(--muted-strong); }

/* هيرو */
html[data-theme="light"] .bx-hero {
  color: var(--text-strong);
  background:
    radial-gradient(900px 520px at 20% 30%, rgba(217, 70, 239, .10), transparent 60%),
    radial-gradient(800px 560px at 85% 15%, rgba(139, 92, 246, .16), transparent 60%),
    linear-gradient(180deg, #fbf9ff 0%, #f4eefe 100%);
}
html[data-theme="light"] .bx-blob { opacity: .35; }
html[data-theme="light"] .bx-blob--c { opacity: .5; }
html[data-theme="light"] .bx-hero__grid {
  background-image:
    linear-gradient(rgba(109, 40, 217, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, .07) 1px, transparent 1px);
}
html[data-theme="light"] .bx-eyebrow {
  color: var(--brand-700);
  background: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .bx-hero__pre { color: var(--muted-strong); }
html[data-theme="light"] .bx-hero__name {
  background: linear-gradient(100deg, #2e1065 0%, #6d28d9 45%, #c026d3 80%, #d97706 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(147, 51, 234, .18));
}
html[data-theme="light"] .bx-hero__tag { color: #b7791f; text-shadow: none; }
html[data-theme="light"] .bx-hero__lead { color: var(--muted-strong); }
html[data-theme="light"] .bx-hero .bx-btn--glass {
  color: var(--brand-700);
  background: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .bx-hero .bx-btn--glass:hover { border-color: var(--brand-400); background: var(--card-soft); }
html[data-theme="light"] .bx-hero__trust li { background: rgba(255,255,255,.85); border-color: var(--border); box-shadow: var(--shadow-soft); }
html[data-theme="light"] .bx-hero__trust .bio3d { filter: drop-shadow(0 6px 10px rgba(40,14,90,.2)); }
html[data-theme="light"] .bx-hero__trust b { color: var(--text-strong); }
html[data-theme="light"] .bx-hero__trust small { color: var(--muted); }

html[data-theme="light"] .bx-orb__glow { background: radial-gradient(circle, rgba(192,38,211,.28), rgba(124,58,237,.16) 45%, transparent 70%); }
html[data-theme="light"] .bx-orb__ring--1 { border-color: rgba(183, 121, 31, .45); }
html[data-theme="light"] .bx-orb__ring--3 { border-color: rgba(109, 40, 217, .14); }
html[data-theme="light"] .bx-orb__logo { filter: drop-shadow(0 26px 40px rgba(76, 29, 149, .35)); }
html[data-theme="light"] .bx-orb__logo--hero {
  filter: none;
  box-shadow:
    0 0 0 8px rgba(255,255,255,.95),
    0 0 0 18px rgba(183, 121, 31, .28),
    0 30px 50px rgba(76, 29, 149, .35);
}
html[data-theme="light"] .bx-orb__sat {
  background: rgba(255,255,255,.92);
  border-color: var(--border);
  box-shadow: 0 18px 36px -14px rgba(40,14,90,.3);
}
html[data-theme="light"] .bx-orb__sat--1 {
  box-shadow: 0 18px 36px -10px rgba(109, 40, 217, .35);
}
html[data-theme="light"] .bx-orb__sat--plant {
  background: rgba(236, 253, 245, 0.95);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 18px 36px -12px rgba(16, 185, 129, .28);
}
html[data-theme="light"] .bx-float {
  background: rgba(255,255,255,.88);
  border-color: var(--border);
  box-shadow: 0 24px 50px -18px rgba(40,14,90,.35), inset 0 1px 0 #fff;
}
html[data-theme="light"] .bx-float .bio3d { filter: drop-shadow(0 6px 10px rgba(40,14,90,.2)); }
html[data-theme="light"] .bx-float__body strong { color: var(--text-strong); }
html[data-theme="light"] .bx-float__body small { color: var(--muted); }
html[data-theme="light"] .bx-float__bar { background: var(--surface-highlight); }
html[data-theme="light"] .bx-float__num { color: #b45309 !important; }
html[data-theme="light"] .bx-float__num span { color: var(--muted); }
html[data-theme="light"] .bx-float__ecg path { stroke: #db2777; }

html[data-theme="light"] .bx-marquee { background: rgba(255,255,255,.7); border-top-color: var(--border); }
html[data-theme="light"] .bx-marquee__item { color: var(--text-strong); background: #fff; border-color: var(--border); box-shadow: var(--shadow-soft); }
html[data-theme="light"] .bx-marquee__item .bio3d { filter: drop-shadow(0 4px 6px rgba(40,14,90,.18)); }