/* =====================================================================
   مستقبلي — MOSTAQBALI
   «تعلم اليوم، اصنع مستقبلك غدًا»
   نظام تصميم احترافي (Design System) — CSS3
   الهوية مستمدّة من الشعار: كحلي (#152a4f / #081532) + ذهبي (#daae53 / #9b732c)
   ===================================================================== */

:root {
  /* الألوان الأساسية — كحلي وذهبي من الشعار */
  --primary: #152a4f;
  --primary-dark: #081532;
  --primary-light: #e9edf5;
  --accent: #d9ab4f;
  --accent-dark: #9b732c;
  --gold: #daae53;
  --gold-dark: #9b732c;
  --success: #10b981;

  /* إلغاء أزرق Bootstrap الافتراضي من كامل الموقع → كحلي الهوية */
  --bs-primary: #152a4f;
  --bs-primary-rgb: 21, 42, 79;
  --bs-link-color: #152a4f;
  --bs-link-color-rgb: 21, 42, 79;
  --bs-link-hover-color: #081532;

  /* الحياد */
  --ink: #081532;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #071228;

  /* تدرّجات — كحلي يرتفع نحو الذهبي (كحركة السهم الصاعد في الشعار) */
  --grad-primary: linear-gradient(135deg, #081532 0%, #1c3a63 45%, #daae53 100%);
  --grad-soft: linear-gradient(135deg, #e9edf5 0%, #faf3e4 100%);

  /* الظلال */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(21, 42, 79, .18);

  /* أخرى */
  --radius: 16px;
  --radius-sm: 10px;
}
/* لا أزرق في أي مكان: زبدة text-primary/link تصير كحلي الهوية */
.text-primary { color: var(--primary) !important; }
.link-primary { color: var(--primary) !important; }
:root {
  --radius-lg: 28px;
  --container: 1296px;
  --t: .35s cubic-bezier(.4, 0, .2, 1);
}

/* ============ أساسيات ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Tajawal", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cairo", "Tajawal", sans-serif;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

a { text-decoration: none; transition: color var(--t); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--container); }

section { position: relative; }

.section-pad { padding: 96px 0; }

@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

/* العناوين */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }

.text-grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ الأزرار ============ */
.btn { font-weight: 700; border-radius: 100px; padding: .8rem 1.7rem; transition: all var(--t); border: 0; }
.btn:focus { box-shadow: 0 0 0 .25rem rgba(21, 42, 79, .25); }

.btn-brand {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 42, 79, .35);
}
.btn-brand:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(21, 42, 79, .45); }

.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--primary-dark); border-color: var(--primary); transform: translateY(-3px); }

.btn-light-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-light-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }

/* ============ شريط التنقّل ============ */
.navbar {
  padding: 18px 0;
  transition: all var(--t);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
/* الشعار: flex-shrink:0 إلزامي — بدونه يسحقه الفلكس لعرض صفر فيختفي كلياً
   عندما تطول قائمة التنقّل (حدث فعلياً عند بلوغ القائمة 9 روابط). */
.navbar-brand {
  font-family: "Cairo"; font-weight: 900; font-size: 1.5rem; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; flex-grow: 0;
}
.brand-lockup {
  height: 58px; width: auto; vertical-align: middle;
  flex-shrink: 0; max-width: none;
}
@media (max-width: 991.98px) { .brand-lockup { height: 52px; } }
@media (max-width: 575px)    { .brand-lockup { height: 44px; } }

/* ===== أنيميشن اللوجو (الهيدر) — دخول ناعم + لمعة بيضاء تعبر كلمة «مستقبلي» فقط ===== */
@keyframes brandEnter { from { opacity: 0; transform: translateY(-9px) scale(.94); } to { opacity: 1; transform: none; } }
.navbar .brand-lockup {
  animation: brandEnter .8s cubic-bezier(.2,.7,.2,1) both;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.navbar .navbar-brand:hover .brand-lockup { transform: scale(1.04); }

/* لمعة بيضاء بطيئة تعبر حروف «مستقبلي» فقط (من م يمينًا إلى ي يسارًا) — عبر قناع الحروف */
.brand-shine { position: relative; display: inline-flex; }
.brand-shine > .brand-lockup { display: block; }
.brand-shine::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg,
    transparent 42%, rgba(255,255,255,.35) 48%, rgba(255,255,255,.98) 50%, rgba(255,255,255,.35) 52%, transparent 58%);
  background-repeat: no-repeat; background-size: 250% 100%; background-position: 180% 0;
  -webkit-mask-image: url('/assets/img/logo-wordmask.png'); mask-image: url('/assets/img/logo-wordmask.png');
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: brandShine 6s ease-in-out 1.4s infinite;
}
@keyframes brandShine {
  0%   { background-position: 180% 0; opacity: 0; }   /* قبل «م» (يمين الكلمة) */
  6%   { opacity: 1; }
  40%  { background-position: -80% 0; opacity: 1; }    /* وصلت «ي» (يسار الكلمة) — عبور بطيء */
  46%  { opacity: 0; }
  100% { background-position: -80% 0; opacity: 0; }    /* سكون قبل التكرار */
}
@media (prefers-reduced-motion: reduce) {
  .navbar .brand-lockup { animation: none; }
  .brand-shine::after { animation: none; opacity: 0; }
  .navbar .navbar-brand:hover .brand-lockup { transform: none; }
}
/* الفوتر والصفحات الداخلية: مساحة أوسع فيبقى الشعار أكبر */
.footer .navbar-brand img { flex-shrink: 0; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-primary); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: 0 8px 18px rgba(21, 42, 79, .35);
}
/* القائمة تحمل 10 روابط + أزرار + شعار عريض.
   نقطة الطيّ xxl (1400): دونها يظهر زرّ القائمة (لا تكدّس على اللابتوبات).
   على الشاشات العريضة (container 1296) نضغط الروابط والأزرار لتتّسع بأمان. */
.navbar .nav-link {
  font-weight: 700; color: var(--body); margin: 0; position: relative;
  white-space: nowrap; padding-inline: 6px; font-size: .9rem;
}
/* على وضع الصفّ الواحد فقط (xxl+): ضغط + منع التراكب.
   me-auto عبر إلغاء هوامش mx-auto التلقائية التي تسبّب طفح القائمة فوق الأزرار. */
@media (min-width: 1400px) {
  .navbar-nav.site-nav {
    column-gap: 0;
    margin-inline-start: 0 !important;   /* يُلغي mx-auto: القائمة تلتصق بالشعار */
    margin-inline-end: auto !important;  /* الأزرار تُدفع لطرف الشريط */
    flex-shrink: 1; min-width: 0;
  }
  .navbar .nav-link { padding-inline: 7px; font-size: .84rem; }
  .navbar .btn { padding-inline: .7rem; font-size: .85rem; }
  .navbar .btn-sm { padding-inline: .55rem; }
  .navbar-brand .brand-lockup { height: 50px; }   /* شعار أصغر قليلاً ليتّسع الصفّ */
  .navbar .collapse.navbar-collapse { gap: 10px; }
}
/* دون xxl: القائمة تنسدل (offcanvas/collapse) فتُعاد لتوزيعها الطبيعي */
@media (max-width: 1399.98px) {
  .navbar-nav.site-nav .nav-link { padding-block: 6px; }
}
.navbar .nav-link:hover { color: var(--primary); }
.navbar .nav-link::after {
  content: ""; position: absolute; bottom: 2px; inset-inline-start: 12px; inset-inline-end: 12px;
  height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: center; transition: transform var(--t);
}
.navbar .nav-link:hover::after { transform: scaleX(1); }

/* ============ الهيرو ============ */
.hero {
  position: relative;
  padding: 170px 0 110px;
  background: var(--grad-soft);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -160px; inset-inline-start: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 42, 79, .16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; bottom: -180px; inset-inline-end: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 174, 83, .20), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.25; margin-bottom: 22px; }
.hero p.lead { font-size: 1.2rem; color: var(--body); max-width: 560px; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 100px; font-weight: 700;
  color: var(--ink); box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }

/* بطاقة معاينة لوحة التحكم */
.hero-mock {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 14px; border: 1px solid var(--line); position: relative;
}
.hero-mock .bar { display: flex; gap: 6px; padding: 8px 6px 14px; }
.hero-mock .bar span { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.hero-mock .bar span:nth-child(1) { background: #f87171; }
.hero-mock .bar span:nth-child(2) { background: #fbbf24; }
.hero-mock .bar span:nth-child(3) { background: #34d399; }
.hero-mock .screen { background: var(--bg-soft); border-radius: 16px; padding: 18px; }
.mini-stat { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.mini-stat .num { font-family: "Cairo"; font-weight: 900; font-size: 1.5rem; color: var(--ink); }
.mini-stat .lbl { font-size: .82rem; color: var(--muted); }
.mini-bar { height: 8px; border-radius: 100px; background: #e2e8f0; overflow: hidden; }
.mini-bar > i { display: block; height: 100%; border-radius: 100px; background: var(--grad-primary); }

.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink);
  animation: float 4s ease-in-out infinite;
}
.float-card i.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.float-card.f1 { top: 30px; inset-inline-start: -28px; }
.float-card.f2 { bottom: 36px; inset-inline-end: -26px; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============ شريط الثقة ============ */
/* ===== شريط الثقة — بطاقات مصغّرة بشارات ذهبية ===== */
.trust {
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f6fb 100%);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px 30px;
}
.trust-lead {
  position: relative; font-weight: 800; color: var(--primary);
  font-size: 1.02rem; padding-inline-start: 16px; flex: 0 0 auto;
}
.trust-lead::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%;
  transform: translateY(-50%); width: 5px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, #f4d27a, var(--gold));
}
.trust-items {
  display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px;
  flex: 1 1 auto; justify-content: flex-end;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.trust-item:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: rgba(218, 174, 83, .55);
}
.trust-ico {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem;
  color: var(--primary);
  background: linear-gradient(135deg, #fff3d6, #f3dca0);
  box-shadow: inset 0 0 0 1px rgba(218, 174, 83, .45);
}
.trust-item:hover .trust-ico {
  background: linear-gradient(135deg, #f4d27a, var(--gold));
  color: var(--primary-dark);
}
.trust-label { font-weight: 700; color: var(--ink); font-size: .95rem; white-space: nowrap; }

@media (max-width: 991.98px) {
  .trust-inner { justify-content: center; flex-direction: column; }
  .trust-items { justify-content: center; }
  .trust-lead { text-align: center; }
}
@media (max-width: 575.98px) {
  .trust-items { flex-direction: column; width: 100%; }
  .trust-item { width: 100%; }
}

/* ============ الإحصائيات ============ */
.stats { background: var(--bg-dark); color: #fff; }
.stat-num { font-family: "Cairo"; font-weight: 900; font-size: clamp(2rem, 5vw, 3rem); background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lbl { color: #94a3b8; font-weight: 700; }

/* ============ بطاقات الميزات ============ */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; height: 100%; transition: all var(--t); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity var(--t);
  background: var(--grad-soft); z-index: 0;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-ico {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 18px; box-shadow: var(--shadow);
}
.feature-card h5 { font-size: 1.18rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* خلفيات أيقونات متنوّعة — عائلة ألوان الشعار (كحلي/ذهبي/فولاذي/برونزي) */
.bg-i1 { background: linear-gradient(135deg, #183055, #24457a); }
.bg-i2 { background: linear-gradient(135deg, #e2ba6a, #daae53); }
.bg-i3 { background: linear-gradient(135deg, #2b5088, #5a76a8); }
.bg-i4 { background: linear-gradient(135deg, #b58f3f, #7d5b21); }
.bg-i5 { background: linear-gradient(135deg, #3d4f6e, #6a7fa3); }
.bg-i6 { background: linear-gradient(135deg, #1a3358, #daae53); }
.bg-i7 { background: linear-gradient(135deg, #e4bd70, #8d6726); }
.bg-i8 { background: linear-gradient(135deg, #152a4f, #2e548f); }

/* ============ كيف تعمل ============ */
.steps-wrap { position: relative; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; height: 100%; transition: all var(--t); }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Cairo"; font-weight: 900; font-size: 1.3rem; color: #fff; background: var(--grad-primary);
  margin-bottom: 18px; box-shadow: 0 10px 22px rgba(21, 42, 79, .32);
}

/* ============ التسعير ============ */
.pricing { background: var(--bg-soft); }
.price-card {
  background: #fff; border-radius: var(--radius-lg); padding: 44px 40px;
  box-shadow: var(--shadow-lg); border: 2px solid var(--primary); position: relative; overflow: hidden;
}
.price-card .ribbon {
  position: absolute; top: 26px; inset-inline-end: -52px; transform: rotate(45deg);
  background: var(--gold); color: #fff; font-weight: 800; padding: 6px 60px; font-size: .85rem;
  box-shadow: var(--shadow);
}
.price-amount { font-family: "Cairo"; font-weight: 900; font-size: 4rem; color: var(--ink); line-height: 1; }
.price-cur { font-size: 1.3rem; color: var(--muted); font-weight: 700; }
.price-per { color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 28px 0; }
.price-list li { padding: 9px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list li i { color: var(--success); font-size: 1.15rem; }
.trial-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #ecfdf5; color: var(--success);
  font-weight: 800; padding: 8px 18px; border-radius: 100px; margin-bottom: 16px;
}

.pay-note { background: var(--primary-light); border-radius: var(--radius); padding: 26px; border: 1px solid #ccd6e6; }
.pay-note .num { font-family: "Cairo"; font-weight: 900; font-size: 1.4rem; color: var(--primary-dark); direction: ltr; }

/* ============ آراء العملاء ============ */
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: 100%; transition: all var(--t); }
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.testi-stars { color: var(--gold); margin-bottom: 12px; }
.testi-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: "Cairo"; }

/* ============ FAQ ============ */
.faq .accordion-item { border: 1px solid var(--line); border-radius: var(--radius-sm) !important; margin-bottom: 14px; overflow: hidden; }
.faq .accordion-button { font-weight: 800; color: var(--ink); padding: 20px 24px; background: #fff; }
.faq .accordion-button:not(.collapsed) { color: var(--primary); background: var(--primary-light); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-button::after { margin-inline-start: auto; margin-inline-end: 0; }
.faq .accordion-body { color: var(--muted); padding: 4px 24px 22px; }

/* ============ CTA ============ */
.cta-band { background: var(--grad-primary); color: #fff; border-radius: var(--radius-lg); padding: 64px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -80px; inset-inline-end: -40px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band::after { content: ""; position: absolute; bottom: -120px; inset-inline-start: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }

/* ============ الفوتر ============ */
.footer { background: var(--bg-dark); color: #cbd5e1; padding: 72px 0 28px; }
.footer h6 { color: #fff; font-weight: 800; margin-bottom: 18px; }
.footer a { color: #94a3b8; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .navbar-brand { color: #fff; }
.footer-social { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: all var(--t); }
.footer-social:hover { background: var(--primary); transform: translateY(-3px); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding-top: 24px; color: #64748b; }
.news-input { border-radius: 100px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; padding: .8rem 1.3rem; }
.news-input::placeholder { color: #64748b; }
.news-input:focus { background: rgba(255,255,255,.1); border-color: var(--primary); color: #fff; box-shadow: none; outline: none; }

/* زر العودة للأعلى */
#toTop {
  position: fixed; inset-inline-end: 24px; bottom: 24px; width: 50px; height: 50px;
  border-radius: 50%; background: var(--grad-primary); color: #fff; border: 0; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--t); z-index: 999;
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { transform: translateY(-4px); }

/* عند تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* منع التمرير الأفقي على الجوال: تصغير حشوة صفوف g-5 كي لا تتجاوز عرض الحاوية */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* لمسات تجاوب */
@media (max-width: 991px) {
  .hero { padding: 140px 0 80px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .float-card { display: none; }
  .cta-band { padding: 44px 26px; text-align: center; }
}

/* ===== القائمة المنسدلة (الجوال/اللوحي) — تظهر تحت 1400 لأن الشريط navbar-expand-xxl ===== */
@media (max-width: 1399.98px) {
  .navbar .navbar-collapse {
    background: #fff; border-radius: var(--radius);
    padding: 14px 18px; margin-top: 14px; box-shadow: var(--shadow);
    border: 1px solid var(--line);
    /* حدّ الارتفاع بارتفاع الشاشة + تمرير عمودي — بدونه تُقصّ آخر الروابط
       والأزرار تحت حافة الشاشة على الهواتف القصيرة (الشريط fixed-top) */
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* شريط تمرير رفيع أنيق داخل المينو */
  .navbar .navbar-collapse::-webkit-scrollbar { width: 6px; }
  .navbar .navbar-collapse::-webkit-scrollbar-thumb {
    background: var(--line); border-radius: 100px;
  }
  /* روابط كحلية واضحة على الأبيض — تتجاوز نصّ الهيرو الفاتح */
  .navbar .navbar-collapse .nav-link,
  body.has-dark-hero .navbar:not(.scrolled) .navbar-collapse .nav-link {
    color: var(--primary) !important;
    padding-block: 10px; border-bottom: 1px solid var(--line);
  }
  .navbar .navbar-collapse .nav-item:last-child .nav-link { border-bottom: 0; }
  .navbar .navbar-collapse .nav-link:hover { color: var(--gold-dark) !important; }
  /* الرابط النشط: ذهبي غامق + شريط جانبي ذهبي (بدل الأزرق) */
  .navbar .navbar-collapse .nav-link.text-primary,
  body.has-dark-hero .navbar:not(.scrolled) .navbar-collapse .nav-link.text-primary {
    color: var(--gold-dark) !important;
    border-inline-start: 3px solid var(--gold);
    padding-inline-start: 12px; border-radius: 4px;
  }
  .navbar .navbar-collapse .nav-link::after { display: none; }

  /* ===== صفّ الأزرار داخل لوحة الموبايل البيضاء ===== */
  /* كان يُعرض في صفّ أفقي مزدحم، وأزرار .btn-ghost بنصّ أبيض (قاعدة الهيرو الغامق)
     = مختفية على الأبيض. نجعله عموديًا ممتدًّا ونعيد ألوانًا واضحة. */
  .navbar .navbar-collapse > .d-flex {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .navbar .navbar-collapse > .d-flex .btn {
    width: 100%;
    justify-content: center;
    padding-block: 11px;
  }
  /* إبطال نصّ الهيرو الأبيض داخل اللوحة البيضاء — أزرار شبحية كحلية مقروءة */
  .navbar .navbar-collapse .btn-ghost,
  body.has-dark-hero .navbar:not(.scrolled) .navbar-collapse .btn-ghost {
    background: #fff !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
  }
  .navbar .navbar-collapse .btn-ghost:hover,
  body.has-dark-hero .navbar:not(.scrolled) .navbar-collapse .btn-ghost:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
  }
}

/* الشعار النصّي للعلامة في الفوتر (brand.tagline) */
.footer .brand-tagline {
  color: var(--gold);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin: 2px 0 10px;
  letter-spacing: .2px;
}

/* =====================================================================
   الهيرو الفاخر — هوية مستقبلي (كحلي عميق + ذهبي + حركة نموّ)
   ===================================================================== */
.hero-v2 {
  position: relative; overflow: hidden;
  padding: 160px 0 130px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(218,174,83,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(36,69,122,.35), transparent 55%),
    linear-gradient(160deg, #0a1730 0%, #0e1f3f 45%, #10243f 100%);
  color: #eaf0f8;
}
[dir="ltr"] .hero-v2 { background:
    radial-gradient(1200px 600px at 15% -10%, rgba(218,174,83,.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(36,69,122,.35), transparent 55%),
    linear-gradient(200deg, #0a1730 0%, #0e1f3f 45%, #10243f 100%); }
.hero-v2 .container { position: relative; z-index: 3; }

/* أشكال ضوئية عائمة */
.hv-orb { position: absolute; border-radius: 50%; filter: blur(8px); z-index: 1; pointer-events: none; }
.hv-orb-1 { width: 340px; height: 340px; top: -80px; inset-inline-end: -60px;
  background: radial-gradient(circle, rgba(218,174,83,.30), transparent 68%); animation: hvFloat 9s ease-in-out infinite; }
.hv-orb-2 { width: 300px; height: 300px; bottom: -60px; inset-inline-start: -40px;
  background: radial-gradient(circle, rgba(90,118,168,.35), transparent 70%); animation: hvFloat 11s ease-in-out infinite reverse; }
@keyframes hvFloat { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-26px) } }
/* شبكة نقطية خفيفة */
.hv-grid { position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 40%, transparent); }

/* النصّ */
.hv-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fff; padding: 8px 18px; border-radius: 100px; font-weight: 700; font-size: .9rem;
  backdrop-filter: blur(6px); margin-bottom: 22px;
}
.hv-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(218,174,83,.25); }
.hv-title { font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.22; color: #fff; margin-bottom: 20px; font-weight: 900; letter-spacing: -.5px; }
.hero-v2 .text-grad { background: linear-gradient(100deg, #ffd98a, #daae53 55%, #c08a2e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hv-lead { font-size: 1.18rem; color: #c6d2e4; max-width: 560px; line-height: 1.9; }
.hv-feats { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hv-feats span { color: #d5deec; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 7px; }
.hv-feats i { color: var(--gold); }

/* زرّ زجاجي */
.btn-glass { background: rgba(255,255,255,.10); color: #fff; border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-3px); }

/* اللوحة الزجاجية */
.hv-panel {
  position: relative;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px; padding: 26px; backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(4,12,28,.5);
}
.hv-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hv-brandmark { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #c08a2e); color: #10243f; font-size: 1.5rem; box-shadow: 0 10px 24px rgba(218,174,83,.4); }
.hv-panel-title { font-weight: 800; color: #fff; font-size: 1.1rem; }
.hv-panel-sub { color: #a9b7cd; font-size: .82rem; font-weight: 600; }

.hv-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.hv-metric { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 14px; }
.hv-metric-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(90,118,168,.35); color: #cfe0ff; font-size: 1.15rem; flex-shrink: 0; }
.hv-metric-ico.gold { background: rgba(218,174,83,.22); color: var(--gold); }
.hv-metric b { display: block; color: #fff; font-size: 1.35rem; font-weight: 900; line-height: 1; font-family: "Cairo"; }
.hv-metric span { color: #a9b7cd; font-size: .78rem; font-weight: 600; }

/* شريط النموّ (يحاكي السهم الصاعد) */
.hv-growth { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 16px; }
.hv-growth-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hv-growth-head span { color: #c6d2e4; font-size: .84rem; font-weight: 700; }
.hv-growth-head b { color: var(--gold); font-family: "Cairo"; }
.hv-bars { display: flex; align-items: flex-end; gap: 8px; height: 78px; }
.hv-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, rgba(90,118,168,.5), rgba(160,185,225,.7));
  transform-origin: bottom; animation: hvGrow 1.1s cubic-bezier(.2,.8,.2,1) backwards; }
.hv-bars span:nth-child(1){animation-delay:.05s} .hv-bars span:nth-child(2){animation-delay:.12s}
.hv-bars span:nth-child(3){animation-delay:.19s} .hv-bars span:nth-child(4){animation-delay:.26s}
.hv-bars span:nth-child(5){animation-delay:.33s} .hv-bars span:nth-child(6){animation-delay:.4s}
.hv-bars span.peak { background: linear-gradient(to top, #c08a2e, #ffd98a); box-shadow: 0 0 18px rgba(218,174,83,.5); }
@keyframes hvGrow { from { height: 0; opacity: .3 } }

/* رقاقات عائمة */
.hv-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary-dark); font-weight: 700; font-size: .82rem;
  padding: 9px 15px; border-radius: 100px; box-shadow: 0 14px 30px rgba(4,12,28,.35); }
.hv-chip i { color: var(--gold); }
.hv-chip-1 { top: -16px; inset-inline-start: -14px; animation: hvFloat 6s ease-in-out infinite; }
.hv-chip-2 { bottom: -16px; inset-inline-end: -10px; animation: hvFloat 7.5s ease-in-out infinite reverse; }

/* موجة سفلية تفصل الهيرو عن الأبيض */
.hv-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.hv-wave svg { width: 100%; height: 70px; display: block; }

@media (max-width: 991.98px) {
  .hero-v2 { padding: 130px 0 90px; }
  .hv-panel { margin-top: 8px; }
  .hv-chip-1 { inset-inline-start: 4px; } .hv-chip-2 { inset-inline-end: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-orb, .hv-chip, .hv-bars span { animation: none !important; }
}

/* الهيرو الغامق: القائمة الشفّافة (قبل السكرول) بنصّ فاتح لتباين مقروء.
   عند السكرول تعود .navbar.scrolled بخلفية بيضاء ونصّ غامق (القاعدة الأصلية تسبق). */
body.has-dark-hero .navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,.88); }
body.has-dark-hero .navbar:not(.scrolled) .nav-link:hover { color: #fff; }
/* الرابط النشط على الهيرو الغامق: ذهبي + تسطير دائم (بدل الأزرق/الأبيض) */
body.has-dark-hero .navbar:not(.scrolled) .nav-link.text-primary { color: var(--gold) !important; }
body.has-dark-hero .navbar:not(.scrolled) .nav-link::after { background: var(--gold); }
.navbar:not(.scrolled) .nav-link.text-primary::after,
.navbar.scrolled .nav-link.text-primary::after { transform: scaleX(1); }
body.has-dark-hero .navbar:not(.scrolled) .btn-ghost {
  background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.30);
}
body.has-dark-hero .navbar:not(.scrolled) .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
body.has-dark-hero .navbar:not(.scrolled) .navbar-toggler { color: #fff; }

/* =====================================================================
   سلايدر الهيرو الاحترافي (fade — متوافق RTL/LTR بالكامل)
   ===================================================================== */
.hero-slider {
  position: relative; overflow: hidden;
  padding: 150px 0 130px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(218,174,83,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(36,69,122,.35), transparent 55%),
    linear-gradient(160deg, #0a1730 0%, #0e1f3f 45%, #10243f 100%);
  color: #eaf0f8;
}
[dir="ltr"] .hero-slider { background:
    radial-gradient(1200px 600px at 15% -10%, rgba(218,174,83,.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(36,69,122,.35), transparent 55%),
    linear-gradient(200deg, #0a1730 0%, #0e1f3f 45%, #10243f 100%); }
.hero-slider .container { position: relative; z-index: 3; }

.hs-stage { position: relative; }
/* الشرائح مكدّسة — تلاشٍ ناعم لا انزلاق أفقي (يتفادى تعقيد RTL) */
.hs-track { position: relative; }
.hs-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateY(14px); pointer-events: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.hs-slide:first-child { position: relative; }   /* الأولى تحدّد الارتفاع */
.hs-slide.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; position: relative; }

/* عناصر تظهر بتدرّج داخل الشريحة النشطة */
.hs-slide.active .hv-pill { animation: hsUp .6s .05s backwards; }
.hs-slide.active .hv-title { animation: hsUp .6s .12s backwards; }
.hs-slide.active .hv-lead  { animation: hsUp .6s .19s backwards; }
.hs-slide.active .hs-copy .d-flex { animation: hsUp .6s .26s backwards; }
.hs-slide.active .hv-panel { animation: hsUp .7s .18s backwards; }
@keyframes hsUp { from { opacity: 0; transform: translateY(18px); } }

/* لوحة الشريحة — نقاط بدل الرسم البياني */
.hs-kpi { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 16px; }
.hs-kpi b { font-family: "Cairo"; font-weight: 900; font-size: 2.4rem; line-height: 1;
  background: linear-gradient(100deg, #ffd98a, #daae53); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hs-kpi span { color: #c6d2e4; font-weight: 700; font-size: .95rem; }
.hs-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hs-points li { display: flex; align-items: center; gap: 12px; color: #dbe5f2; font-weight: 600; font-size: .95rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 11px 14px; }
.hs-points li i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(218,174,83,.20); color: var(--gold); font-size: 1rem; flex-shrink: 0; }

/* الأسهم */
.hs-arrow {
  position: absolute; top: 42%; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 1.2rem;
  backdrop-filter: blur(6px); cursor: pointer; transition: all var(--t);
}
.hs-arrow:hover { background: var(--gold); color: #10243f; border-color: transparent; transform: scale(1.08); }
.hs-prev { inset-inline-start: -6px; }
.hs-next { inset-inline-end: -6px; }

/* النقاط */
.hs-dots { display: flex; gap: 10px; justify-content: center; margin-top: 34px; }
.hs-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.25); transition: all var(--t); padding: 0; }
.hs-dot:hover { background: rgba(255,255,255,.5); }
.hs-dot.active { width: 30px; border-radius: 100px; background: linear-gradient(90deg, #ffd98a, #daae53); }

@media (max-width: 991.98px) {
  .hero-slider { padding: 120px 0 90px; }
  .hs-arrow { display: none; }
  .hs-visual { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide { transition: opacity .3s; }
  .hs-slide.active * { animation: none !important; }
}

/* =====================================================================
   السلايدر بوضع الصور (imgmode) — خلفيات بملء الشاشة + تدرّج للنصّ
   ===================================================================== */
.hero-slider.imgmode { padding: 0; background: #0a1730; }
.hero-slider.imgmode .hs-track { position: relative; min-height: 640px; }
.hero-slider.imgmode .hs-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  padding: 130px 0 110px;
}
/* الشريحة النشطة فقط تدخل التدفّق وتمنح الحاوية ارتفاعها؛ البقية طبقات فوقها.
   (لا نثبّت :first-child حتى لا تحجز مكانها بعد إخفائها فتدفع النشطة للأسفل) */
.hero-slider.imgmode .hs-slide.active { position: relative; }

/* طبقتان: صبغة هوية على كامل الصورة + تدرّج أغمق جهة النصّ لضمان القراءة */
.hs-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,18,38,.90) 0%, rgba(8,18,38,.72) 34%, rgba(8,18,38,.34) 66%, rgba(8,18,38,.12) 100%),
    linear-gradient(0deg, rgba(6,14,30,.55) 0%, rgba(6,14,30,.10) 45%),
    rgba(13,28,56,.34); }
[dir="ltr"] .hs-overlay {
  background:
    linear-gradient(270deg, rgba(8,18,38,.90) 0%, rgba(8,18,38,.72) 34%, rgba(8,18,38,.34) 66%, rgba(8,18,38,.12) 100%),
    linear-gradient(0deg, rgba(6,14,30,.55) 0%, rgba(6,14,30,.10) 45%),
    rgba(13,28,56,.34); }
.hero-slider.imgmode .container { position: relative; z-index: 2; }
.hero-slider.imgmode .hs-copy { max-width: 620px; }
/* على الصور: الكلمة المميّزة ذهبية ساطعة كاملة (بدل التدرّج الغامق غير المقروء) */
.hero-slider.imgmode .hv-title .text-grad {
  background-image: linear-gradient(90deg,#f4d27a,#daae53) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important; }
.hero-slider.imgmode .hv-title, .hero-slider.imgmode .hv-lead { text-shadow: 0 2px 18px rgba(4,10,22,.55); }

/* حركة دخول النصّ */
.hero-slider.imgmode .hs-slide.active .hv-pill  { animation: hsUp .6s .10s backwards; }
.hero-slider.imgmode .hs-slide.active .hv-title { animation: hsUp .7s .18s backwards; }
.hero-slider.imgmode .hs-slide.active .hv-lead  { animation: hsUp .7s .26s backwards; }
.hero-slider.imgmode .hs-slide.active .hs-copy .d-flex { animation: hsUp .7s .34s backwards; }

/* أدوات التنقّل داخل حدود الحاوية */
.hero-slider.imgmode .hs-arrow { top: 50%; transform: translateY(-50%); }
.hero-slider.imgmode .hs-prev { inset-inline-start: 20px; }
.hero-slider.imgmode .hs-next { inset-inline-end: 20px; }
.hero-slider.imgmode .hs-arrow:hover { transform: translateY(-50%) scale(1.08); }
.hero-slider.imgmode .hs-dots { position: absolute; bottom: 34px; inset-inline: 0; z-index: 4; margin: 0; }

@media (max-width: 991.98px) {
  .hero-slider.imgmode .hs-track { min-height: 560px; }
  .hero-slider.imgmode .hs-slide { padding: 110px 0 90px; }
  .hs-overlay {
    background:
      linear-gradient(0deg, rgba(6,14,30,.92) 0%, rgba(6,14,30,.55) 55%, rgba(6,14,30,.30) 100%),
      rgba(13,28,56,.30); }
  .hero-slider.imgmode .hs-copy { max-width: 100%; }
}

/* زر التشغيل الدائري داخل "شاهد قصتنا" */
.hs-play { display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:50%; margin-inline-end:8px;
  background:var(--gold,#daae53); color:#0a1730; font-size:1rem;
  box-shadow:0 4px 14px rgba(218,174,83,.5); transition:transform .25s; }
.js-play-story:hover .hs-play { transform:scale(1.12); }
.hs-play.lg { width:74px; height:74px; font-size:2.4rem; margin:0 0 18px; }

/* نافذة الفيديو التعريفي */
.story-modal { position:fixed; inset:0; z-index:2000; display:none; align-items:center; justify-content:center; padding:24px; }
.story-modal.open { display:flex; }
.story-back { position:absolute; inset:0; background:rgba(4,10,22,.82); backdrop-filter:blur(4px); animation:fadeIn .25s; }
.story-box { position:relative; z-index:2; width:min(960px,100%); animation:hsUp .4s; }
.story-frame { position:relative; width:100%; padding-top:56.25%; border-radius:16px; overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.12); background:#000; }
.story-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.story-x { position:absolute; top:-14px; inset-inline-end:-6px; z-index:3; width:44px; height:44px; border:0;
  border-radius:50%; background:#fff; color:#0a1730; font-size:1.05rem; cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.4); transition:transform .2s; }
.story-x:hover { transform:rotate(90deg); }
.story-soon { text-align:center; color:#fff; background:linear-gradient(135deg,#10233f,#0a1730);
  border:1px solid rgba(218,174,83,.35); border-radius:16px; padding:56px 28px; box-shadow:0 30px 80px rgba(0,0,0,.55); }
.story-soon .hs-play.lg { margin-inline:auto; }
.story-soon h3 { font-weight:800; margin-bottom:8px; }
.story-soon p { opacity:.75; margin:0; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
