/* ============================================================
   أكاديمية باز لعلوم الطيران — نظام التصميم
   Aviation / Cockpit inspired theme · RTL-first
   ============================================================ */

:root {
  /* sky + night palette */
  --navy-900: #04070f;
  --navy-800: #070d1a;
  --navy-700: #0b1425;
  --navy-600: #111d33;
  --navy-500: #17263f;
  --navy-400: #1f3350;

  --sky-400: #38bdf8;
  --sky-300: #7dd3fc;
  --sky-500: #0ea5e9;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --emerald-400: #34d399;
  --rose-400: #fb7185;

  --ink: #e8f1fb;
  --ink-soft: #a8bad4;
  --ink-mute: #6f86a5;
  --line: rgba(125, 211, 252, 0.14);
  --line-soft: rgba(148, 178, 214, 0.1);
  --glass: rgba(17, 29, 51, 0.62);
  --glass-strong: rgba(11, 20, 37, 0.9);
  /* لون شريط القائمة الرئيسية: أوضح قليلاً من لون الصفحة #04070f */
  --nav-bg: rgba(11, 20, 37, 0.72);

  --grad-sky: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 45%, #6366f1 100%);
  --grad-sun: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --grad-surface: linear-gradient(160deg, rgba(23, 38, 63, 0.9), rgba(7, 13, 26, 0.95));

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --sh-1: 0 2px 10px rgba(0, 0, 0, 0.28);
  --sh-2: 0 12px 34px rgba(0, 0, 0, 0.38);
  --sh-3: 0 26px 70px rgba(0, 0, 0, 0.48);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 10px 40px rgba(14, 165, 233, 0.22);

  --nav-h: 74px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", Arial, sans-serif;
  background: var(--navy-900);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* atmospheric background: gradient mesh + radar grid + horizon */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(900px 560px at 6% 8%, rgba(99, 102, 241, 0.17), transparent 62%),
    radial-gradient(700px 460px at 50% 108%, rgba(251, 191, 36, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 45%, #060a14 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 22%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 5%, transparent 72%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 4.5vw, 4rem) 0; }
.grid { display: grid; gap: 1.5rem; }

.text-c { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.76rem; }
.sky { color: var(--sky-400); }
.amber { color: var(--amber-400); }

/* ---------- section heading ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.sec-head__title {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.sec-head__sub { color: var(--ink-soft); max-width: 58ch; margin-top: 0.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-300);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.04); }
}

/* gradient text */
.grad-text {
  background: var(--grad-sky);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--grad-sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border: 0;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: #04121f;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.3);
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.4) 50%, transparent 75%);
  transform: translateX(-140%);
  transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(14, 165, 233, 0.42); filter: saturate(1.1); }
.btn:hover::after { transform: translateX(140%); }
.btn:active { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.4); box-shadow: var(--sh-1); }

.btn--sun { --btn-bg: var(--grad-sun); box-shadow: 0 10px 26px rgba(245, 158, 11, 0.3); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.84rem; }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.03rem; }
.btn--block { width: 100%; }

/* ---------- cards ---------- */
.card {
  background: var(--grad-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: rgba(56, 189, 248, 0.32); box-shadow: var(--sh-2); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-800));
  flex-shrink: 0;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 7, 15, 0.88) 0%, rgba(4, 7, 15, 0.15) 55%, transparent 100%);
}
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.7rem; }
.card__title {
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.45;
  transition: color 0.25s;
}
.card:hover .card__title { color: var(--sky-300); }
.card__text { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft);
  font-size: 0.8rem; color: var(--ink-mute);
}

.card--glass { background: var(--glass); backdrop-filter: blur(16px); }
.card--flat { transition: transform 0.3s var(--ease), border-color 0.3s; }
.card--flat:hover { transform: translateY(-4px); }

/* clipped "flight path" corner */
.card::before {
  content: "";
  position: absolute;
  top: -60px; inset-inline-end: -60px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* ---------- خريطة الموقع ---------- */
.map-embed {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy-800);
  box-shadow: var(--sh-1);
}
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: var(--r-full);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.14);
  color: var(--sky-300);
  border: 1px solid rgba(56, 189, 248, 0.26);
  white-space: nowrap;
}
.badge--live { background: rgba(251, 191, 36, 0.14); color: var(--amber-400); border-color: rgba(251, 191, 36, 0.3); }
.badge--ok { background: rgba(52, 211, 153, 0.14); color: var(--emerald-400); border-color: rgba(52, 211, 153, 0.3); }
.badge--off { background: rgba(148, 163, 184, 0.12); color: var(--ink-mute); border-color: rgba(148, 163, 184, 0.22); }

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: rgba(56, 189, 248, 0.4); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] {
  background: var(--grad-sky); color: #04121f; border-color: transparent;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.28);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > label { font-size: 0.86rem; font-weight: 650; color: var(--ink-soft); }
.field label .req { color: var(--rose-400); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(4, 7, 15, 0.55);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--sky-400);
  background: rgba(4, 7, 15, 0.75);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.9rem center;
  background-size: 17px;
  padding-inline-start: 1rem;
  padding-inline-end: 2.6rem;
}
html[dir="ltr"] .select { background-position: right 0.9rem center; }

.select option { background: var(--navy-700); color: var(--ink); }

.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--rose-400); }
.err-msg { color: var(--rose-400); font-size: 0.79rem; min-height: 1em; }

.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

/* radio / checkbox cards */
.opt-grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.opt {
  position: relative;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 0.89rem;
  transition: all 0.22s var(--ease);
  background: rgba(4, 7, 15, 0.4);
}
.opt:hover { border-color: rgba(56, 189, 248, 0.4); }
.opt input { accent-color: var(--sky-500); width: 17px; height: 17px; cursor: pointer; }
.opt:has(input:checked) {
  border-color: var(--sky-400);
  background: rgba(56, 189, 248, 0.11);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.switch { display: inline-flex; align-items: center; gap: 0.65rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 46px; height: 26px;
  border-radius: var(--r-full);
  background: rgba(148, 163, 184, 0.28);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.28s var(--ease);
  flex-shrink: 0;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px; inset-inline-start: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.28s var(--ease);
}
.switch input:checked + .switch__track { background: var(--grad-sky); border-color: transparent; }
.switch input:checked + .switch__track::after { transform: translateX(-20px); }
html[dir="ltr"] .switch input:checked + .switch__track::after { transform: translateX(20px); }

/* ---------- navbar ---------- */
.nav {
  position: fixed;
  inset-inline: 0; top: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.07);
}
.nav.is-stuck {
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.nav__inner { display: flex; align-items: center; gap: 1.4rem; width: 100%; }

.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand__logo {
  width: 46px; height: 46px;
  border-radius: 14px;
  object-fit: cover;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.24);
  background: var(--navy-700);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.22; }
.brand__name { font-weight: 850; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand__tag { font-size: 0.68rem; color: var(--sky-300); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: 0.35rem; margin-inline-start: auto; }
.nav__link {
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.nav__link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav__link.is-active { color: var(--sky-300); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px; inset-inline: 1rem;
  height: 2px;
  background: var(--grad-sky);
  border-radius: 2px;
}

.nav__tools { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.lang {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(4, 7, 15, 0.45);
}
.lang__btn {
  width: 34px; height: 26px;
  border: 0; background: transparent;
  border-radius: 7px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, background 0.2s;
  display: grid; place-items: center;
  padding: 2px;
}
.lang__btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.lang__btn:hover { opacity: 0.85; }
.lang__btn.is-active { opacity: 1; background: rgba(56, 189, 248, 0.2); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 7, 15, 0.5);
  cursor: pointer;
  place-items: center;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* زر التسجيل المكتبي يُخفى هنا (نسخته Mobile موجودة داخل nav__links).
     بدون هذا الحساب يفيض إلى الخارج عند 360px فيُقصّ الزر وزر القائمة معاً. */
  .nav__tools > .btn { display: none; }
  .nav__inner { gap: 0.8rem; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 1.4rem 1.6rem;
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-115%);
    transition: transform 0.4s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    margin: 0;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 0.8rem 1rem; border-radius: var(--r-md); }
  .nav__link.is-active { background: rgba(56, 189, 248, 0.12); }
  .nav__link.is-active::after { display: none; }
  .burger { display: grid; }
  .nav__cta-mobile { display: block; margin-top: 0.6rem; }
}
@media (min-width: 1081px) { .nav__cta-mobile { display: none; } }

/* ---------- navbar: courses dropdown ---------- */
.nav__drop { position: relative; display: flex; align-items: center; }
.drop[hidden] { display: none !important; }
.drop__item { border-radius: var(--r-md); }
.drop__cat {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 0.92rem; font-weight: 650;
  color: var(--ink-soft);
  text-align: start;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.drop__cat::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cat, var(--sky-300));
  flex-shrink: 0;
}
.drop__cat:hover { background: rgba(56, 189, 248, 0.1); color: var(--ink); }
.drop__item.is-open > .drop__cat { color: var(--sky-300); background: rgba(56, 189, 248, 0.14); }
.drop__chev {
  margin-inline-start: auto;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.drop__item.is-open > .drop__cat .drop__chev { transform: rotate(225deg); }
.drop__sub {
  display: none;
  padding: 0.2rem 0 0.4rem;
  margin-inline-start: 1.05rem;
  border-inline-start: 1px solid var(--line);
}
.drop__item.is-open > .drop__sub,
.drop__item:focus-within > .drop__sub { display: block; }
.drop__link {
  display: block;
  padding: 0.42rem 0.7rem;
  font-size: 0.9rem; font-weight: 550;
  color: var(--ink-soft);
  border-radius: var(--r-md);
  transition: color 0.2s, background 0.2s;
}
.drop__link:hover { color: var(--ink); background: rgba(56, 189, 248, 0.1); }
.drop__link--all {
  font-size: 0.82rem; font-weight: 700;
  color: var(--sky-300);
}

@media (min-width: 1081px) {
  .nav__drop { display: flex; align-items: center; }
  .drop {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem;
    min-width: 320px;
    max-width: 360px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    background: var(--glass-strong);
    backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .nav__drop:hover .drop,
  .nav__drop:focus-within .drop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 1080px) {
  .nav__drop { width: 100%; }
  .drop {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.35rem;
    padding: 0.25rem 0 0.45rem;
    border-inline-start: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .drop__cat { padding: 0.75rem 0.7rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 15, 0.82) 0%, rgba(4, 7, 15, 0.5) 40%, rgba(4, 7, 15, 0.95) 100%),
    radial-gradient(700px 400px at 70% 30%, rgba(56, 189, 248, 0.18), transparent 70%);
}
.hero__inner { display: grid; gap: 3rem; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
/* حاوية نص البطل: بدونها يتمدد العنوان على عرض العمود كاملاً */
.hero__text-block { min-width: 0; max-width: 62ch; }
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__title {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero__text { color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* flight-path connector line */
.fpath { position: relative; margin-top: 2.6rem; padding-top: 2rem; }
.fpath::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.55) 0 14px, transparent 14px 26px);
  animation: dash 22s linear infinite;
}
@keyframes dash { to { background-position-x: -260px; } }
.fpath__dots { display: flex; justify-content: space-between; margin-top: 0.9rem; }
.fpath__dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--sky-400);
  background: var(--navy-900);
}
.fpath__dots span:first-child { background: var(--sky-400); box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.16); }

/* ---------- stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--navy-800);
  padding: 1.7rem 1.3rem;
  text-align: center;
  transition: background 0.3s;
}
.stat:hover { background: var(--navy-600); }
.stat__num {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-sky);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 0.84rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--flip .split__media { order: -1; }
@media (max-width: 900px) { .split--flip .split__media { order: 0; } }

.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(56, 189, 248, 0.1), transparent 55%);
}

.check-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.5'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: st; }
.step { position: relative; padding: 1.7rem 1.4rem 1.5rem; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line-soft); backdrop-filter: blur(12px); transition: transform 0.3s var(--ease), border-color 0.3s; }
.step:hover { transform: translateY(-5px); border-color: rgba(56, 189, 248, 0.3); }
.step::before {
  counter-increment: st;
  content: "0" counter(st);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-sky);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
  margin-bottom: 0.7rem;
}
.step h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote {
  padding: 1.7rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line-soft);
  position: relative;
  backdrop-filter: blur(12px);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 0.3rem; inset-inline-start: 1.2rem;
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(56, 189, 248, 0.2);
  font-family: Georgia, serif;
}
.quote__text { color: var(--ink); font-size: 0.96rem; position: relative; }
.quote__by { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.quote__av {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-sky);
  color: #04121f;
  font-weight: 900;
  flex-shrink: 0;
}
.stars { color: var(--amber-400); letter-spacing: 2px; font-size: 0.85rem; }

/* ---------- academy manager: gold-framed rotating message ---------- */
/* الصورة يمين النص: العنصر الأول داخل .split يقع يميناً في RTL */
.mgr__media img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .mgr__media img { aspect-ratio: 16 / 11; } }

/* شارة ذهبية بدل الشارة الزرقاء، مثبّتة على الصورة */
.mgr__badge {
  position: absolute;
  bottom: 8%; inset-inline-start: -1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  background: var(--glass-strong);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
  backdrop-filter: blur(10px);
}
@media (max-width: 900px) { .mgr__badge { inset-inline-start: 0.8rem; } }
.mgr__badge b { display: block; font-size: 0.95rem; line-height: 1.25; color: var(--amber-400); }
.mgr__badge small { color: var(--ink-mute); font-size: 0.72rem; }

/* المربع الذهبي: حشو 1px يكشف التدرّج كإطار حول سطح داخلي داكن */
.gold-box {
  position: relative;
  margin-top: 1.7rem;
  padding: 1px;
  border-radius: var(--r-lg);
  background: var(--grad-sun);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.16);
}
.gold-box__in {
  border-radius: calc(var(--r-lg) - 1px);
  background: var(--grad-surface);
  padding: clamp(1.5rem, 2.8vw, 2.1rem) clamp(1.4rem, 2.6vw, 2rem);
  backdrop-filter: blur(12px);
}
.gold-box__mark {
  position: absolute;
  top: 0.45rem; inset-inline-start: 1.35rem;
  font-size: 3.6rem; line-height: 1;
  font-family: Georgia, serif;
  color: rgba(251, 191, 36, 0.22);
  pointer-events: none;
}
/* تلاشٍ عند تبديل الرسالة */
.gold-box__body { position: relative; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.gold-box__body.is-out { opacity: 0; transform: translateY(7px); }
.gold-box__text {
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.9;
  font-weight: 600;
  /* ارتفاع أدنى يمنع قفز العنصر بين رسالة أقصر وأطول */
  min-height: 6.6em;
}
.gold-box__by {
  display: flex; align-items: center; gap: 0.85rem;
  margin-top: 1.25rem; padding-top: 1.05rem;
  border-top: 1px solid rgba(251, 191, 36, 0.2);
}
.gold-box__av {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-sun); color: #1a1206; font-weight: 900;
}
.gold-box__name { color: var(--ink); font-weight: 800; font-size: 0.95rem; }
.gold-box__role { color: var(--ink-mute); font-size: 0.78rem; }

/* نقاط التنقّل بين الرسائل */
.mgr__dots { display: flex; gap: 0.5rem; margin-top: 1.15rem; }
.mgr__dot {
  width: 10px; height: 10px; padding: 0; cursor: pointer;
  border-radius: var(--r-full);
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: transparent;
  transition: width 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.mgr__dot:hover { border-color: var(--amber-400); }
.mgr__dot[aria-current="true"] { width: 28px; border-color: transparent; background: var(--grad-sun); }
.mgr__dot:focus-visible { outline: 2px solid var(--amber-400); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .gold-box__body, .mgr__dot { transition: none; }
  .gold-box__body.is-out { transform: none; }
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(4, 7, 15, 0.4);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item:hover { border-color: rgba(56, 189, 248, 0.28); }
.faq-item[open] { background: rgba(56, 189, 248, 0.05); border-color: rgba(56, 189, 248, 0.32); }
.faq-q {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--sky-400);
  transition: transform 0.3s var(--ease);
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- page hero (inner pages) ---------- */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + 3.2rem) 0 3.2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 340px at 78% 0%, rgba(56, 189, 248, 0.18), transparent 70%),
    radial-gradient(560px 300px at 10% 100%, rgba(99, 102, 241, 0.14), transparent 70%);
  z-index: -1;
}
.page-head h1 {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.83rem; color: var(--ink-mute); margin-top: 0.9rem; }
.crumbs a:hover { color: var(--sky-300); }
.crumbs span[aria-current] { color: var(--sky-300); }

/* ---------- toolbar (search / filter) ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  margin-bottom: 2rem;
}
.search-box { position: relative; flex: 1 1 260px; max-width: 380px; }
.search-box .input { padding-inline-start: 2.7rem; }
.search-box::before {
  content: "";
  position: absolute;
  top: 50%; inset-inline-start: 1rem;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  background: var(--ink-mute);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  mask-size: contain; -webkit-mask-size: contain;
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  pointer-events: none;
}

/* ---------- article / prose ---------- */
.prose { font-size: 1.03rem; line-height: 1.95; color: #d3e2f2; max-width: 74ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2.2rem; color: var(--ink); }
.prose h3 { font-size: 1.2rem; font-weight: 750; margin-top: 1.9rem; color: var(--sky-300); }
.prose ul { display: grid; gap: 0.6rem; }
.prose li { display: flex; gap: 0.7rem; align-items: flex-start; }
.prose li::before {
  content: "";
  width: 7px; height: 7px; margin-top: 12px;
  border-radius: 50%; flex-shrink: 0;
  background: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}
.prose a { color: var(--sky-300); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 750; }
.prose img { border-radius: var(--r-md); margin-block: 1.6rem; }

.article-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 2.2rem;
}
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4, 7, 15, 0.7), transparent 60%);
}

/* ---------- meta row ---------- */
.meta-row { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; font-size: 0.84rem; color: var(--ink-mute); }
.meta-row > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta-row svg { width: 15px; height: 15px; opacity: 0.7; flex-shrink: 0; }

/* ---------- course card specifics ---------- */
.course-price { display: flex; align-items: baseline; gap: 0.35rem; }
.course-price b { font-size: 1.35rem; font-weight: 900; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.course-price span { font-size: 0.78rem; color: var(--ink-mute); }
.course-price--note {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
  color: var(--ink-soft);
}

.seats { height: 7px; border-radius: var(--r-full); background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.seats__fill { height: 100%; border-radius: var(--r-full); background: var(--grad-sky); transition: width 0.9s var(--ease); }
.seats__fill.is-full { background: linear-gradient(90deg, #f97316, #fb7185); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

/* ---------- gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.shot {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  border: 1px solid var(--line-soft);
  background: var(--navy-700);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot:hover img { transform: scale(1.09); }
.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem 0.9rem 0.75rem;
  background: linear-gradient(0deg, rgba(4, 7, 15, 0.94), transparent);
  font-size: 0.84rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.shot:hover figcaption { transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(2, 4, 9, 0.94);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: grid; place-items: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--sh-3); }
.lightbox__cap { color: var(--ink-soft); margin-top: 1rem; text-align: center; font-size: 0.92rem; }
.lightbox__close { position: absolute; top: 1.4rem; inset-inline-end: 1.4rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.22), rgba(99, 102, 241, 0.18) 55%, rgba(251, 191, 36, 0.13));
  border: 1px solid rgba(56, 189, 248, 0.28);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.035) 22px 44px);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 900; margin-bottom: 0.8rem; }

/* ---------- footer ---------- */
.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.4), rgba(4, 7, 15, 0.9));
  padding-top: 3.2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.4rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h5 { font-size: 0.98rem; margin-bottom: 1rem; }
.footer ul { display: grid; gap: 0.6rem; }
.footer a { color: var(--ink-soft); font-size: 0.9rem; transition: color 0.2s, padding 0.2s; }
.footer a:hover { color: var(--sky-300); padding-inline-start: 4px; }
.footer__bot {
  border-top: 1px solid var(--line-soft);
  padding: 1.3rem 0;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ink-mute);
}
.social { display: flex; gap: 0.6rem; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s var(--ease);
  padding: 0;
}
.social a:hover { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.4); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- alert / toast ---------- */
.alert {
  padding: 0.95rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: 0.92rem;
  display: flex; gap: 0.7rem; align-items: flex-start;
}
.alert--err { background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.32); color: #fecdd3; }
.alert--ok { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.32); color: #a7f3d0; }
.alert--info { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3); color: var(--sky-300); }

.toast-host {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem; right: auto;
  z-index: 1200;
  display: grid; gap: 0.6rem;
  max-width: min(380px, calc(100vw - 3rem));
}
.toast {
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-2);
  font-size: 0.9rem;
  display: flex; gap: 0.7rem; align-items: center;
  animation: toastIn 0.35s var(--ease);
}
.toast--ok { border-inline-start: 3px solid var(--emerald-400); }
.toast--err { border-inline-start: 3px solid var(--rose-400); }
.toast--info { border-inline-start: 3px solid var(--sky-400); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- زر واتساب العائم ---------- */
.wa-fab {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  left: auto;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: var(--r-full);
  background: #25d366;
  color: #06281a;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.wa-fab svg { width: 30px; height: 30px; display: block; flex: none; fill: currentColor; }
.wa-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 750;
  opacity: 0;
  transition: max-width 0.28s var(--ease), opacity 0.2s var(--ease), margin 0.28s var(--ease);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.52), 0 4px 12px rgba(0, 0, 0, 0.34); }
.wa-fab:hover .wa-fab__label { max-width: 16ch; opacity: 1; }
.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: waPulse 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (max-width: 640px) {
  .wa-fab { bottom: 1rem; right: 1rem; left: auto; padding: 0.78rem; }
  .wa-fab svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab::after, .bot-fab__pulse { animation: none; }
  .wa-fab .wa-fab__label { transition: none; }
  .bubble.typing span { animation: none; }
}

/* ---------- المساعد الذكي ---------- */
.bot-fab {
  position: fixed;
  bottom: 5.8rem;
  right: 1.4rem;
  left: auto;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--sky-400), var(--sky-500));
  color: #04111f;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.bot-fab svg { width: 30px; height: 30px; display: block; }
.bot-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(56, 189, 248, 0.5), 0 4px 12px rgba(0, 0, 0, 0.34); }
.bot-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  border: 2px solid rgba(125, 211, 252, 0.6);
  animation: waPulse 2.4s var(--ease) infinite;
  pointer-events: none;
}

.wa-chat {
  position: fixed;
  bottom: 6.6rem;
  right: 1.4rem;
  left: auto;
  z-index: 1110;
  width: min(370px, calc(100vw - 2.4rem));
  max-height: min(540px, calc(100vh - 8.4rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-2);
}
.wa-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(56, 189, 248, 0.08));
  border-bottom: 1px solid var(--line);
}
.wa-chat__title { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 750; }
.wa-chat__title svg { width: 22px; height: 22px; color: var(--sky-300); }
.wa-chat__close {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-sm);
}
.wa-chat__close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.wa-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overscroll-behavior: contain;
}
.msg { display: flex; }
.msg--bot { justify-content: flex-start; }
.msg--user { justify-content: flex-end; }
.msg .bubble {
  max-width: 86%;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.msg--bot .bubble { background: rgba(31, 51, 80, 0.75); border: 1px solid var(--line-soft); color: var(--ink); border-start-start-radius: 0.2rem; }
.msg--user .bubble { background: var(--sky-500); border: 1px solid rgba(14, 165, 233, 0.5); color: #04111f; font-weight: 600; border-end-end-radius: 0.2rem; }
.bubble.typing { display: inline-flex; gap: 0.35rem; align-items: center; padding: 0.8rem 1rem; }
.bubble.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sky-300);
  animation: typingDot 1.2s var(--ease) infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.wa-chat__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 0.6rem;
}
.wa-chat__opts button {
  border: 1px solid var(--line);
  background: rgba(125, 211, 252, 0.08);
  color: var(--sky-300);
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.wa-chat__opts button:hover { background: rgba(125, 211, 252, 0.18); color: var(--sky-300); }
.wa-chat__wa {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: 0.1rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-full);
  background: #25d366;
  color: #06281a;
  font-size: 0.85rem;
  font-weight: 750;
  transition: transform 0.18s var(--ease);
}
.wa-chat__wa svg { width: 18px; height: 18px; fill: currentColor; }
.wa-chat__wa:hover { transform: translateY(-2px); }
.wa-chat__in {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
}
.wa-chat__in input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(7, 13, 26, 0.6);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
}
.wa-chat__in input:focus { border-color: var(--sky-400); }
.wa-chat__in input::placeholder { color: var(--ink-mute); }
.wa-chat__in button {
  border: none;
  background: var(--sky-500);
  color: #04111f;
  font-weight: 750;
  border-radius: var(--r-md);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: filter 0.18s var(--ease);
}
.wa-chat__in button:hover { filter: brightness(1.12); }
.wa-chat__in button:disabled { opacity: 0.55; cursor: wait; }

@media (max-width: 640px) {
  .bot-fab { bottom: 4.9rem; right: 1rem; width: 52px; height: 52px; }
  .bot-fab svg { width: 27px; height: 27px; }
  .wa-chat { bottom: 5.6rem; right: 1rem; width: calc(100vw - 2rem); max-height: calc(100vh - 7rem); }
}

/* ---------- skeleton ---------- */
.skel {
  border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(23, 38, 63, 0.6) 30%, rgba(31, 51, 80, 0.9) 50%, rgba(23, 38, 63, 0.6) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
  min-height: 1rem;
}
@keyframes shimmer { to { background-position-x: -220%; } }
.skel-card { height: 320px; border-radius: var(--r-lg); }
.skel-line { height: 13px; margin-bottom: 0.6rem; }

/* ---------- empty state ---------- */
.empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--ink-soft);
}
.empty__icon { font-size: 2.6rem; margin-bottom: 0.6rem; opacity: 0.5; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
/* hidden لا يكفي: display:flex أعلاه يتجاوزه */
.pager[hidden] { display: none; }
.pager button {
  min-width: 42px; height: 42px;
  padding: 0 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
}
.pager button:hover:not(:disabled) { border-color: rgba(56, 189, 248, 0.4); color: var(--ink); }
.pager button.is-active { background: var(--grad-sky); color: #04121f; border-color: transparent; }
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- misc ---------- */
/* نص للقراء الآلية فقط — يبقى مرئياً للمتصفحات القديمة التي لا تدعم clip */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 2.5rem 0; }

/* صف يوزع طرفية على طرفيه (رجوع + مشاركة في صفحة الخبر) */
.flex-between {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

/* حاوية تبويبات صفحة الدورة */
.tabs { display: flex; flex-direction: column; gap: 1.2rem; }
.tabs .prose { min-width: 0; }
.hide { display: none !important; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(4, 18, 31, 0.35); border-top-color: #04121f; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- inline icon sizing (icons injected by JS) ---------- */
.card__foot svg,
.meta-row svg,
.info-row svg,
.info-row dd svg,
.stat svg,
.step svg,
.card__title svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.75; }
.info-row dd svg { opacity: 1; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.empty__icon svg { width: 42px; height: 42px; }
.badge svg, .tag svg, .chip svg { width: 13px; height: 13px; flex-shrink: 0; }

.float-badge {
  position: absolute;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-2);
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.84rem;
  z-index: 3;
}
.float-badge b { display: block; font-size: 1.1rem; line-height: 1.2; }
.float-badge small { color: var(--ink-mute); font-size: 0.74rem; }
.float-badge__ico {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-sky); color: #04121f; flex-shrink: 0;
}
.float-badge--a { top: 16%; inset-inline-end: 2%; animation: bob 5s ease-in-out infinite; }
.float-badge--b { bottom: 14%; inset-inline-start: 3%; animation: bob 6.5s ease-in-out infinite 0.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@media (max-width: 640px) { .float-badge { display: none; } }

.hero__media { position: relative; }
@media (max-width: 980px) { .hero__media { display: none; } }

.info-rows { display: grid; gap: 0.2rem; }
.info-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.92rem;
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--ink-mute); flex-shrink: 0; }
.info-row dd { font-weight: 650; text-align: end; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 750;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--new { background: rgba(56, 189, 248, 0.14); color: var(--sky-300); }
.status-pill--reviewing { background: rgba(251, 191, 36, 0.14); color: var(--amber-400); }
.status-pill--approved { background: rgba(52, 211, 153, 0.14); color: var(--emerald-400); }
.status-pill--paid { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
.status-pill--rejected { background: rgba(251, 113, 133, 0.14); color: var(--rose-400); }

.print-only { display: none; }
@media print {
  .nav, .footer, .btn, .lightbox, .toast-host, .wa-fab, .bot-fab, .wa-chat { display: none !important; }
  body { background: #fff; color: #000; }
  .print-only { display: block; }
}