.modal-overlay {
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.open {
  display: flex
}


.modal-box {
  background: #29313c;
  color: #eff3f6;
  padding: 1.4rem;
  border-radius: 10px;
  width: 380px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-box h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #8ecdfc
}

#dm-link {
  width: 100%;
  padding: .5rem .7rem;
  border: 1px solid #485260;
  border-radius: 6px;
  background: #1f242d;
  color: #eff3f6;
  font-size: .9rem;
}

#copy-btn {
  align-self: flex-end;
  padding: .45rem 1.1rem;
  border: none;
  border-radius: 6px;
  background: #1e66d0;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

#copy-btn:hover {
  background: #2a7aec
}

#close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #8ecdfc;
  font-size: 1.3rem;
  cursor: pointer;
}