/* =====================================================================
   مطبعة البُعد الرابع — الصفحة الرئيسية
   هذه نسخة تصميم أولية، الألوان والستايل قابلة للتعديل من لوحة التحكم
   ===================================================================== */

/* خط Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f7f8fb;
  --c-bg-dark: #0f1226;
  --c-ink: #0f1226;
  --c-ink-soft: #4a4f6a;
  --c-muted: #8a8fa3;
  --c-line: #e7e9f2;
  --c-primary: #1a1a2e;
  --c-accent: #e94560;
  --c-warm: #ffb380;
  --c-gold: #f5a623;
  --hero-bg-color: #0f1226;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,18,38,.06), 0 1px 3px rgba(15,18,38,.05);
  --shadow-md: 0 6px 18px rgba(15,18,38,.08);
  --shadow-lg: 0 18px 40px rgba(15,18,38,.12);
  --maxw: 1200px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --font: "Cairo", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--c-muted); }

/* ===================== أزرار ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-warm));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(233,69,96,.32); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { background: var(--c-bg-soft); }
.btn-soft {
  background: var(--c-bg-soft);
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-soft:hover { background: #eef0f7; }
.btn-soft:disabled { opacity: .55; cursor: not-allowed; }

/* ===================== الهيدر (كحلي داكن) ===================== */

/* ارتفاع الهيدر الثابت — يستخدم مرة واحدة لتعويض المحتوى في body */
:root {
  --site-header-height: 56px;
}

body {
  padding-top: var(--site-header-height);
}

.site-header {
  --header-orders-bg: rgba(255,255,255,.06);
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  padding: 0;
  overflow: visible;
  background: #ffffff;
  border-bottom: 0;
  box-shadow: 0 5px 16px rgba(4, 6, 18, .25);
  transition: transform .25s ease;
  box-sizing: border-box;
  /* الحالة الظاهرة صريحة */
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.site-header.is-header-hidden {
  /* نتجاوز الحافة ببكسلين لتفادي خط أبيض لحظي */
  transform: translate3d(0, calc(-100% - 2px), 0);
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

main {
  margin-top: 0 !important;
  padding-top: 0;
}

/* === تعطيل ثبات الهيدر من لوحة التحكم ===
   الـJS يضع class 'header-sticky-disabled' على <html> عندما
   header_sticky_enabled=false. نعيد الهيدر إلى flow
   ونلغي body padding-top. === */
html.header-sticky-disabled body {
  padding-top: 0;
}
html.header-sticky-disabled .site-header {
  position: relative;
  inset-block-start: auto;
  transform: none;
  will-change: auto;
}
html.header-sticky-disabled .site-header.is-header-hidden {
  /* في وضع عدم الثبات، الهيدر يبقى ظاهراً دائماً */
  transform: none;
}

/* === الوضع الكحلي للهيدر === */
.site-header-dark {
  background: linear-gradient(180deg, #0f1226 0%, #161a3a 100%);
  /* بدون border-bottom فاتح — نستخدم box-shadow فقط */
  color: #fff;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  gap: 18px;
  box-sizing: border-box;
}

/* الشعار — على خلفية كحلية */
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand-dark .brand-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(233,69,96,.35);
}
.brand-dark .brand-text { line-height: 1.15; }
.brand-dark .brand-name { font-size: 16px; font-weight: 800; color: #fff; }
.brand-dark .brand-sub { font-size: 11px; color: rgba(255,255,255,.65); }

.brand-mark {
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent) 60%, var(--c-warm));
  box-shadow: 0 6px 14px rgba(233,69,96,.25);
}
.brand-text { display: flex; flex-direction: column; }

/* مربع البحث — على خلفية كحلية (مخفي: البحث منقول إلى الـHero) */
.header-search {
  display: none;
  align-items: center;
  gap: 0;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  min-width: 0;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.header-search-dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
.header-search-dark:focus-within {
  border-color: rgba(255,179,128,.55);
  box-shadow: 0 0 0 4px rgba(255,179,128,.12);
  background: rgba(255,255,255,.12);
}
.header-search:focus-within {
  border-color: rgba(233,69,96,.45);
  box-shadow: 0 0 0 4px rgba(233,69,96,.10);
}
.hs-ico { color: var(--c-muted); font-size: 16px; padding-inline-end: 8px; }
.header-search-dark .hs-ico { color: rgba(255,255,255,.65); }
.hs-input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 6px;
  min-width: 0;
  color: var(--c-ink);
}
.header-search-dark .hs-input { color: #fff; }
.header-search-dark .hs-input::placeholder { color: rgba(255,255,255,.55); }
.hs-input::placeholder { color: var(--c-muted); }
.hs-btn {
  border: 0;
  background: linear-gradient(135deg, var(--c-accent), var(--c-warm));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.hs-btn:disabled { opacity: .85; cursor: not-allowed; }

/* أزرار الهيدر (طلباتي + واتساب + تيليجرام) */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}
.ha-orders, .ha-wa, .ha-tg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease, filter .15s ease, box-shadow .15s ease;
  min-height: 44px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.ha-orders-dark {
  background: var(--header-orders-bg);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.ha-orders-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,179,128,.45); color: var(--c-warm); }
.ha-orders:hover { border-color: rgba(233,69,96,.4); color: var(--c-accent); }

/* قاعدة مشتركة لزري الاتصال (واتساب + تيليجرام) — اختلاف اللون فقط */
.ha-wa, .ha-tg {
  color: #fff;
  border-color: transparent;
}
.ha-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 4px 12px rgba(37,211,102,.25);
}
.ha-wa:hover { filter: brightness(1.05); }
.ha-tg {
  background: linear-gradient(135deg, #37BBFE, #007DBB);
  box-shadow: 0 4px 12px rgba(55,187,254,.22);
}
.ha-tg:hover { filter: brightness(1.05); }

.ha-ico { width: 18px; height: 18px; display: inline-block; object-fit: contain; flex-shrink: 0; }
.btn-ico { width: 18px; height: 18px; display: inline-block; object-fit: contain; vertical-align: middle; margin-inline-end: 6px; }
.hs-ico-img { width: 18px; height: 18px; display: inline-block; object-fit: contain; opacity: .65; }
.ha-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1;
}
.ha-wa .ha-badge { display: none; }

/* زر القائمة (موبايل) — كحلي */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm, 10px);
  width: 40px; height: 40px;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.nav-toggle-dark span { background: #fff; }
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
}

/* روابط التنقل داخل الهيدر (شريط واحد) */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex-wrap: nowrap;
}
/* على الموبايل والتابلت (<1200px): off-canvas dropdown — افتراضياً مخفي تماماً */
@media (max-width: 1199px) {
  .header-nav {
    /* إخفاء كامل وصريح — لا translateY يخلق بقايا فوق الهيدر */
    display: none;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    position: fixed;
    top: var(--site-header-height);
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: #0f1226;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 16px;
    z-index: 49;
    max-height: calc(100vh - var(--site-header-height));
    overflow-y: auto;
    margin: 0;
    transform: none;
  }
  .header-nav.is-open {
    display: flex;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: none;
  }
  .header-nav .nav-link {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
  }
  .header-nav .nav-link:last-child { border-bottom: 0; }
  .nav-toggle, #navToggle { display: inline-flex !important; }
}
.nav-link {
  position: relative;
  color: var(--c-ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-link-dark {
  color: rgba(255,255,255,.78);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-warm));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav-link:hover { color: var(--c-ink); background: var(--c-bg-soft); }
.nav-link-dark:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link:hover::after { transform: scaleX(.6); }
.nav-link.is-active { color: var(--c-ink); }
.nav-link-dark.is-active { color: #fff; }
.nav-link.is-active::after { transform: scaleX(1); }

/* قائمة الموبايل — كحلي */
.mobile-nav { display: none; }
.mobile-nav-dark {
  background: #0f1226;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.mobile-nav-dark > a {
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-dark > a:last-of-type { border-bottom: 0; }
.mobile-nav-dark .mobile-search {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}
.mobile-nav-dark .mobile-search input { color: #fff; }
.mobile-nav-dark .mobile-search input::placeholder { color: rgba(255,255,255,.5); }
.mobile-search {
  display: flex; align-items: center; gap: 0;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
}
.mobile-search input {
  flex: 1; border: 0; background: transparent;
  outline: none; font-family: inherit; font-size: 14px; padding: 8px 6px;
}
.mobile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.mobile-actions .ha-badge { margin-inline-start: 6px; }
.btn-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: 0;
}

/* ===================== Hero (كحلي) ===================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(55px, 7vw, 75px) 0 clamp(70px, 8vw, 100px);
  color: #fff;
}
.hero-dark {
  background: #0f1226;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg-color {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 12% 10%, rgba(233,69,96,.18), transparent 60%),
    radial-gradient(800px 360px at 90% 20%, rgba(255,179,128,.18), transparent 60%),
    radial-gradient(700px 320px at 70% 85%, rgba(245,166,35,.14), transparent 60%),
    linear-gradient(180deg, var(--hero-bg-color) 0%, #181c3a 100%);
}
.hero-bg-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg-slideshow {
  position: absolute; inset: 0;
}
.hero-bg-slideshow > div {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-bg-slideshow > div.is-on { opacity: 1; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: rgba(15,18,38,.55);
  pointer-events: none;
}

.hero-inner { text-align: center; }

/* الشعار فوق العنوان — مرن لاستقبال صورة حقيقية (PNG/SVG) */
.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 8px 18px 8px 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  max-width: 100%;
}
.hero-logo-mark {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent) 60%, var(--c-warm));
  box-shadow: 0 6px 16px rgba(233,69,96,.35);
  flex-shrink: 0;
  overflow: hidden; /* لإظهار الصورة بشكل نظيف */
}
/* حاوية الصورة داخل المربع — تكون بحجم المربع ومركزية */
.hero-logo-img-wrap {
  position: relative;
}
.hero-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hero-logo-fallback {
  display: inline-block;
  line-height: 1;
}
.hero-logo-text { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.hero-logo-name { font-weight: 800; font-size: 16px; color: #fff; }
.hero-logo-sub { font-size: 11px; color: rgba(255,255,255,.65); letter-spacing: 1px; }

/* عندما تكون الحاوية في وضع "شعار كامل" (صورة كبيرة) — تخفي النصوص تلقائياً */
.hero-logo[data-logo-mode="full"] .hero-logo-text-togglable { display: none; }
.hero-logo[data-logo-mode="full"] { padding: 0; border: 0; background: transparent; backdrop-filter: none; }
.hero-logo[data-logo-mode="full"] .hero-logo-mark {
  width: auto; height: auto;
  max-height: 120px;            /* كمبيوتر */
  max-width: 90%;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.hero-logo[data-logo-mode="full"] .hero-logo-img {
  display: block;
  max-height: 120px;
  max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.5px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.hero-title-accent {
  color: var(--c-warm);
  font-weight: 900;
}
.hero-tagline {
  margin: 14px 0 6px;
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--c-warm), var(--c-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .5px;
}
.hero-loc {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
}
.hero-loc::before { content: "📍"; }
.hero-desc {
  max-width: 720px;
  margin: 0 auto 26px;
  color: rgba(255,255,255,.85);
  font-size: clamp(15px, 1.7vw, 18px);
}

/* البحث داخل الـHero — يظهر على جميع العروض */
.hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  margin: 0 auto 18px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
  transition: border-color .15s ease, background .15s ease;
}
.hero-search:focus-within {
  border-color: rgba(255,179,128,.55);
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 0 4px rgba(255,179,128,.12);
}
.hero-search .hs-ico-img {
  width: 18px; height: 18px;
  opacity: .7;
  flex-shrink: 0;
  padding-inline-end: 8px;
}
.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 6px;
  min-width: 0;
  color: #fff;
}
.hero-search input::placeholder { color: rgba(255,255,255,.55); }

/* .hero-search يظهر على جميع العروض (لوحة المفاتيح مدمجة الآن) */
/* تقييد العرض الأقصى على الشاشات الكبيرة */
@media (min-width: 768px) {
  .hero-search { max-width: 650px; }
}
@media (min-width: 1025px) {
  .hero-search { max-width: 650px; }
}

.hero-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}
.hero-cta .btn { width: 100%; }
@media (min-width: 721px) {
  .hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    max-width: none;
  }
  .hero-cta .btn { width: auto; }
}

/* على الكمبيوتر (>=1200px): nav inline (الشريط الواحد) — يأخذ grid col 2 = 1fr */
@media (min-width: 1200px) {
  .header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: static;
    background: transparent;
    border: 0;
    flex-direction: row;
    padding: 0;
    max-height: none;
    overflow: visible;
    transform: none;
    pointer-events: auto;
    min-width: 0;
  }
  .header-nav .nav-link {
    padding: 8px 12px;
    border-bottom: 0;
    border-radius: 8px;
  }
  .header-nav .nav-link:last-child { border-bottom: 0; }
  .nav-toggle, #navToggle { display: none; }
}

/* زر ghost أبيض على خلفية كحلية */
.hero-dark .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
}
.hero-dark .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }

/* ===================== Section ===================== */
.section { padding: clamp(50px, 7vw, 90px) 0; }
.section-soft { background: var(--c-bg-soft); }
.section-dark {
  background: linear-gradient(180deg, #0f1226 0%, #181c3a 100%);
  color: #fff;
}
.section-dark .muted { color: rgba(255,255,255,.7); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}
.section-head p { color: var(--c-ink-soft); margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

/* ===================== مجالاتنا ===================== */
/* === خلفية القسم والألوان (تأتي من data attributes على .domains-section) === */
.domains-section {
  /* افتراضي */
  --dom-section-bg: #f5f6fa;
  --dom-card-bg: #eef1f8;
  --dom-card-border: #c7cede;
  --dom-title-color: #0f1226;
  --dom-cta-bg: #f7f8fb;
  --dom-cta-color: #1a1a2e;
  background: var(--dom-section-bg);
}

/* البطاقة الواحدة — قابلة للتلوين الفردي عبر --dom-card-bg على .domain-card */
.domain-card {
  --card-bg: var(--dom-card-bg);
  --card-border: var(--dom-card-border);
  --card-title: var(--dom-title-color);
  --card-cta-bg: var(--dom-cta-bg);
  --card-cta-color: var(--dom-cta-color);
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #e94560;
}

/* === عدد الأعمدة الافتراضي === */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
/* === بدائل الأعمدة (تُفعّل عبر data-cols-* على .domains-section) === */
/* الكمبيوتر: الافتراضي 3 — البدائل 2 أو 4 */
.domains-section[data-cols-desktop="2"] .domains-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.domains-section[data-cols-desktop="4"] .domains-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* التابلت (يُطبَّق عبر media) والموبايل تُدار في الأسفل */

/* الصورة — 4:3، تملأ الإطار، تتكبر على hover */
.domain-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef0f7 0%, #f7f8fb 60%, #fff 100%);
  overflow: hidden;
}
.domain-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.domain-card:hover .domain-img { transform: scale(1.04); }
/* Placeholder أنيق ومحايد — يتلاشى عند وجود صورة */
.domain-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
  background:
    repeating-linear-gradient(45deg, rgba(15,18,38,.025) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #eef0f7 0%, #f7f8fb 60%, #fff 100%);
  transition: opacity .25s ease;
}
.domain-ph[hidden], .domain-img:not([hidden]) + .domain-ph { display: none; }
/* جسم البطاقة */
.domain-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.domain-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--card-title);
  line-height: 1.35;
}
.domain-desc {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.domain-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card-cta-bg);
  color: var(--card-cta-color);
  font-weight: 700;
  font-size: 13px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.domain-card:hover .domain-cta {
  background: linear-gradient(135deg, var(--c-accent), var(--c-warm));
  color: #fff;
}
.cta-arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.domain-card:hover .cta-arrow { transform: translateX(-3px); }

/* ===================== العروض ===================== */
.offers-section {
  --offers-section-bg: #ffffff;
  --offers-card-bg: #eef1f8;
  --offers-card-border: #c7cede;
  --offers-title-color: #0f1226;
  --offers-price-new: #e94560;
  --offers-price-old: #8a8fa3;
  --offers-cta-bg: #e94560;
  --offers-cta-color: #ffffff;
  --offers-cta-gradient: linear-gradient(135deg, var(--offers-cta-bg), var(--c-warm));
  background: var(--offers-section-bg);
}
.offers-section.is-hidden { display: none !important; }

.offers-stage { position: relative; }

/* حاوية العروض — أوضاع بطاقات أو سلايدر */
.offers-host {
  display: flex;
  gap: 16px;
}
/* وضع السلايدر (الافتراضي) */
.offers-host[data-display="slider"] {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 8px;
  /* تخصيص شكل الـscrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(15,18,38,.18) transparent;
  /* احتواء التمرير الأفقي داخل السلايدر + elastic scroll */
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  /* السماح بالسحب الأفقي + التمرير العمودي للصفحة */
  touch-action: pan-x pan-y;
}
.offers-host[data-display="slider"]::-webkit-scrollbar { height: 6px; }
.offers-host[data-display="slider"]::-webkit-scrollbar-thumb { background: rgba(15,18,38,.18); border-radius: 999px; }
.offers-host[data-display="slider"]::-webkit-scrollbar-track { background: transparent; }

/* وضع البطاقات */
.offers-host[data-display="cards"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

/* عرض البطاقة داخل السلايدر */
.offers-host[data-display="slider"] .offer-card {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  /* إصلاح جذري: scroll-snap-stop: always يحدّ من تخطي البطاقات في السحب السريع.
     touch-action موروث من الحاوية (pan-x pan-y) فلا حاجة للتكرار. */
  scroll-snap-stop: always;
}

/* البطاقة الواحدة */
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--offers-card-bg);
  border: 1px solid var(--offers-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15,18,38,.05);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  scroll-snap-align: start;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15,18,38,.14), 0 2px 6px rgba(15,18,38,.06);
  border-color: #e94560;
}

/* صورة العرض (placeholder أنيق) */
.offer-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef0f7 0%, #f7f8fb 60%, #fff 100%);
  overflow: hidden;
}
.offer-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.offer-card:hover .offer-img { transform: scale(1.04); }
.offer-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
  background:
    repeating-linear-gradient(45deg, rgba(15,18,38,.025) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #eef0f7 0%, #f7f8fb 60%, #fff 100%);
}
.offer-img:not([hidden]) + .offer-ph { display: none; }

/* الشارة */
.offer-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-block;
  font-size: 12px; font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-accent); /* أحمر افتراضي */
  color: #fff;
  letter-spacing: .2px;
  box-shadow: 0 4px 10px rgba(15,18,38,.12);
}
.offer-badge[data-badge="جديد"] { background: #1aa67b; }
.offer-badge[data-badge="موسمي"] { background: #f5a623; color: #1a1a2e; }
.offer-badge:empty { display: none; }

/* جسم البطاقة */
.offer-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.offer-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--offers-title-color);
  line-height: 1.4;
}
.offer-desc {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offer-prices {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.offer-old {
  color: var(--offers-price-old);
  font-size: 14px;
  text-decoration: line-through;
}
.offer-old:empty { display: none; }
.offer-new {
  color: var(--offers-price-new);
  font-size: 18px;
  font-weight: 800;
}
.offer-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--offers-cta-gradient);
  color: var(--offers-cta-color);
  font-weight: 700;
  font-size: 13.5px;
  transition: filter .2s ease, transform .2s ease;
}
.offer-card:hover .offer-cta { filter: brightness(1.05); }
.offer-cta .cta-arrow { display: inline-block; transition: transform .2s ease; }
.offer-card:hover .offer-cta .cta-arrow { transform: translateX(-3px); }

/* الأسهم prev/next — على الكمبيوتر فقط */
.offers-arrow {
  position: absolute;
  top: 38%; /* قريب من منتصف البطاقات (المنطقة المرئية من الصورة) */
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-primary);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(15,18,38,.10);
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
  font-family: inherit;
}
.offers-arrow:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: translateY(-50%) scale(1.05); }
.offers-arrow:disabled { opacity: .4; cursor: not-allowed; }
.offers-prev { inset-inline-start: -8px; transform: translateY(-50%); }
.offers-next { inset-inline-end: -8px; transform: translateY(-50%); }
.offers-prev:hover { transform: translateY(-50%) scale(1.05); }
.offers-next:hover { transform: translateY(-50%) scale(1.05); }

/* النقاط */
.offers-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.offers-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(15,18,38,.20);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, width .2s ease, transform .2s ease;
}
.offers-dots .dot.is-active {
  background: var(--c-accent);
  width: 24px;
  border-radius: 999px;
}
.offers-dots .dot:hover { background: rgba(15,18,38,.4); }
.offers-dots .dot.is-active:hover { background: var(--c-accent); }

/* === استجابة عدد البطاقات على الشاشات === */
@media (min-width: 1025px) {
  .offers-arrow { display: inline-flex; }
}
@media (max-width: 1024px) {
  .offers-host[data-display="slider"] .offer-card { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 720px) {
  .offers-host[data-display="slider"] .offer-card { flex: 0 0 100%; }
  .offer-desc { display: none; }
  .offer-body { padding: 12px 12px 14px; gap: 6px; }
  .offer-title { font-size: 15px; }
  .offer-cta { padding: 8px 12px; font-size: 12.5px; min-height: 36px; }
}

/* عندما يكون وضع البطاقات — الموبايل يبقى بطاقة واحدة في كل صف (للحفاظ على الوضوح) */
@media (max-width: 720px) {
  .offers-host[data-display="cards"] { grid-template-columns: 1fr; }
}

/* === reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .offers-host[data-display="slider"] { scroll-behavior: auto; }
  .offer-card, .offer-img, .offer-cta, .cta-arrow, .offers-arrow, .dot { transition: none !important; }
}

/* ===================== وصول سريع ===================== */
.quick-section {
  --quick-section-bg: #ffffff;
  --quick-card-bg: #eef1f8;
  --quick-card-border: #c7cede;
  --quick-text-color: #0f1226;
  --quick-icon-color: #e94560;
  --quick-btn-bg: #e94560;
  --quick-btn-color: #ffffff;
  --quick-compact-bg: #eef1f8;
  --quick-compact-border: #c7cede;
  --quick-compact-color: #0f1226;
  background: var(--quick-section-bg);
}
.quick-section.is-hidden { display: none !important; }

/* شبكة مرنة — التعداد يُدار عبر data-cols-desktop على القسم نفسه */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 12px;
}
.quick-section[data-cols-desktop="4"] .quick-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.quick-section[data-cols-desktop="5"] .quick-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.quick-section[data-cols-desktop="6"] .quick-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }

/* إخفاء العناصر الإضافية (لزر عرض المزيد) */
.quick-item.is-overflow { display: none; }
.quick-section[data-overflow-mode="more"] .quick-item.is-overflow {
  display: none;
}
.quick-section[data-overflow-mode="more"].is-expanded .quick-item.is-overflow {
  display: flex;
}

/* ===== الحالة الافتراضية: بطاقات بأيقونات ===== */
.quick-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 96px;
  padding: 16px 8px;
  background: var(--quick-card-bg);
  border: 1px solid var(--quick-card-border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--quick-text-color);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.quick-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,18,38,.10);
  border-color: #e94560;
  background: #fff;
}
.quick-ico {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--quick-icon-color);
}
.quick-ico img {
  width: 28px; height: 28px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(15,18,38,.04));
}
.quick-img {
  display: none; /* يظهر فقط للبطاقة التي تحمل .has-image داخل وضع images */
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,18,38,.04);
}
.quick-img img {
  width: 100%; height: 100%;
  object-fit: cover;        /* افتراضي cover — يتغيّر عبر data-fit على البطاقة */
  object-position: center;
  display: block;
}
/* placeholder محايد عند غياب الوسائط (في وضع images) */
.quick-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-md) - 4px);
  background: #f3f5fb;
  border: 1px dashed #c7cede;
  align-items: center;
  justify-content: center;
  color: #8a93a6;
}
.quick-placeholder svg {
  width: 36px; height: 36px;
  opacity: .55;
}
.quick-section[data-display="icons"] .quick-img,
.quick-section[data-display="icons"] .quick-placeholder { display: none !important; }
.quick-section[data-display="icons"] .quick-ico { display: inline-flex; }
.quick-section[data-display="icons"] .quick-item { flex-direction: column; }
.quick-section[data-display="icons"] .quick-label { padding: 0 4px; }

.quick-label {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--quick-text-color);
}
.quick-arrow {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  font-size: 14px;
  color: var(--c-muted);
  transition: transform .2s ease, color .2s ease;
}
.quick-item:hover .quick-arrow {
  color: var(--c-accent);
  transform: translateX(-3px);
}

/* ===== وضع بطاقات بصور ===== */
.quick-section[data-display="images"] .quick-item {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  text-align: start;
  min-height: 0;
}
.quick-section[data-display="images"] .quick-item.has-image .quick-img {
  display: block;
  position: relative;
}
.quick-section[data-display="images"] .quick-item.has-image .quick-ico { display: none; }

/* البطاقات التي لا تملك صورة صالحة: عرض placeholder فقط إذا لا توجد أيقونة */
.quick-section[data-display="images"] .quick-item:not(.has-image):not(.has-icon) .quick-placeholder {
  display: flex;
}
.quick-section[data-display="images"] .quick-item:not(.has-image) .quick-ico { display: none; }
.quick-section[data-display="images"] .quick-item.has-image .quick-img::after {
  content: "";
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
  width: 26px; height: 26px;
  background: var(--quick-card-bg);
  border: 1px solid var(--quick-card-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.quick-section[data-display="images"] .quick-arrow {
  position: static; /* في الصورة كحاوية */
  inset: auto;
  display: inline-block;
  width: 26px; height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--c-muted);
  background: var(--quick-card-bg);
  border: 1px solid var(--quick-card-border);
  border-radius: 50%;
  margin-bottom: 8px;
}
.quick-section[data-display="images"] .quick-item .quick-body {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 12px;
  gap: 10px;
}
.quick-section[data-display="images"] .quick-item .quick-label {
  padding: 0;
  font-size: 14px;
}

/* ===== وضع أزرار مدمجة ===== */
.quick-section[data-display="compact"] .quick-grid {
  gap: 8px;
}
.quick-section[data-display="compact"] .quick-item {
  flex-direction: row;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--quick-compact-bg);
  border: 1px solid var(--quick-compact-border);
  border-radius: 999px;
  color: var(--quick-compact-color);
  font-size: 13px;
  font-weight: 600;
}
.quick-section[data-display="compact"] .quick-item:hover {
  background: #fff;
  border-color: #e94560;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15,18,38,.08);
}
.quick-section[data-display="compact"] .quick-img { display: none !important; }
.quick-section[data-display="compact"] .quick-ico {
  width: 18px; height: 18px;
}
.quick-section[data-display="compact"] .quick-ico img {
  width: 18px; height: 18px;
}
.quick-section[data-display="compact"] .quick-item:not(.has-icon) .quick-ico {
  display: none; /* إخفاء الأيقونة فقط إذا لا توجد وسائط على البطاقة */
}
.quick-section[data-display="compact"] .quick-arrow { display: none; }

/* ===== زر "عرض المزيد" ===== */
.quick-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.quick-more-btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--quick-btn-bg);
  color: var(--quick-btn-color);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.quick-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233,69,96,.25);
}
.quick-more-btn:active { transform: translateY(0); }
.quick-section[data-overflow-mode="hide"] .quick-more-wrap { display: none; }
.quick-section:not(.has-overflow) .quick-more-wrap { display: none; }

/* اختلاف بصري خفيف لبطاقة واتساب (لون أخضر للزر + ظل أخضر) */
.quick-item-wa { --quick-icon-color: #25D366; }
.quick-item-wa:hover { border-color: #25D366; }

/* ===================== معرض الأعمال ===================== */
.gallery-section {
  --gallery-section-bg: #0f1226;
  --gallery-card-bg: #1a1d3a;
  --gallery-card-border: rgba(255,255,255,.10);
  --gallery-text-color: #ffffff;
  --gallery-muted-color: rgba(255,255,255,.6);
  --gallery-accent: #e94560;
  --gallery-radius: 12px;
  background: linear-gradient(
    180deg,
    var(--gallery-section-bg) 0%,
    #181c3a 100%
  );
}
.gallery-section.is-hidden { display: none !important; }

/* شبكة افتراضية — التعداد يُدار عبر data-cols-desktop على القسم */
.gallery-host {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.gallery-section[data-cols-desktop="2"] .gallery-host { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gallery-section[data-cols-desktop="3"] .gallery-host { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gallery-section[data-cols-desktop="4"] .gallery-host { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* وضع السلايدر: Native CSS Scroll Snap */
.gallery-host[data-display="slider"] {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 14px;
  padding: 4px 4px 12px;
  overscroll-behavior-inline: contain;
}
.gallery-host[data-display="slider"] .gallery-item { flex: 0 0 320px; scroll-snap-align: start; }

/* إخفاء الإضافي عند وجود max-items + show more (placeholder للزر) */
.gallery-item.is-overflow { display: none; }
.gallery-section[data-overflow-mode="more"].is-expanded .gallery-item.is-overflow { display: block; }

.gallery-item {
  margin: 0;
  background: var(--gallery-card-bg);
  border: 1px solid var(--gallery-card-border);
  border-radius: var(--gallery-radius);
  overflow: hidden;
  color: var(--gallery-text-color);
}
.gallery-item:focus { outline: none; }
.gallery-item:focus-visible .gallery-trigger {
  outline: 2px solid var(--gallery-accent);
  outline-offset: 3px;
}

.gallery-trigger {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
}

/* منطقة الوسائط بنسبة 4:3 — تمنع layout shift */
.gallery-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.gallery-media img,
.gallery-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-media img { background: rgba(0,0,0,.18); }

/* الـ placeholder: يظهر فقط عندما لا توجد صورة صالحة */
.gallery-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--gallery-muted-color);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.gallery-fallback svg { width: 38px; height: 38px; opacity: .55; }
.gallery-fallback em { font-style: normal; font-size: 13px; opacity: .8; }

/* عند وجود صورة أو poster صالحة: أخفِ الـ placeholder */
.gallery-item.has-media .gallery-fallback { display: none; }

/* مؤشر ▶ للفيديو */
.gallery-play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.gallery-play::before {
  content: "";
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  position: absolute;
  z-index: -1;
  transition: transform .2s ease, background .2s ease;
}
.gallery-play { font-size: 28px; color: #fff; }
.gallery-item[data-media-type="video"] .gallery-play { display: flex; }
.gallery-item[data-media-type="video"]:not(.has-media) .gallery-play { display: none; }
.gallery-trigger:hover .gallery-play::before { transform: scale(1.08); background: rgba(233,69,96,.85); }

/* الصورة المكسورة — يعرض placeholder محايد "الصورة غير متاحة" */
.gallery-item.is-broken .gallery-fallback {
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px);
}
.gallery-item.is-broken .gallery-fallback em { font-size: 13px; opacity: .85; }

/* التسمية أسفل الصورة */
.gallery-caption {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
}
.gallery-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.gallery-domain-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(233,69,96,.15);
  color: #f6c5cf;
  border: 1px solid rgba(233,69,96,.35);
  white-space: nowrap;
}

/* تجاوز الحد: لا يتم عرض العناصر الإضافية (placeholder) */
.gallery-section:not(.has-overflow) .gallery-item.is-overflow { display: none; }
.gallery-section.has-overflow[data-overflow-mode="more"] .gallery-item.is-overflow { display: none; }
.gallery-section.has-overflow[data-overflow-mode="more"].is-expanded .gallery-item.is-overflow { display: block; }

/* ===================== Lightbox ===================== */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 10, 24, .92);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: lb-fade .15s ease-out;
}
.lightbox[hidden] { display: none !important; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-stage {
  position: relative;
  max-width: min(1100px, 95vw);
  max-height: 80vh;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-stage img,
.lightbox-stage video,
.lightbox-stage iframe {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-stage iframe {
  width: min(1100px, 95vw);
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  appearance: none;
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gallery-accent);
  border-color: var(--gallery-accent);
  transform: scale(1.06);
}
.lightbox-close { top: 16px; inset-inline-end: 16px; font-size: 26px; line-height: 1; }
.lightbox-prev  { top: 50%; transform: translateY(-50%); inset-inline-start: 16px; }
.lightbox-next  { top: 50%; transform: translateY(-50%); inset-inline-end: 16px; }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255,255,255,.85);
  text-align: center;
  font-size: 14px;
  max-width: min(900px, 95vw);
}
.lightbox-caption[hidden] { display: none; }
.lightbox-caption-title { font-weight: 700; margin-bottom: 4px; }
.lightbox-caption-desc { color: rgba(255,255,255,.65); font-size: 13px; }

/* إخفاء الأسهم عند وجود عنصر واحد فقط */
.lightbox[data-single="true"] .lightbox-prev,
.lightbox[data-single="true"] .lightbox-next { display: none; }

/* ===================== من نحن ===================== */
.about-section {
  --about-section-bg: #ffffff;
  --about-card-bg: #f8f9fc;
  --about-text-color: #0f1226;
  --about-soft-color: #4a5170;
  --about-accent: #e94560;
  --about-btn-bg: #e94560;
  --about-accent-text: #ffffff;
  background: var(--about-section-bg);
  color: var(--about-text-color);
}
.about-section.is-hidden { display: none !important; }

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-text > h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--about-text-color);
  margin: 0 0 14px;
}
.about-text > p {
  color: var(--about-soft-color);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 18px;
}

/* نقاط القوة */
.about-points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.about-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--about-text-color);
}
.about-point.is-hidden { display: none; }
.about-point-ico {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(233, 69, 96, .10);
  background: color-mix(in srgb, var(--about-btn-bg) 10%, transparent);
  color: var(--about-accent-text);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.about-point-ico svg { width: 14px; height: 14px; display: block; }
.about-point-text { flex: 1; }

/* الوسائط التعريفية */
.about-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-section:not([data-media-visible="on"]) .about-media,
.about-section[data-media-type="none"] .about-media { display: none; }
.about-section[data-media-type="none"] .about-inner { grid-template-columns: 1fr; max-width: 880px; margin-inline: auto; }

.about-media-trigger {
  appearance: none;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  font: inherit;
  color: inherit;
}
.about-media-trigger:focus { outline: none; }
.about-media-trigger:focus-visible .about-media-frame {
  outline: 3px solid var(--about-accent);
  outline-offset: 4px;
}
.about-media-trigger[hidden] { display: none !important; }

.about-media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f3f5fb;
  border: 1px solid #e2e7f3;
  box-shadow: 0 12px 30px rgba(15, 18, 38, .08);
}
.about-section[data-media-ratio="16-9"] .about-media-frame { aspect-ratio: 16 / 9; }

/* صورة أو poster عبر background-image (يتفادى layout shift ولا src فارغ) */
.about-media-img,
.about-media-poster {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
}
.about-media-img[data-bg=""] { background-image: none; }
.about-media-img:not([data-bg=""]):not([data-bg$="data:,"]) { /* لا شيء */ }
.about-media-poster[data-bg=""] { background-image: none; }

/* placeholder يظهر فقط إذا لا توجد وسائط محمّلة */
.about-media-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: #8a93a6;
  background:
    repeating-linear-gradient(45deg, rgba(15,18,38,.04) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, rgba(15,18,38,.03), rgba(15,18,38,.01));
}
.about-media-fallback svg { width: 38px; height: 38px; opacity: .55; }
.about-media-fallback em { font-style: normal; font-size: 13px; opacity: .85; }
.about-media[data-has-media="true"] .about-media-fallback { display: none; }

/* زر التشغيل للفيديو */
.about-media-play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.about-media-play::before {
  content: "";
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(15, 18, 38, .55);
  position: absolute; z-index: -1;
  transition: transform .2s ease, background .2s ease;
}
.about-media-play svg { width: 28px; height: 28px; color: #fff; }
.about-section[data-media-type="video"] .about-media-play { display: flex; }
.about-section[data-media-type="video"]:not([data-has-media="true"]) .about-media-play { display: none; }
.about-media-trigger:hover .about-media-play::before {
  transform: scale(1.08);
  background: rgba(233, 69, 96, .85);
}

/* الصورة المكسورة */
.about-media.is-broken .about-media-fallback em { font-size: 13px; opacity: .85; }

/* موبايل: ترتيب رأسي: عنوان → نص → نقاط → وسائط → زر */
@media (max-width: 767px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-section[data-media-type="none"] .about-inner { max-width: 100%; }
  .about-media { order: 4; }
  .about-points { gap: 8px; }
}

/* ===================== التواصل ===================== */
.contact-section {
  --contact-section-bg: #f1f3f9;
  --contact-card-bg: #ffffff;
  --contact-card-border: #e2e7f3;
  --contact-text-color: #0f1226;
  --contact-soft-color: #4a5170;
  --contact-accent: #e94560;
  --contact-wa: #25D366;
  --contact-tg: #229ED9;
  background: var(--contact-section-bg);
  color: var(--contact-text-color);
}
.contact-section.is-hidden { display: none !important; }
/* فاصل علوي ومسافة داخلية واضحة للتمييز عن قسم من نحن */
.contact-section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid #e2e7f3;
}

.contact-inner {
  max-width: 880px;
  margin-inline: auto;
}
.contact-info h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--contact-text-color);
  margin: 0 0 8px;
}
.contact-intro {
  color: var(--contact-soft-color);
  font-size: 15px;
  margin: 0 0 18px;
}

/* معلومات أساسية (العنوان، الساعات، الهاتف) */
.contact-meta {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--contact-text-color);
}
.contact-meta-item.is-hidden,
.contact-meta-item[hidden] { display: none !important; }
.contact-meta-ico {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(233, 69, 96, .10);
  color: var(--contact-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-meta-ico svg { width: 18px; height: 18px; display: block; }
.contact-meta-label { font-weight: 700; color: var(--contact-text-color); }
.contact-meta-value { color: var(--contact-soft-color); }
a.contact-meta-value { text-decoration: none; color: var(--contact-accent); }
a.contact-meta-value:hover { text-decoration: underline; }

/* أزرار CTA الرئيسية (واتساب + تيليجرام) */
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-cta-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.contact-cta-ico svg { width: 22px; height: 22px; display: block; }

.contact-cta-wa {
  background: var(--contact-wa);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .25);
}
.contact-cta-wa:hover {
  transform: translateY(-2px);
  background: #1ebe5a;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}

.contact-cta-tg {
  background: var(--contact-tg);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(34, 158, 217, .22);
}
.contact-cta-tg:hover {
  transform: translateY(-2px);
  background: #1a8bc4;
  box-shadow: 0 10px 24px rgba(34, 158, 217, .32);
}

/* وسائل التواصل الديناميكية (تظهر من JS فقط) */
.contact-channels { margin-top: 18px; }
.contact-channels[hidden] { display: none !important; }
.contact-channels-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--contact-soft-color);
  margin: 0 0 10px;
  text-transform: none;
}
.contact-channels-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.contact-channels-list li { margin: 0; }
.contact-channel-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--contact-card-bg);
  color: var(--contact-text-color);
  border: 1px solid var(--contact-card-border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.contact-channel-pill:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--contact-accent);
}
.contact-channel-pill-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  color: var(--contact-accent);
}
.contact-channel-pill-ico svg { width: 18px; height: 18px; display: block; }

/* زر فتح الخريطة */
.contact-maps-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: transparent;
  color: var(--contact-accent);
  border: 1.5px solid var(--contact-accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.contact-maps-btn:hover {
  background: var(--contact-accent);
  color: #fff;
  transform: translateY(-1px);
}
.contact-maps-btn[hidden] { display: none !important; }

/* ===================== الفوتر ===================== */
.site-footer {
  --footer-bg: #0b0d1c;
  --footer-text: rgba(255,255,255,.85);
  --footer-soft: rgba(255,255,255,.55);
  --footer-accent: #e94560;
  --footer-link: rgba(255,255,255,.85);
  --footer-link-hover: #ffffff;
  --footer-border: rgba(255,255,255,.10);
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px 0 22px;
  margin-top: 0;
}
.site-footer.is-hidden { display: none !important; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}
.footer-brand .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e94560, #ffb380);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .5px;
}
.footer-desc {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--footer-soft);
  line-height: 1.6;
}
.site-footer[data-footer-desc-visible="off"] .footer-desc { display: none; }

.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: var(--footer-link);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--footer-link-hover); }

.footer-address {
  margin: 0 0 12px;
  color: var(--footer-soft);
  font-size: 13.5px;
  line-height: 1.6;
}
.site-footer[data-footer-address-visible="off"] .footer-address { display: none; }

.footer-channels {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.footer-channels[hidden] { display: none !important; }
.footer-channel-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.06);
  color: #ffffff;
  border: 1px solid var(--footer-border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.footer-channel-pill:hover {
  background: rgba(233, 69, 96, .18);
  border-color: var(--footer-accent);
  transform: translateY(-1px);
}
.footer-channel-pill-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
}
.footer-channel-pill-ico svg { width: 16px; height: 16px; display: block; }

.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--footer-border);
  display: flex;
  justify-content: center;
  text-align: center;
}
.footer-bottom .muted {
  color: var(--footer-soft);
  font-size: 13px;
  margin: 0;
}

/* موبايل: تكديس أعمدة الفوتر + ضغط أزرار التواصل الرئيسية */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-bottom { margin-top: 22px; }
  /* أزرار واتساب وتيليجرام: عرض كامل، أقل ضخامة، مع 44px touch */
  .contact-cta-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .contact-cta {
    justify-content: center;
    width: 100%;
    padding: 10px 18px;
    min-height: 44px;
    font-size: 14.5px;
  }
  .contact-cta-ico { width: 20px; height: 20px; }
  .contact-cta-ico svg { width: 20px; height: 20px; }
  .contact-info h2 { font-size: 22px; }
  .contact-intro { font-size: 14px; margin-bottom: 14px; }
  .contact-meta { margin-bottom: 16px; gap: 8px; }
  .contact-meta-item { font-size: 14px; }
}

/* ===================== تجاوب الموبايل ===================== */
@media (max-width: 1024px) {
  /* التابلت: الافتراضي 2 — قابل للتعديل عبر data-cols-tablet على .domains-section */
  .domains-section:not([data-cols-tablet]) .domains-grid,
  .domains-section[data-cols-tablet="2"] .domains-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .domains-section[data-cols-tablet="1"] .domains-grid { grid-template-columns: 1fr; }
  .domains-section[data-cols-tablet="3"] .domains-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  /* التابلت: الافتراضي 3 — قابل للتعديل عبر data-cols-tablet */
  .quick-section:not([data-cols-tablet]) .quick-grid,
  .quick-section[data-cols-tablet="3"] .quick-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .quick-section[data-cols-tablet="2"] .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quick-section[data-cols-tablet="4"] .quick-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .offers-host[data-display="cards"] { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-host[data-display="grid"] { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-section[data-cols-tablet="2"] .gallery-host { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-section[data-cols-tablet="1"] .gallery-host { grid-template-columns: 1fr; }
  .gallery-section[data-cols-tablet="3"] .gallery-host { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 880px) {
  /* على التابلت: إخفاء البحث من الهيدر (مخفي مسبقاً عبر display:none) */
  .header-search { display: none; }
  /* primary-nav لم يعد موجوداً — قواعد الـnav-inner غير ضرورية */
}
@media (max-width: 720px) {
  /* الموبايل: الافتراضي 2 — قابل للتعديل عبر data-cols-mobile */
  .domains-section:not([data-cols-mobile]) .domains-grid,
  .domains-section[data-cols-mobile="2"] .domains-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .domains-section[data-cols-mobile="1"] .domains-grid { grid-template-columns: 1fr; gap: 12px; }
  .domain-desc { display: none; } /* إخفاء الوصف على الموبايل لتوفير المساحة */
  .domain-body { padding: 12px 12px 14px; gap: 8px; }
  .domain-desc { display: none; } /* إخفاء الوصف على الموبايل لتوفير المساحة */
  .domain-body { padding: 12px 12px 14px; gap: 8px; }
  .domain-title { font-size: 15px; }
  .domain-cta { padding: 8px 12px; font-size: 12.5px; min-height: 36px; }
  /* الموبايل: الافتراضي 2 — قابل للتعديل عبر data-cols-mobile */
  .quick-section:not([data-cols-mobile]) .quick-grid,
  .quick-section[data-cols-mobile="2"] .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .quick-section[data-cols-mobile="1"] .quick-grid { grid-template-columns: 1fr; gap: 10px; }
  .quick-section[data-cols-mobile="3"] .quick-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .quick-item { min-height: 96px; padding: 14px 6px; }
  .quick-ico img { width: 26px; height: 26px; }
  .quick-label { font-size: 12.5px; }
  .offers-host[data-display="cards"] { grid-template-columns: 1fr; }
  .gallery-host[data-display="grid"] { grid-template-columns: 1fr; }
  .gallery-section[data-cols-mobile="1"] .gallery-host { grid-template-columns: 1fr; }
  .gallery-section[data-cols-mobile="2"] .gallery-host { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { justify-content: center; text-align: center; }

  /* الموبايل: الهيدر يبقى grid (موبايل فقط) — الأيقونات + navToggle */
  /* nav وoff-canvas معرّفان في media query (max-width: 1024px) أعلاه */

  /* على الموبايل: أزرار الهيدر كأيقونات فقط (بدون نص) */
  .ha-orders .ha-label,
  .ha-wa .ha-label,
  .ha-tg .ha-label { display: none; }

  .header-inner {
    grid-template-columns: auto auto auto;
    grid-template-areas: "brand actions toggle";
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .header-inner > .brand { grid-area: brand; }
  .header-inner > .header-actions { grid-area: actions; justify-self: end; }
  .header-inner > .nav-toggle { grid-area: toggle; }
  /* .header-actions كأيقونات فقط (موبايل) */
  .header-actions {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .ha-orders, .ha-wa, .ha-tg {
    min-height: 40px;
    min-width: 40px;
    padding: 6px 8px;
    gap: 6px;
    justify-content: center;
    width: auto;
  }
  .ha-orders .ha-ico {
    width: 18px; height: 18px;
  }
  /* أيقونة زري الاتصال أكبر قليلاً ومتساوية */
  .ha-wa .ha-ico,
  .ha-tg .ha-ico {
    width: 18px; height: 18px;
  }
  /* خفف حجم الشعار لإفساح المجال للأزرار الثلاثة */
  .brand-dark .brand-mark { width: 38px; height: 38px; font-size: 16px; }
  .brand-dark .brand-text { display: none; }
  .nav-toggle {
    min-height: 40px;
    min-width: 40px;
    padding: 8px 10px;
  }
}

/* 360px — تأكيد عدم خروج أي عنصر */
@media (max-width: 380px) {
  .header-inner { gap: 5px; padding-inline: 10px; }
  .container { padding-inline: 12px; }
  .header-actions { gap: 4px; }
  .ha-orders, .ha-wa, .ha-tg {
    padding: 6px 8px;
    font-size: 12px;
    min-height: 40px;
    min-width: 40px;
  }
  .ha-orders .ha-label,
  .ha-wa .ha-label,
  .ha-tg .ha-label { font-size: 12px; }
  .ha-orders .ha-ico { width: 16px; height: 16px; }
  .ha-wa .ha-ico,
  .ha-tg .ha-ico { width: 16px; height: 16px; }
  .brand-dark .brand-mark { width: 38px; height: 38px; font-size: 16px; }

  /* مجالاتنا — 360px */
  .domains-grid { gap: 10px; }
  .domain-body { padding: 10px 10px 12px; }
  .domain-title { font-size: 14px; }
  .domain-cta { padding: 7px 10px; font-size: 12px; min-height: 36px; }

  /* أزرار الـHero بجانب بعضهما: تصغير الخط قليلاً مع إبقاء 44px+ */
  .hero-cta { gap: 8px; }
  .hero-cta .btn {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 320px — تشديد أكثر */
@media (max-width: 340px) {
  .hero-cta { gap: 6px; }
  .hero-cta .btn {
    padding: 10px 6px;
    font-size: 12.5px;
    min-height: 44px;
  }
  .container { padding-inline: 12px; }
  .header-inner { gap: 4px; padding-inline: 8px; }
  .header-actions { gap: 3px; }
  /* أزرار الهيدر: حذف الفراغ بين الأيقونة والنص */
  .ha-orders, .ha-wa, .ha-tg {
    padding: 6px 6px;
    gap: 3px;
    min-height: 40px;
    min-width: 40px;
  }
  .ha-orders .ha-label,
  .ha-wa .ha-label,
  .ha-tg .ha-label { font-size: 11.5px; }
}

/* Hero logo — موبايل: max-height 85px */
@media (max-width: 720px) {
  .hero-logo[data-logo-mode="full"] .hero-logo-mark,
  .hero-logo[data-logo-mode="full"] .hero-logo-img {
    max-height: 85px;
    max-width: 90%;
  }
  .hero-logo { padding: 6px 14px 6px 6px; }
  .hero-logo-mark { width: 42px; height: 42px; font-size: 17px; }
  .hero-logo-name { font-size: 14px; }
  .hero-logo-sub { font-size: 10px; }
}
@media (max-width: 420px) {
  .hero-logo { padding: 6px 12px 6px 6px; }
  .hero-logo-mark { width: 40px; height: 40px; font-size: 16px; }
  .hero-logo-name { font-size: 14px; }
  .hero-logo-sub { font-size: 10px; }
}

/* ===========================================================
   إخفاء وإزالة أي عنصر مزروع بعد deploy (minimax tracking)
   - لا يمكن حذفها من المصدر لأن deploy tool يحقنها تلقائياً
   - نطبق CSS إخفاء فوري + JS يحذف DOM والـlisteners
   =========================================================== */
[data-minimax-analytics],
#minimax-floating-ball,
.minimax-ball-content,
.minimax-ball-text,
.minimax-logo-wave,
.minimax-close-icon {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
}
