/* ══════════════════════════════════════
   PAYWALL OVERLAY
══════════════════════════════════════ */
.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(to bottom, #121212, #070707);
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.paywall-overlay.pw-visible {
  display: block;
}
.paywall-overlay.pw-animate {
  opacity: 1;
}

.paywall-scroll {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 50px 40px 60px;
}

.paywall-container {
  width: 100%;
  max-width: 1113px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* ── Top row: logo + close ── */
.paywall-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.paywall-logo {
  width: 44px;
  height: 32px;
  flex-shrink: 0;
}

.paywall-close {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.paywall-close:hover { opacity: 1; }
.paywall-close svg { width: 20px; height: 20px; }

.paywall-overlay[data-mode="hard"] .paywall-close {
  display: none;
}

/* ── Title + toggle row ── */
.paywall-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.paywall-headline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 430px;
}
.paywall-headline h1 {
  font-size: 32px;
  font-weight: 700;
  color: rgba(253,253,253,0.99);
  line-height: 1.1;
  margin: 0;
}
.paywall-headline p {
  font-size: 16px;
  font-weight: 400;
  color: #717171;
  line-height: 1.4;
  margin: 0;
}

/* ── Period toggle ── */
.paywall-period {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.pw-period-label {
  font-size: 16px;
  font-weight: 500;
  color: #717171;
  white-space: nowrap;
  transition: color 0.2s;
}
.pw-period-label.pw-active {
  color: rgba(253,253,253,0.99);
}

.pw-toggle-wrap {
  position: relative;
  width: 65px;
  height: 38px;
  flex-shrink: 0;
}
.pw-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.pw-toggle-track {
  position: absolute;
  inset: 0;
  background: #3a3a3a;
  border-radius: 38px;
  cursor: pointer;
  transition: background 0.2s;
}
.pw-toggle-track::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fdfdfd;
  transition: transform 0.2s;
}
.pw-toggle-input:checked + .pw-toggle-track {
  background: #fdfdfd;
}
.pw-toggle-input:checked + .pw-toggle-track::after {
  transform: translateX(27px);
  background: #121212;
}

.pw-yearly-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pw-save-badge {
  font-size: 13px;
  font-weight: 400;
  color: #f5f5f5;
  opacity: 0.64;
  white-space: nowrap;
}

/* ── Plan cards ── */
.paywall-plans {
  display: flex;
  align-items: center;
  gap: 26px;
}

.pw-card {
  flex: 1;
  min-width: 0;
  border-radius: 20px;
  padding: 33px 29px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  min-height: 520px;
}

/* Basic / Ultimate — dark */
.pw-card-dark {
  background: linear-gradient(to bottom, #121212, #070707);
  border: 1px solid #717171;
  color: rgba(253,253,253,0.99);
}

/* Pro — light */
.pw-card-light {
  background: #f5f5f5;
  border: 1px solid rgba(253,253,253,0.99);
  box-shadow: 0 0 30px rgba(232,230,230,0.5);
  color: #272727;
  min-height: 535px;
}

/* Popular badge */
.pw-popular-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: linear-gradient(to bottom, rgba(18,18,18,0.7), #070707);
  border: 1px solid rgba(253,253,253,0.99);
  border-radius: 60px;
  padding: 10px 17px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(253,253,253,0.99);
  box-shadow: 0 10px 18px #9c9c9c;
  line-height: 0.9;
  white-space: nowrap;
}

/* Card header */
.pw-card-name {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.085;
  margin: 0;
}
.pw-card-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.21;
  color: #717171;
  margin: 0;
}
.pw-card-light .pw-card-desc { color: #272727; }

.pw-card-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Price block */
.pw-price-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pw-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pw-price {
  font-size: 32px;
  font-weight: 600;
  color: rgba(253,253,253,0.99);
  line-height: 1.085;
}
.pw-card-light .pw-price { color: #121212; }
.pw-price-period {
  font-size: 18px;
  font-weight: 500;
  color: #717171;
}
.pw-price-sub {
  font-size: 14px;
  font-weight: 500;
  color: #717171;
}

/* Includes label */
.pw-includes {
  font-size: 14px;
  font-weight: 500;
  color: #717171;
  margin: 0;
}
.pw-includes strong { font-weight: 700; }

/* Features list */
.pw-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.pw-feature {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pw-check {
  width: 20px; height: 20px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-card-dark .pw-check { background: rgba(255,255,255,0.08); }
.pw-card-light .pw-check { background: #1a1a1a; box-shadow: 0 12px 5px rgba(232,230,230,0.5); }
.pw-check svg { width: 12px; height: 9px; }

.pw-feature-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.085;
}
.pw-card-dark .pw-feature-text { color: rgba(253,253,253,0.99); }
.pw-card-light .pw-feature-text { color: #3d3d3d; }

/* CTA button */
.pw-btn {
  width: 100%;
  padding: 17px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}
.pw-btn:hover { opacity: 0.88; }
.pw-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.pw-btn-dark-outline {
  background: rgba(253,253,253,0.99);
  color: #060606;
}
.pw-btn-dark-fill {
  background: linear-gradient(to bottom, #3a3a3a, #070707);
  color: #f5f5f5;
  box-shadow: 0 10px 9px #9c9c9c;
  padding: 21px 17px;
}

/* Loading spinner */
.pw-spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: pw-spin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes pw-spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.paywall-footer {
  text-align: center;
  font-size: 14px;
  color: #717171;
}
.paywall-footer a {
  color: #f5f5f5;
  text-decoration: underline;
}
.paywall-footer a:hover { color: #fff; }

/* ── Success toast (payment return) ── */
.pw-toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  color: #fdfdfd;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  transition: transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pw-toast.pw-toast-visible {
  transform: translateX(-50%) translateY(0);
}

/* ── Plan limit toast ── */
.limit-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  background: linear-gradient(180deg, #121212 0%, #070707 100%);
  border-radius: 20px;
  box-shadow: 0px 10px 18.3px 0px #9c9c9c;
  width: min(702px, calc(100vw - 32px));
  height: 88px;
  z-index: 10001;
  overflow: hidden;
  transition: transform 0.35s ease;
}
.limit-toast.limit-toast-visible {
  transform: translateX(-50%) translateY(0);
}
.limit-toast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  height: 100%;
  gap: 16px;
}
.limit-toast-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.limit-toast-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(253, 253, 253, 0.99);
  margin: 0;
}
.limit-toast-desc {
  font-size: 14px;
  color: #717171;
  margin: 0;
}
.limit-toast-btn {
  background: rgba(253, 253, 253, 0.99);
  border: none;
  border-radius: 10px;
  padding: 13px 31px;
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.limit-toast-btn:hover {
  background: #ebebeb;
}
