/**
 * Premium feature gate — themed lock overlays per feature.
 * Each feature sets --pg-c1 / --pg-c2 (accent gradient) + --pg-glow.
 */
.premium-gate {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  animation: pg-fade-in 0.35s ease;
}

.premium-gate.premium-gate--fixed {
  position: fixed;
}

@keyframes pg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Frosted backdrop */
.premium-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}

/* Animated floating words behind the card */
.premium-gate__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.premium-gate__fx span {
  position: absolute;
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  opacity: 0;
  white-space: nowrap;
  filter: drop-shadow(0 8px 24px var(--pg-glow, rgba(167, 139, 250, 0.5)));
  transform: translate(-50%, -50%) scale(0.6);
  animation: pg-float 4.5s ease-in-out infinite;
}

@keyframes pg-float {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  25% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: 0.35; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}

/* Card */
.premium-gate__card {
  position: relative;
  z-index: 2;
  width: min(92%, 480px);
  padding: 2.75rem 2.25rem 2.25rem;
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(160deg, rgba(28, 22, 64, 0.82) 0%, rgba(15, 10, 31, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.8),
    inset 0 0 40px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: pg-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pg-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top gradient hairline */
.premium-gate__card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--pg-c1), var(--pg-c2), transparent);
}

.premium-gate__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--pg-c1), var(--pg-c2));
  box-shadow: 0 6px 20px -6px var(--pg-glow, rgba(167, 139, 250, 0.6));
}

.premium-gate__badge .material-symbols-outlined { font-size: 15px; }

.premium-gate__icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.25rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pg-c1), var(--pg-c2));
  box-shadow: 0 18px 40px -12px var(--pg-glow, rgba(167, 139, 250, 0.7));
  animation: pg-icon-breathe 3s ease-in-out infinite;
}

@keyframes pg-icon-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

.premium-gate__icon .material-symbols-outlined {
  font-size: 48px;
  color: #fff;
  font-variation-settings: 'FILL' 1;
}

.premium-gate__title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}

.premium-gate__subtitle {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.premium-gate__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.premium-gate__bullets li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.premium-gate__bullets .material-symbols-outlined {
  font-size: 20px;
  color: transparent;
  background: linear-gradient(135deg, var(--pg-c1), var(--pg-c2));
  -webkit-background-clip: text;
  background-clip: text;
  flex-shrink: 0;
}

.premium-gate__cta {
  width: 100%;
  padding: 1.1rem;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pg-c1), var(--pg-c2));
  box-shadow: 0 12px 30px -8px var(--pg-glow, rgba(167, 139, 250, 0.6));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.premium-gate__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.premium-gate__cta:active { transform: translateY(0) scale(0.99); }

.premium-gate__back {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.premium-gate__back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.premium-gate__back:active { transform: scale(0.99); }

.premium-gate__note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.premium-gate__note b { color: var(--pg-c2); }

/* Credit-exhausted variant reuses card styling; smaller icon caption */
.premium-gate__meter {
  margin: 0 auto 1.25rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.premium-gate__meter > i {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pg-c1), var(--pg-c2));
}
