/* ============================================================
   PDF417 GEN - Pricing Page Styles
   ============================================================ */

/* ---- Page Header ---- */
.pricing-hero {
  padding: 4rem 20px 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

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

.pricing-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

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

.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-secondary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.billing-switch-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  top: 3px;
  left: 4px;
  transition: transform 0.3s ease;
}

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

.billing-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
}

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

/* ---- Pricing Grid ---- */
.pricing-section {
  padding: 0 20px 50px;
  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-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeInUp 0.6s ease-out;
}

.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, 255, 136, 0.35);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.08);
  transform: translateY(-4px);
}

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

/* Featured / Pro card */
.pricing-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(160deg, rgba(0, 255, 136, 0.06) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.12);
  transform: translateY(-8px);
}

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

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

/* Popular badge */
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---- Card Header ---- */
.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.plan-icon.starter {
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.2);
}

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

.plan-icon.elite {
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 200, 0, 0.2);
}

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

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

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

.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: 6px;
}

.plan-amount {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  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: 8px;
  font-weight: 500;
}

.plan-yearly-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  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.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

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

.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, 255, 136, 0.12);
  color: var(--accent-primary);
}

.plan-features li .feat-icon.cross {
  background: rgba(255, 68, 102, 0.08);
  color: #ff4466;
}

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

/* ---- CTA Button ---- */
.plan-cta {
  width: 100%;
  padding: 13px;
  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;
}

.plan-cta.cta-starter {
  background: rgba(0, 204, 255, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 204, 255, 0.25);
}

.plan-cta.cta-starter:hover {
  background: rgba(0, 204, 255, 0.18);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  color: var(--accent-secondary);
}

.plan-cta.cta-pro {
  background: var(--gradient-primary);
  color: #000;
}

.plan-cta.cta-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
  color: #000;
}

[data-theme="light"] .plan-cta.cta-pro:hover {
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.25);
}

.plan-cta.cta-elite {
  background: rgba(255, 200, 0, 0.1);
  color: #ffc800;
  border: 1px solid rgba(255, 200, 0, 0.25);
}

.plan-cta.cta-elite:hover {
  background: rgba(255, 200, 0, 0.18);
  border-color: #ffc800;
  transform: translateY(-2px);
  color: #ffc800;
}

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

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

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

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.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.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

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

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

.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, 255, 136, 0.03);
}

[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 20px 50px;
  position: relative;
  z-index: 1;
}

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

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

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

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

@media (max-width: 600px) {
  .pricing-hero {
    padding: 5rem 20px 2rem;
  }

  .plan-amount {
    font-size: 2.4rem;
  }

  .billing-toggle-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}
