/* Modern Plans Page Styles */

.modern-plans-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f4ff 0%, white 100%);
  min-height: 100vh;
}

/* Hero Section */
.plans-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.plans-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #744aab, #a27fcf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plans-subtitle {
  font-size: 1.3rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.toggle-label {
  font-weight: 600;
  color: #333;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 30px;
  transition: .4s;
}

.toggle-button {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: .4s;
}

.toggle-input:checked + .toggle-slider {
  background: linear-gradient(135deg, #744aab, #a27fcf);
}

.toggle-input:checked + .toggle-slider .toggle-button {
  transform: translateX(30px);
}

.discount-badge {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
  border: 2px solid #744aab;
  transform: scale(1.05);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Plan Header */
.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.plan-price {
  margin-bottom: 1rem;
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  color: #744aab;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.annual-total {
  display: block;
  margin-top: 0.5rem;
}

.annual-total small {
  color: #666 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

.plan-description {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Plan Features */
.plan-features {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.feature-group {
  margin-bottom: 1.5rem;
}

.feature-group h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #555;
}

.features-list i {
  width: 16px;
  text-align: center;
}

.features-list.limitation li {
  color: #999;
}

.features-list .fa-check {
  color: #4ade80;
}

.features-list .fa-times {
  color: #ff6b6b;
}

/* Plan Action */
.plan-action {
  text-align: center;
  margin-top: auto;
}

.btn-plan {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #744aab;
  color: #744aab;
  background: transparent;
  width: 100%;
}

.btn-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(116, 74, 171, 0.3);
}

.btn-plan.btn-primary {
  background: linear-gradient(135deg, #744aab, #a27fcf);
  color: white;
  border-color: #744aab;
}

.btn-plan.btn-primary:hover {
  background: linear-gradient(135deg, #5e3989, #744aab);
  color: white;
}

/* Features Comparison */
.features-comparison {
  margin-bottom: 6rem;
}

.comparison-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #333;
  margin-bottom: 3rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  margin: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background: linear-gradient(135deg, #744aab, #a27fcf);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.comparison-table th:first-child {
  text-align: left;
  border-top-left-radius: 15px;
}

.comparison-table th:last-child {
  border-top-right-radius: 15px;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #333;
}

.comparison-table tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
}

.comparison-table tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}

.comparison-table tr:nth-child(even) {
  background: #f8f4ff;
}

/* FAQ Section */
.plans-faq {
  margin-bottom: 6rem;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #333;
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.faq-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.plans-cta {
  text-align: center;
  background: linear-gradient(135deg, #744aab, #a27fcf);
  padding: 4rem 2rem;
  border-radius: 20px;
  color: white;
}

.plans-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plans-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
  background: white;
  color: #744aab;
  border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .plans-title {
    font-size: 2.5rem;
  }
  
  .plans-subtitle {
    font-size: 1.1rem;
  }
  
  .billing-toggle {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .plan-card.featured {
    transform: none;
  }
  
  .plan-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .features-comparison {
    display: none;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .modern-plans-section {
    padding: 3rem 0;
  }
  
  .plans-title {
    font-size: 2rem;
  }
  
  .plan-card {
    padding: 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  .plans-cta {
    padding: 3rem 1.5rem;
  }
  
  .plans-cta h2 {
    font-size: 2rem;
  }
}
