/* ============================================
   VR CONNECT AI - FINAL PRECISION POLISH
   Pure visual refinement - ZERO structure changes
   Based on current screenshot analysis
============================================ */

/* ============================================
   PRICING SECTION - VERTICAL SPACING FIX
============================================ */

/* Pricing Section Container */
.pricing {
  padding-top: 140px !important;
  padding-bottom: 120px !important;
}

/* CRITICAL FIX: Badge to Heading Spacing */
.pricing-badge {
  margin-bottom: 32px !important; /* Increased from default to prevent overlap */
}

/* Heading Spacing */
.pricing-title {
  margin-bottom: 20px !important; /* Comfortable space after heading */
}

/* Subtitle Spacing */
.pricing-subtitle {
  margin-bottom: 48px !important; /* Space before toggle */
}

/* Toggle Spacing */
.billing-toggle {
  margin-bottom: 64px !important; /* Generous space before cards */
}

/* ============================================
   PRICING BADGE - REFINED & COMPACT
============================================ */
.pricing-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 20px !important; /* Smaller, more compact */
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 100px !important;
  font-size: 11px !important; /* Smaller font */
  font-weight: 700 !important;
  color: #2563EB !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Badge Dot */
.pricing-badge-dot {
  width: 6px !important;
  height: 6px !important;
  background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  border-radius: 50%;
}

/* ============================================
   PRICING HEADING - PERFECT BASELINE
============================================ */
.pricing-title {
  font-size: clamp(36px, 4vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #0F172A !important;
  text-align: center;
}

/* Gradient Text - Baseline Fix */
.pricing-title .highlight-text {
  background: linear-gradient(110deg, #2563EB 0%, #3B82F6 40%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  vertical-align: baseline; /* Ensure alignment */
  line-height: inherit;
}

/* ============================================
   SUBTITLE - CLEAN & READABLE
============================================ */
.pricing-subtitle {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: #64748B !important;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BILLING TOGGLE - PREMIUM SEGMENTED CONTROL
============================================ */
.billing-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 4px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 100px !important;
  box-shadow: 
    0 2px 8px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  position: relative;
}

/* Toggle Labels */
.billing-label {
  position: relative;
  z-index: 2;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  background: transparent !important;
  border: none !important;
  border-radius: 100px !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.billing-label.active {
  color: #FFFFFF !important;
}

/* Active Background Indicator */
.billing-toggle::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

/* Monthly Active */
.billing-toggle[data-cycle="monthly"]::before {
  width: calc(50% - 20px);
  transform: translateX(0);
}

/* Yearly Active */
.billing-toggle[data-cycle="yearly"]::before {
  width: calc(50% + 20px);
  transform: translateX(calc(100% - 16px));
}

/* Save Badge */
.save-badge {
  padding: 3px 10px !important;
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%) !important;
  color: #FFFFFF !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 100px !important;
  margin-left: 6px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* ============================================
   PRICING CARDS - CONSISTENT ALIGNMENT
============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Base Styling */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF !important;
  border: 1.5px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 24px !important;
  padding: 40px 32px !important;
  box-shadow: 
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.pricing-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 
    0 12px 32px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   PROFESSIONAL CARD - SUBTLE EMPHASIS
============================================ */
.pricing-card.popular,
.pricing-card[data-plan="professional"] {
  border-color: rgba(37, 99, 235, 0.3) !important;
  box-shadow: 
    0 8px 24px rgba(37, 99, 235, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(37, 99, 235, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.pricing-card.popular:hover,
.pricing-card[data-plan="professional"]:hover {
  box-shadow: 
    0 16px 48px rgba(37, 99, 235, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(37, 99, 235, 0.12) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   MOST POPULAR BADGE - REFINED (NOT ORANGE!)
============================================ */
.popular-badge,
.popular-badge-wrapper .popular-badge {
  position: absolute !important;
  top: -12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 6px 18px !important;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%) !important;
  color: #FFFFFF !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px !important;
  box-shadow: 
    0 4px 16px rgba(37, 99, 235, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.1) !important;
  white-space: nowrap;
  z-index: 10;
}

/* Remove orange badge if exists */
.popular-badge.warning,
.popular-badge[style*="background: #F59E0B"],
.popular-badge[style*="background: orange"] {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%) !important;
}

/* ============================================
   CARD INTERNAL SPACING - VERTICAL RHYTHM
============================================ */
.plan-header {
  text-align: center;
  margin-bottom: 24px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Plan Icon */
.plan-icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 20px !important;
  border-radius: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px !important;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-card:hover .plan-icon {
  transform: translateY(-2px) scale(1.03);
}

/* Plan Name */
.plan-name {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin-bottom: 8px !important;
}

/* Plan Description */
.plan-desc {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #64748B !important;
}

/* Plan Price */
.plan-price {
  text-align: center;
  margin-bottom: 24px !important;
}

.price-amount {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #1E40AF !important;
  line-height: 1;
}

.price-period {
  font-size: 15px !important;
  color: #64748B !important;
  font-weight: 500;
}

/* Enterprise Custom Price */
.price-custom {
  font-size: 36px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Plan Features */
.plan-features {
  margin-bottom: 24px !important;
}

.plan-features li,
.feature-item {
  padding: 10px 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-features li:hover,
.feature-item:hover {
  transform: translateX(3px);
}

/* Plan Button */
.btn-plan {
  margin-top: auto !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-plan:hover {
  transform: translateY(-2px) !important;
}

/* ============================================
   PRICING BACKGROUND - SUBTLE DEPTH
============================================ */
.pricing {
  position: relative;
  background: 
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.02) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 50%, #FFFFFF 100%) !important;
  overflow: hidden;
}

/* Subtle Ambient Orbs */
.pricing-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px) !important;
  opacity: 0.2 !important;
  pointer-events: none;
}

.pricing-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.pricing-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
}

/* ============================================
   NAVBAR POLISH (MINIMAL TOUCH)
============================================ */
.navbar-modern.scrolled {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

/* ============================================
   BACK TO TOP BUTTON - REFINED
============================================ */
#backToTop,
.back-to-top-btn {
  width: 48px !important;
  height: 48px !important;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 
    0 4px 16px rgba(37, 99, 235, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

#backToTop:hover,
.back-to-top-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 
    0 6px 24px rgba(37, 99, 235, 0.5),
    0 3px 10px rgba(0, 0, 0, 0.15) !important;
}

#backToTop i,
.back-to-top-btn i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#backToTop:hover i,
.back-to-top-btn:hover i {
  transform: translateY(-2px);
}

/* ============================================
   SCROLL REVEAL ANIMATION (SUBTLE)
============================================ */
@keyframes pricing-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Applied via JS */
.pricing-reveal-badge {
  animation: pricing-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0ms both;
}

.pricing-reveal-title {
  animation: pricing-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
}

.pricing-reveal-subtitle {
  animation: pricing-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.pricing-reveal-toggle {
  animation: pricing-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
}

.pricing-card:nth-child(1) {
  animation: pricing-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 340ms both;
}

.pricing-card:nth-child(2) {
  animation: pricing-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 420ms both;
}

.pricing-card:nth-child(3) {
  animation: pricing-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 500ms both;
}

/* ============================================
   RESPONSIVE - MOBILE ADJUSTMENTS
============================================ */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .pricing {
    padding-top: 100px !important;
    padding-bottom: 80px !important;
  }
  
  .pricing-badge {
    font-size: 10px !important;
    padding: 7px 16px !important;
  }
  
  .pricing-title {
    font-size: clamp(28px, 6vw, 36px) !important;
  }
  
  .pricing-subtitle {
    font-size: 15px !important;
  }
  
  .billing-toggle {
    margin-bottom: 48px !important;
  }
  
  .pricing-card {
    padding: 32px 24px !important;
  }
}

/* ============================================
   REDUCED MOTION SUPPORT
============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
}

/* ============================================
   END OF FINAL PRECISION POLISH
   All changes are purely visual refinements
   No structural or functional modifications
============================================ */
