/* ===== PRICING PAGE (subscription_pricing.css) ===== */

.pricing-page {
  max-width: 1120px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem 4rem;
  color: #f5f5f5;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pricing-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  opacity: 0.7;
  font-size: 0.95rem;
}

/* Toggle Month / Year */
.billing-toggle {
  margin-top: 1.5rem;
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.billing-toggle-btn {
  border: none;
  background: transparent;
  color: #bbb;
  font-size: 0.9rem;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.billing-toggle-btn.is-active {
  background: #fff;
  color: #111;
}

.billing-toggle-btn .badge-save {
  font-size: 0.7rem;
  margin-left: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
}

/* Grid */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2rem;
}

/* Cards */
.plan-card {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05), rgba(0,0,0,0.9));
  border-radius: 1.25rem;
  padding: 1.6rem 1.5rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.plan-card--ghost {
  background: rgba(15,15,20,0.95);
  border: 1px solid rgba(255,255,255,0.05);
}

.plan-card--highlight {
  border: 1px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 20px 50px rgba(255,215,0,0.18);
  transform: translateY(-4px);
}

.plan-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.plan-badge--highlight {
  color: #facc15;
}

.plan-title {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.plan-tagline {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
}

/* Price */
.plan-price {
  margin-bottom: 1.4rem;
}

.plan-price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-main {
  font-size: 1.7rem;
  font-weight: 700;
}

.price-cycle {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Features */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  font-size: 0.9rem;
}

.plan-features li {
  margin-bottom: 0.45rem;
  display: flex;
  gap: 0.4rem;
}

.plan-features li::before {
  content: "•";
  opacity: 0.7;
}

.soon-label {
  font-size: 0.78rem;
  opacity: 0.75;
}

/* Buttons */
.plan-action {
  margin-top: auto;
}

.btn-plan {
  width: 100%;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  border: none;
  background: #facc15;
  color: #111;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
}

.btn-plan:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  background: #fde047;
}

.btn-plan--outline {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-plan--outline:hover {
  background: rgba(255,255,255,0.06);
}

.pricing-note {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .pricing-page {
    margin-top: 1.5rem;
  }

  .plan-card--highlight {
    transform: none;
  }
}
/* ราคา – ซ่อนทั้งหมดไว้ก่อน แล้วค่อยให้ JS/ data-attr เปิดทีหลัง */
.plan-price-amount {
  display: none;
}

/* แสดงราคาตามโหมด billing */
.pricing-page[data-billing="monthly"] [data-price="monthly"] {
  display: flex;
}

.pricing-page[data-billing="monthly"] [data-price="yearly"] {
  display: none;
}

.pricing-page[data-billing="yearly"] [data-price="monthly"] {
  display: none;
}

.pricing-page[data-billing="yearly"] [data-price="yearly"] {
  display: flex;
}
