/* ============================================================
   M3U-EDIT.COM v2 — Pricing Page
   Location: assets/css/pricing-page.css

   Loaded only by /pricing.php (via $extra_css).
   All selectors prefixed `.pcg-` (PriCinG) so they can't collide
   with the older `.pricing-*` styles still living in other places.
   ============================================================ */

/* ---------- TOKEN SUBSET ---------- */
.pcg-shell {
  --pcg-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --pcg-gradient-mesh:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.13) 0%, transparent 50%),
    radial-gradient(at 50% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  --pcg-shadow-glow: 0 0 32px rgba(99, 102, 241, 0.35);
  --pcg-ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pcg-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .pcg-shell {
  --pcg-gradient-mesh:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.26) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.20) 0%, transparent 50%),
    radial-gradient(at 50% 60%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
  --pcg-shadow-glow: 0 0 38px rgba(139, 92, 246, 0.48);
}

.pcg-shell { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.pcg-hero {
  position: relative;
  padding: 72px 24px 40px;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.pcg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pcg-gradient-mesh);
  z-index: -1;
  pointer-events: none;
}

.pcg-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.pcg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(236, 72, 153, 0.34);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}
[data-theme="dark"] .pcg-hero-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(236, 72, 153, 0.20));
  border-color: rgba(236, 72, 153, 0.48);
}

.pcg-hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 14px;
}
.pcg-hero-title .pcg-grad {
  background: var(--pcg-gradient-primary);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.pcg-hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

.pcg-hero-trust {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}
.pcg-hero-trust span { display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   SECTION CHROME
   ============================================================ */
.pcg-section {
  padding: 56px 24px;
}
.pcg-section.is-alt {
  background: var(--bg-secondary);
}
.pcg-section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.pcg-section-header {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.pcg-section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.10);
  color: var(--primary);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pcg-section-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}
.pcg-section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   TIER CARDS — 3 tiers
   ============================================================ */
.pcg-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .pcg-tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.pcg-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 28px;
  transition:
    transform 300ms var(--pcg-ease-expo),
    box-shadow 320ms var(--pcg-ease-expo),
    border-color 200ms ease;
}
.pcg-tier:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.40);
  box-shadow: 0 18px 44px -16px rgba(99, 102, 241, 0.22);
}

.pcg-tier--featured {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--pcg-gradient-primary) border-box;
  transform: scale(1.03);
  box-shadow:
    0 22px 50px -16px rgba(99, 102, 241, 0.30),
    0 0 0 1px rgba(99, 102, 241, 0.04);
}
.pcg-tier--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 28px 60px -16px rgba(99, 102, 241, 0.38),
    var(--pcg-shadow-glow);
}
@media (max-width: 1024px) {
  .pcg-tier--featured { transform: scale(1); }
  .pcg-tier--featured:hover { transform: translateY(-4px); }
}

.pcg-tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--pcg-gradient-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 22px -6px rgba(99, 102, 241, 0.55);
}

.pcg-tier-header {
  text-align: center;
  margin-bottom: 18px;
}
.pcg-tier-icon {
  font-size: 38px;
  margin-bottom: 6px;
  line-height: 1;
}
.pcg-tier-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--text);
}
.pcg-tier-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.pcg-tier-price {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.pcg-tier-amount {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.pcg-tier-period {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
}

.pcg-tier-cta {
  display: block;
  text-align: center;
  padding: 13px 18px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  margin-bottom: 24px;
  transition: transform 220ms var(--pcg-ease-back), box-shadow 240ms var(--pcg-ease-expo), background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pcg-tier-cta--primary {
  background: var(--pcg-gradient-primary);
  color: #ffffff;
  box-shadow: 0 10px 26px -8px rgba(99, 102, 241, 0.45);
}
.pcg-tier-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(99, 102, 241, 0.60), var(--pcg-shadow-glow);
  color: #ffffff;
  text-decoration: none;
}
.pcg-tier-cta--ghost {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}
.pcg-tier-cta--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.pcg-tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pcg-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .pcg-tier-features li {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.pcg-tier-features li:last-child { border-bottom: none; }
.pcg-tier-features li.is-no { color: var(--text-muted); opacity: 0.65; }
.pcg-tier-features li strong { color: var(--text); font-weight: 700; }
.pcg-feature-check, .pcg-feature-cross {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}
.pcg-feature-check { background: rgba(16, 185, 129, 0.14); color: var(--success); }
.pcg-feature-cross { background: rgba(239, 68, 68, 0.10); color: var(--danger); opacity: 0.85; }
.pcg-feature-fire {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.pcg-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.10);
}

.pcg-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
  font-size: 14px;
}
.pcg-compare thead th {
  padding: 16px 18px;
  text-align: center;
  background: var(--bg-secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.pcg-compare thead th:first-child {
  text-align: left;
  padding-left: 22px;
  width: 36%;
}
.pcg-compare thead th.is-featured {
  background: var(--pcg-gradient-primary);
  color: #ffffff;
  font-weight: 800;
  position: relative;
}
.pcg-compare thead th.is-featured::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--pcg-gradient-primary);
}

.pcg-compare tbody td {
  padding: 14px 18px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background 180ms ease;
}
.pcg-compare tbody td:first-child {
  text-align: left;
  padding-left: 22px;
  color: var(--text);
  font-weight: 600;
}
.pcg-compare tbody td.is-featured {
  background: linear-gradient(180deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
  color: var(--text);
  font-weight: 700;
}
.pcg-compare tbody tr:hover td { background: rgba(99, 102, 241, 0.05); }
.pcg-compare tbody tr:hover td.is-featured {
  background: linear-gradient(180deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
}

.pcg-yes  { color: var(--success); font-weight: 700; }
.pcg-no   { color: var(--danger);  font-weight: 700; opacity: 0.7; }

@media (max-width: 760px) {
  .pcg-compare { font-size: 13px; }
  .pcg-compare thead th, .pcg-compare tbody td { padding: 12px 14px; }
}

/* ============================================================
   CREDIT PACKS — 3 cards
   ============================================================ */
.pcg-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
@media (max-width: 900px) {
  .pcg-packs { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 30px; }
}

.pcg-pack {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 24px 26px;
  text-align: center;
  transition: transform 280ms var(--pcg-ease-expo), border-color 200ms ease, box-shadow 280ms var(--pcg-ease-expo);
}
.pcg-pack:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px -16px rgba(99, 102, 241, 0.28);
}

.pcg-pack--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--pcg-gradient-primary) border-box;
  box-shadow: 0 16px 40px -16px rgba(99, 102, 241, 0.30);
}
.pcg-pack--featured:hover {
  box-shadow: 0 22px 50px -16px rgba(99, 102, 241, 0.40), var(--pcg-shadow-glow);
}

.pcg-pack-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px -4px rgba(245, 158, 11, 0.55);
}

.pcg-pack-icon {
  font-size: 36px;
  margin-bottom: 8px;
  line-height: 1;
}
.pcg-pack-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
}
.pcg-pack-credits {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pcg-pack-credits-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 4px 0 14px;
}
.pcg-pack-price {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.pcg-pack-savings {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

.pcg-pack-perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 14px 0 20px;
}

.pcg-pack-cta {
  display: block;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform 220ms var(--pcg-ease-back), border-color 200ms ease, color 200ms ease, background 200ms ease, box-shadow 220ms var(--pcg-ease-expo);
}
.pcg-pack-cta:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
}
.pcg-pack-cta--primary {
  background: var(--pcg-gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 26px -8px rgba(99, 102, 241, 0.45);
}
.pcg-pack-cta--primary:hover {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(99, 102, 241, 0.60);
}

/* Payment methods row */
.pcg-payments {
  text-align: center;
  margin-top: 18px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 14px;
}
.pcg-payments-label {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.pcg-payments-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.pcg-payments-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ============================================================
   FAQ
   ============================================================ */
.pcg-faq {
  max-width: 820px;
  margin: 0 auto;
}
.pcg-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 240ms var(--pcg-ease-expo);
}
.pcg-faq-item:hover { border-color: rgba(99, 102, 241, 0.45); }
.pcg-faq-item[open] {
  border-color: var(--primary);
  box-shadow:
    0 8px 24px -10px rgba(99, 102, 241, 0.22),
    inset 3px 0 0 0 var(--primary);
}
.pcg-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 56px 16px 20px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  position: relative;
  user-select: none;
}
.pcg-faq-item summary::-webkit-details-marker { display: none; }
.pcg-faq-item summary::marker { display: none; content: ''; }
.pcg-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: transform 300ms var(--pcg-ease-back), background 200ms ease, color 200ms ease;
}
.pcg-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}
.pcg-faq-item .pcg-faq-answer {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.pcg-cta {
  margin: 24px auto 80px;
  padding: 60px 28px;
  max-width: 980px;
  background: var(--pcg-gradient-primary);
  border-radius: 28px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(99, 102, 241, 0.40);
}
.pcg-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(15, 23, 42, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.pcg-cta-content { position: relative; z-index: 1; }
.pcg-cta h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin: 0 0 10px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(76, 29, 149, 0.55), 0 1px 3px rgba(15, 23, 42, 0.35);
}
.pcg-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 22px;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.20);
}
.pcg-cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.pcg-cta .btn {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 220ms var(--pcg-ease-back), box-shadow 240ms var(--pcg-ease-expo);
}
.pcg-cta .btn-primary {
  background: #ffffff;
  color: var(--primary, #6d28d9);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.30);
}
.pcg-cta .btn-primary:hover {
  background: #ffffff;
  color: #4c1d95;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45);
}
.pcg-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pcg-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  color: #ffffff;
}

@media (max-width: 640px) {
  .pcg-cta { padding: 44px 20px; margin: 20px 16px 60px; border-radius: 22px; }
  .pcg-cta-actions { flex-direction: column; width: 100%; }
  .pcg-cta-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   REVEAL — CSS-only entrance animation (no JS dependency)
   ============================================================ */
@keyframes pcgRevealIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.pcg-reveal {
  animation: pcgRevealIn 600ms var(--pcg-ease-expo) both;
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .pcg-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .pcg-tier,
  .pcg-pack,
  .pcg-faq-item,
  .pcg-cta .btn,
  .pcg-tier-cta,
  .pcg-pack-cta,
  .pcg-compare tbody td {
    transition: none !important;
  }
  .pcg-tier:hover,
  .pcg-pack:hover,
  .pcg-tier--featured:hover {
    transform: none !important;
  }
}
