/* Auth agitation popup — Market-like dark sheet */
.zp-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.zp-auth-modal[hidden] {
  display: none !important;
}

.zp-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 28, 0.62);
  backdrop-filter: blur(2px);
}

.zp-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  padding: 28px 24px 20px;
  border: 0;
  border-radius: 28px;
  background: #2a2a2e;
  color: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  font-family: var(--zp-font-ui, Nunito, sans-serif);
}

.zp-auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 18px;
  padding: 4px;
  border-radius: 14px;
  background: #1f1f24;
}

.zp-auth-modal__tab {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.zp-auth-modal__tab.is-active {
  background: #3a3a3f;
  color: #fff;
}

.zp-auth-modal__tab:focus-visible {
  outline: 2px solid #f5c518;
  outline-offset: 1px;
}

.zp-auth-modal__title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.zp-auth-modal__lead {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.zp-auth-modal__field {
  margin: 0 0 8px;
  padding: 10px 14px 12px;
  border-radius: 16px;
  background: #3a3a3f;
}

.zp-auth-modal__label {
  display: block;
  margin: 0 0 4px;
  color: #ff5a3c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.zp-auth-modal__input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zp-auth-modal__prefix {
  flex: 0 0 auto;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.zp-auth-modal__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.zp-auth-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.zp-auth-modal__hint-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff5a3c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.zp-auth-modal__error {
  min-height: 18px;
  margin: 0 0 18px;
  color: #ff5a3c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.zp-auth-modal__error:empty {
  margin-bottom: 10px;
}

.zp-auth-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.zp-auth-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.zp-auth-modal__btn--later {
  background: #3a3a3f;
  color: #fff;
}

.zp-auth-modal__btn--later:hover,
.zp-auth-modal__btn--later:focus-visible {
  background: #45454b;
  outline: none;
}

.zp-auth-modal__btn--enter {
  background: #f5c518;
  color: #1f1f24;
}

.zp-auth-modal__btn--enter:hover,
.zp-auth-modal__btn--enter:focus-visible {
  background: #ffd84d;
  outline: none;
}

.zp-auth-modal__input--code {
  letter-spacing: 0.28em;
  text-align: center;
  font-size: 22px;
}

.zp-auth-modal__resend {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zp-auth-modal__resend:hover {
  color: #fff;
}

.zp-auth-modal__resend:disabled {
  color: rgba(255, 255, 255, 0.42);
  cursor: default;
  text-decoration: none;
}

.zp-auth-modal__captcha {
  margin-top: 2px;
}

.zp-auth-modal__captcha-box {
  width: 100%;
  min-height: 100px;
  overflow: hidden;
  border-radius: 12px;
}

.zp-auth-modal__captcha-box iframe {
  max-width: 100%;
}

.zp-auth-modal__captcha-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.zp-auth-modal__captcha-q {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.zp-auth-modal__input--captcha {
  letter-spacing: 0.08em;
}

.zp-auth-modal__captcha-refresh {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.zp-auth-modal__captcha-refresh:hover {
  background: rgba(255, 255, 255, 0.18);
}

.zp-auth-modal__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.zp-auth-modal__dev {
  margin: 0 0 12px;
  color: #f5c518;
  font-size: 13px;
  font-weight: 700;
}

body.zp-auth-modal-open {
  overflow: hidden;
}

/* Поздравление после регистрации — тот же визуальный язык, что zp-a2hs-promo */
.zp-welcome-bonus {
  position: fixed;
  inset: 0;
  z-index: 12100;
  pointer-events: none;
}
.zp-welcome-bonus[hidden] {
  display: none !important;
}
.zp-welcome-bonus.is-open {
  pointer-events: auto;
}
.zp-welcome-bonus__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 47, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.zp-welcome-bonus.is-open .zp-welcome-bonus__backdrop {
  opacity: 1;
}
.zp-welcome-bonus__card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-height: min(86dvh, 620px);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  font-family: Nunito, Manrope, system-ui, sans-serif;
  box-shadow: 0 16px 48px rgba(36, 22, 74, 0.28);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.zp-welcome-bonus.is-open .zp-welcome-bonus__card {
  transform: translateY(0);
}
.zp-welcome-bonus__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.zp-welcome-bonus__close::before,
.zp-welcome-bonus__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #3a3550;
  border-radius: 1px;
}
.zp-welcome-bonus__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.zp-welcome-bonus__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.zp-welcome-bonus__hero {
  position: relative;
  padding: 20px 18px 16px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(145deg, #7a52d6 0%, #6440bf 48%, #4c3191 100%);
  color: #fff;
  overflow: hidden;
}
.zp-welcome-bonus__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(circle, #fff 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  pointer-events: none;
}
.zp-welcome-bonus__badge {
  position: relative;
  display: inline-block;
  max-width: 78%;
  margin: 0 40px 10px 0;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 4px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.zp-welcome-bonus__exclusive {
  position: relative;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
}
.zp-welcome-bonus__gift {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  min-height: 88px;
  padding-right: 4px;
}
.zp-welcome-bonus__amount {
  font-size: clamp(42px, 12vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 220, 120, 0.55), 0 2px 0 rgba(0, 0, 0, 0.12);
}
.zp-welcome-bonus__gift-ico {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}
.zp-welcome-bonus__body {
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
}
.zp-welcome-bonus__title {
  margin: 0 0 10px;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.zp-welcome-bonus__text {
  margin: 0 0 16px;
  color: #5c5868;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.zp-welcome-bonus__cta {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #6440bf;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.zp-welcome-bonus__cta:hover,
.zp-welcome-bonus__cta:focus-visible {
  background: #4c3191;
  color: #fff;
  outline: none;
}
@media (min-width: 901px) {
  .zp-welcome-bonus__card {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(420px, calc(100% - 48px));
    max-height: min(86vh, 640px);
    transform: translate(-50%, -46%) scale(0.98);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
  }
  .zp-welcome-bonus.is-open .zp-welcome-bonus__card {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
