/* ── Paywall Overlay ──────────────────────────── */
#bse-paywall {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pw-card {
  position: relative;
  background: var(--card, #1a1a2e);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 20px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.pw-close-x {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted, rgba(255,255,255,0.4));
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color .15s;
}
.pw-close-x:hover { color: var(--text, #fff); }

.pw-icon { font-size: 2.8rem; margin-bottom: 12px; }
.pw-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; color: var(--text, #fff); }
.pw-desc  { font-size: .95rem; color: var(--text-muted, rgba(255,255,255,0.55)); margin-bottom: 18px; line-height: 1.5; }

.pw-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
  display: inline-block;
}
.pw-features li {
  padding: 5px 0;
  font-size: .92rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pw-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}
.pw-price { font-size: 2.4rem; font-weight: 800; color: var(--gold, #fbbf24); }
.pw-price-note { font-size: .9rem; color: var(--text-muted, rgba(255,255,255,0.55)); }

.pw-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  margin-bottom: 10px;
  transition: transform .12s, opacity .12s;
}
.pw-btn:hover { transform: scale(1.02); opacity: .92; }
.pw-btn:active { transform: scale(.98); }

.pw-stripe {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}
.pw-paypal {
  background: linear-gradient(135deg, #0070ba, #005ea6);
  color: #fff;
}

.pw-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-muted, rgba(255,255,255,0.35));
  font-size: .82rem;
  text-transform: uppercase;
}
.pw-divider::before,
.pw-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255,255,255,0.08));
}

.pw-key-group {
  display: flex;
  gap: 8px;
}
.pw-key-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: rgba(0,0,0,0.25);
  color: var(--text, #fff);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s;
}
.pw-key-input:focus { border-color: var(--gold, #fbbf24); }
.pw-key-input::placeholder { color: rgba(255,255,255,0.25); }

.pw-unlock-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: var(--gold, #fbbf24);
  color: #111;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .12s;
}
.pw-unlock-btn:hover { opacity: .85; }

.pw-key-msg {
  margin-top: 10px;
  font-size: .86rem;
  min-height: 18px;
}

/* ── Light theme overrides ─────────────────── */
[data-theme="light"] .pw-features li { color: rgba(0,0,0,0.7); }
[data-theme="light"] .pw-key-input::placeholder { color: rgba(0,0,0,0.35); }
