/* =========================
   PRICE PLANS + PRICE DETAILS
   extra CSS
   ========================= */

section[data-page="price-plans"],
section[data-page="price-details"] {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
}

section[data-page="price-plans"] .container,
section[data-page="price-details"] .container {
  position: relative;
  z-index: 2;
}

section[data-page="price-plans"] .decorative-shape,
section[data-page="price-details"] .decorative-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

section[data-page="price-plans"] .shape-1,
section[data-page="price-details"] .shape-1 {
  top: 60px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: rgba(59, 130, 246, 0.12);
}

section[data-page="price-plans"] .shape-2,
section[data-page="price-details"] .shape-2 {
  top: 180px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: rgba(16, 185, 129, 0.12);
}

section[data-page="price-plans"] .shape-3,
section[data-page="price-details"] .shape-3 {
  bottom: 40px;
  left: 20%;
  width: 140px;
  height: 140px;
  background: rgba(245, 158, 11, 0.12);
}

section[data-page="price-plans"] .header-section,
section[data-page="price-details"] .header-section {
  max-width: 840px;
  margin: 0 auto 56px;
}

section[data-page="price-plans"] .header-section .title,
section[data-page="price-details"] .header-section .title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

section[data-page="price-plans"] .header-section .subtitle,
section[data-page="price-details"] .header-section .subtitle {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475569;
}

section[data-page="price-plans"] .grid-layout-1,
section[data-page="price-details"] .grid-layout-1,
section[data-page="price-details"] .grid-layout-2 {
  row-gap: 24px;
}

section[data-page="price-plans"] .card-wrapper,
section[data-page="price-details"] .card-wrapper {
  display: flex;
  flex-direction: column;
}

section[data-page="price-plans"] .feature-card,
section[data-page="price-details"] .feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

section[data-page="price-plans"] .feature-card:hover,
section[data-page="price-details"] .feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  border-color: rgba(59, 130, 246, 0.22);
}

section[data-page="price-plans"] .feature-card::before,
section[data-page="price-details"] .feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, #2563eb 0%, #14b8a6 50%, #f59e0b 100%);
}

section[data-page="price-plans"] .card-large,
section[data-page="price-details"] .card-large {
  min-height: 100%;
}

section[data-page="price-plans"] .card-primary,
section[data-page="price-details"] .card-primary {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
}

section[data-page="price-plans"] .card-secondary,
section[data-page="price-details"] .card-secondary {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.97) 0%, rgba(255, 255, 255, 0.92) 100%);
}

section[data-page="price-plans"] .card-accent,
section[data-page="price-details"] .card-accent {
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
}

section[data-page="price-details"] .card-success {
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
}

section[data-page="price-details"] .card-warning {
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
}

section[data-page="price-plans"] .icon-wrapper,
section[data-page="price-details"] .icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

section[data-page="price-plans"] .content-item-image,
section[data-page="price-details"] .content-item-image {
  margin-bottom: 22px;
  border-radius: 22px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
}

section[data-page="price-plans"] .content-item-image img,
section[data-page="price-details"] .content-item-image img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

section[data-page="price-plans"] .feature-card h3,
section[data-page="price-details"] .feature-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

section[data-page="price-plans"] .feature-card p,
section[data-page="price-details"] .feature-card p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
}

section[data-page="price-plans"] .product-features,
section[data-page="price-details"] .product-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

section[data-page="price-plans"] .product-features li,
section[data-page="price-details"] .product-features li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1e293b;
}

section[data-page="price-plans"] .product-features li:last-child,
section[data-page="price-details"] .product-features li:last-child {
  margin-bottom: 0;
}

section[data-page="price-plans"] .product-features li::before,
section[data-page="price-details"] .product-features li::before {
  content: "✓";
  position: absolute;
  top: 0.05em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
}

section[data-page="price-plans"] .product-price-wrapper,
section[data-page="price-details"] .product-price-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 20px;
}

section[data-page="price-plans"] .product-price,
section[data-page="price-details"] .product-price {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

section[data-page="price-plans"] .product-currency,
section[data-page="price-details"] .product-currency {
  position: relative;
  top: -2px;
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
}

section[data-page="price-plans"] .content-link,
section[data-page="price-details"] .content-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

section[data-page="price-plans"] .content-link:hover,
section[data-page="price-details"] .content-link:hover {
  transform: translateY(-2px);
  color: #ffffff;
  opacity: 0.96;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

section[data-page="price-plans"] .content-link i,
section[data-page="price-details"] .content-link i {
  font-size: 0.95rem;
}

section[data-page="price-plans"] .badge,
section[data-page="price-details"] .badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

section[data-page="price-plans"] .content-wrapper {
  margin-top: 18px;
  padding: 38px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 100%);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

section[data-page="price-plans"] .section-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
}

section[data-page="price-plans"] .section-description {
  margin: 0 auto 24px;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.8;
}

section[data-page="price-plans"] .cta-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

section[data-page="price-plans"] .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.22s ease;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(255, 255, 255, 0.10);
}

section[data-page="price-plans"] .cta-button:hover {
  transform: translateY(-2px);
  color: #0f172a;
}

section[data-page="price-plans"] .cta-button.cta-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

section[data-page="price-plans"] .cta-button.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* spacing helpers */
section[data-page="price-plans"] .mb-4,
section[data-page="price-details"] .mb-4 {
  margin-bottom: 1.5rem !important;
}

section[data-page="price-plans"] .mt-4,
section[data-page="price-details"] .mt-4 {
  margin-top: 1.5rem !important;
}

/* responsive */
@media (max-width: 991.98px) {
  section[data-page="price-plans"],
  section[data-page="price-details"] {
    padding: 72px 0;
  }

  section[data-page="price-plans"] .feature-card,
  section[data-page="price-details"] .feature-card {
    padding: 26px;
  }

  section[data-page="price-plans"] .badge,
  section[data-page="price-details"] .badge {
    position: static;
    margin-bottom: 16px;
    align-self: flex-start;
  }

  section[data-page="price-plans"] .content-item-image img,
  section[data-page="price-details"] .content-item-image img {
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  section[data-page="price-plans"],
  section[data-page="price-details"] {
    padding: 56px 0;
  }

  section[data-page="price-plans"] .header-section,
  section[data-page="price-details"] .header-section {
    margin-bottom: 40px;
  }

  section[data-page="price-plans"] .feature-card,
  section[data-page="price-details"] .feature-card {
    padding: 22px;
    border-radius: 22px;
  }

  section[data-page="price-plans"] .feature-card::before,
  section[data-page="price-details"] .feature-card::before {
    border-radius: 22px 22px 0 0;
  }

  section[data-page="price-plans"] .content-item-image,
  section[data-page="price-details"] .content-item-image {
    border-radius: 18px;
  }

  section[data-page="price-plans"] .content-item-image img,
  section[data-page="price-details"] .content-item-image img {
    height: 200px;
  }

  section[data-page="price-plans"] .content-link,
  section[data-page="price-details"] .content-link,
  section[data-page="price-plans"] .cta-button {
    width: 100%;
    justify-content: center;
  }

  section[data-page="price-plans"] .cta-button-group {
    flex-direction: column;
  }
}