/* ══════════════════════════════════════════════════════════════
   GREEN BUBBLE - UNIFIED BBL NEON EMBLEM LOADER
   Shared Component across Vault, Account, Settings & Modules
══════════════════════════════════════════════════════════════ */

#loading-screen,
#loading-overlay,
.bbl-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #080f0b;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    visibility: visible;
}

#loading-screen.hidden,
#loading-overlay.hidden,
.bbl-loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bbl-emblem-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbl-aura-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #85E370;
    box-shadow: 0 0 25px rgba(133, 227, 112, 0.4);
    animation: bblAuraPulse 2.4s ease-in-out infinite alternate;
}

@keyframes bblAuraPulse {
    0% { transform: scale(0.92); opacity: 0.35; box-shadow: 0 0 15px rgba(133, 227, 112, 0.2); }
    100% { transform: scale(1.15); opacity: 0.9; box-shadow: 0 0 45px rgba(133, 227, 112, 0.7); }
}

.bbl-emblem-card {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(133, 227, 112, 0.45);
    animation: bblFloat 3.2s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes bblFloat {
    0% { transform: translateY(0px) scale(0.96); }
    50% { transform: translateY(-7px) scale(1.02); }
    100% { transform: translateY(-14px) scale(0.98); }
}

.bbl-emblem-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bbl-shimmer-sweep {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 80%;
    height: 200%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: bblShimmer 2.6s ease-in-out infinite;
}

@keyframes bblShimmer {
    0% { left: -120%; }
    45% { left: 140%; }
    100% { left: 140%; }
}

.micro-bubble,
.bbl-micro-bubble {
    position: absolute;
    background: rgba(133, 227, 112, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(133, 227, 112, 0.8);
    animation: bblRiseMicro 3s ease-in infinite;
}

.mb-1,
.bbl-mb-1 { width: 8px; height: 8px; left: 15px; bottom: 10px; animation-delay: 0.2s; }
.mb-2,
.bbl-mb-2 { width: 12px; height: 12px; right: 20px; bottom: 5px; animation-delay: 1.1s; }

@keyframes bblRiseMicro {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    30% { opacity: 0.9; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-120px) scale(1.3); opacity: 0; }
}

.loading-text-row,
.bbl-loading-text-row {
    margin-top: 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dot,
.bbl-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #85E370;
    animation: bblDotFade 1.4s infinite ease-in-out both;
}

.dot:nth-child(1),
.bbl-dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2),
.bbl-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bblDotFade {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.3); }
}

/* ── Mobile Responsive Scaling (< 600px) ── */
@media (max-width: 600px) {
    .bbl-emblem-wrapper {
        width: 105px;
        height: 105px;
    }

    .bbl-aura-ring {
        width: 90px;
        height: 90px;
        box-shadow: 0 0 18px rgba(133, 227, 112, 0.35);
    }

    .bbl-emblem-card {
        width: 72px;
        height: 72px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 22px rgba(133, 227, 112, 0.4);
    }

    .loading-text-row,
    .bbl-loading-text-row {
        margin-top: 18px;
        font-size: 13.5px;
    }
}
