/* ============================================================
   Paywall + Pricing cinematic polish (2026-04-18)
   Tier cards with gradient borders, glow, reveal animation
   ============================================================ */

/* Paywall modal backdrop */
#paywallModal, .paywall-modal {
  backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(8, 6, 10, 0.7) !important;
  animation: paywallBgIn 0.4s ease;
}

@keyframes paywallBgIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; backdrop-filter: blur(16px) saturate(1.3); }
}

/* Modal shell */
#paywallModal .modal-shell, .paywall-shell {
  background: linear-gradient(135deg, rgba(26, 22, 28, 0.98), rgba(18, 16, 20, 0.98)) !important;
  border: 1px solid rgba(232, 148, 74, 0.2) !important;
  box-shadow:
    0 50px 100px rgba(0,0,0,0.8),
    0 0 60px rgba(232,148,74,0.12),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: paywallShellIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paywallShellIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tier cards */
.paywall-tier-grid > div, .pricing-card, .tier-card {
  background: linear-gradient(135deg, rgba(26, 22, 28, 0.85), rgba(18, 16, 20, 0.85)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 2rem 1.5rem !important;
  position: relative;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  animation: tierCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.paywall-tier-grid > div:nth-child(1) { animation-delay: 0.05s; }
.paywall-tier-grid > div:nth-child(2) { animation-delay: 0.15s; }
.paywall-tier-grid > div:nth-child(3) { animation-delay: 0.25s; }

@keyframes tierCardIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tier card hover - lift + glow */
.paywall-tier-grid > div:hover, .pricing-card:hover, .tier-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(232, 148, 74, 0.45) !important;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    0 0 50px rgba(232, 148, 74, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Most popular tier - animated gradient border */
.paywall-tier-grid > div.most-popular, .pricing-card.most-popular,
.tier-card.most-popular, [data-tier="vip"] {
  border-color: rgba(232, 148, 74, 0.5) !important;
  position: relative;
}

.paywall-tier-grid > div.most-popular::before,
.tier-card.most-popular::before,
[data-tier="vip"]::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: conic-gradient(from 0deg, #e8944a, #f7c85b, #d97638, #e8944a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 4s linear infinite;
  z-index: 0;
  opacity: 0.8;
}

@keyframes borderSpin {
  to { transform: rotate(360deg); }
}

/* Price tag drama */
.paywall-tier-grid [class*="price"], .tier-price, .pricing-card h2 {
  font-weight: 900 !important;
  font-size: 3.2rem !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  background: linear-gradient(135deg, #fff 0%, #fff 50%, #e8944a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 20px rgba(232,148,74,0.2));
}

/* CTA buttons on tier cards */
.paywall-checkout-btn {
  margin-top: 1rem !important;
  padding: 1rem 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.paywall-checkout-btn.btn-gold, .paywall-checkout-btn[data-tier="premium"] {
  background: linear-gradient(135deg, #f0a55e, #e8944a 40%, #d97638) !important;
  box-shadow: 0 6px 20px rgba(232, 148, 74, 0.4);
}

.paywall-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(232, 148, 74, 0.5), 0 0 40px rgba(232, 148, 74, 0.25);
}

/* Feature list items */
.tier-card li, .paywall-tier-grid li, .pricing-feature {
  padding: 0.5rem 0 !important;
  display: flex;
  align-items: start;
  gap: 0.6rem;
}

.tier-card li::before, .paywall-tier-grid li::before {
  content: "✓";
  color: #e8944a;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Most Popular badge */
[class*="most-popular-badge"], .popular-badge {
  background: linear-gradient(135deg, #e8944a, #d97638) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(232, 148, 74, 0.5), 0 0 30px rgba(232, 148, 74, 0.25);
  animation: badgePulse 2.8s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(232, 148, 74, 0.5), 0 0 30px rgba(232, 148, 74, 0.25); }
  50% { box-shadow: 0 4px 22px rgba(232, 148, 74, 0.7), 0 0 45px rgba(232, 148, 74, 0.4); }
}
