/* --- MODAL OVERLAY --- */
.modal-overlay {
  display: none; /* Oculta inicialmente */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(3px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* --- CAIXA DA MODAL --- */
.modal-content {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, .25);
  animation: fadeIn .4s ease-out;
}

/* FECHAR MODAL */
.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

/* TÍTULOS */
.titulo-modal {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.subtitulo-modal {
  font-size: 18px;
  margin-bottom: 20px;
}

/* --- CONTADOR --- */
.contador {
  display: flex;
  justify-content: space-between;
  margin: 25px 0;
  gap: 10px;
}

.contador div {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px 10px;
  flex: 1;
}

.contador span {
  display: block;
  font-size: 32px;
  font-weight: bold;
}

.contador small {
  font-size: 14px;
  opacity: 0.7;
}

/* LOCAL */
.local-modal {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

/* ANIMAÇÃO */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVO */
@media (max-width: 480px) {
  .contador {
    flex-direction: column;
  }
}
