.page-donate .donate-main {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
}

.donate-hero {
  padding: 2rem 2rem 2.5rem;
  text-align: center;
}

.donate-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.donate-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.donate-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.donate-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.donate-payments {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.donate-payments li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 999px;
}

.donate-payments .payment-yoomoney {
  color: #8b3ffd;
  border-color: rgba(139, 63, 253, 0.4);
  background: rgba(139, 63, 253, 0.12);
}

.payment-icon {
  font-size: 0.95rem;
}

.donate-shop {
  padding-bottom: 4rem;
}

.shop-status {
  text-align: center;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}

.shop-status--warn {
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--accent);
}

.shop-status--error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.shop-status--info {
  background: var(--purple-soft);
  border: 1px solid rgba(107, 92, 231, 0.3);
  color: var(--text-muted);
}

.shop-loading {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.35);
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.product-desc {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-buy {
  width: 100%;
  justify-content: center;
}

.product-buy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.checkout-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  z-index: 1;
}

.checkout-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.checkout-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.checkout-product {
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.checkout-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.checkout-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.checkout-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
}

.checkout-input:focus {
  outline: none;
  border-color: var(--accent);
}

.checkout-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.35rem 0 1rem;
}

.checkout-error {
  color: #fca5a5;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.checkout-submit {
  width: 100%;
  justify-content: center;
}

.donate-warning {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.donate-warning h3 {
  margin-bottom: 0.5rem;
}

.donate-warning p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.donate-success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.success-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-details {
  display: grid;
  gap: 0.5rem;
  text-align: left;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.success-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.success-details dt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.success-details dd {
  font-weight: 700;
}

.order-id {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.footer-small a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
