:root {
  --nm_spinner-primary: #1a8cff;
  --nm_spinner-primary-dim: rgba(26, 140, 255, 0.55);
  --nm_spinner-dark: #040c18;
  --nm_spinner-navy: #071525;
  --nm_spinner-text: #ffffff;
}

body.nm-spinner-open {
  overflow: hidden;
}

#nm_spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  z-index: 10050;
  display: none;
}

#nm_spinner-overlay.nm_spinner-active {
  display: block;
}

#nm_spinner-modal {
  position: fixed;
  z-index: 10060;
  display: none;
  padding: 32px 36px 30px;
  min-width: 780px;
  background: rgba(4, 10, 22, 0.97);
  border: 1px solid rgba(26, 140, 255, 0.25);
  border-radius: 20px;
  box-shadow:
    0 0 80px rgba(26, 140, 255, 0.18),
    0 25px 70px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(26, 140, 255, 0.04);
  user-select: none;
  cursor: default;
  overflow: visible;
}

#nm_spinner-modal.nm_spinner-active {
  display: block;
}

.nm_spinner-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  transition: color 0.2s, background 0.2s;
}

.nm_spinner-modal-close:hover {
  color: #fff;
  background: rgba(26, 140, 255, 0.15);
}

.nm_spinner-layout {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nm_spinner-wheel-col {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  min-height: 420px;
}

.nm_spinner-terms {
  flex: 0 0 320px;
  width: 320px;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(26, 140, 255, 0.18);
  border-radius: 0;
  padding: 8px 0 8px 32px;
  color: var(--nm_spinner-text);
  font-family: 'Inter', sans-serif;
  overflow: visible;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.nm_spinner-terms-header {
  margin-bottom: 16px;
}

.nm_spinner-terms-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  padding-right: 28px;
}

.nm_spinner-terms-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nm_spinner-terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.nm_spinner-terms-list li:last-child {
  margin-bottom: 0;
}

.nm_spinner-terms-check {
  flex: 0 0 16px;
  margin-top: 1px;
}

.nm_spinner-terms-footer {
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.nm_spinner-terms-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--nm_spinner-primary);
  text-decoration: underline;
  font-weight: 500;
}

.nm_spinner-terms-link:hover {
  color: #5ec4ff;
}

.nm_spinner-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

#nm_spinner-canvas {
  display: block;
  border-radius: 50%;
}

.nm_spinner-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 0 7px rgba(30, 120, 255, 0.9));
}

#nm_spinner-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #14305a, #050f22);
  border: 2.5px solid #1a8cff;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  z-index: 10;
  box-shadow:
    0 0 0 5px rgba(26, 140, 255, 0.1),
    0 0 22px rgba(26, 140, 255, 0.55),
    0 0 50px rgba(26, 140, 255, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s, transform 0.15s;
  line-height: 1;
}

#nm_spinner-spin-btn:hover {
  box-shadow:
    0 0 0 6px rgba(26, 140, 255, 0.18),
    0 0 34px rgba(26, 140, 255, 0.75),
    0 0 65px rgba(26, 140, 255, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

#nm_spinner-spin-btn:active {
  transform: translate(-50%, -50%) scale(0.93);
}

#nm_spinner-spin-btn.nm_spinner-spinning {
  animation: nm_spinner-btnPulse 0.7s ease-in-out infinite;
}

@keyframes nm_spinner-btnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(26, 140, 255, 0.1), 0 0 22px rgba(26, 140, 255, 0.55);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(26, 140, 255, 0.08), 0 0 44px rgba(26, 140, 255, 0.85);
  }
}

#nm_spinner-arrow-btn {
  display: none;
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0b1929;
  border: 1.5px solid rgba(26, 140, 255, 0.5);
  color: var(--nm_spinner-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.2s, box-shadow 0.2s;
}

#nm_spinner-arrow-btn:hover {
  background: rgba(26, 140, 255, 0.15);
  box-shadow: 0 0 14px rgba(26, 140, 255, 0.45);
}

#nm_spinner-result-box {
  position: absolute;
  bottom: -110px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 340px;
  max-width: 400px;
  background: rgba(4, 10, 22, 0.98);
  border: 1px solid rgba(26, 140, 255, 0.5);
  border-radius: 13px;
  padding: 14px 20px 16px;
  text-align: center;
  display: none;
  z-index: 20;
  box-shadow: 0 8px 36px rgba(26, 140, 255, 0.22), 0 0 0 1px rgba(26, 140, 255, 0.08);
  white-space: nowrap;
}

#nm_spinner-result-box.nm_spinner-show {
  display: block;
  animation: nm_spinner-popIn 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes nm_spinner-popIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.nm_spinner-result-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(26, 140, 255, 0.9);
  margin-bottom: 5px;
}

.nm_spinner-result-text {
  font-size: 13.5px;
  color: #dde8ff;
  font-weight: 500;
  margin-bottom: 8px;
  white-space: normal;
  line-height: 1.4;
}

.nm_spinner-discount-wrap {
  margin-bottom: 8px;
}

.nm_spinner-discount-code {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(26, 140, 255, 0.1);
  border: 1.5px dashed rgba(26, 140, 255, 0.65);
  border-radius: 7px;
  color: #5ec4ff;
  font-family: 'Courier New', monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.nm_spinner-discount-code:hover {
  background: rgba(26, 140, 255, 0.2);
  box-shadow: 0 0 14px rgba(26, 140, 255, 0.35);
}

.nm_spinner-copy-hint {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 3px;
}

.nm_spinner-result-cta {
  display: inline-block;
  padding: 7px 18px;
  background: linear-gradient(135deg, #1a8cff, #0055cc);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}

.nm_spinner-result-cta:hover {
  box-shadow: 0 0 14px rgba(26, 140, 255, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

@media (max-width: 820px) {
  #nm_spinner-modal {
    min-width: 0;
    width: calc(100vw - 24px);
    max-width: 420px;
    padding: 24px 20px 22px;
  }

  .nm_spinner-layout {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .nm_spinner-wheel-col {
    min-height: 0;
    width: 100%;
  }

  .nm_spinner-terms {
    width: 100%;
    max-width: 400px;
    flex: 0 0 auto;
    border-left: none;
    border-top: 1px solid rgba(26, 140, 255, 0.18);
    padding: 24px 0 0;
    min-height: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .nm_spinner-wrapper {
    width: 300px;
    height: 300px;
  }

  #nm_spinner-canvas {
    width: 300px;
    height: 300px;
  }

  #nm_spinner-modal {
    padding: 18px 16px;
  }

  #nm_spinner-spin-btn {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  #nm_spinner-result-box {
    min-width: 280px;
    bottom: -96px;
  }
}
