/* ===== CODE LOCK PAYWALL OVERLAY ===== */
.fz-paywall {
  position: ;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 9999;

  background:
    radial-gradient(circle at center, rgba(180, 30, 30, 0.16), transparent 42%),
    rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(4px);
}

.fz-paywall.is-visible {
  display: flex;
}

/* ===== CARD ===== */
.fz-paywall__card {
  width: min(380px, 100%);
  border-radius: 22px;
  padding: 24px 22px 22px;

  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(14, 14, 14, 0.97));

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.9),
    0 0 46px rgba(255, 40, 40, 0.22);

  text-align: center;
}

/* ===== LOCK ICON ===== */
.fz-paywall__lock {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;

  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(135deg, #CC2222, #991A1A);

  box-shadow:
    0 0 24px rgba(204, 34, 34, 0.5),
    inset 0 0 14px rgba(255, 255, 255, 0.08);
}

/* ===== TITLE ===== */
.fz-paywall__title {
  margin: 0 0 8px;

  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-align: center;
}

/* убираем старые FZ-иконки слева/справа */
.fz-paywall__title::before,
.fz-paywall__title::after {
  content: none;
}

/* ===== TEXT ===== */
.fz-paywall__text {
  margin: 0 0 16px;

  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

/* ===== FORM ===== */
.fz-code-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fz-code-input {
  width: 100%;
  height: 52px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;

  font-family: Inter, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-align: center;

  outline: none;
  padding: 0 12px 0 20px;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.fz-code-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.fz-code-input:focus {
  border-color: rgba(204, 34, 34, 0.75);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(204, 34, 34, 0.14);
}

/* ===== BUTTON ===== */
.fz-paywall__btn {
  appearance: none;
  width: 100%;
  min-height: 48px;

  border: 0;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  text-decoration: none;

  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.fz-paywall__btn--primary {
  background: linear-gradient(135deg, #CC2222, #991A1A);
  color: #ffffff;

  box-shadow: 0 10px 28px rgba(204, 34, 34, 0.4);
}

.fz-paywall__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(204, 34, 34, 0.52);
}

.fz-paywall__btn--primary:active {
  transform: translateY(0);
  filter: brightness(0.94);
}

/* ===== ERROR HINT ===== */
.fz-paywall__hint {
  display: none;
  margin: 11px 0 0;

  color: #E83333;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.fz-paywall__hint.is-visible {
  display: block;
}

.fz-paywall__card.is-error {
  animation: fzCodeShake 0.26s ease;
}

@keyframes fzCodeShake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-7px);
  }

  50% {
    transform: translateX(7px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .fz-paywall {
    padding: 16px;
  }

  .fz-paywall__card {
    width: min(340px, 100%);
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .fz-paywall__lock {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
  }

  .fz-paywall__title {
    font-size: 17px;
  }

  .fz-paywall__text {
    font-size: 12px;
  }

  .fz-code-input {
    height: 50px;
    font-size: 22px;
    letter-spacing: 0.28em;
    padding-left: 18px;
  }

  .fz-paywall__btn {
    min-height: 46px;
  }
}