/* ═══════════════════════════════════════════════════════════════════
   Post Reels — نظام التصميم الموحّد (ds.css)
   توكنز + مكوّنات مشتركة لكل الصفحات العامة. يُحمَّل عبر /assets/ds.css
   الثيم: داكن افتراضياً، فاتح عبر :root[data-theme="light"] (theme.js)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. التوكنز ── */
:root {
  /* الألوان الأساسية */
  --blue: #468ffe;
  --violet: #7c6cff;
  --amber: #fbbf24;
  --ok: #34d399;
  --danger: #fb7185;
  --info: #38bdf8;

  /* الأسطح والنص — داكن */
  --page: #090f1e;
  --text: #eef1ff;
  --muted: #9aa5c4;
  --glass: rgba(21, 29, 50, .62);
  --glass-strong: rgba(21, 29, 50, .82);
  --glass-border: rgba(255, 255, 255, .09);
  --input: rgba(10, 16, 32, .62);
  --input-border: rgba(150, 170, 220, .16);
  --grad: linear-gradient(135deg, var(--blue), var(--violet));

  /* الظلال */
  --shadow-sm: 0 4px 14px rgba(3, 8, 22, .35);
  --shadow-md: 0 18px 50px rgba(3, 8, 22, .5);
  --shadow-lg: 0 30px 80px rgba(3, 8, 22, .55);
  --glow-primary: 0 12px 32px rgba(70, 143, 254, .35);
  --glow-primary-lg: 0 16px 40px rgba(70, 143, 254, .45);

  /* الأنصاف والقياسات — نظام 8px */
  --r-sm: 10px; --r-md: 13px; --r-lg: 18px; --r-xl: 24px;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 48px; --s-8: 64px;

  /* الحركة */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: .15s; --t-med: .25s; --t-slow: .45s;

  /* مُعامل شدة الخلفية الموحّد (من جولة Claude-design): كل طبقات الأورورا/الشبكة/الجسيمات تُضبط بقيمة واحدة */
  --fx: 1;

  color-scheme: dark;
}
:root[data-theme="light"] {
  --page: #eef2fa;
  --text: #1c2442;
  --muted: #55628a;
  --glass: rgba(255, 255, 255, .82);
  --glass-strong: rgba(255, 255, 255, .94);
  --glass-border: rgba(28, 36, 66, .10);
  --input: rgba(255, 255, 255, .95);
  --input-border: rgba(28, 36, 66, .16);
  --shadow-sm: 0 4px 14px rgba(28, 36, 66, .07);
  --shadow-md: 0 14px 40px rgba(28, 36, 66, .10);
  --shadow-lg: 0 24px 70px rgba(28, 36, 66, .14);
  --fx: .45;
  color-scheme: light;
}

/* ── 2. الأساس ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: Cairo, Tahoma, sans-serif; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: rgba(70, 143, 254, .35); }
a { color: var(--blue); }
:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px;
}
.skip-link {
  position: fixed; top: -60px; inset-inline-start: 16px; z-index: 100;
  padding: 10px 18px; border-radius: var(--r-md); background: var(--grad);
  color: #fff; font-weight: 900; font-size: 13px; text-decoration: none; transition: top var(--t-med) var(--ease);
}
.skip-link:focus-visible { top: 16px; }

/* ── 3. الخلفية الحيّة ── */
.aurora { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(90px) saturate(130%); opacity: calc(var(--fx) * .8); }
.aurora i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; background: radial-gradient(circle at 40% 40%, rgba(70,143,254,.55), transparent 65%); top: -8%; right: -6%; animation: pr-drift1 15s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; background: radial-gradient(circle at 60% 50%, rgba(124,108,255,.42), transparent 65%); bottom: -10%; left: -8%; animation: pr-drift2 19s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; background: radial-gradient(circle at 50% 50%, rgba(251,191,36,.17), transparent 70%); bottom: -6%; right: 30%; animation: pr-drift3 23s ease-in-out infinite alternate; }
@keyframes pr-drift1 { to { transform: translate(-13vw, 11vh) scale(1.2) rotate(8deg); } }
@keyframes pr-drift2 { to { transform: translate(11vw, -9vh) scale(1.14) rotate(-6deg); } }
@keyframes pr-drift3 { to { transform: translate(-9vw, -13vh) scale(1.28) rotate(10deg); } }
/* شدة الفاتح تأتي من --fx تلقائياً */
.grid-dots {
  position: fixed; inset: -26px 0 0 -26px; z-index: 0; pointer-events: none; opacity: calc(var(--fx) * .55);
  background-image: radial-gradient(rgba(150,170,220,.10) 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 30%, black 25%, transparent 80%);
  animation: pr-grid-pan 16s linear infinite;
}
@keyframes pr-grid-pan { to { transform: translate3d(26px, 26px, 0); } }
:root[data-theme="light"] .grid-dots { background-image: radial-gradient(rgba(28,36,66,.12) 1px, transparent 1.4px); }
/* جسيمات ضوئية عائمة — طبقة واحدة بتدرجات شعاعية تنجرف صعوداً وتتنفس */
.grid-dots::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(5px 5px at 16% 74%, rgba(140,180,255,.6), transparent 60%),
    radial-gradient(3px 3px at 64% 30%, rgba(124,108,255,.55), transparent 60%),
    radial-gradient(4px 4px at 44% 52%, rgba(251,191,36,.4), transparent 60%),
    radial-gradient(3px 3px at 82% 66%, rgba(140,180,255,.5), transparent 60%),
    radial-gradient(2.5px 2.5px at 28% 22%, rgba(52,211,153,.4), transparent 60%),
    radial-gradient(3px 3px at 90% 14%, rgba(251,191,36,.35), transparent 60%),
    radial-gradient(2px 2px at 8% 40%, rgba(124,108,255,.45), transparent 60%);
  animation: pr-motes 11s ease-in-out infinite alternate;
}
@keyframes pr-motes { from { transform: translate3d(0, 14px, 0); opacity: calc(var(--fx) * .45); } to { transform: translate3d(0, -26px, 0); opacity: calc(var(--fx) * .95); } }

/* ── 4. الحاوية والشريط العلوي ── */
.wrap { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }
/* شريط علوي: كبسولة زجاجية عائمة دائمة (طراز Linear) — تتوهج عند التمرير */
.site-nav {
  position: sticky; top: 12px; z-index: 40; margin: 12px 0 0;
  padding: 9px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med), border-color var(--t-med);
}
.site-nav.scrolled { border-color: rgba(70,143,254,.28); box-shadow: var(--shadow-md), 0 0 0 1px rgba(70,143,254,.08); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.site-nav .brand { font-size: 15px; gap: 10px; }
.site-nav .mark { width: 38px; height: 38px; font-size: 17px; border-radius: 12px; }
.site-nav .btn-ghost { border: 0; background: transparent; min-height: 40px; padding: 9px 15px; font-size: 13.5px; color: var(--muted); border-radius: 999px; }
.site-nav .btn-ghost:hover { background: rgba(150,170,220,.12); color: var(--text); transform: none; }
.site-nav .btn-ghost[aria-current="page"] { background: rgba(70,143,254,.14); color: var(--blue); }
:root[data-theme="light"] .site-nav .btn-ghost:hover { background: rgba(28,36,66,.07); }
.site-nav .btn-primary { min-height: 40px; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; }
.site-nav .theme-toggle { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 999px; }
.site-nav .theme-toggle:hover { background: rgba(150,170,220,.12); transform: none; }
:root[data-theme="light"] .site-nav .theme-toggle:hover { background: rgba(28,36,66,.07); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 16px; color: var(--text); text-decoration: none; }
.mark {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--blue), var(--violet)); color: #fff; font-size: 20px; font-weight: 900;
  box-shadow: 0 8px 26px rgba(70, 143, 254, .4);
}
.mark.spin::before {
  content: ""; position: absolute; inset: -4px; border-radius: 16px; padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 12%, rgba(140,180,255,.9), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pr-spin 6s linear infinite;
}
@keyframes pr-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .site-nav { padding-top: 10px; padding-bottom: 10px; }
  .site-nav .btn { min-height: 40px; padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .site-nav .brand > span:not(.mark) { display: none; }
  .site-nav .brand .mark { width: 40px; height: 40px; font-size: 18px; }
  .site-nav .theme-toggle { width: 40px; height: 40px; }
  .site-nav .btn-ghost { display: none; } /* الروابط الثانوية تختفي على الموبايل — موحدة لكل الصفحات */
}

/* ── 5. الأزرار ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 22px; border: 0; border-radius: var(--r-md); cursor: pointer;
  font: inherit; font-weight: 900; font-size: 14px; text-decoration: none; color: var(--text);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med), background var(--t-med), border-color var(--t-med), opacity var(--t-med);
}
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { cursor: wait; opacity: .6; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { overflow: hidden; background: var(--grad); color: #fff; box-shadow: var(--glow-primary); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%);
  transform: translateX(-160%);
}
.btn-primary:hover { transform: translateY(-1.5px); box-shadow: var(--glow-primary-lg); }
.btn-primary:hover::after { transform: translateX(160%); transition: transform .7s ease; }
.btn-ghost { border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .045); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); transform: translateY(-1px); border-color: rgba(150,170,220,.32); }
:root[data-theme="light"] .btn-ghost { background: rgba(28, 36, 66, .04); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(28, 36, 66, .08); }
.btn-danger { border: 1px solid rgba(251,113,133,.4); background: rgba(251,113,133,.12); color: var(--danger); }
.btn-danger:hover { background: rgba(251,113,133,.2); transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 13px; border-radius: var(--r-sm); }
/* حالة تحميل: يعرض دوّاراً ويخفي المحتوى دون تغيير عرض الزر */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: pr-spin-fast .7s linear infinite;
}
.btn-ghost.is-loading::before, .btn-danger.is-loading::before { border-color: rgba(150,170,220,.35); border-top-color: var(--blue); }
@keyframes pr-spin-fast { to { transform: rotate(360deg); } }

.theme-toggle {
  width: 44px; height: 44px; flex: none; border-radius: var(--r-md); border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text); cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(10px); transition: transform var(--t-fast) var(--ease), background var(--t-med);
}
.theme-toggle:hover { transform: translateY(-1px) rotate(8deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.ic-sun { display: none; }
:root[data-theme="light"] .ic-sun { display: block; }
:root[data-theme="light"] .ic-moon { display: none; }

/* ── 6. البطاقات والأقسام ── */
.card {
  padding: 26px 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-slow);
}
.card.hoverable:hover { transform: translateY(-4px); border-color: rgba(70,143,254,.35); box-shadow: var(--shadow-md); }
:root[data-theme="light"] .card { box-shadow: 0 10px 30px rgba(28,36,66,.08); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(251,191,36,.30); background: rgba(251,191,36,.08); color: var(--amber);
  font-size: 11.5px; font-weight: 900; letter-spacing: .14em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pr-pulse 2.4s ease-in-out infinite; }
@keyframes pr-pulse { 50% { opacity: .35; } }
:root[data-theme="light"] .eyebrow { background: rgba(251,191,36,.14); }
.grad-text {
  background: linear-gradient(120deg, #ffffff 15%, #b9ccff 55%, #8fb3ff 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .grad-text { background: linear-gradient(120deg, #16204a 20%, #3455c0 60%, #6a5ae0 90%); -webkit-background-clip: text; background-clip: text; }
.sec-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.sec-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: rgba(70,143,254,.14); border: 1px solid rgba(70,143,254,.3); font-size: 12px; font-weight: 800;
}
.tag-ok { background: rgba(52,211,153,.14); color: var(--ok); border: 1px solid rgba(52,211,153,.35); }
.tag-danger { background: rgba(251,113,133,.14); color: var(--danger); border: 1px solid rgba(251,113,133,.35); }

/* ── 7. النماذج ── */
label { font-size: 13px; font-weight: 800; color: var(--text); }
.field { position: relative; display: grid; }
.field > svg {
  position: absolute; top: 50%; inset-inline-start: 14px; width: 17px; height: 17px;
  transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color var(--t-med);
}
.field:focus-within > svg { color: var(--blue); }
.input, input.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--input-border); border-radius: var(--r-md); padding: 13px 14px;
  background: var(--input); color: var(--text); font: inherit; font-size: 14px; outline: none;
  transition: border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.field > .input { padding-inline-start: 42px; }
.input:focus { border-color: rgba(70,143,254,.65); box-shadow: 0 0 0 4px rgba(70,143,254,.16); }
.input[aria-invalid="true"] { border-color: rgba(251,113,133,.65); box-shadow: 0 0 0 4px rgba(251,113,133,.14); }
input.input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #0d1530 inset; -webkit-text-fill-color: var(--text); }
:root[data-theme="light"] input.input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--text); }
textarea.input { min-height: 96px; resize: vertical; }
.notice { min-height: 22px; margin-top: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700; line-height: 1.8; }
.notice.error { color: var(--danger); }
.notice.success { color: var(--ok); }

/* ── 8. الهياكل العظمية (skeleton) ── */
.skel {
  position: relative; overflow: hidden; border-radius: var(--r-sm);
  background: rgba(150,170,220,.12); color: transparent !important; pointer-events: none; user-select: none;
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.09) 50%, transparent 70%);
  animation: pr-shimmer 1.4s ease-in-out infinite;
}
:root[data-theme="light"] .skel { background: rgba(28,36,66,.08); }
:root[data-theme="light"] .skel::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); }
@keyframes pr-shimmer { from { transform: translateX(160%); } to { transform: translateX(-160%); } }
.skel-line { height: 14px; margin: 8px 0; }
.skel-block { height: 90px; margin: 10px 0; border-radius: var(--r-md); }

/* ── 9. الحالة الفارغة ── */
.empty-state { display: grid; place-items: center; gap: 12px; padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state svg { width: 44px; height: 44px; color: var(--muted); opacity: .7; }
.empty-state b { color: var(--text); font-size: 15px; }
.empty-state p { margin: 0; font-size: 13px; line-height: 1.9; max-width: 380px; }

/* ── 10. حركة الكشف عند التمرير ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
/* لا JS؟ لا إخفاء — الصفحة تُقرأ كاملة */
.no-observer .reveal { opacity: 1; transform: none; }

/* ── 11. التذييل ── */
.site-footer {
  position: relative; z-index: 1; margin-top: var(--s-6); padding: 30px 0 38px;
  border-top: 1px solid rgba(150,170,220,.12); color: var(--muted); font-size: 12.5px;
}
.site-footer .inner {
  max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.site-footer .foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--text); }
.site-footer .foot-brand .mini { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 900; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 700; transition: color var(--t-med); }
.site-footer a:hover { color: var(--text); }

/* ── 12. توست ── */
#toast {
  position: fixed; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(50%) translateY(8px); z-index: 90;
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-inline-start: 3px solid var(--blue);
  backdrop-filter: blur(18px); padding: 12px 18px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity var(--t-med), transform var(--t-med) var(--ease);
  box-shadow: var(--shadow-md); max-width: 90vw; color: var(--text);
}
#toast.show { opacity: 1; transform: translateX(50%) translateY(0); }
#toast.ok { border-inline-start-color: var(--ok); }
#toast.err { border-inline-start-color: var(--danger); }

/* ── 12ب. حياة الأيقونات والبطاقات (طلب المالك: ألوان أغنى + حركة أكثر) ── */
/* تدوير لهجة الأيقونة عبر البطاقات: أزرق ← بنفسجي ← كهرمان ← سماوي ← أخضر */
.cards > .feature:nth-child(5n+1) .ico { background: rgba(70,143,254,.12); border-color: rgba(70,143,254,.3); }
.cards > .feature:nth-child(5n+1) .ico svg { color: var(--blue); }
.cards > .feature:nth-child(5n+2) .ico { background: rgba(124,108,255,.12); border-color: rgba(124,108,255,.32); }
.cards > .feature:nth-child(5n+2) .ico svg { color: var(--violet); }
.cards > .feature:nth-child(5n+3) .ico { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); }
.cards > .feature:nth-child(5n+3) .ico svg { color: var(--amber); }
.cards > .feature:nth-child(5n+4) .ico { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.3); }
.cards > .feature:nth-child(5n+4) .ico svg { color: var(--info); }
.cards > .feature:nth-child(5n+5) .ico { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.cards > .feature:nth-child(5n+5) .ico svg { color: var(--ok); }
/* طفو خامل متدرج + هالة نابضة خلف الأيقونة */
.feature .ico { position: relative; animation: pr-ico-float 5.2s ease-in-out infinite; }
.cards > .feature:nth-child(3n+2) .ico { animation-delay: .9s; }
.cards > .feature:nth-child(3n+3) .ico { animation-delay: 1.8s; }
@keyframes pr-ico-float { 50% { transform: translateY(-5px); } }
.feature .ico::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1.5px solid currentColor;
  color: inherit; opacity: 0; animation: pr-ico-ping 3.6s ease-out infinite; pointer-events: none; }
.cards > .feature:nth-child(5n+1) .ico::after { color: var(--blue); }
.cards > .feature:nth-child(5n+2) .ico::after { color: var(--violet); }
.cards > .feature:nth-child(5n+3) .ico::after { color: var(--amber); }
.cards > .feature:nth-child(5n+4) .ico::after { color: var(--info); }
.cards > .feature:nth-child(5n+5) .ico::after { color: var(--ok); }
@keyframes pr-ico-ping { 0%, 55% { transform: scale(.85); opacity: 0; } 70% { opacity: .5; } 100% { transform: scale(1.22); opacity: 0; } }
.feature:hover .ico { animation-play-state: paused; transform: translateY(-3px) rotate(-5deg) scale(1.06); }
/* رسم خطوط SVG عند الكشف — تُرسم الأيقونة أمام العين */
.reveal .ico svg :is(path, circle, rect, polyline, line) { stroke-dasharray: 64; stroke-dashoffset: 64; }
.reveal.in .ico svg :is(path, circle, rect, polyline, line) { animation: pr-draw .9s var(--ease) forwards; }
@keyframes pr-draw { to { stroke-dashoffset: 0; } }
/* نبض شارة رقم الخطوة */
.step::before { animation: pr-step-pulse 3.4s ease-in-out infinite; }
.steps > .step:nth-child(2)::before { animation-delay: .6s; }
.steps > .step:nth-child(3)::before { animation-delay: 1.2s; }
@keyframes pr-step-pulse { 0%, 100% { box-shadow: 0 8px 22px rgba(70,143,254,.4); } 50% { box-shadow: 0 8px 22px rgba(70,143,254,.4), 0 0 0 7px rgba(70,143,254,.12); } }
/* توهج حدود البطاقة عند التحويم — أزرق↔بنفسجي */
.card.hoverable:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(70,143,254,.25), 0 14px 44px rgba(124,108,255,.14); }

/* ── 13. تقليل الحركة ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .mark.spin::before, .eyebrow::before, .btn-primary::after, .skel::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── 12ج. طبقتا «النمو الآلي» (طلب المالك): تفاعل اجتماعي يطفو + أتمتة تعمل — خلف كل شيء بنعومة.
   كل SVG هو بلاطة 480×640 تحمل أيقونة 24 وحدة بإزاحتها؛ الحلقة انزياح بلاطة كاملة = سلسة.
   الشدة عبر --fx. transform فقط. ── */
body::before, body::after {
  content: ""; position: fixed; inset: 0 0 auto; height: 200vh; z-index: 0; pointer-events: none;
  background-repeat: repeat; background-size: 480px 640px;
  will-change: transform;
}
/* طبقة التفاعل الاجتماعي: قلب أزرق · إعجاب بنفسجي · متابع أخضر · جرس كهرماني */
body::before {
  opacity: calc(var(--fx) * .16);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 640'%3E%3Cg transform='translate(42,74)' fill='none' stroke='rgb(70,143,254)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 640'%3E%3Cg transform='translate(356,214)' fill='none' stroke='rgb(124,108,255)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v12'/%3E%3Cpath d='M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 640'%3E%3Cg transform='translate(148,382)' fill='none' stroke='rgb(52,211,153)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6'/%3E%3Cpath d='M22 11h-6'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 640'%3E%3Cg transform='translate(302,556)' fill='none' stroke='rgb(251,191,36)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/g%3E%3C/svg%3E");
  animation: pr-social-rise 64s linear infinite;
}
/* طبقة الأتمتة: بوت بنفسجي · منحنى نمو أزرق · صاروخ كهرماني · مشاركة خضراء — أبطأ */
body::after {
  opacity: calc(var(--fx) * .11);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 640'%3E%3Cg transform='translate(398,118)' fill='none' stroke='rgb(124,108,255)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Cpath d='M12 8V4'/%3E%3Ccircle cx='9' cy='13' r='1' fill='rgb(124,108,255)'/%3E%3Ccircle cx='15' cy='13' r='1' fill='rgb(124,108,255)'/%3E%3Cpath d='M2 14h2'/%3E%3Cpath d='M20 14h2'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 640'%3E%3Cg transform='translate(88,262)' fill='none' stroke='rgb(70,143,254)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 7 13.5 15.5l-4-4L2 19'/%3E%3Cpath d='M16 7h6v6'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 640'%3E%3Cg transform='translate(328,428)' fill='none' stroke='rgb(251,191,36)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 640'%3E%3Cg transform='translate(182,44)' fill='none' stroke='rgb(52,211,153)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 13.5 6.8 4'/%3E%3Cpath d='m15.4 6.5-6.8 4'/%3E%3C/g%3E%3C/svg%3E");
  animation: pr-social-rise 96s linear infinite;
}
@keyframes pr-social-rise { to { transform: translate3d(0, -640px, 0); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

/* ── أداء الهواتف: تحت 640px تُطفأ الطبقات الثقيلة (بطارية/GPU) — تبقى الأورورا هوية خفيفة ── */
@media (max-width: 640px) {
  body::before, body::after { display: none; }           /* طبقتا النمو الآلي */
  .grid-dots { animation: none; }
  .grid-dots::after { display: none; }                   /* الجسيمات */
  .aurora i { animation-duration: 40s; }                 /* أورورا أهدأ */
  .feature .ico, .feature .ico::after, .step::before { animation: none; } /* هالات وطفو الأيقونات */
}
