:root {
  --bg: #041a12;
  --bg-soft: #072a1e;
  --bg-card-top: #0a3d2b;
  --bg-card-mid: #072a1e;
  --bg-card-bottom: #041a12;
  --gold: #ffd45a;
  --gold-soft: rgba(255, 212, 90, 0.42);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.92);
  --success: #0e5b3f;
  --danger: #803131;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 212, 90, 0.07), transparent 26%),
    linear-gradient(180deg, #052c1e 0%, var(--bg) 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.card {
  width: min(100%, 560px);
  background: linear-gradient(180deg, var(--bg-card-top) 0%, var(--bg-card-mid) 50%, var(--bg-card-bottom) 100%);
  border: 1.45px solid rgba(255, 212, 90, 0.82);
  border-radius: 28px;
  padding: 24px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.title {
  margin: 0;
  color: var(--gold);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
  font-weight: 900;
}

.body {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
}

.amounts-block {
  margin-top: 20px;
}

.label {
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.amount-btn,
.pay-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.amount-btn {
  min-height: 56px;
  padding: 14px 10px;
  border-radius: 16px;
  background: #082e20;
  color: var(--text);
  border: 1px solid rgba(255, 212, 90, 0.4);
  font-weight: 900;
  font-size: 18px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.amount-btn:active,
.pay-btn:active {
  transform: scale(0.985);
}

.amount-btn.is-selected {
  background: var(--success);
  color: var(--gold);
  border-color: rgba(255, 212, 90, 0.88);
}

.pay-btn {
  width: 100%;
  min-height: 60px;
  margin-top: 16px;
  border-radius: 18px;
  background: #0b4a33;
  color: var(--gold);
  border: 1.25px solid rgba(255, 212, 90, 0.82);
  font-weight: 900;
  font-size: 20px;
}

.pay-btn[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.status-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 212, 90, 0.42);
  background: rgba(11, 74, 51, 0.72);
  color: var(--text);
  line-height: 1.45;
  white-space: pre-line;
}

.status-box.is-error {
  background: rgba(128, 49, 49, 0.22);
  border-color: rgba(255, 160, 160, 0.4);
}

.fine-print {
  margin: 14px 2px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 460px) {
  .page {
    padding: 12px;
    align-items: flex-start;
  }

  .card {
    margin-top: 12px;
    padding: 20px 14px;
  }

  .amount-grid {
    grid-template-columns: 1fr;
  }
}


.summary-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8, 46, 32, 0.88);
  border: 1px solid rgba(255, 212, 90, 0.22);
}

.summary-label {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.35;
}

.summary-value {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

.phone-row .summary-value {
  color: var(--gold);
}

.transfer-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.secondary-btn {
  background: #082e20;
  color: var(--text);
  border: 1px solid rgba(255, 212, 90, 0.40);
  font-size: 18px;
}

.instructions-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 46, 32, 0.88);
  border: 1px solid rgba(255, 212, 90, 0.24);
}

.instructions-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.6;
}

.plain-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  color: rgba(255,255,255,0.84);
  text-decoration: none;
  font-weight: 700;
}

.back-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  text-decoration: none;
}
