/* Sentinel NGO — public site. The family's dark identity (the same world as the
 * landing page and every dashboard): ground #0A0F1A, navy bands, gold accents.
 * One committed theme — every background and colour is painted explicitly.
 * Mobile first (360 px); wider screens are added by min-width queries only.
 * Motion: transform/opacity only, every animation off under reduced-motion. */

:root {
  --ground: #0A0F1A;
  --panel: #121A2B;
  --panel-2: #0F1626;
  --line: #1E2A41;
  --line-2: #28374F;
  --ink: #EAF1FB;
  --muted: #8695AD;
  --dim: #5C6B85;
  --gold: #C7A46A;
  --gold-bright: #D9BC86;
  --gold-ink: #161006;
  --gold-soft: rgba(199, 164, 106, .14);
  --gold-line: rgba(199, 164, 106, .38);
  --navy: #1B2A48;
  --navy-deep: #16223B;
  --ok: #34D3A6;
  --ok-soft: rgba(52, 211, 166, .14);
  --danger: #FF6274;
  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  --font-heading: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-arabic: "Noto Naskh Arabic", "Segoe UI", Tahoma, "Arial", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --wrap: 1080px;
  --gutter: 20px;
  --radius: 12px;
  --ease: cubic-bezier(.22, .61, .2, 1);
  --lift: translateY(-2px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[dir="rtl"] {
  --font-body: var(--font-arabic);
  --font-heading: var(--font-arabic);
}
html[dir="rtl"] body { font-size: 18px; line-height: 1.8; }
html[dir="rtl"] .h2, html[dir="rtl"] .h3, html[dir="rtl"] .hero-title, html[dir="rtl"] .founder-text { font-family: var(--font-arabic); font-weight: 600; letter-spacing: 0; font-style: normal; }
/* Cinzel carries no Arabic glyphs: on /ar every small-cap label (eyebrows, tile
 * labels, share/ticker labels, table heads, dates) would fall to a Times-shaped
 * Arabic at 11–12px. They take the Naskh face at a size it stays legible. */
html[dir="rtl"] .eyebrow, html[dir="rtl"] .label, html[dir="rtl"] .stat dt, html[dir="rtl"] .share-label,
html[dir="rtl"] .ticker-label, html[dir="rtl"] .founder-line, html[dir="rtl"] .footer-h,
html[dir="rtl"] .ledger-table th, html[dir="rtl"] .post time, html[dir="rtl"] .wall .when {
  font-family: var(--font-arabic); letter-spacing: 0; font-size: .92rem;
}
html[dir="rtl"] .eyebrow { font-size: 1rem; }
html[dir="rtl"] .ledger-table th { font-size: .85rem; }

img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gold-line); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--gold-ink); }
.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: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

.skip {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 8px; }

/* ── Bands (header + footer share the family navy) ──────────────────── */
.band { background: var(--navy); color: var(--ink); }
.band a { color: inherit; text-decoration: none; }
/* sticky only once the header fits on one row; a two-row sticky band eats a phone's screen */
.band-top { position: relative; z-index: 20; border-bottom: 1px solid var(--gold-line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; min-height: 60px; padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.mark { display: block; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 1px solid var(--gold-line); background: var(--navy); }
.wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; font-size: .95rem; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.header-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.header-nav > a:not(.btn) { display: none; padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.header-nav > a:not(.btn):hover { color: var(--gold-bright); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding-inline-end: 8px; border-inline-end: 1px solid var(--gold-line); color: var(--muted); }
html[lang="en"] .lang-en, html[lang="ar"] .lang-ar { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.lang-ar { font-family: var(--font-arabic); }
.lang-sep { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; letter-spacing: .01em; cursor: pointer; text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 26px -14px rgba(199, 164, 106, .75); }
.btn-cta:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); }
/* a gold shimmer sweeps the primary button every ~6 s (transform only) */
.btn-shimmer::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; inset-inline-start: -60%; width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(0) skewX(-18deg); pointer-events: none;
  animation: shimmer 6s var(--ease) 1.5s infinite;
}
html[dir="rtl"] .btn-shimmer::after { animation-name: shimmer-rtl; }
@keyframes shimmer { 0%, 78% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(520%) skewX(-18deg); } }
@keyframes shimmer-rtl { 0%, 78% { transform: translateX(0) skewX(18deg); } 100% { transform: translateX(-520%) skewX(18deg); } }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: .92rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--gold-line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-soft); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold-soft); color: var(--gold-bright); transform: translateY(-1px); }
.btn-copy { background: var(--navy); color: var(--ink); border-color: var(--line-2); border-radius: 8px; padding: 10px 16px; }
.btn-copy:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ── Type ────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-display); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; display: flex; align-items: center; gap: 12px;
  /* fades in on scroll from a VISIBLE resting state: never opacity 0 at load */
  opacity: .78; transform: translateY(4px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.eyebrow.in { opacity: 1; transform: none; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold); flex: none; }
.h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.7rem, 2.4vw + 1rem, 2.5rem); line-height: 1.15; letter-spacing: -.005em; margin: 0 0 12px; font-variation-settings: "opsz" 9; color: var(--ink); text-wrap: balance; }
.h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.22rem; line-height: 1.25; margin: 0 0 8px; font-variation-settings: "opsz" 9; color: var(--ink); }
.lede { font-size: 1.05rem; max-width: 62ch; color: var(--muted); margin: 0 0 26px; }
.empty { color: var(--muted); font-style: italic; margin: 12px 0 0; }
.empty-invite { font-family: var(--font-heading); font-size: 1.12rem; color: var(--ink); }
.empty-cta { color: var(--gold); font-style: normal; font-family: var(--font-body); font-weight: 600; white-space: nowrap; }
.status { min-height: 1.4em; margin: 8px 0 0; font-size: .95rem; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.fine { font-size: .85rem; color: var(--muted); }
.label { display: block; font-family: var(--font-display); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }

/* ── Hero: the thesis ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; padding-top: 52px; padding-bottom: 44px;
  background: var(--ground);
  background-image: radial-gradient(60% 45% at 85% 0%, rgba(199, 164, 106, .10), transparent 70%),
                    radial-gradient(45% 40% at 0% 100%, rgba(27, 42, 72, .8), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; }
/* the drifting family gems: a canvas under everything, never over text */
.hero-gems { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* the family's H-and-gems figure, large and faint behind the headline: the
 * inline lockup with its navy field and wordmark hidden, leaving the gold line */
.hero-figure {
  position: absolute; z-index: 1; pointer-events: none; user-select: none;
  inset-inline-end: -26vw; top: -8vw; width: 96vw; max-width: 780px; opacity: .07;
}
.hero-figure svg { display: block; width: 100%; height: auto; }
/* only the navy field (the one rect WITH a fill) and the ivory wordmark go: the H's
 * uprights are unfilled rects inside the gold-stroke group and must stay */
.hero-figure svg rect[fill], .hero-figure svg path[fill="#F3EFE7"] { display: none; }
.hero-title {
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(2.125rem, 3.6vw + 1.1rem, 4rem);
  line-height: 1.05; letter-spacing: -.014em; margin: 0 0 18px; max-width: 17ch;
  font-variation-settings: "opsz" 9; color: var(--ink); text-wrap: balance;
}
.hero-sub { font-size: 1.12rem; max-width: 58ch; color: var(--muted); margin: 0 0 14px; }
.hero-sub:empty { display: none; }
.mission { font-size: 1.02rem; max-width: 60ch; color: var(--muted); margin: 0 0 22px; }
.mission:empty { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 40px; }

/* the impact calculator: pick an amount, see the meals */
.calc {
  margin: 8px 0 0; padding: 18px 16px 14px; max-width: 640px;
  background: linear-gradient(180deg, rgba(18, 26, 43, .92), rgba(15, 22, 38, .92)); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9);
}
.calc-label { color: var(--gold); margin-bottom: 12px; }
.calc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.calc-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1 1 260px; min-width: 0; }
.chip {
  min-height: 46px; padding: 5px 2px; border-radius: 10px; border: 1px solid var(--gold-line); background: transparent;
  color: var(--gold); font-weight: 600; cursor: pointer; white-space: nowrap; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.chip .num { font-family: var(--font-display); font-size: 1.05rem; }
.chip small { font-size: .62rem; letter-spacing: .08em; font-weight: 600; opacity: .85; }
.chip:hover { border-color: var(--gold); background: var(--gold-soft); transform: var(--lift); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.calc-custom { flex: 1 1 120px; min-width: 0; display: block; }
.calc-custom input {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; -moz-appearance: textfield;
}
.calc-custom input::-webkit-outer-spin-button, .calc-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-custom input::placeholder { color: var(--dim); font-weight: 400; }
.calc-custom input:focus { border-color: var(--gold); outline: none; }
.calc-result { margin: 14px 0 0; font-family: var(--font-heading); font-size: 1.12rem; color: var(--ink); line-height: 1.35; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; }
.calc-eq, .calc-dot { color: var(--gold); }
.calc-result strong { font-family: var(--font-display); font-weight: 600; color: var(--gold); }
.calc-big { font-size: 1.9rem; line-height: 1; }
.calc-foot { margin: 10px 0 0; color: var(--dim); }
.calc-foot:empty { display: none; }

/* the counter */
.counter { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; }
.stat {
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; min-width: 0; position: relative; overflow: visible;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.stat:hover { transform: var(--lift); border-color: var(--gold-line); }
.stat::before { content: ""; position: absolute; inset-inline-start: 16px; top: 0; width: 34px; height: 2px; background: var(--gold); }
.stat dt { font-family: var(--font-display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 6px; }
.stat dd { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--gold); font-size: clamp(1.5rem, 5vw, 2.3rem); line-height: 1.1; overflow-wrap: anywhere; }
/* at zero the first tile breathes: a soft gold ring, so the row reads waiting, not dead */
.stat-pulse::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius); pointer-events: none;
  border: 1px solid var(--gold); opacity: 0; animation: pulse-ring 2.8s var(--ease) infinite;
}
@keyframes pulse-ring { 0% { opacity: .75; transform: scale(1); } 70% { opacity: 0; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1.06); } }
.counter-note { margin: 12px 0 0; font-size: .85rem; color: var(--dim); }
.counter-note.first { color: var(--gold); font-family: var(--font-heading); font-style: italic; font-size: 1rem; }

/* ── Trust strip ─────────────────────────────────────────────────────── */
.trust-strip { background: var(--panel-2); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0 auto; padding-top: 14px; padding-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.trust { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; letter-spacing: .01em; }
.trust svg { flex: none; color: var(--gold); }

/* ── Campaign: the goal thermometer ──────────────────────────────────── */
.campaign-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 26px 20px 22px; box-shadow: 0 30px 70px -50px rgba(0, 0, 0, .9);
}
.campaign-card .h2 { margin-bottom: 10px; }
.campaign-blurb { max-width: 62ch; color: var(--muted); margin: 0 0 22px; font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 1.08rem; }
.thermo { margin: 46px 0 0; }
.progress { position: relative; height: 12px; background: rgba(255, 255, 255, .07); border-radius: 999px; border: 1px solid var(--line-2); }
.thermo-track { height: 20px; overflow: visible; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45); }
.progress-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 999px; transition: width 1.2s var(--ease); box-shadow: 0 0 18px -4px rgba(199, 164, 106, .8); }
.thermo-marker {
  /* the marker follows the fill but never leaves the track: clamped 30px in from either end */
  --pct: 0%;
  position: absolute; top: -34px; inset-inline-start: clamp(30px, var(--pct), calc(100% - 30px)); transform: translateX(-50%);
  background: var(--gold); color: var(--gold-ink); font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; transition: inset-inline-start 1.2s var(--ease);
}
html[dir="rtl"] .thermo-marker { transform: translateX(50%); }
.thermo-marker::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: var(--gold); transform: translateX(-50%) rotate(45deg); border-radius: 1px; }
.thermo-ticks { list-style: none; margin: 6px 0 0; padding: 0; position: relative; height: 22px; }
.thermo-ticks li { position: absolute; top: 0; inset-inline-start: var(--at); transform: translateX(-50%); font-family: var(--font-display); font-size: .66rem; letter-spacing: .08em; color: var(--dim); }
html[dir="rtl"] .thermo-ticks li { transform: translateX(50%); }
.thermo-ticks li::before { content: ""; display: block; width: 1px; height: 6px; background: var(--gold-line); margin: 0 auto 3px; }
.thermo-ticks li:last-child { transform: translateX(-100%); }
html[dir="rtl"] .thermo-ticks li:last-child { transform: translateX(100%); }
.progress-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; font-size: .95rem; color: var(--ink); }
.progress-legend .num { font-family: var(--font-display); font-weight: 600; color: var(--gold); }
.thermo-k { color: var(--muted); }
.thermo-sep { color: var(--gold-line); margin: 0 4px; }
.thermo-zero { margin: 12px 0 0; font-family: var(--font-heading); font-style: italic; font-size: 1.08rem; color: var(--gold-bright); }

/* share rows */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; }
.share-label { font-family: var(--font-display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-inline-end: 6px; }
.share {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: transparent; color: var(--ink); font-size: .9rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.share:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-bright); transform: var(--lift); }
.band .share { color: var(--ink); }
.band .share:hover { color: var(--gold-bright); }

/* ── How to give: three guided steps ─────────────────────────────────── */
.flow { display: grid; gap: 30px; }
.flow-step { position: relative; }
.flow-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.flow-head .h3 { margin: 0; font-size: 1.3rem; }
.flow-n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); background: var(--panel-2);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.flow-sub { color: var(--muted); max-width: 62ch; margin: -4px 0 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.tab {
  flex: 1 1 calc(50% - 8px); min-width: 0; min-height: 46px; padding: 8px 12px;
  background: transparent; border: 1px solid var(--gold-line); border-radius: 999px; cursor: pointer;
  font-weight: 600; letter-spacing: .04em; color: var(--gold); text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.2;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.tab small { font-weight: 400; letter-spacing: 0; font-size: .74rem; color: var(--muted); }
.tab:hover { border-color: var(--gold); background: var(--gold-soft); transform: var(--lift); }
.tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.tab[aria-selected="true"] small { color: rgba(22, 16, 6, .7); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 8px; }
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.copy-field { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
/* the address is a block, not an input: on a phone it WRAPS instead of overflowing */
.address {
  flex: 1 1 220px; min-width: 0; display: block; padding: 12px 12px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--ink); font-family: var(--font-mono);
  font-size: .82rem; line-height: 1.5; letter-spacing: .01em; overflow-wrap: anywhere; word-break: break-all; white-space: normal;
  cursor: text; user-select: all; -webkit-user-select: all;
}
.address:empty::before { content: attr(data-placeholder); color: var(--dim); user-select: none; }
.address:focus { border-color: var(--gold); outline: none; }
.copy-field .btn-copy { flex: 0 0 auto; }
.warn { font-size: .9rem; color: var(--muted); margin: 12px 0 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--gold); }
.explorer-link { display: inline-block; margin-top: 12px; font-size: .92rem; color: var(--gold); }
/* the QR keeps a small white tile with a gold hairline — a code on navy does not scan */
.qr { margin: 0; text-align: center; justify-self: center; }
.qr-btn { display: block; margin: 0 auto; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 12px; transition: transform .18s var(--ease); }
.qr-btn:hover { transform: var(--lift); }
.qr img { display: block; width: 184px; height: 184px; background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--gold); margin: 0 auto; box-shadow: 0 16px 40px -24px rgba(199, 164, 106, .8); }
.qr figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.qr-hint { color: var(--gold); }
/* the three lines from the site settings sit under the address as a quiet check-list */
.steps { list-style: none; margin: 22px 0 12px; padding: 0; display: grid; gap: 10px; }
.steps li { position: relative; padding-inline-start: 26px; color: var(--muted); }
.steps li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 8px; height: 8px;
  border: 1px solid var(--gold); transform: rotate(45deg); background: var(--gold-soft);
}
.steps strong { color: var(--ink); font-weight: 600; margin-inline-end: 4px; }
.steps span:empty { display: none; }

/* ── Claim form ──────────────────────────────────────────────────────── */
.claim { margin-top: 18px; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.claim-promise { color: var(--muted); margin: 0 0 20px; font-style: italic; font-family: var(--font-heading); font-weight: 400; font-size: 1.05rem; }
.hp { position: absolute !important; inset-inline-start: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .opt, .field .req { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.counter-small { align-self: flex-end; font-size: .8rem; color: var(--dim); }
.consent { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.claim-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── Where it goes ───────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: 22px 20px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: var(--lift); border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line); }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); margin-bottom: 14px; border: 1px solid var(--gold-line); }
.card p { margin: 0; color: var(--muted); }
.alloc { margin: 26px 0 0; }
.alloc-label { color: var(--gold); }
.alloc-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); }
.alloc-seg { display: block; height: 100%; transition: width 1s var(--ease); }
.alloc-meals { background: var(--gold); }
.alloc-water { background: rgba(199, 164, 106, .62); }
.alloc-winter { background: rgba(199, 164, 106, .32); }
.alloc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: .92rem; color: var(--muted); }
.alloc-key { display: inline-flex; align-items: center; gap: 8px; }
.alloc-key::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); flex: none; }
.alloc-key-water::before { background: rgba(199, 164, 106, .62); }
.alloc-key-winter::before { background: rgba(199, 164, 106, .32); }
.alloc-key .num { color: var(--ink); font-weight: 600; }
.where-note { margin: 20px 0 0; font-size: .92rem; color: var(--dim); }

/* ── Founder note ────────────────────────────────────────────────────── */
.founder { background: var(--panel-2); }
.founder-grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.founder-figure { margin: 0; }
.founder-figure img { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--gold-line); }
.founder-quote { margin: 0; position: relative; padding-inline-start: 34px; }
.founder-quote::before { content: "\201C"; position: absolute; inset-inline-start: -8px; top: 26px; font-family: var(--font-heading); font-size: 5.5rem; line-height: 1; color: var(--gold); opacity: .8; }
html[dir="rtl"] .founder-quote::before { content: "\201D"; }
.founder-text { margin: 0 0 14px; font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem); line-height: 1.4; color: var(--ink); max-width: 30ch; text-wrap: balance; }
.founder-line { font-family: var(--font-display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ── Ledger ──────────────────────────────────────────────────────────── */
/* the recent-gifts ticker: a thin gold-lined strip, hidden when the ledger is empty */
.gifts-ticker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 30px; padding: 8px 14px;
  border: 1px solid var(--gold-line); border-radius: 999px; background: var(--panel-2); overflow: hidden;
}
.ticker-label { flex: none; font-family: var(--font-display); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ticker-clip { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; width: max-content; animation: ticker 40s linear infinite; }
html[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
.gifts-ticker:hover .ticker-track, .gifts-ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ticker-track li { white-space: nowrap; font-size: .92rem; color: var(--muted); }
.ticker-track li .num { color: var(--gold); font-weight: 600; }
.ticker-track li .who { color: var(--ink); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.ledger-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.ledger-table th, .ledger-table td { padding: 11px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.ledger-table th { font-family: var(--font-display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--gold-line); }
.ledger-table td.num-col, .ledger-table th.num-col { text-align: end; }
.ledger-table td.num-col { font-weight: 600; color: var(--ink); }
.ledger-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-table .from { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.ledger-table .anon { color: var(--muted); font-style: italic; }
.tx { font-family: var(--font-mono); font-size: .85rem; }
.tx a { color: var(--gold); text-decoration-color: var(--gold-line); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; border: 1px solid transparent; }
.badge-verified { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.badge-pending { background: rgba(134, 149, 173, .12); color: var(--muted); border-color: var(--line-2); }
.badge-manual { background: var(--ok-soft); color: var(--ok); border-color: rgba(52, 211, 166, .3); }
.ledger-foot { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 14px; }

/* ── Updates ─────────────────────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: 1fr; gap: 18px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.post:hover { border-color: var(--gold-line); transform: var(--lift); }
.post img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel-2); }
.post-body { padding: 18px 20px 20px; }
.post time { font-family: var(--font-display); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.post p { margin: 0; color: var(--muted); white-space: pre-line; }

/* ── Supporters wall ─────────────────────────────────────────────────── */
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.wall li {
  position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; padding-inline-start: 74px; min-height: 84px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.wall li:hover { transform: var(--lift); border-color: var(--gold-line); }
.wall .initial {
  position: absolute; inset-inline-start: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.wall .name { font-family: var(--font-heading); font-weight: 600; display: block; margin-bottom: 4px; color: var(--ink); }
.wall .msg { color: var(--muted); margin: 0; font-family: var(--font-heading); font-style: italic; font-weight: 400; font-size: 1.05rem; }
.wall .when { display: block; margin-top: 8px; font-family: var(--font-display); font-size: .68rem; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; }
.wall-cta-row { margin: 22px 0 0; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 8px; max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 0 18px; transition: border-color .18s var(--ease); }
.faq-item:hover, .faq-item[open] { border-color: var(--gold-line); }
.faq-item summary { cursor: pointer; padding: 15px 0; font-weight: 600; font-family: var(--font-heading); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-inline-end: 4px;
  /* physical right + bottom edges: the rotation is physical too, so the chevron
   * points DOWN on /ar as well (an inline-end edge flips to a "back" arrow in RTL) */
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item p { margin: 0 0 16px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.band-bottom { padding: 44px 0 24px; border-top: 2px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); }
.registration { font-size: .9rem; color: var(--muted); }
.registration:empty { display: none; }
.footer-h { color: var(--gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; margin-bottom: 10px; }
.footer-contact p, .footer-links p { margin: 6px 0; }
.footer-links a, .footer-contact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-line); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-bright); text-decoration-color: var(--gold); }
.contact-empty { color: var(--muted); font-size: .92rem; }
.footer-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--gold-line); }
.build { font-family: var(--font-mono); font-size: .72rem; color: var(--dim); margin-inline-start: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block; vertical-align: bottom; }

/* ── Sticky give bar (phones only; the min-width query below removes it) ─ */
.sticky-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 15, 26, 0), rgba(10, 15, 26, .96) 40%); pointer-events: none;
}
.sticky-btn { width: 100%; pointer-events: auto; box-shadow: 0 -6px 30px -10px rgba(0, 0, 0, .8), 0 10px 26px -14px rgba(199, 164, 106, .75); }
.sticky-chip { padding: 2px 10px; border-radius: 999px; background: rgba(22, 16, 6, .16); font-family: var(--font-display); font-weight: 600; }
.sticky-chip::after { content: " USDT"; font-family: var(--font-body); font-weight: 600; }

/* ── QR modal ────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 15, .82); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; width: min(100%, 420px); background: var(--panel); border: 1px solid var(--gold-line); border-radius: 16px;
  padding: 22px 20px 20px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1); text-align: center;
}
.modal-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--gold); border-color: var(--gold); }
.modal-qr { display: block; width: min(100%, 280px); height: auto; aspect-ratio: 1; margin: 6px auto 16px; background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--gold); }
.modal-address { display: block; font-family: var(--font-mono); font-size: 1rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; word-break: break-all; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); user-select: all; -webkit-user-select: all; text-align: start; }
.modal-actions { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ── Larger screens ──────────────────────────────────────────────────── */
@media (min-width: 560px) {
  .band-top { position: sticky; top: 0; }
  .header-nav > a:not(.btn) { display: inline-block; }
  .tab { flex: 1 1 0; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .claim-actions { flex-direction: row; align-items: center; gap: 16px; }
  .wall { grid-template-columns: 1fr 1fr; }
  .hero-figure { inset-inline-end: -14vw; top: -10vw; width: 70vw; }
  .trust-list { flex-direction: row; justify-content: space-between; gap: 16px; }
  .founder-grid { grid-template-columns: minmax(0, 320px) 1fr; }
  .founder-grid:has(.founder-figure[hidden]) { grid-template-columns: 1fr; }
}
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  section { padding: 76px 0; }
  .hero { padding-top: 76px; padding-bottom: 64px; }
  .hero-figure { inset-inline-end: -6vw; top: -60px; width: 46vw; }
  .hero-title { margin-bottom: 22px; }
  .counter { grid-template-columns: repeat(4, 1fr); }
  .panel { padding: 26px 26px 12px; }
  .panel-grid { grid-template-columns: 1fr auto; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .posts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .claim { padding: 30px 30px; }
  .campaign-card { padding: 34px 34px 30px; }
  .flow { gap: 38px; }
  .address { font-size: .9rem; }
  .calc { padding: 22px 22px 18px; }
  .trust-list { padding-top: 16px; padding-bottom: 16px; }
  .founder-grid { gap: 40px; }
}
@media (min-width: 761px) {
  /* the sticky give bar is for phones (≤ 760px); wider screens keep the header's Donate */
  .sticky-bar { display: none !important; }
}
@media (min-width: 1000px) {
  .wall { grid-template-columns: repeat(3, 1fr); }
  .hero-figure { inset-inline-end: calc((100vw - var(--wrap)) / 2 - 120px); top: -80px; width: 640px; }
}

/* ── Motion ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn-shimmer::after, .stat-pulse::after { animation: none !important; display: none; }
  .ticker-track { animation: none !important; }
  .ticker-clip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hero-gems { display: none; }
  .eyebrow { opacity: 1; transform: none; }
}
@media print {
  .band-top, .btn, .claim, .lang-switch, .hero-figure, .hero-gems, .sticky-bar, .modal, .gifts-ticker { display: none !important; }
  body { background: #fff; color: #000; }
}
/* door3 (SEC 12): when the donation address last changed, next to its QR */
.addr-changed { margin: 6px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
