body {
  min-height: 100vh;
}

/* donate page uses the red cursor (--accent2, the colour of the donate button) */
.cursor {
  background: var(--accent2);
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-ring {
  border-color: rgba(var(--accent2-rgb), 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}

/* donate nav button is filled (active page) */
.nav-donate {
  background: var(--accent2);
  border: 1px solid var(--accent2);
  color: #000;
  font-weight: 700;
}

.nav-donate:hover {
  background: var(--accent2);
  color: #000;
}

/* ─── PAGE WRAPPER ─── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
}

/* ─── HEADER ─── */
.donate-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeUp 0.7s ease both;
}

.donate-header .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.donate-header h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.9;
  color: var(--text);
}

.donate-header h1 span {
  color: var(--accent2);
}

.donate-header p {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── CARD ─── */
.donate-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(var(--accent2-rgb), 0.18);
  padding: 2.5rem;
  animation: fadeUp 0.7s 0.12s ease both;
  position: relative;
  overflow: hidden;
}

.donate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent2);
}

/* ─── AMOUNT INPUT ─── */
.amount-section {
  margin-bottom: 2rem;
}

.input-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
  display: block;
}

.amount-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s;
}

.amount-input-wrap:focus-within {
  border-color: var(--accent2);
}

.currency-symbol {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent2);
  padding: 0.6rem 1rem;
  border-right: 1px solid var(--border);
  line-height: 1;
}

.amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  padding: 0.5rem 1rem;
  letter-spacing: 0.05em;
  width: 100%;
}

.amount-input::placeholder {
  color: var(--muted);
}

/* ─── QUICK AMOUNTS ─── */
.quick-amounts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.quick-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.quick-btn:hover,
.quick-btn.selected {
  border-color: var(--accent2);
  color: var(--accent2-text);
  background: rgba(var(--accent2-rgb), 0.07);
}

/* ─── MESSAGE ─── */
.message-section {
  margin-bottom: 2rem;
}

.message-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.9rem 1rem;
  resize: none;
  min-height: 90px;
  transition: border-color 0.2s;
  line-height: 1.6;
}

.message-input::placeholder {
  color: var(--muted);
}

.message-input:focus {
  border-color: var(--accent2);
}

/* ─── DIVIDER ─── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.or-divider span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── PAYPAL BUTTON ─── */
.paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem;
  background: #ffc439;
  border: none;
  cursor: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: #003087;
  position: relative;
  overflow: hidden;
  transition:
    filter 0.2s,
    transform 0.15s;
  text-decoration: none;
}

.paypal-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.paypal-logo {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.paypal-logo .pay {
  color: #003087;
}

.paypal-logo .pal {
  color: #009cde;
}

/* ─── KOFI BUTTON ─── */
.kofi-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 94, 91, 0.35);
  cursor: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: #ff5e5b;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
  text-decoration: none;
  margin-top: 0.8rem;
}

.kofi-btn:hover {
  background: rgba(255, 94, 91, 0.08);
  border-color: #ff5e5b;
  transform: translateY(-2px);
}

.kofi-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

/* ─── PRIVACY NOTE ─── */
.privacy-note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.privacy-note span {
  color: var(--accent);
}

/* ─── PERKS ─── */
.perks-row {
  display: flex;
  gap: 1px;
  background: var(--border);
  width: 100%;
  max-width: 520px;
  margin-top: 2rem;
  animation: fadeUp 0.7s 0.22s ease both;
}

.perk {
  flex: 1;
  background: var(--bg);
  padding: 1.4rem 1rem;
  text-align: center;
}

.perk-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}

.perk-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.perk-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.3rem;
}

.perk-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── MESSAGE STATUS ───
   Feedback for the optional shoutout message (see js/public/donate.js). The
   message is delivered by a background fetch while the PayPal/Ko-fi tab
   opens, so this line is the only signal the supporter ever gets. */
.message-status {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
}

.message-status[hidden] {
  display: none;
}

.message-status.is-pending {
  color: var(--muted);
  border-color: var(--border);
}

.message-status.is-ok {
  color: var(--positive);
  border-color: rgba(var(--positive-rgb), 0.25);
  background: rgba(var(--positive-rgb), 0.05);
}

.message-status.is-error {
  color: var(--accent2-text);
  border-color: rgba(var(--accent2-rgb), 0.3);
  background: rgba(var(--accent2-rgb), 0.05);
}

/* ─── DONATE: MOBILE ───
   The page had no mobile rules at all: a 3rem gutter, a 5-across quick-amount
   row and desktop-sized buttons on a 375px screen. */
@media (max-width: 600px) {
  .page-wrapper {
    padding-inline: 1.25rem;
  }

  .donate-card {
    padding: 1.5rem 1.25rem;
  }

  /* Five fixed-width chips did not fit one row; they now wrap into a grid
     with targets big enough to hit. */
  .quick-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
    gap: 0.5rem;
  }

  .quick-btn {
    min-height: 44px;
  }

  /* Below 16px iOS Safari zooms the viewport on focus and stays zoomed. */
  .amount-input,
  .message-input {
    font-size: 16px;
  }

  .paypal-btn,
  .kofi-btn {
    min-height: 52px;
  }

  /* Perk columns side by side are unreadable at this width - .perks-row is
     a flex row, so it stacks rather than being re-templated as a grid. */
  .perks-row {
    flex-direction: column;
  }
}

/* ─── PHONES: 12PX TEXT FLOOR ───
   This page's text under 0.75rem, lifted to it on phones - see the block of
   the same name at the end of base/shared.css. */
@media (max-width: 600px) {
  .donate-header .label,
  .input-label,
  .quick-btn,
  .or-divider span,
  .privacy-note,
  .perk-title,
  .message-status {
    font-size: 0.75rem;
  }
}
