/* ═══════════════════════════════════════════════════════════════
   DR. HOSSAM SHEPL — Chemistry & Integrated Science Lab
   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(11, 90, 99, .32), transparent 70%);
}

.uk-ambient__glow--red {
  inset-inline-start: -180px;
  top: 34vh;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(224, 90, 24, .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; }

html[data-theme="dark"] .uk-ambient__glow {
  display: none;
}

.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: #031316; 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: #031316; }

html[data-theme="dark"] .uk-sky__night,
html[data-theme="dark"] .uk-sky__windows,
html[data-theme="dark"] .uk-sky__clock,
html[data-theme="dark"] .uk-sky__moon,
html[data-theme="dark"] .uk-sky__stars { opacity: 0 !important; }

/* تبديل الثيم يبان ناعم */
.uk-sky__city,
.uk-sky__night,
.uk-sky__windows,
.uk-sky__clock { transition: opacity .5s var(--ease), fill .5s var(--ease); }

/* الشبابيك والقمر مطفئين في الوضع الداكن — بدون توهّج */

/* عين لندن بتلف بالراحة */
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(5, 34, 38, .06);
}

.uk-hdr__flag {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--uk-navy-800) 0 28%,
    var(--uk-gold-500) 28% 40%,
    var(--uk-red-700) 40% 60%,
    var(--uk-gold-500) 60% 72%,
    var(--uk-navy-800) 72% 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-body);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

.uk-hdr__eyebrowFlag {
  display: inline-block;
  width: 18px;
  height: 20px;
  border-radius: 0;
  flex: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(180deg, #E8B82A, #E05A18);
}

.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: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: #0B5A63;
  border: 3px solid var(--uk-gold-500);
  box-shadow: 0 4px 16px rgba(11, 90, 99, .28);
  overflow: hidden;
}

.uk-brand__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.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;
  z-index: 1;
  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: .45;
  background-image: var(--uk-hex),
    radial-gradient(circle at 28% 38%, rgba(11, 90, 99, .18), transparent 58%);
  background-size: 72px 84px, auto;
}

html[data-theme="dark"] .uk-hero__union {
  opacity: 0;
  background: none;
}

.uk-hero__stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Guards the text column against overflow from long unbroken words. */
.uk-hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.uk-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 16px 8px 10px;
  border: 1.5px solid rgba(224, 90, 24, .28);
  border-radius: var(--radius-pill);
  background: rgba(224, 90, 24, .08);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #C44A12;
}

.uk-hero__kickerFlag {
  display: inline-block;
  width: 18px;
  height: 20px;
  border-radius: 0;
  flex: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(180deg, #E8B82A, #E05A18);
}

.uk-hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
  color: #052226;
}

.uk-hero__name small {
  display: none;
}

.uk-hero__role {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  color: #0B5A63;
}

.uk-hero__role span { color: inherit; }

.uk-hero__script {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.55;
  color: #C49A12;
}

.uk-hero__desc {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  color: #3E5C61;
}

/* ══════════════════ جملة بتصحّح نفسها ══════════════════ */

.uk-fix {
  position: relative;
  margin: 18px 0 0;
  max-width: 46ch;
  padding: 14px 16px 15px;
  border: 1.5px dashed rgba(11, 90, 99, .28);
  border-radius: var(--radius-lg);
  background: rgba(11, 90, 99, .05);
}

.uk-fix__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #0B5A63;
}

.uk-fix__line {
  margin: 0;
  /* ثابت الطول حتى لا يهتز الهيرو أثناء الكتابة */
  min-height: 3.2em;
  direction: ltr;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #052226;
}

/* الشكل الثابت بدون جافاسكربت */
.uk-fix__wrong { color: #C44A12; opacity: .85; }
.uk-fix__right { display: block; color: #0B7A4B; }

/* النسخة المتحركة */
.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 rgba(11, 90, 99, .16);
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: #0B5A63;
  box-shadow: none;
}

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: 520px;
  justify-self: center;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--uk-gold-500);
  box-shadow: var(--shadow-strong), 0 0 0 8px rgba(11, 90, 99, .18);
  background: #0B5A63;
}

html[data-theme="dark"] .uk-hero__art {
  border-color: rgba(208, 240, 243, .28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

.uk-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.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-gold-500) 33.3% 50%,
    var(--uk-red-700) 50% 66.6%,
    var(--uk-navy-800) 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 {
  position: relative;
  z-index: 3;
  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;
  z-index: 1;
  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-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  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); }

/* ══════════════════ Skills grid ══════════════════ */

.uk-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.uk-skill {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 24px;
  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), border-color .25s var(--ease);
}

.uk-skill::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 5px;
  background: var(--uk-navy-800);
}

.uk-skill:nth-child(2n)::before { background: var(--uk-red-700); }
.uk-skill:nth-child(3n)::before { background: var(--uk-gold-500); }

.uk-skill:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.uk-skill__ico {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.uk-skill__ico img,
.uk-char {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.uk-skill__ico svg { width: 26px; height: 26px; }

.uk-skill__en {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--uk-red-700);
}

.uk-skill__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-strong);
}

.uk-skill__text {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--muted-strong);
}

/* ══════════════════ 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__char {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.uk-step__char img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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-body);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  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%); }
}

.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-body);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  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: .28;
  background-image: var(--uk-hex);
  background-size: 64px 74px;
}

.uk-cta__en {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  font-style: italic;
  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: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.uk-auth__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.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-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  font-style: italic;
  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: 0;
  background: var(--uk-navy-900);
}

.uk-auth__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  background: #0B5A63;
}

.uk-auth__artFlag {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--uk-navy-800) 0 33.3%,
    var(--uk-gold-500) 33.3% 50%,
    var(--uk-red-700) 50% 66.6%,
    var(--uk-navy-800) 66.6% 100%
  );
}

.uk-auth__artNote {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 28px 22px 22px;
  background: linear-gradient(to top, rgba(5, 34, 38, .96) 0%, rgba(5, 34, 38, .72) 55%, transparent);
  color: #fff;
  text-align: center;
}

.uk-auth__artNote strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.2;
}

.uk-auth__artNote span {
  display: block;
  margin-block-start: 8px;
  font-family: var(--font-script);
  font-size: clamp(17px, 1.8vw, 22px);
  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;
    height: 320px;
    max-height: 360px;
  }
  .uk-auth__art img { object-position: center 22%; }
  .uk-auth__row { grid-template-columns: 1fr; }
}

/* ══════════════════ Footer ══════════════════ */

.uk-footer {
  position: relative;
  z-index: 1;
  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 28%,
    var(--uk-gold-500) 28% 40%,
    var(--uk-red-700) 40% 60%,
    var(--uk-gold-500) 60% 72%,
    var(--uk-navy-800) 72% 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: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  background: #0B5A63;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  border: 3px solid var(--uk-gold-500);
}

.uk-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}
}

.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: #052226;
}

.uk-toast--error { border-color: #E05A18; background: #FFF6F0; }
.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: #052226;
}

.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: none;
}

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: #E8B82A !important;
  -webkit-text-fill-color: #E8B82A;
  font-weight: 800;
}

html[data-theme="dark"] .uk-brand__name em,
html[data-theme="dark"] .uk-skill__en {
  color: #FFB088 !important;
  -webkit-text-fill-color: #FFB088;
  font-weight: 800;
}

html[data-theme="dark"] .uk-hero__kicker {
  color: #FFB088 !important;
  -webkit-text-fill-color: #FFB088;
  background: rgba(224, 90, 24, .14);
  border-color: rgba(255, 176, 136, .32);
}

html[data-theme="dark"] .uk-hero__role {
  color: #8FE0E8 !important;
  -webkit-text-fill-color: #8FE0E8;
}

html[data-theme="dark"] .uk-hero__script {
  color: #E8B82A !important;
  -webkit-text-fill-color: #E8B82A;
  font-weight: 700;
}

html[data-theme="dark"] .uk-hero__desc {
  color: #C5E4E7 !important;
  -webkit-text-fill-color: #C5E4E7;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.9;
}

html[data-theme="dark"] .uk-fix {
  background: rgba(143, 224, 232, .08);
  border-color: rgba(143, 224, 232, .28);
}

html[data-theme="dark"] .uk-fix__tag {
  color: #8FE0E8 !important;
  -webkit-text-fill-color: #8FE0E8;
}

html[data-theme="dark"] .uk-fix__wrong,
html[data-theme="dark"] .uk-fix__text.is-wrong,
html[data-theme="dark"] .uk-fix s {
  color: #FFB088 !important;
  -webkit-text-fill-color: #FFB088;
}

html[data-theme="dark"] .uk-hero__skills span {
  background: #0C2328;
  border-color: rgba(143, 224, 232, .28);
  color: #8FE0E8 !important;
  -webkit-text-fill-color: #8FE0E8;
}

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: #052226 !important;
  -webkit-text-fill-color: #052226;
}

html[data-theme="dark"] .uk-btn--gold,
html[data-theme="dark"] .uk-btn--gold * {
  color: #031316 !important;
  -webkit-text-fill-color: #031316;
}

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: #FFB088 !important;
  -webkit-text-fill-color: #FFB088 !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);
}

.uk-char {
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
.uk-char--nav {
  width: 32px;
  height: 32px;
}
