:root {
  --bg: #0a0e1f;
  --text: #f5f8ff;
  --accent: #6ea0ff;
  --accent2: #9bffd6;
  --muted: #9aa1b9;
}

/* HERO */
.pricing-hero {
  position: relative;
  height: 90vh;
  background: linear-gradient(180deg, #0a0e1f, #0d1430);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.pricing-hero .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.3), #000);
}
.pricing-hero .hero-content {
  z-index: 2;
  max-width: 800px;
}
.scroll-indicator span {
  display: block;
  width: 3px;
  height: 20px;
  margin: 0 auto;
  background: var(--accent);
  border-radius: 10px;
  animation: scroll 1.2s infinite ease-in-out;
}
@keyframes scroll { 0%{transform:translateY(0);opacity:1;} 100%{transform:translateY(8px);opacity:0;} }

/* PRICING TIERS */
.pricing-tiers {
  background: #0b1026;
  padding: 100px 20px;
  text-align: center;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.plan-card {
  background: #101633;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 25px 20px;
  position: relative;
  transition: 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(110,160,255,0.3);
}
.plan-card h3 { color: var(--accent); margin-bottom: 10px; }
.plan-card .price {
  font-size: 2rem;
  font-weight: 700;
}
.plan-card ul {
  list-style: none;
  text-align: left;
  margin: 20px 0;
  padding: 0;
}
.plan-card ul li {
  padding: 5px 0;
  color: var(--muted);
}
.plan-card.featured {
  background: linear-gradient(180deg, #121b40, #101632);
  border-color: var(--accent);
  box-shadow: 0 0 35px rgba(110,160,255,0.3);
}
.plan-card .ribbon {
  position: absolute;
  top: -10px; left: 0; right: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0e1f;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 10px 10px 0 0;
}

/* COMPARISON TABLE */
.comparison {
  background: #0a0e1f;
  padding: 100px 20px;
}
.table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
th {
  background: #101632;
  color: var(--accent);
}
td {
  color: var(--muted);
}
.highlight {
  background: rgba(110,160,255,0.1);
}

/* WHY WORTH IT */
.worth {
  background: linear-gradient(180deg, #0b0f25, #0a0e1f);
  padding: 100px 20px;
  text-align: center;
}
.stat-box {
  background: #111735;
  border-left: 4px solid var(--accent2);
  border-radius: 10px;
  padding: 15px;
  margin: 30px auto 0;
  max-width: 600px;
  font-style: italic;
}

/* FAQ */
.faq {
  background: #0a0f26;
  padding: 100px 20px;
  text-align: center;
}
.faq-items {
  margin-top: 40px;
  max-width: 800px;
  margin-inline: auto;
}
.faq-item {
  background: #101633;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}
.faq-item h3 { color: var(--accent); margin-bottom: 8px; }

/* Final CTA full background fix */
.final-cta {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
  color: var(--text);
  background: linear-gradient(180deg, #0a0e1f, #0e1630 60%, #0a0e1f);
}

.final-cta .container {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.final-cta h2 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.final-cta p {
  color: var(--muted);
  margin-bottom: 25px;
  line-height: 1.6;
}

.final-cta .cta {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.final-cta .btn {
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.final-cta .btn.accent {
  background: linear-gradient(90deg, #6ea0ff, #9bffd6);
  color: #0a0e1f;
  border: none;
}

.final-cta .btn.btn-outline {
  border: 1px solid #6ea0ff;
  color: #6ea0ff;
  background: transparent;
}

/* Fix stars canvas full coverage */
#stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

/* Animation base */
.fade-up, .fade-in, .pop, .reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
}
.fade-up.show, .fade-in.show, .pop.show, .reveal-up.show {
  opacity: 1;
  transform: translateY(0);
}
/* ===== Billing Toggle ===== */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
  font-size: 1rem;
  color: var(--text);
}
.billing-toggle .label small {
  color: var(--muted);
  font-size: 0.8rem;
}
.billing-toggle .label {
  transition: color 0.3s;
}
.billing-toggle .label.active {
  color: var(--accent);
}

/* Switch design */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #222c50;
  border-radius: 30px;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: var(--accent);
}
input:checked + .slider:before {
  transform: translateX(30px);
}

/* Hide yearly prices initially */
.price .yearly,
.price .period.yearly,
.yearly-only {
  display: none;
}
.yearly-active .price .monthly,
.yearly-active .period.monthly {
  display: none;
}
.yearly-active .price .yearly,
.yearly-active .period.yearly,
.yearly-active .yearly-only {
  display: inline;
}