/* =========================================================
   منظمة نعمة — الشعار الرسمي (SVG) والصفحات: التوظيف، المناقصات،
   المساءلة والشكاوى، الشعار والهوية
   ========================================================= */
:root { --logo-teal: #00afc6; --logo-lime: #b8d133; }

/* ---------- الشعار في الترويسة والتذييل ---------- */
.brand { gap: 0; }
.brand .brand-logo { height: 46px; width: auto; transition: opacity .35s, transform .6s var(--ease-out); }
.brand:hover .brand-logo { transform: scale(1.03); }
.brand-logo--white { display: none; }
@media (min-width: 1241px) {
  .has-slider .site-header:not(.is-scrolled) .brand-logo:not(.brand-logo--white) { display: none; }
  .has-slider .site-header:not(.is-scrolled) .brand-logo--white { display: block; }
}
@media (max-width: 1240px) {
  .has-slider .site-header:not(.is-scrolled) .brand-logo:not(.brand-logo--white) { display: none; }
  .has-slider .site-header:not(.is-scrolled) .brand-logo--white { display: block; }
  body.menu-open.has-slider .site-header .brand-logo:not(.brand-logo--white) { display: block; }
  body.menu-open.has-slider .site-header .brand-logo--white { display: none; }
}
@media (max-width: 640px) { .brand .brand-logo { height: 38px; } }
.footer-brand .footer-logo { width: 240px; height: auto; filter: none; opacity: 1; margin-bottom: 1.2rem; }

/* ---------- الشعار المتحرك (من ملف SVG الرسمي) ---------- */
.logo-anim { aspect-ratio: 1255.75 / 1444.43; filter: drop-shadow(0 30px 40px rgba(8, 80, 95, .16)); }
.logo-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.logo-svg .lg { fill: var(--logo-lime); }
.logo-svg .lo, .logo-svg .c1 { fill: var(--logo-teal); }
.logo-svg .c2 { fill: var(--logo-lime); }
.logo-svg .lg { transform-box: fill-box; transform-origin: center; animation: grain-in .7s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(.25s + var(--n) * 45ms); }
@keyframes grain-in { from { opacity: 0; transform: scale(0) rotate(-35deg); } }
.logo-svg .l-olive { transform-box: fill-box; transform-origin: 95% 100%; animation: olive-grow 1.3s cubic-bezier(.2, .8, .2, 1.05) 1.4s both, olive-sway 7s ease-in-out 3s infinite; }
@keyframes olive-grow { from { clip-path: inset(0 0 100% 0); transform: rotate(-8deg) scale(.9); opacity: .2; } to { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } }
@keyframes olive-sway { 50% { transform: rotate(-1.6deg); } }
.logo-svg .l-name { animation: name-in 1.2s cubic-bezier(.6, .1, .3, 1) 2.3s both; }
@keyframes name-in { from { clip-path: inset(0 0 0 100%); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.logo-anim:hover .lg { animation: grain-pulse .6s ease both; animation-delay: calc(var(--n) * 18ms); }
@keyframes grain-pulse { 50% { transform: scale(1.18); } }
.no-js .logo-svg *, html[data-motion="reduced"] .logo-svg * { animation: none !important; }

/* ---------- روابط عامة ---------- */
.switch-line { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; cursor: pointer; user-select: none; }
.switch-line input { position: absolute; opacity: 0; }
.switch-line .sw { width: 46px; height: 26px; border-radius: 999px; background: #cfd8d4; position: relative; transition: background .25s; flex: none; }
.switch-line .sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease-out); }
.switch-line input:checked + .sw { background: var(--brand); }
html[dir="rtl"] .switch-line input:checked + .sw::after { transform: translateX(-20px); }
html[dir="ltr"] .switch-line input:checked + .sw::after { transform: translateX(20px); }
.switch-line input:focus-visible + .sw { outline: 3px solid var(--accent); outline-offset: 2px; }
[data-identity] { transition: opacity .3s, filter .3s; }
[data-identity].is-off { opacity: .35; filter: grayscale(1); pointer-events: none; }
.form-secure { display: flex; align-items: center; gap: .5rem; margin: -.4rem 0 .4rem; padding: .7rem 1rem; border-radius: 12px; background: var(--tint); color: var(--brand); font-weight: 600; font-size: .95rem; }
.contact-form select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); }
.contact-form .help { color: var(--ink-soft); font-size: .88rem; }
.prose--light, .prose--light a { color: rgba(255,255,255,.88); }
.prose--light li::marker { color: var(--accent); }
.acc-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 980px) { .acc-layout { grid-template-columns: 1fr; } }
.file-drop input[type=file] { padding: .65rem; cursor: pointer; background: var(--paper); border: 1.5px dashed var(--line); border-radius: 12px; font: inherit; font-size: .9rem; width: 100%; }
.file-drop input[type=file]::file-selector-button { font: 600 .9rem var(--font-display); border: 0; border-radius: 8px; padding: .5rem .9rem; margin-inline-end: .8rem; background: var(--ink); color: #fff; cursor: pointer; }
.chip-closed, .chip-t-closed, .chip-t-cancelled { background: #eceeed; color: #6b7a7e; }
.chip-t-open { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 35%, var(--ink)); }
.chip-t-open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.chip-t-awarded { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); }
.chip-t-cancelled { text-decoration: line-through; }

/* ---------- التوظيف ---------- */
.job-list, .tender-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.job a, .tender a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.2rem; padding: 1.3rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .5s var(--ease-out), box-shadow .5s, border-color .3s; }
.job a:hover, .tender a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.job-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--brand); transition: background .3s, color .3s, transform .5s var(--ease-out); }
.job-icon .ico { width: 26px; height: 26px; }
.job a:hover .job-icon { background: var(--ink); color: var(--accent); transform: rotate(-8deg); }
.job-main b, .tender-main b { display: block; font: 700 1.2rem var(--font-display); margin-bottom: .3rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; color: var(--ink-soft); font-size: .92rem; }
.job-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.job-cta { display: inline-flex; align-items: center; gap: .4rem; font: 600 .95rem var(--font-display); color: var(--brand); white-space: nowrap; }
.job-list--closed .job a { opacity: .7; }
.closed-list { margin-top: 1.6rem; }
.closed-list summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); padding: .6rem 0; }
.closed-list .job-list { margin-top: .6rem; }
@media (max-width: 760px) {
  .job a, .tender a { grid-template-columns: auto 1fr; }
  .job-cta, .job .chip, .tender .chip { grid-column: 2; justify-self: start; }
}

/* ---------- المناقصات ---------- */
.tender a { grid-template-columns: auto 1fr auto auto; }
.tender-ref { font: 700 .85rem ui-monospace, Consolas, monospace; padding: .5rem .8rem; border-radius: 10px; background: var(--ink); color: var(--accent); white-space: nowrap; }
.tender-main small { color: var(--ink-soft); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tender-dates span { display: grid; font-size: .82rem; color: var(--ink-soft); text-align: center; }
.tender-dates .ico { justify-self: center; margin-bottom: .2rem; }
.tender-dates b { font: 700 .98rem var(--font-display); color: var(--ink); }
.tender-box { padding: 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: 1rem; box-shadow: var(--shadow); }
.tender-box .chip { justify-self: start; }
.tender-box .facts { border: 0; padding: 0; }
.countdown { padding: 1.1rem; border-radius: 16px; background: linear-gradient(140deg, var(--brand), var(--deep)); color: #fff; text-align: center; }
.countdown small { color: rgba(255,255,255,.75); }
.cd-units { display: flex; justify-content: center; gap: .6rem; margin-top: .4rem; }
.cd-units span { display: grid; min-width: 64px; padding: .5rem; border-radius: 12px; background: rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.8); }
.cd-units b { font: 800 1.7rem/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.cd-units b.tick { animation: tick .5s var(--ease-out); }
.countdown.is-ended { background: #eceeed; color: var(--ink-soft); }
@media (max-width: 760px) { .tender-ref { grid-row: span 1; } .tender-dates { grid-column: 2; } .tender-dates span { text-align: start; } .tender-dates .ico { justify-self: start; } }

/* ---------- الشعار والهوية ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.brand-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .5s var(--ease-out), box-shadow .5s; }
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.brand-preview { height: 220px; display: grid; place-items: center; padding: 2rem; background:
  repeating-conic-gradient(#f1f4ef 0 25%, #fff 0 50%) 0 0 / 22px 22px; }
.brand-card.is-dark .brand-preview { background: radial-gradient(circle at 30% 20%, var(--brand), var(--deep)); }
.brand-preview { overflow: hidden; position: relative; }
.brand-preview img { position: absolute; inset: 1.8rem; width: calc(100% - 3.6rem); height: calc(100% - 3.6rem); object-fit: contain; transition: transform .8s var(--ease-out); }
.brand-card:hover .brand-preview img { transform: scale(1.06); }
.brand-info { padding: 1.2rem 1.4rem 1.4rem; display: grid; gap: .2rem; }
.brand-info h3 { margin: 0; font-size: 1.1rem; }
.brand-info small { color: var(--ink-soft); }
.brand-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; align-items: center; }
.png-dl { display: inline-flex; gap: .3rem; align-items: center; }
.png-dl select { font: 600 .85rem var(--font-body); padding: .5rem .4rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.swatches { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.swatch { width: 100%; display: grid; gap: .2rem; text-align: start; padding: 0 0 1rem; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--ink); transition: transform .4s var(--ease-out), box-shadow .4s; }
.swatch:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sw-color { height: 110px; background: var(--c); border-bottom: 1px solid var(--line); margin-bottom: .7rem; transition: height .4s var(--ease-out); }
.swatch:hover .sw-color { height: 124px; }
.swatch b, .swatch code, .swatch small { padding-inline: 1rem; }
.swatch b { font-family: var(--font-display); }
.swatch code { font-size: .95rem; color: var(--ink-soft); }
.swatch small { color: var(--brand); font-weight: 600; opacity: 0; transition: opacity .3s; }
.swatch:hover small, .swatch.is-done small { opacity: 1; }
.swatch.is-done { box-shadow: 0 0 0 3px var(--accent); }
.brand-rules { max-width: 760px; }

/* ---------- قائمة الجوال: ترتيب عمودي واضح ---------- */
.nav .drop-title { display: none; }
@media (max-width: 1240px) {
  .nav { gap: 0; padding-top: calc(var(--header-h) + .5rem); padding-bottom: 0; }
  .nav > ul { display: flex !important; flex-direction: column; gap: 0 !important; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li.has-drop:not(.has-drop--mega) { border-bottom: 0; }
  .nav > ul > li > a { display: flex !important; align-items: center; justify-content: space-between; width: 100%;
    font: 700 1.3rem var(--font-display) !important; padding: 1rem .2rem !important; }
  .nav > ul > li > a::after { display: none; }
  .nav > ul > li > a:not(.drop-link)::before { content: ""; order: 2; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; opacity: .35; transform: rotate(135deg); }
  html[dir="ltr"] .nav > ul > li > a:not(.drop-link)::before { transform: rotate(-45deg); }
  .nav > ul > li > a[aria-current="page"] { color: var(--brand); }
  .nav > ul > li > a[aria-current="page"]::before { opacity: 1; }

  /* مشاريعنا: صف قابل للتوسيع */
  .has-drop--mega { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .has-drop--mega > .drop-link { grid-column: 1; }
  .drop-btn--sub { grid-column: 2; width: 40px !important; height: 40px !important; }
  .nav .drop--sectors { grid-column: 1 / -1; display: none; flex-wrap: wrap; gap: .45rem; padding: 0 0 1.1rem; }
  .has-drop--mega.is-open .drop--sectors { display: flex; }
  .nav .drop--sectors li { width: auto; }
  .nav .drop--sectors a { padding: .45rem .8rem .45rem .5rem !important; border-radius: 999px !important; background: var(--white); border: 1px solid var(--line); font: 600 .9rem var(--font-body) !important; }
  html[dir="rtl"] .nav .drop--sectors a { padding: .45rem .5rem .45rem .8rem !important; }
  .nav .drop--sectors .drop-ic { width: 26px; height: 26px; border-radius: 50%; }
  .nav .drop--sectors .drop-ic .ico { width: .95em; height: .95em; }
  .nav .drop--sectors .drop-all { flex-basis: 100%; border: 0; margin: .2rem 0 0; padding: 0; }
  .nav .drop--sectors .drop-all a { background: none; border: 0; padding: .3rem 0 !important; color: var(--brand); justify-content: flex-start; gap: .4rem; }

  /* «المزيد»: عنوان صغير وبطاقات مرتبة */
  .nav .drop--more { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem; border-top: 0; padding: 1.4rem 0 1.2rem; margin: 0; }
  .nav .drop-title { display: block; grid-column: 1 / -1; font: 700 .8rem var(--font-display); letter-spacing: .04em; color: var(--ink-soft); margin-bottom: .1rem; }
  .nav .drop--more a { height: 100%; padding: .7rem .75rem !important; border-radius: 14px !important; background: var(--white); border: 1px solid var(--line); font: 600 .95rem/1.35 var(--font-body) !important; transition: border-color .2s, background .2s; }
  .nav .drop--more a:hover, .nav .drop--more a[aria-current="page"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, #fff); }
  .nav .drop--more .drop-ic { width: 32px; height: 32px; border-radius: 10px; }

  /* الشريط السفلي ثابت داخل القائمة */
  .nav-extra { position: sticky; bottom: 0; margin-top: auto; padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px)) !important; background: linear-gradient(0deg, var(--paper) 80%, transparent); border-top: 1px solid var(--line); }
  .nav-extra .btn { padding: .75rem 1.6rem; }
}
@media (max-width: 360px) { .nav .drop--more { grid-template-columns: 1fr; } }

/* بطاقة «المدونة قريباً» */
.blog-soon { display: flex; align-items: center; gap: 1.6rem; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; isolation: isolate; }
.blog-soon::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--accent-soft); z-index: -1; }
.blog-soon > div { flex: 1; }
.blog-soon h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0 0 .4rem; }
.blog-soon p { margin: 0; color: var(--ink-soft); }
.bs-icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: linear-gradient(140deg, var(--brand), var(--deep)); color: var(--accent); flex: none; animation: bob 5s ease-in-out infinite; }
.bs-icon .ico { width: 34px; height: 34px; }
@media (max-width: 700px) { .blog-soon { flex-direction: column; align-items: flex-start; } }

/* ---------- التعليقات */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments > h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.4rem; margin: 0 0 1.2rem; }
.comments > h2 .ico { width: 1.2em; height: 1.2em; color: var(--brand); }
.comments > h2 small { font: 600 .8rem var(--font-body); background: var(--tint); color: var(--brand); border-radius: 99px; padding: .15rem .6rem; }
.cm-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.cm { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; }
.cm-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem var(--font-display); color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.cm-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; min-width: 0; }
.cm-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 0 0 .35rem; }
.cm-head time { color: var(--ink-soft); font-size: .82rem; }
.cm-body { line-height: 1.75; overflow-wrap: anywhere; }
.cm-reply { margin-top: .8rem; padding: .7rem .9rem; border-radius: 12px; background: var(--tint); border-inline-start: 3px solid var(--brand); }
.cm-badge { font-size: .72rem; font-weight: 700; color: var(--deep); background: var(--accent-soft); border-radius: 99px; padding: .1rem .55rem; }
.cm-form { margin-top: 1rem; }
.cm-form h3 { margin: 0 0 1rem; }
@media (max-width: 600px) { .cm { grid-template-columns: 34px 1fr; gap: .6rem; } .cm-av { width: 34px; height: 34px; font-size: .9rem; } }

/* =====================================================================
   صفحة التبرع
   ===================================================================== */
.dn-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 5rem); }
.dn-hero .blob { opacity: .4; }
.dn-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.dn-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.18; margin: .4rem 0 1rem; max-width: 18ch; }
.dn-hero .crumbs { margin-bottom: 1rem; }
.dn-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.dn-trust { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.dn-trust li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.dn-trust .ico { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: var(--accent-soft); color: var(--deep); }
.dn-hero-art { position: relative; }
.dn-visual { position: relative; aspect-ratio: 4 / 4.4; border-radius: 32px 32px 32px 120px; overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--deep), var(--brand)); }
html[dir="rtl"] .dn-visual { border-radius: 32px 32px 120px 32px; }
.dn-visual > img { width: 100%; height: 100%; object-fit: cover; animation: dn-zoom 18s ease-in-out infinite alternate; }
@keyframes dn-zoom { to { transform: scale(1.08); } }
.dn-visual.is-art { display: grid; place-items: center; }
.dn-visual .dn-mark { position: relative; width: 38%; height: auto; opacity: .9; animation: bob 6s ease-in-out infinite; }
.dn-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 30, 37, .45), transparent 45%); pointer-events: none; }
.dn-float { position: absolute; z-index: 2; inset-inline-start: -2rem; bottom: 2rem; width: min(330px, 85%); display: grid; gap: .55rem; padding: 1.1rem 1.2rem; border-radius: 20px; background: color-mix(in srgb, var(--white) 88%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .6); animation: bob 7s ease-in-out infinite; }
.dn-float > b { font: 700 1.08rem/1.4 var(--font-display); }
.dn-float-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: var(--brand); }
.dn-float-tag .ico { width: 1em; height: 1em; }
.dn-secure { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-soft); font-size: .8rem; }
.dn-secure .ico { width: 1.05em; height: 1.05em; color: var(--brand); }

/* شريط التقدم */
.dn-progress { display: grid; gap: .55rem; }
.dn-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 12%, var(--white)); overflow: hidden; }
.dn-bar > span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); background-size: 200% 100%; animation: dn-fill 1.6s var(--ease-out) both, dn-shine 3s linear 1.6s infinite; }
@keyframes dn-fill { from { width: 0; } }
@keyframes dn-shine { to { background-position: -200% 0; } }
.dn-figs { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.dn-figs span { display: grid; line-height: 1.2; }
.dn-figs b { font: 800 1.05rem var(--font-display); direction: ltr; text-align: start; }
.dn-figs small { color: var(--ink-soft); font-size: .76rem; }

/* اختصارات طرق التبرع */
.dn-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-top: -1.5rem; position: relative; z-index: 2; }
.dn-ways a { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .35s var(--ease-out), box-shadow .35s; }
.dn-ways a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dn-ways span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--brand); }
.dn-ways b { flex: 1; }
.dn-ways small { min-width: 28px; text-align: center; padding: .15rem .5rem; border-radius: 99px; background: var(--accent-soft); font-weight: 700; color: var(--deep); }

/* بطاقات الحملات */
.dn-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1.4rem; }
.dn-links.is-single { grid-template-columns: 1fr; }
.dn-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .45s var(--ease-out), box-shadow .45s; }
.dn-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dn-card.is-featured { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.dn-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--deep), var(--brand)); }
.dn-card-media > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.dn-card:hover .dn-card-media > img:first-child { transform: scale(1.06); }
.dn-card-media.is-art { display: grid; place-items: center; background: radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%), linear-gradient(135deg, var(--deep), var(--brand)); }
.dn-card-ic { width: 64px; height: 64px; color: #fff; opacity: .9; animation: dn-beat 2.4s ease-in-out infinite; }
@keyframes dn-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
.dn-logo { position: absolute; inset-inline-end: .8rem; bottom: .8rem; max-height: 38px; max-width: 120px; padding: .35rem .6rem; border-radius: 10px; background: #fff; object-fit: contain; box-shadow: var(--shadow); }
.dn-platform { position: absolute; inset-inline-end: .8rem; bottom: .8rem; padding: .35rem .75rem; border-radius: 99px; background: #fff; font: 700 .8rem var(--font-display); color: var(--ink); box-shadow: var(--shadow); direction: ltr; }
.dn-card-body { display: flex; flex-direction: column; gap: .8rem; padding: 1.3rem 1.4rem 1.4rem; flex: 1; }
.dn-card-body .chip { align-self: flex-start; }
.dn-card-body h3 { margin: 0; font-size: 1.3rem; }
.dn-card-body p { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.dn-card-body .btn { margin-top: auto; }
.dn-ext { opacity: .7; font-size: .9em; }
.dn-links.is-single .dn-card { flex-direction: row; }
.dn-links.is-single .dn-card-media { flex: 1 1 46%; aspect-ratio: auto; min-height: 320px; }
.dn-links.is-single .dn-card-body { flex: 1 1 54%; padding: clamp(1.4rem, 3vw, 2.4rem); justify-content: center; }
.dn-links.is-single .dn-card-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.dn-links.is-single .dn-card-body .btn { margin-top: .6rem; align-self: flex-start; width: auto; padding-inline: 2.2rem; }

/* المبالغ المقترحة */
.dn-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.dn-tier { position: relative; display: grid; gap: .5rem; align-content: start; padding: 1.4rem; border-radius: var(--radius); background: var(--white); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s; }
.dn-tier::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: var(--accent-soft); transition: transform .6s var(--ease-out); z-index: 0; }
.dn-tier > * { position: relative; z-index: 1; }
.dn-tier:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.dn-tier:hover::before { transform: scale(2.6); }
.dn-tier-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--brand); }
.dn-amount { font: 800 2rem/1.1 var(--font-display); color: var(--deep); text-align: start; }
.dn-tier-go { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; font-weight: 700; color: var(--brand); font-size: .92rem; }

/* إرسال الإيصال */
.dn-receipt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1rem; margin-top: 1.6rem; padding: 1.2rem; border-radius: var(--radius); background: var(--tint); }
.dn-receipt > b { display: inline-flex; align-items: center; gap: .4rem; margin-inline-end: .5rem; }

/* شريط الزكاة */
.dn-zakat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem; padding: clamp(1.4rem, 3.5vw, 2.4rem); border-radius: var(--radius); color: #fff; background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 45%), linear-gradient(120deg, var(--deep), var(--brand)); box-shadow: var(--shadow-lg); margin-block: clamp(2rem, 5vw, 3.5rem); }
.dn-zakat h2 { color: #fff; margin: 0 0 .3rem; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.dn-zakat p { margin: 0; color: rgba(255, 255, 255, .85); }
.dn-zakat-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .14); }
.dn-zakat-ic .ico { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .dn-hero-grid { grid-template-columns: 1fr; }
  .dn-hero-art { max-width: 520px; }
  .dn-float { inset-inline-start: auto; inset-inline-end: 1rem; bottom: 1rem; }
  .dn-links.is-single .dn-card { flex-direction: column; }
  .dn-links.is-single .dn-card-media { min-height: 0; aspect-ratio: 16 / 9; }
  .dn-links.is-single .dn-card-body .btn { width: 100%; }
  .dn-zakat { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .dn-ways { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .dn-visual > img, .dn-float, .dn-card-ic, .dn-bar > span { animation: none; } }

/* =====================================================================
   صفحة التطوع
   ===================================================================== */
.vl-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 5rem); }
.vl-hero .blob { opacity: .42; }
.vl-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.vl-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); margin: .4rem 0 1rem; max-width: 16ch; }
.vl-hero .crumbs { margin-bottom: 1rem; }
.vl-collage { position: relative; aspect-ratio: 1 / .95; }
.vl-ph { position: absolute; margin: 0; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--deep), var(--brand)); border: 5px solid var(--white); }
.vl-ph img { width: 100%; height: 100%; object-fit: cover; }
.vl-ph--1 { inset: 4% 0 14% 22%; z-index: 1; animation: bob 9s ease-in-out infinite; }
.vl-ph--2 { width: 42%; aspect-ratio: 1; inset-inline-start: 0; bottom: 0; z-index: 2; border-radius: 50%; animation: bob 7s ease-in-out -2s infinite; }
.vl-ph--3 { width: 30%; aspect-ratio: 4 / 5; inset-inline-end: -2%; bottom: -4%; z-index: 3; animation: bob 8s ease-in-out -4s infinite; }
html[dir="rtl"] .vl-ph--1 { inset: 4% 22% 14% 0; }
.n1 .vl-ph--1, html[dir="rtl"] .n1 .vl-ph--1 { inset: 0; }
.vl-ph--art { display: grid; place-items: center; }
.vl-ph--art img { width: 36%; height: auto; object-fit: contain; }
.vl-badge { position: absolute; z-index: 4; top: 8%; inset-inline-start: 4%; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 99px; background: var(--accent); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out -1s infinite; }
.vl-ring { position: absolute; z-index: 0; width: 70%; aspect-ratio: 1; inset-inline-end: -12%; top: -10%; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--brand) 35%, transparent); animation: vl-spin 40s linear infinite; }
@keyframes vl-spin { to { transform: rotate(360deg); } }

.vl-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.vl-benefits li { position: relative; padding: 1.7rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s; }
.vl-benefits li:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vl-benefits h3 { font-size: 1.25rem; margin: 1rem 0 .4rem; }
.vl-benefits p { margin: 0; color: var(--ink-soft); line-height: 1.8; }
.vl-num { position: absolute; top: .4rem; inset-inline-end: 1rem; font: 800 3.4rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand) 22%, transparent); }
.vl-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 22px -10px var(--brand); }
.vl-ic .ico { width: 26px; height: 26px; }

.vl-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.vl-area { position: relative; display: grid; justify-items: start; gap: .5rem; padding: 1.3rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--white); color: var(--ink); font: inherit; text-align: start; cursor: pointer; transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s, background .25s; }
.vl-area:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vl-area b { font-size: 1.08rem; line-height: 1.5; }
.vl-area small { color: var(--ink-soft); line-height: 1.6; }
.vl-area-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--brand); transition: background .25s, color .25s; }
.vl-area-check { position: absolute; top: .8rem; inset-inline-end: .8rem; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); color: transparent; transition: all .25s var(--ease-out); }
.vl-area-check .ico { width: 14px; height: 14px; }
.vl-area[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--white)); }
.vl-area[aria-pressed="true"] .vl-area-ic { background: var(--brand); color: #fff; }
.vl-area[aria-pressed="true"] .vl-area-check { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: scale(1.1); }
.vl-area:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.vl-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem; counter-reset: s; position: relative; }
.vl-steps li { position: relative; text-align: center; padding: 0 .6rem; }
.vl-steps li:not(:last-child)::after { content: ""; position: absolute; top: 30px; inset-inline-start: calc(50% + 40px); width: calc(100% - 80px + 1.4rem); height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px); opacity: .4; }
.vl-step-n { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font: 800 1.4rem var(--font-display); color: var(--ink); background: var(--accent); box-shadow: 0 0 0 8px var(--accent-soft); margin-bottom: 1rem; }
.vl-steps h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.vl-steps p { margin: 0; color: var(--ink-soft); line-height: 1.75; }

.vl-apply-grid { display: grid; grid-template-columns: minmax(260px, .7fr) 1.5fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.vl-side { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); color: #fff; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 40%, transparent), transparent 50%), linear-gradient(150deg, var(--deep), var(--brand)); box-shadow: var(--shadow-lg); }
.vl-side h2 { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.vl-side ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .9rem; }
.vl-side li { display: flex; gap: .7rem; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.vl-side li .ico { flex: none; width: 1.7rem; height: 1.7rem; padding: .35rem; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--accent); }
.vl-side-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.vl-side-contact b { width: 100%; }
.vl-side .btn-ink { --bg: #fff; --fg: var(--ink); }
.vl-side .btn-ghost { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.vl-side .btn-ghost:hover { --bg: rgba(255, 255, 255, .1); }
.vl-apply .contact-form { margin: 0; }

@media (max-width: 900px) {
  .vl-hero-grid, .vl-apply-grid { grid-template-columns: 1fr; }
  .vl-collage { max-width: 480px; width: 100%; margin-inline: auto; }
  .vl-side { position: static; order: 2; }
  .vl-steps li:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vl-ph, .vl-badge, .vl-ring { animation: none; } }

/* =====================================================================
   صفحة الخبر والتدوينة
   ===================================================================== */
.article-hero { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.article-hero .wrap--narrow { max-width: 860px; }
.article-hero h1 { max-width: none; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin: 1.2rem 0 1rem; color: var(--ink-soft); font-size: .95rem; }
.art-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.art-meta .ico { width: 1.05em; height: 1.05em; color: var(--brand); }
.art-meta a.chip { text-decoration: none; }
.art-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.art-by .byline { display: inline-flex; align-items: center; gap: .6rem; margin: 0; }
.art-by .share { margin: 0; }
.avatar--logo { background: var(--white) !important; border: 1px solid var(--line); }
.avatar--logo img { width: 70%; height: auto; }

.article-cover { margin: 0 auto; }
.article-cover img { max-height: 620px; }

.art-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: clamp(2rem, 4vw, 3.5rem); padding-top: clamp(2.5rem, 5vw, 4rem); }
.art-layout.has-toc { grid-template-columns: 250px minmax(0, 760px); }
.art-aside { position: relative; }
.art-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.2rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.art-toc > b { display: flex; align-items: center; gap: .4rem; font: 700 .95rem var(--font-display); margin-bottom: .7rem; }
.art-toc > b .ico { color: var(--brand); }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; border-inline-start: 2px solid var(--line); }
.art-toc a { display: block; padding: .35rem .8rem; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: .9rem; line-height: 1.6; transition: color .2s, border-color .2s, background .2s; }
.art-toc .lvl-3 a { padding-inline-start: 1.6rem; font-size: .85rem; }
.art-toc a:hover { color: var(--ink); }
.art-toc a[aria-current="true"] { color: var(--brand); border-color: var(--brand); background: var(--tint); font-weight: 700; }

/* قراءة مريحة */
.art-body { font-size: 1.14rem; line-height: 1.95; }
html[lang="ar"] .art-body { line-height: 2.05; }
.art-body > p:first-child { font-size: 1.25em; color: var(--ink); line-height: 1.85; }
.art-body p { margin: 0 0 1.25em; }
.art-body h2 { position: relative; font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.4em 0 .8em; padding-inline-start: 1rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.art-body h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .25em; bottom: .25em; width: 5px; border-radius: 4px; background: linear-gradient(var(--accent), var(--brand)); }
.art-body h3 { font-size: 1.3rem; margin: 2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.art-body img { border-radius: var(--radius-sm); }
.art-body strong { color: var(--ink); }
.art-body ul li::marker { content: "◆  "; font-size: .7em; color: var(--accent); }
.art-body a { color: var(--brand); font-weight: 600; }

.art-end { display: grid; gap: 1.6rem; margin-top: 2.6rem; }
.art-end-share { display: flex; justify-content: center; padding: 1.1rem; border-block: 1px solid var(--line); }
.art-end-share .share { margin: 0; }
.art-support { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.2rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 60%), var(--tint); border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent); }
.art-support b { font: 700 1.15rem var(--font-display); }
.art-support p { margin: .2rem 0 0; color: var(--ink-soft); line-height: 1.7; }
.art-support-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); animation: dn-beat 2.6s ease-in-out infinite; }
.art-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.art-pn-link { display: flex; align-items: center; gap: .9rem; padding: .8rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease-out), box-shadow .35s; min-width: 0; }
.art-pn-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.art-pn-link.is-older { flex-direction: row-reverse; text-align: end; }
.art-pn-link img { width: 76px; height: 60px; flex: none; object-fit: cover; border-radius: 10px; }
.art-pn-link span { display: grid; gap: .15rem; min-width: 0; }
.art-pn-link small { color: var(--brand); font-weight: 700; font-size: .8rem; }
.art-pn-link b { font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* قائمة الأخبار: أقراص التصنيفات والبحث */
.news-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.cat-pills { display: flex; flex-wrap: wrap; gap: .45rem; flex: 1 1 auto; }
.cat-pills a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 99px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; transition: all .25s var(--ease-out); }
.cat-pills a small { font-size: .75rem; padding: .05rem .45rem; border-radius: 99px; background: var(--tint); color: var(--brand); }
.cat-pills a:hover { border-color: var(--ink); }
.cat-pills a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-pills a[aria-current="page"] small { background: rgba(255, 255, 255, .18); color: #fff; }
.news-search { display: flex; align-items: center; gap: .5rem; flex: 0 1 340px; }
.news-search label { position: relative; flex: 1; }
.news-search input { width: 100%; font: inherit; padding: .6rem 1rem; padding-inline-start: 2.4rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.news-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.news-search .ico { position: absolute; inset-inline-start: .9rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.news-search select { font: inherit; padding: .6rem .9rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.news-count { width: 100%; color: var(--ink-soft); font-size: .9rem; margin-top: -.3rem; }
.news-count a { margin-inline-start: .6rem; }

@media (max-width: 1000px) {
  .art-layout.has-toc { grid-template-columns: minmax(0, 760px); }
  .art-toc { position: static; }
  .art-toc ol { max-height: none; }
}
@media (max-width: 640px) {
  .art-support { grid-template-columns: auto 1fr; }
  .art-support .btn { grid-column: 1 / -1; }
  .art-pn { grid-template-columns: 1fr; }
  .art-by { flex-direction: column; align-items: flex-start; }
  .news-search { flex-basis: 100%; }
}

/* قنوات الشكاوى المباشرة */
.acc-direct { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.acc-direct a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: inherit; text-decoration: none; transition: background .3s, transform .3s; }
.acc-direct a:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.acc-direct .ico { width: 38px; height: 38px; padding: 9px; flex: none; border-radius: 11px; background: var(--accent); color: var(--deep); }
.acc-direct span { display: grid; min-width: 0; }
.acc-direct small { opacity: .75; font-size: .82rem; }
.acc-direct b { font-size: 1.05rem; overflow-wrap: anywhere; direction: ltr; text-align: start; unicode-bidi: plaintext; }

/* ---------- التبرع: اختيار الدولة ---------- */
[data-regions][hidden], [data-dn-sec][hidden], .dn-ways a[hidden], .dn-region-note[hidden], .dn-region-empty[hidden] { display: none !important; }
.dn-pick { display: grid; gap: 1.2rem; margin-top: clamp(-2.5rem, -3vw, -1.5rem); position: relative; z-index: 2; }
.dn-regions { padding: 1.3rem clamp(1rem, 3vw, 1.8rem); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: .9rem; }
.dn-regions-t { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.1rem var(--font-display); color: var(--ink); }
.dn-regions-t .ico { color: var(--brand); width: 1.2em; height: 1.2em; }
.dn-region-pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.dn-region-pills button { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1.1rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .98rem var(--font-body); cursor: pointer; transition: border-color .25s, background .25s, transform .25s, box-shadow .25s; }
.dn-region-pills button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.dn-region-pills button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; box-shadow: 0 12px 24px -14px var(--deep); }
.dn-region-pills .ico { width: 1.1em; height: 1.1em; }
.dn-flag { width: 28px; height: 20px; border-radius: 4px; flex: none; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.dn-flag--ic { box-shadow: none; width: 1.25em; height: 1.25em; color: var(--brand); }
.dn-region-pills button[aria-pressed="true"] .dn-flag--ic { color: var(--accent); }
.dn-region-note, .dn-region-empty { display: flex; align-items: flex-start; gap: .6rem; margin: 0; padding: .8rem 1rem; border-radius: 14px; background: var(--accent-soft); color: var(--deep); line-height: 1.8; }
.dn-region-note .ico, .dn-region-empty .ico { flex: none; margin-top: .3rem; color: var(--brand); }
.dn-region-empty { background: #fff4e0; color: #6b4300; }
.dn-pick .dn-ways { margin: 0; }

/* ---------- التبرع عبر الباركود ---------- */
.dn-qrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1.2rem; }
.dn-qr { display: grid; grid-template-columns: 190px 1fr; gap: 1.3rem; align-items: start; padding: 1.3rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dn-qr-code { position: relative; display: block; padding: .7rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.dn-qr-code img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }
.dn-qr-zoom { position: absolute; inset: auto .5rem .5rem; display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .3rem; border-radius: 10px; background: rgba(11, 35, 41, .82); color: #fff; font-size: .78rem; font-weight: 600; opacity: 0; transition: opacity .25s; }
.dn-qr-code:hover .dn-qr-zoom, .dn-qr-code:focus-visible .dn-qr-zoom { opacity: 1; }
.dn-qr-zoom .ico { width: 1em; height: 1em; }
.dn-qr-body { display: grid; gap: .8rem; min-width: 0; }
.dn-qr-body header { display: flex; align-items: center; gap: .7rem; }
.dn-qr-body h3 { margin: 0; font-size: 1.25rem; }
.dn-qr-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; background: var(--paper); padding: 4px; flex: none; }
.dn-qr-holder, .dn-qr-num { margin: 0; display: grid; gap: .2rem; }
.dn-qr-holder small, .dn-qr-num small { color: var(--ink-soft); font-size: .82rem; }
.dn-qr-num .copyable { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 12px; background: var(--paper); border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); }
.dn-qr-num code { flex: 1; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.dn-qr-num button { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--white); color: var(--brand); cursor: pointer; display: grid; place-items: center; }
.dn-qr-text { margin: 0; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 560px) {
  .dn-qr { grid-template-columns: 1fr; }
  .dn-qr-code { max-width: 240px; margin-inline: auto; width: 100%; }
  .dn-region-pills button { flex: 1 1 auto; justify-content: center; }
}

/* ---------- التبرع: بطاقة البنك بعدة عملات ---------- */
.acc-curs { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.acc-lines { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; }
.acc-lines li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.acc-cur { min-width: 3.4rem; padding: .45rem .5rem; border-radius: 10px; background: var(--deep); color: #fff; font: 800 .9rem var(--font-display); text-align: center; letter-spacing: .04em; }
.acc-nums { display: grid; gap: .35rem; min-width: 0; }
.acc-nums .copyable { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; min-width: 0; }
.acc-nums small { grid-column: 1 / -1; color: var(--ink-soft); font-size: .76rem; }
.acc-nums code { font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.acc-nums button { width: 32px; height: 32px; border-radius: 9px; border: 0; background: var(--white); color: var(--brand); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.acc-nums button.is-done, .dn-qr-num button.is-done { background: var(--accent); color: var(--deep); }

/* ---------- التبرع: الحالات ---------- */
.dn-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.dn-case { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s; }
.dn-case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dn-case.is-urgent { border-color: color-mix(in srgb, #d92d20 35%, transparent); }
.dn-case-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--deep), var(--brand)); display: grid; place-items: center; overflow: hidden; }
.dn-case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.dn-case:hover .dn-case-media img { transform: scale(1.05); }
.dn-case-media .dn-card-ic { width: 54px; height: 54px; color: rgba(255, 255, 255, .7); }
.dn-urgent { position: absolute; top: .8rem; inset-inline-start: .8rem; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 99px; background: #d92d20; color: #fff; font-weight: 700; font-size: .85rem; box-shadow: 0 8px 18px -8px #d92d20; }
.dn-urgent .pulse-dot { background: #fff; box-shadow: 0 0 0 0 #fff; }
.dn-case-body { display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.dn-case-body h3 { margin: 0; font-size: 1.25rem; line-height: 1.45; }
.dn-case-body p { margin: 0; color: var(--ink-soft); line-height: 1.8; }
.dn-case-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.dn-case-actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- التبرع: أشكال الواجهة ---------- */
.dn-hero--centered .dn-hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 54rem; margin-inline: auto; }
.dn-hero--centered .dn-hero-art { display: none; }
.dn-hero--centered .crumbs, .dn-hero--centered .dn-actions, .dn-hero--centered .dn-trust { justify-content: center; }
.dn-hero--centered .lead { margin-inline: auto; }
.dn-hero--cover { color: #fff; background: linear-gradient(90deg, rgba(4, 34, 42, .92), rgba(4, 34, 42, .55) 60%, rgba(4, 34, 42, .25)), var(--dn-cover, linear-gradient(135deg, var(--deep), var(--brand))) center / cover no-repeat; }
html[dir="rtl"] .dn-hero--cover { background: linear-gradient(270deg, rgba(4, 34, 42, .92), rgba(4, 34, 42, .55) 60%, rgba(4, 34, 42, .25)), var(--dn-cover, linear-gradient(135deg, var(--deep), var(--brand))) center / cover no-repeat; }
.dn-hero--cover .hero-bg { display: none; }
.dn-hero--cover .dn-hero-grid { grid-template-columns: minmax(0, 40rem); min-height: min(68vh, 620px); align-content: center; }
.dn-hero--cover .dn-visual { display: none; }
.dn-hero--cover .dn-hero-art { position: static; }
.dn-hero--cover .dn-float { position: static; margin-top: 1.5rem; max-width: 26rem; }
.dn-hero--cover h1, .dn-hero--cover .lead, .dn-hero--cover .crumbs a, .dn-hero--cover .crumbs span, .dn-hero--cover .dn-trust li { color: #fff; }
.dn-hero--cover .lead { color: rgba(255, 255, 255, .85); }
.dn-hero--cover .kicker { background: rgba(255, 255, 255, .12); color: #e9f6c0; border-color: rgba(255, 255, 255, .2); }
.dn-hero--cover .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.dn-hero--cover .dn-trust .ico { color: var(--accent); }

/* ---------- زر التبرع الثابت (الجوال) ---------- */
.dn-sticky { display: none; }
@media (max-width: 760px) {
  .dn-sticky { display: block; position: fixed; z-index: 70; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); transition: transform .45s var(--ease-out), opacity .45s; }
  .dn-sticky[hidden] { display: block; transform: translateY(140%); opacity: 0; pointer-events: none; }
  .dn-sticky .btn { box-shadow: 0 16px 34px -12px rgba(4, 34, 42, .55); }
  .acc-lines li { grid-template-columns: 1fr; gap: .5rem; }
  .acc-cur { justify-self: start; }
}
.accounts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); }
.dn-case-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* المناقصات على الجوال: عمود واحد — الرقم المرجعي ثم العنوان ثم الموعد والحالة */
@media (max-width: 760px) {
  .tender a { grid-template-columns: 1fr; gap: .7rem; padding: 1.1rem 1.2rem; }
  .tender-ref { justify-self: start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: .8rem; }
  .tender-main b { font-size: 1.12rem; line-height: 1.55; }
  .tender-dates { grid-column: auto; }
  .tender-dates span { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; text-align: start; }
  .tender-dates .ico { margin: 0; }
  .tender-dates b { font-size: .95rem; }
  .tender .chip { grid-column: auto; justify-self: start; }
}

/* بطاقة البنك على الجوال: بدون صناديق متداخلة، ورقم IBAN في سطر واحد */
@media (max-width: 560px) {
  .account { padding: 1.1rem; }
  .acc-lines { gap: .45rem; }
  .acc-lines li { padding: .6rem .7rem; gap: .45rem; }
  html[dir] .account .acc-nums .copyable { background: none; border: 0; padding: 0; }
  html[dir] .account .acc-nums .copyable code { font-size: .8rem; letter-spacing: 0; word-break: normal; overflow-wrap: anywhere; }
  .acc-nums button { width: 34px; height: 34px; }
  .acc-cur { min-width: 0; padding: .25rem .6rem; font-size: .8rem; }
}
@media (max-width: 560px) {
  html[dir] .account { padding: .95rem .85rem; }
  html[dir] .account .acc-lines li { padding: .55rem .6rem; }
  html[dir] .account .acc-nums .copyable code { font-size: .74rem; letter-spacing: -.01em; }
  html[dir] .account .acc-nums button { width: 30px; height: 30px; }
}

/* اسم صاحب الحساب قابل للنسخ */
.copyable--name b { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
