.yps-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(8px);
}

.yps-overlay[hidden] {
  display: none !important;
}

.yps-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 32px 28px 24px;
  border-radius: 20px;
  color: #f4f7ff;
  background:
    radial-gradient(1200px 280px at 10% -20%, rgba(245, 197, 24, 0.18), transparent 50%),
    linear-gradient(165deg, #1b2740 0%, #0e1628 55%, #0a1220 100%);
  border: 1px solid rgba(245, 197, 24, 0.28);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: yps-in 0.35s ease;
}

@keyframes yps-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.yps-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9aa8c2;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.yps-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.yps-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.yps-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5c518;
  color: #141414;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yps-chip-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #d5deee;
}

.yps-dialog h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.yps-sub {
  margin: 0 0 22px;
  color: #b7c3d9;
  font-size: 15px;
  line-height: 1.5;
}

.yps-form {
  display: grid;
  gap: 10px;
}

.yps-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #33415f;
  background: #0b1220;
  color: #fff;
  font-size: 16px;
}

.yps-form input[type="email"]:focus {
  outline: 2px solid #f5c518;
  border-color: #f5c518;
}

.yps-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd84a, #f5c518);
  color: #141414;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 197, 24, 0.28);
}

.yps-btn:hover {
  filter: brightness(1.05);
}

.yps-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.yps-error {
  margin: 0;
  color: #ff8b8b;
  font-size: 13px;
}

.yps-fine {
  margin: 16px 0 0;
  color: #7d8ba3;
  font-size: 12px;
  line-height: 1.45;
}

.yps-dialog.is-success h2,
.yps-dialog.is-success .yps-form,
.yps-dialog.is-success .yps-sub {
  display: none;
}

.yps-success {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}
