/* ═══════════════════════════════════════════
   PREMIUM GATE — Upgrade overlay for 403 content
   ═══════════════════════════════════════════ */

/* Container must be position:relative for the gate to overlay correctly */
.premium-gated {
  position: relative;
  min-height: 340px;
}

/* The blurred content underneath */
.premium-gated > *:not(.premium-gate) {
  filter: blur(6px) saturate(0.5);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s, opacity 0.4s;
}

/* ═══════ GATE OVERLAY ═══════ */
.premium-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pgFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pgFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════ CARD ═══════ */
.premium-gate-card {
  width: 100%;
  max-width: 320px;
  border-radius: 22px;
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(13, 79, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(77, 130, 255, 0.06) 0%, transparent 50%),
    var(--slab);
  border: 1.5px solid var(--blue-20);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--blue-10),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Shimmer sweep */
.premium-gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(13, 79, 247, 0.03) 45%,
    rgba(13, 79, 247, 0.06) 50%,
    rgba(13, 79, 247, 0.03) 55%,
    transparent 80%
  );
  animation: pgShimmer 5s ease-in-out infinite;
}

@keyframes pgShimmer {
  0%   { left: -80%; }
  100% { left: 130%; }
}

/* Decorative corner ring */
.premium-gate-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-10);
  pointer-events: none;
}

/* ═══════ LOCK BADGE ═══════ */
.pg-lock-wrap {
  position: relative;
  width: 56px; height: 56px;
  margin: 0 auto 18px;
}

.pg-lock-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(13, 79, 247, 0.4) 0%,
    rgba(13, 79, 247, 0.7) 25%,
    rgba(77, 130, 255, 0.4) 50%,
    rgba(13, 79, 247, 0.7) 75%,
    rgba(13, 79, 247, 0.4) 100%
  );
  animation: pgRingBreathe 4s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes pgRingBreathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.06); opacity: 0.85; }
}

.pg-lock-haze {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 79, 247, 0.4) 0%, transparent 70%);
  filter: blur(14px);
  opacity: 0.35;
  z-index: -1;
}

.pg-lock-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), var(--blue-bright));
  box-shadow:
    0 4px 20px rgba(13, 79, 247, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.pg-lock-icon svg {
  width: 24px; height: 24px;
  color: #fff;
}

/* ═══════ TEXT ═══════ */
.pg-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--chalk);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.pg-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--ghost);
  line-height: 1.55;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

/* ═══════ CTA BUTTON ═══════ */
.pg-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
  box-shadow: var(--fab-shadow);
}

.pg-cta:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(13, 79, 247, 0.2);
}

/* ═══════ LIGHT MODE ═══════ */
[data-theme="light"] .premium-gate-card {
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(13, 79, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(77, 130, 255, 0.04) 0%, transparent 50%),
    var(--slab);
  border-color: var(--blue-20);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--blue-10);
}

[data-theme="light"] .pg-lock-haze {
  opacity: 0;
}

/* ═══════ iOS — suppress infinite animations ═══════ */
.is-ios .pg-lock-ring { animation-iteration-count: 1 !important; }
.is-ios .premium-gate-card::before { animation-iteration-count: 1 !important; }
