.rbs-donate-wrap,
.rbs-donate-modal {
  --bg: #0e1320;
  --card: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --bad: #ff6b6b;
  --ok: #37d67a;
  --ring: rgba(255, 209, 102, 0.45);
  --accent: #ffd166;
  --accent2: #55d6be;
  color: var(--text);
}

.rbs-donate-modal-lock {
  overflow: hidden !important;
}

.rbs-donate-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}
.rbs-donate-modal.is-open {
  display: block;
}
.rbs-donate-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.rbs-donate-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
}
.rbs-donate-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.rbs-donate-wrap--modal {
  padding-top: 8px;
}

.rbs-donate-toast {
  position: fixed;
  z-index: 999999;
  right: 16px;
  top: 16px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  background: rgba(14, 19, 32, 0.92);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.rbs-donate-toast.is-in {
  transform: translateY(0);
  opacity: 1;
}

.rbs-donate-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(14, 19, 32, 0.88), rgba(14, 19, 32, 0.72));
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}

.rbs-donate-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.rbs-donate-field { display: grid; gap: 8px; }
.rbs-donate-field > span { color: var(--muted); font-size: 14px; }
.rbs-donate-form input[name="amount"] {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 18px;
  outline: none;
}
.rbs-donate-form input[name="amount"]:focus {
  border-color: rgba(255, 209, 102, 0.55);
  box-shadow: 0 0 0 4px var(--ring);
}

.rbs-donate-presets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.rbs-donate-presets button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.20);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.rbs-donate-presets button:hover {
  border-color: rgba(255, 209, 102, 0.45);
}

.rbs-donate-primary {
  margin-top: 16px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.95), rgba(85, 214, 190, 0.85));
  color: #111;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}
.rbs-donate-primary[disabled] { opacity: 0.7; cursor: not-allowed; }

.rbs-donate-hint { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.rbs-donate-msg {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 12px;
}
.rbs-ok { background: rgba(55, 214, 122, 0.12); border-color: rgba(55, 214, 122, 0.32); }
.rbs-bad { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.32); }
