/* ============================================
   PRICING PAGE - PROFESSIONAL UX IMPROVEMENTS
   Comprehensive design for user-friendliness
   ============================================ */

/* ============================================
   1. PRICING PLANS SECTION - OPTIMIZED LAYOUT
   ============================================ */

.pricing-plans {
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5rem) !important;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #BFDBFE 100%) !important;
  position: relative !important;
  margin-bottom: 0 !important;
  min-height: 60vh !important;
}

.pricing-plans .container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) !important;
  box-sizing: border-box !important;
}

/* ============================================
   2. PRICING GRID - RESPONSIVE & BALANCED
   ============================================ */

.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  gap: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

@media (min-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ============================================
   3. PRICING CARDS - PROFESSIONAL DESIGN
   ============================================ */

.pricing-card {
  background: #FFFFFF !important;
  border-radius: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.pricing-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.12),
    0 6px 12px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

/* Recommended/Lite Card Highlight */
.pricing-card.lite {
  border: 2px solid #10B981 !important;
  box-shadow: 
    0 4px 12px rgba(16, 185, 129, 0.15),
    0 2px 4px rgba(16, 185, 129, 0.1) !important;
}

.pricing-card.lite:hover {
  box-shadow: 
    0 12px 24px rgba(16, 185, 129, 0.2),
    0 6px 12px rgba(16, 185, 129, 0.15) !important;
}

/* ============================================
   4. CARD HEADER - CLEAR HIERARCHY
   ============================================ */

.pricing-card-header {
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.25rem) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(0.75rem, 1.5vw, 1rem) !important;
  flex-grow: 1 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* ============================================
   5. PLAN NAME - READABLE TYPOGRAPHY
   ============================================ */

.pricing-plan-name {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem) !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
}

/* ============================================
   6. PRICE DISPLAY - CLEAR & PROMINENT
   ============================================ */

.pricing-plan-price {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}

.pricing-plan-price .amount {
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 800 !important;
  color: #1E293B !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.pricing-plan-price .currency {
  font-size: clamp(1rem, 1.8vw, 1.25rem) !important;
  font-weight: 600 !important;
  color: #64748B !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================
   7. DESCRIPTION - READABLE TEXT
   ============================================ */

.pricing-plan-description {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem) !important;
  line-height: 1.6 !important;
  color: #64748B !important;
  margin: 0 !important;
  padding: 0 !important;
  margin-top: clamp(0.5rem, 1vw, 0.75rem) !important;
}

/* ============================================
   8. FEATURES LIST - CLEAN & SCANNABLE
   ============================================ */

.pricing-plan-features {
  padding: 0 clamp(1.75rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.25rem) !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(0.75rem, 1.2vw, 1rem) !important;
}

.pricing-feature {
  display: flex !important;
  align-items: flex-start !important;
  gap: clamp(0.75rem, 1.2vw, 1rem) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pricing-feature i {
  color: #10B981 !important;
  font-size: clamp(1rem, 1.5vw, 1.125rem) !important;
  margin-top: 0.125rem !important;
  flex-shrink: 0 !important;
}

.feature-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.feature-name {
  font-size: clamp(0.9375rem, 1.5vw, 1rem) !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
  padding: 0 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* ============================================
   9. LOADING STATE - PROFESSIONAL
   ============================================ */

#pricingLoading {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  padding: clamp(4rem, 8vw, 6rem) 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
}

.loading-spinner {
  display: inline-block !important;
  width: 48px !important;
  height: 48px !important;
  border: 4px solid rgba(37, 99, 235, 0.1) !important;
  border-top: 4px solid #2563EB !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#pricingLoading p {
  color: #64748B !important;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem) !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

/* ============================================
   10. MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
  .pricing-plans {
    padding: clamp(2rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3rem) !important;
  }

  .pricing-card-header {
    padding: 1.5rem 1.5rem 1rem !important;
  }

  .pricing-plan-features {
    padding: 0 1.5rem 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .pricing-plans {
    padding: 1.75rem 0 2rem !important;
  }

  .pricing-card {
    border-radius: 16px !important;
  }

  .pricing-card-header {
    padding: 1.25rem 1.25rem 0.875rem !important;
  }

  .pricing-plan-features {
    padding: 0 1.25rem 1.25rem !important;
    gap: 0.75rem !important;
  }
}

/* ============================================
   11. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.pricing-card:focus-within {
  outline: 2px solid #2563EB !important;
  outline-offset: 2px !important;
}

/* ============================================
   12. SMOOTH ANIMATIONS
   ============================================ */

.pricing-card {
  animation: fadeInUp 0.6s ease-out !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for multiple cards */
.pricing-card:nth-child(1) {
  animation-delay: 0.1s !important;
}

.pricing-card:nth-child(2) {
  animation-delay: 0.2s !important;
}

.pricing-card:nth-child(3) {
  animation-delay: 0.3s !important;
}

/* ============================================
   13. PRINT STYLES
   ============================================ */

@media print {
  .pricing-card {
    break-inside: avoid !important;
    box-shadow: none !important;
    border: 1px solid #E5E7EB !important;
  }

  .pricing-actions {
    display: none !important;
  }
}

/* ============================================
   14. HIGH CONTRAST MODE SUPPORT
   ============================================ */

@media (prefers-contrast: high) {
  .pricing-card {
    border: 2px solid #000000 !important;
  }

  .pricing-plan-name {
    color: #000000 !important;
  }

  .feature-name {
    color: #000000 !important;
  }
}

/* ============================================
   15. REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .pricing-card:hover,
  .loading-spinner {
    animation: none !important;
    transition: none !important;
  }

  .pricing-card:hover {
    transform: none !important;
  }
}

