* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #eef4ef;
  --bg-2: #f8faf5;
  --bg-radial-a: rgba(29, 158, 104, 0.2);
  --bg-radial-b: rgba(255, 191, 82, 0.18);
  --grid-line: rgba(255, 255, 255, 0.28);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #163127;
  --muted: #5e7267;
  --accent: #167c52;
  --accent-strong: #0f6a44;
  --accent-soft: rgba(22, 124, 82, 0.14);
  --warning-soft: rgba(255, 191, 82, 0.2);
  --warning-text: #7b5a00;
  --border: rgba(22, 49, 39, 0.12);
  --shadow: 0 22px 70px rgba(17, 46, 35, 0.15);
  --header-bg: rgba(238, 244, 239, 0.76);
  --header-border: rgba(22, 49, 39, 0.08);
  --chip-bg: rgba(255, 255, 255, 0.82);
  --footer-bg: rgba(255, 255, 255, 0.35);
  --input-bg: rgba(255, 255, 255, 0.9);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--bg-radial-a), transparent 38%),
    radial-gradient(circle at top right, var(--bg-radial-b), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 75%);
}

img {
  display: block;
  max-width: 100%;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: none;
  background: linear-gradient(90deg, #2b292a, #353132);
  border-bottom: 4px solid #c66f1a;
}

.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
}

.brand-mark__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark__icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-showcase {
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  padding: 30px;
}

.logo-showcase__image {
  width: min(340px, 68vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 6px;
  color: #ffffff;
  border: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Oswald', 'Manrope', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #ef8a1e;
}

.page-shell {
  padding: 32px 0 56px;
}

.hero-card,
.panel {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-card--campaign {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.hero-copy {
  padding: 8px;
}

.eyebrow,
.section-kicker,
.impact-card span,
.help-item strong {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-text,
.prose-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-actions--single {
  justify-content: center;
}

.hero-actions--single .primary-button {
  width: clamp(260px, 60%, 420px);
  padding: 16px 28px;
  font-size: 1.08rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(15, 106, 68, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.shortcut-card:hover,
.site-footer a:hover {
  transform: translateY(-1px);
}

.primary-button--full {
  width: 100%;
}

.secondary-button {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--chip-bg);
  box-shadow: 0 12px 24px rgba(17, 46, 35, 0.08);
}

.hero-visual {
  display: grid;
  gap: 16px;
  align-content: start;
  height: 100%;
}

.hero-card--campaign .hero-visual {
  display: flex;
  align-self: stretch;
}

.carousel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  min-height: 360px;
}

.carousel-track {
  position: relative;
  min-height: 360px;
}

.carousel-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  pointer-events: none;
  z-index: 3;
}

.carousel-control {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(8, 14, 12, 0.35);
  cursor: pointer;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.image-frame {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  position: relative;
  background: var(--surface-strong);
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 24, 19, 0.02), rgba(10, 24, 19, 0.28));
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--landing {
  min-height: 360px;
}

.impact-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.impact-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.impact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 20px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.stat-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong {
  font-size: clamp(1.04rem, 2vw, 1.4rem);
}

.stat-card--accent {
  background: linear-gradient(135deg, rgba(22, 124, 82, 0.16), rgba(22, 124, 82, 0.06));
  border-color: rgba(22, 124, 82, 0.22);
}

.progress-block {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-head strong {
  color: var(--text);
  font-size: 1rem;
}

.progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(127, 160, 147, 0.24);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ed39b, var(--accent), #0f8f5a);
  box-shadow: 0 10px 20px rgba(22, 124, 82, 0.26);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 26px;
}

.panel--soft {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.12;
}

.prose-panel {
  margin-top: 22px;
}

.prose-panel p + p {
  margin-top: 14px;
}

.impact-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.impact-item {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.impact-item h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.impact-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.content-grid--mission {
  align-items: start;
}

.help-grid,
.shortcut-grid,
.donation-list,
.campaign-grid,
.flash-stack,
.donation-form,
.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.donation-form {
  background: linear-gradient(180deg, rgba(22, 124, 82, 0.08), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(22, 124, 82, 0.16);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.donation-form--hero {
  margin-top: 0;
  min-height: 0;
  height: 100%;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.donation-inline-form {
  display: grid;
  gap: 12px;
}

.donation-inline-form__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.donation-inline-form__row {
  display: flex;
  align-items: center;
  border: 1px solid rgba(22, 124, 82, 0.2);
  border-radius: 16px;
  background: var(--surface-strong);
  padding: 2px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.donation-inline-form__row:focus-within {
  border-color: rgba(22, 124, 82, 0.44);
  box-shadow: 0 0 0 4px rgba(22, 124, 82, 0.14);
}

.donation-inline-form__prefix {
  padding: 0 14px;
  font-weight: 800;
  color: var(--accent);
}

.donation-inline-form__input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 14px 14px 4px;
}

.donation-inline-form__input::placeholder {
  color: #9aa9a2;
  font-weight: 600;
}

.donation-inline-form__input::-webkit-outer-spin-button,
.donation-inline-form__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.donation-inline-form__input[type='number'] {
  -moz-appearance: textfield;
}

.donation-inline-form__hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.donation-inline-form__button {
  margin-top: 6px;
}

.help-item,
.shortcut-card,
.donation-item,
.donation-empty,
.donation-error,
.empty-state--compact,
.campaign-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.help-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.help-item strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
}

.help-item p,
.campaign-description,
.donation-empty,
.donation-error {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.shortcut-card {
  box-shadow: 0 14px 30px rgba(17, 46, 35, 0.08);
}

.shortcut-card span,
.campaign-badge,
.campaign-date,
.flash {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shortcut-card strong {
  font-size: 1.04rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-group--full {
  grid-column: 1 / -1;
}

.field-group span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.field-input,
.field-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  padding: 14px 16px;
  color: var(--text);
  outline: none;
}

.field-input:focus,
.field-textarea:focus {
  border-color: rgba(22, 124, 82, 0.44);
  box-shadow: 0 0 0 4px rgba(22, 124, 82, 0.16);
}

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

.donation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.donation-name {
  font-weight: 700;
}

.donation-value {
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.flash--success {
  color: #0f6a44;
  background: rgba(22, 124, 82, 0.12);
  border-color: rgba(22, 124, 82, 0.18);
}

.flash--error {
  color: #8a3d18;
  background: rgba(214, 103, 52, 0.12);
  border-color: rgba(214, 103, 52, 0.18);
}

.empty-state {
  display: grid;
  gap: 16px;
  place-items: start;
}

.campaign-card {
  box-shadow: 0 16px 32px rgba(17, 46, 35, 0.08);
}

.campaign-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.campaign-card__header h3 {
  margin: 8px 0 0;
  font-size: 1.1rem;
}

.campaign-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.campaign-meta span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.campaign-meta strong {
  font-size: 1rem;
}

.campaign-badge {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
}

.campaign-badge--active {
  color: #0f6a44;
  background: rgba(22, 124, 82, 0.12);
}

.campaign-badge--inactive {
  color: var(--warning-text);
  background: var(--warning-soft);
}

.campaign-date {
  color: var(--muted);
  white-space: nowrap;
}

.campaign-progress {
  margin-bottom: 14px;
}

.campaign-actions {
  display: flex;
  justify-content: flex-end;
}

.campaign-actions--muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-panel {
  max-width: 560px;
  margin: 0 auto;
}

.field-grid--auth {
  grid-template-columns: 1fr;
}

.receipt-panel {
  max-width: 680px;
}

.receipt-grid {
  margin: 16px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.receipt-grid div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

.receipt-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.receipt-grid strong {
  font-size: 1rem;
}

.receipt-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--header-border);
  background: var(--footer-bg);
}

.site-footer__inner {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-card,
  .content-grid,
  .field-grid,
  .campaign-meta,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .image-frame {
    min-height: 320px;
  }

  .carousel,
  .carousel-track {
    min-height: 320px;
  }

  .site-header__inner,
  .site-footer__inner,
  .campaign-card__header {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding: 18px 0 34px;
  }

  .hero-card,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .stats-grid,
  .site-nav {
    width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .site-header__inner {
    gap: 14px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .site-nav a,
  .primary-button,
  .secondary-button {
    width: 100%;
    text-align: center;
  }

  .progress-head,
  .donation-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .site-footer,
  .receipt-actions {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .page-shell,
  .receipt-panel {
    width: 100%;
    margin: 0;
    max-width: 100%;
    box-shadow: none;
    border: 0;
  }
}
