/* =========================================================
   POPUP GALERIE CLIENT
   ========================================================= */

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal-content {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.gallery-modal-content h2 {
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.gallery-modal-content p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-modal-content input {
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-main);
  margin-bottom: 1rem;
  text-align: center;
}

.gallery-modal-content input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(230, 205, 149, 0.25);
}

.gallery-submit {
  width: 100%;
  padding: 0.65rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #0b1220;
  font-weight: 600;
  cursor: pointer;
}

.gallery-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.gallery-modal-content input.error {
  border-color: #ef4444;
}
