  /* 🔹 POPUP */
  .popup-mensagem {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  
  .popup-conteudo {
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    text-align: left;
    display: flex;
    flex-direction: column;   /* <-- ESSENCIAL */
    align-items: left;      /* Centraliza tudo */
    gap: 20px;                /* Espaço entre texto e botão */
  }
  
  
  .popup-conteudo span {
    font-size: 16px;
    color: #333;
    display: block;
  }
  
  
  .btn-fechar {
    padding: 10px 20px;
    background-color: #d50012;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }



  /* 🔹 LOADER */
  .loader-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
  }
  
  .spinner {
    border: 6px solid #eee;
    border-top: 6px solid #D40000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: girar 1s linear infinite;
    margin-bottom: 15px;
  }
  
  @keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }