/* === WAITLIST MODAL === */
.wl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wl-overlay.active {
  display: flex;
}

.wl-modal {
  width: 100%;
  max-width: 480px;
}

.wl-card {
  background: #111827;
  border: 1px solid rgba(247, 242, 232, 0.1);
  border-radius: 16px;
  padding: 40px;
  position: relative;
}

.wl-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(247, 242, 232, 0.4);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.wl-close:hover {
  color: var(--paper);
  background: rgba(247, 242, 232, 0.08);
}

.wl-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.wl-title {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
  line-height: 1.2;
}

.wl-sub {
  font-size: 14px;
  color: rgba(247, 242, 232, 0.55);
  margin-bottom: 28px;
  line-height: 1.5;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(247, 242, 232, 0.06);
  border: 1px solid rgba(247, 242, 232, 0.15);
  border-radius: 8px;
  font-size: 15px;
  color: var(--paper);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.wl-input::placeholder {
  color: rgba(247, 242, 232, 0.35);
}

.wl-input:focus {
  border-color: var(--amber);
  background: rgba(247, 242, 232, 0.08);
}

.wl-input-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(247, 242, 232, 0.5);
  margin-bottom: 4px;
}

.wl-submit {
  background: var(--amber);
  color: #0B1220;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 4px;
}

.wl-submit:hover {
  background: #d89202;
}

.wl-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

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

/* Success state */
.wl-success {
  display: none;
  text-align: center;
}

.wl-success.active {
  display: block;
}

.wl-form.hidden {
  display: none;
}

.wl-check {
  width: 56px;
  height: 56px;
  background: rgba(60, 141, 90, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: #4ADE80;
}

.wl-success-title {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
}

.wl-success-sub {
  font-size: 14px;
  color: rgba(247, 242, 232, 0.55);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Referral section */
.wl-referral {
  background: rgba(247, 242, 232, 0.05);
  border: 1px solid rgba(247, 242, 232, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
}

.wl-referral-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.45);
  margin-bottom: 8px;
}

.wl-ref-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.wl-referral-text {
  font-size: 14px;
  color: rgba(247, 242, 232, 0.7);
  margin-bottom: 14px;
  line-height: 1.4;
}

.wl-copy-row {
  display: flex;
  gap: 8px;
}

.wl-copy-url {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(247, 242, 232, 0.1);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
  color: rgba(247, 242, 232, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-copy-btn {
  background: var(--copper);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}

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

.wl-copy-btn.copied {
  background: var(--green);
}

/* Share buttons */
.wl-share-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.45);
  margin: 18px 0 10px;
  text-align: left;
}

.wl-share-row {
  display: flex;
  gap: 8px;
}

.wl-share-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid rgba(247, 242, 232, 0.15);
  background: rgba(247, 242, 232, 0.06);
  color: var(--paper);
}

.wl-share-btn:hover {
  background: rgba(247, 242, 232, 0.12);
  border-color: rgba(247, 242, 232, 0.25);
}

.wl-share-x:hover {
  background: #000;
  border-color: #000;
}

.wl-share-li:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: #fff;
}

/* Nav trigger button */
.wl-trigger {
  font-size: 14px;
  color: rgba(247, 242, 232, 0.6);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.wl-trigger:hover {
  color: var(--paper);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .wl-card {
    padding: 28px 24px;
  }

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

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

  .wl-copy-url {
    font-size: 12px;
  }
}