/* ═══════════════════════════════════════════
   PRICING SECTION — Enhanced Design
═══════════════════════════════════════════ */

@keyframes pricingDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-20px) scale(1.05); }
  66%       { transform: translate(-20px,15px) scale(0.97); }
}
@keyframes pricingPulse {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.22; }
}
@keyframes gridMove {
  0%   { background-position: 0px 0px; }
  100% { background-position: 44px 44px; }
}
@keyframes shimmerLine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Override base pricing background */
#pricing {
  background: radial-gradient(ellipse 140% 80% at 50% -10%, #0a2235 0%, #0E1A1A 55%, #091A26 100%) !important;
  position: relative;
  overflow: hidden;
}

/* === Background Layers === */
.pricing-bg-orb1 {
  position: absolute;
  top: -8%; left: -10%;
  width: 65%; height: 80%;
  background: radial-gradient(ellipse at 30% 30%,
    rgba(111,217,194,0.25) 0%,
    rgba(111,217,194,0.08) 40%,
    transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: pricingDrift 18s ease-in-out infinite;
}
.pricing-bg-orb2 {
  position: absolute;
  bottom: -15%; right: -8%;
  width: 55%; height: 70%;
  background: radial-gradient(ellipse at 65% 65%,
    rgba(184,224,76,0.14) 0%,
    rgba(120,200,60,0.05) 40%,
    transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: pricingDrift 22s ease-in-out infinite reverse 3s;
}
.pricing-bg-orb3 {
  position: absolute;
  top: 25%; left: 30%;
  width: 45%; height: 55%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(111,217,194,0.12) 0%,
    transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  animation: pricingPulse 9s ease-in-out infinite 1.5s;
}
.pricing-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,224,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,224,76,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,0.6) 20%, transparent 75%);
  pointer-events: none;
  animation: gridMove 12s linear infinite;
}
.pricing-bg-line {
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184,224,76,0.4) 30%,
    rgba(184,224,76,0.7) 50%,
    rgba(184,224,76,0.4) 70%,
    transparent 100%);
  pointer-events: none;
}
.pricing-bg-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.9) 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmerLine 4s ease-in-out infinite;
}

/* Corner accent glows */
#pricing::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle at 100% 0%,
    rgba(184,224,76,0.12) 0%,
    transparent 60%);
  pointer-events: none;
}
#pricing::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle at 0% 100%,
    rgba(111,217,194,0.14) 0%,
    transparent 60%);
  pointer-events: none;
}

/* === Card Styles === */
.price-card-v4 {
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.4s cubic-bezier(.16,1,.3,1),
    box-shadow  0.4s cubic-bezier(.16,1,.3,1),
    transform   0.4s cubic-bezier(.16,1,.3,1);
  cursor: default;
  /* Ensure CTA always at bottom */
  height: 100%;
}
.price-card-v4:hover {
  border-color: rgba(111,217,194,0.55) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(111,217,194,0.2) !important;
  transform: translateY(-8px);
}
.price-card-v4.featured:hover {
  border-color: rgba(184,224,76,0.5) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.65), 0 0 50px rgba(184,224,76,0.12) !important;
  transform: translateY(-10px);
}
/* Shimmer overlay on hover */
.price-card-v4::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%),
    rgba(184,224,76,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: inherit;
}
.price-card-v4:hover::after {
  opacity: 1;
}

/* Grid panels */
#pPanel-exhibitor,
#pPanel-visitor,
#pPanel-organizer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  align-items: stretch; /* equal height cards */
}

/* === Plan Icon === */
.plan-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1);
}
.price-card-v4:hover .plan-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* === Features list — grows to fill space === */
.price-card-v4 > div[style*="flex:1"] {
  flex: 1 !important;
}

/* === CTA BUTTON — always pinned at bottom === */
.pricing-cta {
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: all 0.35s cubic-bezier(.16,1,.3,1) !important;
  margin-top: 24px; /* fixed spacing from features */
  flex-shrink: 0;   /* never compress */
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
/* Shimmer on CTA */
.pricing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.pricing-cta:hover::before {
  transform: translateX(100%);
}

/* Outline style */
.pricing-cta-outline {
  border: 1.5px solid rgba(111,217,194,0.4);
  color: rgba(255,255,255,0.8) !important;
  background: rgba(111,217,194,0.04);
}
.pricing-cta-outline:hover {
  border-color: rgba(184,224,76,0.65) !important;
  color: #ECF2EE !important;
  background: rgba(184,224,76,0.07) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,224,76,0.12);
}

/* Solid style */
.pricing-cta-solid {
  background: var(--lime) !important;
  color: #0d2230 !important;
  border: none;
  font-weight: 800;
}
.pricing-cta-solid:hover {
  background: #d8ff50 !important;
  box-shadow: 0 10px 30px rgba(184,224,76,0.45) !important;
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════
   PRICING — MOBILE RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 960px) {
  #pricing {
    padding: 70px 24px !important;
  }
  #pPanel-exhibitor,
  #pPanel-visitor,
  #pPanel-organizer {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
  }
  .price-card-v4 {
    padding: 24px 20px;
  }
}

@media (max-width: 620px) {
  #pPanel-exhibitor,
  #pPanel-visitor,
  #pPanel-organizer {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .price-card-v4 {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .price-card-v4:hover {
    transform: none;
  }
  .plan-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .pricing-cta {
    padding: 14px 18px;
    font-size: 0.85rem;
    margin-top: 18px;
  }
}

/* ═══ Pricing Tabs Mobile ═══ */
@media (max-width: 620px) {
  .pricing-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pricing-tabs button {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem !important;
    padding: 10px 12px !important;
    white-space: nowrap;
  }
  /* Inline-styled tab buttons use ids pTab-* */
  [id^="pTab-"] {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    font-size: 0.8rem !important;
    padding: 12px 10px !important;
    min-height: 44px;
  }
  /* Most Popular badge — move above the card body on narrow screens so it doesn't overlap the plan icon */
  .price-card-v4.featured > div:first-child[style*="top:20px"] {
    position: static !important;
    display: inline-block;
    margin-bottom: 12px;
    align-self: flex-start;
  }
}

/* ═══ Prevent pricing card content overflow in any locale ═══ */
.price-card-v4 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.price-card-v4 > div[style*="flex:1"] {
  min-width: 0;
}
