/* =========================================================
   قالب الجمعيات الخيرية — نظام التصميم
   الألوان الأساسية تأتي من لوحة التحكم (--primary و --accent)
   ========================================================= */
:root {
  --primary: #1F6B5C;
  --accent: #E0A24A;
  --primary-700: color-mix(in srgb, var(--primary) 82%, #000);
  --primary-900: color-mix(in srgb, var(--primary) 55%, #0b1412);
  --primary-100: color-mix(in srgb, var(--primary) 12%, #fff);
  --primary-50: color-mix(in srgb, var(--primary) 6%, #fff);
  --accent-700: color-mix(in srgb, var(--accent) 75%, #3a2508);
  --accent-100: color-mix(in srgb, var(--accent) 18%, #fff);
  --bg: #FBF8F3;
  --sand: #F4EDE1;
  --surface: #fff;
  --ink: #1C2624;
  --muted: #5B6864;
  --line: #E9E1D3;
  --ok: #1E7F4F; --warn: #A86A00; --bad: #B4232C; --info: #2459A8;
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(28, 38, 36, .05), 0 2px 8px -2px rgba(28, 38, 36, .06);
  --shadow: 0 1px 2px rgba(28, 38, 36, .04), 0 14px 34px -14px rgba(28, 38, 36, .22);
  --shadow-lg: 0 30px 60px -24px rgba(28, 38, 36, .32);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, #000); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-100); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; justify-content: center; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.container.narrow-wide { width: min(980px, 100% - 40px); }
.section { padding-block: clamp(48px, 6vw, 88px); }
.section.tinted { background: var(--sand); }

/* أيقونات */
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic.big { width: 64px; height: 64px; }
[dir="rtl"] .ic.flip { transform: scaleX(-1); }
[dir="ltr"] .ic.back { transform: scaleX(-1); }

/* ========== الأزرار ========== */
.btn { --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .6rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-700); color: #fff; box-shadow: 0 14px 24px -12px var(--primary); }
.btn-accent { background: var(--accent); color: #2a1c06; box-shadow: 0 8px 20px -10px var(--accent-700); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); color: #2a1c06; box-shadow: 0 14px 26px -12px var(--accent-700); }
.btn-ghost { background: transparent; color: var(--primary-700); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-ghost:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary-700); }
.btn-light { background: #fff; color: var(--primary-700); }
.btn-light:hover { background: var(--primary-50); color: var(--primary-700); }
.btn-lg { min-height: 54px; padding-inline: 1.6rem; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: .35rem .95rem; font-size: .92rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--primary-700); transition: .2s; text-decoration: none; }
.icon-btn:hover { border-color: var(--primary); background: var(--primary-50); }
.icon-btn .ic { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--primary-700); }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic.flip { transform: translateX(-4px) scaleX(-1); }
[dir="ltr"] .link-arrow:hover .ic.flip { transform: translateX(4px); }
.kicker { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--accent-700); background: var(--accent-100); padding: .25rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.kicker .ic { width: 16px; height: 16px; }

/* ========== الهيدر ========== */
/* الخلفية الضبابية في عنصر وهمي حتى لا يصبح الهيدر حاوية للقائمة الجانبية الثابتة */
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, transform .35s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: background-color .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.site-header.is-scrolled::before { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 48px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: var(--primary); color: #fff; box-shadow: inset 0 -6px 0 -2px color-mix(in srgb, var(--accent) 70%, transparent); }
[dir="rtl"] .brand-mark { border-radius: 14px 14px 4px 14px; }
.brand-mark .ic { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 1.3rem; }
.brand-text small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.7); }
.brand-light .brand-mark { background: #fff; color: var(--primary); }

.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .sub-toggle { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; padding: .5rem .75rem; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .98rem; text-decoration: none; background: none; border: 0; transition: background-color .2s, color .2s; }
.main-nav > ul > li > a:hover, .sub-toggle:hover, .has-sub.is-open > .sub-toggle { background: var(--primary-50); color: var(--primary-700); }
.main-nav a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: var(--primary-700); font-weight: 600; }
.main-nav > ul > li > a[aria-current="page"]::after, .has-sub.is-active > .sub-toggle::after { content: ""; position: absolute; bottom: 2px; inset-inline: 30%; height: 3px; border-radius: 3px; background: var(--accent); }
.sub-toggle .ic { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.has-sub.is-open > .sub-toggle .ic { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 10px); inset-inline-start: -8px; min-width: 240px; list-style: none; margin: 0; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s, transform .28s var(--ease), visibility .22s; z-index: 10; }
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .55rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; transition: background-color .15s, padding .2s var(--ease); }
.sub a:hover, .sub a[aria-current="page"] { background: var(--primary-50); color: var(--primary-700); padding-inline-start: 1.05rem; }
.nav-mobile-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.lang-switch:hover { border-color: var(--primary); color: var(--primary-700); }
.lang-switch .ic { width: 17px; height: 17px; }
.btn-donate { min-height: 44px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(15, 22, 20, .45); z-index: 55; opacity: 0; transition: opacity .3s; }
.nav-open .nav-backdrop { opacity: 1; }

@media (max-width: 1280px) {
  .main-nav > ul > li > a, .sub-toggle { padding-inline: .5rem; font-size: .93rem; }
  [lang="en"] .lang-switch span { display: none; }
}
@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; }
  .btn-donate span { display: none; }
  .btn-donate { padding: 0; width: 46px; border-radius: 14px; }
  .main-nav { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 88vw); background: var(--surface); z-index: 58; padding: calc(var(--header-h) + 8px) 1.25rem 1.5rem; overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
  [dir="rtl"] .main-nav { transform: translateX(-105%); }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li > a, .sub-toggle { width: 100%; justify-content: space-between; padding: .8rem .9rem; font-size: 1.05rem; border-radius: 12px; }
  .main-nav > ul > li > a[aria-current="page"]::after, .has-sub.is-active > .sub-toggle::after { display: none; }
  .sub { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 .5rem; background: none; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .sub::before { display: none; }
  .has-sub:not(.is-open) > .sub a { visibility: hidden; }
  .has-sub.is-open > .sub { max-height: 640px; }
  .sub a { padding: .6rem .9rem; border-inline-start: 2px solid var(--line); border-radius: 0 10px 10px 0; }
  [dir="rtl"] .sub a { border-radius: 10px 0 0 10px; }
  .nav-mobile-foot { display: grid; gap: .75rem; margin-top: auto; padding-top: 1.5rem; }
  .nav-phone { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; }
  .header-actions { margin-inline-start: auto; position: relative; z-index: 59; }
}
@media (max-width: 420px) { .lang-switch span { display: none; } .brand-text small { display: none; } }

/* ========== الواجهة ========== */
.hero { position: relative; padding-block: clamp(32px, 5vw, 72px) clamp(90px, 9vw, 130px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-100), transparent); opacity: .7; z-index: -1; }
[dir="rtl"] .hero::before { inset: -20% auto auto -10%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem); line-height: 1.22; margin-bottom: .45em; }
.hero-title .w { display: inline-block; }
.hero-text { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.75rem 1.5rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: .4rem; }
.trust .ic { color: var(--primary); width: 18px; height: 18px; }
.trust a { color: inherit; }
.hero-visual { position: relative; min-height: 460px; }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.arch-main { width: min(440px, 88%); aspect-ratio: 440 / 520; margin-inline-start: auto; box-shadow: var(--shadow-lg); background: var(--sand); isolation: isolate; }
.arch-main img, .arch-main svg { width: 100%; height: 108%; object-fit: cover; }
.arch-small { position: absolute; width: 150px; aspect-ratio: 3/4; inset-inline-end: -28px; top: 8%; background: var(--primary-100); z-index: -1; }
.arch-small span { position: absolute; inset: 0; background-image: radial-gradient(var(--primary) 1.4px, transparent 1.6px); background-size: 16px 16px; opacity: .25; }
.float-card { position: absolute; display: flex; align-items: center; gap: .7rem; background: var(--surface); padding: .7rem 1rem; border-radius: 16px; box-shadow: var(--shadow); line-height: 1.3; animation: floaty 7s ease-in-out infinite; }
.float-card > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--primary-50); color: var(--primary); }
.float-card b { display: block; font-size: 1.15rem; }
.float-card span { font-size: .82rem; color: var(--muted); }
.fc-1 { top: 14%; inset-inline-start: 2%; }
.fc-2 { bottom: 14%; inset-inline-end: -2%; animation-delay: -3.5s; }
.fc-2 > .ic { background: var(--accent-100); color: var(--accent-700); }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.hero-art .art-sun { transform-origin: 300px 150px; animation: sun 9s ease-in-out infinite; }
.hero-art .art-birds { animation: birds 12s ease-in-out infinite; }
.hero-art .art-tree { transform-origin: 135px 410px; animation: sway 8s ease-in-out infinite; }
.hero-art .art-heart { animation: beat 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sun { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes birds { 50% { transform: translate(18px, -8px); } }
@keyframes sway { 50% { transform: rotate(1.6deg); } }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.18); } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; max-width: 460px; margin-inline: auto; width: 100%; order: -1; }
  .arch-main { width: 78%; margin-inline: auto; }
  .fc-1 { inset-inline-start: 0; }
  .fc-2 { inset-inline-end: 0; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-cta, .trust { justify-content: center; }
}
@media (max-width: 520px) {
  .float-card { padding: .5rem .7rem; }
  .float-card > .ic { width: 32px; height: 32px; padding: 7px; }
  .float-card b { font-size: 1rem; }
  .fc-2 { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* تبرع سريع */
.quick-donate-wrap { position: relative; margin-top: calc(-1 * clamp(56px, 6vw, 84px)); z-index: 5; }
.quick-donate { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); }
.qd-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.qd-head h2 { font-size: 1.25rem; margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.qd-head h2 .ic { color: var(--accent); }
.qd-body { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.qd-body .chips { flex: 1 1 380px; }
.seg { display: inline-flex; background: var(--sand); padding: 4px; border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .35rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: .2s; }
.seg input:checked + span { background: var(--surface); color: var(--primary-700); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: baseline; gap: .25rem; min-width: 84px; justify-content: center; padding: .6rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 1.05rem; transition: .2s var(--ease); }
.chip small { font-weight: 500; font-size: .75rem; color: var(--muted); }
.chip:hover span { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.chip input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); box-shadow: 0 0 0 3px var(--primary-100); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips.sm .chip span { min-width: 0; padding: .45rem .8rem; font-size: .95rem; }
.qd-custom { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); border-radius: 14px; padding-inline: .9rem; background: var(--surface); height: 50px; transition: border-color .2s; }
.qd-custom:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.qd-custom input { border: 0; outline: 0; width: 140px; background: none; font-weight: 600; }
.qd-custom.wide { display: flex; margin-top: .75rem; }
.qd-custom.wide input { flex: 1; width: auto; }
.qd-custom small { color: var(--muted); }

/* ========== رؤوس الأقسام ========== */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

/* إحصاءات */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.25rem; text-align: center; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.stat::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .6s var(--ease); }
[dir="ltr"] .stat::after { --origin: left; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat:hover::after, .stat.is-in::after { transform: scaleX(1); }
.stat-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--primary-50); color: var(--primary); margin-bottom: .8rem; }
.stat-ic .ic { width: 26px; height: 26px; }
.stat-num { display: block; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.7rem); font-weight: 700; color: var(--primary-700); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* عن الجمعية */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-visual { position: relative; }
.about-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; box-shadow: var(--shadow-lg); }
[dir="rtl"] .about-visual img { border-radius: var(--r-lg) var(--r-lg) 120px var(--r-lg); }
.about-art { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--primary), var(--primary-900)); display: grid; place-items: center; color: #fff; overflow: hidden; }
.about-art .ic.big { width: 96px; height: 96px; position: relative; z-index: 2; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); animation: ring 9s linear infinite; }
.ring.r1 { width: 50%; aspect-ratio: 1; }
.ring.r2 { width: 80%; aspect-ratio: 1; animation-delay: -3s; }
.ring.r3 { width: 115%; aspect-ratio: 1; animation-delay: -6s; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
@keyframes ring { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.about-badge { position: absolute; bottom: 24px; inset-inline-end: -18px; background: var(--accent); color: #2a1c06; border-radius: 20px; padding: .9rem 1.2rem; box-shadow: var(--shadow); text-align: center; line-height: 1.2; }
.about-badge b { display: block; font-size: 1.9rem; }
.about-badge span { font-size: .85rem; font-weight: 600; }
.prose { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; color: var(--ink); }
.prose ul { padding: 0; list-style: none; display: grid; gap: .5rem; margin: 0 0 1.2em; }
.prose li { position: relative; padding-inline-start: 1.6rem; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.5rem; }
.vm-3 { grid-template-columns: repeat(3, 1fr); margin: 0; }
.vm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; }
.vm-card > span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-100); color: var(--accent-700); margin-bottom: .6rem; }
.vm-card h2, .vm-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.vm-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.values { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.values li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .85rem; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); font-weight: 600; font-size: .92rem; }
.values .ic { width: 16px; height: 16px; }
.vm-card .values { margin: .4rem 0 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-visual { max-width: 460px; width: 100%; margin-inline: auto; } .vm-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vm { grid-template-columns: 1fr; } .about-badge { inset-inline-end: 8px; } }

/* ========== البطاقات ========== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.card-wrap { display: contents; }
.card-wrap[hidden] { display: none; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img, .card:hover .tile-ic { transform: scale(1.06); }
.media-tile { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); background-color: var(--primary-50); background-image: radial-gradient(circle at 20% 120%, color-mix(in srgb, var(--accent) 35%, transparent) 0 30%, transparent 31%), radial-gradient(circle at 90% -10%, color-mix(in srgb, var(--primary) 18%, transparent) 0 35%, transparent 36%); }
.tile-1 { background-color: var(--accent-100); color: var(--accent-700); }
.tile-2 { background-color: color-mix(in srgb, var(--primary) 16%, #fff); }
.tile-3 { background-color: var(--sand); }
.tile-ic { width: 72px !important; height: 72px !important; transition: transform .8s var(--ease); stroke-width: 1.3; }
.tag { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255,255,255,.92); color: var(--primary-700); font-size: .8rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); }
.card-body { padding: 1.25rem 1.3rem .5rem; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .4s var(--ease); }
[dir="ltr"] .card-body h3 a { background-position: 0 100%; }
.card-body h3 a:hover { background-size: 100% 1.5px; }
.card-body p { color: var(--muted); font-size: .97rem; margin-bottom: .8rem; }
.card-foot { display: flex; gap: .5rem; padding: .5rem 1.3rem 1.3rem; }
.card-foot .btn { flex: 1; }
.meta { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.meta .ic { width: 16px; height: 16px; }
.progress { margin-top: .4rem; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); transition: width 1.4s var(--ease) .2s; }
[dir="rtl"] .progress-bar span { background: linear-gradient(-90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent))); margin-inline-start: 0; }
.js .reveal:not(.is-in) .progress-bar span { width: 0; }
.progress-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .83rem; color: var(--muted); margin-top: .4rem; }
.progress-meta b { color: var(--ink); }

/* شريط الدعوة */
.cta-band { padding-block: clamp(24px, 4vw, 40px); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--primary), var(--primary-900)); color: #fff; overflow: hidden; isolation: isolate; }
.cta-inner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.4px); background-size: 20px 20px; mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); z-index: -1; }
[dir="rtl"] .cta-inner::before { mask-image: linear-gradient(-90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(-90deg, #000, transparent 60%); }
.cta-deco { position: absolute; inset-inline-end: -40px; bottom: -60px; color: var(--accent); opacity: .18; z-index: -1; }
.cta-deco .ic { width: 280px; height: 280px; animation: beat2 3s ease-in-out infinite; }
@keyframes beat2 { 30% { transform: scale(1.06); } 60% { transform: scale(1); } }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.82); margin: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; text-align: center; } .cta-actions { justify-content: center; } .cta-inner p { margin-inline: auto; } }

/* الشفافية */
.tr-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gov-links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.gov-links a { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: .25s var(--ease); }
.gov-links a > .ic:first-child { color: var(--primary); }
.gov-links a span { flex: 1; }
.gov-links .go { opacity: 0; transition: .25s var(--ease); color: var(--primary); }
.gov-links a:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.gov-links a:hover .go { opacity: 1; }
.tr-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.doc-cover { position: relative; display: flex; flex-direction: column; gap: .6rem; min-height: 230px; padding: 1.2rem; border-radius: 6px var(--r) var(--r) 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
[dir="rtl"] .doc-cover { border-radius: var(--r) 6px 6px var(--r); }
.doc-cover::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 10px; background: linear-gradient(var(--primary), var(--accent)); }
.doc-cover:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); color: var(--ink); }
.doc-year { font-weight: 700; color: var(--accent-700); font-size: .85rem; }
.doc-ic .ic { width: 40px; height: 40px; color: var(--primary); }
.doc-cover b { font-size: 1.02rem; line-height: 1.45; flex: 1; }
.doc-open { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--primary-700); font-weight: 600; }
.doc-open .ic { width: 15px; height: 15px; }
.doc-more { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .tr-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .tr-docs { grid-template-columns: 1fr 1fr; } .gov-links { grid-template-columns: 1fr; } }

/* الآراء */
.testimonials { background: var(--sand); }
.slider-nav { display: flex; gap: .5rem; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 86%); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; margin: 0; background: var(--surface); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--line); position: relative; }
.t-q { width: 42px !important; height: 42px !important; color: var(--accent); }
.t-card blockquote { margin: 0; flex: 1; }
.t-card blockquote p { margin: 0; font-size: 1.05rem; }
.t-card figcaption { display: flex; align-items: center; gap: .75rem; }
.t-card figcaption small { display: block; color: var(--muted); font-size: .85rem; }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; flex: none; }
.avatar.xl { width: 96px; height: 96px; font-size: 1.8rem; background: linear-gradient(140deg, var(--primary), var(--primary-900)); }
.share-opinion { margin-top: 1.5rem; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); }
.share-opinion summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: 1rem 1.3rem; font-weight: 600; color: var(--primary-700); }
.share-opinion summary::-webkit-details-marker { display: none; }
.share-opinion[open] summary { border-bottom: 1px solid var(--line); }
.share-opinion form { padding: 1.3rem; }

/* الشركاء */
.partners-band { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.band-title { text-align: center; font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-bottom: 1.5rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; list-style: none; padding: 0; margin: 0; animation: marquee var(--mq-dur, 40s) linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li > * { display: grid; place-items: center; width: 190px; height: 92px; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); filter: grayscale(1); opacity: .75; transition: .3s; }
.marquee-track li > *:hover { filter: none; opacity: 1; }
.marquee-track img { max-height: 56px; width: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - .625rem)); } }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + .625rem)); } }

/* ========== الفوتر ========== */
.site-footer { position: relative; background: var(--primary-900); color: rgba(255,255,255,.78); padding-top: clamp(56px, 7vw, 88px); margin-top: 0; }
.footer-wave { position: absolute; inset: -1px 0 auto; height: 40px; background: var(--bg); clip-path: ellipse(70% 100% at 50% 0); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-about p { font-size: .95rem; margin-top: 1rem; }
.license { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; }
.license .ic { color: var(--accent); margin-top: .2em; }
.license b { color: #fff; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-links a, .footer-contact a { color: inherit; text-decoration: none; transition: color .2s, padding .2s var(--ease); }
.footer-links a:hover { color: #fff; padding-inline-start: 4px; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; }
.footer-contact .ic { color: var(--accent); margin-top: .25em; width: 18px; height: 18px; }
.footer-contact a:hover { color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; transition: .25s var(--ease); }
.socials a:hover { background: var(--accent); color: #2a1c06; transform: translateY(-3px); }
.socials.dark a { background: var(--primary-50); color: var(--primary-700); }
.socials .ic { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-block: 1.3rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.to-top { color: inherit; text-decoration: none; }
.to-top:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.mobile-donate { display: none; }
@media (max-width: 720px) {
  .mobile-donate { position: fixed; inset-inline: 14px; bottom: 14px; z-index: 50; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 54px; border-radius: 999px; background: var(--accent); color: #2a1c06; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transform: translateY(140%); transition: transform .4s var(--ease); }
  .mobile-donate.is-shown { transform: none; }
  .site-footer { padding-bottom: 80px; }
  body.checkout .mobile-donate, body.receipt-page .mobile-donate { display: none; }
}

/* ========== الصفحات الداخلية ========== */
.page-hero { position: relative; padding-block: clamp(36px, 5vw, 64px); background: linear-gradient(180deg, var(--sand), var(--bg)); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero-art { position: absolute; inset-block: -40px; inset-inline-end: -60px; width: min(420px, 50vw); background: radial-gradient(circle at 50% 50%, transparent 38%, color-mix(in srgb, var(--primary) 9%, transparent) 38.5% 40%, transparent 40.5%), radial-gradient(circle at 50% 50%, transparent 55%, color-mix(in srgb, var(--accent) 22%, transparent) 55.5% 56.5%, transparent 57%), radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent) 0 22%, transparent 22.5%); pointer-events: none; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-hero h1 { margin-bottom: .3em; max-width: 24ch; position: relative; }
.page-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0; position: relative; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: .3rem; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-700); }
.lead { font-size: 1.15rem; color: var(--muted); }
.with-side { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.with-side.side-end { grid-template-columns: 1fr 340px; }
.side-main { min-width: 0; }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.side-nav ul { list-style: none; padding: .5rem; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; transition: .2s; }
.side-nav a .ic { color: var(--muted); width: 19px; height: 19px; }
.side-nav a:hover { background: var(--primary-50); }
.side-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.side-nav a[aria-current="page"] .ic { color: #fff; }
.side-help { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.side-help h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.side-help h2 .ic { color: var(--accent); }
.side-help ul { padding-inline-start: 1.1rem; margin: 0 0 1rem; color: var(--muted); font-size: .95rem; display: grid; gap: .4rem; }
@media (max-width: 960px) {
  .with-side, .with-side.side-end { grid-template-columns: 1fr; }
  .side-nav, .side-help { position: static; }
  .side-nav ul { display: flex; overflow-x: auto; scrollbar-width: none; }
  .side-nav li { flex: none; }
}
.cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 2rem; }
.cover-tile { position: relative; display: grid; place-items: center; }
.cover-tile .tile-ic { width: 120px !important; height: 120px !important; }
.page-figure { margin: 2rem 0; }
.page-figure img { border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.g-open { display: block; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; }
.file-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); margin-top: 1.5rem; transition: .25s; }
.file-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.file-card > span:nth-child(2) { flex: 1; }
.file-card small { display: block; color: var(--muted); }

/* المستندات */
.year-filter, .tabs-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .93rem; text-decoration: none; transition: .2s; }
.pill:hover { border-color: var(--primary); color: var(--primary-700); }
.pill.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill .ic { width: 17px; height: 17px; }
.year-head { font-size: 1rem; color: var(--accent-700); display: flex; align-items: center; gap: .75rem; margin: 1.75rem 0 .9rem; }
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.doc-year-group:first-of-type .year-head { margin-top: 0; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.doc-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .25s; }
.doc-row:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: var(--shadow-sm); }
.doc-badge { display: grid; place-items: center; width: 46px; height: 52px; border-radius: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; flex: none; }
.doc-badge.pdf { background: #FBE9E7; color: #B3261E; }
.doc-badge.img { background: var(--primary-50); color: var(--primary); }
.doc-info { flex: 1; min-width: 0; }
.doc-info b { display: block; font-weight: 600; }
.doc-info small { color: var(--muted); }
.doc-actions { display: flex; gap: .4rem; align-items: center; }
@media (max-width: 560px) { .doc-row { flex-wrap: wrap; } .doc-actions { width: 100%; justify-content: flex-end; } }

/* الأشخاص واللجان */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.6rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; font: inherit; }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.person .avatar, .person img { margin-bottom: .6rem; box-shadow: 0 0 0 5px var(--primary-50); }
.person b { font-size: 1.02rem; }
.person small { color: var(--muted); }
.committees { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.committee { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; }
.committee h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.committee h2 .ic { color: var(--primary); }
.committee ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.committee li { display: flex; gap: .7rem; align-items: center; }
.committee li small { display: block; color: var(--muted); font-size: .85rem; }

/* النوافذ */
dialog { border: 0; padding: 0; color: var(--ink); }
.modal { width: min(560px, 92vw); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.modal::backdrop, .lightbox::backdrop { background: rgba(12, 18, 16, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink); z-index: 3; }
.modal-x:hover { background: var(--line); }
.modal-person { text-align: center; }
.modal-person img, .modal-person .avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; }
.modal-person .prose { text-align: start; margin-top: 1rem; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; display: none; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: .75rem; animation: pop .35s var(--ease); }
.lightbox img { max-height: 78vh; width: auto; border-radius: 12px; background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; }
.lb-nav { position: fixed; top: 50%; translate: 0 -50%; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; }
.lb-prev { inset-inline-start: 16px; }
.lb-next { inset-inline-end: 16px; }
.lightbox .modal-x { position: fixed; background: rgba(255,255,255,.9); }

/* المعرض */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.g-item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s var(--ease); }
.letters .g-item img { aspect-ratio: 3/4; object-fit: contain; background: var(--sand); padding: .75rem; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { padding: .8rem 1rem; display: flex; justify-content: space-between; gap: .5rem; font-size: .95rem; }
.g-item figcaption small { color: var(--muted); }
.letter-pdf { display: grid; place-items: center; aspect-ratio: 3/4; background: var(--sand); color: var(--primary); }
.video-card { margin: 0; }
.video-card figcaption { margin-top: .6rem; font-weight: 600; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.04); }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #2a1c06; display: grid; place-items: center; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent); }
.yt iframe, .video-card video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r); }
.audio-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.audio-list li { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.audio-list b { flex: 1; min-width: 180px; }
.audio-list audio { width: min(100%, 360px); }

.partners-grid { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; height: 100%; min-height: 170px; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; text-align: center; transition: .3s var(--ease); }
.partner img { max-height: 64px; width: auto; }
a.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.center-box { text-align: center; max-width: 620px; margin-inline: auto; }
.center-box h2 { margin-bottom: .3em; }

/* الخدمات */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.1rem; }
.service-card { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.service-card::before { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--primary-50); transition: transform .6s var(--ease); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.service-card:hover::before { transform: scale(2.6); }
.service-card > * { position: relative; }
.service-card b { font-size: 1.15rem; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.service-card .go { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary-700); font-weight: 600; margin-top: .6rem; }
.service-card.alt { background: var(--primary); color: #fff; border-color: var(--primary); }
.service-card.alt::before { background: rgba(255,255,255,.08); }
.service-card.alt p, .service-card.alt .go { color: rgba(255,255,255,.85); }
.service-card.alt .svc-ic { background: rgba(255,255,255,.15); color: #fff; }
.svc-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-100); color: var(--primary-700); margin-bottom: .5rem; flex: none; }
.svc-ic .ic { width: 26px; height: 26px; }

/* ========== النماذج ========== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.panel-title { font-size: 1.3rem; display: flex; align-items: center; gap: .55rem; }
.panel-title .ic { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.fld-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: .35rem; }
.fld label, fieldset legend { font-weight: 600; font-size: .95rem; }
.req { color: var(--bad); }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: .65rem .95rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.fld textarea { resize: vertical; min-height: 120px; }
[dir="rtl"] .fld input[dir="ltr"] { text-align: right; }
[dir="rtl"] .fld input[dir="ltr"]::placeholder { text-align: right; }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6864' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left .9rem center; padding-inline-end: 2.6rem; }
[dir="ltr"] .fld select { background-position: right .9rem center; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.fld.is-invalid input, .fld.is-invalid select, .fld.is-invalid textarea { border-color: var(--bad); background: #FFF8F8; }
.fld-err { color: var(--bad); font-size: .87rem; margin: 0; }
.file-drop { position: relative; border: 1.5px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); border-radius: 14px; padding: 1rem; background: var(--primary-50); transition: .2s; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--primary); }
.file-drop input { min-height: 0; border: 0; padding: 0; background: none; }
.file-drop input:focus { box-shadow: none; }
.file-hint { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .25em; accent-color: var(--primary); flex: none; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
fieldset { border: 0; padding: 0; margin: 0 0 1.3rem; }
fieldset legend { margin-bottom: .6rem; }
.alert { display: flex; gap: .6rem; align-items: center; padding: .85rem 1.1rem; border-radius: 14px; margin-block: 1rem; font-weight: 500; }
.alert-error { background: #FDECEC; color: #8A1C23; }
.alert-success { background: #E6F5EC; color: #165C39; }
.alert-warn { background: #FFF4DE; color: #7A4D00; }
.alert-info { background: #E8F0FB; color: #1B4482; }
.panel .alert:first-child { margin-top: 0; }
.success-box { text-align: center; padding: clamp(28px, 5vw, 56px) 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.success-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #E6F5EC; color: var(--ok); margin-bottom: 1rem; animation: pop-in .6s var(--ease); }
.success-ic .ic { width: 42px; height: 42px; stroke-width: 2.2; }
.is-fail .success-ic { background: #FDECEC; color: var(--bad); }
.is-wait .success-ic { background: #FFF4DE; color: var(--warn); }
@keyframes pop-in { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: none; } }
.ref-code { display: inline-flex; align-items: center; gap: .75rem; padding: .5rem .6rem .5rem 1.2rem; border-radius: 16px; background: var(--sand); font-size: 1.4rem; letter-spacing: .04em; margin-bottom: 1rem; }
[dir="rtl"] .ref-code { padding: .5rem 1.2rem .5rem .6rem; }
.consent { padding-top: .3rem; }

/* التتبع */
.track-result { margin-top: 1.5rem; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.track-head h2 { margin: 0; font-size: 1.4rem; }
.badge { display: inline-flex; padding: .3rem .9rem; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.badge-info { background: #E8F0FB; color: var(--info); }
.badge-warn { background: #FFF4DE; color: var(--warn); }
.badge-ok { background: #E6F5EC; color: var(--ok); }
.badge-bad { background: #FDECEC; color: var(--bad); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: s; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; font-size: .88rem; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 18px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.is-done::before { background: var(--primary); }
.steps li > span { position: relative; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font-weight: 700; }
.steps li.is-done > span { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps li.is-current > span { box-shadow: 0 0 0 6px var(--primary-100); }
.steps li.is-done { color: var(--ink); font-weight: 600; }
.kv { display: grid; gap: .1rem; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: end; }
.note { display: flex; gap: .7rem; background: var(--primary-50); border-radius: 14px; padding: 1rem; margin-top: 1rem; }
.note .ic { color: var(--primary); margin-top: .2em; }
.note p { margin: 0; }

/* التواصل */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: .8rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: .25s var(--ease); }
.contact-card .svc-ic { margin: 0; }
.contact-card small { display: block; color: var(--muted); }
a.contact-card:hover { border-color: var(--primary); transform: translateX(-4px); color: var(--ink); }
[dir="ltr"] a.contact-card:hover { transform: translateX(4px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* صفحة البرنامج */
.donate-box { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.ring-progress { --p: 0; width: 150px; aspect-ratio: 1; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--sand) 0); position: relative; }
.ring-progress::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.ring-progress span { position: relative; text-align: center; line-height: 1.2; }
.ring-progress b { display: block; font-size: 1.9rem; color: var(--primary-700); }
.ring-progress small { color: var(--muted); }
.box-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0 0 1.2rem; }
.box-stats > div { background: var(--bg); border-radius: 12px; padding: .6rem .8rem; }
.box-stats dt { font-size: .82rem; color: var(--muted); }
.box-stats dd { margin: 0; font-weight: 700; }
.box-stats small { font-weight: 500; color: var(--muted); }
.box-form { display: grid; gap: .9rem; }
.done-note { display: flex; gap: .5rem; align-items: center; color: var(--ok); font-weight: 600; }
.share { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }

/* التبرع */
.kind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.kind { position: relative; }
.kind input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kind span { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem .5rem; border: 1.5px solid var(--line); border-radius: 16px; font-weight: 600; font-size: .93rem; text-align: center; transition: .2s var(--ease); }
.kind .ic { width: 26px; height: 26px; color: var(--muted); transition: .2s; }
.kind input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); box-shadow: 0 0 0 3px var(--primary-100); }
.kind input:checked + span .ic { color: var(--primary); transform: scale(1.1); }
.kind input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .kind-grid { grid-template-columns: 1fr 1fr; } }
.donate-form .fld { margin-bottom: 1.3rem; }
.donor-more { margin-bottom: 1.3rem; border: 1px solid var(--line); border-radius: 16px; }
.donor-more summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; }
.donor-more[open] summary { border-bottom: 1px solid var(--line); }
.donor-more .form-grid { padding: 1.1rem; }
.donate-total { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-radius: 16px; background: var(--sand); margin-bottom: 1rem; }
.donate-total b { font-size: 1.5rem; color: var(--primary-700); font-variant-numeric: tabular-nums; }
.pay-logos { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }
.pay-logos .ic { width: 16px; height: 16px; color: var(--ok); }
.notice { display: flex; gap: 1rem; align-items: flex-start; }
.notice > .ic { width: 32px; height: 32px; color: var(--info); }
.notice h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.notice p { margin: 0; }
.block-title { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .9rem; }
.platform { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: .3s var(--ease); }
.platform .svc-ic { margin: 0; }
.platform > span:nth-child(2) { flex: 1; }
.platform small { display: block; color: var(--muted); font-size: .88rem; }
.platform > .ic { color: var(--muted); }
.platform:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--ink); }
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .9rem; }
.bank { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.bank header { display: flex; gap: .8rem; align-items: center; margin-bottom: .3rem; }
.bank header .svc-ic { margin: 0; width: 44px; height: 44px; }
.bank header small { display: block; color: var(--muted); }
.bank dl { margin: 0; }
.bank dt { font-size: .82rem; color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.iban { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; font-size: .95rem; word-break: break-all; }
.bank-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.checkout-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 1.2rem; }
.summary .donate-total { margin-block: 1rem; }
.pay-panel .mysr-form { max-width: 440px; margin-inline: auto; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .summary { position: static; } }
.thanks { text-align: center; margin-bottom: 2rem; }
.receipt { position: relative; overflow: hidden; }
.receipt::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.receipt-head h2 { font-size: 1.15rem; margin: 0; }
.receipt-head > div { text-align: end; }
.receipt-head > div span { color: var(--muted); font-size: .9rem; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--primary-50); }
.receipt-total b { font-size: 1.5rem; color: var(--primary-700); }
.receipt-foot { margin-top: 1.25rem; font-size: .82rem; color: var(--muted); text-align: center; }

.empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 3rem 1rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.empty .ic { width: 40px; height: 40px; color: var(--accent); }
.empty p { margin: 0; }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.notfound .nf-code { display: block; font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ========== الحركة ========== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js [data-split] .w { opacity: 0; transform: translateY(.5em); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.js [data-split].is-in .w { opacity: 1; transform: none; }
.js [data-split].reveal { opacity: 1; transform: none; }
.js [data-parallax] { transform: translateY(var(--py, 0)); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js [data-split] .w { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}

/* ========== الطباعة ========== */
@media print {
  .site-header, .site-footer, .mobile-donate, .no-print, .page-hero, .skip, .nav-backdrop { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .panel { box-shadow: none; border-color: #ccc; }
  .js .reveal { opacity: 1; transform: none; }
}
