/* ==========================================================================
   جمعية سَنَد الخيرية — الموقع العام (يعمل بنظام أثر)
   هوية تحريرية إنسانية: ورق دافئ، حبر، زيتوني وطيني، خطوط شعرية، عناوين نسخ.
   يُضمَّن بعد shared/css/base.css. لا يعتمد على app.css الخاص بلوحات النظام.
   ========================================================================== */

:root {
  --paper: #fbf8f3;
  --paper-2: #f5f0e7;
  --card: #fffdf9;
  --sand: #efe6d6;
  --sand-2: #e6dac4;
  --ink: #1f2a24;
  --ink-2: #4a554e;
  --muted: #858c85;
  --rule: #e7e0d4;
  --rule-2: #d6ccb9;
  --olive: #4d6b3c;
  --olive-600: #3e5830;
  --olive-soft: #e9efe3;
  --sage: #93a67f;
  --terra: #c2643c;
  --terra-600: #a8532f;
  --terra-soft: #f6e5da;
  --red: #a8402f;
  --red-soft: #f4dcd5;

  --serif: "Noto Naskh Arabic", "Amiri", serif;
  --sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  /* base.css overrides */
  --brand: var(--olive);
  --brand-600: var(--olive-600);
  --brand-soft: var(--olive-soft);
  --accent: var(--terra);
  --bg: var(--paper);
  --surface: var(--card);
  --surface-2: var(--paper-2);
  --border: var(--rule);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: none;
  --shadow: none;
  --font: var(--sans);

  --wrap: 1200px;
  --gutter: 28px;
}

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--paper); }
a { color: var(--olive); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
::selection { background: var(--olive-soft); }
[hidden] { display: none !important; }
img { height: auto; }
svg.lucide { flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.center { text-align: center; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-3 { margin-bottom: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }

/* ---------------------------------------------------------------- Buttons */
.btn { border-radius: 999px; padding: 10px 20px; font-family: var(--sans); font-weight: 600; font-size: 14.5px; line-height: 1.4; text-decoration: none; border: 1px solid transparent; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn-primary:hover { background: var(--olive-600); border-color: var(--olive-600); }
.btn-terra { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn-terra:hover { background: var(--terra-600); border-color: var(--terra-600); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: #0f1612; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-soft { background: var(--olive-soft); color: var(--olive-600); }
.btn-soft:hover { background: #dce6d2; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--paper); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 14px 28px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--olive); cursor: pointer; border-bottom: 1px solid currentColor; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-link svg { width: 15px; height: 15px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

.badge { border-radius: 3px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.7; background: var(--paper-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.badge svg { width: 12px; height: 12px; }
.b-olive { background: var(--olive-soft); color: var(--olive-600); }
.b-terra { background: var(--terra-soft); color: var(--terra-600); }
.b-sand { background: var(--sand); color: #7a5c3e; }
.b-ink { background: var(--ink); color: var(--paper); }
.b-muted { background: var(--paper-2); color: var(--muted); }

/* ---------------------------------------------------------------- Demo strip + header */
.demo-strip { background: var(--ink); color: #d9d6cc; font-size: 12.5px; }
.demo-strip .wrap { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.demo-strip span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-strip svg { width: 14px; height: 14px; color: var(--sage); }
.demo-strip a { margin-inline-start: auto; color: #fff; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.demo-strip a:hover { color: var(--sand); }

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; color: var(--olive); border: 1px solid var(--olive); border-radius: 50%; flex: none; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.brand-txt small { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 10px; position: relative; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); font-weight: 700; }
.main-nav a.active::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 2px; background: var(--olive); }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-btn { display: none; }

.mnav { border-top: 1px solid var(--rule); background: var(--paper); max-height: calc(100vh - 110px); overflow: auto; }
.mnav .wrap { padding-block: 10px 20px; }
.mnav a.mlink { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.mnav a.mlink svg { width: 16px; height: 16px; color: var(--muted); }
.mnav a.mlink.active { color: var(--olive); }
.mnav-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.mnav-actions .btn { white-space: normal; text-align: center; }

/* ---------------------------------------------------------------- Footer */
.site-foot { background: var(--ink); color: #cfccc2; margin-top: 80px; font-size: 14px; }
.site-foot a { color: #ece8de; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 36px; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand-mark { color: #b9c9a8; border-color: #6b805b; }
.foot-brand .brand-txt small { color: #a6a397; }
.foot-brand p { margin: 16px 0 0; color: #b9b6ab; max-width: 34ch; }
.site-foot h4 { color: #fff; font-size: 17px; margin: 0 0 14px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-list li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.foot-list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--sage); flex: none; }
.foot-license { margin-top: 18px; padding: 12px 14px; border: 1px solid #3a463f; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #b9b6ab; }
.foot-license svg { width: 20px; height: 20px; color: var(--sage); flex: none; margin-top: 2px; }
.foot-bottom { border-top: 1px solid #36423b; }
.foot-bottom .wrap { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding-block: 18px 22px; font-size: 13px; color: #a6a397; }
.foot-athar { display: inline-flex; align-items: center; gap: 6px; }
.foot-athar svg { width: 16px; height: 16px; color: var(--sage); }
.foot-by { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; }
.foot-by img { width: 20px; height: 20px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }

/* ---------------------------------------------------------------- Sections & typography */
.sec { padding-block: 76px 0; }
.sec-tight { padding-block: 48px 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--terra); letter-spacing: 0; margin-bottom: 10px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.kicker.olive { color: var(--olive); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; margin: 0; }
.sec-head p { color: var(--ink-2); margin: 6px 0 0; max-width: 62ch; }
.sec-head .btn-link { flex: none; }
.dek { font-size: 18px; color: var(--ink-2); line-height: 1.85; }
.hint { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.hint svg { width: 15px; height: 15px; margin-top: 4px; flex: none; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

.page-head { padding-block: 56px 36px; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.3; margin: 0 0 10px; }
.page-head .dek { max-width: 64ch; margin: 0; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--olive); }

/* ---------------------------------------------------------------- Hero */
.hero { padding-block: 56px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: 1.15; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--olive); }
.hero .dek { max-width: 46ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 17px; height: 17px; color: var(--olive); }

.photo-band { margin-top: 56px; position: relative; }
.photo-band img { width: 100%; height: clamp(220px, 34vw, 430px); object-fit: cover; filter: saturate(.85) sepia(.08); }
.photo-band figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); padding-top: 10px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.photo-band figcaption b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- Donate box */
.dbox { background: var(--card); border: 1px solid var(--rule-2); border-top: 4px solid var(--terra); padding: 24px; }
.dbox h2 { font-size: 24px; margin: 0 0 4px; }
.dbox > p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.dbox .field + .field { margin-top: 14px; }
.dbox-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 18px 0 12px; padding-top: 14px; border-top: 1px dashed var(--rule-2); font-size: 14px; color: var(--ink-2); }
.dbox-total b { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.dbox-safe { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.dbox-safe span { display: inline-flex; align-items: center; gap: 5px; }
.dbox-safe svg { width: 14px; height: 14px; }

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip { border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; padding: 10px 6px; border-radius: 4px; cursor: pointer; text-align: center; transition: .15s; }
.chip small { font-size: 11px; font-weight: 500; color: var(--muted); margin-inline-start: 2px; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active small { color: #cfccc2; }

.seg { display: flex; border: 1px solid var(--rule-2); border-radius: 999px; padding: 3px; gap: 2px; background: var(--paper); flex-wrap: wrap; }
.seg button { flex: 1 1 auto; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--olive); color: #fff; }

/* ---------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--terra); }
.input, .select, .textarea { width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--rule-2); border-radius: 4px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(77, 107, 60, .14); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(194, 100, 60, .12); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.ltr-in { direction: ltr; text-align: right; }
.input-unit { position: relative; }
.input-unit .input { padding-inline-end: 52px; }
.input-unit > span { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--olive); flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.check-card { display: flex; align-items: center; gap: 9px; border: 1px solid var(--rule-2); background: #fff; padding: 10px 12px; border-radius: 4px; cursor: pointer; font-size: 14px; min-width: 0; }
.check-card input { accent-color: var(--olive); width: 17px; height: 17px; margin: 0; flex: none; }
.check-card:has(input:checked) { border-color: var(--olive); background: var(--olive-soft); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.fill-demo { margin-inline-start: auto; }

.panel { background: var(--card); border: 1px solid var(--rule-2); padding: 26px; }
.panel-title { font-size: 22px; margin: 0 0 4px; }
.panel-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* ---------------------------------------------------------------- Impact numbers */
.impact-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.imp { padding: 24px 20px 22px; border-inline-start: 1px solid var(--rule); min-width: 0; }
.imp:first-child { border-inline-start: 0; padding-inline-start: 0; }
.imp b { display: block; font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); line-height: 1.15; color: var(--ink); }
.imp b small { font-size: .42em; font-weight: 600; color: var(--ink-2); margin-inline-start: 4px; }
.imp span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.imp.accent b { color: var(--olive); }
.impact-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--olive); font-weight: 600; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 0 rgba(77, 107, 60, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(77, 107, 60, .45); } 70% { box-shadow: 0 0 0 9px rgba(77, 107, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(77, 107, 60, 0); } }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: var(--olive-soft); } 100% { background: transparent; } }

/* ---------------------------------------------------------------- Progress */
.line { display: block; height: 4px; background: #e6dfd2; position: relative; overflow: hidden; width: 100%; }
.line > i { display: block; height: 100%; background: var(--olive); transition: width .6s ease; }
.line.terra > i { background: var(--terra); }
.line.thick { height: 8px; }
.prog-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); margin-top: 8px; flex-wrap: wrap; }
.prog-meta b { color: var(--ink); }

/* ---------------------------------------------------------------- Program cards */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pcard { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
.pcard-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) sepia(.06); transition: transform .5s ease; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-img .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.pcard-body { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-tag { font-size: 12.5px; color: var(--terra); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.pcard-tag svg { width: 15px; height: 15px; }
.pcard h3 { font-size: 23px; margin: 0; line-height: 1.4; }
.pcard h3 a { color: inherit; text-decoration: none; }
.pcard h3 a:hover { color: var(--olive); }
.pcard p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.pcard .prog { margin-top: auto; padding-top: 10px; }
.pcard-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.filters .seg { flex: 0 1 auto; }
.count-note { font-size: 13.5px; color: var(--muted); margin-inline-start: auto; }

/* ---------------------------------------------------------------- Feature bands */
.band { background: var(--sand); padding-block: 56px; margin-top: 76px; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.35; margin: 0 0 12px; }
.band-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; filter: saturate(.85) sepia(.06); }
.band-num { display: flex; gap: 32px; margin: 22px 0; flex-wrap: wrap; }
.band-num div b { display: block; font-family: var(--serif); font-size: 38px; line-height: 1.1; color: var(--terra); }
.band-num div span { font-size: 13.5px; color: var(--ink-2); }
.band.olive { background: var(--olive); color: #e9efe3; }
.band.olive h2 { color: #fff; }
.band.olive .dek { color: #dbe5d0; }
.band.olive .kicker { color: #f0c9b2; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sticky-side { position: sticky; top: 100px; }

/* zakat teaser / calculator */
.zk-mini { background: var(--card); border: 1px solid var(--rule-2); padding: 24px; }
.zk-result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 16px 0; }
.zk-result b { font-family: var(--serif); font-size: 32px; color: var(--olive); }
.zk-rows { display: grid; gap: 0; }
.zk-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.zk-row:first-child { border-top: 1px solid var(--ink); }
.zk-row h4 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.zk-row h4 svg { width: 19px; height: 19px; color: var(--olive); }
.zk-row p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.zk-row.minus h4 svg { color: var(--terra); }
.zk-sum { display: grid; gap: 0; }
.zk-sum div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--rule-2); font-size: 14px; }
.zk-sum div span { color: var(--ink-2); }
.zk-sum div b { font-weight: 600; }
.zk-due { text-align: center; padding: 22px 0 6px; }
.zk-due small { display: block; color: var(--muted); font-size: 13px; }
.zk-due b { display: block; font-family: var(--serif); font-size: 44px; line-height: 1.2; color: var(--olive); }
.zk-status { margin: 10px 0 0; font-size: 13.5px; text-align: center; }
.note-box { background: var(--sand); border-inline-start: 3px solid var(--terra); padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.note-box svg { width: 17px; height: 17px; color: var(--terra); flex: none; margin-top: 3px; }
.note-box.olive { background: var(--olive-soft); border-color: var(--olive); }
.note-box.olive svg { color: var(--olive); }

/* lists */
.opp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.opp { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.date-block { width: 64px; text-align: center; border: 1px solid var(--rule-2); padding: 6px 0; line-height: 1.2; background: var(--card); }
.date-block b { display: block; font-family: var(--serif); font-size: 26px; }
.date-block small { font-size: 12px; color: var(--muted); }
.opp h4 { margin: 0 0 4px; font-size: 18px; }
.opp-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.opp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.opp-meta svg { width: 14px; height: 14px; color: var(--muted); }
.opp-seats { min-width: 150px; font-size: 12.5px; color: var(--muted); }
.opp-seats .line { margin: 6px 0; }
.opp-side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .f-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; flex: none; }
.feed .f-ic svg { width: 16px; height: 16px; }
.feed .f-main { flex: 1; min-width: 0; }
.feed .f-main b { font-weight: 600; }
.feed .f-main small { display: block; color: var(--muted); font-size: 12.5px; }
.feed .f-amt { font-weight: 700; white-space: nowrap; }
.feed li.new { animation: flash 1.6s ease; }

/* quote */
.quote { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.7; color: var(--ink); border-inline-start: 3px solid var(--terra); padding-inline-start: 22px; margin: 0; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); margin-top: 10px; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px 10px; text-align: center; border-inline-start: 1px solid var(--rule); color: var(--ink-2); font-size: 13.5px; font-weight: 600; min-width: 0; }
.partner:first-child { border-inline-start: 0; }
.partner svg { width: 26px; height: 26px; color: var(--muted); }
.partner small { font-weight: 400; color: var(--muted); font-size: 12px; }

/* report teaser */
.report { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; align-items: center; }
.report-cover { aspect-ratio: 3 / 4; background: var(--olive); color: #fff; padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.report-cover::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.report-cover small { color: #dbe5d0; font-size: 12px; }
.report-cover b { font-family: var(--serif); font-size: 32px; line-height: 1.3; }
.report-cover svg { width: 46px; height: 46px; color: #dbe5d0; }
.report-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin: 18px 0; }
.report-facts div { padding: 14px 14px 14px 0; border-inline-start: 1px solid var(--rule); padding-inline-start: 14px; }
.report-facts div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.report-facts b { display: block; font-family: var(--serif); font-size: 28px; }
.report-facts span { font-size: 13px; color: var(--ink-2); }

/* doc list (reports, policies) */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.doc-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.doc-ic { width: 42px; height: 50px; border: 1px solid var(--rule-2); background: var(--card); display: grid; place-items: center; color: var(--terra); flex: none; }
.doc-ic svg { width: 20px; height: 20px; }
.doc-list .d-main { flex: 1; min-width: 0; }
.doc-list .d-main b { display: block; font-weight: 600; }
.doc-list .d-main small { color: var(--muted); font-size: 12.5px; }

/* people (board) */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.person { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 17px; flex: none; }
.person b { display: block; font-size: 15px; }
.person small { color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- Orphan cards (sponsor) */
.ogrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ocard { background: var(--card); border: 1px solid var(--rule-2); padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; transition: border-color .15s; }
.ocard:hover { border-color: var(--ink); }
.o-init { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; font-weight: 700; background: var(--olive-soft); color: var(--olive-600); margin-bottom: 6px; }
.ocard.f .o-init { background: var(--terra-soft); color: var(--terra-600); }
.ocard h3 { font-size: 19px; margin: 0; }
.ocard .o-meta { font-size: 13.5px; color: var(--ink-2); }
.ocard .o-since { font-size: 12px; color: var(--muted); }
.ocard .btn { margin-top: 10px; width: 100%; }
.ocard.done { border-color: var(--olive); background: var(--olive-soft); }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); padding: 14px 16px; border: 1px dashed var(--rule-2); margin-bottom: 26px; }
.privacy-note svg { width: 19px; height: 19px; color: var(--olive); flex: none; margin-top: 3px; }

.more-row { text-align: center; margin-top: 28px; }

/* includes list */
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.incl li { display: flex; gap: 10px; align-items: flex-start; }
.incl svg { width: 18px; height: 18px; color: var(--olive); flex: none; margin-top: 4px; }

/* ---------------------------------------------------------------- Project detail */
.pd-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 40px 0; }
.pd-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.85) sepia(.06); }
.pd-img figcaption { font-size: 12.5px; color: var(--muted); padding-top: 8px; }
.pd-hero h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.3; margin: 6px 0 12px; }
.pd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: 24px; }
.pd-stats div { padding: 14px 0; border-inline-start: 1px solid var(--rule); padding-inline-start: 14px; min-width: 0; }
.pd-stats div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pd-stats b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.pd-stats span { font-size: 13px; color: var(--ink-2); }
.raised-big { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.raised-big b { font-family: var(--serif); font-size: 34px; }
.raised-big span { color: var(--muted); font-size: 14px; }
.unit-calc { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule-2); border-radius: 999px; background: #fff; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.stepper button:hover { background: var(--paper-2); }
.stepper button svg { width: 16px; height: 16px; }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 26px 22px 0; }
.timeline li::before { content: ""; position: absolute; right: 5px; top: 10px; bottom: -6px; width: 1px; background: var(--rule-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; right: 0; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--olive); }
.timeline b { display: block; font-size: 15px; }
.timeline small { color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- Stepper form (apply) */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; padding-top: 12px; border-top: 3px solid var(--rule); font-size: 13.5px; color: var(--muted); font-weight: 600; min-width: 0; padding-inline-end: 8px; }
.steps li::before { content: counter(st) ". "; font-family: var(--serif); }
.steps li.done { border-color: var(--sage); color: var(--ink-2); }
.steps li.active { border-color: var(--olive); color: var(--ink); }
.step-panel h3 { font-size: 24px; margin: 0 0 4px; }
.step-panel > p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.type-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.type-card { position: relative; border: 1px solid var(--rule-2); background: #fff; padding: 16px 10px; text-align: center; cursor: pointer; border-radius: 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card svg { width: 24px; height: 24px; color: var(--olive); }
.type-card:has(input:checked) { border-color: var(--olive); background: var(--olive-soft); box-shadow: inset 0 0 0 1px var(--olive); }
.summary-kv { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.summary-kv > div { padding: 10px 0; border-bottom: 1px dotted var(--rule-2); min-width: 0; }
.summary-kv dt { font-size: 12.5px; color: var(--muted); }
.summary-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.done-panel { text-align: center; padding: 24px 0; }
.done-panel .ref { display: inline-block; font-family: var(--serif); font-size: 34px; padding: 8px 26px; border: 1px solid var(--ink); margin: 12px 0; direction: ltr; }
.done-panel h2 { font-size: 30px; margin: 10px 0 6px; }
.done-panel p { color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.next-steps { list-style: none; margin: 24px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; text-align: start; max-width: 760px; border-top: 1px solid var(--rule); }
.next-steps li { padding: 14px 14px 0 0; font-size: 14px; color: var(--ink-2); min-width: 0; }
.next-steps li b { display: block; color: var(--ink); font-family: var(--serif); font-size: 17px; }
.reassure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 30px; }
.reassure div { display: flex; gap: 10px; align-items: flex-start; padding: 16px 14px 16px 0; font-size: 14px; color: var(--ink-2); min-width: 0; }
.reassure svg { width: 20px; height: 20px; color: var(--olive); flex: none; margin-top: 3px; }
.reassure b { display: block; color: var(--ink); }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.ccard { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.ccard svg { width: 22px; height: 22px; color: var(--olive); flex: none; margin-top: 4px; }
.ccard small { display: block; color: var(--muted); font-size: 12.5px; }
.ccard b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.map-box { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--rule-2); overflow: hidden; }
.map-box svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.map-pin span { background: var(--ink); color: #fff; font-size: 12.5px; padding: 4px 10px; white-space: nowrap; }
.map-pin svg { width: 30px; height: 30px; color: var(--terra); fill: var(--terra-soft); }
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--olive); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* values (about) */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.value { padding: 22px 18px 22px 0; border-inline-start: 1px solid var(--rule); padding-inline-start: 18px; min-width: 0; }
.value:first-child { border-inline-start: 0; padding-inline-start: 0; }
.value svg { width: 26px; height: 26px; color: var(--terra); }
.value h4 { font-size: 19px; margin: 10px 0 4px; }
.value p { font-size: 14px; color: var(--ink-2); margin: 0; }
.license-card { border: 1px solid var(--ink); padding: 22px; background: var(--card); }
.license-card .kv-l { margin: 14px 0 0; }
.kv-l > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--rule-2); font-size: 14px; }
.kv-l dt { color: var(--muted); }
.kv-l dd { margin: 0; font-weight: 600; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.ratio { display: flex; height: 14px; margin: 12px 0 8px; }
.ratio i { display: block; height: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; display: inline-block; }

/* ---------------------------------------------------------------- Payment step (simulated) */
.pay-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 18px; flex-wrap: wrap; }
.pay-sum b { font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.pay-sum small { display: block; color: var(--ink-2); font-size: 13px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--rule-2); background: #fff; border-radius: 4px; padding: 14px 8px; cursor: pointer; font-size: 13px; font-weight: 600; text-align: center; min-width: 0; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .pm-logo { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; direction: ltr; }
.pay-opt .pm-logo svg { width: 18px; height: 18px; }
.pay-opt small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); }
.sim-note { margin-top: 12px; }
.donor-more { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.donor-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--olive); }
.processing { text-align: center; padding: 34px 0 20px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--olive); margin: 0 auto 16px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.processing p { color: var(--ink-2); margin: 0; }
.step-back { margin-bottom: 12px; }

/* ---------------------------------------------------------------- Modal / toast / receipt (used by CP from app.js) */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(31, 42, 36, .45); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.modal-backdrop.show { opacity: 1; }
.modal { position: relative; background: var(--paper); border: 1px solid var(--rule-2); width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; transform: translateY(10px); transition: transform .2s ease; }
.modal-backdrop.show .modal { transform: none; }
.modal.sm { width: min(440px, 100%); }
.modal.md { width: min(620px, 100%); }
.modal.lg { width: min(880px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--ink); }
.modal-head .kicker { margin-bottom: 2px; }
.modal-head h3 { font-size: 23px; margin: 0; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.modal-head h3 svg { width: 20px; height: 20px; color: var(--olive); }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }
.modal-body { padding: 20px 24px; overflow: auto; }
.modal-foot { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
body.modal-open { overflow: hidden; }
.dek-sm { color: var(--ink-2); margin: 0; }
.stack { display: grid; gap: 14px; }
.success-block { text-align: center; padding: 10px 0; }
.success-mark { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-soft); color: var(--olive); }
.success-mark svg { width: 38px; height: 38px; }
.success-block h3 { font-size: 24px; margin-bottom: 6px; }
.success-block p { color: var(--ink-2); }
.success-ref { display: inline-block; font-weight: 700; padding: 4px 14px; border: 1px solid var(--rule-2); background: #fff; margin: 4px 0 10px; direction: ltr; }

.toast-wrap { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(400px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--ink); color: #f2eee6; padding: 12px 16px; font-size: 14px; border-inline-start: 3px solid var(--sage); animation: toastIn .25s ease; transition: opacity .25s, transform .25s; }
.toast.hide { opacity: 0; transform: translateY(8px); }
.toast b { color: #fff; }
.toast .t-ic { color: var(--sage); flex: none; display: grid; place-items: center; margin-top: 2px; }
.toast .t-ic svg { width: 17px; height: 17px; }
.toast.t-warning { border-color: var(--terra); }
.toast.t-warning .t-ic { color: #e9a07c; }
.toast.t-error { border-color: #d0614e; }
.toast.t-info { border-color: #8fb0bf; }
.toast.t-info .t-ic { color: #8fb0bf; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kv { margin: 0; display: grid; }
.kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--rule-2); }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 600; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.receipt { background: var(--card); border: 1px solid var(--rule-2); padding: 26px; position: relative; }
.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 3px double var(--ink); }
.rc-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rc-brand svg { width: 36px; height: 36px; color: var(--olive); flex: none; }
.rc-brand b { font-family: var(--serif); font-size: 19px; display: block; }
.rc-brand small { color: var(--muted); font-size: 12px; }
.rc-no { text-align: end; }
.rc-no small { display: block; color: var(--muted); font-size: 12px; }
.rc-no b { font-size: 15px; }
.rc-thanks { font-family: var(--serif); font-size: 18px; color: var(--olive); text-align: center; margin: 18px 0 6px; }
.rc-amount { text-align: center; margin-bottom: 16px; }
.rc-amount small { display: block; color: var(--muted); font-size: 12.5px; }
.rc-amount b { font-family: var(--serif); font-size: 40px; }
.rc-foot { display: flex; align-items: center; gap: 16px; border-top: 1px dashed var(--rule-2); margin-top: 16px; padding-top: 14px; font-size: 12px; color: var(--muted); }
.rc-foot p { margin: 0; }
.qr { display: grid; grid-template-columns: repeat(21, 1fr); width: 84px; height: 84px; flex: none; background: #fff; padding: 3px; }
.qr i { display: block; }
.qr i.on { background: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); border: 1px dashed var(--rule-2); grid-column: 1 / -1; }
.empty svg { width: 30px; height: 30px; color: var(--sage); margin: 0 auto 8px; display: block; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .head-actions { margin-inline-start: auto; }
}
@media (max-width: 1080px) {
  .impact-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .imp:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .imp:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .ogrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner:nth-child(4) { border-inline-start: 0; }
  .partner:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .hero-grid, .band-grid, .two-col, .split, .pd-hero, .report { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sticky-side { position: static; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .report-cover { max-width: 240px; }
  .sec { padding-block: 56px 0; }
  .band { margin-top: 56px; padding-block: 44px; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .pgrid, .people { grid-template-columns: minmax(0, 1fr); }
  .ogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .impact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imp, .imp:first-child { padding: 18px 14px; border-inline-start: 1px solid var(--rule); }
  .imp:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .imp:nth-child(4) { border-inline-start: 1px solid var(--rule); padding-inline-start: 14px; }
  .imp:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .imp:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .opp { grid-template-columns: 56px minmax(0, 1fr); gap: 12px 14px; }
  .date-block { width: 56px; }
  .opp-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .opp-seats { flex: 1; min-width: 0; }
  .zk-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps li { font-size: 0; padding-inline-end: 4px; }
  .steps li::before { font-size: 15px; }
  .steps li.active { font-size: 12px; }
  .type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-kv { grid-template-columns: minmax(0, 1fr); }
  .next-steps, .reassure { grid-template-columns: minmax(0, 1fr); }
  .report-facts { grid-template-columns: minmax(0, 1fr); }
  .report-facts div { border-inline-start: 0; padding-inline-start: 0; border-bottom: 1px solid var(--rule); }
  .pd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-stats b { font-size: 21px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px 24px; }
  .foot-by { margin-inline-start: 0; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner:nth-child(n) { border-inline-start: 1px solid var(--rule); border-top: 1px solid var(--rule); }
  .partner:nth-child(odd) { border-inline-start: 0; }
  .partner:nth-child(-n+2) { border-top: 0; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .value, .value:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; border-bottom: 1px solid var(--rule); }
  .pay-methods { grid-template-columns: minmax(0, 1fr); }
  .pay-opt { flex-direction: row; justify-content: flex-start; padding: 12px 14px; gap: 10px; }
  .pay-opt small { margin-inline-start: auto; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 16px; }
  .receipt { padding: 16px; }
  .rc-head { flex-direction: column; }
  .rc-no { text-align: start; }
  .kv > div { grid-template-columns: 96px minmax(0, 1fr); }
  .panel, .dbox, .zk-mini { padding: 18px; }
  .page-head { padding-block: 36px 26px; }
  .photo-band figcaption { flex-direction: column; gap: 2px; }
  .filters .count-note { margin-inline-start: 0; width: 100%; }
  .fill-demo { margin-inline-start: 0; }
  .toast-wrap { inset-inline: 16px; bottom: 16px; }
  .impact-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .impact-row.three .imp { padding: 14px 8px; border-top: 0; border-inline-start: 1px solid var(--rule); grid-column: auto; }
  .impact-row.three .imp:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .impact-row.three .imp b { font-size: 26px; }
  .impact-row.three .imp span { font-size: 12.5px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .head-row { gap: 10px; min-height: 66px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand-txt b { font-size: 24px; }
  .brand-txt small { display: none; }
  .head-login { width: 40px; height: 40px; padding: 0; }
  .head-login span { display: none; }
  .head-donate { padding: 9px 14px; }
  .demo-strip .strip-txt-long { display: none; }
  .ogrid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 52px; }
  .seg button { padding: 7px 9px; font-size: 13px; }
}
@media (max-width: 360px) {
  .head-donate span { display: none; }
  .head-donate { width: 40px; height: 40px; padding: 0; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .demo-strip, .site-head, .site-foot, .toast-wrap { display: none !important; }
  body.modal-open > *:not(.modal-backdrop) { display: none !important; }
  .modal-backdrop { position: static; background: none; padding: 0; opacity: 1; display: block; }
  .modal { border: 0; max-height: none; width: 100% !important; transform: none; }
  .modal-head, .modal-foot, .modal-x { display: none !important; }
  .modal-body { padding: 0; overflow: visible; }
  .receipt { border: 1px solid #999; }
}

/* Athar product logo in "تعمل بنظام أثر" footer link */
.foot-athar img { width: 22px; height: 22px; object-fit: contain; }
