/* ═══════════════════════════════════════════════════════════════════
   GLOBAL CIRCULAR ROTATING PAGE LOADER
   Deep Navy (#040c1a, #081528) & Luxury Gold (#f5b942, #e0b061)
   ═══════════════════════════════════════════════════════════════════ */

.loader-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(circle at 50% 50%, #081528 0%, #040c1a 75%, #02060e 100%) !important;
    z-index: 99999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    user-select: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.loader-overlay.loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ─── Circular Rotating Spinner ───────────────────────────────── */
.loader-spinner-box {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
}

.loader-ring-outer {
    width: 72px;
    height: 72px;
    border: 3.5px solid transparent;
    border-top-color: #f5b942;
    border-right-color: #e0b061;
    animation: loaderSpinClockwise 1.05s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    filter: drop-shadow(0 0 8px rgba(245, 185, 66, 0.5));
}

.loader-ring-inner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-bottom-color: #f5b942;
    border-left-color: rgba(245, 185, 66, 0.65);
    animation: loaderSpinCounterClockwise 0.8s linear infinite;
}

.loader-center-dot {
    width: 8px;
    height: 8px;
    background: #f5b942;
    border-radius: 50%;
    box-shadow: 0 0 10px #f5b942, 0 0 18px rgba(245, 185, 66, 0.6);
    animation: loaderDotPulse 1.2s ease-in-out infinite alternate;
}

/* ─── Legacy Classes Preserved ────────────────────────────────── */
.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid #e5e5e5;
    border-top-color: rgb(224 176 97);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: none;
}

img.profile-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

/* ─── Keyframe Animations ─────────────────────────────────────── */
@keyframes loaderSpinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderSpinCounterClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes loaderDotPulse {
    0% { transform: scale(0.7); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}