/* Партнёрские FS: композиция «регистрация → email → награда» из макета v136/v139. */
#partnerFsAlmostModal.modal {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-x: hidden;
}
#partnerFsAlmostModal.modal.hidden {
  display: none !important;
}
#partnerFsAlmostModal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 16, 0.62);
}
#partnerFsAlmostModal .modal-dialog.partner-promo-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 90px #0009;
  color: #292432;
  background: #fff;
}
#partnerFsAlmostModal .partner-promo-body {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d7ccef transparent;
}
#partnerFsAlmostModal .partner-promo-close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #ffffffd9;
  color: #665d72;
  line-height: 1;
  font-size: 26px;
  cursor: pointer;
}
#partnerFsAlmostModal .partner-promo-close:focus-visible {
  outline: 2px solid #6b4eff;
  outline-offset: 2px;
}
.pp-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 28px 18px;
  background: #fff;
}
.pp-head:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #6b4eff;
}
.pp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #59418e;
  letter-spacing: .01em;
}
.pp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a874;
  box-shadow: 0 0 0 4px #22a87423;
}
#partnerFsAlmostModal .pp-head h2 {
  margin: 17px 45px 7px 0;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -.048em;
  color: #262133;
  font-weight: 700;
}
#partnerFsAlmostModal .pp-head p {
  margin: 0;
  max-width: 390px;
  color: #655c73;
  font-size: 14px;
  line-height: 1.55;
}
.pp-content { padding: 19px 28px 28px; }
.pp-steps { margin: 0 0 20px; }
.pp-steps h3 { font-size: 15px; margin: 0 0 15px; color: #292432; }
.pp-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pp-track:before {
  content: "";
  position: absolute;
  top: 21px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, #6b4eff 0 20%, #e7e0f2 20% 100%);
}
.pp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.pp-step-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f0ecf7;
  color: #8670ba;
  border: 1px solid #e5dcf3;
}
.pp-step-current .pp-step-icon {
  background: #6b4eff;
  color: #fff;
  border-color: #6b4eff;
  box-shadow: 0 7px 18px #6b4eff35;
}
.pp-step-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.pp-step-n { font-size: 10px; font-weight: 700; color: #8a7aa6; margin: 10px 0 4px; }
.pp-step-current .pp-step-n { color: #6b4eff; }
.pp-step strong { font-size: 12px; line-height: 1.34; color: #30283c; overflow-wrap: anywhere; }
.pp-step small { font-size: 11px; line-height: 1.35; color: #81758c; margin-top: 4px; overflow-wrap: anywhere; }
.pp-code {
  min-height: 53px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 15px;
  background: #f4f1f8;
  border-radius: 11px;
}
.pp-code[hidden] { display: none !important; }
.pp-code > span { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pp-code small { font-size: 10px; color: #8a7f96; }
.pp-code strong {
  font-size: 14px;
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-code button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #e9e2f7;
  color: #6b4eff;
  cursor: pointer;
}
.pp-code button:focus-visible,
.pp-actions button:focus-visible {
  outline: 2px solid #6b4eff;
  outline-offset: 2px;
}
.pp-code svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pp-copy-status {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 12px;
  color: #22a874;
}
.pp-copy-status:empty { display: none; }
.pp-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 17px;
}
.pp-actions button {
  min-height: 47px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  padding: 0 15px;
  cursor: pointer;
}
.pp-primary {
  background: #6b4eff;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.pp-primary span { font-size: 18px; line-height: 1; }
.pp-secondary { background: #f0ecf6; color: #5f4b93; white-space: nowrap; }
.pp-actions.pp-actions--single { grid-template-columns: 1fr; }
.pp-actions.pp-actions--single .pp-secondary { width: 100%; }

.pp-scene {
  position: relative;
  height: 194px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 65% 70%, #5440a0 0%, #282047 39%, #14121f 80%);
}
.pp-scene:after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -61px;
  height: 105px;
  border: 1px solid #a791ef40;
  border-radius: 50%;
  box-shadow: 0 -2px 30px #8e64ff25;
  transform: rotate(-7deg);
}
.pp-scene-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #080a18 0%, transparent 28%, transparent 76%, #0d0a20aa 100%);
}
.pp-scene-track {
  position: absolute;
  left: 9%;
  top: 102px;
  width: 77%;
  height: 2px;
  background: linear-gradient(90deg, #9786ee00, #b8a5ff, #f1dbbd);
  transform: rotate(-9deg);
  box-shadow: 0 0 12px #9f82ff;
}
.pp-register-art {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 45px;
  width: 89px;
  height: 98px;
  background: linear-gradient(145deg, #fff, #e6dcfc);
  border-radius: 11px;
  border: 1px solid #ffffffb8;
  transform: rotate(-10deg);
  box-shadow: 10px 12px 22px #05040e77;
  padding: 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pp-register-art img { width: 30px; height: 30px; object-fit: contain; }
.pp-register-lines { display: grid; gap: 5px; margin-top: 9px; }
.pp-register-lines i { display: block; width: 55px; height: 4px; background: #c5b6e7; border-radius: 4px; }
.pp-register-lines i:nth-child(2) { width: 41px; }
.pp-register-lines i:nth-child(3) { width: 48px; }
.pp-register-art b {
  position: absolute;
  right: -10px;
  bottom: -9px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #20a876;
  border: 2px solid #fff;
  color: white;
  font-size: 16px;
  box-shadow: 0 5px 12px #0006;
}
.pp-email-art,
.pp-fs-art,
.pp-promo-art {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(8px 11px 12px #0805158f);
}
.pp-email-art { z-index: 3; width: 125px; height: 125px; left: 28%; top: 37px; transform: rotate(-11deg); }
.pp-fs-art { z-index: 1; width: 108px; height: 108px; left: 57%; top: 0; transform: rotate(14deg); opacity: .9; }
.pp-promo-art { z-index: 4; width: 180px; height: 180px; left: 52%; top: 20px; transform: rotate(8deg); }
.pp-scene-reward {
  position: absolute;
  z-index: 5;
  left: 64%;
  top: 111px;
  max-width: 34%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.06em;
  transform: rotate(8deg);
  text-shadow: 0 2px 4px #220c6b, 0 0 11px #a98cff;
  font-weight: 700;
}
.pp-scene-reward--long { font-size: 18px; max-width: 38%; }
.pp-scene-spark { position: absolute; z-index: 6; color: #e5d2ff; font-size: 17px; text-shadow: 0 0 8px #b68cff; }
.pp-spark-one { left: 24%; top: 21px; }
.pp-spark-two { right: 9%; top: 27px; font-size: 12px; }

@media (max-width: 430px) {
  #partnerFsAlmostModal .modal-dialog.partner-promo-modal { border-radius: 21px; }
  .pp-head { padding: 26px 22px 16px; }
  .pp-content { padding: 17px 22px 23px; }
  #partnerFsAlmostModal .pp-head h2 { font-size: 26px; max-width: 300px; }
  .pp-track { gap: 8px; }
  .pp-step strong { font-size: 11.5px; }
  .pp-step small { font-size: 10.5px; }
  .pp-steps { margin: 0 0 18px; }
  #partnerFsAlmostModal .partner-promo-close { top: 12px; right: 12px; }
  .pp-scene { height: 174px; }
  .pp-register-art { left: 6%; top: 40px; transform: rotate(-10deg) scale(.83); transform-origin: top left; }
  .pp-email-art { width: 112px; height: 112px; left: 26%; top: 35px; }
  .pp-fs-art { width: 96px; height: 96px; left: 56%; }
  .pp-promo-art { width: 163px; height: 163px; left: 52%; top: 18px; }
  .pp-scene-reward { font-size: 24px; top: 98px; left: 64%; }
  .pp-scene-reward--long { font-size: 16px; }
}
@media (max-width: 370px) {
  .pp-actions { grid-template-columns: 1fr; gap: 8px; margin-top: 13px; }
  .pp-actions button { width: 100%; min-height: 44px; }
  .pp-head { padding: 23px 20px 14px; }
  .pp-content { padding: 15px 20px 20px; }
  .pp-track { gap: 6px; }
  .pp-steps { margin: 0 0 15px; }
  #partnerFsAlmostModal .pp-head h2 { margin-top: 15px; }
  .pp-scene { height: 160px; }
  .pp-register-art { top: 35px; transform: rotate(-10deg) scale(.76); }
  .pp-email-art { width: 100px; height: 100px; top: 31px; }
  .pp-fs-art { width: 89px; height: 89px; }
  .pp-promo-art { width: 151px; height: 151px; top: 17px; }
  .pp-scene-reward { font-size: 21px; top: 91px; }
  .pp-scene-reward--long { font-size: 15px; }
}

@media (min-width: 900px) {
  #partnerFsAlmostModal .modal-dialog.partner-promo-modal {
    width: min(940px, calc(100vw - 64px));
    max-width: 940px;
    max-height: calc(100dvh - 56px);
    border-radius: 26px;
  }
  #partnerFsAlmostModal .partner-promo-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100dvh - 56px);
    overflow: auto;
  }
  #partnerFsAlmostModal .partner-promo-close { top: 20px; right: 20px; }
  .pp-head { grid-column: 1; grid-row: 1; padding: 33px 36px 28px; }
  #partnerFsAlmostModal .pp-head h2 { max-width: 440px; margin: 23px 0 12px; font-size: 38px; line-height: 1.08; }
  #partnerFsAlmostModal .pp-head p { max-width: 410px; font-size: 16px; line-height: 1.5; }
  .pp-scene { grid-column: 1; grid-row: 2; height: 340px; }
  .pp-scene:after { bottom: -60px; height: 125px; }
  .pp-scene-track { top: 178px; left: 8%; width: 83%; }
  .pp-register-art { left: 8%; top: 86px; transform: rotate(-10deg) scale(1.25); transform-origin: top left; }
  .pp-email-art { left: 28%; top: 72px; width: 170px; height: 170px; }
  .pp-fs-art { left: 60%; top: 22px; width: 148px; height: 148px; }
  .pp-promo-art { left: 53%; top: 93px; width: 240px; height: 240px; }
  .pp-scene-reward { left: 69%; top: 201px; font-size: 34px; max-width: 28%; }
  .pp-scene-reward--long { font-size: 24px; }
  .pp-spark-one { left: 24%; top: 47px; }
  .pp-spark-two { right: 10%; top: 55px; }
  .pp-content {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px 34px 34px;
    background: #fff;
  }
  .pp-steps { margin: 0; }
  .pp-steps h3 { font-size: 20px; margin: 0 0 23px; }
  .pp-track { display: grid; grid-template-columns: 1fr; gap: 19px; }
  .pp-track:before {
    top: 20px;
    bottom: 26px;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(#6b4eff 0 24%, #e7e0f2 24% 100%);
  }
  .pp-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    align-items: start;
  }
  .pp-step-icon { grid-column: 1; grid-row: 1 / 4; width: 44px; height: 44px; }
  .pp-step-n { grid-column: 2; grid-row: 1; margin: 0 0 3px; font-size: 11px; }
  .pp-step strong { grid-column: 2; grid-row: 2; font-size: 15px; line-height: 1.3; }
  .pp-step small { grid-column: 2; grid-row: 3; margin-top: 4px; font-size: 12px; line-height: 1.35; }
  .pp-code { margin-top: 25px; min-height: 59px; padding-left: 17px; }
  .pp-code small { font-size: 11px; }
  .pp-code strong { font-size: 16px; }
  .pp-actions { margin-top: 12px; }
  .pp-actions button { min-height: 51px; font-size: 14px; }
}
@media (min-width: 1600px) {
  #partnerFsAlmostModal .modal-dialog.partner-promo-modal { width: 1020px; max-width: 1020px; }
  .pp-scene { height: 360px; }
  .pp-register-art { left: 9%; top: 95px; transform: rotate(-10deg) scale(1.35); }
  .pp-email-art { left: 29%; top: 71px; width: 190px; height: 190px; }
  .pp-fs-art { left: 62%; width: 158px; height: 158px; }
  .pp-promo-art { left: 54%; top: 94px; width: 260px; height: 260px; }
  .pp-scene-reward { left: 69%; top: 213px; font-size: 38px; }
  .pp-content { padding: 42px 40px 38px; }
  .pp-track { gap: 24px; }
}

#fwBonuses .bn-card[data-bonus-type="partner_fs"],
#fwBonuses .bn-card[data-bonus-art="partner-fs"] {
  --bn-glow: #6b4eff;
}
