/* Gradient Animations */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradient-fade {
  0% { 
    background-position: 0% 50%;
    opacity: 1;
  }
  50% { 
    background-position: 100% 50%;
    opacity: 0.8;
  }
  100% { 
    background-position: 0% 50%;
    opacity: 1;
  }
}

.gradient-fade-bg {
  position: relative;
  overflow: hidden;
}

.gradient-fade-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(139, 92, 246, 0.06) 25%,
    rgba(236, 72, 153, 0.04) 50%,
    rgba(255, 255, 255, 0) 75%
  );
  background-size: 200% 200%;
  animation: gradient-fade 10s ease infinite;
  z-index: 0;
  pointer-events: none;
}

.gradient-fade-bg > * {
  position: relative;
  z-index: 1;
}

.gradient-animated {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  color: white;
}

.gradient-border {
  position: relative;
  background: white;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gradient-text {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.gradient-bg {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.gradient-hover {
  transition: all 0.3s ease;
}

.gradient-hover:hover {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 1rem;
}

.plan {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 
    0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.plan.highlight {
  border: none;
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3);
}

.plan.highlight::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.plan h3 {
  color: #000000;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan .price {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan .cpu-type {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  border-radius: 8px;
}

.plan p {
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 3rem;
}

.plan .features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.plan .features li {
  color: #1a1a1a;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.plan .features li::before {
  content: "✓";
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.plan .btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.plan:not(.highlight) .btn {
  background: transparent;
  color: #000000;
  border: 2px solid #e5e7eb;
  animation: none;
}

.plan:not(.highlight) .btn:hover {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  color: white;
  border-color: transparent;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .plan.highlight {
    transform: none;
  }
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Dropdown Menu Styles */
.dropdown-container {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  z-index: 50;
  min-width: 14rem;
  background: white;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu.hidden {
  display: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dropdown-menu a:hover {
  background-color: #f3f4f6;
}

.dropdown-menu span {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

