.vs21-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 10, 20, 0.72);
  z-index: 999999 !important; /* 🔥 FIX CRÍTICO */
  display: flex;
  justify-content: center;
  align-items: flex-end;

  opacity: 1;
  visibility: visible;

  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estado oculto */
.vs21-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* 🔥 evita clics fantasma */
}

/* Contenido del modal */
.vs21-modal-content {
  background: linear-gradient(180deg, #0a1422 0%, #08111c 100%);
  width: 100%;
  max-height: 85vh;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding-bottom: 30px;

  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
  overflow-y: auto;

  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animación tipo app */
.vs21-modal-overlay.hidden .vs21-modal-content {
  transform: translateY(100%);
}

/* Header */
.vs21-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  position: sticky;
  top: 0;
  background: #0a1422;
  z-index: 20;
}

.vs21-modal-header h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--vs-text);
}

/* Botón cerrar */
.vs21-close-button {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--vs-primary-soft);
  cursor: pointer;
  padding: 5px;
}

/* Body */
.vs21-modal-body {
  padding: 0 15px;
}

/* Secciones */
.vs21-modal-section {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vs21-modal-section:last-child {
  border-bottom: none;
}

.vs21-modal-section h4 {
  font-size: 0.92rem;
  color: var(--vs-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Links */
.vs21-modal-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vs21-modal-links li {
  margin-bottom: 8px;
}

.vs21-modal-links a {
  display: block;
  padding: 12px 4px; /* 🔥 mejor touch */
  text-decoration: none;
  color: var(--vs-text-soft);
  font-size: 16px;
  border-radius: 10px;

  transition: 
    color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.vs21-modal-links a:hover {
  color: var(--vs-primary-soft);
  background: rgba(255,255,255,0.04);
  transform: translateX(4px); /* 🔥 efecto pro */
}

.vs21-modal-links i {
  color: var(--vs-primary-soft);
  width: 20px;
  text-align: center;
  margin-right: 10px;
}

/* Social */
.vs21-social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.vs21-social-icons a {
  font-size: 24px;
  color: var(--vs-primary-soft);
  transition: transform 0.2s ease, color 0.2s ease;
}

.vs21-social-icons a:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Logout */
.vs21-logout-button {
  display: block;
  text-align: center;
  background-color: rgba(19, 127, 236, 0.12);
  color: var(--vs-primary-soft) !important;
  border-radius: 15px;
  padding: 12px;
  font-weight: 700;
  text-decoration: none;
  margin: 15px 0;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

.vs21-logout-button:hover {
  background-color: rgba(19, 127, 236, 0.2);
  transform: translateY(-2px);
}

/* 🔥 BLOQUEA SCROLL CUANDO ABRE */
body.modal-open {
  overflow: hidden;
}