/* ============ Full-screen splash (app boot) ============ */
.app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(130% 120% at 50% 15%, #1a2030 0%, #0f1218 55%, #0b0d12 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.app-loader.done {
    opacity: 0;
    visibility: hidden;
}

.al-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#ffffff08 1px, transparent 1px),
        linear-gradient(90deg, #ffffff08 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
    pointer-events: none;
}

.al-canvas {
    position: relative;
    z-index: 1;
    width: 340px;
    height: 132px;
    display: block;
}

.al-brand {
    position: relative;
    z-index: 1;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 0.34em;
    font-size: 1.7rem;
    color: #fff;
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.55);
}

.al-brand span { color: #3b82f6; }

.al-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 260px;
}

.al-track {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #232838;
    overflow: hidden;
}

.al-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.al-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.78rem;
    color: #8b93a3;
}

.al-pct {
    color: #e5e7eb;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
    .al-canvas { width: 280px; height: 110px; }
    .al-bottom { width: 220px; }
}

/* ============ Module loader (page switch) ============ */
.anscle-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 21, 0.6);
    backdrop-filter: blur(2px);
    z-index: 50;
}

.anscle-loader.active {
    display: flex;
}

.anscle-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #161b24;
    border: 1px solid #262c39;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.anscle-modcanvas {
    width: 132px;
    height: 46px;
    display: block;
}

.anscle-track {
    width: 132px;
    height: 3px;
    border-radius: 3px;
    background: #232838;
    overflow: hidden;
    position: relative;
}

.anscle-ind {
    position: absolute;
    top: 0;
    left: -42%;
    height: 100%;
    width: 38%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, #6366f1, transparent);
    animation: anscleSlide 1.25s ease-in-out infinite;
}

@keyframes anscleSlide {
    0%   { left: -42%; }
    100% { left: 104%; }
}

.anscle-lbl {
    font-size: 0.76rem;
    color: #8b93a3;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .al-fill { width: 66%; }
    .anscle-ind { animation: none; left: 32%; }
}
