.bos-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 36%, rgba(16, 185, 129, 0.18), transparent 32rem),
        linear-gradient(135deg, #0f172a 0%, #134e4a 52%, #0f766e 100%);
    color: #fff;
    font-family: 'Heebo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    opacity: 1;
    transition: opacity 420ms ease, visibility 420ms ease;
}

.bos-loader.is-hiding {
    opacity: 0;
    visibility: hidden;
}

.bos-loader__stage {
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    text-align: center;
}

.bos-loader__mark {
    position: relative;
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
}

.bos-loader__ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #34d399;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: bos-loader-spin 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.bos-loader__pulse {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    animation: bos-loader-pulse 1.35s ease-in-out infinite;
}

.bos-loader__logo {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f766e;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

.bos-loader__title {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0;
}

.bos-loader__bar {
    width: min(220px, 58vw);
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.bos-loader__bar::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
    transform-origin: left center;
    animation: bos-loader-fill 5s linear forwards;
}

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

@keyframes bos-loader-pulse {
    0%, 100% { transform: scale(0.86); opacity: 0.42; }
    50% { transform: scale(1.08); opacity: 0.82; }
}

@keyframes bos-loader-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bos-loader__ring,
    .bos-loader__pulse,
    .bos-loader__bar::before {
        animation-duration: 5s;
        animation-iteration-count: 1;
    }
}

