/* Modern Pricing Popup Styles */
button.dynamic-plans-btn {
    background-color: var(--e-global-color-primary);
    border: 0;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
}	
.pricing-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pricing-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #fff;
  border-radius: 10px;
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  animation: slideUp 0.4s ease-out;
}
	
.popup-content.loading::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.waitlist-btn {
    background: #f0ad4e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.waitlist-btn:hover {
    background: #ec971f;
}

.get-started-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.get-started-btn:hover {
    background: #218838;
}

.sold-out .plan-name,
.sold-out .plan-price,
.sold-out .plan-period {
    opacity: 0.5;
}	
	
	
.popup-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  z-index: 10001;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.popup-close:hover {
  color: #333;
  background: #f0f0f0;
}

.popup-content h2 {
  text-align: center;
	margin: 0;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
}

.subscription-count {
  display: block;
  text-align: center;
  margin-bottom: .5rem;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem;
  border-radius: 5px;
  background: #f8f9fa;
}

/* Modern Pricing Table - Dynamic Columns */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    table-layout: auto;
}

.pricing-header {
    background: var(--e-global-color-primary);
    color: white;
}

.pricing-header th {
    padding: 1rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    min-width: 120px;
    vertical-align: top;
}

.pricing-header th:first-child {
  text-align: left;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.1);
  min-width: 200px;
  width: 25%;
}

/* Dynamic column sizing based on number of plans */
.pricing-table th:not(:first-child) {
  width: calc(75% / var(--plan-count, 3));
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.5rem 0;
  display: block;
  line-height: 1.1;
}

.plan-period {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

/* Table Body */
.pricing-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.pricing-table tbody tr:hover {
  background-color: #f8f9fa;
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-table td {
  padding: 1rem;
  text-align: center;
  vertical-align: middle;
  border: none;
}

.pricing-table td:first-child {
	font-size: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  background: #fafbfc;
  border-right: 1px solid #e9ecef;
}

/* Feature Icons */
.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.feature-icon.check {
    background: var(--e-global-color-primary);
    color: white;
}

.feature-icon.cross {
  background: #dc3545;
  color: white;
}

.feature-icon.partial {
  background: #ffc107;
  color: white;
}

.feature-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Action Buttons */
.pricing-table .action-row {
  background: #f8f9fa;
}

.pricing-table .action-row td {
  padding: 0rem;
}

.get-started-btn {
    background: var( --e-global-color-primary );
    color: white;
    border: none;
    padding: 20px 10px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 1px solid #FFF;
}

.get-started-btn:hover {
}

.get-started-btn:active {
  transform: translateY(0);
}

.get-started-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.get-started-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.get-started-btn.loading {
  pointer-events: none;
  position: relative;
}

.get-started-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Sold Out State */
.plan-column.sold-out {
  opacity: 0.6;
  position: relative;
}

.plan-column.sold-out::before {
  content: 'SOLD OUT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: #dc3545;
  color: white;
  padding: 0.5rem 3rem;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 10;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design - Updated for Dynamic Columns */
@media (max-width: 1024px) {
  .popup-content {
    margin: 1rem;
    padding: 2rem 1rem;
  }
  
  .pricing-header th {
    padding: 1.5rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .pricing-header th:first-child {
    font-size: 1.2rem;
  }
  
  .plan-price {
    font-size: 1.5rem;
  }
  
  .plan-name {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .popup-content {
    border-radius: 15px;
    max-height: 95vh;
  }
  
  .popup-content h2 {
    font-size: 2rem;
  }
  
  .pricing-table {
    font-size: 0.9rem;
  }
  
  .pricing-header th {
    padding: 1rem 0.5rem;
  }
  
  .pricing-table td {
    padding: 1rem 0.5rem;
  }
  
  .plan-price {
    font-size: 1.3rem;
  }
  
  .plan-name {
    font-size: 0.9rem;
  }
  
  .get-started-btn {
    padding: 0.8rem 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .popup-content {
    padding: 1.5rem 0.5rem;
  }
  
  .pricing-table {
    font-size: 0.8rem;
  }
  
  .pricing-header th:first-child {
    font-size: 1rem;
  }
  
  .plan-price {
    font-size: 1.1rem;
  }
  
  .plan-name {
    font-size: 0.8rem;
  }
  
  .pricing-header th {
    padding: 0.8rem 0.3rem;
  }
  
  .pricing-table td {
    padding: 0.8rem 0.3rem;
  }
  
  .get-started-btn {
    padding: 0.6rem 0.3rem;
    font-size: 0.7rem;
  }
  
  /* For tables with many columns on mobile, allow horizontal scroll */
  .pricing-table {
    min-width: 600px;
  }
  
  .popup-content {
    overflow-x: auto;
  }
}