/* ---------- Fonts ---------- */
@font-face { font-family: "Alexandria"; font-weight: 600; font-display: swap; src: url(../assets/fonts/alexandria-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Alexandria"; font-weight: 700; font-display: swap; src: url(../assets/fonts/alexandria-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Alexandria"; font-weight: 600; font-display: swap; src: url(../assets/fonts/alexandria-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Alexandria"; font-weight: 700; font-display: swap; src: url(../assets/fonts/alexandria-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }

/* ---------- Tokens ---------- */
:root {
  --green: #1f9d48;
  --green-dark: #146c31;
  --green-soft: #e8f5ec;
  --blue: #0f4f8c;
  --blue-dark: #033364;
  --blue-soft: #e8eff8;
  --cover-green: #5eb158; /* Instagram highlight covers */
  --cover-ring: #bf5d36;
  --orange: #f15a24;
  --red: #d7262f;
  --ink: #16241b;
  --muted: #5b6b60;
  --line: #e3e9e4;
  --bg: #fbfaf6;
  --card: #ffffff;
  --tint: #f3f1ea;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 36, 27, .06), 0 8px 24px rgba(22, 36, 27, .06);
  --head: "Alexandria", "Plex Arabic", system-ui, sans-serif;
  --body: "Plex Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.8 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.35; margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: 600 16px/1.2 var(--head); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(31, 157, 72, .3); }
.btn--primary:hover { background: var(--green-dark); }
.btn--accent { background: var(--orange); color: #fff; }
.btn--ghost { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn--ghost:hover { background: var(--green-soft); }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--icon svg { width: 22px; height: 22px; flex: none; }
/* Tapping finger on the donate button: presses down while a ripple spreads from the fingertip. */
.btn__tap { position: relative; display: inline-flex; animation: tap 1.8s ease-in-out infinite; }
.btn__tap::before { content: ""; position: absolute; top: -3px; left: 2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: tap-ripple 1.8s ease-out infinite; }
@keyframes tap { 0%, 55%, 100% { transform: translate(0, 0); } 30% { transform: translate(-1px, 3px) scale(.92); } }
@keyframes tap-ripple { 0%, 25% { opacity: 0; transform: scale(.3); } 32% { opacity: .9; } 60%, 100% { opacity: 0; transform: scale(1.8); } }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 246, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar .brand { align-self: stretch; }
.brand img { border-radius: 10px; }
.badge { align-self: flex-start; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; padding: 10px 6px 12px; background: linear-gradient(180deg, var(--blue), var(--blue-dark)); border-radius: 0 0 22px 22px; box-shadow: 0 10px 22px rgba(3, 51, 100, .28); }
.brand .badge img { width: 44px; height: 44px; border-radius: 0; }
.badge__latin { font: 700 10px/1 var(--head); color: #fff; letter-spacing: .14em; padding-bottom: 4px; border-bottom: 2px solid; border-image: linear-gradient(90deg, var(--red) 50%, #fff 50%) 1; }
.badge__name { font: 700 19px/1.1 var(--head); color: #43c264; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font: 700 18px var(--head); color: var(--blue-dark); }
.brand__text small { font: 600 11px var(--head); color: var(--orange); letter-spacing: .06em; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; background: radial-gradient(900px 400px at 85% -10%, var(--blue-soft), transparent 70%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 14px var(--head); color: var(--orange); }
.flag { width: 22px; height: 14px; border-radius: 2px; background: linear-gradient(#111 0 33.3%, #fff 0 66.6%, #149954 0); position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-block: 7px solid transparent; border-inline-start: 10px solid var(--red); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--blue-dark); }
.hero h1 span { color: var(--orange); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 18px 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.values { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.values li { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; font: 600 14px/1.5 var(--head); color: var(--blue-dark); }
.values li:first-child .values__icon { background: #fde7e8; color: var(--red); }
.values__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.values__icon svg { width: 22px; height: 22px; }
.hero__media { margin: 0; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px; background: var(--orange); opacity: .14; z-index: -1; }
.hero__media figcaption { position: absolute; inset-inline-start: 16px; bottom: 16px; background: rgba(255,255,255,.92); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* Hero slider: photos cross-fade inside a 4:3 frame; dots sit under it. */
.slider::before { bottom: 22px; }
.slider__frame { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--line); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide picture { display: block; height: 100%; }
.hero__media .slide img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; }
.slider__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c5d0dd; cursor: pointer; transition: width .3s, background .3s; }
.slider__dots button[aria-current="true"] { width: 22px; background: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--tint); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section__head--center { justify-content: center; text-align: center; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--blue-dark); }
.section__note { margin: 0; color: var(--muted); max-width: 28em; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 7px 16px; border-radius: 999px; font: 600 14px var(--body); cursor: pointer; }
.chip:hover { border-color: var(--green); }
.chip[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Feed ---------- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.post__media { position: relative; display: grid; gap: 3px; background: var(--line); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.post__media img { width: 100%; height: 260px; object-fit: cover; }
.post__media--2 { grid-template-columns: 1fr 1fr; }
.post__media--2 img { height: 220px; }
.post__count { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 999px; }
.post__video { aspect-ratio: 16 / 9; width: 100%; border: 0; display: block; }
.post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tag { background: var(--green-soft); color: var(--green-dark); font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.post__new { background: var(--orange); color: #fff; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.post h3 { font-size: 19px; }
.post p { margin: 0; color: #334239; white-space: pre-line; }
.post__foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); gap: 8px; flex-wrap: wrap; }
.post__foot b { color: var(--green-dark); }
.share { background: none; border: 0; color: var(--green-dark); font: 600 14px var(--body); cursor: pointer; padding: 4px 0; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }
.feed__more { text-align: center; margin-top: 32px; }

/* ---------- Appeals (donation posters) ---------- */
.appeals { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.appeal { flex: 0 1 calc((100% - 80px) / 5); min-width: 200px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.appeal__media { display: block; width: 100%; padding: 0; border: 0; background: var(--card); cursor: zoom-in; aspect-ratio: 2 / 3; overflow: hidden; }
.appeal__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.appeal__media:hover img { transform: scale(1.03); }
.appeal__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.appeal h3 { font-size: 16px; }
.appeal__row { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.appeal__row .btn { white-space: nowrap; }
.appeal .project__price { margin-top: 0; font-size: 16px; padding: 4px 16px; align-self: flex-start; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project { background: var(--card); border-radius: var(--radius); padding: 24px 20px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
/* Same look as the Instagram highlight covers: green disc with a rust ring. */
.project__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--cover-green); color: #fff; display: grid; place-items: center; border: 3px solid var(--cover-ring); margin-bottom: 6px; }
.project__icon--cover { background: none; border: 0; }
.project__icon img { width: 100%; height: 100%; }
.project__icon svg { width: 34px; height: 34px; }
.project h3 { font-size: 18px; }
.project p { margin: 0; font-size: 14px; color: var(--muted); }
.project__price { margin-top: auto; background: linear-gradient(180deg, var(--blue), var(--blue-dark)); color: #fff; font: 700 18px var(--head); padding: 6px 22px; border-radius: 999px; direction: ltr; }
.project__link { font-size: 14px; font-weight: 600; color: var(--green-dark); text-decoration: none; }
.project__link:hover { text-decoration: underline; }
.project__price-row { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 10px; }
.project__price-note { margin-bottom: -6px; font: 600 13px var(--head); color: var(--blue-dark); }

.featured { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.featured__media { background: linear-gradient(160deg, var(--blue), var(--blue-dark)); color: #fff; display: grid; place-items: center; padding: 40px; min-height: 260px; }
.featured__media svg { width: 110px; height: 110px; opacity: .95; }
.featured__media img { width: 150px; height: 150px; }
.featured__body { padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured__body h3 { font-size: 28px; color: var(--blue-dark); }
.featured__body h3 span { display: inline-block; background: var(--red); color: #fff; font-size: 16px; padding: 4px 14px; border-radius: 999px; margin-inline-start: 8px; vertical-align: middle; }
.featured__body p { margin: 0; color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pills li { background: var(--green-soft); color: var(--green-dark); font-size: 14px; font-weight: 600; padding: 4px 14px; border-radius: 999px; }

/* ---------- Socials ---------- */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.social { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-weight: 600; transition: border-color .15s, transform .15s; }
.social:hover { border-color: var(--c); transform: translateY(-2px); }
.social__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; flex: none; }
.social__icon svg { width: 22px; height: 22px; }
.social small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; direction: ltr; text-align: end; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 64px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta p { margin: 8px 0 0; opacity: .9; max-width: 36em; }
.cta__phones { display: flex; flex-direction: column; gap: 10px; }
.phone { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--green-dark); padding: 12px 22px; border-radius: 999px; text-decoration: none; font: 700 17px var(--head); direction: ltr; justify-content: center; }
.phone svg { width: 22px; height: 22px; color: #25d366; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dark); color: #b9c6bd; padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer .brand__text strong { color: #fff; }
.footer .brand__text small { color: #b7c7dc; letter-spacing: 0; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 14, 10, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); border-radius: 12px; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; left: 16px; }
.lightbox__prev { right: 16px; top: 50%; }
.lightbox__next { left: 16px; top: 50%; }
.lightbox__cta { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); }
.lightbox__cta:hover { transform: translateX(-50%) translateY(-1px); }
.lightbox__cta[hidden] { display: none; }
.lightbox.has-cta img { max-height: calc(100vh - 160px); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; z-index: 50; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 420px; margin-inline: auto; width: 100%; }
  /* Phones/tablets: the photo comes right after the buttons, the value cards go under it. */
  .hero__inner { row-gap: 0; }
  .hero__copy { display: contents; }
  .hero__media { order: 1; margin-top: 24px; }
  .values { order: 2; margin-top: 28px; }
  .projects, .socials { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .topbar__inner { justify-content: space-between; gap: 12px; }
  .topbar .brand__text strong { font-size: 13px; line-height: 1.35; }
  .topbar .brand__text small { display: none; }
  .topbar .btn { white-space: nowrap; flex: none; }
  .badge { width: 62px; padding: 8px 4px 10px; border-radius: 0 0 18px 18px; }
  .brand .badge img { width: 34px; height: 34px; }
  .badge__name { font-size: 15px; }
  .hero { padding: 36px 0 56px; }
  .section { padding: 56px 0; }
  .feed { grid-template-columns: 1fr; }
  .values li { flex: 1 1 0; flex-direction: column; text-align: center; padding: 12px 8px; gap: 8px; font-size: 13px; }
  .projects { gap: 12px; }
  .appeals { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; gap: 14px; }
  .appeal { flex: 0 0 72%; min-width: 0; scroll-snap-align: start; }
  .project { padding: 18px 12px; }
  .socials { grid-template-columns: 1fr; }
  .featured__body { padding: 24px; }
  .cta__phones { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Laravel additions: links, pager, update page ---------- */
a.chip { text-decoration: none; display: inline-block; }
.post__link { text-decoration: none; }
.post__link:hover { color: var(--green-dark); text-decoration: underline; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.pager__info { color: var(--muted); font-size: 14px; }
.btn.is-disabled { opacity: .4; pointer-events: none; }

.article__inner { max-width: 820px; }
.article__back { margin: 0 0 18px; }
.article__back a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.article h1 { font-size: clamp(26px, 4vw, 40px); color: var(--blue-dark); margin: 12px 0 20px; }
.article a.tag { text-decoration: none; }
.article__video { border-radius: var(--radius); margin-bottom: 20px; }
.article__body { white-space: pre-line; font-size: 18px; color: #334239; }
.article__stat { margin: 18px 0 0; color: var(--muted); }
.article__stat b { color: var(--green-dark); font-size: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 28px; }
.gallery__item { border: 0; padding: 0; background: var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 240px; object-fit: cover; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item:only-child { grid-column: 1 / -1; }
.gallery__item:only-child img { height: auto; max-height: 560px; }
.article__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.article__actions .share { padding: 12px 24px; font: 600 16px/1.2 var(--head); border: 2px solid var(--green); }

/* ---------- Error pages (resources/views/errors) ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 0 16px 40px; background: radial-gradient(700px 360px at 50% -10%, var(--blue-soft), transparent 70%), var(--bg); }
.error { max-width: 480px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.error__badge { align-self: center; text-decoration: none; margin-bottom: 28px; border-radius: 22px; }
.error__code { margin: 0; font: 700 72px/1 var(--head); color: var(--orange); letter-spacing: .04em; }
.error h1 { margin-top: 10px; font-size: clamp(24px, 6vw, 32px); color: var(--blue-dark); }
.error__text { margin: 12px 0 28px; color: var(--muted); }
.error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- About + footer contact + privacy ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about__text { margin: 14px 0 0; color: var(--muted); max-width: 34em; }
.about__independence { margin-top: 22px; padding: 18px 20px; background: var(--card); border-inline-start: 4px solid var(--blue); border-radius: var(--radius); border-start-start-radius: 0; border-end-start-radius: 0; box-shadow: var(--shadow); }
.about__independence h3 { font-size: 18px; color: var(--blue-dark); margin-bottom: 8px; }
.about__independence p { margin: 0 0 10px; color: var(--ink); font-size: 16px; }
.about__independence p:last-child { margin-bottom: 0; }
.footer__independence { flex-basis: 100%; color: #fff; font-weight: 600; }
.about__facts { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px; }
.about__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.about__facts div:last-child { border-bottom: 0; }
.about__facts dt { color: var(--muted); font-size: 14px; flex: none; }
.about__facts dd { margin: 0; font-weight: 600; color: var(--blue-dark); text-align: left; overflow-wrap: anywhere; }
.about__facts a { color: inherit; }
.footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__contact a { color: #fff; text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.footer__legal { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: #b7c7dc; font-size: 13px; }
.privacy h2 { font-size: 20px; color: var(--blue-dark); margin: 28px 0 6px; }
.privacy p { margin: 0 0 10px; }
.privacy a { color: var(--blue); }
.privacy__date { color: var(--muted); font-size: 14px; }
.privacy__en { text-align: left; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 12px; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Ticker (under the header) ---------- */
.ticker { display: block; height: 42px; overflow: hidden; background: var(--blue-dark); color: #fff; text-decoration: none; font: 600 15px/1 var(--head); }
/* Content starts after the hanging logo badge (78px wide on desktop, 62px on phones). */
.ticker__inner { display: flex; align-items: stretch; height: 100%; padding-inline-start: 92px; }
.ticker__label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--orange); font-weight: 700; z-index: 1; border-radius: 0 0 0 0; }
.ticker__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ticker-pulse 1.4s ease-in-out infinite; }
/* Text drifts to the right (Arabic reading order): the track starts at the right edge and moves +50%, the doubled copy makes the loop seamless. */
.ticker__viewport { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker var(--ticker-duration, 30s) linear infinite; }
.ticker__group { display: flex; }
.ticker__item { direction: rtl; white-space: nowrap; padding-inline: 22px; }
.ticker__item::after { content: "✦"; color: var(--orange); margin-inline-start: 44px; }
.ticker:hover .ticker__track, .ticker:focus-visible .ticker__track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes ticker-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (max-width: 640px) {
  .ticker { height: 38px; font-size: 14px; }
  .ticker__inner { padding-inline-start: 72px; width: 100%; }
  .ticker__label { padding: 0 10px; }
}

/* ---------- Links page (/links, link-in-bio) ---------- */
.lk { min-height: 100vh; margin: 0; color: #fff; background:
    radial-gradient(520px 320px at 100% 0, rgba(67, 194, 100, .28), transparent 70%),
    radial-gradient(460px 300px at 0 18%, rgba(241, 90, 36, .22), transparent 70%),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(180deg, #0f4f8c 0, #033364 46%, #021f3f 100%) fixed; }
.lk__page { width: min(480px, 100% - 32px); margin-inline: auto; padding: 0 0 36px; display: flex; flex-direction: column; gap: 14px; }
.lk__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 6px; }
.lk__badge { align-self: center; width: 104px; padding: 16px 8px 18px; border-radius: 0 0 30px 30px; box-shadow: 0 16px 34px rgba(0,0,0,.35); background: linear-gradient(180deg, #13609f, #033364); }
.lk .lk__badge img { width: 56px; height: 56px; }
.lk__badge .badge__name { font-size: 24px; }
.lk__head h1 { margin-top: 16px; font-size: 23px; line-height: 1.4; }
.lk__place { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 10px; color: #ffb38f; font: 600 14px var(--head); }
.lk__chip { display: inline-flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 13px; line-height: 1.6; color: #e3ecf7; text-align: start; }
.lk__chip svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #43c264; }

.lk__donate { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 22px; background: linear-gradient(180deg, #2bbd5a, #1c8f43); color: #fff; text-decoration: none; box-shadow: 0 12px 28px rgba(31, 157, 72, .45), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s; }
.lk__donate:hover { transform: translateY(-2px); }
.lk__donate-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.lk__donate-icon svg { width: 28px; height: 28px; }
.lk__donate-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lk__donate-text strong { font: 700 19px/1.3 var(--head); }
.lk__donate-text small { font-size: 13px; opacity: .9; }
.lk__donate .btn__tap svg { width: 30px; height: 30px; }
.lk__numbers { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.lk__numbers a { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font: 600 14px var(--head); }
.lk__numbers a:hover { background: rgba(255,255,255,.2); }

.lk__urgent { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; color: var(--blue-dark); text-decoration: none; overflow: hidden; border-inline-start: 6px solid var(--orange); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.lk__urgent-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 12px var(--head); }
.lk__urgent-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ticker-pulse 1.4s ease-in-out infinite; }
.lk__urgent strong { flex: 1; font: 700 16px/1.4 var(--head); }
.lk__arrow { font-size: 20px; color: var(--orange); transition: transform .15s; }
.lk__urgent:hover .lk__arrow { transform: translateX(-4px); }

.lk__latest { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.lk__latest img { width: 72px; height: 72px; flex: none; border-radius: 12px; object-fit: cover; }
.lk__latest span { display: flex; flex-direction: column; gap: 4px; }
.lk__latest small { color: #ffb38f; font: 600 12px var(--head); }
.lk__latest strong { font: 600 15px/1.45 var(--head); }

.lk__list { display: flex; flex-direction: column; gap: 10px; }
.lk__link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.lk__link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.lk__link > span:last-child { display: flex; flex-direction: column; gap: 2px; font: 700 16px/1.35 var(--head); color: var(--blue-dark); }
.lk__link small { font: 400 13px var(--body); color: var(--muted); }
.lk__ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--c); color: #fff; }
.lk__ic svg { width: 22px; height: 22px; }

.lk__social { margin-top: 8px; text-align: center; }
.lk__social h2 { font-size: 15px; color: #b7c7dc; margin-bottom: 12px; }
.lk__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lk__grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font: 600 12px var(--head); transition: background .15s, transform .15s; }
.lk__grid a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.lk__grid .lk__ic { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 6px 14px rgba(0,0,0,.25); }

.lk__share { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: #fff; font: 600 14px var(--head); cursor: pointer; }
.lk__share svg { width: 18px; height: 18px; }
.lk__share:hover { background: rgba(255,255,255,.1); }
.lk__foot { text-align: center; color: #93a8c4; font-size: 13px; margin-top: 4px; }
.lk__foot a { color: #dbe6f3; text-decoration: none; }
.lk__foot p { margin: 6px 0 0; }
@media (max-width: 380px) { .lk__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Snapchat ad landing page (/links/snap) ---------- */
.lks__title { margin: 4px 0 0; text-align: center; font-size: clamp(26px, 8vw, 32px); line-height: 1.35; }
.lks__lead { margin: 0; text-align: center; font-size: 17px; line-height: 1.8; color: #e3ecf7; }
.lks__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.lks__price { align-self: center; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 22px; border-radius: 999px; background: #fff; color: var(--blue-dark); font: 700 17px var(--head); }
.lks__price b { padding: 6px 18px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 22px; direction: ltr; }
.lks__donate { gap: 10px; }
.lks__donate .lk__donate-text strong { font-size: clamp(16px, 4.7vw, 19px); white-space: nowrap; }
.lks__note { margin: -2px 0 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font: 600 16px/1.5 var(--head); color: #e3ecf7; }
.lks__note strong { font-size: 20px; color: #fff; }
.lks__page { position: relative; }
.lks__home { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font: 600 13px/1 var(--head); }
.lks__home svg { width: 16px; height: 16px; }
