/* =====================================================================
   رامه الذكية — التنسيق الرئيسي للموقع  |  Ramh Smart — main stylesheet
   ===================================================================== */

/* ---------------------------------------------------------------
   1) إعادة الضبط والأساسيات
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-2);
  background: var(--bg-1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body[dir="ltr"] { font-family: var(--font-en); }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5 {
  color: var(--text-1);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 5.2vw, var(--fs-5xl)); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.6vw, var(--fs-3xl)); font-weight: 750; }
h3 { font-size: clamp(1.2rem, 2.2vw, var(--fs-xl)); }
h4 { font-size: var(--fs-lg); }
p  { color: var(--text-2); }
strong { color: var(--text-1); font-weight: 650; }

::selection { background: rgba(var(--rgb-brand),.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* شريط التمرير */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-700), var(--brand-900));
  border-radius: 99px; border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

.skip-link {
  position: absolute; inset-inline-start: 50%; top: -100px; transform: translateX(-50%);
  background: var(--brand-600); color: #fff; padding: .7rem 1.4rem;
  border-radius: 0 0 var(--r-md) var(--r-md); z-index: var(--z-toast); transition: top var(--t-base);
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------------
   2) التخطيط
   --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 860px; }

.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-2); }
.section--deep { background: var(--bg-0); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.wrap { flex-wrap: wrap; }

/* ---------------------------------------------------------------
   3) الخلفيات التقنية (شبكات / كاميرات / مراكز بيانات)
   --------------------------------------------------------------- */
.bg-layers { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* شبكة نقاط دقيقة */
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(var(--rgb-line),.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--rgb-line),.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 15%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 15%, transparent 85%);
}

/* هالات ضوئية */
.bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; }
.bg-orb--1 { width: 620px; height: 620px; top: -220px; inset-inline-start: -180px;
  background: radial-gradient(circle, rgba(var(--rgb-brand),.55), transparent 68%); }
.bg-orb--2 { width: 540px; height: 540px; top: 18%; inset-inline-end: -200px;
  background: radial-gradient(circle, rgba(var(--rgb-accent),.32), transparent 70%); }
.bg-orb--3 { width: 700px; height: 700px; bottom: -300px; inset-inline-start: 32%;
  background: radial-gradient(circle, rgba(var(--rgb-brand),.35), transparent 70%); }

/* حبيبات */
.bg-noise {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* خطوط مسح أفقية خفيفة (إيحاء كاميرا مراقبة) */
.bg-scan {
  position: absolute; inset: 0; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
}

/* خلفية قسم: مخطط شبكة */
.sec-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sec-bg > * { position: absolute; inset: 0; }
.sec-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .4;
  /* تلاشٍ من كل الجهات حتى لا يظهر حد للخلفية */
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 50%, #000 25%, rgba(0,0,0,.45) 62%, transparent 88%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 50%, #000 25%, rgba(0,0,0,.45) 62%, transparent 88%);
}
.sec-bg--mask::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-1) 0%, transparent 30%, transparent 70%, var(--bg-1) 100%);
}
.section > .container { position: relative; z-index: 2; }

/* فاصل مضيء */
.divider-glow { height: 1px; background: var(--grad-line); border: 0; }

/* ---------------------------------------------------------------
   4) عناصر مشتركة
   --------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-2xs); font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan-300);
  padding: .4rem .9rem; border-radius: var(--r-pill);
  background: rgba(var(--rgb-accent),.08); border: 1px solid rgba(var(--rgb-accent),.22);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-400); box-shadow: 0 0 10px var(--cyan-400);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.sec-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: var(--sp-4); }
.sec-head h2 { margin-bottom: var(--sp-4); }
.sec-head p { font-size: var(--fs-lg); color: var(--text-3); line-height: 1.7; }

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

/* أزرار */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text-1);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; padding: .85rem 1.6rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: -.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--line-2); cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease),
              background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(var(--rgb-brand),.8);
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(var(--rgb-brand),.95); }

.btn--ghost { background: rgba(var(--rgb-line),.06); }
.btn--ghost:hover { background: rgba(var(--rgb-line),.12); border-color: var(--line-3); }

.btn--outline { background: transparent; border-color: var(--line-3); }
.btn--outline:hover { background: rgba(var(--rgb-line),.08); border-color: var(--brand-400); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--fs-md); }
.btn--sm { padding: .55rem 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* رابط بسهم */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--brand-300); font-weight: 600; font-size: var(--fs-sm);
  transition: gap var(--t-base) var(--ease), color var(--t-base);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.link-arrow:hover { color: var(--cyan-300); gap: .85rem; }

/* شارات */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  font-size: var(--fs-3xs); font-weight: 650; letter-spacing: .02em;
  background: rgba(var(--rgb-line),.1); color: var(--text-2); border: 1px solid var(--line-1);
}
.badge--brand { background: rgba(var(--rgb-brand),.16); color: var(--brand-300); border-color: rgba(var(--rgb-brand),.3); }
.badge--cyan  { background: rgba(var(--rgb-accent),.14); color: var(--cyan-300); border-color: rgba(var(--rgb-accent),.28); }
.badge--ok    { background: var(--ok-dim); color: var(--ok); border-color: rgba(41,192,138,.3); }

/* بطاقة أساسية */
.card {
  position: relative; background: var(--surface-1); border: 1px solid var(--line-1);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base),
              box-shadow var(--t-base), background var(--t-base);
}
.card::before {
  content: ''; position: absolute; inset: 0; background: var(--grad-surface);
  opacity: 0; transition: opacity var(--t-base); pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-3); box-shadow: var(--sh-lg); }
.card:hover::before { opacity: 1; }

/* ---------------------------------------------------------------
   5) الرأس والقائمة
   --------------------------------------------------------------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  transition: height var(--t-base) var(--ease), background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(var(--rgb-bg-0),.92) 0%, rgba(var(--rgb-bg-0),.55) 60%, transparent 100%);
  transition: opacity var(--t-base);
}
.header.is-stuck {
  height: var(--header-h-sm);
  background: rgba(var(--rgb-bg-1),.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line-1);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.9);
}
.header.is-stuck::before { opacity: 0; }

.header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: var(--sp-6); }

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 42px; width: auto; transition: height var(--t-base) var(--ease); }
.header.is-stuck .brand img { height: 34px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { color: var(--text-1); font-size: var(--fs-md); font-weight: 750; letter-spacing: -.01em; }
.brand__txt span { color: var(--text-4); font-size: var(--fs-3xs); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .05rem; margin-inline-start: auto; flex-wrap: nowrap; }
.nav__item { position: static; }
.nav__link {
  position: relative; white-space: nowrap;
  display: flex; align-items: center; gap: .35rem;
  padding: .58rem .62rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 550; color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--text-1); background: rgba(var(--rgb-line),.07); }
.nav__link.is-active { color: var(--brand-300); }
.nav__link.is-active::after {
  content: ''; position: absolute; inset-inline: .62rem; bottom: .15rem; height: 2px;
  border-radius: 2px; background: var(--grad-brand);
}
.nav__link .chev { width: 13px; height: 13px; opacity: .6; transition: transform var(--t-base); }
.nav__item.is-open .chev { transform: rotate(180deg); }
.nav__item.is-open > .nav__link { color: var(--text-1); background: rgba(var(--rgb-line),.09); }

/* قائمة منسدلة كبيرة */
.mega {
  position: absolute; top: calc(100% + 6px);
  left: 50%; right: auto; transform: translateX(-50%) translateY(-8px);
  width: min(820px, calc(100vw - 3rem)); max-width: 100%; padding: var(--sp-5);
  background: rgba(var(--rgb-surface-1),.97);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--sh-xl); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
.mega::before {
  content: ''; position: absolute; inset-inline: 0; top: -14px; height: 14px;
}
.nav__item.is-open > .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
.mega__grid--3 { grid-template-columns: repeat(3, 1fr); }
.mega__link {
  display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem;
  border-radius: var(--r-md); transition: background var(--t-fast);
}
.mega__link:hover { background: rgba(var(--rgb-line),.08); }
.mega__ico {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--brand-300);
  background: var(--grad-brand-soft); border: 1px solid var(--line-1);
}
.mega__ico svg { width: 19px; height: 19px; }
.mega__link b { display: block; color: var(--text-1); font-size: var(--fs-sm); font-weight: 620; margin-bottom: .12rem; }
.mega__link small { color: var(--text-4); font-size: var(--fs-2xs); line-height: 1.5; display: block; }
.mega__foot {
  margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}

.header__actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.lang-switch {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem;
  border-radius: var(--r-pill); border: 1px solid var(--line-2);
  font-size: var(--fs-2xs); font-weight: 650; color: var(--text-2);
  transition: all var(--t-fast);
}
.lang-switch:hover { color: var(--text-1); border-color: var(--brand-400); background: rgba(var(--rgb-brand),.1); }
.lang-switch svg { width: 15px; height: 15px; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); place-items: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text-1); border-radius: 2px; position: relative; transition: all var(--t-base); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; inset-inline-start: 0; width: 18px; height: 2px;
  background: var(--text-1); border-radius: 2px; transition: all var(--t-base);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* الدرج للجوال */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(var(--rgb-bg-0),.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: calc(var(--header-h-sm) + 1.5rem) var(--sp-6) var(--sp-8);
  overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-base), transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer__group { border-bottom: 1px solid var(--line-1); }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem .25rem; font-size: var(--fs-lg); font-weight: 600; color: var(--text-1);
}
.drawer__link svg { width: 18px; height: 18px; color: var(--text-4); transition: transform var(--t-base); }
.drawer__group.is-open .drawer__link svg { transform: rotate(180deg); }
.drawer__sub { display: none; padding-bottom: .8rem; }
.drawer__group.is-open .drawer__sub { display: block; }
.drawer__sub a { display: block; padding: .55rem .25rem .55rem 1.2rem; color: var(--text-3); font-size: var(--fs-sm); }
[dir="rtl"] .drawer__sub a { padding: .55rem 1.2rem .55rem .25rem; }
.drawer__sub a:hover { color: var(--brand-300); }
.drawer__cta { margin-top: var(--sp-8); display: grid; gap: .7rem; }

/* شريط علوي رفيع */
.topbar {
  background: var(--bg-0); border-bottom: 1px solid var(--line-1);
  font-size: var(--fs-2xs); color: var(--text-4);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 38px; }
.topbar a:hover { color: var(--brand-300); }
.topbar__list { display: flex; align-items: center; gap: var(--sp-5); }
.topbar__list li { display: flex; align-items: center; gap: .4rem; }
.topbar__list svg { width: 13px; height: 13px; color: var(--brand-400); }

/* ---------------------------------------------------------------
   6) الواجهة الرئيسية (Hero)
   --------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4rem;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; opacity: .85; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, rgba(var(--rgb-bg-0),.55) 75%, var(--bg-1) 100%),
    linear-gradient(180deg, rgba(var(--rgb-bg-0),.65) 0%, transparent 30%, transparent 60%, var(--bg-1) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__slides { position: relative; }
.hero__slide {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateY(24px); pointer-events: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), visibility .7s;
}
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.hero__slide .eyebrow { margin-bottom: var(--sp-5); }
/* الشريحة الأولى تحمل h1 الصفحة، وبقية الشرائح عناوين ثانوية بالمظهر نفسه */
.hero h1, .hero__title { margin-bottom: var(--sp-5); letter-spacing: -.03em; }
.hero__title { font-size: clamp(2rem, 5.2vw, var(--fs-5xl)); font-weight: 800; line-height: 1.15;
  color: var(--text-1); font-family: inherit; text-wrap: balance; }
.hero__sub { font-size: clamp(1rem, 1.6vw, var(--fs-lg)); color: var(--text-3); max-width: 60ch; line-height: 1.8; margin-bottom: var(--sp-8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* لوحة بصرية جانبية */
.hero__visual { position: relative; aspect-ratio: 1/1; max-width: 520px; margin-inline-start: auto; width: 100%; }
.hero__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line-2);
}
.hero__ring:nth-child(2) { inset: 12%; border-color: var(--line-1); animation: spin 40s linear infinite; }
.hero__ring:nth-child(3) { inset: 24%; border-style: dashed; border-color: rgba(var(--rgb-accent),.2); animation: spin 26s linear infinite reverse; }
.hero__ring::after {
  content: ''; position: absolute; top: -4px; inset-inline-start: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 16px var(--cyan-400);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__core {
  position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(var(--rgb-brand-400),.35), rgba(var(--rgb-surface-1),.9) 70%);
  border: 1px solid var(--line-3); display: grid; place-items: center;
  box-shadow: inset 0 0 60px rgba(var(--rgb-brand),.35), 0 0 80px -20px rgba(var(--rgb-brand),.6);
}
.hero__core img { width: 52%; opacity: .95; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }

.hero__chip {
  position: absolute; display: flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem; border-radius: var(--r-pill);
  background: rgba(var(--rgb-surface-1),.92); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-2xs); font-weight: 600; color: var(--text-2);
  box-shadow: var(--sh-md); white-space: nowrap;
  animation: float 6s var(--ease) infinite;
}
.hero__chip svg { width: 15px; height: 15px; color: var(--cyan-400); }
.hero__chip:nth-of-type(1) { top: 4%;    inset-inline-start: 4%;  animation-delay: 0s; }
.hero__chip:nth-of-type(2) { top: 30%;   inset-inline-end: 0;     animation-delay: -1.5s; }
.hero__chip:nth-of-type(3) { bottom: 22%; inset-inline-start: 0;  animation-delay: -3s; }
.hero__chip:nth-of-type(4) { bottom: 2%;  inset-inline-end: 8%;   animation-delay: -4.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* مؤشرات الشرائح */
.hero__dots { display: flex; gap: .55rem; margin-top: var(--sp-10); }
.hero__dot {
  width: 34px; height: 3px; border-radius: 2px; background: var(--line-2);
  overflow: hidden; position: relative; cursor: pointer; transition: background var(--t-base);
}
.hero__dot:hover { background: var(--line-3); }
.hero__dot i { position: absolute; inset: 0; inset-inline-end: 100%; background: var(--grad-brand); }
.hero__dot.is-active i { animation: dotfill 7s linear forwards; }
@keyframes dotfill { to { inset-inline-end: 0; } }

/* شريط الإحصائيات */
.stats-bar {
  position: relative; z-index: 3; margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line-1);
  border: 1px solid var(--line-1); border-radius: var(--r-lg); overflow: hidden;
}
.stat { background: rgba(var(--rgb-bg-2),.86); padding: 1.4rem 1.2rem; text-align: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.stat b {
  display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800;
  color: var(--text-1); line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat b .plus { color: var(--cyan-400); }
.stat > span { display: block; font-size: var(--fs-2xs); color: var(--text-4); margin-top: .35rem; letter-spacing: .04em; }
.stat b > span { display: inline; }

/* ---------------------------------------------------------------
   7) شريط الشعارات المتحرك
   --------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; padding-block: var(--sp-6);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: clamp(2rem, 5vw, 4rem); width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

.logo-chip {
  flex: none; height: 72px; min-width: 176px; padding: 0 1.4rem;
  display: grid; place-items: center; border-radius: var(--r-md);
  background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.14);
  transition: all var(--t-base) var(--ease);
}
.logo-chip img {
  /* الارتفاع يُحسب لكل شعار في components.js لتساوي المساحة البصرية */
  max-height: 44px; max-width: 152px; width: auto; object-fit: contain;
  opacity: .92; transition: opacity var(--t-base), transform var(--t-base);
}
.logo-chip:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--glow-brand); }
.logo-chip:hover img { opacity: 1; transform: scale(1.05); }
.logo-chip__txt { color: var(--text-3); font-weight: 650; font-size: var(--fs-sm); letter-spacing: .02em; }

/* شبكة شعارات ثابتة */
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: clamp(.7rem, 1.4vw, 1.1rem); background: none; border: 0; border-radius: 0; overflow: visible;
}
.logo-cell {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  background: none; border: 0; padding: 0; position: relative;
  transition: transform var(--t-base) var(--ease);
}
.logo-cell__box {
  width: 100%; aspect-ratio: 16/10; display: grid; place-items: center; padding: 1.1rem 1.2rem;
  border-radius: var(--r-md); background: #F3F6FA;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 22px -14px rgba(0,0,0,.75);
  transition: background var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.logo-cell img {
  max-height: 60px; max-width: 88%; width: auto; object-fit: contain;
  opacity: .93; transition: opacity var(--t-base), transform var(--t-base) var(--ease);
}
/* بديل الشعار غير المتوفّر — علامة محايدة، والاسم يظهر في التسمية أسفلها */
.logo-cell__mark { display: grid; place-items: center; color: #94A9C4; opacity: .55; }
.logo-cell__mark svg { width: 30px; height: 30px; }
.logo-cell figcaption {
  font-size: var(--fs-2xs); color: var(--text-4); text-align: center; line-height: 1.5;
  transition: color var(--t-base); padding-inline: .2rem;
}
.logo-cell:hover { transform: translateY(-4px); }
.logo-cell:hover .logo-cell__box {
  background: #fff; border-color: rgba(var(--rgb-brand-400),.45);
  box-shadow: 0 16px 34px -16px rgba(var(--rgb-brand),.7);
}
.logo-cell:hover img { opacity: 1; transform: scale(1.05); }
.logo-cell:hover figcaption { color: var(--brand-300); }

/* ---------------------------------------------------------------
   8) بطاقات الخدمات
   --------------------------------------------------------------- */
.svc-card { padding: clamp(1.5rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: var(--sp-4); }
.svc-card__ico {
  width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--line-2); color: var(--brand-300);
  transition: all var(--t-base) var(--ease);
}
.svc-card__ico svg { width: 26px; height: 26px; }
.svc-card:hover .svc-card__ico {
  color: #fff; background: var(--grad-brand); border-color: transparent;
  box-shadow: 0 10px 26px -10px rgba(var(--rgb-brand),.8); transform: scale(1.06);
}
.svc-card h3 { font-size: var(--fs-lg); }
.svc-card p { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.75; }
.svc-card__list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .4rem; }
.svc-card__list li {
  font-size: var(--fs-3xs); color: var(--text-4); padding: .28rem .6rem;
  border-radius: var(--r-xs); background: rgba(var(--rgb-line),.06); border: 1px solid var(--line-1);
}
.svc-card__num {
  position: absolute; top: 1rem; inset-inline-end: 1.2rem;
  font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-4); opacity: .5;
}

/* شبكة الخدمات المميزة */
.svc-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.svc-grid .card--wide { grid-column: span 2; }
@media (max-width: 900px) { .svc-grid .card--wide { grid-column: span 1; } }

/* ---------------------------------------------------------------
   9) المنتجات
   --------------------------------------------------------------- */
.prod-card { display: flex; flex-direction: column; }
.prod-card__media {
  position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, #1C2941, #131D30);
  display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line-1);
}
.prod-card__media img { position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; padding: .55rem;
  transition: transform var(--t-slow) var(--ease-out); }
.prod-card:hover .prod-card__media img { transform: scale(1.05); }
.prod-card__media .ph { position: relative; z-index: 1; color: var(--bg-0); opacity: .28; }
.prod-card__media .ph svg { width: 62px; height: 62px; }
.prod-card__brand {
  position: absolute; z-index: 3; top: .85rem; inset-inline-start: .85rem;
  height: 27px; max-width: calc(100% - 5.5rem); padding: 0 .55rem;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  /* رقاقة فاتحة محايدة تبقى مميّزة فوق المنصّة البيضاء */
  background-color: rgba(255,255,255,1);
  background-image: linear-gradient(180deg, rgba(var(--rgb-line),.10), rgba(var(--rgb-line),.22));
  border: 1px solid rgba(var(--rgb-line),.55); border-radius: var(--r-sm);
  box-shadow: 0 3px 10px -5px rgba(0,0,0,.45);
}
.prod-card__brand img {
  height: 15px; width: auto; max-width: 96px; object-fit: contain;
  filter: none; opacity: 1; padding: 0;
}
.prod-card__brand span {
  font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .01em;
  color: var(--bg-0); white-space: nowrap;
}
.prod-card__badge { position: absolute; z-index: 3; top: .85rem; inset-inline-end: .85rem; }
.prod-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prod-card__body h3 { font-size: var(--fs-md); font-weight: 650; line-height: 1.5; }
.prod-card__model { font-family: var(--font-mono); font-size: var(--fs-3xs); color: var(--cyan-400); letter-spacing: .02em; }
.prod-card__body p { font-size: var(--fs-xs); color: var(--text-4); line-height: 1.65; }
.prod-card__foot {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}

/* مرشحات */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-8); }
.filter-btn {
  padding: .5rem 1.05rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-3); background: rgba(var(--rgb-line),.05); border: 1px solid var(--line-1);
  transition: all var(--t-fast);
}
.filter-btn:hover { color: var(--text-1); border-color: var(--line-3); }
.filter-btn.is-active { color: #fff; background: var(--grad-brand); border-color: transparent; box-shadow: 0 6px 18px -8px rgba(var(--rgb-brand),.8); }
.filter-btn .n { opacity: .6; font-family: var(--font-mono); font-size: .9em; margin-inline-start: .3rem; }

/* شريط بحث */
.searchbox { position: relative; max-width: 420px; width: 100%; }
.searchbox input {
  width: 100%; padding: .8rem 2.6rem .8rem 1rem; border-radius: var(--r-pill);
  background: var(--surface-1); border: 1px solid var(--line-2); color: var(--text-1); font-size: var(--fs-sm);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
[dir="rtl"] .searchbox input { padding: .8rem 2.6rem .8rem 1rem; }
[dir="ltr"] .searchbox input { padding: .8rem 1rem .8rem 2.6rem; }
.searchbox input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(var(--rgb-brand),.15); }
.searchbox svg {
  position: absolute; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-4);
}
[dir="rtl"] .searchbox svg { inset-inline-start: auto; right: 1rem; }
[dir="ltr"] .searchbox svg { left: 1rem; }

/* ---------------------------------------------------------------
   10) المشاريع
   --------------------------------------------------------------- */
.proj-card { display: flex; flex-direction: column; }
.proj-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(150deg, #1C2941, #131D30); }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.proj-card:hover .proj-card__media img { transform: scale(1.08); }
.proj-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(var(--rgb-bg-0),.9) 100%);
}
.proj-card__logo {
  position: absolute; top: .8rem; inset-inline-start: .8rem; z-index: 2;
  height: 40px; padding: 0 .7rem; display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.95); border-radius: var(--r-sm);
}
.proj-card__logo img { height: 22px; width: auto; object-fit: contain; }
.proj-card__meta {
  position: absolute; inset-inline: 1rem; bottom: .9rem; z-index: 2;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.proj-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.proj-card__body h3 { font-size: var(--fs-md); line-height: 1.5; }
.proj-card__client { font-size: var(--fs-xs); color: var(--brand-300); font-weight: 600; }
.proj-card__body p { font-size: var(--fs-xs); color: var(--text-4); line-height: 1.7; }
.proj-card__scope { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .6rem; }

/* صف مشاريع مضغوط (جدول التنفيذ) */
.exec-table { width: 100%; border: 1px solid var(--line-1); border-radius: var(--r-lg); overflow: hidden; }
.exec-table table { font-size: var(--fs-sm); }
.exec-table th {
  background: var(--surface-2); color: var(--text-2); font-weight: 650; text-align: start;
  padding: .95rem 1.1rem; font-size: var(--fs-xs); letter-spacing: .03em; border-bottom: 1px solid var(--line-2);
}
.exec-table td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-1); color: var(--text-3); vertical-align: top; }
.exec-table tbody tr { transition: background var(--t-fast); }
.exec-table tbody tr:hover { background: rgba(var(--rgb-line),.04); }
.exec-table tbody tr:last-child td { border-bottom: 0; }
.exec-table td:first-child { color: var(--text-1); font-weight: 600; }
.exec-table .idx { font-family: var(--font-mono); color: var(--text-4); font-size: var(--fs-2xs); width: 48px; }

/* ---------------------------------------------------------------
   11) معرض الصور
   --------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.gal-item {
  position: relative; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4/3; background: var(--surface-1); border: 1px solid var(--line-1);
}
.gal-item:nth-child(6n+1) { grid-row: span 2; aspect-ratio: 4/6.4; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter var(--t-base); }
.gal-item:hover img { transform: scale(1.07); }
.gal-item__ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; gap: .3rem; opacity: 0; transition: opacity var(--t-base);
  background: linear-gradient(180deg, transparent 40%, rgba(var(--rgb-bg-0),.92));
}
.gal-item:hover .gal-item__ov { opacity: 1; }
.gal-item__ov b { color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.gal-item__ov span { color: var(--text-3); font-size: var(--fs-2xs); }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal); display: none;
  background: rgba(var(--rgb-bg-0),.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 82vh; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--sh-xl); }
.lightbox__cap { position: absolute; inset-inline: 0; bottom: 2rem; text-align: center; color: var(--text-2); font-size: var(--fs-sm); }
.lightbox__x, .lightbox__nav {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(var(--rgb-surface-1),.8); color: var(--text-1);
  display: grid; place-items: center; transition: all var(--t-fast);
}
.lightbox__x:hover, .lightbox__nav:hover { background: var(--brand-600); border-color: transparent; }
.lightbox__x { top: 1.5rem; inset-inline-end: 1.5rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { inset-inline-start: 1.5rem; }
.lightbox__nav--next { inset-inline-end: 1.5rem; }
.lightbox svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------
   12) الهيكل التنظيمي
   --------------------------------------------------------------- */
.org { --org-line: var(--line-2); display: flex; flex-direction: column; align-items: center; gap: 0; overflow-x: auto; padding-block: 1rem; }
.org__level { display: flex; justify-content: center; gap: clamp(.75rem, 2vw, 1.6rem); position: relative; flex-wrap: wrap; }
.org__conn { width: 1px; height: 34px; background: linear-gradient(var(--org-line), transparent); }
.org__conn--h { position: relative; height: 34px; width: 100%; }
.org__conn--h::before {
  content: ''; position: absolute; top: 0; inset-inline: 15%; height: 1px; background: var(--org-line);
}
.org-node {
  min-width: 190px; max-width: 240px; padding: 1rem 1.1rem; border-radius: var(--r-md);
  background: var(--surface-1); border: 1px solid var(--line-2); text-align: center;
  position: relative; transition: all var(--t-base) var(--ease);
}
.org-node::before {
  content: ''; position: absolute; top: -34px; inset-inline-start: 50%; width: 1px; height: 34px;
  background: var(--org-line);
}
.org__level:first-child .org-node::before { display: none; }
.org-node:hover { border-color: var(--brand-500); box-shadow: var(--glow-brand); transform: translateY(-3px); }
.org-node__ico {
  width: 40px; height: 40px; border-radius: var(--r-sm); margin: 0 auto .7rem;
  display: grid; place-items: center; background: var(--grad-brand-soft);
  border: 1px solid var(--line-1); color: var(--brand-300);
}
.org-node__ico svg { width: 20px; height: 20px; }
.org-node b { display: block; color: var(--text-1); font-size: var(--fs-sm); font-weight: 650; line-height: 1.5; }
.org-node span { display: block; color: var(--text-4); font-size: var(--fs-2xs); margin-top: .25rem; }
.org-node--lead { background: var(--grad-brand); border-color: transparent; box-shadow: 0 14px 40px -14px rgba(var(--rgb-brand),.8); }
.org-node--lead b, .org-node--lead span { color: #fff; }
.org-node--lead span { opacity: .8; }
.org-node--lead .org-node__ico { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); color: #fff; }

/* ---------------------------------------------------------------
   13) الخط الزمني ومنهجية العمل
   --------------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--line-1); counter-increment: step; }
.step::after {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 1rem; inset-inline-end: 1.2rem;
  font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700;
  color: var(--brand-500); opacity: .18;
}
.step__ico { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--grad-brand-soft); color: var(--cyan-300); border: 1px solid var(--line-1); margin-bottom: .9rem; }
.step__ico svg { width: 20px; height: 20px; }
.step h4 { font-size: var(--fs-md); margin-bottom: .45rem; }
.step p { font-size: var(--fs-xs); color: var(--text-4); line-height: 1.7; }

.timeline { position: relative; padding-inline-start: 2rem; }
.timeline::before {
  content: ''; position: absolute; inset-inline-start: 6px; top: .5rem; bottom: .5rem; width: 1px;
  background: linear-gradient(var(--brand-500), var(--cyan-500), transparent);
}
.timeline li { position: relative; padding-bottom: 1.9rem; }
.timeline li::before {
  content: ''; position: absolute; inset-inline-start: -2rem; top: .45rem;
  width: 13px; height: 13px; border-radius: 50%; background: var(--bg-1);
  border: 2px solid var(--brand-500); box-shadow: 0 0 0 4px rgba(var(--rgb-brand),.14);
}
.timeline b { display: block; color: var(--text-1); font-size: var(--fs-md); }
.timeline .yr { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--cyan-400); letter-spacing: .05em; }
.timeline p { font-size: var(--fs-sm); color: var(--text-4); margin-top: .25rem; }

/* ---------------------------------------------------------------
   14) النماذج
   --------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field > label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.field > label .req { color: var(--danger); margin-inline-start: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--r-sm);
  background: var(--surface-1); border: 1px solid var(--line-2); color: var(--text-1);
  font-size: var(--fs-sm); transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238296B0' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1rem center; padding-inline-end: 1rem;
}
[dir="ltr"] .field select { background-position: right 1rem center; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(var(--rgb-brand),.15);
}
.field input:invalid:not(:placeholder-shown) { border-color: rgba(232,89,95,.5); }
.field .hint { font-size: var(--fs-3xs); color: var(--text-4); }
.field .err { font-size: var(--fs-3xs); color: var(--danger); display: none; }
.field.has-error .err { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }

/* اختيار نوع العميل */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center;
  padding: .95rem .7rem; border-radius: var(--r-md); cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--line-2);
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-3);
  transition: all var(--t-fast);
}
.seg label svg { width: 20px; height: 20px; }
.seg label:hover { border-color: var(--line-3); color: var(--text-1); }
.seg input:checked + label {
  border-color: var(--brand-500); color: var(--text-1);
  background: rgba(var(--rgb-brand),.12); box-shadow: 0 0 0 1px var(--brand-500) inset;
}

.checkline { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-xs); color: var(--text-3); }
.checkline input { width: 17px; height: 17px; margin-top: .2rem; accent-color: var(--brand-500); flex: none; }

.form-note {
  display: flex; gap: .7rem; padding: .9rem 1.05rem; border-radius: var(--r-sm);
  background: rgba(var(--rgb-brand),.07); border: 1px solid rgba(var(--rgb-brand),.2);
  font-size: var(--fs-xs); color: var(--text-3); line-height: 1.65;
}
.form-note svg { width: 17px; height: 17px; color: var(--brand-400); flex: none; margin-top: .15rem; }

.alert { display: flex; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: .18rem; }
.alert--ok { background: var(--ok-dim); border: 1px solid rgba(41,192,138,.3); color: #8FE3C4; }
.alert--err { background: var(--danger-dim); border: 1px solid rgba(232,89,95,.3); color: #F5A9AC; }

/* شاشة نجاح الطلب */
.success-panel { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); }
.success-panel__ico {
  width: 76px; height: 76px; margin: 0 auto var(--sp-5); border-radius: 50%;
  display: grid; place-items: center; color: var(--ok);
  background: var(--ok-dim); border: 1px solid rgba(41,192,138,.35);
  animation: pop .5s var(--ease-spring);
}
.success-panel__ico svg { width: 36px; height: 36px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-panel .ref {
  display: inline-block; font-family: var(--font-mono); font-size: var(--fs-lg); color: var(--cyan-300);
  padding: .5rem 1.1rem; border-radius: var(--r-sm); margin-block: var(--sp-4);
  background: rgba(var(--rgb-accent),.1); border: 1px dashed rgba(var(--rgb-accent),.35); letter-spacing: .08em;
}

/* ---------------------------------------------------------------
   15) التواصل
   --------------------------------------------------------------- */
.contact-card {
  display: flex; gap: 1rem; padding: 1.3rem; border-radius: var(--r-md);
  background: var(--surface-1); border: 1px solid var(--line-1); transition: all var(--t-base);
}
.contact-card:hover { border-color: var(--line-3); transform: translateY(-3px); }
.contact-card__ico {
  width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--line-1); color: var(--brand-300);
}
.contact-card__ico svg { width: 21px; height: 21px; }
.contact-card b { display: block; color: var(--text-1); font-size: var(--fs-sm); margin-bottom: .25rem; }
.contact-card a, .contact-card span { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.6; word-break: break-word; }
.contact-card a:hover { color: var(--brand-300); }

.map-frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2);
  filter: grayscale(1) invert(.92) hue-rotate(180deg) contrast(.88) brightness(.9);
  transition: filter var(--t-slow);
}
.map-frame:hover { filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------------------------------------------------------------
   16) قسم CTA
   --------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center;
  background: linear-gradient(135deg, var(--brand-900) 0%, #182643 60%, var(--bg-0) 100%);
  border: 1px solid var(--line-2);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--rgb-brand),.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(var(--rgb-accent),.3), transparent 45%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p { color: var(--text-2); max-width: 620px; margin: 0 auto var(--sp-8); font-size: var(--fs-lg); }
.cta-band__btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   17) صفحة داخلية / رأس الصفحة
   --------------------------------------------------------------- */
.pagehead {
  position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden;
  border-bottom: 1px solid var(--line-1);
}
.pagehead__bg { position: absolute; inset: 0; z-index: 0; }
.pagehead__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .46;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000 45%, transparent 100%);
}
.pagehead__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--rgb-bg-0),.85) 0%, rgba(var(--rgb-bg-0),.6) 50%, var(--bg-1) 100%);
}
.pagehead .container { position: relative; z-index: 1; }
.pagehead h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: var(--sp-3); }
.pagehead p { font-size: var(--fs-lg); color: var(--text-3); max-width: 70ch; }

.crumbs { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-2xs); color: var(--text-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand-300); }
.crumbs svg { width: 12px; height: 12px; opacity: .5; }
[dir="rtl"] .crumbs svg { transform: scaleX(-1); }

/* ---------------------------------------------------------------
   18) التذييل
   --------------------------------------------------------------- */
.footer { position: relative; background: var(--bg-0); border-top: 1px solid var(--line-1); overflow: hidden; }
.footer::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px; background: var(--grad-line);
}
.footer__glow {
  position: absolute; width: 700px; height: 400px; top: -220px; inset-inline-start: 50%;
  transform: translateX(-50%); border-radius: 50%; filter: blur(100px);
  background: radial-gradient(circle, rgba(var(--rgb-brand),.22), transparent 70%); pointer-events: none;
}
.footer__main { position: relative; padding-block: clamp(3rem, 6vw, 4.5rem); display: grid; gap: var(--sp-10);
  grid-template-columns: minmax(240px, 1.35fr) repeat(auto-fit, minmax(150px, 1fr)); }
.footer__about p { font-size: var(--fs-sm); color: var(--text-4); line-height: 1.85; margin-block: var(--sp-4); max-width: 42ch; }
.footer h5 { color: var(--text-1); font-size: var(--fs-sm); font-weight: 650; margin-bottom: var(--sp-4); letter-spacing: .01em; }
.footer__links li { margin-bottom: .6rem; }
.footer__links a { font-size: var(--fs-sm); color: var(--text-4); transition: color var(--t-fast), padding var(--t-fast); }
.footer__links a:hover { color: var(--brand-300); padding-inline-start: .3rem; }
.footer__contact li { display: flex; gap: .6rem; margin-bottom: .8rem; font-size: var(--fs-sm); color: var(--text-4); line-height: 1.6; }
.footer__contact svg { width: 16px; height: 16px; color: var(--brand-400); flex: none; margin-top: .25rem; }
.footer__contact a:hover { color: var(--brand-300); }

.social { display: flex; gap: .5rem; margin-top: var(--sp-5); }
.social a {
  width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(var(--rgb-line),.06); border: 1px solid var(--line-1); color: var(--text-3);
  transition: all var(--t-fast);
}
.social a:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }

.footer__bottom {
  border-top: 1px solid var(--line-1); padding-block: 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--fs-2xs); color: var(--text-4);
}
.footer__bottom a:hover { color: var(--brand-300); }
.footer__legal { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* واتساب عائم */
.fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: var(--z-sticky);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.6); transition: transform var(--t-base) var(--ease-spring);
}
.fab:hover { transform: scale(1.09); }
.fab svg { width: 27px; height: 27px; }
.fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.6); animation: ring 2.6s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* زر العودة للأعلى */
.to-top {
  position: fixed; inset-inline-end: 22px; bottom: 88px; z-index: var(--z-sticky);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--rgb-surface-1),.9); border: 1px solid var(--line-2); color: var(--text-2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--t-base) var(--ease);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; border-color: var(--brand-500); background: var(--brand-700); }
.to-top svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------
   19) حركات الظهور
   --------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------
   20) الاستجابة
   --------------------------------------------------------------- */
@media (max-width: 1280px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hero__slide { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .topbar { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .container { padding-inline: var(--sp-4); }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.5rem); }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: span 2; }
  .gal-item:nth-child(6n+1) { grid-row: auto; aspect-ratio: 4/3; }
  .exec-table { overflow-x: auto; }
  .exec-table table { min-width: 620px; }
  .lightbox__nav { width: 40px; height: 40px; }
}
@media (max-width: 460px) {
  .footer__main { grid-template-columns: 1fr; }
  .footer__about { grid-column: span 1; }
  .stats-bar { grid-template-columns: 1fr; }
}

/* أدوات مساعدة */
.mt-0{margin-top:0}.mt-2{margin-top:var(--sp-2)}.mt-4{margin-top:var(--sp-4)}
.mt-6{margin-top:var(--sp-6)}.mt-8{margin-top:var(--sp-8)}.mt-12{margin-top:var(--sp-12)}
.mb-4{margin-bottom:var(--sp-4)}.mb-6{margin-bottom:var(--sp-6)}.mb-8{margin-bottom:var(--sp-8)}
.text-center{text-align:center}.text-start{text-align:start}
.muted{color:var(--text-4)}.small{font-size:var(--fs-xs)}
.mono{font-family:var(--font-mono)}
.hide{display:none !important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.full{width:100%}
.empty-state{text-align:center;padding:clamp(2.5rem,6vw,4.5rem) 1rem;color:var(--text-4)}
.empty-state svg{width:52px;height:52px;margin:0 auto 1rem;opacity:.35}


/* الأسئلة الشائعة */
details summary::-webkit-details-marker { display: none; }
.faq-chev { width: 18px; height: 18px; flex: none; color: var(--text-4); transition: transform var(--t-base); }
details[open] .faq-chev { transform: rotate(180deg); color: var(--brand-400); }
details.card { transition: border-color var(--t-base); }
details[open].card { border-color: var(--line-3); }

/* مجموعات حقول نموذج الطلب */
.seg--5 { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.type-group { display: grid; gap: var(--sp-5); animation: fieldIn .32s var(--ease-out); }
.type-group[hidden] { display: none; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.field[hidden] { display: none; }
#typeHint { color: var(--cyan-300); font-size: var(--fs-2xs); }

/* ---------------------------------------------------------------
   غرفة العمليات الحيّة
   --------------------------------------------------------------- */
.noc__wrap {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .95fr);
  gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch;
}
.noc__stage {
  position: relative; min-height: clamp(380px, 52vw, 560px); border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(var(--rgb-brand),.10), transparent 70%),
    linear-gradient(160deg, var(--surface-1), var(--bg-0));
  border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: inset 0 0 90px -30px rgba(var(--rgb-brand),.5);
}
.noc__stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--rgb-line),.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--rgb-line),.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 88%);
}
.noc__stage canvas { position: absolute; inset: 0; display: block; }

.noc__badge {
  position: absolute; top: 1rem; inset-inline-start: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .75rem; border-radius: var(--r-pill);
  background: rgba(var(--rgb-bg-0),.75); border: 1px solid var(--line-2);
  font-size: var(--fs-3xs); font-weight: 700; letter-spacing: .12em; color: var(--text-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.noc__live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(41,192,138,.7); animation: nocLive 1.9s var(--ease) infinite;
}
@keyframes nocLive {
  0% { box-shadow: 0 0 0 0 rgba(41,192,138,.65); }
  70% { box-shadow: 0 0 0 8px rgba(41,192,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(41,192,138,0); }
}
.noc__attack { position: absolute; bottom: 1rem; inset-inline-start: 1rem; z-index: 2;
  background: rgba(var(--rgb-bg-0),.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.noc__side { display: flex; flex-direction: column; gap: .8rem; }
.noc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.noc__stat {
  background: var(--surface-1); border: 1px solid var(--line-1);
  border-radius: var(--r-md); padding: .85rem .9rem;
}
.noc__stat-ico { display: block; color: var(--brand-300); margin-bottom: .35rem; }
.noc__stat-ico svg { width: 17px; height: 17px; }
.noc__stat b {
  display: block; color: var(--text-1); font-size: var(--fs-xl); font-weight: 750;
  line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.noc__stat span { display: block; color: var(--text-4); font-size: var(--fs-3xs); margin-top: .15rem; }

.noc__info {
  background: var(--grad-brand-soft); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 1rem 1.05rem; min-height: 104px;
}
.noc__info b { display: block; color: var(--text-1); font-size: var(--fs-md); margin-bottom: .3rem; }
.noc__info p { color: var(--text-3); font-size: var(--fs-xs); line-height: 1.8; }

.noc__feedbox {
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: var(--r-md); padding: .8rem .9rem; flex: 1;
}
.noc__feedhead {
  display: flex; align-items: center; gap: .4rem; color: var(--text-4);
  font-size: var(--fs-3xs); letter-spacing: .08em; margin-bottom: .6rem;
}
.noc__feedhead svg { width: 14px; height: 14px; }
.noc-feed { display: grid; gap: .35rem; }
.noc-feed__row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
  padding: .42rem .55rem; border-radius: var(--r-xs);
  background: rgba(var(--rgb-line),.05); font-size: var(--fs-3xs);
  animation: nocRow .4s var(--ease-out);
}
@keyframes nocRow { from { opacity: 0; transform: translateY(-5px); } }
.noc-feed__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.noc-feed__row--block .noc-feed__dot { background: var(--danger); }
.noc-feed__row--warn .noc-feed__dot { background: var(--warn); }
.noc-feed__txt { color: var(--text-2); line-height: 1.6; }
.noc-feed__time { color: var(--text-4); font-family: var(--font-mono); font-size: 10px; }
.noc__note { margin-top: .2rem; line-height: 1.7; }

@media (max-width: 900px) {
  .noc__wrap { grid-template-columns: 1fr; }
  .noc__stage { min-height: 400px; }
  .noc__stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .noc__stats { grid-template-columns: 1fr 1fr; }
  .noc__attack { inset-inline: 1rem; text-align: center; justify-content: center; }
}

/* ---------------------------------------------------------------
   منصّة عرض المنتج — Product stage
   لوح داخلي فاتح خلف صورة المنتج حتى تبدو الصور ذات الخلفية البيضاء
   مندمجة مع الثيم الداكن بدل أن تبدو ملصقة عليه.
   يُطبَّق على .prod-card__media أينما استُخدمت (البطاقات + صفحة المنتج).
   --------------------------------------------------------------- */
.prod-card__media::before {
  content: "";
  position: absolute; z-index: 0; inset: 9px;
  border-radius: var(--r-md);
  /* أبيض صافٍ ومسطّح: يجعل صور المنتجات ذات الخلفية البيضاء تندمج تماماً
     بلا حافة داخلية ظاهرة. العمق يأتي من الإطار والظل، لا من تدرّج. */
  background-color: rgba(255,255,255,1);
  box-shadow:
    inset 0 0 0 1px rgba(var(--rgb-line),.45),
    0 10px 26px -14px rgba(0,0,0,.75);
  transition: box-shadow var(--t-base) var(--ease);
  pointer-events: none;
}
.prod-card:hover .prod-card__media::before {
  box-shadow:
    inset 0 0 0 1px rgba(var(--rgb-brand),.42),
    0 14px 30px -14px rgba(0,0,0,.8);
}
/* الصور المصغّرة في صفحة المنتج: هامش أضيق */
.prod-card__media[style*="aspect-ratio:1"]::before { inset: 6px; border-radius: var(--r-sm); }
.prod-card__media[style*="aspect-ratio:1"] img { padding: 1rem; }

@media (max-width: 560px) {
  .prod-card__media::before { inset: 7px; }
  .prod-card__media img { padding: 1.35rem; }
  .prod-card__brand { height: 24px; top: .7rem; inset-inline-start: .7rem; }
  .prod-card__brand img { height: 13px; max-width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .prod-card:hover .prod-card__media img { transform: none; }
}

/* =====================================================================
   أداة فحص الجاهزية — /assessment
   ===================================================================== */
.as-shell {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  min-height: 420px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.as-shell::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent, var(--brand-300)), transparent);
  opacity: .7;
}
.as-loading {
  margin: auto; display: flex; align-items: center; gap: .6rem;
  color: var(--text-3); font-size: .95rem;
}
.as-loading svg { width: 18px; height: 18px; animation: as-spin 1.6s linear infinite; }
@keyframes as-spin { to { transform: rotate(360deg); } }

.as-top { margin-bottom: 1.6rem; }
.as-step {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .7rem; flex-wrap: wrap;
}
.as-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 700; color: var(--brand-300);
  background: rgba(var(--rgb-brand), .1);
  border: 1px solid rgba(var(--rgb-brand), .22);
  padding: .34rem .75rem; border-radius: var(--r-pill);
}
.as-badge svg { width: 15px; height: 15px; }
.as-count { font-size: .8rem; color: var(--text-4); font-variant-numeric: tabular-nums; }

.as-bar {
  height: 6px; border-radius: var(--r-pill);
  background: rgba(var(--rgb-line), .5); overflow: hidden;
}
.as-bar > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}
.as-bar--sm { height: 5px; }
.as-bar .lv-ok      { background: linear-gradient(90deg, var(--ok), #6ee7b7); }
.as-bar .lv-brand   { background: linear-gradient(90deg, var(--brand-600), var(--brand-400)); }
.as-bar .lv-warn    { background: linear-gradient(90deg, var(--warn), #fbbf24); }
.as-bar .lv-danger  { background: linear-gradient(90deg, var(--danger), #f87171); }

.as-body { flex: 1; animation: as-in .32s ease both; }
@keyframes as-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .as-body { animation: none; } }

.as-q {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.5;
  margin: 0 0 .5rem; color: var(--text-1);
}
.as-hint { font-size: .88rem; color: var(--text-3); margin: 0 0 1.1rem; }
.as-q + .as-opts { margin-top: 1.2rem; }

.as-opts { display: grid; gap: .6rem; }
.as-opts--grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.as-opt {
  display: flex; align-items: center; gap: .8rem; width: 100%;
  text-align: start; font: inherit; color: var(--text-2); cursor: pointer;
  background: rgba(var(--rgb-surface-1), .55);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: .95rem 1.1rem;
  transition: border-color .18s, background .18s, transform .18s, color .18s;
}
.as-opt:hover { border-color: var(--brand-600); background: rgba(var(--rgb-brand), .07); color: var(--text-1); }
.as-opt:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.as-opt.is-on {
  border-color: var(--brand-500); color: var(--text-1);
  background: rgba(var(--rgb-brand), .13);
  box-shadow: 0 0 0 1px rgba(var(--rgb-brand), .35) inset;
}
.as-opt__txt { flex: 1; font-weight: 600; font-size: .96rem; line-height: 1.45; }
.as-opt__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: var(--r-sm); background: rgba(var(--rgb-brand), .12); color: var(--brand-300); }
.as-opt__ico svg { width: 19px; height: 19px; }
.as-opt__tick {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line-3); display: grid; place-items: center;
  color: transparent; transition: all .18s;
}
.as-opt__tick svg { width: 13px; height: 13px; }
.as-opt.is-on .as-opt__tick { background: var(--brand-500); border-color: var(--brand-500); color: var(--text-on-brand); }

.as-nav {
  display: flex; gap: .6rem; align-items: center;
  margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line-1);
}
.as-nav #asNext { margin-inline-start: auto; }
.as-nav .btn[disabled] { opacity: .4; pointer-events: none; }
.as-nav svg { transform: scaleX(-1); }

.as-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.as-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .as-row { grid-template-columns: 1fr; } }
.as-fine { font-size: .8rem; color: var(--text-4); text-align: center; margin: 0; }

/* --------------------- شريط الثقة --------------------- */
.as-trust {
  display: grid; gap: 1rem; margin-top: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.as-trust__item {
  display: grid; gap: .3rem; padding: 1.1rem 1.2rem;
  border: 1px solid var(--line-1); border-radius: var(--r-md);
  background: rgba(var(--rgb-surface-1), .4);
}
.as-trust__item svg { width: 20px; height: 20px; color: var(--brand-400); }
.as-trust__item b { font-size: .95rem; color: var(--text-1); }
.as-trust__item span { font-size: .84rem; color: var(--text-3); line-height: 1.6; }

/* --------------------- النتيجة --------------------- */
.as-result { animation: as-in .4s ease both; }
.as-h {
  font-size: 1.05rem; margin: 2.2rem 0 .9rem; color: var(--text-1);
  padding-inline-start: .7rem; border-inline-start: 3px solid var(--brand-500);
}

.as-score {
  display: flex; gap: clamp(1.2rem, 4vw, 2.4rem); align-items: center;
  flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line-1);
}
.as-score__ring {
  --c: var(--brand-500);
  width: 148px; height: 148px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(var(--rgb-line), .55) 0);
  display: grid; place-items: center; position: relative;
  animation: as-ring .9s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes as-ring { from { --p: 0; opacity: .4; } }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.as-score--ok      .as-score__ring { --c: var(--ok); }
.as-score--brand   .as-score__ring { --c: var(--brand-500); }
.as-score--warn    .as-score__ring { --c: var(--warn); }
.as-score--danger  .as-score__ring { --c: var(--danger); }
.as-score__in {
  width: 118px; height: 118px; border-radius: 50%; background: var(--bg-1);
  display: grid; place-items: center; align-content: center; gap: .1rem;
}
.as-score__in b { font-size: 2.5rem; line-height: 1; color: var(--text-1); font-variant-numeric: tabular-nums; }
.as-score__in b small { font-size: 1rem; color: var(--text-3); }
.as-score__in span { font-size: .85rem; font-weight: 700; color: var(--text-2); }
.as-score__txt { flex: 1; min-width: 240px; }
.as-score__txt h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.as-score__txt p { margin: 0 0 .9rem; color: var(--text-2); line-height: 1.75; }

.as-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.as-chip {
  font-size: .8rem; font-weight: 700; padding: .3rem .7rem;
  border-radius: var(--r-pill); border: 1px solid currentColor;
}
.as-chip.is-critical, .as-sev.is-critical { color: var(--danger); }
.as-chip.is-high     { color: #fb923c; }
.as-chip.is-medium   { color: var(--warn); }
.as-chip.is-improve  { color: var(--brand-300); }
.as-chip.is-ok       { color: var(--ok); }

.as-domains { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.as-domain { padding: .9rem 1rem; border: 1px solid var(--line-1); border-radius: var(--r-md);
  background: rgba(var(--rgb-surface-1), .4); }
.as-domain__top { display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.as-domain__top svg { width: 17px; height: 17px; color: var(--brand-400); }
.as-domain__top b { flex: 1; font-size: .9rem; color: var(--text-2); }
.as-domain__top span { font-size: .88rem; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }

.as-findings { display: grid; gap: .55rem; }
.as-finding {
  border: 1px solid var(--line-1); border-radius: var(--r-md);
  background: rgba(var(--rgb-surface-1), .4); overflow: hidden;
  border-inline-start: 3px solid var(--line-3);
}
.as-finding.is-critical { border-inline-start-color: var(--danger); }
.as-finding.is-high     { border-inline-start-color: #fb923c; }
.as-finding.is-medium   { border-inline-start-color: var(--warn); }
.as-finding.is-improve  { border-inline-start-color: var(--brand-500); }
.as-finding > summary {
  display: flex; align-items: center; gap: .7rem; cursor: pointer;
  padding: .85rem 1rem; list-style: none; font-size: .95rem;
}
.as-finding > summary::-webkit-details-marker { display: none; }
.as-finding > summary b { flex: 1; font-weight: 600; color: var(--text-1); line-height: 1.5; }
.as-finding > summary svg { width: 16px; height: 16px; color: var(--text-4); transition: transform .2s; }
.as-finding[open] > summary svg { transform: rotate(180deg); }
.as-sev {
  font-size: .72rem; font-weight: 800; flex: none;
  padding: .22rem .55rem; border-radius: var(--r-xs);
  border: 1px solid currentColor;
}
.as-finding.is-critical .as-sev { color: var(--danger); }
.as-finding.is-high     .as-sev { color: #fb923c; }
.as-finding.is-medium   .as-sev { color: var(--warn); }
.as-finding.is-improve  .as-sev { color: var(--brand-300); }
.as-finding__body { padding: 0 1rem 1rem; border-top: 1px solid var(--line-1); padding-top: .9rem; }
.as-finding__body p { margin: 0 0 .6rem; font-size: .9rem; line-height: 1.8; color: var(--text-2); }
.as-finding__body p b { color: var(--text-1); }
.as-ref { display: flex; align-items: center; gap: .4rem; font-size: .82rem !important; color: var(--text-4) !important; }
.as-ref svg { width: 14px; height: 14px; flex: none; }

.as-replace { display: flex; flex-wrap: wrap; gap: .5rem; }
.as-replace span {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; color: var(--text-2);
  background: rgba(var(--rgb-surface-2), .6); border: 1px solid var(--line-2);
  padding: .45rem .8rem; border-radius: var(--r-pill);
}
.as-replace svg { width: 15px; height: 15px; color: var(--warn); }

.as-compliance {
  margin-top: 1.6rem; padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  border: 1px solid rgba(var(--rgb-danger, 239, 68, 68), .3);
  background: rgba(var(--rgb-danger, 239, 68, 68), .07);
}
.as-compliance > b { display: flex; align-items: center; gap: .5rem; color: var(--danger); font-size: .95rem; }
.as-compliance svg { width: 17px; height: 17px; }
.as-compliance ul { margin: .7rem 0 0; padding-inline-start: 1.2rem; }
.as-compliance li { font-size: .88rem; line-height: 1.9; color: var(--text-2); }
.as-compliance li span { color: var(--text-4); }

.as-tier {
  margin-top: 1.6rem; padding: 1.2rem 1.3rem; border-radius: var(--r-md);
  border: 1px solid rgba(var(--rgb-brand), .3);
  background: linear-gradient(135deg, rgba(var(--rgb-brand), .12), rgba(var(--rgb-brand), .03));
}
.as-tier__head { display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem; }
.as-tier__head svg { width: 19px; height: 19px; color: var(--brand-300); }
.as-tier__head b { font-size: 1.02rem; color: var(--text-1); }
.as-tier p { margin: 0 0 .7rem; color: var(--text-2); line-height: 1.75; font-size: .92rem; }
.as-tier__resp {
  display: inline-block; font-size: .85rem; font-weight: 700; color: var(--brand-200);
  background: rgba(var(--rgb-brand), .15); padding: .35rem .8rem; border-radius: var(--r-pill);
}

.as-cta {
  margin-top: 2rem; padding: 1.4rem; border-radius: var(--r-lg);
  border: 1px solid var(--line-2); background: rgba(var(--rgb-surface-2), .5);
  display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
}
.as-cta > div:first-child { flex: 1; min-width: 260px; }
.as-cta b { display: block; font-size: .95rem; margin-bottom: .35rem; color: var(--text-1); }
.as-cta p { margin: 0; font-size: .89rem; color: var(--text-3); line-height: 1.75; }
.as-cta__btns { display: flex; gap: .6rem; flex-wrap: wrap; }

.as-services {
  margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-size: .87rem; color: var(--text-4);
}
.as-services a {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--brand-300); border: 1px solid var(--line-2);
  padding: .35rem .75rem; border-radius: var(--r-pill); transition: all .18s;
}
.as-services a:hover { border-color: var(--brand-500); background: rgba(var(--rgb-brand), .1); }
.as-services svg { width: 13px; height: 13px; transform: scaleX(-1); }

@media (max-width: 560px) {
  .as-shell { padding: 1.1rem; }
  .as-score { justify-content: center; text-align: center; }
  .as-score__txt { text-align: start; }
  .as-cta__btns .btn { flex: 1; }
}

/* =====================================================================
   البحث داخل الموقع
   ===================================================================== */
.srch-box {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(var(--rgb-surface-1), .7);
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: .5rem .5rem .5rem 1.1rem; margin-bottom: 2rem;
  transition: border-color .2s, box-shadow .2s;
}
.srch-box:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(var(--rgb-brand), .16); }
.srch-box > svg { width: 20px; height: 20px; color: var(--text-4); flex: none; margin-inline-start: .6rem; }
.srch-box input {
  flex: 1; background: none; border: 0; outline: none; font: inherit;
  color: var(--text-1); padding: .55rem 0; min-width: 0;
}
.srch-box input::placeholder { color: var(--text-4); }
.srch-box .btn { flex: none; border-radius: var(--r-pill); }

.srch-empty { color: var(--text-3); text-align: center; line-height: 2; }
.srch-empty b { color: var(--brand-300); font-family: var(--font-mono, monospace); }

.srch-group { margin-bottom: 2.4rem; }
.srch-group__h {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1rem; margin: 0 0 .9rem; color: var(--text-2);
  padding-bottom: .6rem; border-bottom: 1px solid var(--line-1);
}
.srch-group__h svg { width: 18px; height: 18px; color: var(--brand-400); }
.srch-group__h span {
  margin-inline-start: auto; font-size: .8rem; color: var(--text-4);
  background: rgba(var(--rgb-surface-2), .7); padding: .15rem .55rem; border-radius: var(--r-pill);
}

.srch-list { display: grid; gap: .55rem; }
.srch-hit {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; border: 1px solid var(--line-1); border-radius: var(--r-md);
  background: rgba(var(--rgb-surface-1), .45); transition: all .18s;
}
.srch-hit:hover { border-color: var(--brand-600); background: rgba(var(--rgb-brand), .07); transform: translateX(-3px); }
[dir=ltr] .srch-hit:hover { transform: translateX(3px); }
.srch-hit__ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: var(--r-sm); background: rgba(var(--rgb-brand), .1); color: var(--brand-300); }
.srch-hit__ico svg { width: 19px; height: 19px; }
.srch-hit__txt { flex: 1; min-width: 0; display: grid; gap: .18rem; }
.srch-hit__txt b { font-size: .95rem; color: var(--text-1); font-weight: 600; }
.srch-hit__txt span { font-size: .84rem; color: var(--text-3); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.srch-hit__go { flex: none; color: var(--text-4); }
.srch-hit__go svg { width: 16px; height: 16px; }

.srch-faq { border: 1px solid var(--line-1); border-radius: var(--r-md); background: rgba(var(--rgb-surface-1), .45); }
.srch-faq > summary { padding: .85rem 1rem; cursor: pointer; font-weight: 600; color: var(--text-1); font-size: .93rem; }
.srch-faq > p { margin: 0; padding: 0 1rem 1rem; color: var(--text-2); font-size: .89rem; line-height: 1.9; }

.srch-none { text-align: center; padding: 3rem 1rem; }
.srch-none > svg { width: 42px; height: 42px; color: var(--text-4); opacity: .5; }
.srch-none h2 { font-size: 1.2rem; margin: .9rem 0 .5rem; }
.srch-none p { color: var(--text-3); max-width: 46ch; margin: 0 auto 1.4rem; line-height: 1.9; }
.srch-sugg { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; align-items: center; }
.srch-sugg > span { font-size: .84rem; color: var(--text-4); }
.srch-sugg a {
  font-size: .85rem; color: var(--brand-300); border: 1px solid var(--line-2);
  padding: .3rem .7rem; border-radius: var(--r-pill); transition: all .18s;
}
.srch-sugg a:hover { border-color: var(--brand-500); background: rgba(var(--rgb-brand), .1); }

/* زر البحث في الهيدر */
.nav-search {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2);
  background: rgba(var(--rgb-surface-1), .5); transition: all .18s; flex: none;
}
.nav-search:hover { border-color: var(--brand-500); color: var(--brand-300); background: rgba(var(--rgb-brand), .1); }
.nav-search svg { width: 17px; height: 17px; }


/* عارض ورقة المواصفات — iframe لأن CSP تمنع object */
.ds-viewer iframe { width: 100%; height: min(78vh, 900px); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); background: var(--surface-1); display: block; }


/* المعرض قابل للتشغيل بلوحة المفاتيح — يجب أن يظهر التركيز بوضوح */
.gal-item { cursor: zoom-in; }
.gal-item:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: var(--r-md); }
