* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #090b13;
  --card: rgba(20, 23, 38, 0.88);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f7f7fb;
  --muted: #a8adbd;
  --primary: #7c5cff;
  --primary-light: #9e8aff;
  --success: #45d79c;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 92, 255, 0.2), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(69, 215, 156, 0.12), transparent 35%),
    var(--background);
}

button {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.donation-card {
  width: min(100%, 580px);
  padding: 42px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 999px;
  color: var(--primary-light);
  background: rgba(124, 92, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  max-width: 470px;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.subtitle {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.progress-wrapper {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-info strong {
  color: var(--text);
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.amount-button {
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.amount-button:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.11);
}

.amount-button.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #6142e8);
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.3);
}

.selected-value {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.selected-value strong {
  color: var(--text);
}

.donate-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #5d3ce2);
  box-shadow: 0 15px 34px rgba(124, 92, 255, 0.3);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.donate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.42);
}

.donate-button:active {
  transform: scale(0.99);
}

.security-text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 560px) {
  .donation-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-info,
  .selected-value {
    flex-direction: column;
    gap: 6px;
  }
}

.status-message {
  min-height: 22px;
  margin-top: 14px;
  font-size: 0.86rem;
  text-align: center;
}

.status-message.error { color: #ff8f9b; }
.status-message.success { color: var(--success); }

.donate-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}
