.loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.4s ease;
  }
  .spinner {
    width: 60px;
    height: 60px;
    border: 8px solid rgba(255,255,255,0.3);
    border-top-color: #00ccff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  .loader p {
    color: #fff;
    font-size: 28px;
    margin: 0;
  }

  @keyframes spin {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
  }
