/* ============================================================
   PRICING PAGE — PREMIUM STYLES v2.0
   ============================================================ */

/* ---- Page Header ---- */
.pricing-hero {
  padding: 5rem 24px 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.pricing-hero .section-tag { margin-bottom: 1rem; }

.pricing-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.pricing-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

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

.billing-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.billing-label.active { color: var(--text-primary); }

.billing-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.billing-switch.yearly {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent-primary);
}

[data-theme="light"] .billing-switch.yearly {
  background: rgba(0, 102, 255, 0.1);
}

.billing-switch-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  top: 3px;
  left: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.4);
}

.billing-switch.yearly .billing-switch-thumb {
  transform: translateX(24px);
}

.billing-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

[data-theme="light"] .billing-save-badge {
  background: rgba(0, 102, 255, 0.07);
  border-color: rgba(0, 102, 255, 0.18);
}

/* ---- Pricing Grid ---- */
.pricing-section {
  padding: 0 24px 64px;
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* ---- Pricing Card ---- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeInUp 0.6s ease-out;
  /* overflow: hidden; Removed to show popular badge */
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover::before { opacity: 1; }

.pricing-grid > *:nth-child(2) { animation-delay: 0.1s; }
.pricing-grid > *:nth-child(3) { animation-delay: 0.2s; }

.pricing-card:hover {
  border-color: rgba(0, 229, 255, 0.22);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 229, 255, 0.06);
  transform: translateY(-6px);
}

[data-theme="light"] .pricing-card:hover {
  border-color: rgba(0, 102, 255, 0.2);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.08);
}

/* Featured / Pro card */
.pricing-card.featured {
  border-color: rgba(0, 229, 255, 0.35);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.06) 0%, var(--bg-card) 55%);
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.12), 0 16px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(-10px);
}

.pricing-card.featured::before { opacity: 1; }

[data-theme="light"] .pricing-card.featured {
  border-color: rgba(0, 102, 255, 0.3);
  background: linear-gradient(160deg, rgba(0, 102, 255, 0.05) 0%, var(--bg-card) 55%);
  box-shadow: 0 0 60px rgba(0, 102, 255, 0.1), 0 16px 60px rgba(0, 0, 0, 0.06);
}

.pricing-card.featured:hover { transform: translateY(-14px); }

/* Popular badge */
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.35);
}

/* ---- Card Header ---- */
.plan-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.plan-icon.starter {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.plan-icon.pro {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.22);
}

.plan-icon.elite {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.plan-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

/* ---- Pricing Display ---- */
.plan-price-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-price-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  line-height: 1;
}

.plan-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding-bottom: 8px;
}

.plan-amount {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 10px;
  font-weight: 500;
}

.plan-yearly-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  min-height: 1.2em;
}

.plan-yearly-note .save-text {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ---- Feature List ---- */
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.plan-features li .feat-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.plan-features li .feat-icon.check {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-primary);
}

.plan-features li .feat-icon.cross {
  background: rgba(244, 63, 94, 0.08);
  color: var(--accent-3);
}

.plan-features li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- CTA Button ---- */
.plan-cta {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: block;
  font-family: var(--font-main);
  border: none;
  letter-spacing: 0.01em;
}

.plan-cta.cta-starter {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(168, 85, 247, 0.22);
}

.plan-cta.cta-starter:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  color: var(--accent-secondary);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

.plan-cta.cta-pro {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.plan-cta.cta-pro:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}

.plan-cta.cta-elite {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.plan-cta.cta-elite:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

/* ---- Comparison Table ---- */
.compare-section {
  padding: 0 24px 64px;
  position: relative;
  z-index: 1;
}

.compare-table-wrap {
  max-width: 920px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
  padding: 15px 22px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  width: 40%;
}

.compare-table thead th {
  background: var(--bg-secondary);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-primary);
}

.compare-table thead th.col-pro {
  color: var(--accent-primary);
  background: rgba(0, 229, 255, 0.05);
}

[data-theme="light"] .compare-table thead th.col-pro {
  background: rgba(0, 102, 255, 0.04);
}

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

.compare-table tbody tr:hover td { background: var(--bg-hover); }

.compare-table td.col-pro { background: rgba(0, 229, 255, 0.025); }

[data-theme="light"] .compare-table td.col-pro {
  background: rgba(0, 102, 255, 0.02);
}

.compare-check {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1rem;
}

.compare-cross {
  color: var(--text-muted);
  font-size: 1rem;
}

.compare-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- FAQ Section ---- */
.pricing-faq-section {
  padding: 0 24px 64px;
  position: relative;
  z-index: 1;
}

/* ---- CTA Banner ---- */
.pricing-cta-section {
  padding: 0 24px 64px;
  position: relative;
  z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 600px) {
  .pricing-hero { padding: 5rem 16px 2rem; }
  .pricing-section { padding: 0 16px 48px; }
  .compare-section { padding: 0 16px 48px; }
  .pricing-faq-section { padding: 0 16px 48px; }
  .pricing-cta-section { padding: 0 16px 48px; }
}
