body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  text-align: center;
  overflow-x: hidden; /* Prevent horizontal scroll on animations */
}

@keyframes gradientShift {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

header {
  padding: 50px 20px 20px;
  position: relative; /* Ensure position for z-index control */
  z-index: 1; /* Ensure it appears above the background */
}

h1 {
  margin-bottom: 30px;
  font-size: 2.5rem;
  background: linear-gradient(to right, #ff00cc, #3333ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.carousel-wrapper {
  position: relative;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  z-index: 1; /* Keep carousel above background but below sparkles */
}

.carousel {
  overflow: hidden;
}

.carousel-item {
  cursor: pointer;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding: 10px 0;
}

.carousel-track img {
  flex-shrink: 0;
  width: 180px;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-track img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 15px rgba(255, 255, 255, 0.5);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  color: white;
  z-index: 2; /* Ensure controls are above the carousel */
}

.left {
  left: 5px;
}

.right {
  right: 5px;
}

main {
  padding: 60px 20px;
  position: relative; /* Ensure position for z-index control */
  z-index: 1; /* Make sure main content stays visible */
}

.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.plan {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  width: 260px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.plan:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(45deg, #ff00cc, #3333ff);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: linear-gradient(45deg, #3333ff, #ff00cc);
  transform: scale(1.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* Full-screen Sparkle Effect */
.full-screen-sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000; /* Ensure sparkles appear above everything */
}

.full-screen-sparkle {
  position: absolute;
  width: 30px; /* Bigger sparkles */
  height: 30px; /* Bigger sparkles */
  background: radial-gradient(circle, #ffcc33, rgba(255, 204, 51, 0) 70%);
  border-radius: 50%;
  animation: sparkleScreenEffect 1.5s ease-in-out forwards;
  opacity: 0;
}

@keyframes sparkleScreenEffect {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  50% {
    transform: scale(1.5); /* Grow larger mid-animation */
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .plans {
    flex-direction: column;
    align-items: center;
  }
}

#reviews-display {
  max-width: 600px;
  margin: auto;
  padding: 1em;
}

.pay-option {
  margin-top: 10px;
}

.pay-option select {
  padding: 8px;
  border-radius: 5px;
  border: none;
  margin-bottom: 10px;
}
