.donation-panel {
  display: grid;
  gap: 32px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong, #285c52);
  border-radius: 12px;
  background: linear-gradient(125deg, #122a25, var(--surface, #10161c) 65%);
}

.donation-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
}

.services-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong, #285c52);
}

.services-copy {
  max-width: 76ch;
}

.services-copy h3 {
  font-size: 1.1rem;
}

.services-copy p {
  margin-top: 12px;
  color: var(--muted, #9bb0ad);
  font-size: 0.9rem;
  line-height: 1.7;
}

.services-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.services-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  color: var(--primary, #36e7c4);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-color: var(--line-strong, #285c52);
}

.services-links a:hover {
  color: var(--primary-strong, #6affdd);
  text-decoration-color: currentColor;
}

@media (max-width: 850px) {
  .services-promo {
    grid-template-columns: 1fr;
  }
}

.donation-copy {
  max-width: 58ch;
}

.donation-copy .eyebrow {
  margin-bottom: 12px;
}

.donation-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.donation-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted, #9bb0ad);
  line-height: 1.65;
}

.donation-actions {
  flex-shrink: 0;
}

.donation-actions .button {
  white-space: nowrap;
}

.button.paypal {
  color: #10233f;
  background: var(--gold, #ffd18a);
  border-color: var(--gold, #ffd18a);
  box-shadow: 0 6px 22px #ffd18a1f;
}

.button.paypal:hover {
  color: #10233f;
  background: #ffe0ae;
  border-color: #ffe0ae;
}

.donation-actions .button.paypal:focus-visible {
  outline: 3px solid #ffe0ae;
  outline-offset: 4px;
}

.donation-actions .donation-note {
  margin: 10px 0 0;
  text-align: center;
}

body.donation-modal-open {
  overflow: hidden;
}

.donation-dialog:not([open]) {
  display: none;
}

.donation-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 5vw, 32px);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--text, #eef7f5);
  color-scheme: dark;
  background: var(--surface, #10161c);
  border: 1px solid var(--line-strong, #285c52);
  border-radius: 16px;
  box-shadow: 0 24px 100px #0009;
}

.donation-dialog::backdrop {
  background: #03070cd9;
  backdrop-filter: blur(6px);
}

.donation-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.donation-dialog h2 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 4.5vw, 1.75rem);
  line-height: 1.25;
}

.donation-dialog-intro {
  margin: 16px 0 24px;
  color: var(--muted, #9bb0ad);
  line-height: 1.6;
}

.donation-dialog button,
.donation-dialog input,
.donation-dialog textarea {
  font: inherit;
}

.donation-dialog .donation-close {
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line, #29413c);
  border-radius: 8px;
  background: var(--surface-2, #141d23);
  color: var(--text, #eef7f5);
  font-size: 1.5rem;
  cursor: pointer;
}

.donation-form fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.donation-form legend,
.donation-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.donation-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.donation-presets button {
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line, #29413c);
  border-radius: 8px;
  background: var(--surface-2, #141d23);
  color: var(--text, #eef7f5);
  font-weight: 800;
  cursor: pointer;
}

.donation-presets button[aria-pressed="true"] {
  border-color: var(--primary, #36e7c4);
  background: #163d34;
  color: var(--primary-strong, #6affdd);
}

.donation-close:hover,
.donation-presets button:hover {
  border-color: var(--primary, #36e7c4);
  background: #1b302c;
}

.donation-amount-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donation-amount-row span {
  color: var(--muted, #9bb0ad);
  font-weight: 700;
}

.donation-form input[type="number"],
.donation-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line, #29413c);
  border-radius: 8px;
  background: var(--bg-2, #0d1217);
  color: var(--text, #eef7f5);
}

.donation-form textarea {
  resize: vertical;
  min-height: 86px;
  max-height: 220px;
}

.donation-form textarea::placeholder {
  color: var(--muted, #9bb0ad);
}

.donation-form label span {
  color: var(--muted, #9bb0ad);
  font-weight: 400;
}

.donation-error {
  margin: 10px 0 0;
  color: #ff9da8;
  font-size: 0.875rem;
  line-height: 1.5;
}

.donation-form [aria-invalid="true"] {
  border-color: #ff9da8;
}

.donation-submit {
  width: 100%;
  margin-top: 20px;
  cursor: pointer;
}

.donation-note {
  margin: 14px 0 0;
  color: var(--muted, #9bb0ad);
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.donation-dialog :focus-visible,
.donation-actions :focus-visible {
  outline: 2px solid var(--primary, #36e7c4);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .donation-overview {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .donation-actions .button {
    width: 100%;
  }
}
