/* Hero Section */
.pricing-hero {
  background: linear-gradient(135deg, 
    rgba(67,97,238,0.05) 0%, 
    rgba(76,201,240,0.04) 50%, 
    rgba(255,255,255,0.98) 100%);
}

.hero-surface {
  position: relative;
}

.hero-title {
  font-size: 3rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: #1a1a1a !important;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.25rem !important;
  line-height: 1.6 !important;
  color: #666 !important;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.feature-chip {
  border-radius: 50px !important;
  background-color: rgba(67,97,238,0.08) !important;
  border: 1px solid rgba(67,97,238,0.15) !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  color: #333 !important;
  font-size: 0.875rem !important;
}

.feature-chip:hover {
  background-color: rgba(67,97,238,0.12) !important;
  border-color: rgba(67,97,238,0.25) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67,97,238,0.1) !important;
}

/* Compact Billing Toggle - Reduced height */
.billing-toggle {
  display: flex;
  align-items: center;
  background: white;
  padding: 4px 12px; /* Reduced padding */
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.compact-toggle {
  padding: 2px 8px; /* Even tighter for compact look */
}

.compact-switch .v-input__slot {
  margin: 0 !important; /* Remove extra margins */
  min-height: 28px !important; /* Smaller switch height */
}

.toggle-label {
  font-weight: 500;
  color: #666;
  transition: color 0.3s ease;
  font-size: 0.875rem; /* Smaller font */
}

.toggle-label.active {
  color: #4361ee;
  font-weight: 600;
}

.save-chip {
  height: 18px !important; /* Smaller chip */
  font-size: 0.75rem !important;
  margin-left: 4px !important;
}

/* Pricing Cards */
.pricing-section {
  position: relative;
}

.pricing-grid {
  max-width: 1600px; /* maintain narrowed width */
  margin: 0 auto;
  justify-content: center !important; /* always center the row regardless of card count */
}

.plan-card {
  border-radius: 24px !important;
  padding: 16px 16px !important; /* tighter padding to reduce height */
  height: 100% !important;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  border: 2px solid transparent !important;
  background: white !important;
  width: 100% !important;           /* ensure same width as column */
  box-sizing: border-box !important; /* include border in width to avoid narrower look */
}

.plan-card.card-hover {
  transform: translateY(-8px);
}

.free-plan {
  border-color: rgba(0,0,0,0.08) !important;
}

.advanced-plan {
  border-color: rgba(67,97,238,0.15) !important;
}

/* Professional highlighted border changed to blue */
.recommended-border {
  position: relative;
  border: 2px solid #4361ee !important; /* blue */
}

.recommended-border.elevate { 
  box-shadow: 0 10px 30px rgba(67,97,238,0.25) !important; /* blue glow */ 
}

.elite-plan {
  border-color: rgba(0,0,0,0.12) !important;
}

/* Most Popular Badge */
.popular-badge {
  position: absolute !important;
  top: -10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

/* Plan Header */
.plan-header {
  text-align: center;
  margin-bottom: 8px; /* was 12px */
}

.plan-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin-top: 0 !important;          /* ensure consistent top spacing */
  margin-bottom: 2px !important; /* was 4px */
}

/* Pricing Display */
.plan-pricing {
  text-align: center;
  margin-bottom: 8px; /* was 12px */
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 2px; /* was 4px */
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #666;
  margin-right: 4px;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.period {
  font-size: 1rem;
  color: #666;
  margin-left: 4px;
}

.price-note {
  color: #666 !important;
  font-size: 0.875rem !important;
  margin: 0 !important;
}

/* Divider spacing tighter inside card */
.plan-card .v-divider.my-2 {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* Credits Display */
.plan-credits {
  text-align: center;
  margin-bottom: 4px; /* tighter so button hugs credits */
}

.credits-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: #4361ee;
  line-height: 1;
}

.credits-label {
  color: #666;
  font-size: 0.875rem;
  margin-top: 2px;
}

/* Action area wrapper: center content and unify width */
.action-area {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 16px !important;        /* equal left/right spacing */
  box-sizing: border-box !important;
  align-items: stretch !important;    /* children take full width */
}

/* Plan Button - enforce fixed height and prevent flex grow */
.v-btn.plan-btn,
.plan-btn {
  border-radius: 12px !important;
  height: 44px !important;           /* fixed */
  min-height: 44px !important;       /* fixed */
  max-height: 44px !important;       /* fixed */
  flex: 0 0 auto !important;         /* do not stretch in flex column */
  align-self: stretch !important;     /* take full width with block */
  padding: 0 16px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.plan-btn .v-btn__content { 
  line-height: 1 !important; 
  height: 44px !important;           /* align content vertically */
}

/* Ensure selector fills wrapper; spacing consistent with button */
.plan-card .option-selector { margin-top: 8px !important; }
.action-area .option-select { width: 100% !important; }
.plan-card .plan-btn.mt-2 { margin-top: 8px !important; }

.plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67,97,238,0.25) !important;
}

/* Current plan disabled appearance */
.current-plan-btn.v-btn--disabled {
  background-color: #e0e0e0 !important;
  color: #5f6368 !important;
  opacity: 1 !important;             /* keep text readable */
  box-shadow: none !important;
}
.current-plan-btn:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Features list tighter spacing */
.features-list { 
  margin-top: 8px !important; /* was mt-4 */
}
.features-list .v-list-item { 
  min-height: 28px !important; /* reduced */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.features-list .v-list-item-icon { 
  margin-right: 8px !important; 
}
.features-list .v-list-item__title {
  white-space: nowrap !important; /* keep to single line */
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Option selector polished styles */
.option-select .v-input__slot{
  border-radius: 12px !important;
  background: #f7f9fc !important;
  border: 1px solid #e6ebf5 !important;
  box-shadow: none !important;
  min-height: 40px !important;
}
.option-select .v-select__selections{ padding-top: 6px !important; padding-bottom: 6px !important; }
.option-selection{ line-height: 1.1; }
.option-line-primary{ font-weight: 600; color: #1f2937; font-size: 0.95rem; }
.option-line-sub{ color: #6b7280; font-size: 0.8rem; }
.option-select-menu .v-list-item{ min-height: 44px !important; }
.option-item:hover{ background: #f3f6ff; }

/* Cursor styles for option selector - 只在内容区域显示手型 */
.option-selector {
  cursor: default !important;
}

.option-select .v-input__slot {
  cursor: default !important;
}

/* 只在有内容的区域显示 pointer */
.option-select .v-select__selections,
.option-select .v-input__prepend-inner .v-icon,
.option-select .v-input__append-inner .v-icon {
  cursor: pointer !important;
}

.option-select-menu .v-list-item { 
  cursor: pointer !important; 
}

/* Also apply to the legacy plan-option-select component if used */
.plan-option-select .v-input__slot {
  cursor: default !important;
}

.plan-option-select .v-select__selections,
.plan-option-select .v-input__prepend-inner .v-icon,
.plan-option-select .v-input__append-inner .v-icon {
  cursor: pointer !important;
}

/* Hover visual feedback for select input and clickable wrapper */
.option-selector:hover .v-input__slot,
.option-select .v-input__slot:hover,
.plan-option-select .v-input__slot:hover {
  border-color: #4361ee !important;
  box-shadow: 0 0 0 3px rgba(67,97,238,0.08) !important;
}

/* FAQ Styles */
.faq-title {
  font-size: 2rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin-bottom: 2rem !important;
}

.v-expansion-panels {
  background: transparent !important;
}

.v-expansion-panel {
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  margin-bottom: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.v-expansion-panel-header {
  font-weight: 500 !important;
  font-size: 1.1rem !important;
  padding: 16px 24px !important;
}

.v-expansion-panel-content {
  padding: 0 24px 16px !important;
  color: #666 !important;
  line-height: 1.6 !important;
}

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

/* Responsive Design */
@media (max-width: 960px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .pricing-grid {
    padding: 0 16px;
    max-width: 100%;
  }
  
  .plan-card {
    margin-bottom: 24px;
    padding: 12px 12px !important; /* tighter on tablet */
  }
  
  .popular-badge {
    position: static !important;
    transform: none !important;
    margin-bottom: 8px !important;
  }

  .compact-toggle {
    flex-direction: column;
    gap: 4px;
    padding: 8px !important;
  }

  .faq-title {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .amount {
    font-size: 2.5rem !important;
  }
  
  .billing-toggle {
    flex-direction: column;
    gap: 8px;
  }
  
  .benefit-row {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .feature-chip {
    max-width: 100% !important;
    justify-content: center !important;
    margin: 4px 0 !important;
  }

  .v-expansion-panel-header {
    padding: 12px 16px !important;
  }

  .v-expansion-panel-content {
    padding: 0 16px 12px !important;
  }
}