/* ═══════════════════════════════════════════════════════════════
   MR. MOAMEN ELSHENNAWY — HEROES Academy
   Public pages: header · hero · sections · grades · auth · footer
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════ Ambient backdrop ══════════════════ */

.uk-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.uk-ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}

.uk-ambient__glow--navy {
  inset-inline-end: -140px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(1, 33, 105, .30), transparent 70%);
}

.uk-ambient__glow--red {
  inset-inline-start: -180px;
  top: 34vh;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(200, 16, 44, .22), transparent 70%);
}

.uk-ambient__letters {
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--uk-navy-800);
  opacity: .045;
}

html[data-theme="dark"] .uk-ambient__letters { opacity: .04; }

.uk-ambient__letters span {
  position: absolute;
  line-height: 1;
  animation: ukFloat 16s var(--ease) infinite alternate;
}

.uk-ambient__letters span:nth-child(1) { inset-inline-start: 6%;  top: 14%; font-size: 130px; animation-delay: 0s; }
.uk-ambient__letters span:nth-child(2) { inset-inline-end: 9%;   top: 30%; font-size: 96px;  animation-delay: -3s; }
.uk-ambient__letters span:nth-child(3) { inset-inline-start: 16%; top: 58%; font-size: 112px; animation-delay: -6s; }
.uk-ambient__letters span:nth-child(4) { inset-inline-end: 18%;  top: 74%; font-size: 88px;  animation-delay: -9s; }
.uk-ambient__letters span:nth-child(5) { inset-inline-start: 44%; top: 88%; font-size: 104px; animation-delay: -12s; }

@keyframes ukFloat {
  from { transform: translate3d(0, 0, 0) rotate(-4deg); }
  to   { transform: translate3d(0, -26px, 0) rotate(5deg); }
}

/* الخلفية المتحركة والسكاي لاين شغّالين على كل الأجهزة */

/* ══════════════════ سكاي لاين لندن — بينوّر في الوضع الليلي ══════════════════ */

.uk-sky {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  display: block;
  width: 100%;
  /* نحافظ على نسبة اللوحة عشان مفيش تشويه ولا قص للمعالم */
  aspect-ratio: 1200 / 210;
  max-height: 44vh;
}

/* النهار: ظل خفيف جداً للمدينة */
.uk-sky__city { fill: var(--uk-navy-800); opacity: .055; }
.uk-sky__night,
.uk-sky__windows,
.uk-sky__clock { opacity: 0; }

/* العناصر الخطية داخل المدينة */
.uk-sky__eyeRim,
.uk-sky__spokes path,
.uk-sky__chain {
  fill: none;
  stroke: var(--uk-navy-800);
  stroke-linecap: round;
}
.uk-sky__eyeRim { stroke-width: 5; }
.uk-sky__spokes path { stroke-width: 1.8; }
.uk-sky__chain { stroke-width: 4; }

/* الليل: المدينة تبان والشبابيك تنوّر */
html[data-theme="dark"] .uk-sky__city { fill: #030A1C; opacity: .92; }

html[data-theme="dark"] .uk-sky__eyeRim,
html[data-theme="dark"] .uk-sky__spokes path,
html[data-theme="dark"] .uk-sky__chain { stroke: #030A1C; }

html[data-theme="dark"] .uk-sky__night { opacity: 1; }
html[data-theme="dark"] .uk-sky__moon { fill: #FFF3D0; }
html[data-theme="dark"] .uk-sky__stars circle { fill: #DCE6FF; opacity: .75; }

html[data-theme="dark"] .uk-sky__windows {
  opacity: 1;
  fill: var(--uk-gold-400, #E6C560);
}
html[data-theme="dark"] .uk-sky__windows rect { opacity: .82; }

html[data-theme="dark"] .uk-sky__clock {
  opacity: 1;
  fill: #FFF0C4;
  stroke: #030A1C;
  stroke-width: 3;
}

/* تبديل الثيم يبان ناعم */
.uk-sky__city,
.uk-sky__night,
.uk-sky__windows,
.uk-sky__clock { transition: opacity .5s var(--ease), fill .5s var(--ease); }

/* الشبابيك تنوّر واحد ورا التاني، والساعة بتنبض — حركة فقط */
html.uk-motion[data-theme="dark"] .uk-sky__windows rect {
  animation: ukWindowGlow 5.5s var(--ease) infinite alternate;
}
html.uk-motion[data-theme="dark"] .uk-sky__windows rect:nth-child(4n)   { animation-delay: -.9s; }
html.uk-motion[data-theme="dark"] .uk-sky__windows rect:nth-child(4n+1) { animation-delay: -2.3s; }
html.uk-motion[data-theme="dark"] .uk-sky__windows rect:nth-child(4n+2) { animation-delay: -3.6s; }
html.uk-motion[data-theme="dark"] .uk-sky__windows rect:nth-child(7n)   { animation-delay: -4.7s; }

html.uk-motion[data-theme="dark"] .uk-sky__clock {
  animation: ukClockGlow 4s var(--ease) infinite alternate;
}
html.uk-motion[data-theme="dark"] .uk-sky__stars circle {
  animation: ukStarTwinkle 3.4s var(--ease) infinite alternate;
}
html.uk-motion[data-theme="dark"] .uk-sky__stars circle:nth-child(odd) { animation-delay: -1.7s; }

/* عين لندن بتلف بالراحة */
html.uk-motion .uk-sky__spokes {
  transform-box: fill-box;
  transform-origin: center;
  animation: ukEyeSpin 90s linear infinite;
}

@keyframes ukWindowGlow {
  0%, 40% { opacity: .18; }
  100%    { opacity: .95; }
}
@keyframes ukClockGlow {
  from { opacity: .68; }
  to   { opacity: 1; }
}
@keyframes ukStarTwinkle {
  from { opacity: .28; }
  to   { opacity: .95; }
}
@keyframes ukEyeSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html.uk-motion[data-theme="dark"] .uk-sky__windows rect,
  html.uk-motion[data-theme="dark"] .uk-sky__clock,
  html.uk-motion[data-theme="dark"] .uk-sky__stars circle,
  html.uk-motion .uk-sky__spokes { animation: none; }
}

/* ══════════════════ Header ══════════════════ */

.uk-hdr {
  position: relative;
  z-index: 40;
  background: var(--hdr-bg);
  border-block-end: 1px solid var(--hdr-border);
  box-shadow: 0 2px 18px rgba(0, 21, 67, .06);
}

.uk-hdr__flag {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--uk-navy-800) 0 26%,
    #fff 26% 33%,
    var(--uk-red-700) 33% 67%,
    #fff 67% 74%,
    var(--uk-navy-800) 74% 100%
  );
}

.uk-hdr__top {
  background: var(--uk-navy-900);
  color: #fff;
}

.uk-hdr__topInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 6px;
}

.uk-hdr__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

.uk-hdr__eyebrowFlag {
  display: inline-block;
  width: 26px;
  height: 16px;
  border-radius: 2px;
  flex: none;
  background:
    linear-gradient(to bottom, transparent 40%, #C8102C 40% 60%, transparent 60%),
    linear-gradient(to right, transparent 40%, #C8102C 40% 60%, transparent 60%),
    linear-gradient(45deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, #fff 44% 56%, transparent 56%),
    #012169;
}

.uk-hdr__tagline {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--uk-navy-300);
}

.uk-hdr__topEnd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.uk-hdr__parent {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.uk-hdr__parent:hover {
  background: var(--uk-red-700);
  border-color: var(--uk-red-700);
  color: #fff;
}

.uk-hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding-block: 10px;
}

/* ─── Brand lockup ─── */

.uk-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
}

.uk-brand__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--uk-navy-800);
  box-shadow: 0 4px 14px rgba(1, 33, 105, .18);
  overflow: hidden;
}

.uk-brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.uk-brand__logoFallback {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--uk-navy-800);
}

.uk-brand__text { display: grid; gap: 1px; min-width: 0; }

.uk-brand__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--text-strong);
  white-space: nowrap;
}

.uk-brand__name em {
  font-style: normal;
  color: var(--uk-red-700);
}

.uk-brand__sub {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--uk-navy-600);
}

/* ─── Header nav ─── */

.uk-hdr__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uk-hdr__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: 6px;
}

.uk-hdr__link {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.uk-hdr__link:hover { background: var(--uk-navy-100); color: var(--uk-navy-800); }

.uk-hdr__mobileTheme { display: none; flex: none; }

.uk-burger {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: var(--card-bg-strong);
  cursor: pointer;
}

.uk-burger span {
  display: block;
  width: 20px;
  height: 2.4px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--uk-navy-800);
}

.uk-drawer {
  display: none;
  padding: 0 20px 18px;
  background: var(--hdr-bg);
  border-block-start: 1px solid var(--border);
}

.uk-drawer.is-open { display: block; }

.uk-drawer__box { display: grid; gap: 10px; padding-block-start: 16px; }

@media (max-width: 900px) {
  .uk-hdr__nav { display: none; }
  .uk-hdr__mobileTheme { display: block; }
  .uk-burger { display: grid; place-items: center; width: 40px; height: 40px; }
  .uk-hdr__tagline { display: none; }
  .uk-hdr__parent { font-size: 11px; padding: 4px 10px; }

  .uk-hdr .container {
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  }

  .uk-hdr__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding-block: 8px;
  }

  .uk-brand { gap: 8px; }
  .uk-brand__mark { width: 44px; height: 44px; }
  .uk-brand__name {
    white-space: normal;
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.15;
  }
  .uk-brand__sub {
    font-size: 10.5px;
    letter-spacing: .04em;
  }

  .uk-hdr__mobileTheme .theme-switch { padding: 3px; }
  .uk-hdr__mobileTheme .theme-switch__btn { width: 28px; height: 26px; }
  .uk-hdr__mobileTheme .theme-switch__knob { width: 28px; inset-block: 3px; }
  html[data-theme="dark"] .uk-hdr__mobileTheme .theme-switch__knob { transform: translateX(-28px); }
  html[dir="ltr"][data-theme="dark"] .uk-hdr__mobileTheme .theme-switch__knob { transform: translateX(28px); }
}

/* ══════════════════ Hero ══════════════════ */

.uk-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 76px);
  background: var(--grad-hero);
}

.uk-hero__union {
  position: absolute;
  inset-block-start: -20%;
  inset-inline-start: -12%;
  width: 62%;
  height: 150%;
  pointer-events: none;
  opacity: .10;
  background:
    linear-gradient(48deg, transparent 46%, var(--uk-navy-800) 46% 54%, transparent 54%),
    linear-gradient(-48deg, transparent 46%, var(--uk-red-700) 46% 54%, transparent 54%),
    linear-gradient(to bottom, transparent 46%, var(--uk-red-700) 46% 54%, transparent 54%);
}

html[data-theme="dark"] .uk-hero__union { opacity: .07; }

.uk-hero__stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Guards the text column against overflow from long unbroken words. */
.uk-hero__copy { min-width: 0; }

.uk-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 16px 8px 10px;
  border: 1.5px solid var(--red-border);
  border-radius: var(--radius-pill);
  background: var(--uk-red-softer);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--uk-red-700);
}

.uk-hero__kickerFlag {
  display: inline-block;
  width: 24px;
  height: 15px;
  border-radius: 2px;
  flex: none;
  background:
    linear-gradient(to bottom, transparent 40%, #C8102C 40% 60%, transparent 60%),
    linear-gradient(to right, transparent 40%, #C8102C 40% 60%, transparent 60%),
    linear-gradient(45deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, #fff 44% 56%, transparent 56%),
    #012169;
}

.uk-hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--uk-navy-900);
}

html[data-theme="dark"] .uk-hero__name {
  color: #fff;
  text-shadow: 0 2px 18px rgba(6, 15, 38, .8);
}
html[data-theme="dark"] .uk-hero__name small { color: #FFC2CA; }
html[data-theme="dark"] .uk-hero__role { color: #F4F7FF; }
html[data-theme="dark"] .uk-hero__script {
  color: #FFE08A;
  font-weight: 800;
}
html[data-theme="dark"] .uk-hero__desc {
  color: #F4F7FF;
  font-weight: 700;
}

.uk-hero__name small {
  display: block;
  margin-top: 10px;
  font-size: .40em;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--uk-red-700);
}

.uk-hero__role {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 800;
  color: var(--uk-navy-700);
}

.uk-hero__role span { color: var(--uk-red-700); }

.uk-hero__script {
  margin: 6px 0 0;
  font-family: var(--font-script);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--uk-gold-600);
}

.uk-hero__desc {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.95;
  color: var(--muted-strong);
}

/* ══════════════════ جملة بتصحّح نفسها ══════════════════ */

.uk-fix {
  position: relative;
  margin: 18px 0 0;
  max-width: 46ch;
  padding: 14px 16px 15px;
  border: 1.5px dashed var(--brand-border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.uk-fix__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--uk-red-700);
}

.uk-fix__line {
  margin: 0;
  /* ثابت الطول حتى لا يهتز الهيرو أثناء الكتابة */
  min-height: 3.2em;
  direction: ltr;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-strong);
}

/* الشكل الثابت بدون جافاسكربت */
.uk-fix__wrong { color: var(--uk-red-700); opacity: .8; }
.uk-fix__right { display: block; color: var(--success); }

/* النسخة المتحركة */
.uk-fix__text.is-wrong { color: var(--uk-red-700); }
.uk-fix__text.is-right { color: var(--success); }
.uk-fix__text.is-struck { text-decoration: line-through 2px; }

.uk-fix__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-inline-start: 3px;
  vertical-align: -.16em;
  background: var(--uk-navy-700);
}

html.uk-motion .uk-fix__caret { animation: ukCaret 1s steps(2, start) infinite; }

@keyframes ukCaret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html.uk-motion .uk-fix__caret { animation: none; }
}

@media (max-width: 720px) {
  .uk-fix { max-width: none; padding: 12px 14px 13px; }
  .uk-fix__line { font-size: 15.5px; min-height: 3.4em; }
}

.uk-hero__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
}

.uk-hero__skills span {
  padding: 8px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card-bg-strong);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--uk-navy-800);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .uk-hero__skills span { color: var(--text); }

.uk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

/* ─── Hero artwork ─── */

.uk-hero__art {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-strong);
  background: var(--uk-navy-900);
}

.uk-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 12%;
}

.uk-hero__artFlag {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 7px;
  background: linear-gradient(
    90deg,
    var(--uk-navy-800) 0 33.3%,
    var(--uk-red-700) 33.3% 66.6%,
    #fff 66.6% 100%
  );
}

.uk-hero__badge {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-end: 16px;
  inset-block-start: auto;
  inset-inline-start: auto;
  z-index: 2;
  display: grid;
  gap: 1px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: rgba(0, 21, 67, .88);
  backdrop-filter: blur(8px);
  color: #fff;
  pointer-events: none;
}

.uk-hero__badgeVal {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--uk-gold-400);
}

.uk-hero__badgeLbl {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--uk-navy-300);
}

@media (max-width: 980px) {
  .uk-hero__stage { grid-template-columns: 1fr; }
  .uk-hero__art { order: -1; max-width: 400px; }
}

/* ══════════════════ Marquee strip ══════════════════ */

.uk-strip {
  direction: ltr;
  overflow: hidden;
  background: var(--uk-navy-900);
  border-block: 4px solid var(--uk-red-700);
}

.uk-strip__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ukMarquee 34s linear infinite;
}

.uk-strip__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 34px;
  padding-block: 13px;
  padding-inline-end: 34px;
}

.uk-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
  color: #FFF6D8;
  -webkit-text-fill-color: #FFF6D8;
}

.uk-strip__item::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--uk-gold-500);
}

@keyframes ukMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ══════════════════ Section shell ══════════════════ */

.uk-section {
  position: relative;
  padding-block: clamp(44px, 6vw, 78px);
}

.uk-section--tint { background: var(--page-bg-alt); }

.uk-section--navy {
  background: var(--uk-navy-900);
  color: #fff;
}

.uk-section__head {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.uk-section__en {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--uk-red-700);
}

.uk-section--navy .uk-section__en { color: var(--uk-gold-400); }

.uk-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-strong);
}

.uk-section--navy .uk-section__title { color: #fff; }

.uk-section__sub {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--muted-strong);
}

.uk-section--navy .uk-section__sub { color: var(--uk-navy-300); }

/* ══════════════════ Mission cards (skills) ══════════════════ */

.uk-section--missions {
  background:
    radial-gradient(720px 320px at 12% 0%, rgba(1, 33, 105, .55), transparent 60%),
    radial-gradient(640px 280px at 88% 100%, rgba(200, 16, 44, .22), transparent 55%),
    linear-gradient(180deg, #07152f 0%, #0a1a3a 48%, #07111f 100%);
  color: #f6f3ea;
}

.uk-section--missions .uk-section__en { color: var(--uk-gold-400); }
.uk-section--missions .uk-section__title { color: #fff; }
.uk-section--missions .uk-section__sub { color: var(--uk-navy-300); }
.uk-section--missions .uk-rule {
  background: linear-gradient(90deg, var(--uk-red-700), var(--uk-gold-500), var(--uk-navy-600));
}

.uk-missions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  direction: ltr; /* ترتيب المهام: 01 يسار → 02 يمين */
}

.uk-mission {
  --mission-accent: #3b82f6;
  --mission-glow: rgba(59, 130, 246, .35);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 22px 20px 18px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--mission-accent) 42%, transparent);
  background:
    linear-gradient(160deg, rgba(255,255,255,.04), transparent 42%),
    #0c1833;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 18px 40px rgba(0, 0, 0, .35),
    0 0 28px var(--mission-glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.uk-mission--navy  { --mission-accent: #3b82f6; --mission-glow: rgba(59, 130, 246, .32); }
.uk-mission--red   { --mission-accent: #ef4444; --mission-glow: rgba(239, 68, 68, .32); }
.uk-mission--gold  { --mission-accent: #eab308; --mission-glow: rgba(234, 179, 8, .28); }
.uk-mission--green { --mission-accent: #22c55e; --mission-glow: rgba(34, 197, 94, .28); }

.uk-mission:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mission-accent) 70%, #fff);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 22px 48px rgba(0, 0, 0, .42),
    0 0 36px var(--mission-glow);
}

.uk-mission__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.uk-mission__badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.uk-mission__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--mission-accent);
}

.uk-mission__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, .78);
}

.uk-mission__ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--mission-accent) 18%, #0a1428);
  border: 2px solid var(--mission-accent);
  box-shadow: 0 0 18px var(--mission-glow);
}

.uk-mission__ico svg { width: 22px; height: 22px; }

.uk-mission__en {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}

.uk-mission__ar {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: rgba(246, 243, 234, .92);
  direction: rtl;
  text-align: right;
}

.uk-mission__text {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
  color: rgba(185, 197, 236, .92);
  flex: 1;
  direction: rtl;
  text-align: right;
}

.uk-mission__btn {
  direction: rtl;
}

.uk-mission__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 8px;
}

.uk-mission__progress {
  flex: 1;
  min-width: 0;
}

.uk-mission__progressMeta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(185, 197, 236, .75);
}

.uk-mission__progressMeta strong {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--mission-accent);
}

.uk-mission__bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.uk-mission__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--mission-accent) 70%, #fff), var(--mission-accent));
  box-shadow: 0 0 10px var(--mission-glow);
}

.uk-mission__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mission-accent) 82%, #fff), var(--mission-accent));
  box-shadow: 0 8px 20px var(--mission-glow);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}

.uk-mission__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  color: #fff;
}

.uk-mission__btn span {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 760px) {
  .uk-missions {
    grid-template-columns: 1fr;
  }

  .uk-mission__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .uk-mission__btn {
    width: 100%;
  }
}

/* ══════════════════ Journey / steps ══════════════════ */

.uk-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ukStep;
}

.uk-step {
  position: relative;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.uk-step:hover { background: rgba(255, 255, 255, .10); transform: translateY(-4px); }

.uk-step__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--uk-red-700);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.uk-step:nth-child(even) .uk-step__num { background: var(--uk-gold-500); color: var(--uk-navy-900); }

.uk-step__en {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--uk-gold-400);
}

.uk-step__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.uk-step__hint {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--uk-navy-300);
}

/* ══════════════════ Grade cards ══════════════════ */

.uk-gradeRail {
  position: relative;
  direction: ltr;
  width: 100%;
  overflow: hidden;
  padding-block: 8px 4px;
}

.uk-gradeRail__track {
  display: flex;
  width: max-content;
  animation: ukGradeRail 80s linear infinite;
}

.uk-gradeRail:hover .uk-gradeRail__track,
.uk-gradeRail:focus-within .uk-gradeRail__track {
  animation-play-state: paused;
}

.uk-gradeRail__group {
  display: flex;
  flex: 0 0 auto;
  gap: 22px;
  box-sizing: border-box;
  padding-right: 22px;
}

.uk-gradeRail__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(72px, 7vw);
  pointer-events: none;
}

.uk-gradeRail__fade--start {
  left: 0;
  background: linear-gradient(to right, var(--page-bg-alt), transparent);
}

.uk-gradeRail__fade--end {
  right: 0;
  background: linear-gradient(to left, var(--page-bg-alt), transparent);
}

@keyframes ukGradeRail {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════ Heroes ribbon (images only) ══════════════════ */

.uk-heroesRail {
  position: relative;
  direction: ltr;
  width: 100%;
  overflow: hidden;
  padding-block: 8px 4px;
}

.uk-heroesRail__track {
  display: flex;
  width: max-content;
  animation: ukGradeRail 70s linear infinite;
}

.uk-heroesRail:hover .uk-heroesRail__track,
.uk-heroesRail:focus-within .uk-heroesRail__track {
  animation-play-state: paused;
}

.uk-heroesRail__group {
  display: flex;
  flex: 0 0 auto;
  gap: 22px;
  box-sizing: border-box;
  padding-right: 22px;
}

.uk-heroesRail__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(72px, 7vw);
  pointer-events: none;
}

.uk-heroesRail__fade--start {
  left: 0;
  background: linear-gradient(to right, var(--page-bg-alt), transparent);
}

.uk-heroesRail__fade--end {
  right: 0;
  background: linear-gradient(to left, var(--page-bg-alt), transparent);
}

.uk-heroCard {
  flex: 0 0 360px;
  width: 360px;
  margin: 0;
  border-radius: var(--uk-radius-lg, 18px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.uk-heroCard img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .45s ease;
}

.uk-heroesRail:hover .uk-heroCard img {
  transform: scale(1.03);
}

@media (max-width: 860px) {
  .uk-heroCard {
    flex: 0 0 300px;
    width: 300px;
  }
}

.uk-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.uk-gradeRail .uk-grade {
  flex: 0 0 360px;
  width: 360px;
  direction: rtl;
}

@media (max-width: 860px) {
  .uk-gradeRail .uk-grade {
    flex: 0 0 300px;
    width: 300px;
  }
}

.uk-grade {
  --_accent: var(--uk-navy-800);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg-strong);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.uk-grade::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 3;
  height: 6px;
  background: var(--_accent);
}

.uk-grade:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-strong);
  border-color: var(--_accent);
}

.uk-grade--red    { --_accent: var(--uk-red-700); }
.uk-grade--navy   { --_accent: var(--uk-navy-800); }
.uk-grade--ivory  { --_accent: var(--uk-navy-600); }
.uk-grade--gold   { --_accent: var(--uk-gold-500); }

.uk-grade__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--uk-navy-900);
}

.uk-grade__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.uk-grade:hover .uk-grade__media img { transform: scale(1.05); }

.uk-grade__mediaEmpty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--uk-navy-400);
}

.uk-grade__stage {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--_accent);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.uk-grade--gold .uk-grade__stage { color: var(--uk-navy-900); }

.uk-grade__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px 20px 22px;
}

.uk-grade__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--text-strong);
}

.uk-grade__en {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--_accent);
}

.uk-grade__hint {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--muted-strong);
}

.uk-grade__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: auto;
  padding-block-start: 14px;
  border-block-start: 1px dashed var(--border-strong);
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--_accent);
}

.uk-grade__cta svg { width: 17px; height: 17px; }
html[dir="rtl"] .uk-grade__cta svg { transform: scaleX(-1); }
.uk-grade:hover .uk-grade__cta svg { transform: translateX(-4px); }
html[dir="rtl"] .uk-grade:hover .uk-grade__cta svg { transform: scaleX(-1) translateX(-4px); }

/* ══════════════════ Feature cards ══════════════════ */

.uk-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.uk-feature {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg-strong);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.uk-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.uk-feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.uk-feature__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--uk-red-700);
}

.uk-feature__ico {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.uk-feature__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--uk-navy-100);
  color: var(--uk-navy-800);
}

.uk-feature__mark svg { width: 24px; height: 24px; }

.uk-feature__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-strong);
}

.uk-feature__text {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--muted-strong);
}

/* ══════════════════ Stats ══════════════════ */

.uk-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.uk-stat {
  position: relative;
  overflow: hidden;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  text-align: center;
}

.uk-stat::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--uk-red-700), var(--uk-gold-500));
}

.uk-stat__val {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.uk-stat__lbl {
  margin-block-start: 8px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--uk-navy-300);
}

/* ══════════════════ CTA banner ══════════════════ */

.uk-cta { padding-block: clamp(40px, 6vw, 72px); }

.uk-cta__box {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px) clamp(24px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background: var(--grad-navy);
  box-shadow: var(--shadow-strong);
  text-align: center;
  color: #fff;
}

.uk-cta__union {
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -8%;
  width: 46%;
  height: 180%;
  pointer-events: none;
  opacity: .16;
  background:
    linear-gradient(48deg, transparent 45%, #fff 45% 55%, transparent 55%),
    linear-gradient(-48deg, transparent 45%, var(--uk-red-700) 45% 55%, transparent 55%);
}

.uk-cta__en {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--font-script);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--uk-gold-400);
}

.uk-cta__title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}

.uk-cta__sub {
  position: relative;
  max-width: 60ch;
  margin: 14px auto 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--uk-navy-300);
}

.uk-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-block-start: 26px;
}

/* ══════════════════ Auth pages ══════════════════ */

.uk-auth {
  position: relative;
  padding-block: clamp(28px, 4vw, 56px);
}

.uk-auth__card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card-bg-strong);
  box-shadow: var(--shadow-strong);
}

.uk-auth__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
}

.uk-auth__form {
  padding: clamp(26px, 4vw, 46px);
}

.uk-auth__head { margin-bottom: 26px; text-align: center; }

.uk-auth__logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--uk-navy-800);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.uk-auth__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.uk-auth__logoFallback {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: var(--uk-navy-800);
}

.uk-auth__en {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--uk-navy-900);
}

html[data-theme="dark"] .uk-auth__en { color: #fff; }

.uk-auth__script {
  margin: 0 0 10px;
  font-family: var(--font-script);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--uk-red-700);
}

.uk-auth__sub {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--muted-strong);
}

.uk-auth__form form { display: grid; gap: 16px; }

.uk-auth__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: grid; gap: 8px; }

.field .label,
.uk-auth__label {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text-strong);
}

.field .hint {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-block-start: 6px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-red-bg);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(200, 16, 44, .36); }

.uk-auth__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted-strong);
}

.uk-auth__link {
  font-family: var(--font-ui);
  font-weight: 800;
  color: var(--uk-navy-800);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 14.5px;
  cursor: pointer;
}

.uk-auth__link:hover { color: var(--uk-red-700); }

.uk-auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.uk-auth__divider::before,
.uk-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

/* ─── Artwork pane ─── */

.uk-auth__art {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: var(--uk-navy-900);
}

.uk-auth__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uk-auth__artFlag {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--uk-red-700) 0 33.3%,
    #fff 33.3% 66.6%,
    var(--uk-navy-800) 66.6% 100%
  );
}

.uk-auth__artNote {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(to top, rgba(0, 16, 46, .94), transparent);
  color: #fff;
  text-align: center;
}

.uk-auth__artNote strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}

.uk-auth__artNote span {
  display: block;
  margin-block-start: 4px;
  font-family: var(--font-script);
  font-size: 19px;
  color: var(--uk-gold-400);
}

.uk-auth__artFallback {
  display: grid;
  place-items: center;
  gap: 12px;
  height: 100%;
  padding: 40px;
  text-align: center;
  color: #fff;
}

@media (max-width: 940px) {
  .uk-auth__grid { grid-template-columns: 1fr; }
  .uk-auth__art { order: -1; min-height: 280px; max-height: 360px; }
  .uk-auth__art img { object-position: center 22%; }
  .uk-auth__row { grid-template-columns: 1fr; }
}

/* ══════════════════ Footer ══════════════════ */

.uk-footer {
  position: relative;
  margin-block-start: clamp(32px, 5vw, 64px);
  background: var(--uk-navy-900);
  color: #fff;
}

.uk-footer__flag {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--uk-navy-800) 0 25%,
    #fff 25% 37.5%,
    var(--uk-red-700) 37.5% 62.5%,
    #fff 62.5% 75%,
    var(--uk-navy-800) 75% 100%
  );
}

.uk-footer__inner { padding-block: clamp(34px, 5vw, 56px) 0; }

.uk-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 46px);
}

.uk-footer__brandRow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.uk-footer__logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.uk-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.uk-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.uk-footer__role {
  margin: 2px 0 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--uk-gold-400);
}

.uk-footer__tag {
  max-width: 46ch;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--uk-navy-300);
}

.uk-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.uk-footer__nav a {
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.uk-footer__nav a:hover { background: var(--uk-red-700); border-color: var(--uk-red-700); }

.uk-footer__heading {
  margin: 0 0 14px;
  padding-block-end: 10px;
  border-block-end: 2px solid var(--uk-red-700);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.uk-footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uk-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--uk-navy-300);
  transition: color .2s var(--ease);
}

.uk-footer__link:hover { color: #fff; }

.uk-footer__linkIco {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}

.uk-footer__phones { display: grid; gap: 10px; }

.uk-footer__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  direction: ltr;
  transition: background .2s var(--ease);
}

.uk-footer__phone:hover { background: var(--uk-red-700); border-color: var(--uk-red-700); }

.uk-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-block-start: clamp(26px, 4vw, 44px);
  padding-block: 20px;
  border-block-start: 1px solid rgba(255, 255, 255, .14);
}

.uk-footer__copy,
.uk-footer__dev {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--uk-navy-300);
}

@media (max-width: 760px) {
  .uk-footer__grid { grid-template-columns: 1fr; }
  .uk-footer__bottom { justify-content: center; text-align: center; }
}

/* ══════════════════ Toasts ══════════════════ */

.uk-toast {
  position: fixed;
  inset-block-start: max(14px, env(safe-area-inset-top, 0px));
  inset-inline: 16px;
  z-index: 240;
  display: flex;
  gap: 14px;
  max-width: 520px;
  margin-inline: auto;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  color: #001543;
}

.uk-toast--error { border-color: #C8102C; background: #FFF5F6; }
.uk-toast--success { border-color: #1B7A45; background: #F1FFF6; }

.uk-toast__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.uk-toast--error .uk-toast__icon { background: var(--uk-red-700); }
.uk-toast--success .uk-toast__icon { background: var(--success); }

.uk-toast__body { flex: 1; }

.uk-toast__title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #001543;
}

.uk-toast__msg,
.uk-toast__list {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.8;
  color: #24324A;
}

.uk-toast__list { padding-inline-start: 18px; }

.uk-toast__close {
  align-self: flex-start;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.uk-toast__progress {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--surface-soft);
}

.uk-toast__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--uk-red-700);
  animation: ukToastBar var(--toast-duration, 6.5s) linear forwards;
}

.uk-toast--success .uk-toast__progress span { background: var(--success); }
.uk-toast.is-paused .uk-toast__progress span { animation-play-state: paused; }
.uk-toast.is-leaving {
  animation: ukToastOut .22s ease forwards;
}

@keyframes ukToastBar {
  from { width: 100%; }
  to   { width: 0%; }
}
@keyframes ukToastOut {
  to { opacity: 0; transform: translateY(-10px); }
}

html[data-theme="dark"] .uk-toast {
  background: #1A2F66;
  border-width: 2px;
  border-color: #E8C96A;
  color: #FFFFFF;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .uk-toast--error {
  background: #4A1020;
  border-color: #FF8A98;
}
html[data-theme="dark"] .uk-toast--success {
  background: #0F3A28;
  border-color: #7CF0A4;
}
html[data-theme="dark"] .uk-toast__title,
html[data-theme="dark"] .uk-toast__msg,
html[data-theme="dark"] .uk-toast__list,
html[data-theme="dark"] .uk-toast__list li,
html[data-theme="dark"] .uk-toast__close {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF;
}

/* ══════════════════ Theme switch ══════════════════ */

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--sw-bg);
}

.theme-switch__btn {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-switch__face {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.theme-switch__face svg {
  display: block;
  width: 15px;
  height: 15px;
}

.theme-switch__knob {
  position: absolute;
  inset-block: 4px;
  inset-inline-start: 4px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  border-radius: var(--radius-pill);
  background: var(--sw-knob);
  color: #fff;
  transition: transform .28s var(--ease);
}

html[data-theme="dark"] .theme-switch__knob { transform: translateX(-34px); color: var(--uk-navy-900); }
html[dir="ltr"][data-theme="dark"] .theme-switch__knob { transform: translateX(34px); }

.theme-switch__knob-ico { display: none; }
.theme-switch__knob-ico svg { width: 17px; height: 17px; display: block; }
.theme-switch__knob-ico--light { display: block; }
html[data-theme="dark"] .theme-switch__knob-ico--light { display: none; }
html[data-theme="dark"] .theme-switch__knob-ico--dark { display: block; }

/* ══════════════ Dark mode — نصوص أوضح ══════════════ */

html[data-theme="dark"] body {
  color: #fff;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] p:not(.uk-fix__line),
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] li,
html[data-theme="dark"] label,
html[data-theme="dark"] small,
html[data-theme="dark"] strong,
html[data-theme="dark"] span,
html[data-theme="dark"] a:not(.uk-btn),
html[data-theme="dark"] figcaption,
html[data-theme="dark"] .uk-hdr__link,
html[data-theme="dark"] .uk-hdr__tagline,
html[data-theme="dark"] .uk-brand__name,
html[data-theme="dark"] .uk-brand__sub,
html[data-theme="dark"] .uk-hero__role,
html[data-theme="dark"] .uk-hero__desc,
html[data-theme="dark"] .uk-hero__name,
html[data-theme="dark"] .uk-section__title,
html[data-theme="dark"] .uk-section__sub,
html[data-theme="dark"] .uk-skill__title,
html[data-theme="dark"] .uk-skill__text,
html[data-theme="dark"] .uk-step__label,
html[data-theme="dark"] .uk-step__hint,
html[data-theme="dark"] .uk-step__en,
html[data-theme="dark"] .uk-stat__lbl,
html[data-theme="dark"] .uk-feature__title,
html[data-theme="dark"] .uk-feature__text,
html[data-theme="dark"] .uk-grade__name,
html[data-theme="dark"] .uk-grade__hint,
html[data-theme="dark"] .uk-cta__title,
html[data-theme="dark"] .uk-cta__sub,
html[data-theme="dark"] .uk-footer__name,
html[data-theme="dark"] .uk-footer__tag,
html[data-theme="dark"] .uk-footer__link,
html[data-theme="dark"] .uk-footer__copy,
html[data-theme="dark"] .uk-footer__dev,
html[data-theme="dark"] .uk-footer__heading,
html[data-theme="dark"] .uk-footer__nav a,
html[data-theme="dark"] .uk-footer__phone,
html[data-theme="dark"] .uk-auth__en,
html[data-theme="dark"] .uk-auth__sub,
html[data-theme="dark"] .field .label,
html[data-theme="dark"] .field .hint {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF;
}

html[data-theme="dark"] .uk-hero__desc,
html[data-theme="dark"] .uk-section__sub,
html[data-theme="dark"] .uk-skill__text,
html[data-theme="dark"] .uk-step__hint,
html[data-theme="dark"] .uk-feature__text,
html[data-theme="dark"] .uk-grade__hint,
html[data-theme="dark"] .uk-cta__sub,
html[data-theme="dark"] .uk-footer__tag,
html[data-theme="dark"] .uk-auth__sub {
  font-weight: 800;
  line-height: 2;
}

html[data-theme="dark"] .uk-hero__desc { font-size: 18px; }
html[data-theme="dark"] .uk-cta__sub { font-size: 18px; }
html[data-theme="dark"] .uk-footer__tag { font-size: 16.5px; }

html[data-theme="dark"] .uk-hero__name {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .85);
}

html[data-theme="dark"] .uk-hero__script,
html[data-theme="dark"] .uk-cta__en,
html[data-theme="dark"] .uk-footer__role,
html[data-theme="dark"] .uk-section__en,
html[data-theme="dark"] .uk-section--navy .uk-section__en,
html[data-theme="dark"] .uk-hero__badgeVal {
  color: #FFE58A !important;
  -webkit-text-fill-color: #FFE58A;
  font-weight: 800;
}

html[data-theme="dark"] .uk-hero__name small,
html[data-theme="dark"] .uk-hero__kicker,
html[data-theme="dark"] .uk-hero__role span,
html[data-theme="dark"] .uk-brand__name em,
html[data-theme="dark"] .uk-skill__en,
html[data-theme="dark"] .uk-fix__tag {
  color: #FFC8D0 !important;
  -webkit-text-fill-color: #FFC8D0;
  font-weight: 800;
}

html[data-theme="dark"] .uk-btn--outline {
  --_fg: #fff;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  border-color: #fff;
  font-weight: 800;
}

html[data-theme="dark"] .uk-btn--onDark {
  --_fg: #fff;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  border-color: #fff;
  font-weight: 800;
}

html[data-theme="dark"] .uk-btn--white,
html[data-theme="dark"] .uk-btn--white * {
  color: #001543 !important;
  -webkit-text-fill-color: #001543;
}

html[data-theme="dark"] .uk-btn--gold,
html[data-theme="dark"] .uk-btn--gold * {
  color: #00102E !important;
  -webkit-text-fill-color: #00102E;
}

html[data-theme="dark"] .uk-strip__item {
  color: #FFF6D8 !important;
  -webkit-text-fill-color: #FFF6D8 !important;
}

html[data-theme="dark"] .uk-fix__line {
  color: inherit !important;
  -webkit-text-fill-color: unset !important;
}

html[data-theme="dark"] .uk-fix__wrong,
html[data-theme="dark"] .uk-fix__text.is-wrong,
html[data-theme="dark"] .uk-fix s {
  color: #FF5C6C !important;
  -webkit-text-fill-color: #FF5C6C !important;
}

html[data-theme="dark"] .uk-fix__right,
html[data-theme="dark"] .uk-fix__text.is-right,
html[data-theme="dark"] .uk-fix b {
  color: #7CF0A4 !important;
  -webkit-text-fill-color: #7CF0A4 !important;
}

html[data-theme="dark"] .uk-fix__caret {
  background: #FF5C6C;
}

html[data-theme="dark"] .uk-footer__nav a {
  border-color: rgba(255, 255, 255, .7);
}
