/* ══════════════════════════════════════════
   loader.css – Global Custom Loading Screen
══════════════════════════════════════════ */

.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(28, 26, 22, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.global-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-box {
    text-align: center;
    color: #ffffff;
    max-width: 400px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

/* Outer spinning ring */
.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(196, 154, 60, 0.15);
    border-top-color: var(--gold, #C49A3C);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}

/* Inner pulsing icon */
.loader-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--gold-light, #E5C37A);
    animation: loader-pulse 1.5s ease-in-out infinite;
}

.loader-box h3 {
    font-family: var(--display, serif);
    font-size: 28px;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.loader-box p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-pulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}