/* موقع MYELON — تصميمٌ واحدٌ للصفحات العشر. «اريد موقع كامل بدزاين والوان وحده» (٣ تشرين الأوّل ٢٠٢٦).
   الألوانُ ألوانُ الهويّة: الحبرُ INK والورقُ PAPER، والإشارةُ SIGNAL للنواة وما يتحرّك وحدَه.
   والخطُّ خطُّها: Tajawal للعربيّ وOutfit للّاتينيّ. والهيكلُ هيكلُ Antigravity بأرقامه: ترويسةٌ ثابتةٌ
   تختفي نزولاً، وقائمةٌ تنزل بالمرور، وشبكةُ ١٢ عموداً بهامش ٧٢، وحبّاتٌ للأزرار، وذيلٌ بكلمةٍ كبيرة.
   والحركاتُ — في كلِّ صفحةٍ حركاتُ موقعها — تُلوَّن بهذه الألوان ولا تأتي بألوانها.
   الليليُّ والنهاريُّ في كلِّ شيء. */

:root {
  --ink: #0D1117;
  --paper: #F5F7F7;
  --signal: #00C7B1;

  --bg: #F5F7F7;
  --bg-2: #FFFFFF;
  --bg-3: #E8EDED;
  --bg-4: #DCE4E4;
  --fg: #0D1117;
  --fg-2: #4B5A5E;
  --fg-3: #6B7A7E;
  --line: rgba(13, 17, 23, 0.12);
  --line-2: rgba(13, 17, 23, 0.06);
  --btn: #0D1117;
  --btn-fg: #F5F7F7;
  --btn-hover: #233039;
  --accent: #00796B;
  --focus: #00796B;
  --header-bg: rgba(245, 247, 247, 0.85);
  /* الشريطُ الداكن: حبرٌ في الوضعين، كقسم التنزيل في Antigravity */
  --band: #0D1117;
  --band-fg: #F5F7F7;
  --band-fg-2: #9AA7A6;
  --band-line: rgba(245, 247, 247, 0.12);

  --ag-gutter: 64px;
  --ag-sec: rgba(0, 121, 107, 0.08);
  --ag-sec-hover: #e3ecec;
  --ag-nav-hover: rgba(0, 121, 107, 0.12);
  --ag-tonal: #ffffff;
  --ag-tonal-hover: #e8eded;
  --ag-overlay: rgba(0, 0, 0, 0.07);
  --ag-ink: #0D1117;
  --ag-label: rgba(245, 247, 247, 0.85);
  --ag-dir: rtl;
  --ag-align: right;
  --ag-flip: -1;

  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-lat: "Outfit", "Tajawal", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --nav-height: 52px;
  --page-margin: 72px;
  --space-md: 16px;
  --space-xl: 36px;
  --space-3xl: 60px;
  --landing-size: 72px;
  --landing-line: 1.25;
  --r-small: 16px;
  --r-card: 24px;
  --r-media: 36px;
  --ease-out-quad: cubic-bezier(.25, .46, .45, .94);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1117; --bg-2: #121922; --bg-3: #1B2630; --bg-4: #233039;
    --fg: #F5F7F7; --fg-2: #9AA7A6; --fg-3: #7D8D90;
    --line: rgba(245, 247, 247, 0.12); --line-2: rgba(245, 247, 247, 0.06);
    --btn: #F5F7F7; --btn-fg: #0D1117; --btn-hover: #DCE4E4;
    --accent: #00C7B1; --focus: #00C7B1; --header-bg: rgba(13, 17, 23, 0.72);
    --band: #121922; --band-fg: #F5F7F7; --band-fg-2: #9AA7A6; --band-line: rgba(245, 247, 247, 0.1);
    --ag-sec: rgba(0, 199, 177, 0.1); --ag-sec-hover: #1B2630; --ag-nav-hover: rgba(0, 199, 177, 0.14);
    --ag-tonal: #121922; --ag-tonal-hover: #1B2630; --ag-overlay: rgba(0, 0, 0, 0.45); --ag-ink: #121922;
    --ag-label: rgba(13, 17, 23, 0.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1117; --bg-2: #121922; --bg-3: #1B2630; --bg-4: #233039;
  --fg: #F5F7F7; --fg-2: #9AA7A6; --fg-3: #7D8D90;
  --line: rgba(245, 247, 247, 0.12); --line-2: rgba(245, 247, 247, 0.06);
  --btn: #F5F7F7; --btn-fg: #0D1117; --btn-hover: #DCE4E4;
  --accent: #00C7B1; --focus: #00C7B1; --header-bg: rgba(13, 17, 23, 0.72);
  --band: #121922; --band-fg: #F5F7F7; --band-fg-2: #9AA7A6; --band-line: rgba(245, 247, 247, 0.1);
  --ag-sec: rgba(0, 199, 177, 0.1); --ag-sec-hover: #1B2630; --ag-nav-hover: rgba(0, 199, 177, 0.14);
  --ag-tonal: #121922; --ag-tonal-hover: #1B2630; --ag-overlay: rgba(0, 0, 0, 0.45); --ag-ink: #121922;
  --ag-label: rgba(13, 17, 23, 0.85);
  color-scheme: dark;
}
@media (max-width: 1600px) { :root { --ag-gutter: 48px; } }
@media (max-width: 1024px) { :root { --landing-size: 56px; --page-margin: 40px; --ag-gutter: 40px; } }
@media (max-width: 767px)  { :root { --landing-size: 40px; --page-margin: 16px; --ag-gutter: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; }
img, video, canvas { max-width: 100%; }
.lat { font-family: var(--font-lat); direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.sr-only {
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0; width: 1px; height: 1px;
  margin: -1px; padding: 0; position: absolute; overflow: hidden;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* مصادرُ الحركات: كانت تظهر مع «كما في موقعها» — والموقعُ الآن بوجهٍ واحد، فالمصادرُ في site-design.md */
.source { display: none !important; }

/* ---------- الشبكة والخطوط ---------- */
.wrap { max-width: 1296px; margin-inline: auto; padding-inline: var(--page-margin); }
.ag-wrap { width: 100%; max-width: calc(1600px + var(--page-margin) * 2); margin-inline: auto; padding-inline: var(--page-margin); }
.ag-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ag-gutter); }
.ag-row { direction: rtl; }
.ag-row .ag-t, .ag-t.ag-row { direction: rtl; text-align: right; }
.ms { font-family: "Material Symbols Outlined"; font-weight: 300; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48; }
.heading-3 { font-size: 54px; line-height: 1.25; font-weight: 700; margin: 0; }
.heading-4 { font-size: 42px; line-height: 1.3; font-weight: 700; margin: 0; }
.heading-5 { font-size: 32px; line-height: 1.35; font-weight: 700; margin: 0; }
.heading-6 { font-size: 28px; line-height: 1.35; font-weight: 700; margin: 0; }
.body { font-size: 17.5px; line-height: 1.8; margin: 0; }
.caption { font-size: 14.5px; line-height: 1.65; margin: 0; }
.small { font-size: 12.5px; line-height: 1.5; font-weight: 500; margin: 0; }
@media (max-width: 1024px) {
  .heading-3 { font-size: 34px; } .heading-4 { font-size: 28px; } .heading-5 { font-size: 28px; } .heading-6 { font-size: 24px; }
  .body, .caption { font-size: 15px; }
}

/* ---------- الأزرار — حبّةٌ واحدةٌ للموقع كلِّه ---------- */
.ag-btn, .pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; min-height: 48px; border-radius: 9999px; border: 1px solid transparent;
  font: 500 17px/1.4 var(--font-ar); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.ag-btn svg, .pill svg { width: 18px; height: 18px; }
/* بصنفين: صفحاتٌ تكتب «a { color: inherit }» بصنفٍ واحدٍ وعنصر، فلا تغلب لونَ الحبّة */
.ag-btn.ag-btn-primary, .pill.pill-dark { background: var(--btn); color: var(--btn-fg); }
.ag-btn.ag-btn-primary:hover, .ag-btn.ag-btn-primary:focus-visible, .pill.pill-dark:hover { background: var(--btn-hover); }
.ag-btn.ag-btn-secondary, .pill.pill-line { background: var(--ag-sec); color: var(--fg); border-color: var(--line-2); }
.ag-btn.ag-btn-secondary:hover, .ag-btn.ag-btn-secondary:focus-visible, .pill.pill-line:hover { background: var(--ag-sec-hover); }
.ag-btn.ag-btn-inv { background: #F5F7F7; color: #0D1117; }
.ag-btn.ag-btn-inv:hover, .ag-btn.ag-btn-inv:focus-visible { background: #DCE4E4; }
.ag-btn.ag-btn-sec-inv { color: #F5F7F7; background: rgba(245, 247, 247, 0.12); border-color: rgba(245, 247, 247, 0.08); }
.ag-btn.ag-btn-sec-inv:hover, .ag-btn.ag-btn-sec-inv:focus-visible { background: rgba(245, 247, 247, 0.2); }
.ag-btn-compact, .pill-sm { min-height: 36px; padding: 6px 16px; font-size: 14.5px; }
@media (max-width: 1024px) { .ag-btn, .pill { font-size: 15px; } }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--fg);
  cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--ag-nav-hover); }

/* رابطُ السهم: يتقدّم نصفَ عرضه بالمرور، ويتّجه يساراً مع القراءة */
.arrow-link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--fg-2); transition: opacity .2s; }
.arrow-link::after {
  content: ""; width: 1.25em; height: 1.25em; flex-shrink: 0; background-color: currentColor; transition: transform .3s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M560.62-253.85L333.85-480.62L560.62-707.77l32.61,32.61L399.08-480.62L593.23-286.46l-32.61,32.61Z'/%3E%3C/svg%3E") 50% / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M560.62-253.85L333.85-480.62L560.62-707.77l32.61,32.61L399.08-480.62L593.23-286.46l-32.61,32.61Z'/%3E%3C/svg%3E") 50% / contain no-repeat;
}
.arrow-link:hover::after, a:hover .arrow-link::after { transform: translateX(-50%); }

/* ---------- الترويسة — واحدةٌ للصفحات كلِّها، تختفي نزولاً وترجع صعوداً ---------- */
.site-header {
  position: fixed; z-index: 100; top: 0; inset-inline: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  transition: transform .3s ease, background-color .3s ease;
}
.site-header.hidden { transform: translateY(-100%); }
/* والقائمةُ مفتوحةً هي والترويسةُ ورقةٌ واحدة: الترويسةُ شفّافةٌ مغبَّشة، فكانت تطلع شريطاً رمادياً فوق قائمةٍ صافية */
.site-header.menu-open, .site-header.dropdown-open { background: var(--bg); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-height); padding-block: 8px; padding-inline: var(--page-margin); }
.site-header .brand-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; width: 199px; color: var(--fg); }
.brand-link svg { width: 22px; height: 22px; }
.brand-link .word { font-family: var(--font-lat); font-weight: 700; font-size: 17px; letter-spacing: 0.1em; }
.header-actions { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; align-items: center; }
.site-header .nav-btn {
  display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 6px 16px;
  border-radius: 9999px; border: 1px solid transparent; background: transparent; color: var(--fg-2);
  font: 500 15px/1.4 var(--font-ar); cursor: pointer; text-decoration: none;
  transition: color .15s ease-out, background-color .15s ease-out;
}
.site-header button.nav-btn { padding-inline: 16px 8px; }
.site-header .nav-btn:hover, .site-header .nav-btn:focus-visible, .site-header .nav-btn.dropdown-open, .site-header .nav-btn[aria-current="page"], .site-header .nav-btn.is-current { color: var(--fg); background: var(--ag-nav-hover); }
.nav-btn .chev { width: 18px; height: 18px; transition: transform .3s; }
.nav-btn.dropdown-open .chev { transform: rotate(-180deg); }
.head-actions { display: flex; align-items: center; gap: 8px; }
/* «دخول» ثمّ «حسابي» بصورته (account.html) — هادئٌ جنب «اطلب مشروعك» لا منافسٌ له */
.acct-entry { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 9999px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font: 500 14.5px/1 var(--font-ar); white-space: nowrap; transition: background-color .15s; }
.acct-entry:hover, .acct-entry:focus-visible, .acct-entry[aria-current="page"] { background: var(--ag-nav-hover); }
.acct-entry svg { width: 18px; height: 18px; flex: none; }
.acct-entry .av { width: 26px; height: 26px; margin-inline-start: -8px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: var(--signal); color: #052320; font: 800 13px/1 var(--font-ar); }
.acct-entry .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-entry.in { border-color: rgba(0, 199, 177, .45); }
.dropdown { position: absolute; top: 100%; inset-inline: 0; overflow: hidden; height: 0; opacity: 0; background: var(--bg); border-radius: 0 0 24px 24px; }
.dropdown .ag-wrap { padding-block: 48px 36px; }
.dropdown-panel-wrapper { display: none; }
.dropdown-panel-wrapper.open { display: block; }
.dropdown-panel { display: flex; gap: 72px; align-items: flex-start; }
.dp-intro { width: 216px; flex: none; }
.dropdown-title { margin: 0; font: 700 24px/1.4 var(--font-ar); color: var(--fg); text-wrap: balance; }
.dropdown-info { margin: 16px 0 24px; font-size: 14.5px; line-height: 1.65; color: var(--fg-2); }
.site-header .nav-button { display: inline-flex; padding: 8px 16px; border-radius: 9999px; border: 1px solid transparent; background: var(--ag-sec); color: var(--fg); font: 500 14.5px/1.4 var(--font-ar); text-decoration: none; transition: background-color .15s; }
.site-header .nav-button:hover { background: var(--ag-sec-hover); }
.subnav-column { width: 288px; flex: none; padding: 0 8px; border-inline: 1px solid var(--line-2); }
.subnav-label { margin: 0 0 8px; padding: 4px 16px; font-size: 14.5px; line-height: 1.65; color: var(--fg-2); }
.subnav { display: flex; flex-direction: column; }
.site-header .subnav-link { display: flex; align-items: center; gap: 8px; padding: 4px 16px; border-radius: 4px; font: 400 17.5px/1.7 var(--font-ar); color: var(--fg); text-decoration: none; }
.site-header .subnav-link:hover, .site-header .subnav-link:focus-visible, .site-header .subnav-link[aria-current="page"] { background: var(--ag-sec); }
.subnav-link .ms { font-size: 22px; }
.dropdown-overlay { position: fixed; inset: 0; z-index: 99; background: var(--ag-overlay); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.dropdown-overlay.open { opacity: 1; visibility: visible; }
.menu-btn { display: none; }
.ag-mobile { display: none; }
@media (max-width: 1024px) {
  .site-header .brand-link { width: auto; }
  .header-actions { justify-content: flex-end; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  /* والزرُّ يصير «×» والقائمةُ مفتوحة: صارت تغطّي الشاشة، فلا صفحةَ تحتها تُلمس لتُسدّ */
  .menu-btn .i-x, .menu-btn[aria-expanded="true"] .i-bars { display: none; }
  .menu-btn[aria-expanded="true"] .i-x { display: inline; }
  /* القائمةُ تملأ الشاشةَ تحت الترويسة: كانت بطولِ روابطها، فيظهر كلامُ الصفحة تحتها كأنّه منها */
  .site-header.menu-open .ag-mobile {
    display: grid; gap: 2px; align-content: start; position: absolute; top: 100%; inset-inline: 0;
    height: calc(100svh - var(--nav-height) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--page-margin) 28px; background: var(--bg); border-bottom: 1px solid var(--line-2);
  }
  .ag-mobile .caption { color: var(--fg-2); padding: 12px 12px 4px; }
  .ag-mobile a { padding: 10px 12px; border-radius: 12px; font-size: 18px; text-decoration: none; }
  .ag-mobile a:hover, .ag-mobile a[aria-current="page"] { background: var(--ag-sec); }
  /* والصفحةُ تحت القائمة المفتوحة لا تتحرّك */
  :root.menu-lock, :root.menu-lock body { overflow: hidden; }
}
@media (max-width: 520px) {
  .head-actions .ag-btn-compact { padding: 6px 12px; }
  .acct-entry { padding: 0 9px; } .acct-entry span:not(.av) { display: none; } .acct-entry .av { margin: 0; }
}
/* «دخول»/«حسابي» أوّلُ ما في القائمة — وتحت ٤٠٠ بكسل هناك وحدَه: العلامةُ و«اطلب مشروعك» والقائمةُ تملأ العرض */
.ag-mobile .ag-acct { font-weight: 700; color: var(--accent); }
@media (max-width: 400px) { .head-actions .acct-entry { display: none; } }
/* ما تحت الترويسة الثابتة يبدأ بعدها */
.under-header { padding-top: var(--nav-height); }

/* ---------- الذيل — واحدٌ للصفحات كلِّها، بكلمةٍ كبيرةٍ يرتفع منها حرفان ---------- */
.ag-footer { position: relative; z-index: 2; border-top: 1px solid var(--line-2); padding-block-start: 24px; background: var(--bg); color: var(--fg); }
.footer-main-content { margin-block-end: 20px; }
.footer-inner { row-gap: 32px; }
.footer-title { grid-column: 1 / span 4; }
.footer-nav-section { display: flex; flex-direction: column; }
.footer-nav-section.fn-1 { grid-column: 7 / span 3; }
.footer-nav-section.fn-2 { grid-column: 10 / span 3; }
.footer-nav-section .caption { margin-block-end: 16px; font-weight: 500; color: var(--fg-2); }
.ag-footer .footer-nav-section a { padding-block: 4px; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--fg); text-decoration: none; }
.ag-footer .footer-nav-section a:hover { color: var(--fg-2); }
.footer-word-wrapper { padding-block: 48px 36px; overflow: hidden; direction: rtl; }
.footer-word { display: block; font-family: var(--font-lat); font-weight: 700; line-height: .82; white-space: nowrap; direction: ltr; text-align: left; letter-spacing: 0.1em; width: max-content; padding-top: .2em; margin-inline-start: 0; }
.footer-word span { display: inline-block; will-change: transform; }
.footer-word span:last-child { margin-right: -0.1em; }
/* وآخرُ الذيل ينتهي فوق زرّ «أوقف الحركة» (عندهم ٣٢ تحته): كان آخرُ سطرٍ فيه تحت الزرّ، ولا تمريرَ بعده يكشفه */
.footer-google-links { border-top: 1px solid var(--line-2); padding-block: 42px calc(88px + env(safe-area-inset-bottom, 0px)); }
.ag-footer .footer-logo { grid-column: 1 / span 3; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); }
.footer-logo svg { width: 22px; height: 22px; }
.footer-logo span { font: 700 16px/1 var(--font-lat); letter-spacing: .1em; }
.footer-google-nav { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14.5px; font-weight: 500; color: var(--fg-2); }
.ag-footer .footer-google-nav a { text-decoration: none; color: var(--fg-2); }
.ag-footer .footer-google-nav a:hover { color: var(--fg); }
@media (max-width: 1024px) {
  .footer-title, .footer-nav-section.fn-1, .footer-nav-section.fn-2, .footer-logo, .footer-google-nav { grid-column: 1 / -1; }
  .footer-google-nav { margin-top: 20px; }
}

/* ---------- التحميل — علامتُنا تنبض، في الموقع كلِّه ----------
   «ضيف هاي لكل الصفحات بمكان دائره التحميل… واي واحده اخرا مشتغله ك انتقاليه» (٦ تشرين الأوّل): ما رآه في «حسابك» حين
   يُعاد تحميلُها صار التحميلَ كلَّه — «ألعاب» حين ينقطع النتُّ ويحمّل السيّارة، و«حسابك»، و«أعمالنا» (العلامةُ هناك على
   لوحتها تنبض بالإيقاع نفسِه، assets/fx/works/overlay.js). والعلامةُ نفسُها في الوسم: <span class="my-load"><svg…></span> */
.my-load { display: grid; place-items: center; gap: 14px; }
.my-load svg { width: 64px; height: 64px; color: #F5F7F7; filter: drop-shadow(0 0 22px rgba(0, 199, 177, .45)); animation: myLoad 1.4s ease-in-out infinite; }
.my-load small { font: 500 13px/1.4 var(--font-ar); color: rgba(245, 247, 247, .55); }
@keyframes myLoad { 50% { transform: scale(.86); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .my-load svg { animation: none; } }

/* ---------- زرُّ «أوقف الحركة» — في أسفل كلِّ صفحة ---------- */
.motion-switch {
  position: fixed; z-index: 90;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  inset-inline-start: 16px;
  display: inline-flex; padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.motion-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/1 var(--font-ar); border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 999px;
  background: transparent; color: var(--fg-2);
}
.motion-switch button:hover { color: var(--fg); }
/* والحركةُ واقفة — بيده أو من الجهاز — فالزرُّ حبّةٌ ممتلئةٌ تُرى: «شغّل الحركة» */
.motion-switch button.is-still, .motion-switch button.is-still:hover { background: var(--btn); color: var(--btn-fg); }
.motion-switch svg { width: 12px; height: 12px; fill: currentColor; }
/* وعلى التلفون أيقونةٌ وحدَها: الكلامُ يملأ عرضَ الشاشة، فكانت الكلمتان تغطّيان سطوراً وأزراراً — أوّلُها زرُّ البداية
   في «كيف نشتغل». والاسمُ باقٍ لقارئ الشاشة */
@media (max-width: 520px) {
  .motion-switch button { padding: 9px; }
  .motion-switch button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* «أوقف الحركة» والدرجةُ ج: كلُّ حركةِ CSS تقف حيث هي — إلّا ما يقرأ التمريرَ، فيدُ الزائر تحرّكه.
   وما يُظهر محتوىً بحركته يُعطى حالتَه الظاهرةَ في صفحته، لا يُترك واقفاً على إطاره الأوّل */
:root[data-motion="paused"] *, :root[data-motion="paused"] *::before, :root[data-motion="paused"] *::after,
:root[data-tier="c"] *, :root[data-tier="c"] *::before, :root[data-tier="c"] *::after { animation-play-state: paused !important; }
:root[data-motion="paused"] .read-bar, :root[data-tier="c"] .read-bar { animation-play-state: running !important; }

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

/* شريطُ الكوكيز — assets/cookies.js. أسفلَ الصفحة من جهة نهاية السطر، بعيداً عن «أوقف الحركة» في بدايته */
.ck-bar { position: fixed; z-index: 9000; inset-inline-end: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px));
  padding: 18px 18px 16px; border-radius: 18px; color: #F5F7F7; background: rgba(13, 17, 23, 0.94);
  border: 1px solid rgba(245, 247, 247, 0.1); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(24px); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ck-bar.on { opacity: 1; transform: none; }
html[data-motion="paused"] .ck-bar { transition: none; }
.ck-bar h2 { margin: 0 0 6px; font: 800 18px/1.3 var(--font-ar, "Tajawal", sans-serif); }
.ck-bar p { margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: rgba(245, 247, 247, 0.78); }
.ck-bar a { color: var(--accent); }
.ck-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .ck-bar { inset-inline: 12px; bottom: 12px; width: auto; } }
