/* Premium Pricing Section Redesign */

.pricing-hero {
  background: var(--bg-snow);
  padding: 80px 0 60px;
  text-align: center;
}

.pricing-table-container {
  max-width: 1200px;
  margin: -60px auto 4rem;
  position: relative;
  z-index: 10;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Base Card Styling */
.pricing-card {
  position: relative;
  border-radius: 24px;
  padding: 3rem 2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: white;
  z-index: 1;
}

.stagger-container.visible .pricing-card {
  transform: translateY(0); /* Base resting state after animation */
}

.pricing-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-container.visible .pricing-card:hover {
  transform: translateY(-12px);
  z-index: 10;
  border-color: var(--primary) !important;
  box-shadow: 0 24px 48px rgba(30, 64, 175, 0.15) !important;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Banner Button Animations */
.btn-banner-pulse {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
  animation: banner-pulse 2s infinite;
}

.btn-banner-pulse:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.5);
  animation: none; /* Stop pulse on hover */
  color: #fff;
}

/* Pricing Card Action Buttons */
.btn-pricing-action {
  background: var(--accent);
  color: #fff;
  margin-top: auto;
  width: 100%;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  padding: 10px 0;
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(234, 88, 12, 0.2);
}

.btn-pricing-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.4);
  background: #ea580c; /* Deepen orange slightly */
  color: #fff;
}

@keyframes banner-pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.plan-price {
  display: flex;
  align-items: flex-start;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-right: 0.25rem;
}

.plan-btn {
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  margin-top: auto;
}

/* --- Tier 1: Starter Pack --- */
.pricing-card.starter {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}
.pricing-card.starter:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--text-muted);
}
.pricing-card.starter .plan-name { color: var(--text-dark); }
.pricing-card.starter .plan-price { color: var(--primary); }

/* --- Tier 2: Most Popular (Add-ons) --- */
.pricing-card.popular {
  background: var(--gradient-cta);
  color: white;
  border: none;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.2);
  z-index: 2;
}
.stagger-container.visible .pricing-card.popular {
  transform: scale(1.05); /* slightly larger by default */
}
.stagger-container.visible .pricing-card.popular:hover {
  transform: scale(1.05) translateY(-15px);
  box-shadow: 0 25px 50px rgba(249, 115, 22, 0.4);
}
.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.pricing-card.popular .plan-name,
.pricing-card.popular .plan-price {
  color: white;
}
.pricing-card.popular .addon-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: block;
}
.pricing-card.popular .btn-primary {
  background: white;
  color: var(--accent);
  border: none;
}
.pricing-card.popular .btn-primary:hover {
  background: var(--bg-snow);
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Glassmorphism Add-on Rows inside Popular Card */
.addon-banner {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 12px;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.addon-table { margin-bottom: 1.5rem; }
.addon-table h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.5rem;
}
.addon-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.addon-row:hover { background: rgba(255, 255, 255, 0.2); }
.addon-row .price-val { font-weight: 700; color: white; }

.addon-custom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.addon-custom-row span.badge {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* --- Tier 3: Enterprise --- */
.pricing-card.enterprise {
  background: var(--gradient-pricing);
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(26, 43, 76, 0.3);
}
.pricing-card.enterprise:hover {
  box-shadow: 0 20px 40px rgba(26, 43, 76, 0.5);
}
.pricing-card.enterprise .plan-name { color: white; }
.pricing-card.enterprise .plan-price { color: white; }
.pricing-card.enterprise .text-muted { color: rgba(255,255,255,0.6) !important; }
.pricing-card.enterprise .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white;
}
.pricing-card.enterprise .btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.pricing-card.enterprise .plan-features li { color: rgba(255,255,255,0.9); }
.pricing-card.enterprise .plan-features li i.check-success { color: var(--accent); }


/* Standard Feature Lists inside Cards */
.price-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.price-breakdown-list li {
  padding: 0.75rem 0;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
.price-breakdown-list li:last-child { border-bottom: none; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.plan-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
}
.plan-features li i.check-success {
  color: #10B981;
  margin-right: 0.75rem;
}


/* Bottom Generic Section Enhancements */
.feature-list-section { padding: 4rem 0; }
.feature-box {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.feature-list-item {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
}
.feature-list-item i {
  color: var(--accent);
  font-size: 1.5rem;
  margin-right: 1rem;
}

/* Feature Table Enhancements */
.feature-table-section { padding: 4rem 0 8rem; }
.table-responsive {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 1.5rem 1rem;
  border-bottom: none;
}
.table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.table tbody tr:hover { background: var(--bg-snow); }
.table .text-success { color: #10B981 !important; }
.table .text-muted { color: var(--text-muted) !important; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .stagger-container.visible .pricing-card.popular { transform: scale(1); }
  .stagger-container.visible .pricing-card.popular:hover { transform: translateY(-10px); }
  .stagger-container.visible .pricing-card:hover { transform: translateY(-10px); }
}
