/* =====================================================================
   mobadarainsan.com — نفس هوية القناة: زيتوني داكن، رملي، أحمر الرمّان، تطريز
   ===================================================================== */

/* ---------- الخطوط (مستضافة محلياً — CSP: font-src 'self') ---------- */
@font-face { font-family: "Kufi"; src: url(../fonts/kufi-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Kufi"; src: url(../fonts/kufi-arabic-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Kufi"; src: url(../fonts/kufi-arabic-800.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Kufi"; src: url(../fonts/kufi-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Kufi"; src: url(../fonts/kufi-latin-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Kufi"; src: url(../fonts/kufi-latin-800.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex"; src: url(../fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Plex"; src: url(../fonts/plex-arabic-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Plex"; src: url(../fonts/plex-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Plex"; src: url(../fonts/plex-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex"; src: url(../fonts/plex-latin-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex"; src: url(../fonts/plex-latin-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---------- الرموز ---------- */
:root {
  --ink: #0B1F19;
  --ink-2: #11291F;
  --olive: #1E4636;
  --sage: #7A9478;
  --sand: #F3EBDD;
  --sand-2: #E9DEC9;
  --sand-dim: #CFC2A8;
  --paper: #F8F3EA;
  --card: #FFFCF6;
  --red: #C8323C;
  --red-2: #AC2630;
  --text: #13221C;
  --muted: #55645C;
  --line: rgba(19, 34, 28, 0.12);
  --line-l: rgba(243, 235, 221, 0.16);

  --display: "Kufi", "Segoe UI", Tahoma, sans-serif;
  --body: "Plex", "Segoe UI", Tahoma, sans-serif;

  --nav: 72px;
  --gut: 80px;
  --padt: 120px;
  --padb: 72px;
  --r: 18px;
  --r-s: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --h1: clamp(38px, 5vw, 70px);
  --h2: clamp(30px, 3.4vw, 48px);
  --h3: clamp(19px, 1.5vw, 22px);
  --lead: clamp(17px, 1.4vw, 20px);
}
@media (max-width: 1279px) { :root { --gut: 48px; } }
@media (max-width: 639px) { :root { --gut: 24px; --padt: 96px; --padb: 48px; --nav: 64px; } }

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.75 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[lang="en"] body, html[lang="en"] { --h1: clamp(38px, 5vw, 68px); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: var(--sand); }

.skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 100; background: var(--sand); color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- الأقسام: كل قسم شاشة واحدة على الأقل ---------- */
.section { position: relative; min-height: 100svh; padding: var(--padt) 0 var(--padb); overflow: clip; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--sand); }
.section--olive { background: var(--olive); color: var(--sand); }

.head { max-width: 760px; margin-bottom: clamp(36px, 5vh, 56px); }
.head h2 { font-size: var(--h2); line-height: 1.3; }
html[lang="en"] .head h2 { line-height: 1.12; }
.head__intro { margin-top: 16px; font-size: var(--lead); line-height: 1.7; color: var(--muted); max-width: 62ch; }
.section--ink .head__intro, .section--olive .head__intro { color: var(--sand-dim); }
.head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head--row > div { max-width: 760px; }

/* ---------- الأزرار والروابط ---------- */
.btn {
  --bg: var(--red); --fg: var(--sand); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: 600 16px/1 var(--body); white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn--primary:hover { --bg: var(--red-2); }
.btn--ghost { --bg: transparent; --fg: var(--sand); --bd: rgba(243, 235, 221, 0.35); }
.btn--ghost:hover { --bd: var(--sand); --bg: rgba(243, 235, 221, 0.06); }
.btn--ghost-dark { --bg: transparent; --fg: var(--ink); --bd: rgba(11, 31, 25, 0.3); }
.btn--ghost-dark:hover { --bd: var(--ink); }
.btn--dark, .btn--whatsapp { --bg: var(--ink); --fg: var(--sand); }
.btn--dark:hover, .btn--whatsapp:hover { --bg: var(--olive); }

.link { position: relative; padding-block: 6px; }
.link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: var(--from, right); transition: transform 0.35s var(--ease); }
html[dir="ltr"] .link::after { --from: left; }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link--icon { display: inline-flex; align-items: center; gap: 8px; }
.brand-ic { width: 22px; height: 22px; flex: none; }

/* ---------- الشعار ---------- */
.mark { color: var(--sand); }
.mark--nav { width: 38px; height: 38px; }

/* ---------- الشريط العلوي ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); color: var(--sand); transition: background-color 0.35s, box-shadow 0.35s, transform 0.4s var(--ease); }
.nav.is-scrolled { background: rgba(11, 31, 25, 0.9); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line-l); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__row { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font: 800 19px/1 var(--display); margin-inline-end: auto; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav__lang { padding-inline-start: 22px; border-inline-start: 1px solid var(--line-l); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-l); background: transparent; color: var(--sand); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; }

@media (max-width: 1023px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav) 0 0; z-index: -1; background: var(--ink);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 24px var(--gut) 40px; font: 800 26px/1.4 var(--display);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .nav__links .link { padding-block: 16px; border-bottom: 1px solid var(--line-l); }
  .nav__links .link::after { display: none; }
  .nav__lang { padding-inline-start: 0; border-inline-start: 0; font-family: var(--body); font-size: 18px; }
  .nav.is-open { background: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.4s var(--ease); }
}
@media (max-width: 639px) {
  .nav .btn[data-nav-cta] { display: none; }
  .nav__brand { font-size: 17px; }
}

/* ---------- البطل ---------- */
.hero { background: var(--ink); color: var(--sand); height: 100svh; min-height: 640px; padding: calc(var(--nav) + 56px) 0 calc(var(--padb) + 24px); display: flex; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 30% 45%, rgba(30, 70, 54, 0.95), transparent 70%), radial-gradient(40% 50% at 85% 90%, rgba(200, 50, 60, 0.12), transparent 70%); pointer-events: none; }
html[dir="ltr"] .hero__glow { transform: scaleX(-1); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-content: space-between; width: min(100% - 2 * var(--gut), 1280px); }
.hero__text { grid-column: 1 / span 7; align-self: start; }
.hero__h1 { font-size: var(--h1); line-height: 1.32; }
html[lang="en"] .hero__h1 { line-height: 1.08; }
.hero__lead { margin-top: 24px; font-size: var(--lead); line-height: 1.8; color: var(--sand-dim); max-width: 56ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { grid-column: 8 / span 5; grid-row: 1; align-self: center; justify-self: end; position: relative; width: 100%; max-height: calc(100svh - 360px); aspect-ratio: 1; display: grid; place-items: center; }
.mark--hero { width: 72%; height: 72%; position: relative; z-index: 1; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(243, 235, 221, 0.14); }
.hero__ring--2 { inset: 13%; border-color: rgba(243, 235, 221, 0.08); background: radial-gradient(circle, rgba(243, 235, 221, 0.05), transparent 70%); }
.hero__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line-l); }
.hero__facts div { margin: 0; }
.hero__facts dt { display: flex; align-items: center; gap: 10px; font: 800 20px/1.4 var(--display); color: var(--sand); }
.hero__facts dd { margin: 4px 0 0; font-size: 15px; color: var(--sand-dim); }
.hero__band { position: absolute; inset: auto 0 0; height: 46px; color: var(--sage); opacity: 0.3; z-index: 0; }
.tatreez { width: 100%; height: 100%; }

@media (max-width: 1023px) {
  .hero__text { grid-column: 1 / -1; }
  .hero__art { grid-column: 1 / -1; grid-row: auto; width: 100%; aspect-ratio: auto; height: 300px; justify-self: stretch; margin-block: 8px; }
  .hero__ring { inset: 0 auto; left: 50%; height: 100%; aspect-ratio: 1; transform: translateX(-50%); }
  .hero__ring--2 { inset: 13% auto; height: 74%; }
  .mark--hero { width: 210px; height: 210px; }
}
@media (max-width: 639px) {
  .hero { padding-top: calc(var(--nav) + 32px); min-height: 0; height: auto; min-height: 100svh; }
  .hero__art { display: none; }
  .hero__lead { margin-top: 18px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; padding-top: 22px; margin-top: 36px; }
  .hero__facts div:nth-child(n + 3) { display: none; }
}

/* ---------- عن المبادرة: الاحتياجات ---------- */
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.need { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 30px; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.need:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(11, 31, 25, 0.4); border-color: rgba(30, 70, 54, 0.35); }
.need__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--olive); color: var(--sand); display: grid; place-items: center; margin-bottom: 20px; transition: background-color 0.3s; }
.need:hover .need__icon { background: var(--red); }
.need__icon .ic { width: 30px; height: 30px; }
.need h3 { font-size: var(--h3); line-height: 1.5; }
.need p { margin-top: 6px; color: var(--muted); }
@media (max-width: 1023px) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .needs { grid-template-columns: 1fr 1fr; gap: 12px; } .need { padding: 20px 18px; } .need__icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px; } .need__icon .ic { width: 26px; height: 26px; } .need p { font-size: 14px; line-height: 1.6; } }

/* ---------- لحظة: الجملة التي تُضاء كلمة كلمة ---------- */
.voice { min-height: 200svh; padding: 0; }
.voice__wrap { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: var(--nav); }
.mark--voice { width: 64px; height: 64px; }
.voice__line { font-size: clamp(34px, 5.4vw, 80px); line-height: 1.45; max-width: 18ch; }
html[lang="en"] .voice__line { line-height: 1.12; max-width: 20ch; }
.voice__line .w { opacity: 0.2; }
.voice__sub { font-size: var(--lead); color: var(--sand-dim); max-width: 46ch; }
.voice__band { position: absolute; inset: auto 0 0; height: 46px; color: var(--sand); opacity: 0.16; }
html.no-js .voice__line .w, html.reduce .voice__line .w { opacity: 1; }

/* ---------- المناشدات ---------- */
.vgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.vcard { grid-column: span 3; }
.vcard--featured { grid-column: span 6; grid-row: span 2; }
.vcard__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--r); transition: transform 0.35s var(--ease); }
.vcard__link:hover { transform: translateY(-2px); }
.vcard__frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.vcard--featured .vcard__frame { aspect-ratio: auto; flex: 1; min-height: 300px; }
.vcard__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.vcard__link:hover img { transform: scale(1.03); }
.vcard__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(200, 50, 60, 0.94); color: #fff; display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.vcard--featured .vcard__play { width: 76px; height: 76px; }
.vcard__play svg { width: 44%; margin-inline-start: 4%; }
.vcard__link:hover .vcard__play { transform: scale(1.08); }
.vcard__time { position: absolute; inset-inline-end: 10px; bottom: 10px; background: rgba(5, 12, 10, 0.82); color: #fff; font: 600 12.5px/1 var(--body); padding: 5px 8px; border-radius: 6px; direction: ltr; }
.vcard__body { display: block; padding-top: 10px; }
.vcard__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 15px/1.55 var(--display); }
.vcard--featured .vcard__title { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5; }
.vcard__meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) { .vcard { grid-column: span 6; } .vcard--featured { grid-column: 1 / -1; grid-row: auto; } .vcard--featured .vcard__frame { aspect-ratio: 16 / 9; } }
@media (max-width: 639px) { .vgrid { gap: 18px; } .vcard { grid-column: 1 / -1; } .vcard:nth-child(n + 4) { display: none; } }

.empty { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
.empty__channel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; min-height: 420px; padding: 40px; border-radius: var(--r); background: radial-gradient(80% 80% at 70% 20%, var(--olive), var(--ink) 75%); color: var(--sand); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.empty__channel:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -30px rgba(11, 31, 25, 0.6); }
.mark--empty { width: 132px; height: 132px; position: absolute; inset-block-start: 40px; inset-inline-start: 40px; transition: transform 0.6s var(--ease); }
.empty__channel:hover .mark--empty { transform: scale(1.03); }
.empty__name { font: 800 clamp(22px, 2vw, 28px)/1.4 var(--display); }
.empty__handle { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--sand-dim); }
.empty__subs { font-size: 15px; color: var(--sand-dim); }
.empty__subs b { font: 800 22px/1 var(--display); color: var(--sand); }
.empty__text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 40px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.empty__text p { font: 700 clamp(20px, 2vw, 30px)/1.6 var(--display); max-width: 26ch; }
html[lang="en"] .empty__text p { line-height: 1.35; }
@media (max-width: 1023px) { .empty { grid-template-columns: 1fr; } .empty__channel { min-height: 300px; } }
@media (max-width: 639px) { .empty__channel, .empty__text { padding: 26px; } .mark--empty { width: 96px; height: 96px; inset-block-start: 26px; inset-inline-start: 26px; } .empty__channel { min-height: 280px; } .empty__text .btn { width: 100%; } }

/* ---------- القصيرة والمنشورات ---------- */
.sgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.scard { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--ink-2); transition: transform 0.35s var(--ease); }
.scard:hover { transform: translateY(-2px); }
.scard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.scard:hover img { transform: scale(1.03); }
.scard::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(5, 12, 10, 0.9)); }
.scard__title { position: absolute; inset: auto 14px 14px; z-index: 1; font: 700 14.5px/1.55 var(--display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pgrid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pgrid--1 { grid-template-columns: 1fr; }
.pgrid--2 { grid-template-columns: 1fr 1fr; }
#appeals .head, #shorts .head { margin-bottom: 32px; }
.pcard { display: flex; gap: 16px; height: 100%; padding: 18px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-l); transition: transform 0.35s var(--ease), border-color 0.35s; }
.pcard:hover { transform: translateY(-2px); border-color: rgba(243, 235, 221, 0.35); }
.pcard img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; flex: none; }
.pcard__text { flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.7; }
.pcard { flex-wrap: wrap; }
.pcard__meta { width: 100%; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--sand-dim); }
.pcard__go { color: var(--sand); font-weight: 600; }
@media (max-width: 1023px) { .sgrid { grid-template-columns: repeat(3, 1fr); } .sgrid li:nth-child(n + 4) { display: none; } .pgrid { grid-template-columns: 1fr; } .pgrid li:nth-child(n + 3) { display: none; } }
@media (max-width: 639px) { .sgrid { grid-template-columns: 1fr 1fr; gap: 12px; } .sgrid li:nth-child(n + 3) { display: none; } .pgrid li:nth-child(n + 2) { display: none; } }

/* ---------- التبرع ---------- */
.dgrid { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 20px; align-items: stretch; }
.dcard {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.dcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(200, 50, 60, 0.09), transparent 60%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.dcard:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -30px rgba(11, 31, 25, 0.45); }
.dcard:hover::before { opacity: 1; }
.dcard > * { position: relative; }
.dcard__icon { display: flex; align-items: center; gap: 8px; height: 52px; margin-bottom: 8px; }
.dcard__icon .brand-ic { width: 44px; height: 44px; }
.dcard__icon--card { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--sand); place-items: center; display: grid; }
.dcard__icon--card .ic { width: 30px; height: 30px; }
.dcard h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; }
.dcard p { color: var(--muted); }
.dcard__value { font: 700 22px/1.4 var(--body); color: var(--text) !important; letter-spacing: 0.01em; }
html[dir="rtl"] .dcard__value { text-align: right; }
.dcard__foot { margin-top: auto; padding-top: 14px; }
.dcard__foot .btn { width: 100%; }
.dcard__soon { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px dashed rgba(11, 31, 25, 0.25); font-weight: 600; font-size: 15px; color: var(--muted) !important; text-align: center; }
.wallet { display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: center; margin-top: 6px; }
.wallet__qr { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.qr { width: 100%; height: auto; }
.wallet__info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wallet__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.wallet__addr { font: 500 14px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; word-break: break-all; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: left; user-select: all; }
.dcard__warn { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: rgba(200, 50, 60, 0.08); color: #7c1f26 !important; font-size: 14px; line-height: 1.65; }
@media (max-width: 1279px) { .dgrid { grid-template-columns: 1fr 1fr; } .dcard--usdt { grid-column: 1 / -1; } }
@media (max-width: 639px) { .dgrid { grid-template-columns: 1fr; gap: 14px; } .dcard { padding: 22px; } .wallet { grid-template-columns: 112px 1fr; gap: 14px; } }

/* ---------- كيف يصل التبرع ---------- */
.how { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.steps { grid-column: 1 / span 5; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 0; height: 2px; background: var(--red); transition: width 0.5s var(--ease); }
.step:hover::before { width: 100%; }
.step__n { font: 800 44px/1 var(--display); color: var(--red); }
.step h3 { font-size: var(--h3); line-height: 1.5; }
.step p { margin-top: 4px; color: var(--muted); }
.how__frame { grid-column: 7 / span 6; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(11, 31, 25, 0.55); aspect-ratio: 16 / 9; }
.how__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.how__frame:hover img { transform: scale(1.02); }
@media (max-width: 639px) { .steps, .how__frame { grid-column: 1 / -1; } .how__frame { margin-top: 32px; } }
@media (max-width: 639px) { .step { grid-template-columns: 48px 1fr; padding-block: 16px; } .step__n { font-size: 34px; } }

/* ---------- الخاتمة والتذييل ---------- */
.closing { position: relative; background: var(--ink); color: var(--sand); min-height: 100svh; padding: var(--padt) 0 calc(var(--padb) + 46px); display: flex; overflow: clip; }
.closing__wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.closing__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mark--close { width: 72px; height: 72px; }
.closing__h { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.3; max-width: 14ch; }
html[lang="en"] .closing__h { line-height: 1.04; }
.closing__line { font-size: var(--lead); color: var(--sand-dim); max-width: 44ch; }
.closing__cta .btn { margin-top: 10px; }
.closing__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line-l); }
.closing__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.closing__links .link { min-height: 44px; display: inline-flex; align-items: center; }
.closing__legal { font-size: 14px; color: var(--sand-dim); }
.closing__band { position: absolute; inset: auto 0 0; height: 46px; color: var(--sage); opacity: 0.28; }

/* ---------- مشغّل الفيديو ---------- */
.lightbox { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 16px; background: #000; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 12, 10, 0.88); backdrop-filter: blur(6px); }
.lightbox__frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.lightbox.is-short { width: min(420px, 90vw); }
.lightbox.is-short .lightbox__frame { aspect-ratio: 9 / 16; max-height: 86vh; }
.lightbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__close { position: absolute; top: -56px; inset-inline-end: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lightbox__close svg { width: 22px; }

.toast { position: fixed; bottom: 24px; left: 50%; z-index: 60; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; background: var(--ink); color: var(--sand); padding: 12px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.4s var(--ease), opacity 0.3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- 404 ---------- */
.nf { background: var(--ink); color: var(--sand); }
.nf__main { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; }
.mark--nf { width: 110px; height: 110px; }
.nf h1 { font-size: clamp(32px, 4vw, 52px); }
.nf p { color: var(--sand-dim); }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }

/* ---------- دخول البطل (يُخفى قبل JS فقط) ---------- */
html.js [data-enter] [data-rise], html.js [data-enter] .hero__h1 { opacity: 0; }
html.js.enter-done [data-enter] [data-rise], html.js.enter-done [data-enter] .hero__h1 { opacity: 1; }
.hero__h1 .w { display: inline-block; }

/* ---------- الحركة المخفّضة ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-enter] [data-rise], html.js [data-enter] .hero__h1 { opacity: 1 !important; }
  .voice__line .w { opacity: 1 !important; }
}

/* ---------- ضبط الارتفاعات: كل قسم شاشة أو شاشتان تماماً ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
  .how { align-items: start; }
  .steps { grid-column: 1 / span 7; }
  .how__frame { grid-column: 8 / span 5; margin-top: 0; aspect-ratio: 9 / 16; }
  .how__frame img { object-position: 92% 50%; }
  html[dir="rtl"] .how__frame img { object-position: 92% 50%; }
  #donate .head { margin-bottom: 24px; }
  .dgrid { gap: 14px; }
  .dcard { padding: 22px; gap: 6px; }
  .dcard__icon { height: 44px; margin-bottom: 2px; }
  .wallet { grid-template-columns: 120px 1fr; }
  .dcard__foot { padding-top: 8px; }
}
@media (max-width: 639px) {
  #donate { min-height: 200lvh; }
  .needs { grid-template-columns: 1fr; gap: 8px; }
  .need { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 12px 14px; }
  .need__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
  .need__icon .ic { width: 24px; height: 24px; }
  .need h3 { font-size: 17px; line-height: 1.4; }
  .need p { margin: 0; font-size: 13.5px; line-height: 1.5; }
  .head { margin-bottom: 24px; }
}

/* المناشدات مع فيديوهات: شاشتان على الجهاز اللوحي والجوال */
@media (min-width: 640px) and (max-width: 1023px) { #appeals.has-videos { min-height: 200svh; } }
@media (max-width: 639px) { #appeals.has-videos { min-height: 200lvh; } }

/* ---------- صفحات النصوص (سياسة الخصوصية) ---------- */
.doc { background: var(--paper); }
.doc__main { padding: calc(var(--nav) + 64px) 0 96px; }
.doc__wrap { max-width: 760px; }
.doc h1 { font-size: var(--h2); line-height: 1.3; }
.doc__updated { margin-top: 10px; color: var(--muted); font-size: 14px; }
.doc__sec { margin-top: 40px; }
.doc__sec h2 { font-size: var(--h3); line-height: 1.5; }
.doc__sec p { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.doc__sec .link { color: var(--olive); font-weight: 500; word-break: break-all; }
.doc__back { margin-top: 56px; }
.doc .nav .link { font-weight: 500; }
