/* Overlay */
  .loading-overlay {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    /* estado inicial (invisível) */
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  /* Quando ativo */
  .loading-overlay.show {
    opacity: 1;
    transform: scale(1);
  }

  /* Quando some */
  .loading-overlay.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
  }

  /* Container do loader */
  .loader {
    position: relative;
    width: 120px;
    height: 120px;
  }

  /* Círculo giratório */
  .loader::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255, 255, 255, 0.4);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    background: #28a745;
    animation: spin 1s linear infinite;
  }

  /* Ícone */
  .loader i {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    color: white;
    animation: pulse 1.2s infinite;
  }

  /* Animações */
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
  }