.wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wl-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 17, 70, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wl-modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(6, 17, 70, 0.28);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.wl-overlay.is-open .wl-modal.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.wl-modal[hidden] {
  display: none !important;
}

.wl-modal-inner {
  padding: 20px 32px;
}

.wl-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #61738d;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 3;
}

.wl-close:hover {
  color: #0a1643;
  background: #eef4fc;
}

.wl-logo img {
  max-height: 60px;
  width: 120px;
}

.wl-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 26px;
  background: rgba(68, 133, 229, 0.19);
  border: 1px solid rgba(68, 133, 229, 0.52);
  color: #265dae;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.wl-kicker {
  color: #61738d;
  font-size: 14px;
  font-weight: 500;
}

.wl-title {
  color: #0a1643;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 10px auto;
}

.wl-desc {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.wl-form .wl-field,
.wl-section .wl-field {
  margin-bottom: 10px;
}

.wl-field label {
  display: block;
  margin-bottom: 8px;
  color: #0a1643;
  font-size: 14px;
  font-weight: 600;
}

.wl-field label span {
  color: #4f9af9;
}

.wl-field label em {
  font-style: normal;
  font-weight: 500;
  color: #61738d;
}

.wl-field input[type="text"],
.wl-field input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(68, 133, 229, 0.25);
  border-radius: 999px;
  background: #eef4fc;
  color: #0a1643;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wl-field input:focus {
  border-color: #4f9af9;
  box-shadow: 0 0 0 3px rgba(79, 154, 249, 0.15);
}

.wl-field input::placeholder {
  color: #8fa3bc;
}

.wl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wl-pill {
  padding: 10px 18px;
  border: 1px solid rgba(68, 133, 229, 0.45);
  border-radius: 999px;
  background: #fff;
  color: #265dae;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wl-pill:hover {
  border-color: #4f9af9;
  background: #f5f9ff;
}

.wl-pill.is-selected {
  background: rgba(68, 133, 229, 0.14);
  border-color: #4f9af9;
  color: #1a339a;
}

.wl-error {
  display: none;
  margin-top: 8px;
  color: #dc3545;
  font-size: 13px;
}

.wl-error.is-visible {
  display: block;
}

.wl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 22px;
  cursor: pointer;
}

.wl-check input {
  margin-top: 4px;
  accent-color: #4f9af9;
  flex-shrink: 0;
}

.wl-check span {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.wl-check a {
  color: #265dae;
  text-decoration: underline;
  font-size: 13px;
}

.wl-submit {
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  background: transparent linear-gradient(101deg, #4f9af9 0%, #1a339a 100%) 0% 0% no-repeat padding-box;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wl-submit:disabled,
.wl-submit.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.wl-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 51, 154, 0.28);
}

.wl-order-card {
  text-align: center;
  padding: 10px 40px 16px;
  margin: 20px auto;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #232d28;
  outline: 2px solid #232d28;
  outline-offset: 4px;
  box-shadow: none;
  width: fit-content;
}

.wl-order-top,
.wl-order-bot {
  display: block;
  color: #61738d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wl-order-num {
  display: block;
  margin: 6px 0;
  color: #0a1643;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}

.wl-section h3 {
  color: #0a1643;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wl-section h3 em {
  font-style: normal;
  font-weight: 500;
  color: #61738d;
}

.wl-section-desc {
  margin-bottom: 10px !important;
  font-size: 14px !important;
}

.wl-referral {
  margin: 22px 0;
  padding: 18px;
  border-radius: 14px;
  background: #eef4fc;
}

.wl-referral h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #0a1643;
  font-size: 15px;
  font-weight: 700;
}

.wl-referral h4 i {
  color: #4f9af9;
  font-size: 14px;
}

.wl-referral p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.wl-copy-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(68, 133, 229, 0.25);
  border-radius: 12px;
  overflow: hidden;
}

.wl-copy-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  color: #0a1643;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  outline: none;
}

.wl-copy-btn {
  flex-shrink: 0;
  padding: 12px 18px;
  border: 0;
  background: #0a1643;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.wl-copy-btn:hover {
  background: #1a339a;
}

.wl-copy-btn.is-copied {
  background: #265dae;
}

.wl-modal--success .wl-submit {
  margin-top: 8px;
}

.js-waitlist-open {
  cursor: pointer;
}

.wl-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 14px;
  background: #0a1643;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(6, 17, 70, 0.28);
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wl-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wl-toast i {
  color: #4f9af9;
  font-size: 16px;
}

@media (max-width: 576px) {
  .wl-modal-inner {
    padding: 24px 20px 26px;
  }

  .wl-title {
    font-size: 24px;
  }

  .wl-pills {
    gap: 8px;
  }

  .wl-pill {
    padding: 9px 14px;
    font-size: 13px;
  }

  .wl-copy-wrap {
    flex-direction: column;
  }

  .wl-copy-btn {
    border-radius: 0 0 12px 12px;
  }
}
