.pricing-panel {
  position: relative;
  background-color: #f8f9fa;
  padding: 0 2rem 2rem 2rem; /* top padding set to 0 */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 
              inset 0 -2px 4px rgba(255, 255, 255, 0.6);
  border: 1px solid #d3d3d3;
  margin-bottom: 2rem; /* margin-top removed */
  overflow: hidden;
}

.pricing-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.pricing-card {
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 400px;
  margin-bottom: 1rem;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.free-plan {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.pro-plan {
  background: linear-gradient(135deg, #d4e6f1, #a9cce3);
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 10;
  animation: gradient-animation 5s ease infinite, breathing-shadow 3s infinite alternate;
  background-size: 200% 200%;
}

.pro-plan:hover {
  transform: scale(1.1) translateY(-10px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.pro-plan::before {
  content: "Most Popular";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc107;
  color: #fff;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pricing-card .card-body {
  padding: 2rem;
  opacity: 0.9;
}

.pricing-card .card-title {
  font-size: 2rem;
  font-weight: bold;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  margin-bottom: 0.5rem;
  opacity: 0;
  transition: transform 0.3s;
}

/* Staggered fadeIn for all features-list items */
.features-list li:nth-child(1) {
  animation: fadeIn 0.5s ease-in-out forwards 0.2s;
}
.features-list li:nth-child(2) {
  animation: fadeIn 0.5s ease-in-out forwards 0.4s;
}
.features-list li:nth-child(3) {
  animation: fadeIn 0.5s ease-in-out forwards 0.6s;
}

/* Float animation only for pro-plan features with staggered delays */
.pro-plan .features-list li:nth-child(1) {
  animation: fadeIn 0.5s ease-in-out forwards 0.2s, float-animation 2s ease-in-out infinite alternate 0s;
}
.pro-plan .features-list li:nth-child(2) {
  animation: fadeIn 0.5s ease-in-out forwards 0.4s, float-animation 2s ease-in-out infinite alternate 0.2s;
}
.pro-plan .features-list li:nth-child(3) {
  animation: fadeIn 0.5s ease-in-out forwards 0.6s, float-animation 2s ease-in-out infinite alternate 0.4s;
}

.pro-plan:hover .features-list li {
  transform: translateX(10px);
}

.pro-plan .btn-primary {
  animation: pulse 1.5s infinite;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 10px 10px rgba(0, 123, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

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

@keyframes breathing-shadow {
  0% {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
  100% {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
}

@keyframes float-animation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (min-width: 768px) {
  .pricing-card {
    width: 45%;
  }
}
