#nl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

#nl-overlay.active {
  display: flex;
  animation: nlFadeIn .22s ease;
}

@keyframes nlFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.nl-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, rgba(255, 255, 25510, 14, 35, 0.9, 0.055) 0%, rgba(0, 229, 255, 0.035) 60%, rgba(255, 0, 128, 0.03) 100%);
  border: 1px solid rgba(0, 229, 255, 0.17);
  border-radius: 20px;
  padding: 2.25rem 2rem 1.8rem;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.05), 0 28px 64px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: nlUp .3s cubic-bezier(.16, 1, .3, 1);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: #e8eaff;
}

@keyframes nlUp {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nl-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .5), transparent);
}

.nl-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(200, 210, 255, .45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}

.nl-close:hover {
  background: rgba(255, 72, 120, .12);
  color: rgba(255, 72, 120, .9);
  border-color: rgba(255, 72, 120, .2);
}

.nl-close svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.nl-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  letter-spacing: .02em;
  color: rgba(0, 229, 255, .65);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-bottom: 1.8rem;
  transition: color .2s;
}

.nl-back:hover {
  color: rgba(0, 229, 255, 1);
}

.nl-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nl-title {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 .3rem;
  background: linear-gradient(120deg, #fff 40%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nl-sub {
  font-size: .87rem;
  color: rgba(200, 210, 255, .5);
  line-height: 1.55;
  margin: 0 0 1.35rem;
}

.nl-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0, 229, 255, .65);
  margin-bottom: .45rem;
}

.nl-input-wrap {
  position: relative;
  margin-bottom: 1.3rem;
}

.nl-input {
  width: 100%;
  box-sizing: border-box;
  padding: .85rem 1.1rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(0, 229, 255, .18);
  border-radius: 10px;
  color: #e8eaff;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.nl-input::placeholder {
  color: rgba(200, 210, 255, .28);
}

.hidden {
  display: none !important;
}

.nl-input:focus {
  border-color: rgba(0, 229, 255, .5);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .09);
}

.nl-input:-webkit-autofill,
.nl-input:-webkit-autofill:hover,
.nl-input:-webkit-autofill:focus,
.nl-input:-webkit-autofill:active {
  -webkit-text-fill-color: #e8eaff;
  caret-color: #e8eaff;
  border: 1px solid rgba(0, 229, 255, .24);
  box-shadow: 0 0 0 1000px rgba(10, 14, 32, 0.96) inset, 0 0 0 1px rgba(0, 229, 255, .04);
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 14, 32, 0.96) inset, 0 0 0 1px rgba(0, 229, 255, .04);
  transition: background-color 9999s ease-out 0s, color 9999s ease-out 0s;
}

.nl-input:-webkit-autofill::first-line {
  font-family: inherit;
  font-size: .95rem;
}

.nl-input.err {
  border-color: rgba(255, 72, 120, .55);
  box-shadow: 0 0 0 3px rgba(255, 72, 120, .09);
}

.nl-err-msg {
  display: none;
  font-size: .76rem;
  color: rgba(255, 72, 120, .85);
  margin-top: .35rem;
}

.nl-err-msg.show {
  display: block;
}

.nl-chk-row {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: .4rem;
}

.nl-checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 229, 255, .3);
  border-radius: 5px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  position: relative;
  transition: border-color .2s, background .2s;
}

.nl-checkbox:checked {
  background: rgba(0, 229, 255, .18);
  border-color: rgba(0, 229, 255, .65);
}

.nl-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid #00e5ff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.nl-checkbox.err {
  border-color: rgba(255, 72, 120, .55);
}

.nl-consent-txt {
  font-size: .79rem;
  color: rgba(200, 210, 255, .48);
  line-height: 1.55;
}

.nl-consent-txt a {
  color: rgba(0, 229, 255, .65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nl-status {
  display: none;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  line-height: 1.55;
}

.nl-mode-switch {
  margin: 1.15rem auto 0;
  display: block;
  width: fit-content;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(0, 229, 255, .82);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s, opacity .2s;
  text-align: center;
}

.nl-mode-switch:hover {
  color: #ffffff;
}

.nl-secondary {
  appearance: none;
  border: 1px solid rgba(0, 229, 255, .26);
  background: rgba(0, 229, 255, .08);
  color: #e8eaff;
  border-radius: 10px;
  padding: .82rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.nl-secondary:hover {
  border-color: rgba(0, 229, 255, .52);
  background: rgba(0, 229, 255, .14);
  transform: translateY(-1px);
}

.nl-push-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, .16);
  background:
    radial-gradient(circle at top right, rgba(0, 229, 255, .12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .024));
  border-radius: 16px;
  padding: .92rem .92rem .95rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 30px rgba(0, 0, 0, .16);
}

.nl-push-card::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .56), transparent);
}

.nl-push-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f7fbff;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.nl-push-copy {
  font-size: .82rem;
  line-height: 1.52;
  color: rgba(216, 226, 255, .67);
  margin-bottom: .78rem;
}

.nl-push-steps {
  display: grid;
  gap: .45rem;
  margin-bottom: .78rem;
}

.nl-push-step {
  display: flex;
  gap: .72rem;
  align-items: flex-start;
  padding: .52rem .6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .028);
  border: 1px solid rgba(255, 255, 255, .04);
  color: rgba(238, 241, 255, .9);
  font-size: .78rem;
  line-height: 1.42;
}

.nl-push-step-no {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 229, 255, .18), rgba(0, 229, 255, .1));
  color: #00e5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.nl-push-hint {
  font-size: .74rem;
  color: rgba(200, 210, 255, .56);
  margin-bottom: .7rem;
  padding: .62rem .72rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .045);
}

.nl-push-actions {
  display: flex;
  gap: .85rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.nl-push-device-state {
  flex: 1 1 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  padding: .64rem .76rem;
  border-radius: 10px;
  background: rgba(8, 18, 34, .72);
  border: 1px solid rgba(255, 255, 255, .05);
  font-size: .81rem;
  color: rgba(200, 210, 255, .7);
}

.nl-push-device-state-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}

.nl-push-device-state-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nl-push-device-state.is-inactive .nl-push-device-state-icon {
  background: rgba(255, 72, 120, .14);
  border: 1px solid rgba(255, 72, 120, .28);
  color: #ff7f9f;
}

.nl-push-device-state.is-active {
  color: #9ff5ff;
  border-color: rgba(0, 229, 255, .2);
  background: linear-gradient(180deg, rgba(0, 229, 255, .09), rgba(8, 18, 34, .82));
}

.nl-push-device-state.is-active .nl-push-device-state-icon {
  background: rgba(0, 229, 255, .14);
  border: 1px solid rgba(0, 229, 255, .28);
  color: #00e5ff;
}

.nl-status.show {
  display: block;
}

.nl-status.error {
  background: rgba(255, 72, 120, .1);
  border: 1px solid rgba(255, 72, 120, .22);
  color: rgba(255, 195, 212, .92);
}

.nl-status.success {
  background: rgba(0, 229, 255, .08);
  border: 1px solid rgba(0, 229, 255, .18);
  color: rgba(194, 247, 255, .92);
}

.nl-submit {
  width: 100%;
  margin-top: 1.7rem;
  padding: .95rem 1.5rem;
  background: linear-gradient(118deg, #00e5ff 0%, #00b8d9 100%);
  color: #04040e;
  font-family: 'Syne', inherit;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 22px rgba(0, 229, 255, .18);
}

.nl-submit:hover:not(:disabled) {
  opacity: .88;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, .32);
}

.nl-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  #nl-overlay {
    padding: .5rem;
    align-items: center;
  }

  .nl-panel {
    max-width: none;
    border-radius: 18px;
    padding: 1.1rem .88rem .85rem;
    max-height: calc(100vh - 1rem);
    overflow: hidden;
  }

  .nl-title {
    font-size: 1.18rem;
  }

  .nl-sub {
    font-size: .76rem;
    margin-bottom: .85rem;
    line-height: 1.42;
  }

  .nl-chk-row {
    gap: .52rem;
    margin-bottom: .25rem;
  }

  .nl-push-card {
    padding: .68rem .68rem .7rem;
    border-radius: 12px;
    margin-bottom: .7rem;
  }

  .nl-push-title {
    font-size: .85rem;
    margin-bottom: .35rem;
  }

  .nl-push-copy {
    font-size: .72rem;
    margin-bottom: .55rem;
    line-height: 1.38;
  }

  .nl-push-step {
    padding: .42rem .46rem;
    font-size: .69rem;
    gap: .5rem;
    line-height: 1.28;
  }

  .nl-push-step-no {
    width: 20px;
    height: 20px;
    font-size: .68rem;
  }

  .nl-push-hint {
    font-size: .67rem;
    margin-bottom: .5rem;
    padding: .44rem .5rem;
    line-height: 1.28;
  }

  .nl-push-device-state {
    min-height: 38px;
    padding: .5rem .6rem;
    font-size: .7rem;
    gap: .48rem;
  }

  .nl-push-device-state-icon {
    width: 18px;
    height: 18px;
    font-size: .68rem;
  }

  .nl-push-actions {
    flex-direction: column;
  }

  .nl-secondary,
  .nl-push-device-state,
  .nl-mode-switch {
    width: 100%;
  }

  .nl-mode-switch {
    margin-top: 1.15rem;
    font-size: .74rem;
    width: 100%;
    padding: .64rem .7rem;
  }

  .nl-submit {
    margin-top: 1rem;
    padding: .76rem 1rem;
    font-size: .8rem;
  }

  .nl-label {
    font-size: .65rem;
    margin-bottom: .32rem;
  }

  .nl-input {
    padding: .72rem .9rem;
    font-size: .86rem;
  }

  .nl-consent-txt {
    font-size: .68rem;
    line-height: 1.34;
  }

  .nl-back {
    margin-bottom: 1rem;
    font-size: .72rem;
  }
}

.nl-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(4, 4, 14, .3);
  border-top-color: rgba(4, 4, 14, .85);
  border-radius: 50%;
  animation: nlSpin .65s linear infinite;
}

.nl-spinner.show {
  display: block;
}

@keyframes nlSpin {
  to {
    transform: rotate(360deg);
  }
}

.nl-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .5rem 0;
}

.nl-success.show {
  display: flex;
}

.nl-form-area.hidden {
  display: none;
}

.nl-success.is-warning .nl-check-ring {
  background: rgba(255, 196, 87, .10);
  border-color: rgba(255, 196, 87, .38);
}

.nl-success.is-warning .nl-check-svg {
  stroke: #ffc457;
}

.nl-success.is-warning .nl-ok-title {
  background: linear-gradient(120deg, #fff 25%, #ffc457 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nl-success.is-warning .nl-hint-box {
  background: rgba(255, 196, 87, .07);
  border-color: rgba(255, 196, 87, .18);
  color: rgba(255, 216, 148, .82);
}

.nl-success.is-error .nl-check-ring {
  background: rgba(255, 72, 120, .10);
  border-color: rgba(255, 72, 120, .38);
}

.nl-success.is-error .nl-check-svg {
  stroke: #ff4878;
}

.nl-success.is-error .nl-ok-title {
  background: linear-gradient(120deg, #fff 25%, #ff87a9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nl-success.is-error .nl-hint-box {
  background: rgba(255, 72, 120, .07);
  border-color: rgba(255, 72, 120, .18);
  color: rgba(255, 183, 203, .82);
}

.nl-check-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(0, 229, 255, .09);
  border: 1.5px solid rgba(0, 229, 255, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  animation: nlPop .45s cubic-bezier(.16, 1, .3, 1) .08s both;
}

@keyframes nlPop {
  from {
    opacity: 0;
    transform: scale(.55);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.nl-check-svg {
  width: 30px;
  height: 30px;
  stroke: #00e5ff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: nlDraw .48s ease-out .38s forwards;
}

@keyframes nlDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.nl-ok-title {
  font-family: 'Syne', inherit;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 .45rem;
  background: linear-gradient(120deg, #fff 40%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nl-ok-txt {
  font-size: .86rem;
  color: rgba(200, 210, 255, .5);
  line-height: 1.6;
  max-width: 330px;
}

.nl-hint-box {
  margin-top: 1.5rem;
  padding: .85rem 1.15rem;
  background: rgba(0, 229, 255, .055);
  border: 1px solid rgba(0, 229, 255, .14);
  border-radius: 10px;
  font-size: .79rem;
  color: rgba(0, 229, 255, .6);
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  text-align: left;
  max-width: 370px;
}

.nl-result-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.nl-result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, .2);
  background: rgba(255, 255, 255, .04);
  color: #e8eaff;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.nl-result-btn:hover {
  background: rgba(0, 229, 255, .09);
  border-color: rgba(0, 229, 255, .38);
  transform: translateY(-1px);
}

.nl-result-btn.is-danger {
  border-color: rgba(255, 72, 120, .28);
  background: rgba(255, 72, 120, .08);
  color: #ffd6e2;
}

.nl-result-btn.is-danger:hover {
  background: rgba(255, 72, 120, .16);
  border-color: rgba(255, 72, 120, .42);
}

.nl-result-btn:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

.nl-hint-box svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  margin-top: 1px;
}

@media (max-width: 540px) {
  .nl-panel {
    padding: 2.1rem 1.45rem 1.9rem;
    border-radius: 16px;
  }

  .nl-title {
    font-size: 1.35rem;
  }

}

.newsletter-action-page {
  display: none;
  padding: 38px 0 54px;
}

.newsletter-action-page.visible {
  display: block;
}

.newsletter-action-shell {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-action-panel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-action-loading,
.newsletter-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.newsletter-action-card.is-warning .nl-check-ring {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 196, 92, .3), transparent 58%),
    linear-gradient(145deg, rgba(255, 191, 73, .18), rgba(255, 255, 255, .03));
  border-color: rgba(255, 191, 73, .22);
  box-shadow:
    0 0 38px rgba(255, 191, 73, .12),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.newsletter-action-card.is-warning .newsletter-action-symbol {
  color: #ffd98a;
}

.newsletter-action-card.is-error .nl-check-ring {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 72, 120, .28), transparent 58%),
    linear-gradient(145deg, rgba(255, 72, 120, .16), rgba(255, 255, 255, .03));
  border-color: rgba(255, 72, 120, .24);
  box-shadow:
    0 0 38px rgba(255, 72, 120, .12),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.newsletter-action-card.is-error .newsletter-action-symbol {
  color: #ff9fbb;
}

.newsletter-action-symbol {
  width: 44px;
  height: 44px;
  color: var(--color-cyan);
}

.newsletter-action-symbol svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.newsletter-action-spinner-ring {
  position: relative;
}

.newsletter-action-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, .12);
  border-top-color: var(--color-cyan);
  animation: nl-spin 1s linear infinite;
}

@keyframes nl-spin {
  to {
    transform: rotate(360deg);
  }
}

.newsletter-action-meta {
  width: 100%;
  max-width: 430px;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  text-align: left;
}

.newsletter-action-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: rgba(232, 234, 255, .86);
  font-size: .94rem;
}

.newsletter-action-meta-row:last-child {
  border-bottom: none;
}

.newsletter-action-meta-row strong {
  color: rgba(255, 255, 255, .64);
  font-weight: 600;
}

.newsletter-action-actions {
  display: flex;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

@media (max-width: 640px) {
  .newsletter-action-page {
    padding: 20px 0 36px;
  }

  .newsletter-action-shell {
    min-height: auto;
  }

  .newsletter-action-meta-row {
    flex-direction: column;
    gap: .28rem;
  }
}
