/* ── Donations Modal ── */
#donate-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 260;
  backdrop-filter: blur(8px);
}

#donate-modal.hidden {
  display: none;
}

.donate-content {
  position: relative;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  width: 92%;
  padding: 30px;
  background: rgba(10, 10, 25, 0.95);
  border: 2px solid #00ff88;
  border-radius: 12px;
  box-shadow:
    0 0 30px rgba(0, 255, 136, 0.3),
    inset 0 0 20px rgba(0, 255, 136, 0.05);
  font-family: 'Courier New', monospace;
}

/* Scanline sweep across top */
.donate-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff88, transparent);
  animation: donate-scanline 3s ease-in-out infinite;
  border-radius: 12px 12px 0 0;
}

@keyframes donate-scanline {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

/* ── Glitch Title ── */
.donate-title {
  font-size: 22px;
  color: #00ff88;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 4px;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
  animation: donate-glitch 4s ease-in-out infinite;
}

@keyframes donate-glitch {
  0%, 88%, 96%, 100% {
    transform: translate(0);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
  }
  90% {
    transform: translate(-3px, 1px) skewX(2deg);
    text-shadow: -3px 0 #ff0055, 3px 0 #9d00ff;
  }
  92% {
    transform: translate(3px, -1px) skewX(-1deg);
    text-shadow: 3px 0 #ff0055, -3px 0 #00f3ff;
  }
  94% {
    transform: translate(-1px, 2px);
    text-shadow: -2px 0 #00ff88, 2px 0 #ff0055;
  }
}

.donate-subtitle {
  font-size: 13px;
  color: rgba(0, 255, 136, 0.5);
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

/* ── Tab Switcher ── */
.donate-tabs {
  display: flex;
  border-bottom: 2px solid rgba(0, 255, 136, 0.15);
  margin-bottom: 20px;
}

.donate-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donate-tab:hover {
  color: rgba(255, 255, 255, 0.7);
}

.donate-tab.active {
  color: #00ff88;
  border-bottom: 2px solid #00ff88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

/* ── Panels ── */
.donate-panel.hidden {
  display: none;
}

/* ── Card Tab (Stripe) ── */
.donate-info {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 16px;
}

.donate-amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.donate-amount-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  padding: 14px 8px;
  color: #00ff88;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donate-amount-btn:hover {
  background: #00ff88;
  color: #000; /* NOSONAR - hover state has bright background */
  border-color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.donate-custom {
  grid-column: 1 / -1;
  font-size: 13px;
}

.donate-powered {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* ── Crypto Tab ── */
.crypto-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crypto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 8px;
  padding: 16px;
}

.crypto-icon {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
}

.crypto-icon-btc { color: #f7931a; text-shadow: 0 0 8px rgba(247, 147, 26, 0.4); }
.crypto-icon-eth { color: #627eea; text-shadow: 0 0 8px rgba(98, 126, 234, 0.4); }
.crypto-icon-sol { color: #9945ff; text-shadow: 0 0 8px rgba(153, 69, 255, 0.4); }

.crypto-qr {
  border: 2px solid rgba(0, 255, 136, 0.2);
  border-radius: 4px;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(100deg) drop-shadow(0 0 6px rgba(0, 255, 136, 0.4));
}

.crypto-addr {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  word-break: break-all;
  text-align: center;
  line-height: 1.4;
  max-width: 280px;
}

.crypto-copy-btn {
  background: transparent;
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 4px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.crypto-copy-btn:hover {
  background: #00ff88;
  color: #000; /* NOSONAR - hover state has bright background */
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* ── Close Button ── */
.donate-close-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: transparent;
  color: #00ff88;
  border: 2px solid #00ff88;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.donate-close-btn:hover {
  background: #00ff88;
  color: #000; /* NOSONAR - hover state has bright background */
  box-shadow: 0 0 20px #00ff88;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .donate-amount-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .donate-amount-btn {
    font-size: 14px;
    padding: 10px 6px;
  }

  .crypto-qr {
    width: 100px;
    height: 100px;
  }
}
