* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: transparent;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}

.donate { max-width: 540px; margin: 0 auto; padding: 8px; }

.dn-loading, .dn-notice {
  text-align: center;
  padding: 28px 18px;
  color: #667085;
  font-size: 13px;
}
.dn-notice {
  border: 0.5px solid #e4b4b4;
  background: #fcf3f3;
  color: #8a2b2b;
  border-radius: 10px;
}

/* Frequency toggle */
.dn-freq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 0.5px solid #4cad49;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.dn-freq-btn {
  appearance: none;
  border: 0;
  background: #fff;
  color: #4cad49;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dn-freq-btn + .dn-freq-btn { border-left: 0.5px solid #4cad49; }
.dn-freq-btn.active { background: #4cad49; color: #fff; }

.dn-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4cad49;
  margin-bottom: 10px;
}

/* Amount tiles */
.dn-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 420px) {
  .dn-amounts { grid-template-columns: repeat(2, 1fr); }
}
.dn-amount {
  appearance: none;
  background: #fff;
  border: 0.5px solid #d0d5dd;
  border-radius: 10px;
  padding: 14px 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.dn-amount:hover { border-color: #4cad49; }
.dn-amount.active {
  background: #4cad49;
  border-color: #4cad49;
  color: #fff;
}

/* Custom amount */
.dn-custom {
  display: flex;
  align-items: center;
  border: 0.5px solid #d0d5dd;
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 16px;
}
.dn-custom:focus-within { border-color: #4cad49; }
.dn-custom-sign { color: #667085; font-size: 15px; margin-right: 6px; }
.dn-custom input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  padding: 13px 0;
}

/* Error */
.dn-error {
  display: none;
  background: #fcf3f3;
  border: 0.5px solid #e4b4b4;
  color: #8a2b2b;
  font-size: 13px;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
}
.dn-error.visible { display: block; }

/* Submit */
.dn-submit {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #4cad49;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.dn-submit:hover { background: #429a3f; }
.dn-submit:disabled { background: #9bc99a; cursor: default; }

.dn-fine {
  font-size: 11px;
  color: #98a2b3;
  text-align: center;
  line-height: 1.6;
  margin-top: 14px;
}
