/* MA'EEN support site — colours and type taken from the app (res/values/colors.xml, Noto Naskh Arabic). */

@font-face {
  font-family: "Maeen Naskh";
  src: url("/fonts/naskh-arabic.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC;
}

:root {
  --paper: #f7f3e9;
  --paper-2: #f3ead8;
  --card: #fffcf5;
  --card-2: #fbf6e9;
  --field: #fffefa;
  --line: #e7e2d6;
  --line-2: #ddd3bc;
  --ink: #1d2925;
  --ink-2: #46554e;
  --muted: #5d695f;
  --green: #19564a;
  --green-ink: #163f35;
  --green-deep: #103d34;
  --green-soft: #e4eee7;
  --heading: #163f35;
  --hero-text: #fff8e8;
  --gold: #b7a173;
  --gold-ink: #756443;
  --gold-soft: #eee7d7;
  --gold-grad: linear-gradient(135deg, #ddb052 0%, #bf8d2c 50%, #d4a245 100%);
  --danger: #a23b2a;
  --danger-soft: #fbeae6;
  --shadow-sm: 0 1px 2px rgba(22, 63, 53, 0.06);
  --shadow: 0 1px 2px rgba(22, 63, 53, 0.05), 0 10px 30px -12px rgba(22, 63, 53, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(16, 61, 52, 0.45);
  --radius: 24px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Maeen Naskh", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
  --font-latin: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C9A14A' stroke-width='1'%3E%3Crect x='24' y='24' width='32' height='32'/%3E%3Cpath d='M40 17.4 62.6 40 40 62.6 17.4 40z'/%3E%3Cpath d='M40 0v17.4M40 62.6V80M0 40h17.4M62.6 40H80'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1915;
    --paper-2: #13211c;
    --card: #15241e;
    --card-2: #192b24;
    --field: #102019;
    --line: #243830;
    --line-2: #2f473c;
    --ink: #e7f0e9;
    --ink-2: #b6c9c0;
    --muted: #9fb3a9;
    --green: #8dd6ba;
    --green-soft: #1d362d;
    --heading: #e7f0e9;
    --gold: #c3aa6a;
    --gold-ink: #dcc48f;
    --gold-soft: #2a281c;
    --danger: #ffb4a9;
    --danger-soft: #3a1f1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.95 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-latin);
  line-height: 1.65;
}

html.i18n-pending body > :not(.gate) {
  opacity: 0;
}

body > * {
  transition: opacity 0.2s ease;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 10px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.5;
  font-weight: 700;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
  font-family: var(--font-serif);
  line-height: 1.25;
}

p {
  margin: 0;
}

.icon {
  display: inline-flex;
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.muted {
  color: var(--muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sr-copy {
  position: fixed;
  top: -1000px;
  opacity: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--green-ink);
  color: var(--hero-text);
}

.skip:focus {
  top: 12px;
}

/* ---------- banner ---------- */

.banner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px var(--gutter);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.banner[data-kind="demo"] {
  background: #f3e2b5;
  color: #4a3b12;
}

.banner[data-kind="danger"] {
  background: #a23b2a;
  color: #fff;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  margin-inline-end: auto;
}

.brand img {
  height: 38px;
  width: auto;
  display: block;
}

.topnav {
  display: flex;
  gap: 4px;
}

.topnav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 16px;
}

.topnav a:hover {
  background: var(--green-soft);
  color: var(--green-ink);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--gold);
}

.lang-btn .icon {
  color: var(--gold-ink);
}

@media (max-width: 760px) {
  .topnav {
    display: none;
  }
}

/* ---------- layout ---------- */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  margin-top: clamp(56px, 9vw, 96px);
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 3.6vw, 32px);
  color: var(--heading);
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 10px;
  margin: 12px auto 0;
  background:
    radial-gradient(circle at center, var(--gold) 0 3px, transparent 3.5px) center / 10px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / 28px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 28px 1.5px no-repeat;
  opacity: 0.9;
}

.section-lead {
  max-width: 62ch;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.btn-primary {
  background: var(--green-ink);
  color: var(--hero-text);
  box-shadow: 0 10px 24px -14px rgba(22, 63, 53, 0.9);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: #2f7a64;
  }
}

.btn-gold {
  background: var(--gold-grad);
  color: #1f2a1f;
  box-shadow: 0 12px 28px -14px rgba(191, 141, 44, 0.9);
}

.btn-glass {
  background: rgba(255, 248, 232, 0.08);
  color: var(--hero-text);
  border-color: rgba(221, 176, 82, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--green);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- hero ---------- */

.hero {
  margin-top: clamp(16px, 3vw, 28px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: clamp(26px, 4vw, 36px);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(221, 176, 82, 0.18), transparent 60%),
    linear-gradient(160deg, #19564a 0%, #163f35 48%, #0f3029 100%);
  color: var(--hero-text);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-card::before,
.wall-card::before,
.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-size: 80px 80px;
  background-position: center;
  opacity: 0.13;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(90% 80% at 50% 40%, #000 30%, transparent 85%);
}

.hero-mark {
  width: clamp(150px, 26vw, 230px);
  margin: 0 auto 8px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #e7c77f;
  font-size: 16px;
}

html[lang="en"] .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(32px, 6.2vw, 54px);
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero .lead {
  max-width: 44ch;
  margin: 0 auto 18px;
  font-size: clamp(17px, 2.2vw, 20px);
  opacity: 0.92;
}

.free {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.08);
  border: 1px solid rgba(221, 176, 82, 0.35);
  font-size: 15.5px;
  line-height: 1.6;
}

.free .icon {
  color: #e7c77f;
}

/* ---------- why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

@media (max-width: 1020px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.why-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-size: 20px;
  color: var(--heading);
  margin-bottom: 4px;
}

.why-card p {
  color: var(--ink-2);
  font-size: 16px;
}

.why-card.goal {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, var(--card) 0%, var(--gold-soft) 140%);
}

.why-card.goal .why-icon {
  background: var(--gold-grad);
  color: #1f2a1f;
}

.goal-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
}

/* ---------- how (stepper) ---------- */

.stepper {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: step;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 26px;
  inset-inline: 16.6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px);
  opacity: 0.6;
}

.stepper a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-ink);
  color: var(--hero-text);
  font-size: 22px;
  box-shadow: 0 0 0 6px var(--paper);
}

@media (max-width: 560px) {
  .stepper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stepper::before {
    top: 27px;
    bottom: 27px;
    inset-inline-start: 26px;
    inset-inline-end: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 14px);
  }

  .stepper a {
    flex-direction: row;
    text-align: start;
    gap: 16px;
  }
}

/* ---------- flow steps ---------- */

.flow-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.flow-head h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  color: var(--heading);
}

.flow-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #1f2a1f;
  font-weight: 700;
  font-size: 21px;
  box-shadow: 0 8px 18px -10px rgba(191, 141, 44, 0.9);
}

/* ---------- methods ---------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 940px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.method:hover:not([disabled]) {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.method.chosen {
  border: 2px solid var(--green);
  background: color-mix(in srgb, var(--green-soft) 55%, var(--card));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent), var(--shadow);
}

.method[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.method-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
}

.method-icon .icon {
  width: 28px;
  height: 28px;
}

/* Provider marks: each tile looks like the provider so supporters recognise it. */
.method-icon.brand-hesabpay {
  background: #0b0b0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.method-icon.brand-paypal {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e3e8f1;
}

.method-icon.brand-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.method-icon img {
  width: 30px;
  height: 30px;
}

.brand-word {
  display: block;
  height: 26px;
  width: auto;
  margin: 3px 0 2px;
}

[data-lang] .method-hesabpay .method-name,
[data-lang] .fields-head .brand-hesabpay + h3 {
  font-family: var(--font-latin);
  letter-spacing: -0.01em;
}

.method-paypal:hover:not([disabled]) {
  border-color: #0070e0;
}

.method-whatsapp:hover:not([disabled]) {
  border-color: #25d366;
}

.btn-paypal {
  background: #0070e0;
  color: #ffffff;
  box-shadow: 0 10px 24px -14px rgba(0, 48, 135, 0.9);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  margin-top: 16px;
  box-shadow: 0 10px 24px -14px rgba(37, 211, 102, 0.9);
}

.btn-whatsapp .icon {
  width: 1.3em;
  height: 1.3em;
}

@media (prefers-color-scheme: dark) {
  .brand-word {
    background: #ffffff;
    border-radius: 8px;
    padding: 4px 8px;
    height: 34px;
  }
}

.method-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.method-name {
  display: flex;
  flex-direction: column;
  padding-inline-end: 30px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.method-local {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--muted);
}

.method-desc {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.method-badge {
  align-self: flex-start;
  margin-top: 6px;
  padding: 1px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.method-check {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--card);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.method-check .icon {
  width: 18px;
  height: 18px;
}

.method.chosen .method-check {
  opacity: 1;
  transform: scale(1);
}

/* ---------- details ---------- */

.details-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-2);
  color: var(--muted);
}

.details-empty .icon {
  color: var(--gold);
}

.details-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: start;
  animation: rise 0.35s ease both;
}

@media (max-width: 860px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

.fields-card,
.guide-card {
  padding: clamp(18px, 3vw, 28px);
}

.fields-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.fields-head h3 {
  font-size: 21px;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.fields-head small {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label label" "value copy";
  align-items: center;
  gap: 2px 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line-2);
}

.field-label {
  grid-area: label;
  font-size: 14.5px;
  color: var(--muted);
}

.field-value {
  grid-area: value;
  min-width: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.field-value.mono {
  font-family: var(--mono);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-align: start;
  unicode-bidi: isolate;
}

/* Values keep their own direction (Latin names, numbers) but line up under their label. */
html[dir="rtl"] .field-value {
  text-align: right;
}

html[dir="ltr"] .field-value {
  text-align: left;
}

.copy-btn {
  grid-area: copy;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: var(--green-soft);
}

.copy-btn.done {
  background: var(--green);
  color: var(--card);
}

.copy-btn .icon {
  width: 18px;
  height: 18px;
}

.copy-all {
  margin-top: 14px;
}

.fields-card .btn-primary {
  margin-top: 16px;
}

.qr {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14.5px;
}

.qr img {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

.howto {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.howto li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16.5px;
  line-height: 1.8;
}

.howto-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 15px;
}

.callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 15px;
  line-height: 1.75;
}

.callout .icon {
  margin-top: 4px;
}

/* ---------- form ---------- */

.form {
  max-width: 760px;
  padding: clamp(20px, 4vw, 36px);
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend,
.field .label {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  padding: 0;
}

.field legend {
  margin-bottom: 8px;
}

.req,
.opt {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1.8;
}

.req {
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.opt {
  background: var(--green-soft);
  color: var(--green);
}

input[type="text"],
textarea,
select {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.6;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 44px;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.hint {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.counter {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
}

.error {
  color: var(--danger);
  font-size: 15px;
  font-weight: 700;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 460px) {
  .choice-row {
    grid-template-columns: 1fr;
  }
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line-2);
  background: var(--field);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.5;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--card);
  transition: all 0.15s ease;
}

.choice input:checked + .choice-box {
  border: 2px solid var(--green);
  background: color-mix(in srgb, var(--green-soft) 70%, var(--card));
}

.choice input:checked + .choice-box .choice-mark {
  border-color: var(--green);
  background: radial-gradient(circle, var(--green) 0 5px, var(--card) 5.5px);
}

.choice input:focus-visible + .choice-box {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.note.is-no {
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 18px;
  border-radius: 18px;
  border: 2px dashed color-mix(in srgb, var(--gold) 75%, transparent);
  background: color-mix(in srgb, var(--gold-soft) 45%, var(--field));
  text-align: center;
  cursor: pointer;
  font-weight: 400 !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dropzone:hover,
.dropzone.over {
  border-color: var(--green);
  background: var(--green-soft);
}

#f-file:focus-visible + .dropzone {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  color: var(--gold-ink);
  box-shadow: var(--shadow-sm);
}

.drop-icon svg {
  width: 28px;
  height: 28px;
}

.drop-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--green);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1.5px solid var(--line-2);
  background: var(--field);
  flex-wrap: wrap;
}

.thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.thumb-file {
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  background: var(--gold-soft);
}

.thumb-file .icon {
  width: 34px;
  height: 34px;
}

.file-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.6;
}

.file-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-actions {
  display: flex;
  gap: 8px;
}

.field .file-actions .btn {
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.3;
}

.turnstile:empty {
  display: none;
}

.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.privacy-note .icon {
  margin-top: 3px;
  color: var(--green);
}

.form-error {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 700;
  font-size: 15.5px;
}

.form-error .icon {
  margin-top: 4px;
}

#submit-btn {
  min-height: 58px;
  font-size: 18.5px;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-top: -12px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-grad);
  transition: width 0.2s ease;
}

.alt-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}

.success {
  max-width: 760px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  animation: rise 0.35s ease both;
}

.success:focus {
  outline: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--green-ink);
  box-shadow: 0 14px 30px -14px rgba(191, 141, 44, 0.9);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.success-mark svg {
  width: 40px;
  height: 40px;
}

.success h3 {
  font-size: clamp(24px, 4vw, 30px);
  color: var(--heading);
}

.success p {
  max-width: 52ch;
  color: var(--ink-2);
}

.ref bdi {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--gold-soft);
}

.cta-row.center {
  margin-top: 10px;
}

/* ---------- supporters ---------- */

.wall-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 6vw, 60px) clamp(18px, 5vw, 56px);
  border-radius: clamp(26px, 4vw, 36px);
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(221, 176, 82, 0.16), transparent 60%),
    linear-gradient(170deg, #163f35 0%, #0f2c25 100%);
  color: var(--hero-text);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.wall-card h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.wall-lead {
  max-width: 50ch;
  margin: 6px auto 0;
  opacity: 0.85;
}

.wall-count {
  margin-top: 14px;
  color: #e7c77f;
  font-size: 19px;
  font-weight: 700;
  min-height: 1.6em;
}

.mini-roll {
  position: relative;
  height: 280px;
  margin: 18px auto 10px;
  max-width: 560px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.mini-roll.static,
.mini-roll.empty {
  height: auto;
  max-height: 280px;
  overflow: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.mini-roll:hover .mini-track {
  animation-play-state: paused !important;
}

.mini-track {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-name {
  display: block;
  padding: 7px 0;
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.6;
}

.mini-name::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 10px auto 0;
  transform: rotate(45deg);
  background: rgba(221, 176, 82, 0.55);
}

.mini-empty {
  padding: 32px 0;
  opacity: 0.9;
}

.wall-hidden {
  margin-bottom: 18px;
  opacity: 0.8;
  font-size: 15.5px;
}

.wall-card .btn {
  margin-top: 8px;
}

@keyframes mini-roll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

/* ---------- safety ---------- */

.safety {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--gold-ink);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.safety-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card);
  color: var(--gold-ink);
}

.safety-icon svg {
  width: 26px;
  height: 26px;
}

.safety h2 {
  font-size: 19px;
  margin-bottom: 4px;
}

.safety p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.safety .host {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
}

/* ---------- footer ---------- */

.footer {
  max-width: 1120px;
  margin: clamp(56px, 9vw, 96px) auto 0;
  padding: 36px var(--gutter) 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 8px;
  justify-items: center;
}

.footer-logo {
  width: 120px;
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--ink);
  font-size: 18px;
}

.footer-optional {
  max-width: 60ch;
  font-size: 14.5px;
}

.footer-links {
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.footer-copy {
  font-size: 13.5px;
}

/* ---------- language gate ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  isolation: isolate;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(221, 176, 82, 0.2), transparent 70%),
    var(--paper);
  animation: fade 0.25s ease both;
}

.gate[hidden] {
  display: none;
}

.gate::before {
  opacity: 0.2;
}

.gate-card {
  width: min(520px, 100%);
  padding: clamp(24px, 6vw, 40px);
  border-radius: 32px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: rise 0.35s ease both;
}

.gate-logo {
  width: 170px;
  margin: 0 auto 10px;
  display: block;
}

.gate-title {
  display: grid;
  gap: 2px;
  margin-bottom: 22px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.7;
}

.gate-rtl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 12px;
  font-family: var(--font);
}

.gate-rtl span + span::before {
  content: "·";
  margin-inline-end: 12px;
  color: var(--gold);
}

.gate-ltr {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.gate-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 340px) {
  .gate-options {
    grid-template-columns: 1fr;
  }
}

.gate-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 88px;
  padding: 10px;
  border-radius: 20px;
  border: 1.5px solid var(--line-2);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.gate-option:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gate-option.suggested {
  border: 2px solid var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent);
}

.gate-big {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
  font-family: var(--font);
}

.gate-option[data-choose="en"] .gate-big {
  font-family: var(--font-serif);
}

.gate-small {
  font-size: 13.5px;
  color: var(--muted);
  font-family: var(--font-latin);
}

.gate-small[lang="ar"] {
  font-family: var(--font);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--green-ink);
  color: var(--hero-text);
  font-size: 15.5px;
  line-height: 1.6;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast .icon {
  color: #e7c77f;
}

.noscript {
  padding: 16px;
  text-align: center;
  background: var(--gold-soft);
}

.notfound {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
}

.notfound img {
  width: 160px;
}

.notfound h1 {
  font-size: 56px;
  color: var(--gold);
}

.notfound .btn {
  margin-top: 16px;
}

/* ---------- motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- official seal (shows the real address, so copies on other domains stand out) ---------- */

.seal {
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.seal-hero {
  position: absolute;
  top: clamp(12px, 2.5vw, 22px);
  inset-inline-start: clamp(12px, 2.5vw, 22px);
  width: clamp(62px, 11vw, 104px);
  animation: seal-turn 60s linear infinite;
}

.seal-safety {
  flex: none;
  width: clamp(84px, 14vw, 120px);
}

.seal-note {
  margin-top: 8px;
  font-weight: 700;
  color: var(--gold-ink) !important;
}

@keyframes seal-turn {
  to {
    transform: rotate(360deg);
  }
}

/* supporters right under the hero: a little tighter */
.hero + .wall {
  margin-top: clamp(28px, 5vw, 48px);
}
