.accessOverlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.6vh, 24px);
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(241, 184, 62, 0.14), transparent 28%),
    rgba(4, 8, 14, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.accessPanel {
  width: min(720px, 96vw);
  box-sizing: border-box;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.96), rgba(5, 10, 16, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.46);
  color: #f8fafc;
}

.accessPanelWide {
  width: min(1120px, 96vw);
}

.paywallPanel {
  width: min(980px, 92vw);
  max-height: min(980px, calc(100vh - 48px));
  max-height: min(980px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.paywallPanelHeader,
.paywallPanelFooter {
  flex: 0 0 auto;
}

.paywallPanelBody {
  flex: 1 1 auto;
  min-height: 0;
  margin-right: -10px;
  padding-right: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.paywallPanelFooter {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 16, 24, 0), rgba(10, 16, 24, 0.24));
}

.accessEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(241, 184, 62, 0.12);
  border: 1px solid rgba(241, 184, 62, 0.28);
  color: #f5cf7b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.accessPanel h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  color: #fff;
}

.accessLead {
  margin: 0 0 18px;
  max-width: 68ch;
  color: rgba(241, 245, 249, 0.8);
  font-size: 16px;
  line-height: 1.55;
}

.accessInfo,
.accessError,
.accessSuccess {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.88);
}

.accessInfo.subtle {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 245, 249, 0.74);
}

.accessError {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.28);
  color: #fee2e2;
}

.accessSuccess {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(20, 83, 45, 0.28);
  color: #dcfce7;
}

.accessActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.accessActions button,
#cardPaySubmitBtn {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(241, 184, 62, 0.96), rgba(204, 136, 28, 0.92));
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: 0 20px 38px rgba(184, 118, 11, 0.22);
}

.accessActions button:hover,
#cardPaySubmitBtn:hover {
  transform: translateY(-1px);
}

.accessActions button:disabled,
#cardPaySubmitBtn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.secondaryGhostBtn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

.consentChecklist {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.consentRow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 250, 252, 0.92);
  line-height: 1.45;
}

.consentRow.optional {
  color: rgba(241, 245, 249, 0.78);
}

.consentRow input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.consentRow a,
.accessFooterLinks a {
  color: #f5cf7b;
  text-decoration: none;
  font-weight: 700;
}

.consentMeta {
  color: rgba(241, 245, 249, 0.68);
  font-size: 13px;
}

.planGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.planCard {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.planCard:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 184, 62, 0.36);
}

.planCard.is-selected {
  border-color: rgba(241, 184, 62, 0.62);
  background: linear-gradient(180deg, rgba(241, 184, 62, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 22px 44px rgba(184, 118, 11, 0.18);
}

.planCard.is-selected::after {
  content: "Wybrany";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(241, 184, 62, 0.2);
  color: #f5cf7b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planCard h3 {
  margin: 0;
  font-size: 22px;
  color: #fff;
}

.planCard .planPrice {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 800;
  color: #f5cf7b;
}

.planCard .planMeta {
  margin-top: 10px;
  color: rgba(241, 245, 249, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.paymentGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 18px;
}

.paymentMethodCard {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.paymentMethodCard:last-child {
  grid-column: 1 / -1;
}

.paymentMethodHeader h3 {
  margin: 0;
  font-size: 22px;
  color: #fff;
}

.paymentMethodHeader p {
  margin: 8px 0 0;
  color: rgba(241, 245, 249, 0.74);
  line-height: 1.45;
}

.paymentSurface {
  min-height: 74px;
}

.cardFieldsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cardFieldShell {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 16, 24, 0.72);
}

.paymentHint {
  color: rgba(241, 245, 249, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.accessFooterLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.paymentTermsRow {
  margin-top: 16px;
}

.paywallActions {
  justify-content: flex-end;
}

@media (max-height: 860px) {
  .paywallPanel {
    max-height: min(980px, calc(100vh - 32px));
    max-height: min(980px, calc(100dvh - 32px));
  }

  .paywallPanelHeader .accessLead {
    margin-bottom: 14px;
  }

  .planGrid,
  .paymentGrid {
    gap: 12px;
    margin-top: 14px;
  }

  .paywallPanelFooter {
    margin-top: 14px;
    padding-top: 14px;
  }
}

@media (max-width: 980px) {
  .accessPanel,
  .accessPanelWide {
    width: min(760px, 96vw);
    padding: 24px;
  }

  .paywallPanel {
    width: min(760px, 96vw);
  }

  .paymentGrid {
    grid-template-columns: 1fr;
  }

  .paymentMethodCard:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .accessOverlay {
    padding: 14px;
  }

  .accessPanel,
  .accessPanelWide {
    padding: 20px;
    border-radius: 22px;
  }

  .paywallPanel {
    width: min(100%, 96vw);
  }

  .cardFieldsGrid {
    grid-template-columns: 1fr;
  }

  .paywallPanelBody {
    margin-right: -6px;
    padding-right: 6px;
  }

  .accessActions {
    flex-direction: column;
  }

  .accessActions button,
  #cardPaySubmitBtn {
    width: 100%;
  }
}
