/* Paywall premium — glass card sur fond violet doré */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body.paywall-page--premium {
  --pw-gold: #c9a86c;
  --pw-gold-soft: #e8d5b0;
  --pw-gold-muted: rgba(201, 168, 108, 0.72);
  --pw-card: rgba(12, 8, 28, 0.72);
  --pw-card-border: rgba(201, 168, 108, 0.28);
  --pw-cta-start: #6b1a4a;
  --pw-cta-end: #9333ea;
  background: #080512;
  color: #f8f4ff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.paywall-page--premium::before,
body.paywall-page--premium::after {
  display: none;
}

/* Background */
.paywall-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.paywall-bg__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.paywall-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 5, 18, 0.35) 0%, rgba(8, 5, 18, 0.55) 45%, rgba(8, 5, 18, 0.82) 100%);
}

/* Shell */
.paywall-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.paywall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 20px;
  position: relative;
  z-index: 100;
}

.paywall-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.paywall-brand .site-logo__img {
  width: auto;
  height: 40px;
}

.paywall-header .nav-links {
  margin-left: auto;
}

.paywall-page--premium .app-menu-btn--burger {
  border-color: rgba(201, 168, 108, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.paywall-page--premium .app-menu-btn--burger:hover,
.paywall-page--premium .app-menu.is-open .app-menu-btn--burger {
  border-color: rgba(201, 168, 108, 0.55);
  background: rgba(201, 168, 108, 0.08);
  color: var(--pw-gold-soft);
}

.paywall-page--premium .app-menu-panel {
  background: rgba(12, 8, 28, 0.96);
  border-color: rgba(201, 168, 108, 0.22);
}

.paywall-page--premium .app-menu-item:hover,
.paywall-page--premium .app-menu-item.is-active {
  background: rgba(201, 168, 108, 0.1);
  color: var(--pw-gold-soft);
}

/* Main */
.paywall-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 24px;
}

/* Glass card */
.paywall-card {
  position: relative;
  width: 100%;
  padding: 36px 24px 28px;
  border-radius: 22px;
  border: 1px solid var(--pw-card-border);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.15) 100%),
    var(--pw-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(147, 51, 234, 0.08);
  text-align: center;
}

.paywall-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8d5b0 0%, #c9a86c 55%, #a8844a 100%);
  color: #2a1808;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(201, 168, 108, 0.35);
}

.paywall-card-brand {
  margin-top: 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pw-gold-soft);
  line-height: 1.15;
}

.paywall-card-tagline {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
}

.paywall-card-lead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
}

/* Plan switch */
.paywall-plan-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 108, 0.2);
  background: rgba(0, 0, 0, 0.22);
}

.paywall-plan-switch__btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.paywall-plan-switch__btn.is-active {
  background: rgba(201, 168, 108, 0.18);
  color: var(--pw-gold-soft);
}

.paywall-plan-switch__btn:hover:not(.is-active) {
  color: rgba(255, 255, 255, 0.82);
}

/* Price box */
.paywall-price-box {
  margin-top: 22px;
  padding: 18px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.paywall-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.paywall-price-value {
  font-size: clamp(2.5rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f0abfc 0%, #e879f9 35%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.paywall-price-period {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.paywall-price-alt {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.45;
}

.paywall-price-alt[hidden] {
  display: none;
}

/* Features */
.paywall-features {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.paywall-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.paywall-feature-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--pw-gold);
}

.paywall-feature-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* CTA */
.paywall-cta {
  width: 100%;
  margin-top: 26px;
  min-height: 52px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pw-cta-start) 0%, #7c2d9e 45%, var(--pw-cta-end) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 32px rgba(147, 51, 234, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.paywall-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 12px 40px rgba(147, 51, 234, 0.45);
}

.paywall-cta:active {
  transform: scale(0.98);
}

.paywall-trust-line {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.5;
}

/* Skip link */
.paywall-skip {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.18s ease;
}

.paywall-skip:hover {
  color: var(--pw-gold-soft);
}

@media (min-width: 640px) {
  .paywall-shell {
    padding: 24px 24px 40px;
  }

  .paywall-card {
    padding: 42px 36px 32px;
  }

  .paywall-cta {
    font-size: 13px;
  }
}
