#lumenveritas-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  font-family: Georgia, serif;
}

#lumenveritas-overlay {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

#lumenveritas-modal {
  position: relative;
  background: #000;
  width: 80%;
  height: 80%;
  margin: 5% auto;
  border: 2px solid #ffcc66;
  box-shadow: 0 0 30px #222;
  border-radius: 12px;
  overflow: hidden;
  color: #e8eef4;
  animation: glowPulse 4s infinite ease-in-out;
}

/* Efeito de brilho suave na borda dourada */
@keyframes glowPulse {
  0% { box-shadow: 0 0 30px #222, 0 0 5px #ffcc66; border-color: #ffcc66; }
  50% { box-shadow: 0 0 60px #ffcc66, 0 0 25px #ffcc66; border-color: #ffd966; }
  100% { box-shadow: 0 0 30px #222, 0 0 5px #ffcc66; border-color: #ffcc66; }
}

#lumenveritas-header {
  text-align: center;
  padding: 15px;
  border-bottom: 1px solid #333;
  background: linear-gradient(180deg, #111 0%, #000 100%);
  color: #ffcc66;
  text-shadow: 0 0 10px #ffcc66;
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.85; }
  22%, 26% { opacity: 0.95; }
}

#lumenveritas-close {
  position: absolute;
  top: 10px; right: 20px;
  background: none;
  color: #ffcc66;
  border: none;
  font-size: 2em;
  cursor: pointer;
  transition: color 0.3s ease;
}

#lumenveritas-close:hover {
  color: #ffffff;
}

/* Brilho final após fechar */
#lumenveritas-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,204,102,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1.5s ease-out;
  z-index: 9998;
}

#lumenveritas-glow.active {
  opacity: 1;
}