/* ── Donation popup (shown after download starts) ─────────────────────────── */
.donate-overlay {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}
.donate-overlay[hidden] { display: none; }

.donate-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 420px;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 8px 32px var(--shadow-ring);
  overflow: hidden;
}

.donate-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.donate-modal-title {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.donate-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: var(--fs-title-sm);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  transition: color 0.1s, background 0.1s;
}
.donate-modal-close:hover { color: var(--text); background: var(--hover-overlay); }

.donate-modal-body {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.donate-modal-text {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text);
  line-height: 1.65;
}

.donate-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.donate-cta-btn {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.1s;
  display: inline-flex;
  align-items: center;
}
.donate-cta-btn:hover { opacity: 0.88; }

.donate-dismiss-btn {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.1s, background 0.1s, border-color 0.1s;
}
.donate-dismiss-btn:hover { color: var(--text); background: var(--hover-overlay); border-color: var(--border-hover, var(--border)); }
