.donations-banner {
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.donations-banner--ok { border-color: rgba(196, 18, 46, 0.45); color: #f0d0d4; }
.donations-banner--warn { border-color: rgba(201, 162, 39, 0.5); color: #e8d48a; }
.donations-banner--error { border-color: rgba(230, 57, 86, 0.5); color: #f5a3b3; }

.donations-steam {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.donations-steam-ok code {
  color: var(--gold);
}

.donations-billing {
  margin: 0 0 1.25rem;
  max-width: 420px;
}
.donations-billing label {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.donations-billing-select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 18, 0.9);
  color: var(--white, #eee);
  font: inherit;
}
.donations-billing-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.donations-invoice-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.donations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.donation-card {
  background: rgba(12, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.donation-card:hover {
  border-color: rgba(201, 162, 39, 0.28);
  transform: translateY(-2px);
}
.donation-card--vip {
  border-top: 2px solid rgba(80, 200, 255, 0.65);
}
.donation-card--vip_plus {
  border-top: 2px solid rgba(255, 200, 60, 0.75);
}
.donation-card--custom_role {
  border-top: 2px solid rgba(180, 120, 255, 0.7);
}

.donation-card-body {
  padding: 1.35rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.donation-card-tier {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.donation-card--vip .donation-card-tier {
  color: #50c8ff;
}
.donation-card--vip_plus .donation-card-tier {
  color: #ffc83c;
}
.donation-card--custom_role .donation-card-tier {
  color: #c4a0ff;
}

.donation-card h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}
.donation-card-desc {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-line;
}
.donation-card-price {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.donation-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.donations-checkout,
.donations-orders,
.donations-recent {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.donations-recent h3,
.donations-orders h3,
.donations-checkout h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--white);
}
.donations-recent-sub,
.donations-recent-empty {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.donations-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.donations-recent-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto auto;
  gap: 0.65rem 1rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}
.donations-recent-user {
  color: var(--gold);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.donations-recent-pack {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.donations-recent-price {
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.donations-recent-date {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .donations-recent-list li {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.75rem;
  }
  .donations-recent-pack {
    grid-column: 1 / -1;
    white-space: normal;
  }
}
.donations-order-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.donations-order-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.donations-status-paid { color: #7ddea0; }
.donations-status-pending { color: #e8d48a; }
.donations-status-cancelled { color: #f5a3b3; }

.donations-terms-note {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.donations-terms-note a {
  color: var(--gold);
}

.purchase-terms-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(4px);
}
.purchase-terms-modal {
  width: min(640px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: #12151b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.purchase-terms-modal h2 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  color: var(--white);
}
.purchase-terms-modal p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}
.purchase-terms-scroll {
  max-height: 220px;
  overflow: auto;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.purchase-terms-scroll strong {
  color: var(--white);
}
.purchase-terms-checks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.purchase-terms-checks label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}
.purchase-terms-checks input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.purchase-terms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}
.purchase-terms-error {
  color: #f5a3b3;
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
  min-height: 1.2em;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

@media (max-width: 640px) {
  .donations-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .donation-card-body {
    padding: 1.1rem;
  }
  .donation-card-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    text-align: center;
  }
  .purchase-terms-actions .btn {
    flex: 1 1 auto;
  }
}
