/* Marketplace style */
.dark-theme {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  color: #e2e8f0;
}

.glass-effect {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.gradient-text {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.funnel-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: visible !important;
}

/* Reduced hover movement to prevent shakiness */
.funnel-card:hover {
  transform: translateY(-4px); /* Reduced from -8px */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Shimmer effect with pointer-events disabled */
.funnel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none; /* Prevents shimmer from blocking clicks */
}

.funnel-card:hover::before {
  left: 100%;
}

/* Ensure buttons are clickable */
.funnel-card button {
  position: relative;
  z-index: 20; /* Higher than shimmer effect */
  transition: all 0.2s ease; /* Smooth transition */
}

/* Prevent button movement on hover */
.funnel-card button:hover {
  transform: none; /* Override any inherited transforms */
}

.price-tag {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  pointer-events: none; /* Prevents price tag from interfering */
}

.badge {
  background: linear-gradient(45deg, #8b5cf6, #7c3aed);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-in;
}

td.demo-link {
  text-align: center;
  vertical-align: middle; /* vertically center content */
  font-size: 1.5rem;
  font-weight: 600;
}



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Popular container and badge styles */
.popular-container {
  position: relative;
}

.most-popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: linear-gradient(to right, rgb(245 158 11), rgb(234 88 12));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  pointer-events: none; /* Prevents badge from interfering */
}

/* Single animation definition with proper transform */
@keyframes pulse-custom {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.05);
  }
}

.animate-pulse-custom {
  animation: pulse-custom 2s ease-in-out infinite;
}

/* Ensure grid doesn't clip content */
.grid {
  overflow: visible !important;
}

/* Modal fixes */
#funnelModal {
  display: none;
}

#funnelModal:not(.hidden) {
  display: block !important;
}

/* Additional stability fixes */
.funnel-card * {
  pointer-events: auto; /* Ensure all child elements are clickable */
}

/* Prevent layout shift on hover */
.funnel-card {
  will-change: transform; /* Optimize for animations */
  backface-visibility: hidden; /* Prevent flickering */
  -webkit-backface-visibility: hidden;
}