/*
===========================================
إمتوسيرفيس - تحديث الهوية البصرية الجديدة
الألوان: #55c8e8 (أزرق فاتح) و #05141f (أزرق داكن)
===========================================
*/
@import url('../vendor/flag-icons/css/flag-icons.min.css');

:root {
  /* === الألوان الأساسية الجديدة === */
  --color-primary: #55c8e8;
  --color-secondary: #05141f;
  --color-accent: #55c8e8;

  /* === الألوان المساعدة === */
  --primary-light: #e8f8fd;
  --primary-medium: #a8e0f0;
  --primary-dark: #3da9cc;

  --secondary-light: #2c3e50;
  --secondary-medium: #1a2332;
  --secondary-dark: #05141f;

  /* === إعادة تعريف متغيرات Bootstrap === */
  --bs-primary: #55c8e8;
  --bs-secondary: #05141f;
  --bs-info: #55c8e8;
  --bs-dark: #05141f;

  /* === فونت الهوية الإنجليزي (تقني / AI) === */
  --font-brand-en: 'Orbitron', sans-serif;

  /* === M2 CTA gradient (هوية المنظومة) === */
  --m2-cta-from: #55C8E8;
  --m2-cta-to: #0891b2;
  --m2-cta-hover-from: #0891b2;
  --m2-cta-hover-to: #0369a1;
  --m2-cta-glow: rgba(85, 200, 232, 0.25);
}

/* === M2 Brand CTA — يغطي coodiv .btn-primary:hover (#473bf0) === */
.btn-m2-cta,
.btn-hub-cta,
.btn-box-cta,
.site-wrapper .btn.btn-primary {
  background: linear-gradient(135deg, var(--m2-cta-from), var(--m2-cta-to)) !important;
  border: none !important;
  color: #fff !important;
}

.btn-m2-cta:hover,
.btn-m2-cta:focus,
.btn-hub-cta:hover,
.btn-hub-cta:focus,
.btn-box-cta:hover,
.btn-box-cta:focus,
.site-wrapper .btn.btn-primary:hover,
.site-wrapper .btn.btn-primary:focus {
  background: linear-gradient(135deg, var(--m2-cta-hover-from), var(--m2-cta-hover-to)) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--m2-cta-glow);
}

/* منتجات بنص داكن على الـ CTA */
.btn-key-cta,
.btn-edu-cta,
.btn-eco-cta,
.btn-tag-cta,
.btn-neo-cta,
.btn-hit-cta {
  background: linear-gradient(135deg, var(--m2-cta-from), var(--m2-cta-to)) !important;
  border: none !important;
  color: #05141F !important;
  font-weight: 700 !important;
}

.btn-key-cta:hover,
.btn-key-cta:focus,
.btn-edu-cta:hover,
.btn-edu-cta:focus,
.btn-eco-cta:hover,
.btn-eco-cta:focus,
.btn-tag-cta:hover,
.btn-tag-cta:focus,
.btn-neo-cta:hover,
.btn-neo-cta:focus,
.btn-hit-cta:hover,
.btn-hit-cta:focus {
  background: linear-gradient(135deg, var(--m2-cta-hover-from), var(--m2-cta-hover-to)) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--m2-cta-glow);
}

/* === M2 Locale panel (language + currency) === */
.m2-locale-panel {
  max-width: 100%;
  background: transparent;
  border: 0 !important;
  padding: 0 !important;
  text-align: right;
}
.m2-locale-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.m2-locale-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.m2-locale-head-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #05141f;
  margin: 0 0 6px;
}
.m2-locale-head-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.m2-locale-search-wrap {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 200px;
}
.m2-locale-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}
.m2-locale-search-input {
  padding: 10px 40px 10px 14px !important;
  border-radius: 999px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  text-align: right;
  direction: rtl;
}
.m2-locale-search-input:focus {
  border-color: #55c8e8 !important;
  box-shadow: 0 0 0 3px rgba(85, 200, 232, 0.15) !important;
}
.m2-locale-section { margin-bottom: 28px; }
.m2-locale-section:last-child { margin-bottom: 0; }
.m2-locale-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0891b2;
  margin: 0 0 14px;
}
.m2-locale-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}
.m2-locale-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  padding: 0;
}
.m2-locale-flag { width: 1.35em; height: 1em; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
#dropdownMenuLink .m2-locale-flag { margin-left: 6px; display: inline-block; vertical-align: middle; }
#dropdownMenuLink .m2-locale-label { font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.btn-header-lang { display: inline-flex !important; align-items: center; gap: 4px; }

/* chips + country cards — override legacy lang-box styles */
.m2-locale-panel .lang-box-item:before { display: none !important; }
.m2-locale-panel .lang-box-item,
.m2-locale-panel .m2-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 0 !important;
  padding-right: 14px !important;
  border-radius: 14px;
  border: 1px solid #e8eef3;
  background: #fff;
  color: #05141f;
  text-decoration: none !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
  direction: rtl;
}
.m2-locale-chip { font-weight: 700; font-size: 14px; justify-content: flex-start; }
.m2-locale-panel .lang-box-item:hover,
.m2-locale-panel .m2-country-item:hover {
  border-color: #55c8e8;
  background: #f8fdff;
  box-shadow: 0 4px 14px rgba(85, 200, 232, 0.12);
}
.m2-locale-panel .lang-box-item.active,
.m2-locale-panel .m2-country-item.active {
  border-color: #55c8e8;
  background: linear-gradient(135deg, rgba(85,200,232,.14), rgba(8,145,178,.06));
  box-shadow: inset 0 0 0 1px rgba(85, 200, 232, 0.35);
}
.m2-country-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  min-width: 0;
  flex: 1;
}
.m2-country-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #05141f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.m2-country-currency {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  margin-left: 0 !important;
}
.m2-country-intl { grid-column: 1 / -1; max-width: 200px; }
#m2-country-ul li.disabled,
#lang-box-ul li.disabled { display: none !important; }

/* === M2 unified price display (matches BOX pricing) === */
.pricing[data-price] .current-amount,
.pricing[data-price] .m2-price-amount.current-amount,
.box-plan-price .pricing .current-amount {
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.1;
}
.pricing[data-price] .m2-price-currency-wrap,
.box-plan-price .pricing > .coodiv-text-12 {
  flex-shrink: 0;
  line-height: 1.25;
}
.box-price-original .m2-price-amount,
.box-price-original .original-amount {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

@media (max-width: 575px) {
  .m2-locale-inner { padding: 20px 16px 36px; }
  .m2-locale-head { flex-direction: column; align-items: stretch; }
  .m2-locale-search-wrap { max-width: none; }
  .m2-locale-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m2-country-intl { max-width: none; }
}
#lang-search-input { border-color: #e2e8f0; }

  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--secondary-medium);
  border-color: var(--secondary-medium);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 20, 31, 0.3);
}

.btn-outline-secondary {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* === الخلفيات === */
.bg-secondary {
  background-color: var(--color-secondary) !important;
}

.bg-light-secondary {
  background-color: var(--primary-light) !important;
}

/* === النصوص === */
.text-secondary {
  color: var(--color-secondary) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

/* === عناصر التنقل === */
.navbar-nav .nav-link:hover {
  color: var(--color-primary) !important;
  transition: all 0.3s ease;
}

.navbar-toggler {
  border-color: var(--color-primary);
}

/* === الحدود والفواصل === */
.border-secondary {
  border-color: var(--color-secondary) !important;
}

.border-primary {
  border-color: var(--color-primary) !important;
}

/* === الكروت والعناصر التفاعلية === */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(85, 200, 232, 0.15);
  transition: all 0.3s ease;
}

/* === الروابط === */
a {
  color: var(--color-primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* === عناصر النموذج === */
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(85, 200, 232, 0.25);
}

.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(85, 200, 232, 0.25);
}

/* === الشارات والعلامات === */
.badge-primary {
  background-color: var(--color-primary);
}

.badge-secondary {
  background-color: var(--color-secondary);
}

/* === تحسينات إضافية للهوية === */
/* الشعار */
.navbar-brand,
.footer-brand {
  transition: all 0.3s ease;
}

.navbar-brand:hover,
.footer-brand:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* الأقسام */
.section-header {
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* الفوتر */
.footer {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--secondary-medium) 100%);
}

/* === تحسينات الأداء والتجربة === */
/* تحميل سلس للعناصر */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* تأثيرات الحركة */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === تحسينات خاصة بالعربية (RTL) === */
[dir="rtl"] .btn {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

[dir="rtl"] .navbar-nav .nav-link {
  padding-right: 1rem;
  padding-left: 1rem;
}

/* === الوضع الداكن (اختياري) === */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    background-color: var(--color-secondary);
    color: #ffffff;
  }
}

/* === استجابة الشاشات === */
@media (max-width: 768px) {
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .card {
    margin-bottom: 20px;
  }
}

/* === تحسينات الأداء === */
/* تحسين تحميل الخطوط */
.font-display-swap {
  font-display: swap;
}

/* تحسين الصور */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

.review-box blockquote {
  color: #ffffff !important;
  /* لون أبيض للنص */
  border-left: 3px solid #55c8e8;
  /* خط أصفر على الشمال */
  padding-left: 15px;
  margin-bottom: 15px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.1);
  /* خلفية شفافة خفيفة */
  padding: 10px 15px;
  border-radius: 8px;
}

.review-box cite {
  color: #55c8e8 !important;
  /* لون أصفر للاسم */
  font-weight: bold;
}

/* إرجاع التصميم الأصلي لـ services-box */
.services-info-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: inherit;
  transition: all 0.3s ease;
  cursor: default;
  text-align: center;
  min-height: 120px;
  flex: 1;
  max-width: 200px;
  position: relative;
}

.service-info-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.service-info-item i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.service-info-item i.feather {
  color: #667eea;
}

.service-info-item:nth-child(2) i.feather {
  color: #f093fb;
}

.service-info-item:nth-child(3) i.feather {
  color: #4facfe;
}

.service-info-item:nth-child(4) i.feather {
  color: #43e97b;
}

.service-info-item:nth-child(5) i.feather {
  color: #fa709a;
}

.service-info-item:nth-child(6) i.feather {
  color: #fee140;
}

.service-info-item h5 {
  margin-bottom: 5px !important;
  margin-top: 10px !important;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.service-info-item p {
  margin-bottom: 0 !important;
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SVG Background */
.banner-widget-sidebar-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-info-item:hover .banner-widget-sidebar-svg {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .service-info-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: none;
    margin: 10px;
  }
}

@media (max-width: 768px) {
  .service-info-item {
    flex: 1 1 calc(50% - 20px);
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .service-info-item {
    flex: 1 1 100%;
    max-width: 200px;
    margin: 10px auto;
  }

  .services-info-display {
    flex-direction: column;
    align-items: center;
  }
}

/* إضافة تأثيرات hover لطيفة */
.service-info-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 0;
}

.service-info-item:hover::before {
  width: 120px;
  height: 120px;
}

/* تحسين النصوص */
.service-info-item h5,
.service-info-item p {
  position: relative;
  z-index: 3;
}

/* حل سريع فقط */
.preloader-container span {
  white-space: nowrap !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 120px;
  text-align: center;
  direction: rtl;
}




/* === إصلاح مشكلة المساحة البيضاء أسفل الفوتر (Final Fix) === */
html,
body {
  height: auto !important;
  min-height: 100vh !important;
  background-color: #0e1019 !important;
  /* لون داكن يطابق الفوتر */
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

.site-wrapper {
  background-color: #fcfdfe;
  /* استعادة لون الخلفية الأصلي للموقع */
  position: relative;
  z-index: 1;
  min-height: 100vh;
  /* ضمان تغطية الموقع للشاشة */
}

footer {
  margin-bottom: 0 !important;
}

/* === Hero → Trust strip: seamless dark transition (no black SVG band) === */
.hero-area-coodiv.landing-hero-bg-3 {
  background:
    radial-gradient(ellipse 60% 50% at 82% 18%, rgba(85, 200, 232, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 55% 50% at 12% 80%, rgba(124, 58, 237, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 60% 55%, rgba(8, 145, 178, 0.1) 0%, transparent 62%),
    linear-gradient(165deg, #0a0626 0%, #0b0a2e 38%, #071226 78%, #05101f 100%) !important;
}

.hero-area-coodiv.landing-hero-bg-3 .m2-hero-bg-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-area-coodiv.landing-hero-bg-3 .hero-binary-background-header {
  opacity: 0.18;
}

/* === إصلاحات نهائية للألوان (Urgent Fixes) === */

/* 1. إصلاح الخط الأخضر في الناف بار */
/* إلغاء الخط تماماً حسب طلب المستخدم */
.main-menu .nav-item .nav-link::before,
.main-menu .nav-item .nav-link.active::before,
.main-menu .nav-item .nav-link:hover::before {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* 2. الفوتر القديم (صفحات لم تُحدَّث بعد) */
footer:not(.m2-footer),
.footer-gradient-default:not(.m2-footer) {
  background: #0e1019 !important;
  background-image: none !important;
}

html,
body {
  background-color: #0e1019 !important;
}

/* 3. إصلاحات متفرقة للأخضر المتبقي */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #05141f !important;
  border-color: #54c8e7 !important;
}

.badge-success,
.bg-success,
.btn-success {
  background-color: #54c8e7 !important;
  border-color: #54c8e7 !important;
}

/* أيقونات الواتساب والشات */
.wa-chat-box,
.wa-chat-box-header {
  background-color: #05141f !important;
}

.wa-chat-box-send-btn {
  background-color: #54c8e7 !important;
}

/* === M2 IST — Header logo (full wordmark, no crop) === */
.brand-logo.m2-ist-logo > a {
  position: relative;
  display: inline-block;
  height: 52px;
  line-height: 0;
  flex-shrink: 0;
  overflow: visible;
  vertical-align: middle;
}
/* spacer matches IST wordmark viewBox aspect (M2-01 / M2-02 identical) */
.brand-logo.m2-ist-logo > a::before {
  content: '';
  display: block;
  height: 52px;
  width: calc(52px * 1277.73 / 437.76001);
}
.brand-logo.m2-ist-logo > a > img {
  position: absolute;
  top: 0;
  left: 0;
  height: 52px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  transform: none;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* === M2 Service wordmarks — unified header slot (reference: M2 BOX ≈ 165×52) === */
.brand-logo.m2-ist-logo[class*="-brand-logo"] > a {
  height: 52px;
  width: calc(52px * 1064.31 / 334.8);
  overflow: visible;
}
.brand-logo.m2-ist-logo[class*="-brand-logo"] > a::before {
  height: 52px;
  width: calc(52px * 1064.31 / 334.8);
}
.brand-logo.m2-ist-logo[class*="-brand-logo"] > a > img[class*="-logo-wordmark"] {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto !important;
  height: 52px !important;
  width: calc(52px * 1064.31 / 334.8) !important;
  max-width: none !important;
  object-fit: contain;
  object-position: center right;
  transform: translateY(-50%);
}

/* M2 brand logos — contain inside frame (no optical crop / zoom) */
.m2-logo-trim {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
  vertical-align: middle;
  overflow: visible;
}
.m2-logo-trim--wordmark {
  height: 48px;
}
.m2-logo-trim--wordmark > img,
img.m2-logo-trim--wordmark {
  display: block;
  height: 100%;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  transform: none;
}
.m2-logo-trim--icon {
  --m2-icon-frame: 64px;
  --m2-icon-pad: 12px;
  --m2-icon-scale: 1;
  width: var(--m2-icon-frame);
  height: var(--m2-icon-frame);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: var(--m2-icon-pad);
  box-sizing: border-box;
  overflow: visible;
}
.m2-logo-trim--icon-lg {
  --m2-icon-frame: 80px;
  --m2-icon-pad: 14px;
  width: var(--m2-icon-frame);
  height: var(--m2-icon-frame);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: var(--m2-icon-pad);
  box-sizing: border-box;
  overflow: visible;
}
.m2-logo-trim--icon > img,
.m2-logo-trim--icon-lg > img {
  display: block;
  width: calc((100% - 0px) * var(--m2-icon-scale));
  height: calc((100% - 0px) * var(--m2-icon-scale));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  transform: none;
  image-rendering: auto;
}
/* Optional fine-tune inside padded frame (keep ≤ 1 to avoid crop) */
.m2-logo-trim--icon-run { --m2-icon-scale: 1.08; }
.m2-logo-trim--wordmark-lg {
  height: 52px;
}
.m2-logo-trim--wordmark-lg > img {
  display: block;
  height: 100%;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  transform: none;
}

.m2-hero-title .m2-hero-brand-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  direction: ltr;
  font-family: var(--font-brand-en);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.m2-hero-title .m2-ai-sparkle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(85, 200, 232, 0.55));
}

.m2-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.m2-ecosystem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(85, 200, 232, 0.15);
  background: rgba(5, 20, 31, 0.35);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.m2-ecosystem-item:hover {
  border-color: var(--color-primary);
  background: rgba(85, 200, 232, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(85, 200, 232, 0.15);
  text-decoration: none;
  color: inherit;
}

.m2-ecosystem-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
  filter: none;
  opacity: 1;
}

.m2-ecosystem-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.m2-ecosystem-slogan {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.m2-powered-badge {
  display: inline-block;
  font-family: var(--font-brand-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.85;
  margin-top: 6px;
}

/* === M2 RUN — زر منطقة العملاء === */
@keyframes m2-client-btn-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(85, 200, 232, 0.28);
  }
  50% {
    box-shadow: 0 4px 22px rgba(85, 200, 232, 0.5), 0 0 0 3px rgba(85, 200, 232, 0.18);
  }
}

@keyframes m2-client-btn-ring {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70%, 100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.header-btn a.m2-client-btn.client-login-header-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(85, 200, 232, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, #55c8e8 0%, #3da9cc 100%);
  color: #05141f !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 16px rgba(85, 200, 232, 0.28);
  animation: m2-client-btn-glow 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.header-btn a.m2-client-btn.client-login-header-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 15px;
  border: 2px solid rgba(85, 200, 232, 0.55);
  animation: m2-client-btn-ring 2.4s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

.header-btn a.m2-client-btn.client-login-header-btn:hover,
.header-btn a.m2-client-btn.client-login-header-btn:focus {
  background: linear-gradient(135deg, #6dd4ef 0%, #55c8e8 100%);
  color: #05141f !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(85, 200, 232, 0.38);
  text-decoration: none;
  animation: none;
}

.header-btn a.m2-client-btn.client-login-header-btn:hover::before,
.header-btn a.m2-client-btn.client-login-header-btn:focus::before {
  animation: none;
  opacity: 0;
}

.header-btn a.m2-client-btn.client-login-header-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(85, 200, 232, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .header-btn a.m2-client-btn.client-login-header-btn,
  .header-btn a.m2-client-btn.client-login-header-btn::before {
    animation: none;
  }
}

.header-btn a.m2-client-btn.client-login-header-btn i {
  font-size: 12px;
  opacity: 0.9;
}

.header-btn a.m2-client-btn.client-login-header-btn span {
  white-space: nowrap;
}

@media (max-width: 991px) {
  .m2-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .m2-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .m2-ecosystem-item {
    padding: 14px 8px 12px;
  }

  .m2-ecosystem-item img {
    width: 56px;
    height: 56px;
  }

  .m2-hero-title .m2-ai-sparkle {
    width: 22px;
    height: 22px;
  }
}

/* === M2 IST — أزرار CTA الموحدة === */
a.m2-btn,
button.m2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(85, 200, 232, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, #55c8e8 0%, #3da9cc 100%);
  color: #05141f !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 16px rgba(85, 200, 232, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

a.m2-btn:hover,
a.m2-btn:focus,
button.m2-btn:hover,
button.m2-btn:focus {
  background: linear-gradient(135deg, #6dd4ef 0%, #55c8e8 100%);
  color: #05141f !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(85, 200, 232, 0.38);
  text-decoration: none;
}

a.m2-btn:active,
button.m2-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(85, 200, 232, 0.25);
}

a.m2-btn.m2-btn-pulse {
  animation: m2-client-btn-glow 2.4s ease-in-out infinite;
}

a.m2-btn.m2-btn-pulse:hover,
a.m2-btn.m2-btn-pulse:focus {
  animation: none;
}

/* === باقة NEO — الأكثر طلباً === */
.m2-plan-featured {
  background: rgba(85, 200, 232, 0.07);
  box-shadow: inset 0 0 0 1px rgba(85, 200, 232, 0.35);
  z-index: 2;
}

.m2-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #55c8e8 0%, #3da9cc 100%);
  color: #05141f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(85, 200, 232, 0.35);
}

.m2-plan-badge i {
  font-size: 12px;
}

.dark-purple-plan-bg .m2-plan-featured {
  padding-top: 3rem !important;
}

/* === CTA قبل الفوتر === */
.m2-cta-block {
  border-top: 1px solid rgba(85, 200, 232, 0.2);
  padding-top: 3.5rem;
  margin-top: 3rem;
  background: radial-gradient(ellipse at center top, rgba(85, 200, 232, 0.08) 0%, transparent 70%);
}

.m2-cta-block .m2-btn {
  min-height: 48px;
  padding: 0 32px;
  font-size: 14px;
}

/* === إخفاء تواريخ التقييمات القديمة === */
.trusted-section .review-box .date {
  display: none;
}

/* ══════════════════════════════════════════════
   M2 REVIEWS SECTION — قابل لإعادة الاستخدام
   ══════════════════════════════════════════════ */
.m2-reviews-section {
  position: relative;
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  overflow: hidden;
}
.m2-reviews-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #55C8E8, transparent);
}
.m2-reviews-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 48px;
}
.m2-reviews-header .m2-reviews-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0891b2;
  margin-bottom: 12px;
}
.m2-reviews-header h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 700;
  color: #05141F;
  line-height: 1.35;
  margin-bottom: 16px;
}
@media (min-width: 992px) {
  .m2-reviews-header h2 {
    white-space: nowrap;
  }
}
.m2-reviews-header h2 span { color: #55C8E8; }
.m2-reviews-score {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 0 2px 12px rgba(5,20,31,.06);
}
.m2-reviews-score .stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.m2-reviews-score .score-text { font-size: 13px; font-weight: 600; color: #334155; }
.m2-reviews-score .score-text strong { color: #05141F; }

.m2-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .m2-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .m2-reviews-grid { grid-template-columns: 1fr; }
  .m2-reviews-section { padding: 48px 0 56px; }
}

.m2-review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, border-color .25s, transform .25s;
  position: relative;
}
.m2-review-card:hover {
  border-color: rgba(85,200,232,.35);
  box-shadow: 0 8px 32px rgba(85,200,232,.12);
  transform: translateY(-3px);
}
.m2-review-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 48px;
  line-height: 1;
  color: rgba(85,200,232,.15);
  font-family: Georgia, serif;
  pointer-events: none;
}
.m2-review-card .review-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.m2-review-card .review-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: #374151;
  flex: 1;
  margin-bottom: 20px;
  padding-top: 4px;
}
.m2-review-card .review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
}
.m2-review-card .review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.m2-review-card .review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #55C8E8, #0891b2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m2-review-card .review-name {
  font-size: 13px;
  font-weight: 700;
  color: #05141F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m2-review-card .review-product {
  font-size: 10px;
  font-weight: 600;
  color: #0891b2;
  margin-top: 1px;
}
.m2-review-card .review-source {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.m2-review-card .review-source i { margin-left: 4px; color: #1877f2; }
.m2-review-card .review-source.src-wa i { color: #25d366; }

/* === شريط Lord Icon تحت الهيرو === */
.m2-trust-strip {
  position: relative;
  z-index: 4;
  margin-top: 0;
  background-color: #05141f;
  background-image:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(85, 200, 232, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #150540 0%, #0d2240 48%, #062848 100%);
  overflow: hidden;
}

.m2-trust-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 200, 232, 0.25), transparent);
  pointer-events: none;
}

.m2-trust-strip > .container {
  position: relative;
  z-index: 1;
}

.m2-trust-strip-grid {
  gap: 12px;
}

.m2-trust-strip-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 6px;
}

.m2-trust-strip-item {
  background: rgba(5, 20, 31, 0.5);
  border: 1px solid rgba(85, 200, 232, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  cursor: default;
}

.m2-trust-strip-item:hover {
  transform: translateY(-4px);
  background: rgba(85, 200, 232, 0.12);
  border-color: rgba(85, 200, 232, 0.38);
  box-shadow: 0 8px 24px rgba(85, 200, 232, 0.12);
}

.m2-trust-strip-item h3 {
  color: #fff;
  font-weight: 600;
}

.m2-trust-strip-item p {
  color: rgba(255, 255, 255, 0.55);
}

/* === M2 HUB — تابات المميزات === */
.m2-hub-tabs {
  gap: 8px;
}

.m2-hub-tabs .nav-link {
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(85, 200, 232, 0.15);
  transition: all 0.2s ease;
}

.m2-hub-tabs .nav-link:hover {
  color: #fff;
  border-color: rgba(85, 200, 232, 0.35);
}

.m2-hub-tabs .nav-link.active {
  color: #05141f;
  background: linear-gradient(135deg, #55c8e8 0%, #3da9cc 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(85, 200, 232, 0.3);
}

.m2-hub-tab-content {
  background: rgba(5, 20, 31, 0.35);
  border: 1px solid rgba(85, 200, 232, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
}

.m2-hub-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.m2-hub-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: right;
}

.m2-hub-feature-item > i {
  font-size: 22px;
  margin-top: 2px;
  flex-shrink: 0;
}

.m2-hub-feature-item h4 {
  color: #fff;
}

.m2-hub-feature-item p {
  color: rgba(255, 255, 255, 0.6);
}

/* === صف الإحصائيات === */
.m2-stats-row {
  border-top: 1px solid rgba(85, 200, 232, 0.15);
  padding-top: 2.5rem;
}

.m2-stat-card {
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(85, 200, 232, 0.05);
  border: 1px solid rgba(85, 200, 232, 0.12);
  height: 100%;
}

.m2-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  direction: ltr;
}

.m2-stat-suffix {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-right: 4px;
}

.m2-stat-label {
  color: rgba(255, 255, 255, 0.65);
}

/* === Hero CTA === */
.m2-hero-cta {
  gap: 12px;
}

.m2-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(85, 200, 232, 0.45);
  color: #fff;
  background: rgba(5, 20, 31, 0.35);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.m2-hero-cta-secondary:hover {
  color: #fff;
  border-color: #55c8e8;
  background: rgba(85, 200, 232, 0.12);
  text-decoration: none;
}

/* === Value section — 4 pillars (no brand repeat) === */
.m2-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.m2-pillar-item {
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid rgba(85, 200, 232, 0.15);
  background: rgba(5, 20, 31, 0.4);
  text-align: right;
}

.m2-pillar-icon {
  display: block;
  font-size: 1.5rem;
  color: #55c8e8;
  margin-bottom: 14px;
}

.m2-pillar-item h3 {
  color: #fff;
  font-weight: 700;
}

.m2-pillar-item p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

/* === CTA ecosystem icons animation === */
.m2-icons-pack-head {
  opacity: 0.95;
  gap: 0;
}

.m2-icons-pack-head img {
  border-radius: 50%;
  background: rgba(5, 20, 31, 0.65);
  border: 2px solid rgba(85, 200, 232, 0.35);
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.m2-icons-pack-head img:nth-child(1),
.m2-icons-pack-head img:nth-child(5) {
  width: 40px !important;
  height: 40px !important;
  margin-inline: -10px;
  z-index: 1;
}

.m2-icons-pack-head img:nth-child(2),
.m2-icons-pack-head img:nth-child(4) {
  width: 48px !important;
  height: 48px !important;
  margin-inline: -12px;
  z-index: 2;
}

.m2-icons-pack-head img:nth-child(3) {
  width: 56px !important;
  height: 56px !important;
  z-index: 3;
}

.m2-icons-pack-head:hover img {
  transform: translateY(-3px);
}

/* === M2 Footer — متناسق مع المنظومة والـ FAQ === */
.m2-footer {
  background-color: #05141f;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(85, 200, 232, 0.07) 0%, transparent 58%),
    linear-gradient(180deg, #02152a 0%, #05141f 38%, #030d18 100%);
  margin-top: 0;
}

.m2-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 200, 232, 0.28), transparent);
  pointer-events: none;
}

.m2-footer .footer-section {
  background: transparent !important;
  background-image: none !important;
}

.m2-footer .brand-logo .light-version-logo {
  display: none !important;
}

.m2-footer .brand-logo .dark-version-logo {
  display: block !important;
}

.m2-footer .brand-logo > a > img.m2-footer-logo-img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

.m2-footer-about {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.9;
  max-width: 100%;
}

.m2-footer-about + .m2-footer-about {
  margin-top: 12px;
}

.m2-footer-about strong {
  color: #55c8e8;
  font-weight: 600;
}

.m2-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.m2-footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(85, 200, 232, 0.28);
  background: rgba(5, 20, 31, 0.55);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.m2-footer-chip:hover {
  color: #fff;
  border-color: rgba(85, 200, 232, 0.55);
  background: rgba(85, 200, 232, 0.12);
  text-decoration: none;
}

.m2-footer-chip i {
  color: #55c8e8;
  font-size: 13px;
}

.m2-footer-social {
  margin-top: 4px;
  gap: 8px;
  flex-wrap: wrap;
}

.m2-footer .footer-social-accounts.m2-footer-social li .btn {
  width: 38px;
  height: 38px;
  line-height: 38px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(85, 200, 232, 0.28);
  background: rgba(5, 20, 31, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.m2-footer .footer-social-accounts.m2-footer-social li .btn:hover {
  background: rgba(85, 200, 232, 0.16);
  border-color: rgba(85, 200, 232, 0.55);
  color: #55c8e8;
  transform: translateY(-2px);
}

.m2-footer-title.block-title::after {
  background: #55c8e8;
}

.m2-footer-subhead {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(85, 200, 232, 0.85);
  margin: 14px 0 4px;
}

.m2-footer .m2-footer-link-strong {
  font-weight: 700;
  color: #fff !important;
}

.m2-footer .m2-footer-soon {
  opacity: 0.6;
  cursor: default;
}

/* Ecosystem footer column — المنظومة على عمودين */
.m2-footer-eco-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid rgba(85, 200, 232, 0.28);
  background: rgba(85, 200, 232, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.m2-footer-eco-all:hover {
  color: #fff !important;
  border-color: rgba(85, 200, 232, 0.55);
  background: rgba(85, 200, 232, 0.14);
  text-decoration: none;
}
.m2-footer-eco-all i {
  color: #55c8e8;
}
.m2-footer-eco-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.m2-footer-eco-col .m2-footer-subhead:first-child {
  margin-top: 0;
}

@media (max-width: 575px) {
  .m2-footer-eco-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.m2-footer .footer-list-link {
  color: rgba(255, 255, 255, 0.72) !important;
  opacity: 1 !important;
}

.m2-footer .footer-list li:hover .footer-list-link {
  color: #55c8e8 !important;
  margin-right: 4px;
  margin-left: 0;
}

.m2-footer-grid > .d-flex {
  align-items: stretch;
}

.m2-footer-cta-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(85, 200, 232, 0.22);
  background: rgba(5, 20, 31, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  min-height: 100%;
}

.m2-footer-cta-body {
  flex: 1 1 auto;
  margin-bottom: 24px;
}

.m2-footer-cta-card h4 {
  color: #fff;
  font-weight: 700;
}

.m2-footer-cta-card p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

.m2-footer-cta-card p strong {
  color: #55c8e8;
  font-weight: 600;
}

.m2-footer-cta-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
  margin-bottom: 10px;
}

.m2-footer-cta-points li:last-child {
  margin-bottom: 0;
}

.m2-footer-cta-points li i {
  color: #55c8e8;
  font-size: 11px;
  margin-top: 5px;
  flex-shrink: 0;
}

a.m2-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 13px;
  margin-top: auto;
  flex-shrink: 0;
}

.m2-footer-bottom {
  border-top: 1px solid rgba(85, 200, 232, 0.12);
  margin-top: 8px;
}

/* ---------- Footer signature ---------- */
.m2-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.m2-signature__mark {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #55c8e8;
  filter: drop-shadow(0 0 6px rgba(85, 200, 232, 0.55));
  animation: m2-sig-pulse 3.4s ease-in-out infinite;
}
.m2-signature__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes m2-sig-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.12) rotate(45deg); opacity: 1; }
}
.m2-signature__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.m2-signature__logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.m2-signature__logo img {
  height: 18px;
  width: auto;
  display: block;
  border-radius: 4px;
}
.m2-signature__tag {
  color: #fff;
  font-size: 13px;
}
.m2-signature__tag strong {
  color: #fff;
  font-weight: 700;
}
.m2-signature__year {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.m2-signature__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(85, 200, 232, 0.5);
}

@media (max-width: 575px) {
  .m2-signature__dot { display: none; }
  .m2-signature { gap: 8px 10px; }
}

@media (max-width: 991px) {
  .m2-pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .m2-trust-strip-grid {
    flex-wrap: wrap;
    gap: 8px;
  }

  .m2-trust-strip-col {
    flex: 0 0 calc(50% - 4px);
    max-width: calc(50% - 4px);
    padding: 0 4px;
  }

  .m2-trust-strip-col:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .m2-stat-value {
    font-size: 1.5rem;
  }

  .m2-hub-tabs .nav-link {
    padding: 7px 14px;
    font-size: 12px;
  }

  .m2-pillar-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .m2-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .m2-hero-cta .m2-btn,
  .m2-hero-cta-secondary {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .m2-footer-cta-card {
    margin-top: 8px;
  }

  .m2-footer-grid > [class*="col-"] {
    margin-bottom: 4px;
  }
}

/* ============================================================
   M2 Mega Menu — منظومة الأنظمة الموحّدة
   ============================================================ */
.coodiv-megamenu-dropdown.m2-mega {
  padding: 0 !important;
  background: transparent !important;
}
.m2-mega .m2-mega__inner {
  background: #ffffff;
  border: 1px solid rgba(8, 145, 178, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(2, 20, 31, 0.16);
  padding: 26px 26px 18px;
  width: min(92vw, 940px);
  text-align: right;
}
.m2-mega .m2-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 22px;
}
.m2-mega__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m2-mega__group-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #55c8e8;
  padding: 0 6px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(8, 145, 178, 0.12);
}
.m2-mega__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
a.m2-mega__item:hover {
  background: rgba(85, 200, 232, 0.1);
  transform: translateX(-3px);
}
.m2-mega__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(8, 145, 178, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.m2-mega__icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.m2-mega__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.m2-mega__name {
  font-size: 13.5px;
  font-weight: 700;
  color: #05141f;
  display: flex;
  align-items: center;
  gap: 6px;
}
.m2-mega__desc {
  font-size: 11.5px;
  color: #6b7280;
}
.m2-mega__sub {
  display: block;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  padding: 4px 8px 4px 0;
  margin-right: 47px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.m2-mega__sub:hover {
  color: #0891b2;
  background: rgba(85, 200, 232, 0.08);
}
.m2-mega__item--soon {
  cursor: default;
  opacity: 0.72;
}
.m2-mega__soon {
  font-size: 9.5px;
  font-weight: 700;
  color: #0891b2;
  background: rgba(8, 145, 178, 0.12);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0;
}
.m2-mega__feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(110deg, #05141f, #0a2740);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.m2-mega__feature:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(2, 20, 31, 0.22);
}
.m2-mega__feature i {
  color: #55c8e8;
}

/* Top-level nav link sizing — أكبر شوية ومتناسق */
.main-menu .nav-item > .nav-link {
  font-size: 15.5px;
  font-weight: 600;
}

/* Top-level nav link active accent */
.main-menu .nav-item .nav-link.m2-nav-active {
  color: #0891b2;
}

/* Responsive — mobile collapses mega menu into stacked list */
@media (max-width: 991px) {
  .m2-mega .m2-mega__inner {
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 8px 4px;
  }
  .m2-mega .m2-mega__grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .m2-mega__group {
    margin-bottom: 10px;
  }
  .m2-mega__feature {
    margin-top: 8px;
  }
}

/* === Hero Mount Graphics — per-service low-poly silhouettes === */
.hero-area-coodiv .header-hero-backgrounds.m2-mount-hub .montains-01 {
  background-image: url(../image/header/mount/hub/mount-1.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-hub .montains-02 {
  background-image: url(../image/header/mount/hub/mount-2.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-box .montains-01 {
  background-image: url(../image/header/mount/box/mount-1.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-box .montains-02 {
  background-image: url(../image/header/mount/box/mount-2.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-tag .montains-01 {
  background-image: url(../image/header/mount/tag/mount-1.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-tag .montains-02 {
  background-image: url(../image/header/mount/tag/mount-2.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-eco .montains-01 {
  background-image: url(../image/header/mount/eco/mount-1.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-eco .montains-02 {
  background-image: url(../image/header/mount/eco/mount-2.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-neo .montains-01 {
  background-image: url(../image/header/mount/neo/mount-1.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-neo .montains-02 {
  background-image: url(../image/header/mount/neo/mount-2.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-hit .montains-01 {
  background-image: url(../image/header/mount/hit/mount-1.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-hit .montains-02 {
  background-image: url(../image/header/mount/hit/mount-2.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-key .montains-01 {
  background-image: url(../image/header/mount/key/mount-1.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-key .montains-02 {
  background-image: url(../image/header/mount/key/mount-2.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-edu .montains-01 {
  background-image: url(../image/header/mount/edu/mount-1.png);
}
.hero-area-coodiv .header-hero-backgrounds.m2-mount-edu .montains-02 {
  background-image: url(../image/header/mount/edu/mount-2.png);
}