

:root {
  --bg: #f2f2f2;
  --page: #f5f3f4;
  --surface: rgba(255,255,255,0.72);
  --surface-strong: rgba(255,255,255,0.88);
  --surface-solid: #fbf9fa;
  --surface-soft: rgba(255,255,255,0.58);
  --text: #2f6873;
  --text-dark: #245f69;
  --muted: #6c728d;
  --muted-2: #8b90a7;
  --line: rgba(74, 93, 126, 0.08);
  --line-strong: rgba(74, 93, 126, 0.14);
  --teal: #88d9cf;
  --teal-deep: #2f6f78;
  --teal-soft: #d7f2ee;
  --purple: #a55cf0;
  --purple-soft: #eadbff;
  --coral: #f48b93;
  --coral-2: #ff8b97;
  --cta: linear-gradient(90deg, #f48591 0%, #f28ca0 26%, #d577d8 70%, #9a62e5 100%);
  --track: #dcdceb;
  --shadow: 0 18px 48px rgba(118, 123, 151, 0.10);
  --shadow-soft: 0 10px 24px rgba(118, 123, 151, 0.08);
  --radius: 28px;
  --radius-lg: 34px;
  --radius-sm: 18px;
  --max-width: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(ellipse at 84% 22%, rgba(196, 149, 245, 0.10), transparent 26%),
    radial-gradient(ellipse at 12% 72%, rgba(242, 191, 220, 0.08), transparent 28%),
    linear-gradient(180deg, #f2f2f2 0%, #f3f1f2 100%);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
input, textarea { color: var(--text-dark); }

.page-shell {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 36px auto 64px;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0.62));
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: 0 24px 70px rgba(143, 140, 158, 0.12);
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  inset: 94px auto auto -260px;
  width: 1100px;
  height: 600px;
  background:
    radial-gradient(ellipse at 16% 58%, rgba(248, 164, 199, 0.26), transparent 46%),
    radial-gradient(ellipse at 44% 66%, rgba(183, 238, 231, 0.30), transparent 40%),
    radial-gradient(ellipse at 68% 76%, rgba(196, 223, 255, 0.24), transparent 33%),
    radial-gradient(ellipse at 88% 84%, rgba(173, 127, 242, 0.26), transparent 26%),
    radial-gradient(ellipse at 96% 88%, rgba(207, 164, 250, 0.22), transparent 22%);
  filter: blur(0.5px);
  border-bottom-left-radius: 420px;
  border-bottom-right-radius: 420px;
  animation: purpleSweepLeft 16s ease-in-out infinite alternate;
}

.page-shell::after {
  inset: 120px -150px auto auto;
  width: 840px;
  height: 620px;
  background:
    radial-gradient(ellipse at 78% 34%, rgba(191, 133, 242, 0.28), transparent 52%),
    radial-gradient(ellipse at 88% 52%, rgba(221, 197, 255, 0.22), transparent 56%),
    radial-gradient(ellipse at 72% 72%, rgba(190, 151, 247, 0.20), transparent 40%),
    radial-gradient(ellipse at 44% 84%, rgba(173, 236, 228, 0.14), transparent 34%);
  animation: purpleSweepRight 14s ease-in-out infinite alternate;
}

.site-main,
.site-header,
main > section,
.modal-overlay { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 46px;
  background: rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(96, 104, 138, 0.08);
}

.logo-wrap {
  display: flex;
  align-items: center;
  min-width: 320px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 60px;
  height: auto;
  flex: 0 0 auto;
}

.logo-wordmark-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 2px;
}

.logo-wordmark {
  width: 150px;
  height: auto;
  display: block;
}

.logo-tagline {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #6c728d;
  white-space: nowrap;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-left: auto;
  margin-right: 32px;
}

.nav-links a {
  opacity: 0.96;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}
.nav-links a:hover { opacity: 1; color: var(--text-dark); transform: translateY(-1px); }

.section,
.section-tight {
  position: relative;
  padding-left: 46px;
  padding-right: 46px;
}
.section { padding-top: 34px; padding-bottom: 34px; }
.section-tight { padding-top: 12px; padding-bottom: 12px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 38px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 10px;
  min-height: 620px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;    /* starts exactly at the hero section, does NOT go behind the navbar */
  left: -50vw;
  right: -50vw;
  bottom: 0;
  background-image: url('/hero-bg.jpg');
  background-size: cover;
  background-position: center 20%;
  z-index: -2;
  /* Fade out at the bottom to blend into the white section below */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}
.hero::after {
  /* White gradient overlay to ensure text readability on the left */
  content: "";
  position: absolute;
  top: 0;
  left: -50vw;
  right: -50vw;
  bottom: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 40%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.card,
.hero-copy,
.hero-panel,
.modal,
.photo-card,
.story-visual,
.feature-panel,
.footer-cta,
.step-card,
.mini-card,
.draw-card,
.cause-card,
.trust-item,
.logic-card,
.cycle-highlight,
.success-panel,
.draw-rules-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.62));
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 0 0 0 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  min-height: 474px;
}

/* Removed old hero-copy pseudo-elements as background is now on .hero */

/* ── Stripe / SSL security badge ── */
.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #7f7b97;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.82;
}
.security-badge svg {
  color: #635bff; /* Stripe Blurple */
  flex-shrink: 0;
}
.security-badge-center {
  justify-content: center;
  margin-top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #438595 0%, #8bd9d0 100%);
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 20px rgba(121, 181, 190, 0.18);
}
.hero-eyebrow { margin-top: 2px; }

.hero h1 {
  margin: 28px 0 26px;
  max-width: 640px;
  font-size: clamp(54px, 5.3vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 500;
  color: #316b75;
}

.hero-subcopy,
p,
li,
.step-subtext {
  color: #70718a;
  line-height: 1.45;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hero-subcopy {
  max-width: 650px;
  margin: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-microcopy,
.modal-context,
.mock-payment-note,
.inline-toggle,
.allocation-total,
.cycle-highlight-label,
.rules-list {
  color: #7f7b97;
  font-size: 18px;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, background 220ms ease;
  will-change: transform;
}
.button:hover { transform: translateY(-1px); filter: saturate(1.03); }
.button-primary {
  color: #fff6fb;
  background: var(--cta);
  box-shadow: 0 12px 28px rgba(204, 116, 196, 0.24);
}
.button-primary:hover { box-shadow: 0 16px 34px rgba(204, 116, 196, 0.28); }
.button-secondary {
  color: #7d68dd;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.68));
  border: 1px solid rgba(182, 167, 241, 0.32);
  box-shadow: 0 10px 22px rgba(145, 130, 205, 0.08);
}

.hero-panel {
  width: 100%;
  max-width: 462px;
  justify-self: end;
  padding: 30px 38px 26px;
  border-radius: 38px;
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  top: -44px;
  right: -34px;
  width: 210px;
  height: 170px;
  background: linear-gradient(135deg, rgba(255,255,255,0.42), rgba(255,255,255,0.10));
  border-radius: 0 0 0 180px;
}

.panel-topline,
.panel-list-title,
.stat-label,
.draw-kicker {
  letter-spacing: -0.02em;
  font-size: 22px;
  color: #666b88;
  font-weight: 500;
}
.panel-amount {
  margin-top: 16px;
  font-size: clamp(42px, 3.6vw, 58px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #316b75;
}

.progress-track {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #d9d9e8;
  border-radius: 999px;
}
.progress-large { height: 18px; margin: 24px 0 24px; }
.progress-small { height: 18px; margin-top: 18px; }
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #eb6bbc 0%, #b867ef 55%, #96d5df 100%);
  transition: width 600ms ease;
}

.panel-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 -6px;
}
.panel-stats > div,
.hero-cause-row,
.review-box,
.credit-summary {
  padding: 16px 6px;
  border-top: 1px solid rgba(123, 126, 154, 0.09);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.panel-stats strong {
  font-size: 24px;
  font-weight: 700;
  color: #316b75;
}
.stat-label { font-size: 18px; color: #4c546f; }
.panel-list-title { margin-top: 8px; }
.hero-cause-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
}
.hero-cause-row {
  padding: 14px 6px;
  color: #49516a;
  font-size: 18px;
  font-weight: 500;
}
.hero-cause-row strong {
  font-size: 18px;
  color: #6c7090;
  font-weight: 500;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 6px;
  margin-bottom: 14px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0.46));
  border: 1px solid rgba(255,255,255,0.40);
  box-shadow: 0 10px 22px rgba(128, 126, 150, 0.06);
}
.trust-item {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 18px;
  font-size: 20px;
  font-weight: 500;
  color: #3f475f;
  border-right: 1px solid rgba(123, 126, 154, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.trust-item:last-child { border-right: 0; }
.trust-item:hover,
.cause-card:hover,
.step-card:hover,
.mini-card:hover,
.draw-card:hover,
.feature-panel:hover,
.footer-cta:hover,
.story-visual:hover,
.logic-card:hover,
.cycle-highlight:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section-header { margin-bottom: 24px; }
.section-header h2,
.two-column h2,
.feature-panel h2,
.footer-cta h2,
.modal-header h2,
.cycle-highlight h3,
.success-panel h3 {
  margin: 14px 0 0;
  font-size: clamp(38px, 3.1vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: #316b75;
}
.split-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.section-sidecopy { max-width: 460px; color: #797890; }
.section-subcopy {
  max-width: 680px;
  margin: 14px 0 0;
  color: #797890;
  font-size: 20px;
  line-height: 1.45;
}

.steps-grid,
.transparency-grid,
.draw-grid,
.cause-grid,
.logic-grid {
  display: grid;
  gap: 20px;
}
.steps-grid,
.transparency-grid { grid-template-columns: repeat(4, 1fr); }
.cause-grid { grid-template-columns: repeat(3, 1fr); }
.logic-grid { grid-template-columns: repeat(3, 1fr); }
.draw-grid { grid-template-columns: 1fr 1fr; }
.draw-grid-single { grid-template-columns: 1fr; }

.step-card,
.mini-card,
.draw-card,
.feature-panel,
.footer-cta,
.story-visual,
.logic-card,
.cycle-highlight,
.success-panel,
.draw-rules-card {
  padding: 28px;
}
.step-card,
.mini-card,
.draw-card,
.feature-panel,
.footer-cta,
.cause-card,
.story-visual,
.logic-card,
.cycle-highlight,
.success-panel {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.step-number,
.logic-step {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--cta);
  margin-bottom: 22px;
  box-shadow: 0 12px 24px rgba(194, 119, 208, 0.18);
}
.step-card h3,
.mini-card h3,
.cause-card h3,
.draw-card h3,
.logic-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #366d77;
}

.cycle-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.cycle-highlight h3 {
  font-size: 34px;
}
.cycle-highlight p { margin: 8px 0 0; font-size: 18px; }
.cycle-highlight-stats {
  text-align: right;
  min-width: 160px;
}
.cycle-highlight-stats strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  color: #316b75;
}
.cycle-highlight-stats span { color: #7a7790; }

.cause-card { padding: 0; overflow: hidden; }
.cause-image {
  position: relative;
  height: 216px;
  overflow: hidden;
}
.cause-content { padding: 22px; }
.cause-image::after,
.story-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 15%, rgba(31,53,73,0.34) 100%);
}
.cause-image img,
.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}
.cause-card:hover .cause-image img,
.story-visual:hover img { transform: scale(1.03); }
.cause-card.is-leading {
  border-color: rgba(162, 111, 235, 0.45);
  box-shadow: 0 18px 38px rgba(167, 118, 224, 0.16);
}
.cause-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #666d85;
  font-size: 17px;
  font-weight: 600;
}
.cause-percentage {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(240, 230, 253, 0.76);
  color: #9a62e5;
}

.section-contrast { padding-top: 30px; padding-bottom: 34px; }
.section-contrast .two-column,
.feature-panel,
.footer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.story-visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 32px;
  padding: 0;
}
.story-visual-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
}
.story-visual-copy h3 {
  margin: 10px 0 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.photo-tag {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  font-size: 15px;
  font-weight: 600;
}

.draw-card-primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.48));
}

/* ── Contributor Reward Section ─────────────────────────────────────────────── */
.legal-microcopy {
  font-size: 11px;
  color: #8a8b9f;
  margin-top: 24px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.entry-methods-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entry-methods-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.entry-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(194, 119, 208, 0.12);
  color: #c277d0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.entry-methods-list strong {
  display: block;
  color: #316b75;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.entry-methods-list p {
  margin: 0;
  font-size: 14px;
  color: #70718a;
  line-height: 1.45;
}

.feature-panel,
.footer-cta,
.success-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.62));
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(186, 185, 197, 0.34);
  backdrop-filter: blur(10px);
  z-index: 40;
  padding: 16px;
}
.hidden { display: none !important; }
.modal {
  width: min(760px, 100%);
  border-radius: 34px;
  padding: 28px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.74));
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #636784;
  font-size: 1.6rem;
  box-shadow: 0 8px 16px rgba(123,126,154,0.08);
}
.flow-step { display: none; }
.flow-step.active { display: block; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 16px; }
.amount-option,
.allocation-row input,
#customAmount,
#dedicationName,
#dedicationMessage,
#otherCauseInput {
  min-height: 52px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(123,126,154,0.16);
  background: rgba(255,255,255,0.9);
  color: var(--text-dark);
  padding: 0 16px;
}
#dedicationMessage { min-height: 120px; padding: 14px 16px; resize: vertical; }
.amount-option { font-weight: 700; color: #5e6984; }
.amount-option.active {
  background: var(--cta);
  color: white;
  border-color: transparent;
}
.field-label,
.label { display: block; margin: 10px 0 8px; color: #4b556a; font-weight: 600; }
.allocation-list { display: grid; gap: 12px; margin-top: 14px; }
.allocation-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  align-items: center;
}
.allocation-row label {
  font-size: 17px;
  font-weight: 600;
  color: #476277;
}
.checkbox-row,
.toggle-wrap { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; }
.dedication-fields { display: grid; gap: 4px; }
.flow-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.review-box {
  display: block;
  border-radius: 22px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(123,126,154,0.10);
  padding: 18px;
}
.review-box p { margin: 0 0 10px; font-size: 18px; }
.review-box ul { margin: 10px 0; padding-left: 20px; }
.mock-payment-note { margin-top: 16px; }
.inline-toggle {
  background: transparent;
  color: #7d68dd;
  padding: 0;
  margin-top: 8px;
  text-align: left;
}
.success-panel {
  text-align: left;
  padding: 26px;
}
.success-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(137, 220, 206, 0.24);
  color: #2f6f78;
  font-weight: 700;
  margin-bottom: 12px;
}
.success-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.success-metric {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(123,126,154,0.08);
}
.success-metric span {
  display: block;
  color: #797890;
  margin-bottom: 8px;
}
.success-metric strong {
  font-size: 30px;
  color: #316b75;
}
.success-share-prompt {
  margin-top: 20px;
}

.success-share-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #316b75;
}

.success-share-copy {
  margin: 0;
  font-size: 17px;
  color: #7a7790;
}
.rules-list { margin: 12px 0 0 20px; }
.rules-list li { font-size: 18px; margin-bottom: 8px; }

@keyframes floatLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 12px 28px rgba(204, 116, 196, 0.24); }
  50% { box-shadow: 0 18px 40px rgba(204, 116, 196, 0.32); }
}
.hero-panel { animation: floatLift 8s ease-in-out infinite; }
.hero .button-primary:first-child,
.site-header .button-primary,
.header-hiw { animation: pulseGlow 5s ease-in-out infinite; }

@media (max-width: 1180px) {
  .nav-links { gap: 28px; margin-right: 18px; font-size: 17px; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { justify-self: start; max-width: 100%; }
  .steps-grid,
  .transparency-grid,
  .cause-grid,
  .logic-grid,
  .draw-grid,
  .section-contrast .two-column,
  .feature-panel,
  .footer-cta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 20px, var(--max-width)); margin: 14px auto 40px; }
  .site-header {
    flex-wrap: wrap;
    padding: 18px 18px 22px;
    justify-content: center;
  }
  .logo-wrap { justify-content: center; min-width: 0; }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 18px;
    margin: 0;
    font-size: 16px;
    flex-wrap: wrap;
  }
  .section,
  .section-tight { padding-left: 18px; padding-right: 18px; }
  .hero-copy { padding-left: 0; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-subcopy, p, li, .step-subtext { font-size: 18px; }
  .trust-strip,
  .steps-grid,
  .transparency-grid,
  .cause-grid,
  .amount-grid,
  .panel-stats,
  .logic-grid,
  .success-metrics { grid-template-columns: 1fr; }
  .trust-strip { gap: 0; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(123,126,154,0.12); }
  .trust-item:last-child { border-bottom: 0; }
  .split-header,
  .flow-footer,
  .hero-cta-row,
  .cycle-highlight { flex-direction: column; align-items: stretch; }
  .allocation-row { grid-template-columns: 1fr; }
  .story-visual { min-height: 320px; }
}

@keyframes purpleSweepRight {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.95; }
  50% { transform: translate3d(-18px, 10px, 0) scale(1.03); opacity: 1; }
  100% { transform: translate3d(8px, -10px, 0) scale(1.06); opacity: 0.98; }
}

@keyframes purpleSweepLeft {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.92; }
  50% { transform: translate3d(16px, -8px, 0) scale(1.02); opacity: 1; }
  100% { transform: translate3d(-10px, 8px, 0) scale(1.05); opacity: 0.96; }
}

@keyframes purpleSweepInner {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, 6px, 0) scale(1.02); }
  100% { transform: translate3d(-8px, -4px, 0) scale(1.04); }
}


.field-error {
  margin: 8px 0 0;
  color: #b04e00;
  font-size: 15px;
  font-weight: 600;
}

.input-error {
  border-color: rgba(176, 78, 0, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(176, 78, 0, 0.08);
}


.eyebrow-soft {
  background: linear-gradient(90deg, rgba(67,133,149,0.14) 0%, rgba(139,217,208,0.26) 100%);
  color: #3b6f79;
  box-shadow: none;
}

.suggest-cause-panel {
  margin-top: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.suggest-cause-panel h3 {
  margin: 14px 0 10px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #316b75;
}

.contact-label {
  margin: 6px 0 4px;
  font-weight: 700;
  color: #316b75;
}

.optional-copy {
  color: #7b8098;
  font-weight: 500;
}

.field-error {
  margin-top: 10px;
  color: #b04e00;
  font-weight: 600;
}

.input-error {
  border-color: rgba(176, 78, 0, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(176, 78, 0, 0.08);
}

.inline-toggle {
  margin-top: 8px;
  padding: 0;
  background: transparent;
  color: #7d68dd;
  font-weight: 600;
}

.cycle-highlight {
  padding: 24px 28px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.cycle-highlight-label {
  color: #6c728d;
  font-weight: 600;
  margin-bottom: 8px;
}

.cycle-highlight h3 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
  color: #316b75;
}

.cycle-highlight-stats {
  text-align: right;
}

.cycle-highlight-stats strong {
  display: block;
  font-size: 38px;
  color: #316b75;
}

.draw-grid-single {
  grid-template-columns: 1fr;
}

.success-panel {
  padding: 8px 0 4px;
}

.success-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(139, 217, 208, 0.2);
  color: #2f6f78;
  font-weight: 700;
}

.success-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.success-metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(123,126,154,0.1);
}

.success-metric span {
  display: block;
  color: #6c728d;
  margin-bottom: 4px;
}

.success-metric strong {
  font-size: 26px;
  color: #316b75;
}

.suggest-modal textarea,
.suggest-modal input {
  margin-bottom: 2px;
}

@media (max-width: 760px) {
  .suggest-cause-panel,
  .cycle-highlight,
  .success-metrics {
    grid-template-columns: 1fr;
  }
  .cycle-highlight-stats {
    text-align: left;
  }
}


.modal-overlay {
  overflow-y: auto;
  align-items: start;
}

.modal {
  max-height: min(92vh, 980px);
  overflow-y: auto;
  margin: 24px 0;
  padding-bottom: 20px;
}

#contributionForm {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.flow-footer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.96) 28%);
  padding-top: 14px;
  margin-top: 20px;
  z-index: 3;
}

.dedication-fields {
  gap: 16px;
}

.contact-section {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(123,126,154,0.08);
}

#yourName,
#yourEmail,
#yourPhone,
#dedicationEmail {
  min-height: 52px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(123,126,154,0.16);
  background: rgba(255,255,255,0.9);
  color: var(--text-dark);
  padding: 0 16px;
}

@media (max-width: 760px) {
  .modal {
    width: min(100%, 100%);
    max-height: 94vh;
    padding: 22px 18px 16px;
    border-radius: 26px;
  }

  .modal-header h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .flow-footer {
    padding-bottom: 6px;
  }
}

.hero-live-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(123,126,154,0.1);
  color: #556070;
  font-size: 16px;
  font-weight: 600;
}

.hero-pill-urgent {
  background: rgba(244,139,147,0.12);
  color: #7f4a55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 46px 42px;
  border-top: 1px solid rgba(96, 104, 138, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  color: #316b75;
  margin-bottom: 4px;
}

.footer-brand p {
  margin: 0;
  font-size: 15px;
  color: #777c92;
}

.footer-logo {
  width: 42px;
  height: 42px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #6c728d;
  font-weight: 600;
}

.footer-links a:hover {
  color: #316b75;
}

.page-hero {
  padding-top: 44px;
}

.page-copy {
  max-width: 860px;
}

.page-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: #316b75;
}

.page-copy p,
.legal-card p,
.legal-card li,
.contact-card p,
.about-grid p {
  font-size: 19px;
}

.page-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.legal-card,
.contact-card {
  padding: 28px;
}

.legal-card h2,
.contact-card h2 {
  margin: 0 0 14px;
  font-size: 30px;
  color: #316b75;
}

.legal-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  color: #316b75;
}

.legal-card ul {
  margin: 0;
  padding-left: 22px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(123,126,154,0.08);
}

.contact-item strong,
.about-stat strong {
  display: block;
  color: #316b75;
  margin-bottom: 4px;
}

.about-stats {
  display: grid;
  gap: 14px;
}

.about-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(123,126,154,0.08);
}

.success-note {
  margin-top: 12px;
  color: #787c91;
  font-size: 16px;
}

@media (max-width: 980px) {
  .page-grid,
  .about-grid,
  .contact-grid,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 24px 18px 34px;
  }

  .hero-live-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cause-submeta {
  margin-top: -2px;
  margin-bottom: 14px;
  color: #7b8098;
  font-size: 15px;
  font-weight: 600;
}


.hero-live-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(123,126,154,0.12);
  color: #5b637e;
  font-size: 16px;
  font-weight: 500;
}

.hero-pill strong { color: #316b75; }
.hero-pill-urgent { color: #7d68dd; }

.cause-submeta {
  color: #777d96;
  font-size: 15px;
  margin-top: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 46px 34px;
  border-top: 1px solid rgba(96, 104, 138, 0.08);
  background: rgba(255,255,255,0.18);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 16px;
}

.footer-logo {
  width: 46px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  justify-content: center;
  color: #5c627b;
  font-weight: 600;
}

.footer-social-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-social-label {
  color: #6c728d;
  font-size: 14px;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(123,126,154,0.10);
  box-shadow: 0 10px 22px rgba(145, 130, 205, 0.08);
}

.social-links svg {
  width: 18px;
  height: 18px;
  stroke: #7d68dd;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a:nth-child(2) svg,
.social-links a:nth-child(3) svg { fill: #7d68dd; stroke: none; }
.social-links .social-dot { fill: #7d68dd; stroke: none; }

.page-hero {
  padding-top: 54px;
  padding-bottom: 8px;
}

.page-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #316b75;
}

.page-copy p {
  max-width: 860px;
}

.legal-card-spaced h2,
.contact-card h2 {
  margin-top: 0;
  color: #316b75;
}

.legal-card-spaced h3 {
  margin: 22px 0 8px;
  color: #366d77;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 20px;
}

.about-stats,
.contact-card {
  padding: 28px;
}

.about-stat + .about-stat,
.contact-item + .contact-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(123,126,154,0.08);
}

.about-stat strong,
.contact-item strong {
  display: block;
  color: #316b75;
  margin-bottom: 6px;
}

.contact-list span,
.about-stat span {
  color: #70718a;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .site-footer,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-social-wrap {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 22px 18px 26px;
  }
}


.header-actions{display:flex;align-items:center;gap:12px;}
.language-select{min-height:48px;padding:0 14px;border-radius:999px;border:1px solid rgba(182,167,241,0.32);background:linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.68));color:#5e6984;font-weight:600;}
.cycle-intro{margin:0 0 18px;color:#6f7288;font-size:18px;}
.rtl body,.rtl{direction:rtl;}
body.rtl .site-header, body.rtl .hero, body.rtl .split-header, body.rtl .hero-cta-row, body.rtl .cycle-highlight, body.rtl .feature-panel, body.rtl .footer-main{direction:rtl;}
body.rtl .nav-links{margin-left:32px;margin-right:auto;}
body.rtl .logo-wordmark-wrap{align-items:flex-end;}
body.rtl .hero-copy{padding:0 22px 0 0;}
body.rtl .cycle-highlight-stats{text-align:left;}
@media (max-width:760px){.header-actions{width:100%;justify-content:center;flex-wrap:wrap;} .language-select{width:auto;}}


.site-header { position: relative; padding-right: 170px; }
.header-actions { position: absolute; top: 22px; right: 46px; z-index: 5; }
.language-select { min-width: 126px; }
.hero-subcopy { max-width: 600px; }
.hero-live-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.hero-pill { padding:10px 16px; border-radius:999px; background:rgba(255,255,255,0.72); border:1px solid rgba(123,126,154,0.10); color:#5d657f; font-size:16px; }
.hero-pill strong { color:#316b75; }
.cycle-intro { margin-top:-6px; margin-bottom:20px; color:#6c728d; }
.cause-submeta { margin-top:10px; color:#6c728d; font-size:16px; line-height:1.45; }
.section-subcopy { max-width:680px; color:#797890; font-size:20px; line-height:1.45; }
body.rtl { font-family: 'Cairo', 'Inter', sans-serif; }
body.rtl input, body.rtl textarea, body.rtl button, body.rtl select { font-family: 'Cairo', 'Inter', sans-serif; }
body.rtl .logo-tagline, body.rtl .hero-pill strong, body.rtl .panel-amount, body.rtl #raisedAmount, body.rtl #goalAmount, body.rtl #goalAmountSmall, body.rtl #contributorCount, body.rtl #heroContributors, body.rtl #heroCountdown, body.rtl #cycleLeaderPercent, body.rtl .cause-percentage, body.rtl .success-metric strong { font-family: 'Inter', sans-serif; }
body.rtl .header-actions { left: 46px; right: auto; }
body.rtl .hero-copy { padding: 0 22px 0 0; }
@media (max-width: 980px) { .site-header { padding-right: 46px; } .header-actions { position: static; } }
@media (max-width: 760px) { .site-header { padding-right: 18px; } .header-actions { width:100%; justify-content:center; } .language-select { min-width:0; } }


/* Header cleanup: keep nav + CTA on one line; move language to top corner */
.language-corner { position: absolute; top: 12px; right: 46px; z-index: 10; }
.language-select { min-height: 34px; padding: 0 10px; font-size: 13px; border-radius: 10px; border: 1px solid rgba(182,167,241,0.28); background: rgba(255,255,255,0.82); color: #5e6984; font-weight: 600; box-shadow: 0 8px 18px rgba(145,130,205,0.06); }
.site-header { padding-top: 34px; padding-right: 46px; justify-content: flex-start; }
.nav-links { margin-left: auto; margin-right: 18px; gap: 48px; }
/* Header two-button group */
.header-cta-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}
.header-hiw {
  /* Gradient primary — same as button-primary override below */
  color: #ffffff !important;
  background: linear-gradient(90deg, #f48591 0%, #d577d8 58%, #9a62e5 100%) !important;
  box-shadow: 0 10px 24px rgba(204,116,196,0.26) !important;
  border: none !important;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.header-hiw:hover {
  background: linear-gradient(90deg, #f06f82 0%, #c85bd2 58%, #8452d9 100%) !important;
  transform: translateY(-1px);
}
.header-contribute {
  /* White with purple text */
  flex: 0 0 auto;
  background: #ffffff !important;
  color: #7d4fd8 !important;
  border: 1.5px solid rgba(165,92,240,0.30) !important;
  box-shadow: none !important;
}
.header-contribute:hover {
  color: #5534bd !important;
  border-color: rgba(165,92,240,0.50) !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(145,130,205,0.14) !important;
}
.header-actions { position: static; }
body.rtl .language-corner { left: 46px; right: auto; }
body.rtl .nav-links { margin-right: auto; margin-left: 18px; }
@media (max-width: 1180px) { .nav-links { gap: 24px; } .language-corner { right: 24px; } body.rtl .language-corner { left: 24px; } }
@media (max-width: 980px) { .language-corner { position: static; display: flex; justify-content: flex-end; padding: 14px 18px 0; } body.rtl .language-corner { justify-content: flex-start; } .site-header { padding-top: 18px; } }
@media (max-width: 760px) { .site-header { justify-content: center; } .nav-links { margin: 0; } .header-cta-group { gap: 8px; } .header-hiw, .header-contribute { font-size: 14px !important; padding: 10px 14px !important; } }


/* Motion system */
.hero-panel,
.cycle-highlight,
.footer-cta,
.feature-panel {
  will-change: transform, box-shadow, opacity;
}

.panel-topline,
#liveUpdateText {
  animation: softPulse 2.8s ease-in-out infinite;
}

.hero-cause-row {
  opacity: 0;
  transform: translateY(12px);
  animation: rowSlideIn 520ms cubic-bezier(.22,1,.36,1) forwards;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22,1,.36,1);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-stagger-1 { transition-delay: 60ms; }
.reveal-stagger-2 { transition-delay: 130ms; }
.reveal-stagger-3 { transition-delay: 200ms; }
.reveal-stagger-4 { transition-delay: 270ms; }
.reveal-stagger-5 { transition-delay: 340ms; }
.reveal-stagger-6 { transition-delay: 410ms; }

.progress-fill {
  position: relative;
  overflow: hidden;
}
.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.36) 45%, transparent 100%);
  animation: progressShimmer 3.4s ease-in-out infinite;
}

.cause-card.is-leading {
  animation: leaderBreath 3.8s ease-in-out infinite;
}

.site-main::before {
  content: "";
  position: absolute;
  top: 220px;
  right: 6%;
  width: 240px;
  height: 240px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(165,92,240,0.11), rgba(244,139,147,0.08) 42%, transparent 70%);
  filter: blur(16px);
  animation: ambientFloat 14s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes rowSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progressShimmer {
  0%, 12% { transform: translateX(-130%); }
  45%, 100% { transform: translateX(130%); }
}

@keyframes softPulse {
  0%, 100% { opacity: 0.78; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

@keyframes ambientFloat {
  0% { transform: translate3d(0,0,0) scale(1); opacity: 0.75; }
  50% { transform: translate3d(-22px, 18px, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(18px, -16px, 0) scale(0.98); opacity: 0.82; }
}

@keyframes leaderBreath {
  0%, 100% { box-shadow: 0 18px 38px rgba(167, 118, 224, 0.16); }
  50% { box-shadow: 0 22px 44px rgba(167, 118, 224, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal,
  .hero-cause-row,
  .page-shell::before,
  .page-shell::after,
  .hero-copy::before,
  .hero-panel,
  .panel-topline,
  #liveUpdateText,
  .cause-card.is-leading,
  .site-main::before,
  .progress-fill::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.site-notice{max-width:1200px;margin:16px auto 0;padding:14px 18px;border-radius:16px;background:#f5f7ff;color:#1f2450;box-shadow:0 10px 24px rgba(20,28,68,.08);} .site-notice[data-type="error"]{background:#fff1f1;color:#8b1e1e;} .site-notice[data-type="success"]{background:#eefaf2;color:#11663a;} .site-notice[data-type="warning"]{background:#fff7e9;color:#8a5a00;}

.looking-ahead-card {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 90, 180, 0.18);
  box-shadow: 0 18px 45px rgba(65, 45, 120, 0.08);
  display: block;
  width: 100%;
}

.looking-ahead-card .eyebrow {
  margin-bottom: 10px;
}

.looking-ahead-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

/* Evoria button readability fix */

.button-primary {
  color: #ffffff !important;
  background: linear-gradient(90deg, #2f6f78 0%, #88d9cf 100%);
  box-shadow: 0 12px 28px rgba(47, 111, 120, 0.22);
}

.button-primary:hover {
  background: linear-gradient(90deg, #245f69 0%, #6fcfc3 100%);
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(47, 111, 120, 0.28);
}

.button-secondary {
  color: #5f3fc4;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.74));
  border: 1px solid rgba(165, 92, 240, 0.28);
}

.button-secondary:hover {
  color: #4d2fb0;
  border-color: rgba(165, 92, 240, 0.42);
}

/* Optional: make header CTA extra readable */
.site-header .button-primary {
  color: #ffffff !important;
}

/* ================================
   How It Works Page
================================ */

.hiw-page {
  padding: 42px 46px 64px;
}

.hiw-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  min-height: 520px;
  padding: 38px 0 52px;
}

.hiw-hero-copy h1 {
  margin: 22px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 600;
  color: #316b75;
}

.hiw-lede {
  max-width: 760px;
  font-size: 22px;
  color: #70718a;
}

.hiw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn,
.header-cta {
  color: #ffffff !important;
  background: linear-gradient(90deg, #2f6f78 0%, #88d9cf 100%);
  box-shadow: 0 12px 28px rgba(47, 111, 120, 0.22);
}

.primary-btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #245f69 0%, #6fcfc3 100%);
}

.secondary-btn {
  color: #5f3fc4;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(165, 92, 240, 0.26);
}

.secondary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(165, 92, 240, 0.46);
}

.hiw-hero-card,
.hiw-step,
.hiw-timeline-section,
.hiw-timeline-item,
.hiw-clarity-card,
.hiw-final-cta {
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.62));
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: 0 14px 34px rgba(118, 123, 151, 0.10);
  backdrop-filter: blur(10px);
}

.hiw-hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hiw-hero-card::before {
  content: "";
  position: absolute;
  inset: -80px -90px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,92,240,0.22), rgba(136,217,207,0.14), transparent 70%);
}

.hiw-formula {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 800;
  color: #316b75;
  letter-spacing: -0.05em;
}

.hiw-formula strong {
  color: #a55cf0;
}

.hiw-hero-card p {
  margin-top: 18px;
  font-size: 20px;
}

.hiw-mini-bars {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hiw-mini-bars span {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f48b93, #a55cf0, #88d9cf);
}

.hiw-mini-bars span:nth-child(1) { width: 88%; }
.hiw-mini-bars span:nth-child(2) { width: 68%; }
.hiw-mini-bars span:nth-child(3) { width: 48%; }

.section-heading.centered {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2,
.hiw-timeline-copy h2,
.hiw-clarity-card h2,
.hiw-final-cta h2 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #316b75;
}

.hiw-flow-section {
  padding: 34px 0;
}

.hiw-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.hiw-step {
  padding: 22px;
  min-height: 260px;
  position: relative;
}

.hiw-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 25px;
  margin-bottom: 16px;
}

.hiw-icon.teal {
  background: rgba(136,217,207,0.28);
}

.hiw-icon.coral {
  background: rgba(244,139,147,0.24);
}

.hiw-icon.purple {
  background: rgba(165,92,240,0.18);
}

.hiw-step-number {
  display: inline-block;
  margin-bottom: 12px;
  color: #a55cf0;
  font-weight: 800;
  font-size: 14px;
}

.hiw-step h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #316b75;
}

.hiw-step p {
  margin: 0;
  font-size: 17px;
  color: #70718a;
}

.hiw-arrow {
  display: none;
}

.hiw-timeline-section {
  margin-top: 30px;
  padding: 32px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.hiw-timeline-copy p {
  font-size: 19px;
}

.hiw-timeline {
  display: grid;
  gap: 14px;
}

.hiw-timeline-item {
  padding: 20px;
}

.hiw-timeline-item span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(136,217,207,0.22);
  color: #2f6f78;
  font-size: 14px;
  font-weight: 800;
}

.hiw-timeline-item strong {
  display: block;
  font-size: 24px;
  color: #316b75;
}

.hiw-timeline-item p {
  margin: 8px 0 0;
  font-size: 17px;
}

.hiw-clarity-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hiw-clarity-card {
  padding: 28px;
}

.hiw-clarity-card p {
  font-size: 19px;
}

.hiw-clarity-card a {
  display: inline-flex;
  margin-top: 8px;
  color: #7d68dd;
  font-weight: 800;
}

.hiw-final-cta {
  margin-top: 26px;
  padding: 42px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 30%, rgba(244,139,147,0.18), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(165,92,240,0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.66));
}

.hiw-final-cta .primary-btn {
  margin-top: 14px;
}

.nav-links a[aria-current="page"] {
  color: #7d68dd;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .hiw-hero,
  .hiw-timeline-section {
    grid-template-columns: 1fr;
  }

  .hiw-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .hiw-page {
    padding: 28px 18px 44px;
  }

  .hiw-hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hiw-hero-copy h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hiw-flow,
  .hiw-clarity-grid {
    grid-template-columns: 1fr;
  }

  .hiw-step {
    min-height: auto;
  }

  .hiw-timeline-section,
  .hiw-final-cta {
    padding: 24px;
  }
}

/* ================================
   Where Funds Go Page - Full Layout Fix
================================ */

.funds-page {
  padding: 42px 46px 64px !important;
}

.funds-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr) !important;
  gap: 34px !important;
  align-items: center !important;
  padding: 42px 0 54px !important;
}

.funds-hero-copy h1 {
  margin: 22px 0 18px !important;
  max-width: 760px !important;
  font-size: clamp(42px, 4.8vw, 72px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.06em !important;
  font-weight: 600 !important;
  color: #316b75 !important;
}

.funds-hero-copy p {
  max-width: 760px !important;
  font-size: 22px !important;
  color: #70718a !important;
}

.funds-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 28px !important;
}

.funds-photo-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 430px !important;
  border-radius: 30px !important;
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(255,255,255,0.48) !important;
  box-shadow: 0 14px 34px rgba(118, 123, 151, 0.10) !important;
}

.funds-photo-card img {
  width: 100% !important;
  height: 430px !important;
  object-fit: cover !important;
}

.funds-photo-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, transparent 35%, rgba(31,53,73,0.58) 100%) !important;
}

.funds-photo-caption {
  position: absolute !important;
  left: 26px !important;
  right: 26px !important;
  bottom: 24px !important;
  z-index: 2 !important;
  color: white !important;
}

.funds-photo-caption strong {
  display: block !important;
  font-size: 28px !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 6px !important;
}

.funds-photo-caption span {
  font-size: 17px !important;
  opacity: 0.92 !important;
}

.funds-flow-section {
  padding: 34px 0 !important;
}

.funds-flow {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.funds-step {
  padding: 24px !important;
  min-height: 250px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.62)) !important;
  border: 1px solid rgba(255,255,255,0.48) !important;
  box-shadow: 0 14px 34px rgba(118, 123, 151, 0.10) !important;
  backdrop-filter: blur(10px) !important;
}

.funds-icon {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 18px !important;
  font-size: 25px !important;
  margin-bottom: 16px !important;
}

.funds-icon.teal {
  background: rgba(136,217,207,0.28) !important;
}

.funds-icon.coral {
  background: rgba(244,139,147,0.24) !important;
}

.funds-icon.purple {
  background: rgba(165,92,240,0.18) !important;
}

.funds-step span {
  display: inline-block !important;
  color: #a55cf0 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  margin-bottom: 12px !important;
}

.funds-step h3 {
  margin: 0 0 10px !important;
  font-size: 22px !important;
  color: #316b75 !important;
}

.funds-step p {
  margin: 0 !important;
  font-size: 17px !important;
  color: #70718a !important;
}

.funds-proof-section {
  margin-top: 30px !important;
  padding: 32px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.62)) !important;
  border: 1px solid rgba(255,255,255,0.48) !important;
  box-shadow: 0 14px 34px rgba(118, 123, 151, 0.10) !important;
}

.funds-proof-copy {
  max-width: 760px !important;
  margin-bottom: 24px !important;
}

.funds-proof-copy h2,
.funds-safety-card h2,
.funds-final-cta h2 {
  margin: 14px 0 10px !important;
  font-size: clamp(34px, 3.4vw, 52px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.05em !important;
  color: #316b75 !important;
}

.funds-proof-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
}

.funds-proof-card {
  overflow: hidden !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,0.74) !important;
  border: 1px solid rgba(255,255,255,0.48) !important;
  box-shadow: 0 14px 34px rgba(118, 123, 151, 0.10) !important;
}

.funds-proof-card img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
}

.funds-proof-card div {
  padding: 22px !important;
}

.funds-proof-card h3 {
  margin: 0 0 10px !important;
  font-size: 24px !important;
  color: #316b75 !important;
}

.funds-proof-card p {
  margin: 0 !important;
  font-size: 17px !important;
  color: #70718a !important;
}

.funds-safety-grid {
  margin-top: 24px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
}

.funds-safety-card {
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.62)) !important;
  border: 1px solid rgba(255,255,255,0.48) !important;
  box-shadow: 0 14px 34px rgba(118, 123, 151, 0.10) !important;
}

.funds-safety-card p {
  font-size: 19px !important;
  color: #70718a !important;
}

.funds-final-cta {
  margin-top: 26px !important;
  padding: 42px !important;
  text-align: center !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 18% 30%, rgba(244,139,147,0.18), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(165,92,240,0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.66)) !important;
  border: 1px solid rgba(255,255,255,0.48) !important;
  box-shadow: 0 14px 34px rgba(118, 123, 151, 0.10) !important;
}

.funds-final-cta .primary-btn {
  margin-top: 14px !important;
}

@media (max-width: 1180px) {
  .funds-hero,
  .funds-safety-grid {
    grid-template-columns: 1fr !important;
  }

  .funds-flow {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .funds-proof-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .funds-page {
    padding: 28px 18px 44px !important;
  }

  .funds-hero-copy h1 {
    font-size: clamp(38px, 12vw, 54px) !important;
  }

  .funds-flow {
    grid-template-columns: 1fr !important;
  }

  .funds-photo-card,
  .funds-photo-card img {
    min-height: 320px !important;
    height: 320px !important;
  }

  .funds-proof-section,
  .funds-safety-card,
  .funds-final-cta {
    padding: 24px !important;
  }
}

/* ================================
   FINAL EVORIA BUTTON + PILL FIX
   Mixed brand colors, readable text
================================ */

/* Main CTA buttons: coral → purple gradient, white text */
.button-primary,
.primary-btn,
.header-cta,
.header-contribute {
  color: #ffffff !important;
  background: linear-gradient(90deg, #f48591 0%, #d577d8 58%, #9a62e5 100%) !important;
  box-shadow: 0 12px 28px rgba(204, 116, 196, 0.24) !important;
  border: none !important;
}

.button-primary *,
.primary-btn *,
.header-cta *,
.header-contribute * {
  color: #ffffff !important;
}

.button-primary:hover,
.primary-btn:hover,
.header-cta:hover,
.header-contribute:hover {
  color: #ffffff !important;
  background: linear-gradient(90deg, #f06f82 0%, #c85bd2 58%, #8452d9 100%) !important;
  box-shadow: 0 16px 34px rgba(204, 116, 196, 0.30) !important;
  transform: translateY(-1px);
}

/* Secondary buttons: soft white with purple text */
.button-secondary,
.secondary-btn {
  color: #6f4fd8 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.76)) !important;
  border: 1px solid rgba(165, 92, 240, 0.26) !important;
  box-shadow: 0 10px 22px rgba(145, 130, 205, 0.08) !important;
}

.button-secondary:hover,
.secondary-btn:hover {
  color: #5534bd !important;
  border-color: rgba(165, 92, 240, 0.42) !important;
  transform: translateY(-1px);
}

/* Eyebrow pills: teal background, WHITE readable text */
.eyebrow {
  color: #ffffff !important;
  background: linear-gradient(90deg, #438595 0%, #8bd9d0 100%) !important;
  font-weight: 700 !important;
}

.eyebrow * {
  color: #ffffff !important;
}

/* Active nav can stay purple because it's on light background */
.nav-links a[aria-current="page"] {
  color: #7d68dd !important;
  font-weight: 800 !important;
}

/* FAQ PAGE */

.faq-hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.faq-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.faq-hero .subtext {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.faq-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* FAQ ITEMS */

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 10px;
}

/* QUESTION BUTTON */

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #222;
  transition: color 0.3s ease;
}

/* Hover color (teal) */
.faq-question:hover {
  color: #00b3a6;
}

/* ACTIVE QUESTION */
.faq-question.active {
  color: #7b3fe4; /* purple */
}

/* ANSWER */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.nav-links a.active {
  color: #7b3fe4; /* purple */
  font-weight: 600;
}

/* FINAL HERO BACKGROUND FIX */

.hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 680px !important;
  padding-top: 56px !important;
  background: none !important;
}

/* Hero image */
.hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url("hero-bg.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  z-index: -3 !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Soft readable overlay */
.hero::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.88) 0%,
      rgba(255,255,255,0.72) 30%,
      rgba(255,255,255,0.30) 58%,
      rgba(255,255,255,0.60) 100%
    ),
linear-gradient(
  135deg,
  rgba(136,217,207,0.28) 0%,
  rgba(244,139,147,0.18) 52%,
  rgba(165,92,240,0.32) 100%
) !important;
  z-index: -2 !important;
  pointer-events: none !important;
}

/* Keep content above image */
.hero-copy,
.hero-panel {
  position: relative !important;
  z-index: 2 !important;
}

/* Make hero card cleaner */
.hero-copy {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Stats glass card */
.hero-panel {
  background: rgba(255,255,255,0.72) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
}

/* Remove extra blobs interfering with hero */
.page-shell::before,
.page-shell::after {
  display: none !important;
}

/* Mobile crop */
@media (max-width: 760px) {
  .hero {
    min-height: auto !important;
  }

  .hero::before {
    background-position: center top !important;
  }
}

/* ================================
   MOBILE HERO FIX (iPhone)
================================ */

@media (max-width: 760px) {

  .hero {
    grid-template-columns: 1fr !important;
    padding-top: 28px !important;
    gap: 20px !important;
    min-height: auto !important;
  }

  /* Better mobile crop: avoids random hair showing, shows more water/hands */
  .hero::before {
    background-position: 72% 68% !important;
    background-size: cover !important;
  }

  /* Soft overlay for readability without washing the image too much */
  .hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.96) 0%,
        rgba(255,255,255,0.88) 28%,
        rgba(255,255,255,0.48) 58%,
        rgba(255,255,255,0.70) 100%
      ),
      linear-gradient(
        135deg,
        rgba(136,217,207,0.20) 0%,
        rgba(244,139,147,0.14) 55%,
        rgba(165,92,240,0.22) 100%
      ) !important;
  }

  .hero-copy {
    padding: 0 !important;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 48px) !important;
    line-height: 1.05 !important;
  }

  .hero-subcopy {
    font-size: 17px !important;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel {
    max-width: 100% !important;
    margin-top: 12px !important;
  }
}

/* Readability fix */
body {
  color: #173f47 !important;
}

p,
li,
.hero-subcopy,
.step-subtext,
.section-sidecopy,
.section-subcopy,
.cause-submeta {
  color: #344f5c !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

body.rtl {
  font-family: 'Cairo', 'Inter', sans-serif !important;
}

body.rtl p,
body.rtl li,
body.rtl .hero-subcopy,
body.rtl .section-sidecopy,
body.rtl .section-subcopy {
  font-weight: 600 !important;
  line-height: 1.8 !important;
}

/* Arabic: remove photo behind hero for cleaner readability */
body.rtl .hero::before {
  background-image: none !important;
}

body.rtl .hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(165,92,240,0.20), transparent 35%),
    radial-gradient(circle at 20% 70%, rgba(136,217,207,0.28), transparent 40%),
    linear-gradient(135deg, #fff7f9 0%, #f6fbfb 55%, #f2ecff 100%) !important;
}

body.rtl .hero::after {
  display: none !important;
}

/* ── Success Screen Viral Loop ── */
.success-reward-box {
  background: linear-gradient(135deg, rgba(204, 116, 196, 0.1) 0%, rgba(137, 220, 206, 0.1) 100%);
  border: 1px solid rgba(204, 116, 196, 0.22);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 20px;
}
.reward-icon {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}
.reward-content h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #316b75;
}
.reward-content p {
  margin: 0;
  font-size: 14px;
  color: #70718a;
  line-height: 1.45;
}
.reward-content strong { color: #cc74c4; }
.success-share-prompt { margin: 0 0 22px; }
.button-large {
  width: 100%;
  padding: 17px 24px;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.share-pulse { animation: pulseGlow 3s ease-in-out infinite; }
.success-footer-link { text-align: center; margin-top: 18px; }
.button-text {
  background: none;
  border: none;
  color: #70718a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}
.button-text:hover { color: #316b75; }


/* ================================================================
   EVORIA MOBILE REDESIGN — append to end of styles.css
   Strategy:
   - Hero reduced to single screen with sticky bottom CTA bar
   - All sections below hero collapsed into 4-tab navigation
   - Transparency/trust items become accordions
   - Desktop (> 760px) completely unchanged
================================================================ */

/* ── STICKY BOTTOM CTA BAR ── */
.mobile-cta-bar {
  display: none;
}

/* ── MOBILE-ONLY ELEMENTS: hidden on desktop ── */
/* These elements only make sense on mobile and must be invisible on desktop.
   The media query below re-enables them at ≤760px. */
.mobile-tab-nav,
.mobile-tab-panel {
  display: none;
}

/* Accordion chevron icons: constrain size globally so they don't blow up on desktop */
.m-accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 760px) {

  /* ── STICKY BOTTOM CTA BAR ── */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--color-surface, #1a1b2e);
    border-top: 1px solid rgba(123,126,154,0.18);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    align-items: center;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.28);
  }
  .mobile-cta-bar .cta-countdown {
    flex: 1;
    font-size: 12px;
    color: var(--color-muted, #7b7e9a);
    line-height: 1.3;
  }
  .mobile-cta-bar .cta-countdown strong {
    display: block;
    font-size: 14px;
    color: var(--color-text, #e8e9f3);
  }
  /* Two-button group inside the sticky bar */
  .mobile-cta-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  .mobile-hiw-btn,
  .mobile-contribute-btn {
    flex-shrink: 0;
    padding: 11px 14px !important;
    font-size: 13px !important;
    min-height: 44px;
    border-radius: 13px !important;
    white-space: nowrap;
    line-height: 1.2;
  }
  /* How it works: keep the gradient primary style */
  .mobile-hiw-btn {
    background: linear-gradient(90deg, #f48591 0%, #d577d8 58%, #9a62e5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(204,116,196,0.30) !important;
  }
  /* Contribute now: white with purple text */
  .mobile-contribute-btn {
    background: #ffffff !important;
    color: #7d4fd8 !important;
    border: 1.5px solid rgba(165,92,240,0.30) !important;
    box-shadow: none !important;
  }

  /* ── ADD BOTTOM PADDING TO PAGE SO CONTENT NOT HIDDEN BY BAR ── */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  /* ── HERO — single screen ── */
  .hero {
    flex-direction: column !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    gap: 16px !important;
    min-height: unset !important;
  }
  .hero h1 {
    font-size: clamp(26px, 7.5vw, 36px) !important;
    line-height: 1.08 !important;
    margin-bottom: 8px !important;
  }
  .hero-subcopy {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }
  /* Hide the desktop CTA row in hero — sticky bar replaces it */
  .hero .hero-cta-row {
    display: none !important;
  }
  .hero-live-row {
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
  }
  .hero-pill {
    font-size: 12px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
  }
  /* Hero panel — compact stats strip */
  .hero-panel {
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }
  .panel-amount {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }
  .panel-stats {
    gap: 10px !important;
  }
  .panel-stats strong {
    font-size: 16px !important;
  }
  .panel-stats .stat-label {
    font-size: 11px !important;
  }
  .panel-list-title {
    font-size: 12px !important;
    margin: 10px 0 6px !important;
  }
  .hero-cause-list {
    gap: 6px !important;
  }

  /* ── TRUST STRIP — hide on mobile (content moves into accordion) ── */
  .trust-strip {
    display: none !important;
  }

  /* ── MOBILE TAB NAVIGATION ── */
  .mobile-tab-nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 850; /* above content, below sticky bar (900) */
    background: var(--color-surface, #1a1b2e);
    border-bottom: 1px solid rgba(123,126,154,0.15);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
    /* Ensure it casts a subtle shadow so it reads as floating */
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
  }
  .mobile-tab-nav::-webkit-scrollbar { display: none; }
  .mobile-tab-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-muted, #7b7e9a);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
  }
  .mobile-tab-btn.active {
    color: var(--color-accent, #14b8a6);
    border-bottom-color: var(--color-accent, #14b8a6);
  }

  /* ── MOBILE TAB PANELS ── */
  .mobile-tab-panel {
    display: none;
    padding: 20px 16px 16px;
  }
  .mobile-tab-panel.active {
    display: block;
  }

  /* ── HIDE ALL DESKTOP SECTIONS ON MOBILE ── */
  .landing-logic,
  #cycle,
  #impact,
  #transparency,
  .section:has(.feature-panel),
  #draw,
  .section:has(.footer-cta) {
    display: none !important;
  }

  /* ── ACCORDION COMPONENT ── */
  .m-accordion {
    border: 1px solid rgba(123,126,154,0.15);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .m-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    background: var(--color-card, #1e2035);
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
  }
  .m-accordion-header h3 {
    font-size: 15px !important;
    font-weight: 600;
    margin: 0 !important;
    line-height: 1.3;
    color: var(--color-text, #e8e9f3);
  }
  .m-accordion-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-muted, #7b7e9a);
    transition: transform 0.2s;
  }
  .m-accordion.open .m-accordion-icon {
    transform: rotate(180deg);
  }
  .m-accordion-body {
    display: none;
    padding: 0 16px 14px;
    background: var(--color-card, #1e2035);
  }
  .m-accordion.open .m-accordion-body {
    display: block;
  }
  .m-accordion-body p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--color-muted, #7b7e9a);
    margin: 0;
  }

  /* ── TAB: VOTE (cause cards) ── */
  .m-vote-tab .cycle-highlight {
    padding: 14px 16px !important;
    border-radius: 14px !important;
    margin-bottom: 14px;
  }
  .m-vote-tab .cycle-highlight h3 {
    font-size: 20px !important;
  }
  .m-vote-tab .cycle-highlight p {
    font-size: 14px !important;
  }
  .m-vote-tab .cycle-highlight-stats strong {
    font-size: 28px !important;
  }
  .m-vote-tab .cycle-highlight-stats span {
    font-size: 12px !important;
  }
  .m-vote-tab .cause-grid {
    gap: 12px !important;
  }
  .m-vote-tab .cause-image {
    height: 150px !important;
  }
  .m-vote-tab .cause-card h3 {
    font-size: 17px !important;
  }
  .m-vote-tab .cause-meta,
  .m-vote-tab .cause-submeta {
    font-size: 13px !important;
  }
  .m-vote-tab .suggest-cause-panel {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 12px !important;
    border-radius: 14px !important;
    margin-top: 14px;
  }
  .m-vote-tab .suggest-cause-panel h3 {
    font-size: 18px !important;
  }

  /* ── TAB: HOW IT WORKS ── */
  .m-how-tab .logic-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .m-how-tab .logic-card {
    padding: 16px !important;
    border-radius: 14px !important;
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .m-how-tab .logic-step {
    flex-shrink: 0;
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .m-how-tab .logic-card h3 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }
  .m-how-tab .logic-card p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0;
  }
  .m-how-tab .m-why-block {
    margin-top: 16px;
    padding: 16px;
    background: var(--color-card, #1e2035);
    border-radius: 14px;
    border: 1px solid rgba(123,126,154,0.12);
  }
  .m-how-tab .m-why-block h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--color-text, #e8e9f3);
  }
  .m-how-tab .m-why-block p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-muted, #7b7e9a);
    margin-bottom: 8px;
  }
  .m-how-tab .m-faq-link {
    font-size: 14px;
    color: var(--color-accent, #14b8a6);
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
  }

  /* ── TAB: TRANSPARENCY ── */
  .m-transparency-tab .m-profit-banner {
    background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(139,92,246,0.08));
    border: 1px solid rgba(20,184,166,0.25);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    text-align: center;
  }
  .m-transparency-tab .m-profit-banner strong {
    display: block;
    font-size: 18px;
    color: var(--color-accent, #14b8a6);
    margin-bottom: 4px;
  }
  .m-transparency-tab .m-profit-banner p {
    font-size: 13px;
    color: var(--color-muted, #7b7e9a);
    margin: 0;
    line-height: 1.5;
  }
  .m-transparency-tab .m-looking-ahead {
    padding: 16px;
    background: var(--color-card, #1e2035);
    border-radius: 14px;
    border: 1px solid rgba(123,126,154,0.12);
    margin-top: 10px;
  }
  .m-transparency-tab .m-looking-ahead .eyebrow {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .m-transparency-tab .m-looking-ahead p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-muted, #7b7e9a);
    margin-bottom: 8px;
  }

  /* ── TAB: DRAW ── */
  .m-draw-tab .draw-card-primary {
    padding: 18px 16px !important;
    border-radius: 14px !important;
    margin-bottom: 12px;
  }
  .m-draw-tab .draw-kicker {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }
  .m-draw-tab .draw-card-primary h3 {
    font-size: 26px !important;
    margin-bottom: 8px !important;
  }
  .m-draw-tab .draw-card-primary p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px;
  }
  .m-draw-tab .draw-card-primary .hero-cta-row {
    margin-bottom: 10px;
  }
  .m-draw-tab .legal-microcopy {
    font-size: 11px !important;
  }
  .m-draw-tab .draw-rules-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }
  .m-draw-tab .draw-rules-card h3 {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }
  .m-draw-tab .entry-methods-list {
    gap: 12px !important;
  }
  .m-draw-tab .entry-methods-list li {
    gap: 12px !important;
    align-items: flex-start;
  }
  .m-draw-tab .entry-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
    flex-shrink: 0;
    border-radius: 10px !important;
  }
  .m-draw-tab .entry-methods-list strong {
    font-size: 14px !important;
  }
  .m-draw-tab .entry-methods-list p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  .m-draw-tab .m-personal-block {
    margin-top: 12px;
    padding: 16px;
    background: var(--color-card, #1e2035);
    border-radius: 14px;
    border: 1px solid rgba(123,126,154,0.12);
  }
  .m-draw-tab .m-personal-block h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--color-text, #e8e9f3);
  }
  .m-draw-tab .m-personal-block p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-muted, #7b7e9a);
    margin-bottom: 12px;
  }

  /* ── FORM FIELDS — prevent iOS zoom ── */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* ── MODAL — full screen on mobile ── */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal {
    border-radius: 24px 24px 0 0 !important;
    max-height: 92vh !important;
    padding: 20px 16px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .modal-header h2 {
    font-size: clamp(20px, 6vw, 28px) !important;
    line-height: 1.1 !important;
  }
  .amount-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .amount-btn {
    padding: 10px 6px !important;
    font-size: 15px !important;
    min-height: 44px !important;
  }
  .button-large, .button-primary {
    min-height: 50px !important;
    font-size: 16px !important;
  }

  /* ── FOOTER — simplified ── */
  .site-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 16px 24px !important;
    gap: 14px !important;
  }
  .footer-links {
    gap: 12px !important;
    font-size: 14px !important;
    flex-wrap: wrap !important;
  }
  .footer-brand p {
    font-size: 13px !important;
  }
  .footer-social-wrap {
    margin-top: 4px;
  }
}

.community-select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text-dark);
  background: rgba(255,255,255,0.86);
  outline: none;
}

.community-select:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 4px rgba(136, 217, 207, 0.22);
}

.balanced-vote-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}


.cycle-explainer {
  max-width: 820px;
  margin: 0 0 18px;
  color: #6f738c;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.mobile-cycle-explainer {
  margin: 14px 0 18px;
  font-size: 15px;
}

/* Arabic full-page RTL system */
html[lang="ar"],
html[lang="ar"] body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[lang="ar"] * {
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[lang="ar"] .page-copy,
html[lang="ar"] .faq-section,
html[lang="ar"] .faq-item,
html[lang="ar"] .faq-question,
html[lang="ar"] .faq-answer,
html[lang="ar"] .legal-card,
html[lang="ar"] .feature-panel,
html[lang="ar"] .funds-hero-copy,
html[lang="ar"] .funds-step,
html[lang="ar"] .funds-proof-copy,
html[lang="ar"] .funds-proof-card,
html[lang="ar"] .funds-safety-card,
html[lang="ar"] .hiw-hero-copy,
html[lang="ar"] .hiw-step,
html[lang="ar"] .hiw-timeline-copy,
html[lang="ar"] .hiw-timeline-item,
html[lang="ar"] .hiw-clarity-card,
html[lang="ar"] .contact-card,
html[lang="ar"] form,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
  direction: rtl;
  text-align: right;
}
html[lang="ar"] .nav-links,
html[lang="ar"] .site-header,
html[lang="ar"] .hero-cta-row,
html[lang="ar"] .funds-hero-actions,
html[lang="ar"] .hiw-hero-actions,
html[lang="ar"] .footer-links,
html[lang="ar"] .footer-brand,
html[lang="ar"] .social-links {
  direction: rtl;
}
html[lang="ar"] .logo-wordmark-wrap {
  align-items: flex-start;
}
html[lang="ar"] .faq-question {
  width: 100%;
}
html[lang="ar"] .faq-answer p {
  text-align: right;
}
html[lang="ar"] .hiw-flow {
  direction: rtl;
}
html[lang="ar"] .hiw-arrow {
  transform: rotate(180deg);
}

/* Arabic / RTL homepage layout protection */
html[dir="rtl"] body {
  direction: rtl;
  font-family: "Cairo", "Inter", sans-serif;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .hero,
html[dir="rtl"] .two-column,
html[dir="rtl"] .split-header,
html[dir="rtl"] .footer-cta,
html[dir="rtl"] .feature-panel,
html[dir="rtl"] .draw-grid,
html[dir="rtl"] .transparency-grid,
html[dir="rtl"] .logic-grid,
html[dir="rtl"] .cause-grid {
  direction: rtl;
}

html[dir="rtl"] .logo-lockup,
html[dir="rtl"] .footer-brand {
  direction: ltr;
}

html[dir="rtl"] .logo-wordmark-wrap {
  text-align: left;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-header,
html[dir="rtl"] .cycle-explainer,
html[dir="rtl"] .cycle-intro,
html[dir="rtl"] .looking-ahead-card,
html[dir="rtl"] .mini-card,
html[dir="rtl"] .logic-card,
html[dir="rtl"] .draw-card,
html[dir="rtl"] .draw-rules-card,
html[dir="rtl"] .suggest-cause-panel,
html[dir="rtl"] .modal {
  text-align: right;
}

html[dir="rtl"] .hero-cta-row,
html[dir="rtl"] .header-cta-group,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .panel-stats,
html[dir="rtl"] .hero-live-row {
  direction: rtl;
}

html[dir="rtl"] .progress-track,
html[dir="rtl"] .progress-large {
  direction: ltr;
}

html[dir="rtl"] .progress-fill {
  left: 0;
  right: auto;
}


/* FINAL LOGO GUARDRAIL — prevents the homepage logo from expanding when /ar/ loads or when language state changes */
.site-header .logo-wrap {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}
.site-header .logo-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  max-width: 260px !important;
  overflow: hidden !important;
}
.site-header .logo-icon {
  width: 60px !important;
  max-width: 60px !important;
  height: auto !important;
  flex: 0 0 60px !important;
  display: block !important;
}
.site-header .logo-wordmark {
  width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
  display: block !important;
}
html[dir="rtl"] .site-header .logo-lockup {
  direction: ltr !important;
}
html[dir="rtl"] .site-header .logo-wordmark-wrap {
  align-items: flex-start !important;
  text-align: left !important;
}
@media (max-width: 760px) {
  .site-header .logo-lockup { max-width: 235px !important; }
  .site-header .logo-icon { width: 52px !important; max-width: 52px !important; flex-basis: 52px !important; }
  .site-header .logo-wordmark { width: 135px !important; max-width: 135px !important; }
}
