.donation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.donation-overlay.show {
  opacity: 1;
  visibility: visible;
}

.donation-popup {
  position: relative;
  width: 320px;
  max-width: 90%;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.flower-container {
  width: 100%;
  height: 220px;
  position: relative;
  transform-style: preserve-3d;
  animation: floatFlower 5s ease-in-out infinite;
}

@keyframes floatFlower {
  0%, 100% { transform: translateY(0) rotateY(0); }
  50% { transform: translateY(-15px) rotateY(180deg); }
}

.flower {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
}

.flower-center {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #ffcc00 0%, #ff8800 70%);
  border-radius: 50%;
  top: 70px;
  left: 70px;
  z-index: 10;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
  transform: translateZ(20px);
}

.petal {
  position: absolute;
  width: 80px;
  height: 120px;
  background: linear-gradient(to bottom, #ff5e5e, #ff9d9d);
  border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
  top: 10px;
  left: 60px;
  transform-origin: center bottom;
  animation: petalWave 6s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 94, 94, 0.6);
}

.petal:nth-child(1) { transform: rotateZ(0deg) translateZ(10px); animation-delay: 0s; }
.petal:nth-child(2) { transform: rotateZ(51.4deg) translateZ(10px); animation-delay: -0.5s; }
.petal:nth-child(3) { transform: rotateZ(102.8deg) translateZ(10px); animation-delay: -1s; }
.petal:nth-child(4) { transform: rotateZ(154.2deg) translateZ(10px); animation-delay: -1.5s; }
.petal:nth-child(5) { transform: rotateZ(205.6deg) translateZ(10px); animation-delay: -2s; }
.petal:nth-child(6) { transform: rotateZ(257deg) translateZ(10px); animation-delay: -2.5s; }
.petal:nth-child(7) { transform: rotateZ(308.4deg) translateZ(10px); animation-delay: -3s; }

@keyframes petalWave {
  0%, 100% { transform-origin: center bottom; transform: rotateZ(var(--rotation)) rotateX(0deg) translateZ(10px); }
  50% { transform-origin: center bottom; transform: rotateZ(var(--rotation)) rotateX(20deg) translateZ(10px); }
}

.falling-petals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.falling-petal {
  position: absolute;
  width: 20px;
  height: 30px;
  background: linear-gradient(to bottom, #ff5e5e, #ff9d9d);
  border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
  animation: fallingPetal 10s linear infinite;
  opacity: 0.8;
}

@keyframes fallingPetal {
  0% {
    top: -10%;
    left: var(--left-pos);
    transform: rotateZ(0deg) rotateX(0deg) rotateY(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  100% {
    top: 100%;
    left: calc(var(--left-pos) + 50px);
    transform: rotateZ(360deg) rotateX(180deg) rotateY(180deg);
    opacity: 0;
  }
}

.donation-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 255, 0.95));
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-30px);
  animation: contentAppear 1s forwards;
  animation-delay: 0.5s;
  opacity: 0;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes contentAppear {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.donation-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.donation-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.donation-account {
  background: linear-gradient(to right, #f0f4ff, #e0e8ff);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 100, 0.1);
}

.donation-account-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #666;
  font-size: 0.9rem;
}

.donation-account-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3a3a8c;
}

.donation-button {
  background: linear-gradient(135deg, #6a70cc, #4450d9);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-decoration: none;
  margin-right: 10px;
}

.donation-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 80, 217, 0.4);
}

.close-button {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #ff5e5e, #ff3e3e);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
  z-index: 20;
}

.close-button:hover {
  transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .donation-popup {
    width: 280px;
  }
  
  .flower-container {
    height: 180px;
  }
  
  .flower {
    transform: translateX(-50%) scale(0.9);
  }
  
  .donation-title {
    font-size: 1.5rem;
  }
  
  .donation-text {
    font-size: 0.9rem;
  }
  
  .donation-account-value {
    font-size: 1.1rem;
  }
  
  .donation-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .donation-popup {
    width: 260px;
  }
  
  .flower-container {
    height: 160px;
  }
  
  .flower {
    transform: translateX(-50%) scale(0.8);
  }
  
  .donation-title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
  }
  
  .donation-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .donation-account {
    padding: 8px;
    margin-bottom: 1rem;
  }
  
  .donation-account-label {
    font-size: 0.8rem;
  }
  
  .donation-account-value {
    font-size: 1rem;
  }
  
  .donation-button {
    padding: 7px 14px;
    font-size: 0.85rem;
    margin-right: 5px;
  }
  
  .close-button {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
} 