/* ==========================================================
   عَزْم — الواجهة العامة
   الهوية: ليل كحلي عميق + شريط أزرق مطويّ + نجمة رباعية
   ========================================================== */

:root {
  --brand: 37 99 235;
  --sky: 56 189 248;
  --proj: var(--brand);
  --f-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1200px;
  --grad: linear-gradient(135deg, rgb(var(--brand)) 0%, rgb(var(--sky)) 100%);
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #070D1F;
  --bg-2: #0A1430;
  --surface: #0D1835;
  --surface-2: #122046;
  --line: rgba(150, 175, 230, .13);
  --line-2: rgba(150, 175, 230, .22);
  --text: #EAF0FC;
  --muted: #98A8CA;
  --faint: #62729A;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -24px rgba(0, 0, 0, .7);
  --glow-a: .42;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F7FC;
  --bg-2: #EBF1FB;
  --surface: #FFFFFF;
  --surface-2: #F2F6FD;
  --line: rgba(13, 33, 84, .09);
  --line-2: rgba(13, 33, 84, .16);
  --text: #0A1530;
  --muted: #4C5C80;
  --faint: #8995B2;
  --shadow: 0 1px 2px rgba(13, 33, 84, .05), 0 18px 40px -22px rgba(13, 33, 84, .22);
  --glow-a: .2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.85 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid rgb(var(--sky)); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(var(--brand) / .35); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; right: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
[hidden] { display: none !important; }

/* انتقال خفيف بين الصفحات: تلاشٍ سريع للمحتوى فقط (أخف بكثير من انتقال الصفحة الكامل) */
main { animation: pagein .3s var(--ease) both; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

/* ---------- شاشة التحميل ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg); transition: opacity .25s var(--ease), visibility .25s;
}
.loader img { width: 72px; height: auto; animation: breathe 1.4s var(--ease) infinite alternate; }
.loader-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; width: 40%; height: 100%; background: var(--grad); border-radius: 3px; animation: slide 1s ease-in-out infinite; }
.loaded .loader { opacity: 0; visibility: hidden; }
@keyframes breathe { from { transform: scale(.94); opacity: .75; } to { transform: scale(1.04); opacity: 1; } }
@keyframes slide { from { transform: translateX(160%); } to { transform: translateX(-260%); } }

/* ---------- الأزرار ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--h); padding-inline: 20px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--f-head); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 38px; padding-inline: 16px; font-size: 14px; }
.btn-lg { --h: 52px; padding-inline: 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -12px rgb(var(--brand) / .8); }
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgb(var(--brand) / .9); filter: saturate(1.1) brightness(1.05); }
.btn-proj { background: rgb(var(--proj)); color: #fff; box-shadow: 0 12px 30px -12px rgb(var(--proj) / .9); }
.btn-proj:hover { filter: brightness(1.1); }
.btn-soft { background: rgb(var(--brand) / .1); color: rgb(var(--brand)); }
[data-theme="dark"] .btn-soft { color: #B9D4FF; background: rgb(var(--brand) / .18); }
.btn-soft:hover { background: rgb(var(--brand) / .18); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: #0A1530; }
.btn-light:hover { transform: translateY(-1px); }
.btn .ic { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn-lg { width: 52px; height: 52px; border-radius: 16px; }

/* ---------- الرأس ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.scrolled .site-header { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: auto; }
.brand-name { font: 700 24px/1 var(--f-head); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 10px; color: var(--muted);
  font: 500 15px/1.4 var(--f-head); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-tools { display: flex; gap: 8px; }
.i-moon, [data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.menu-open .menu-btn .i-open { display: none; }

@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .nav-tools { margin-inline-start: auto; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  .nav-links a[aria-current="page"] { background: var(--surface); }
  .nav-links a[aria-current="page"]::after { display: none; }
}

/* ---------- البطل ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .18; mask-image: linear-gradient(#000, transparent); }
.hero-glow, .phero-glow {
  position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgb(var(--brand) / var(--glow-a)), transparent 70%);
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgb(var(--sky) / .5) 1px, transparent 1.2px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 60% 70% at 30% 40%, #000 0%, transparent 70%);
}
[data-theme="light"] .hero::before { opacity: .35; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 14px;
}
.hero-kicker .ic { color: rgb(var(--sky)); width: 16px; height: 16px; }
.hero-title {
  margin-top: 20px; font-size: clamp(2.35rem, 8.4vw, 4.35rem); line-height: 1.22; font-weight: 700;
  max-width: 13ch; text-wrap: balance;
}
.lead { margin-top: 18px; font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 44ch; line-height: 1.9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0;
  margin: 40px 0 0; padding: 0;
}
.hero-stats > div { padding-inline: 0 22px; margin-inline-end: 22px; border-inline-end: 1px solid var(--line-2); }
.hero-stats > div:last-child { border: 0; margin: 0; padding: 0; }
.hero-stats dd { margin: 0; font: 700 clamp(1.6rem, 5vw, 2.2rem)/1.1 var(--f-head); font-variant-numeric: tabular-nums; order: -1; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .hero-stats > div:nth-child(2) { border: 0; }
}

/* الكوكبة: كل مشروع نجمة حول الشعار */
.constellation { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.const-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.const-lines line {
  stroke: rgb(var(--sky) / .45); stroke-width: .25; stroke-dasharray: 60; stroke-dashoffset: 60;
  vector-effect: non-scaling-stroke; animation: draw 1.1s var(--ease) forwards; animation-delay: var(--d);
}
.const-lines line { stroke-width: 1; }
.orbit { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; }
.orbit2 { stroke: var(--line); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.const-core {
  position: absolute; left: 50%; top: 50%; width: 38%; translate: -50% -50%;
  filter: drop-shadow(0 20px 40px rgb(var(--brand) / .45));
  animation: rise .9s var(--ease) both;
}
.const-core img { width: 100%; height: auto; }
.const-node {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: pop .6s var(--ease) both; animation-delay: var(--d);
}
.const-node .plogo { width: 54px; height: 54px; border-radius: 16px; transition: transform .3s var(--ease); }
.const-node:hover .plogo { transform: translateY(-3px) scale(1.05); }
.const-label {
  font: 500 13px/1.3 var(--f-head); padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line); white-space: nowrap;
}
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
}
@media (max-width: 959px) {
  .constellation { width: min(100%, 420px); }
}
@media (max-width: 420px) {
  .const-node .plogo { width: 44px; height: 44px; border-radius: 13px; }
  .const-label { font-size: 11.5px; padding: 2px 8px; }
}

/* ---------- شعار المشروع ---------- */
.plogo {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; flex: none;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 6px 18px -10px rgb(var(--c, var(--brand)) / .7);
}
.plogo img { width: 100%; height: 100%; object-fit: cover; }
.plogo b {
  width: 100%; height: 100%; display: grid; place-items: center; color: #fff;
  font: 700 22px/1 var(--f-head);
  background: linear-gradient(140deg, rgb(var(--c, var(--brand))), color-mix(in srgb, rgb(var(--c, var(--brand))) 55%, #0A1530));
}
.plogo-xl { width: 88px; height: 88px; border-radius: 24px; }
.plogo-xl b { font-size: 40px; }

/* ---------- الحالة والرقائق ---------- */
.status {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 11px; border-radius: 999px;
  font: 500 12.5px/1.5 var(--f-head); background: var(--surface-2); border: 1px solid var(--line);
}
.status i { width: 8px; height: 8px; rotate: 45deg; border-radius: 2px; background: currentColor; }
.st-active { color: #10B981; } [data-theme="dark"] .st-active { color: #34D399; }
.st-dev { color: #D97706; } [data-theme="dark"] .st-dev { color: #FBBF24; }
.st-soon { color: #7C3AED; } [data-theme="dark"] .st-soon { color: #C4B5FD; }
.st-active i { box-shadow: 0 0 0 3px rgb(16 185 129 / .18); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.6; border: 1px solid var(--line);
}
.chip .ic { width: 14px; height: 14px; }
.chip-ghost { background: transparent; }
.chip-lg { padding: 9px 16px; font-size: 14px; color: var(--text); }
.chip-lg .ic { width: 18px; height: 18px; color: rgb(var(--sky)); }
a.chip:hover { border-color: var(--line-2); color: var(--text); }

/* ---------- الأقسام ---------- */
.section { padding: 64px 0; }
.section-tight { padding-top: 8px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 96px 0; } .section-tight { padding-top: 12px; } }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); }
.sec-head p { color: var(--muted); margin-top: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: rgb(var(--sky)); font: 500 15px var(--f-head); white-space: nowrap; }
[data-theme="light"] .link-more { color: rgb(var(--brand)); }
.link-more .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-more:hover .ic { transform: translateX(-4px); }
@media (max-width: 600px) { .sec-head { flex-direction: column; align-items: start; } }

/* ---------- غلاف المشروع ---------- */
.cover {
  --c: var(--brand);
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; width: 100%;
  background:
    radial-gradient(120% 90% at 85% 0%, rgb(var(--c) / .55), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, rgb(var(--c)) 35%, #0A1530), #060B1A);
}
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art .rb1 { fill: rgb(var(--c) / .55); }
.cover-art .rb2 { fill: rgb(255 255 255 / .1); }
.cover-art .sp { fill: rgb(255 255 255 / .85); }
.cover-letter {
  position: absolute; inset-block-end: 4%; inset-inline-start: 7%;
  font: 700 clamp(4rem, 14vw, 7rem)/1 var(--f-head); color: rgb(255 255 255 / .92);
  text-shadow: 0 10px 40px rgb(0 0 0 / .35);
}
.cover-md .cover-letter { display: none; }
.cover-lg .cover-letter, .cover-xl .cover-letter { inset-inline-start: auto; inset-inline-end: 7%; }
.cover-lg .cover-letter { font-size: clamp(5rem, 16vw, 10rem); }
.cover-xl { aspect-ratio: 16 / 10; }
.cover-xl .cover-letter { font-size: clamp(6rem, 20vw, 12rem); }

/* ---------- بطاقة المشروع ---------- */
.cards-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pc-wrap { display: contents; }
.pcard {
  --c: var(--brand);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); transition: border-color .3s, transform .35s var(--ease);
}
.pcard:hover { border-color: rgb(var(--c) / .45); }
.pcard:hover .cover img { transform: scale(1.04); }
.pcard-media { display: block; border-bottom: 1px solid var(--line); }
.pcard-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 20px 20px; }
.pcard-head { display: flex; align-items: end; justify-content: space-between; margin-top: -26px; }
.pcard-head .plogo { width: 54px; height: 54px; border-radius: 16px; border: 3px solid var(--surface); box-shadow: 0 10px 24px -12px rgb(var(--c) / .9); }
.pcard-title { margin-top: 14px; font-size: 1.25rem; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.pcard-tag { color: var(--text); margin-top: 4px; font-weight: 500; }
.pcard-desc { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.8; }
.pcard-when { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: rgb(var(--c)); font: 500 14px var(--f-head); }
[data-theme="dark"] .pcard-when { color: color-mix(in srgb, rgb(var(--c)) 50%, #fff); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pcard-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.pcard-actions .btn { flex: 1 1 auto; }

/* بطاقة «قريبًا» */
.pcard-soon { border-style: dashed; border-color: var(--line-2); }
.pcard-soon .cover { filter: saturate(.55); }
.pcard-soon .cover::after {
  content: "قريبًا"; position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
  padding: 3px 12px; border-radius: 999px; background: rgb(0 0 0 / .45); color: #fff; font: 500 13px var(--f-head);
}

/* المشاريع المميزة: بطاقة كبرى أفقية في الأعلى، وتحتها بطاقات متساوية بغلاف موحّد النسبة */
.featured-grid { display: grid; gap: 20px; }
.featured-grid .cover { aspect-ratio: 16 / 10; height: auto; }
@media (min-width: 900px) {
  .featured-grid:not(.n1) { grid-template-columns: repeat(12, 1fr); }
  .featured-grid:not(.n1) > .pcard { grid-column: span 6; }
  .featured-grid.n3 > .pcard-feature, .featured-grid.n4 > .pcard-feature, .featured-grid.n5 > .pcard-feature { grid-column: 1 / -1; }
  .featured-grid.n4 > .pcard-card { grid-column: span 4; }
  .featured-grid.n5 > .pcard-card { grid-column: span 6; }
  .featured-grid.n1 .pcard-feature, .featured-grid.n3 .pcard-feature, .featured-grid.n4 .pcard-feature, .featured-grid.n5 .pcard-feature { flex-direction: row; }
  .featured-grid.n1 .pcard-feature .pcard-media, .featured-grid.n3 .pcard-feature .pcard-media, .featured-grid.n4 .pcard-feature .pcard-media, .featured-grid.n5 .pcard-feature .pcard-media {
    flex: 0 0 50%; border-bottom: 0; border-inline-start: 1px solid var(--line); display: flex;
  }
  .featured-grid.n1 .pcard-feature .cover, .featured-grid.n3 .pcard-feature .cover, .featured-grid.n4 .pcard-feature .cover, .featured-grid.n5 .pcard-feature .cover { flex: 1; aspect-ratio: 4 / 3; min-height: 100%; }
  .featured-grid.n1 .pcard-feature .pcard-head, .featured-grid.n3 .pcard-feature .pcard-head, .featured-grid.n4 .pcard-feature .pcard-head, .featured-grid.n5 .pcard-feature .pcard-head { margin-top: 26px; }
}
@media (min-width: 1100px) { .featured-grid.n5 > .pcard-card { grid-column: span 3; } }
.pcard-feature { border-radius: var(--r-xl); }
.pcard-feature .pcard-body { padding: 0 26px 26px; }
.pcard-feature .pcard-head { margin-top: -34px; }
.pcard-feature .pcard-head .plogo { width: 70px; height: 70px; border-radius: 20px; }
.pcard-feature .pcard-head .plogo b { font-size: 30px; }
.pcard-feature .pcard-title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.pcard-feature .pcard-desc { font-size: 16px; }
.pcard-feature .cover { aspect-ratio: 16 / 10; }

/* تمرير أفقي على الجوال */
@media (max-width: 640px) {
  .scroller {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: -20px; padding: 4px 20px 16px; scrollbar-width: none;
  }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > .pcard { flex: 0 0 84%; scroll-snap-align: center; }
}

/* ---------- عن عزّام (الرئيسية) ---------- */
.about-strip { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .about-strip { grid-template-columns: 340px 1fr; gap: 64px; } }
.about-photo {
  position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; max-width: 340px;
  background: radial-gradient(80% 80% at 70% 20%, rgb(var(--brand) / .5), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .about-mark { object-fit: contain; padding: 18%; filter: drop-shadow(0 20px 40px rgb(var(--brand) / .5)); }
.about-copy h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); }
.about-name { margin-top: 18px; font: 600 1.2rem var(--f-head); display: flex; flex-direction: column; }
.about-name span, .about-role { color: rgb(var(--sky)); font: 400 15px var(--f-body); }
[data-theme="light"] .about-name span, [data-theme="light"] .about-role { color: rgb(var(--brand)); }
.about-text { margin: 14px 0 26px; font-size: 1.12rem; color: var(--muted); max-width: 58ch; line-height: 2; }

/* ---------- خط زمني مختصر ---------- */
.mini-timeline {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0;
  grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scrollbar-width: thin;
  position: relative; padding-bottom: 8px;
}
.mini-timeline li { --c: var(--brand); position: relative; padding: 34px 18px 0 22px; display: flex; flex-direction: column; gap: 2px; }
.mini-timeline li::before { content: ""; position: absolute; top: 9px; inset-inline: 0; height: 1px; background: var(--line-2); }
.mt-star { position: absolute; top: 0; inset-inline-start: 18px; width: 18px; height: 18px; background: rgb(var(--c)); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.mini-timeline time { color: var(--faint); font-size: 13px; }
.mini-timeline a { font: 600 1.1rem var(--f-head); }
.mini-timeline a:hover { color: rgb(var(--sky)); }
.mini-timeline small { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- شريط الدعوة ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 56px 24px; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(135deg, #0B2A73 0%, rgb(var(--brand)) 55%, rgb(var(--sky)) 130%);
}
.cta-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta-ribbon path { fill: rgb(255 255 255 / .09); }
.cta-band h2 { font-size: clamp(1.5rem, 4.4vw, 2.4rem); max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.cta-band p { margin: 12px auto 26px; max-width: 52ch; color: rgb(255 255 255 / .82); }

/* ---------- رأس الصفحات ---------- */
.page-head { padding: 28px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 700; margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 1.08rem; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--faint); font-size: 14px; }
.crumbs a:hover { color: var(--text); }
.crumbs .ic { width: 14px; height: 14px; }

/* ---------- التصفية ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 28px; }
.search-box {
  display: flex; align-items: center; gap: 10px; height: 56px; padding-inline: 18px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: rgb(var(--sky)); box-shadow: 0 0 0 4px rgb(var(--sky) / .15); }
.search-box .ic { color: var(--faint); width: 22px; height: 22px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 17px; height: 100%; }
.search-box input::-webkit-search-cancel-button { filter: grayscale(1); }
.search-box kbd { font: 12px var(--f-body); color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 7px; }
@media (hover: none) { .search-box kbd { display: none; } }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; max-width: 100%; }
.chips-scroll::-webkit-scrollbar { display: none; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip span {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: 500 14px var(--f-head); white-space: nowrap;
  transition: .2s;
}
.fchip span .ic { width: 16px; height: 16px; }
.fchip small { font-size: 12px; opacity: .7; }
.fchip span:hover { color: var(--text); }
.fchip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.fchip input:focus-visible + span { outline: 2px solid rgb(var(--sky)); outline-offset: 2px; }
.filter-selects { display: flex; gap: 8px; }
.select { position: relative; display: inline-flex; }
.select select {
  appearance: none; height: 40px; padding: 0 16px 0 36px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); font: 500 14px var(--f-head);
}
.select .ic { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; pointer-events: none; color: var(--faint); }
.result-count { color: var(--faint); font-size: 14px; }
.result-count b { color: var(--text); font-family: var(--f-head); }

.empty { text-align: center; padding: 64px 20px; }
.empty-star, .soon-star, .ft-star {
  display: inline-block; background: var(--grad);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.empty-star { width: 56px; height: 56px; margin-bottom: 18px; }
.empty h2 { font-size: 1.35rem; }
.empty p { color: var(--muted); margin: 6px 0 22px; }

/* ---------- صفحة المشروع ---------- */
.admin-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px; background: #7C2D12; color: #FFEDD5; font-size: 14px; }
.admin-note a { text-decoration: underline; }
.phero { position: relative; overflow: hidden; padding: 24px 0 56px; isolation: isolate; }
.phero-glow { background: radial-gradient(closest-side, rgb(var(--proj) / var(--glow-a)), transparent 70%); inset: -30% auto auto -20%; }
.phero-grid { display: grid; gap: 36px; align-items: center; margin-top: 28px; }
@media (min-width: 960px) { .phero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } .phero { padding-bottom: 80px; } }
.phero h1 { margin-top: 22px; font-size: clamp(2.3rem, 7vw, 3.8rem); font-weight: 700; line-height: 1.2; }
.phero-tag { margin-top: 10px; font-size: clamp(1.08rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.phero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.phero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.phero .plogo-xl { --c: var(--proj); }
.browser {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgb(var(--proj) / .7), var(--shadow);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease);
}
.browser:hover { transform: none; }
@media (max-width: 959px) { .browser { transform: none; } }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-bar em { font: normal 500 12.5px var(--f-head); color: var(--faint); margin-inline-start: auto; margin-inline-end: auto; padding: 2px 16px; border-radius: 8px; background: var(--bg); }
.browser .cover { --c: var(--proj); border-radius: 0; }

.soon-banner {
  display: flex; gap: 20px; align-items: start; margin-top: -24px; margin-bottom: 8px;
  padding: 26px; border-radius: var(--r-lg); border: 1px dashed rgb(var(--proj) / .6);
  background: linear-gradient(135deg, rgb(var(--proj) / .12), transparent 70%);
}
.wrap.soon-banner { max-width: calc(var(--wrap) - 64px); }
.soon-star { width: 40px; height: 40px; flex: none; background: rgb(var(--proj)); animation: spin 8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.soon-banner h2 { font-size: 1.35rem; }
.soon-when { display: flex; align-items: center; gap: 6px; margin: 6px 0; color: var(--text); }
.soon-banner p { color: var(--muted); }

.pbody { display: grid; gap: 40px; padding-block: 48px 72px; }
@media (min-width: 1000px) { .pbody { grid-template-columns: 1fr 320px; gap: 64px; } }
.pmain { min-width: 0; display: grid; gap: 56px; }
.pblock h2 { font-size: clamp(1.4rem, 3.6vw, 1.75rem); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.count-badge { font: 500 13px/1 var(--f-body); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.prose { color: var(--muted); font-size: 1.04rem; line-height: 2; max-width: 70ch; }
.prose-lg { font-size: 1.12rem; }
.prose p + p, .prose p + ul, .prose ul + p, .prose h3 + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 10px 0 0; padding-inline-start: 20px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: rgb(var(--proj)); }
.prose strong { color: var(--text); font-weight: 600; }
.prose h3 { color: var(--text); font-size: 1.15rem; margin-top: 20px; }
.prose a { color: rgb(var(--sky)); text-decoration: underline; text-underline-offset: 3px; }

.idea-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .idea-grid { grid-template-columns: 1fr 1fr; } }
.idea-card { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.idea-card h2 { font-size: 1.2rem; margin: 14px 0 8px; }
.idea-card .prose { font-size: 1rem; }
.idea-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgb(var(--proj) / .14); color: rgb(var(--proj)); }
[data-theme="dark"] .idea-ic { color: color-mix(in srgb, rgb(var(--proj)) 55%, #fff); }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 28px; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ft-star { width: 16px; height: 16px; margin-top: 7px; flex: none; background: rgb(var(--proj)); }
.features h3 { font-size: 1.05rem; }
.features p { color: var(--muted); font-size: 15px; margin-top: 2px; line-height: 1.8; }

.guide { display: grid; gap: 14px; }
.guide-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.guide-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: rgb(var(--proj)); }
[data-theme="dark"] .guide-ic { color: color-mix(in srgb, rgb(var(--proj)) 55%, #fff); }
.guide-ic .ic { width: 22px; height: 22px; }
.guide h3 { font-size: 1.12rem; margin-bottom: 6px; }
.guide .prose { font-size: 1rem; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery figure { margin: 0; }
.gal-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--surface); }
.gal-btn img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s var(--ease); }
.gal-btn:hover img { transform: scale(1.03); }
.gallery figcaption { color: var(--faint); font-size: 13.5px; margin-top: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgb(3 7 18 / .92); }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 82vh; margin-inline: auto; border-radius: var(--r); }
.lightbox figcaption { color: #CBD5E1; text-align: center; margin-top: 12px; }
.lb-close { position: absolute; top: 16px; left: 16px; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: rgb(var(--proj) / .45); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer;
  list-style: none; font: 500 1.05rem/1.6 var(--f-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; translate: -50% -50%; background: currentColor; border-radius: 2px; transition: rotate .3s var(--ease); }
.faq-sign::after { rotate: 90deg; }
.faq details[open] .faq-sign::after { rotate: 0deg; }
.faq-a { padding: 0 20px 20px; font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }
}

/* التعليقات */
.comment-form { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  transition: border-color .2s, box-shadow .2s; resize: vertical; line-height: 1.8;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: rgb(var(--sky)); box-shadow: 0 0 0 4px rgb(var(--sky) / .14); }
.comment-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: var(--muted); }
.form-msg.err { color: #F87171; } .form-msg.ok { color: #34D399; }
[data-theme="light"] .form-msg.err { color: #DC2626; } [data-theme="light"] .form-msg.ok { color: #059669; }
.comments { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment.is-new { animation: rise .5s var(--ease); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; font: 600 17px var(--f-head); }
.c-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-head time { color: var(--faint); font-size: 13px; }
.c-body { color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.comments-empty { margin-top: 16px; }

/* الشريط الجانبي */
.paside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .paside { position: sticky; top: 92px; } }
.info-card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.info-card dl { margin: 0; display: grid; }
.info-card dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-card dt { color: var(--faint); font-size: 14px; }
.info-card dd { margin: 0; font: 500 15px var(--f-head); }
.info-card h3 { font-size: 15px; color: var(--faint); font-weight: 500; margin: 18px 0 10px; }
.tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tech span { padding: 4px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; direction: ltr; }
.info-card .btn-block { margin-top: 20px; }
.share-row { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.share-row a, .share-row button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; transition: .2s; }
.share-row a:hover, .share-row button:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.share-row .ic { width: 18px; height: 18px; }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: grid; gap: 2px; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); }
  .toc a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14.5px; }
  .toc a:hover, .toc a.on { color: var(--text); background: var(--surface-2); }
}

/* ---------- صفحة عن عزّام ---------- */
.about-page { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .about-page { grid-template-columns: 380px 1fr; gap: 64px; } }
.about-photo-lg { max-width: 380px; }
.about-page h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 700; }
.about-role { margin: 4px 0 22px; font-size: 1.1rem !important; }
.about-stats { display: flex; gap: 0; margin: 32px 0; padding: 0; }
.about-stats div { display: flex; flex-direction: column; padding-inline-end: 26px; margin-inline-end: 26px; border-inline-end: 1px solid var(--line-2); }
.about-stats div:last-child { border: 0; }
.about-stats dd { margin: 0; font: 700 2rem/1.1 var(--f-head); }
.about-stats dt { color: var(--muted); font-size: 14px; }
.h-sm { font-size: 1.15rem; margin-bottom: 12px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- المسيرة ---------- */
.timeline { position: relative; max-width: 860px; }
.tl-year { position: relative; padding-bottom: 24px; }
.tl-year-label { position: sticky; top: 80px; z-index: 2; display: inline-block; padding: 4px 16px; margin-bottom: 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 1.05rem; }
.tl-year ol { list-style: none; margin: 0; padding: 0 30px 0 0; position: relative; display: grid; gap: 14px; }
.tl-year ol::before { content: ""; position: absolute; inset-block: 0; right: 9px; width: 1px; background: var(--line-2); }
.tl-item { --c: var(--brand); position: relative; }
.tl-star { position: absolute; right: -30px; top: 24px; width: 20px; height: 20px; background: rgb(var(--c)); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.tl-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.tl-card:hover { border-color: rgb(var(--c) / .5); }
.tl-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tl-text time { color: var(--faint); font-size: 13px; }
.tl-text b { font: 600 1.12rem var(--f-head); }
.tl-text small { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .tl-card { flex-wrap: wrap; } .tl-card .status { margin-inline-start: 62px; } }

/* ---------- 404 ---------- */
.nf { padding: 72px 0 112px; text-align: center; }
.nf-art { display: flex; align-items: center; justify-content: center; gap: 4px; }
.nf-num { font: 700 clamp(7rem, 26vw, 12rem)/1 var(--f-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-art img { width: clamp(100px, 22vw, 170px); height: auto; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-4deg); } }
.nf h1 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); margin-top: 18px; }
.nf p { color: var(--muted); margin: 10px auto 28px; max-width: 46ch; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- التذييل ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; background: var(--bg); }
.foot { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 40ch; }
.foot-col { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.foot-col h2 { font-size: 15px; color: var(--faint); font-weight: 500; margin-bottom: 4px; }
.foot-col a { color: var(--muted); } .foot-col a:hover { color: var(--text); }
.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); }
.socials a:hover { border-color: var(--line-2); background: var(--surface); }
.socials .ic { width: 18px; height: 18px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px 32px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.to-top .ic { rotate: 180deg; }

/* ---------- تنبيه ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 130; translate: -50% 20px; opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--text); color: var(--bg); font: 500 15px var(--f-head); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6);
  transition: .3s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ==========================================================
   طلب موقع — زر الرأس، الزر العائم، النافذة المنبثقة
   ========================================================== */
.cta-req {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 8px 18px; border-radius: 999px;
  background: linear-gradient(120deg, rgb(var(--brand)) 0%, rgb(var(--sky)) 100%); color: #fff;
  font: 600 15px/1 var(--f-head); white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14) inset, 0 10px 28px -10px rgb(var(--brand) / .95), 0 0 24px -6px rgb(var(--sky) / .55);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.cta-req::after { /* لمعة تعبر الزر كل بضع ثوانٍ */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .38) 50%, transparent 65%);
  transform: translateX(120%); animation: rq-sheen 6s 1.2s infinite var(--ease);
}
.cta-req:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.06); box-shadow: 0 0 0 1px rgb(255 255 255 / .2) inset, 0 14px 32px -10px rgb(var(--brand)), 0 0 30px -4px rgb(var(--sky) / .7); }
.cta-req:active { transform: scale(.97); }
.cta-req-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.cta-req-ic .ic { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.cta-req:hover .cta-req-ic .ic { transform: rotate(90deg) scale(1.1); }
@keyframes rq-sheen { 0%, 70% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }

.nav-cta { display: none; }
@media (min-width: 821px) and (max-width: 1020px) {
  .nav-links a { padding-inline: 10px; }
  .nav { gap: 10px; }
}
@media (max-width: 820px) {
  .cta-req { display: none; }
  .nav-links .nav-cta { display: inline-flex; margin-top: 10px; height: 52px; font-size: 16px; padding: 0 20px; color: #fff; }
  .nav-links .nav-cta .ic { width: 16px; height: 16px; }
}

/* الزر العائم على الجوال */
.rq-fab { display: none; }
@media (max-width: 820px) {
  .rq-fab {
    position: fixed; z-index: 60; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-start: 16px;
    display: inline-flex; align-items: center; gap: 10px; height: 54px; padding-inline: 7px 20px; border-radius: 999px; overflow: hidden; isolation: isolate;
    background: linear-gradient(120deg, rgb(var(--brand)) 0%, rgb(var(--sky)) 100%); color: #fff; font: 600 16px/1 var(--f-head);
    box-shadow: 0 0 0 1px rgb(255 255 255 / .16) inset, 0 16px 34px -12px rgb(var(--brand)), 0 0 30px -8px rgb(var(--sky) / .8);
    transition: transform .35s var(--ease), opacity .35s;
    animation: rq-fab-in .6s .5s backwards var(--ease);
  }
  .rq-fab::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .38) 50%, transparent 65%);
    transform: translateX(120%); animation: rq-sheen 6s 1.6s infinite var(--ease);
  }
  .rq-fab-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: rgb(var(--brand)); }
  .rq-fab-ic .ic { width: 18px; height: 18px; }
  .rq-fab:active { transform: scale(.96); }
  .rq-fab.is-hidden, .menu-open .rq-fab, .rq-open .rq-fab { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .has-fab .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .has-fab .site-footer { padding-bottom: 72px; }
}
@keyframes rq-fab-in { from { transform: translateY(140%); opacity: 0; } to { transform: none; opacity: 1; } }

/* النافذة المنبثقة */
.rq-modal {
  width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; margin: auto;
  border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); color: var(--text);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / .7); overflow: auto; overscroll-behavior: contain;
}
.rq-modal[open] { animation: rq-pop .35s var(--ease); }
.rq-modal::backdrop { background: rgb(3 7 18 / .78); }
@keyframes rq-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.rq-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 3; }
.rq-open { overflow: hidden; }

.rq { display: grid; }
@media (min-width: 860px) { .rq { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

/* اللوحة الترحيبية — داكنة في الوضعين بلون الهوية */
.rq-aside {
  position: relative; overflow: hidden; isolation: isolate; padding: 40px 36px; color: #EAF0FC;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(var(--brand) / .55), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgb(var(--sky) / .28), transparent 60%),
    linear-gradient(165deg, #0C1D4D 0%, #070D1F 100%);
}
.rq-ribbon { position: absolute; inset: auto -10% -18% auto; width: 120%; height: auto; z-index: -1; fill: none; stroke: rgb(var(--sky) / .35); stroke-width: 22; stroke-linecap: round; opacity: .5; }
.rq-ribbon path + path { stroke: rgb(var(--brand) / .55); stroke-width: 14; }
.rq-star { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 16px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); color: rgb(var(--sky)); }
.rq-star .ic { width: 24px; height: 24px; filter: drop-shadow(0 0 10px rgb(var(--sky) / .8)); }
.rq-aside h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.35; color: #fff; text-wrap: balance; }
.rq-intro { margin-top: 12px; color: #B8C6E6; max-width: 42ch; }
.rq-steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.rq-steps li { counter-increment: s; position: relative; display: grid; padding-inline-start: 50px; min-height: 36px; }
.rq-steps li::before {
  content: counter(s, arabic-indic); position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(var(--sky) / .45); color: #fff; font: 600 15px/1 var(--f-head);
}
.rq-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 17.5px; top: 40px; bottom: -16px; width: 1px; background: linear-gradient(rgb(var(--sky) / .45), transparent); }
.rq-steps b { font: 600 16px/1.5 var(--f-head); color: #fff; }
.rq-steps span { color: #9FB0D6; font-size: 14.5px; line-height: 1.7; }
.rq-privacy { display: flex; align-items: center; gap: 8px; margin-top: 30px; color: #8FA2CC; font-size: 13.5px; }
.rq-privacy .ic { width: 16px; height: 16px; flex: none; }

.rq-body { position: relative; padding: 40px 36px 32px; }
.rq-in-modal .rq-body { padding-top: 44px; }
.rq-form { display: grid; gap: 16px; }
.rq-form-h { font-size: 1.15rem; }
.rq-in-modal .rq-form-h { padding-inline-end: 52px; }
.rq-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .rq-row { grid-template-columns: 1fr 1fr; } }
.field .req { color: rgb(var(--sky)); font-style: normal; }
[data-theme="light"] .field .req { color: rgb(var(--brand)); }
.rq-form .field input, .rq-form .field textarea { background: var(--bg); }
.rq-form .field input[dir="ltr"]::placeholder { text-align: right; }
.rq-form .field input[dir="ltr"] { text-align: right; }
.rq-form .field input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.rq-form [aria-invalid="true"] { border-color: #F87171 !important; box-shadow: 0 0 0 4px rgb(248 113 113 / .14) !important; }
.rq-count { justify-self: end; color: var(--faint); font-size: 12.5px; }
.rq-count b { font-weight: 500; }

.rq-types { border: 0; padding: 0; margin: 0; min-width: 0; }
.rq-types legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.rq-types legend small { color: var(--faint); margin-inline-start: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-flex; align-items: center; height: 36px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; transition: .2s; }
.chip-opt:hover span { color: var(--text); border-color: rgb(var(--sky) / .5); }
.chip-opt input:checked + span { color: #fff; background: rgb(var(--brand)); border-color: rgb(var(--brand)); }
.chip-opt input:focus-visible + span { outline: 2px solid rgb(var(--sky)); outline-offset: 2px; }

.rq-submit { margin-top: 4px; }
.rq-submit[disabled] { opacity: .7; cursor: progress; }
.rq-submit .ic { transform: scaleX(-1); }
.rq-msg:empty { display: none; }

.rq-done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 8px; animation: rise .5s var(--ease); }
.rq-done[hidden] { display: none; }
.rq-body:has(> .rq-done:not([hidden])) { display: grid; align-content: center; }
.rq-done-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 16px 40px -14px rgb(var(--brand)); margin-bottom: 6px; }
.rq-done-ic .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.rq-done h3 { font-size: 1.5rem; }
.rq-done p { color: var(--muted); max-width: 40ch; margin-bottom: 10px; }

/* صفحة الطلب المستقلة */
.rq-page .rq { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }

@media (max-width: 859px) {
  .rq-modal { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; border-bottom: 0; }
  .rq-modal[open] { animation: rq-sheet .4s var(--ease); }
  .rq-aside { padding: 30px 22px 24px; }
  .rq-in-modal .rq-aside { padding-inline-end: 70px; }
  .rq-star { width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; }
  .rq-in-modal .rq-steps { display: none; }
  .rq-privacy { margin-top: 18px; }
  .rq-body, .rq-in-modal .rq-body { padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
  .rq-close { top: 14px; inset-inline-end: 14px; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .2); color: #fff; }
  .rq-in-modal .rq-form-h { padding-inline-end: 0; }
}
@keyframes rq-sheet { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 860px) {
  .rq-close { background: var(--surface-2); }
}

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .const-lines line { stroke-dashoffset: 0; }
}
