/* Shared prompt / modal button styles */

.close-btn, .ok-btn, .cancel-btn {
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  border: none;
  color: white;
}

#user_prompt_msg {
  font-size: 1.2rem;
  color: white;
  line-height: 1.5rem;
}

.user_prompt_img {
  aspect-ratio: 1;
  width: 4rem;
  vertical-align: middle;
}

.prompt_el {
  display: inline-flex;
  padding-bottom: 1rem;
}

.u_prompt_head {
  font-weight: 700;
  font-size: 1.2rem;
  padding-bottom: 0.5rem;
}

.prompt_err_code {
  padding-bottom: 0.5rem;
}

/* ---- Prompt modal layout ----
   Self-contained so public pages (login, sign-up, reset...) that don't load
   shared_master.css still get a proper centred overlay instead of an inline block. */
.prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  background: rgba(8, 16, 24, 0.72);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
}
.prompt-modal .modal-content {
  box-sizing: border-box;
  width: fit-content;
  max-width: min(92vw, 28rem);
  max-height: 90vh;
  overflow: auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(160deg, #142030, #0a101a);
  border: 0.0625rem solid rgba(76, 204, 222, 0.3);
  border-radius: var(--radius-xl, 1.25rem);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
  color: #fff;
}
.prompt-modal .alert-icon { margin-bottom: 1.25rem; }
.prompt-modal .alert-icon svg { width: 4rem; height: 4rem; fill: #ffffff; }
.prompt-modal .prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.prompt-modal .prompt_err_code { color: var(--danger, #ff8a8a); }
.ok-btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 700; }
.cancel-btn { border: 0.0625rem solid rgba(255, 255, 255, 0.18); }
