/* ==========================================================================
   LOVEZII — VELVET GLASS PAYWALL OVERLAY  v1.1.0
   Full-screen premium access layer  |  Cloudflare R2-ready
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS custom properties ─────────────────────────────────────────────────── */
:root {
  --pw-bg:          #060916;
  --pw-surface:     rgba(8, 10, 28, 0.90);
  --pw-glass-light: rgba(255, 255, 255, 0.035);
  --pw-border:      rgba(255, 255, 255, 0.085);
  --pw-border-glow: rgba(138, 98, 255, 0.32);
  --pw-pink:        #ff2aa1;
  --pw-violet:      #8a62ff;
  --pw-indigo:      #6366f1;
  --pw-text:        #f0f2ff;
  --pw-text-muted:  rgba(240, 242, 255, 0.52);
  --pw-text-dim:    rgba(240, 242, 255, 0.32);
  --pw-radius:      20px;
  --pw-radius-sm:   11px;
  --pw-shadow:      0 32px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255,255,255,0.055);
  --pw-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --pw-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pw-dur:         0.32s;
}

/* ── Respect user motion preference ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #lz-paywall-root *,
  #lz-paywall-root *::before,
  #lz-paywall-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Body scroll lock ────────────────────────────────────────────────────── */
body.lz-pw-locked {
  overflow: hidden !important;
  /* iOS Safari: prevent rubber-band scroll bleed */
  position: fixed;
  width: 100%;
}

/* ── Root overlay ────────────────────────────────────────────────────────── */
#lz-paywall-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--pw-dur) var(--pw-ease);
  /* Prevent tap-highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

#lz-paywall-root.lz-pw-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Cinematic backdrop ──────────────────────────────────────────────────── */
.lz-pw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 12, 0.75);
  backdrop-filter: blur(20px) saturate(0.3) brightness(0.7);
  -webkit-backdrop-filter: blur(20px) saturate(0.3) brightness(0.7);
}

/* ── Animated gradient mesh ──────────────────────────────────────────────── */
.lz-pw-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.lz-pw-mesh::before,
.lz-pw-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.18;
  animation: lz-pw-drift 14s ease-in-out infinite alternate;
  will-change: transform;
}

.lz-pw-mesh::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--pw-violet) 0%, transparent 70%);
  top: -100px; right: -60px;
  animation-delay: -4s;
}

.lz-pw-mesh::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--pw-pink) 0%, transparent 70%);
  bottom: -80px; left: -40px;
  animation-direction: alternate-reverse;
  animation-delay: -9s;
}

@keyframes lz-pw-drift {
  0%   { transform: translate(0, 0)      scale(1);    }
  50%  { transform: translate(24px, -16px) scale(1.07); }
  100% { transform: translate(-16px, 24px) scale(0.96); }
}

/* ── Main panel ──────────────────────────────────────────────────────────── */
.lz-pw-panel {
  position: relative;
  z-index: 1;
  background: var(--pw-surface);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  box-shadow: var(--pw-shadow);
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  transform: translateY(28px) scale(0.96);
  transition: transform var(--pw-dur) var(--pw-ease);
  /* Contain stacking context for z-index children */
  isolation: isolate;
}

.lz-pw-panel::-webkit-scrollbar { display: none; }

#lz-paywall-root.lz-pw-visible .lz-pw-panel {
  transform: translateY(0) scale(1);
}

/* ── Shimmer accent bar ──────────────────────────────────────────────────── */
.lz-pw-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  border-radius: var(--pw-radius) var(--pw-radius) 0 0;
  background: linear-gradient(90deg, transparent 0%, var(--pw-violet) 30%, var(--pw-pink) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: lz-pw-shimmer 3.5s ease-in-out infinite;
  opacity: 0.75;
  pointer-events: none;
}

@keyframes lz-pw-shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.lz-pw-header {
  padding: 30px 28px 0;
  text-align: center;
  flex-shrink: 0;
}

/* Avatar ring */
.lz-pw-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.lz-pw-avatar-ring {
  width: 84px; height: 84px;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(from 180deg at 50% 50%, var(--pw-pink), var(--pw-violet), var(--pw-indigo), var(--pw-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lz-pw-ring-pulse 3s ease-in-out infinite;
  box-shadow:
    0 0 0 0 rgba(138, 98, 255, 0),
    0 0 32px rgba(138, 98, 255, 0.38),
    0 0 64px rgba(255, 42, 161, 0.16);
}

@keyframes lz-pw-ring-pulse {
  0%, 100% {
    box-shadow: 0 0 28px rgba(138, 98, 255, 0.38), 0 0 56px rgba(255, 42, 161, 0.16);
  }
  50% {
    box-shadow: 0 0 42px rgba(138, 98, 255, 0.58), 0 0 80px rgba(255, 42, 161, 0.30);
  }
}

/* Avatar image — handles both R2 URLs and initial-letter fallback */
.lz-pw-avatar {
  width: 79px;
  height: 79px;
  border-radius: 50%;
  border: 2px solid var(--pw-bg);
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* R2-served profile image inside the avatar ring */
.lz-pw-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  /* Prevent broken-image icon on slow connections */
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
}

/* Initial-letter fallback */
.lz-pw-avatar-initials {
  font-family: 'Syne', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
  user-select: none;
}

/* Live indicator dot */
.lz-pw-live-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 17px; height: 17px;
  background: #22c55e;
  border-radius: 50%;
  border: 2.5px solid var(--pw-bg);
  display: none;
}

.lz-pw-live-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.38);
  animation: lz-pw-live-ping 1.6s ease-out infinite;
}

@keyframes lz-pw-live-ping {
  0%   { transform: scale(0.75); opacity: 1; }
  100% { transform: scale(1.9);  opacity: 0; }
}

.lz-pw-avatar-wrap.lz-pw-is-live .lz-pw-live-dot { display: block; }

/* Creator identity */
.lz-pw-creator-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--pw-text);
  margin: 0 0 3px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lz-pw-creator-handle {
  font-size: 0.8rem;
  color: var(--pw-text-muted);
  margin: 0 0 5px;
}

/* Social proof pill */
.lz-pw-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(138, 98, 255, 0.13);
  border: 1px solid rgba(138, 98, 255, 0.24);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.71rem;
  color: rgba(185, 170, 255, 0.88);
  letter-spacing: 0.01em;
  margin-top: 5px;
}

.lz-pw-social-proof svg {
  width: 11px; height: 11px;
  flex-shrink: 0;
}

/* ── Value section ───────────────────────────────────────────────────────── */
.lz-pw-value {
  padding: 18px 28px 0;
  text-align: center;
}

.lz-pw-headline {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.022em;
  margin: 0 0 7px;
  color: #fff;
}

.lz-pw-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pw-pink) 20%, var(--pw-violet) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lz-pw-sub {
  font-size: 0.84rem;
  color: var(--pw-text-muted);
  margin: 0 0 14px;
  line-height: 1.55;
}

/* Benefits list */
.lz-pw-benefits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.lz-pw-benefit {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--pw-glass-light);
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-sm);
  padding: 8px 12px;
  font-size: 0.81rem;
  color: rgba(215, 210, 255, 0.84);
  transition: border-color 0.18s, background 0.18s;
}

.lz-pw-benefit:hover {
  background: rgba(138, 98, 255, 0.08);
  border-color: rgba(138, 98, 255, 0.2);
}

.lz-pw-benefit-icon {
  width: 25px; height: 25px;
  border-radius: 7px;
  background: rgba(138, 98, 255, 0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.lz-pw-benefit-icon svg {
  width: 13px; height: 13px;
  stroke: rgba(185, 170, 255, 0.9);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Pricing block ───────────────────────────────────────────────────────── */
.lz-pw-offer {
  margin: 16px 28px 0;
  background: linear-gradient(135deg, rgba(138, 98, 255, 0.11) 0%, rgba(255, 42, 161, 0.07) 100%);
  border: 1px solid rgba(138, 98, 255, 0.22);
  border-radius: 13px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.lz-pw-price-group {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.lz-pw-price-currency {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pw-text-muted);
  align-self: flex-start;
  margin-top: 6px;
}

.lz-pw-price-amount {
  font-family: 'Syne', sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--pw-text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.lz-pw-price-period {
  font-size: 0.76rem;
  color: var(--pw-text-dim);
  margin-left: 2px;
}

.lz-pw-offer-meta {
  text-align: right;
  flex-shrink: 0;
}

.lz-pw-offer-label {
  font-size: 0.68rem;
  color: var(--pw-text-dim);
  display: block;
  margin-bottom: 4px;
}

.lz-pw-offer-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pw-pink), var(--pw-violet));
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Actions area ────────────────────────────────────────────────────────── */
.lz-pw-actions {
  padding: 16px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
}

/* Base button */
.lz-pw-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s var(--pw-ease), box-shadow 0.15s var(--pw-ease), opacity 0.15s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.lz-pw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.lz-pw-btn svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
}

/* Stripe / card button */
.lz-pw-btn-card {
  background: linear-gradient(135deg, var(--pw-violet) 0%, var(--pw-indigo) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.38);
}

.lz-pw-btn-card:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 7px 26px rgba(99, 102, 241, 0.54);
}

.lz-pw-btn-card:active:not(:disabled) { transform: translateY(0); }

/* Login button */
.lz-pw-btn-login {
  background: linear-gradient(135deg, var(--pw-pink) 0%, var(--pw-violet) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 42, 161, 0.35);
}

.lz-pw-btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 7px 26px rgba(255, 42, 161, 0.52);
}

/* Ghost / secondary button */
.lz-pw-btn-ghost {
  background: var(--pw-glass-light);
  border: 1px solid var(--pw-border);
  color: var(--pw-text-muted);
  font-size: 0.83rem;
}

.lz-pw-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.055);
  color: var(--pw-text);
}

/* Enter button (success state) */
.lz-pw-btn-enter {
  background: linear-gradient(135deg, var(--pw-pink) 0%, var(--pw-violet) 100%);
  color: #fff;
  box-shadow: 0 4px 22px rgba(255, 42, 161, 0.42);
}

.lz-pw-btn-enter:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 7px 28px rgba(255, 42, 161, 0.58);
}

/* Divider */
.lz-pw-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pw-text-dim);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lz-pw-divider::before,
.lz-pw-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pw-border);
}

/* PayPal container */
.lz-pw-paypal-wrap {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  overflow: hidden;
}

/* PayPal SDK iframe override */
.lz-pw-paypal-wrap > div,
.lz-pw-paypal-wrap iframe {
  border-radius: 11px !important;
  min-height: 46px;
}

/* ── Processing state ────────────────────────────────────────────────────── */
.lz-pw-state-processing {
  padding: 24px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.lz-pw-spinner {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(138, 98, 255, 0.16);
  border-top-color:  var(--pw-violet);
  border-right-color: var(--pw-pink);
  animation: lz-pw-spin 0.75s linear infinite;
  will-change: transform;
}

@keyframes lz-pw-spin { to { transform: rotate(360deg); } }

.lz-pw-processing-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--pw-text);
  margin: 0;
}

.lz-pw-processing-sub {
  font-size: 0.78rem;
  color: var(--pw-text-muted);
  margin: 0;
}

/* ── Success state ───────────────────────────────────────────────────────── */
.lz-pw-state-success {
  padding: 24px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
}

.lz-pw-success-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-violet), var(--pw-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 44px rgba(138, 98, 255, 0.58), 0 0 72px rgba(255, 42, 161, 0.24);
  animation: lz-pw-success-pop 0.42s var(--pw-ease-spring) forwards;
}

@keyframes lz-pw-success-pop {
  0%   { transform: scale(0.35); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}

.lz-pw-success-ring svg {
  width: 30px; height: 30px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lz-pw-success-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--pw-text);
  margin: 0;
}

.lz-pw-success-sub {
  font-size: 0.8rem;
  color: var(--pw-text-muted);
  margin: 0;
}

/* ── Error banner ────────────────────────────────────────────────────────── */
.lz-pw-error-banner {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: var(--pw-radius-sm);
  padding: 10px 13px;
  font-size: 0.79rem;
  color: rgba(252, 165, 165, 0.92);
  display: none;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.lz-pw-error-banner.lz-pw-visible { display: flex; }

.lz-pw-error-banner svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Trust footer ────────────────────────────────────────────────────────── */
.lz-pw-footer {
  padding: 13px 28px;
  /* iOS safe area inset for bottom-sheet mode */
  padding-bottom: max(13px, calc(13px + env(safe-area-inset-bottom)));
  text-align: center;
  flex-shrink: 0;
}

.lz-pw-trust {
  font-size: 0.69rem;
  color: var(--pw-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.lz-pw-trust svg {
  width: 11px; height: 11px;
  stroke: rgba(138, 98, 255, 0.65);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.lz-pw-trust-sep { opacity: 0.35; }

/* ── Promo code ──────────────────────────────────────────────────────────── */
.lz-pw-promo-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pw-text-muted);
  font-size: 0.74rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(240, 242, 255, 0.25);
  transition: color 0.18s;
}

.lz-pw-promo-toggle:hover { color: var(--pw-text); }

.lz-pw-promo-row {
  display: none;
  gap: 6px;
}

.lz-pw-promo-row.lz-pw-visible { display: flex; }

.lz-pw-promo-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.82rem;
  color: var(--pw-text);
  font-family: 'DM Sans', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.18s;
  -webkit-appearance: none;
}

.lz-pw-promo-input::placeholder { color: var(--pw-text-dim); }

.lz-pw-promo-input:focus { border-color: var(--pw-border-glow); }

.lz-pw-promo-apply {
  flex-shrink: 0;
  background: rgba(138, 98, 255, 0.18);
  border: 1px solid rgba(138, 98, 255, 0.30);
  border-radius: 8px;
  padding: 8px 13px;
  color: rgba(185, 170, 255, 0.92);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  font-family: 'DM Sans', system-ui, sans-serif;
  white-space: nowrap;
}

.lz-pw-promo-apply:hover {
  background: rgba(138, 98, 255, 0.28);
  border-color: rgba(138, 98, 255, 0.45);
}

/* ── Close button (optional) ─────────────────────────────────────────────── */
.lz-pw-close-btn {
  position: absolute;
  top: 13px; right: 14px;
  z-index: 10;
  width: 30px; height: 30px;
  padding: 0;
  border-radius: 8px;
  background: var(--pw-glass-light);
  border: 1px solid var(--pw-border);
  color: var(--pw-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.lz-pw-close-btn:hover { background: rgba(255,255,255,0.07); color: var(--pw-text); }

.lz-pw-close-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── Mobile — bottom-sheet ───────────────────────────────────────────────── */
@media (max-width: 540px) {
  #lz-paywall-root {
    align-items: flex-end;
  }

  .lz-pw-panel {
    width: 100%;
    border-radius: var(--pw-radius) var(--pw-radius) 0 0;
    max-height: 93dvh;
    /* Slide up from bottom */
    transform: translateY(100%);
  }

  #lz-paywall-root.lz-pw-visible .lz-pw-panel {
    transform: translateY(0);
  }

  /* Drag handle pill */
  .lz-pw-panel::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
  }

  .lz-pw-header  { padding-top: 26px; }
  .lz-pw-headline { font-size: 1.32rem; }
  .lz-pw-actions { padding: 14px 20px 0; }
  .lz-pw-value   { padding: 16px 20px 0; }
  .lz-pw-offer   { margin: 14px 20px 0; }
  .lz-pw-footer  { padding: 12px 20px; padding-bottom: max(12px, calc(12px + env(safe-area-inset-bottom))); }
}

/* ── Desktop min-width ───────────────────────────────────────────────────── */
@media (min-width: 641px) {
  .lz-pw-panel { width: min(500px, calc(100vw - 48px)); }
}

/* ── Staggered child entrance ────────────────────────────────────────────── */
#lz-paywall-root.lz-pw-visible .lz-pw-header  { animation: lz-pw-child-in 0.38s 0.04s var(--pw-ease) both; }
#lz-paywall-root.lz-pw-visible .lz-pw-value   { animation: lz-pw-child-in 0.38s 0.09s var(--pw-ease) both; }
#lz-paywall-root.lz-pw-visible .lz-pw-offer   { animation: lz-pw-child-in 0.38s 0.14s var(--pw-ease) both; }
#lz-paywall-root.lz-pw-visible .lz-pw-actions { animation: lz-pw-child-in 0.38s 0.18s var(--pw-ease) both; }
#lz-paywall-root.lz-pw-visible .lz-pw-footer  { animation: lz-pw-child-in 0.38s 0.22s var(--pw-ease) both; }

@keyframes lz-pw-child-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.lz-pw-hidden { display: none !important; }
