.donate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
}

.donate-modal.debug {
  border: 2px solid red;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-cyan);
  transform: scale(1.1);
}

.donate-content {
  position: relative;
  background: rgba(18, 18, 18, 0.95);
  color: #ccc;
  padding: 3rem 1.5rem;
  border-radius: 0;
  width: 100%;
  height: 100vh;
  text-align: center;
  box-shadow: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scroll-behavior: smooth;
  backdrop-filter: blur(15px);
}

.donate-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    radial-gradient(#00ffff22 1px, transparent 1px),
    radial-gradient(#39ff1422 1px, transparent 1px);
  background-size: 4px 4px, 6px 6px;
  animation: star-scroll 50s linear infinite;
  z-index: -1;
}

@keyframes star-scroll {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 1000px, 0 600px; }
}

.donate-content h2 {
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
  font-size: 2.2rem;
}

.donate-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #bbb;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.wallet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-green);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(20px);
  opacity: 0;
  animation: cardSlideIn 0.6s ease-out forwards;
}

.wallet-card:nth-child(1) { animation-delay: 0.1s; }
.wallet-card:nth-child(2) { animation-delay: 0.2s; }
.wallet-card:nth-child(3) { animation-delay: 0.3s; }
.wallet-card:nth-child(4) { animation-delay: 0.4s; }
.wallet-card:nth-child(5) { animation-delay: 0.5s; }
.wallet-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardSlideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wallet-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 25px var(--accent-cyan), 0 0 50px var(--accent-green);
}

.wallet-card.btc {
  border-color: #f7931a;
  box-shadow: 0 0 15px #f7931a, 0 0 30px #f7931a66;
}

.wallet-card.btc:hover {
  box-shadow: 0 0 25px #f7931a, 0 0 50px #f7931a;
}

.wallet-card.eth {
  border-color: #2775ca;
  box-shadow: 0 0 15px #2775ca, 0 0 30px #2775ca66;
}

.wallet-card.eth:hover {
  box-shadow: 0 0 25px #2775ca, 0 0 50px #2775ca;
}

.wallet-card.usdc {
  border-color: #2775ca;
  box-shadow: 0 0 15px #2775ca, 0 0 30px #2775ca66;
}

.wallet-card.usdc:hover {
  box-shadow: 0 0 25px #2775ca, 0 0 50px #2775ca;
}

.wallet-card.xrp {
  border-color: #7a5dc7;
  box-shadow: 0 0 15px #7a5dc7, 0 0 30px #7a5dc766;
}

.wallet-card.xrp:hover {
  box-shadow: 0 0 25px #7a5dc7, 0 0 50px #7a5dc7;
}

.wallet-card.xlm {
  border-color: #22d47b;
  box-shadow: 0 0 15px #22d47b, 0 0 30px #22d47b66;
}

.wallet-card.xlm:hover {
  box-shadow: 0 0 25px #22d47b, 0 0 50px #22d47b;
}

.wallet-card.hbar {
  border-color: #9c4dcc;
  box-shadow: 0 0 15px #9c4dcc, 0 0 30px #9c4dcc66;
}

.wallet-card.hbar:hover {
  box-shadow: 0 0 25px #9c4dcc, 0 0 50px #9c4dcc;
}

.wallet-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.wallet-header h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.wallet-card img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px currentColor);
  transition: all 0.3s ease;
}

.wallet-card:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px currentColor);
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-row:last-child {
  margin-bottom: 0;
}

.wallet-row code {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-row .label {
  white-space: nowrap;
  font-weight: 600;
  color: var(--accent-cyan);
  min-width: 60px;
}

.wallet-address {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.wallet-memo {
  font-style: italic;
  overflow-wrap: anywhere;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #aaa;
}

.copy-btn {
  position: relative;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: var(--font-code);
  min-width: 60px;
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-cyan);
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-tooltip {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: #000;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  animation: fadeInOut 1.5s ease forwards;
  box-shadow: 0 0 10px var(--accent-green);
  font-weight: 600;
  white-space: nowrap;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(5px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
}

@keyframes wallet-glow {
  0% { box-shadow: 0 0 15px var(--accent-cyan); }
  50% { box-shadow: 0 0 30px var(--accent-cyan), 0 0 50px var(--accent-green); }
  100% { box-shadow: 0 0 15px var(--accent-cyan); }
}

.wallet-card.copied {
  animation: wallet-glow 0.8s ease-out;
}

/* Floating Donate Button */
.floating-donate-btn {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent-magenta), #ff6b9d);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 46, 99, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.floating-donate-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 46, 99, 0.6);
}

.floating-donate-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-donate-btn svg {
  width: 20px;
  height: 20px;
}

/* Ensure no overlap with back-to-top button */
@media (max-width: 1200px) {
  .floating-donate-btn {
    bottom: 2rem;
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .floating-donate-btn {
    bottom: 1rem;
    right: 0.5rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .floating-donate-btn {
    bottom: 0.5rem;
    right: 0.25rem;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
  }
}

/* Currency Switcher */
.currency-switcher {
  margin-bottom: 2rem;
  text-align: center;
}

.currency-switcher h4 {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.currency-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.currency-btn {
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.3);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.currency-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.currency-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Active Currency Highlight */
.wallet-card.active-currency {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
  transform: scale(1.02);
}

.wallet-card.currency-switching {
  animation: currencyPulse 0.5s ease-in-out;
}

@keyframes currencyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Enhanced Copy Button */
.copy-btn.copied-success {
  background: var(--accent-green);
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
}

.wallet-card.celebrating {
  animation: celebrateGlow 2s ease-in-out;
}

@keyframes celebrateGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 46, 99, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 46, 99, 0.8); }
}

/* Mini Sparkles */
.mini-sparkle {
  position: absolute;
  font-size: 1.2rem;
  pointer-events: none;
  animation: sparkleFloat 1s ease-out forwards;
  z-index: 10;
}

@keyframes sparkleFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.5);
  }
}

/* Confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #ff6b6b;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Modal Animations */
.modal-entering {
  animation: modalSlideIn 0.3s ease-out;
}

.modal-exiting {
  animation: modalSlideOut 0.3s ease-in;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

/* Enhanced Copy Tooltip */
.copy-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 100;
  animation: tooltipBounce 0.3s ease-out;
}

@keyframes tooltipBounce {
  0% { transform: translateX(-50%) scale(0.8); opacity: 0; }
  50% { transform: translateX(-50%) scale(1.1); }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .donate-content {
    padding: 2rem 1rem;
  }
  
  .donate-content h2 {
    font-size: 1.8rem;
  }
  
  .donate-content p {
    font-size: 1rem;
  }
  
  .wallet-list {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .wallet-card {
    padding: 1.25rem;
  }
  
  .wallet-header h3 {
    font-size: 1.1rem;
  }
  
  .wallet-card img {
    width: 32px;
    height: 32px;
  }
  
  .wallet-row {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .wallet-row code {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
  
  .copy-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    min-width: 50px;
  }
}

@media (max-width: 480px) {
  .wallet-card {
    padding: 1rem;
  }
  
  .wallet-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .wallet-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .wallet-row .label {
    min-width: auto;
    text-align: center;
  }
  
  .copy-btn {
    align-self: center;
    margin-top: 0.5rem;
  }
}

.donation-section {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.donation-content {
  max-width: 600px;
  margin: 0 auto;
}

