.email-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: background 0.3s ease;
}

.email-modal-overlay.open {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: all;
}

.email-modal {
  width: 100%;
  max-height: 50vh;
  background: #12192a;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.email-modal-overlay.open .email-modal {
  transform: translateY(0);
}

.email-modal-overlay.closing .email-modal {
  transform: translateY(100%);
}

.email-modal-overlay.closing {
  background: rgba(0, 0, 0, 0);
}

.email-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.email-modal-close:hover {
  background: rgba(255,255,255,0.18);
  color: white;
}

.email-modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.email-modal-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: left;
}

.email-modal-input {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(220, 60, 60, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 3px rgba(220, 60, 60, 0.1);
}

.email-modal-input:hover {
  border-color: rgba(220, 60, 60, 0.7);
  box-shadow: 0 0 0 3px rgba(220, 60, 60, 0.18);
}

.email-modal-input.valid {
  border-color: rgba(255,255,255,0.15);
  box-shadow: none;
}

.email-modal-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.email-modal-save {
  align-self: center;
  width: 80%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: #b637bc;
  color: white;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
}

.email-modal-save:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.email-modal-save:not(:disabled):hover {
  background: #9b2ea1;
}

.email-modal-save:not(:disabled):active {
  transform: scale(0.98);
}