/* Full-screen paywall modal shell — content styles live in styles.css */
.paywall-surface-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.paywall-surface-modal[hidden] {
  display: none !important;
}

.paywall-surface-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.paywall-surface-modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  background: var(--bg, #040618);
  color: var(--ink, #f4f0e8);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.paywall-surface-modal__scroll {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.paywall-surface-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 199, 107, 0.28);
  border-radius: 999px;
  background: rgba(4, 6, 24, 0.72);
  color: var(--ink, #f4f0e8);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.paywall-surface-modal__close:hover {
  background: rgba(244, 199, 107, 0.12);
  border-color: rgba(244, 199, 107, 0.45);
}

.paywall-surface-modal__close:focus-visible {
  outline: 2px solid var(--gold, #f4c76b);
  outline-offset: 2px;
}

.paywall-surface-host .paywall-shell {
  padding-top: 52px;
  padding-bottom: 36px;
  margin: 0 auto;
}

body.paywall-surface-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .paywall-surface-modal__panel {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .paywall-surface-modal__close {
    top: 10px;
    right: 10px;
  }
}
