html.app-booting,
html.app-busy {
    cursor: progress;
}

.app-loading {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 8, 0.62);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

html.app-booting .app-loading,
html.app-busy .app-loading,
.app-loading.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-loading-card {
    min-width: 168px;
    padding: 28px 32px 22px;
    border-radius: 16px;
    background: #111;
    border: 1px solid rgba(240, 148, 35, 0.45);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.app-loading-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.16);
    border-top-color: #f09423;
    border-right-color: #8aa24a;
    animation: app-loading-spin 0.8s linear infinite;
    box-sizing: border-box;
}

.app-loading-text {
    color: #fff;
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

@media (prefers-reduced-motion: reduce) {
    .app-loading-spinner {
        animation-duration: 1.6s;
    }
}
