#lineLoader {
    position: fixed;
    top: 46px;
    left: 0;
    right: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#lineLoader.visible { opacity: 1; }

.ll-bar {
    position: relative;
    height: 1px;
    overflow: hidden;
}

.ll-bar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
    animation-play-state: paused;
}

#lineLoader.visible .ll-bar::before {
    animation: llSweep 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-play-state: running;
    will-change: transform;
}

@keyframes llSweep {
    0%   { transform: translateX(0); }
    100% { transform: translateX(350%); }
}

#lineLoader.finishing .ll-bar {
    background: var(--accent);
    animation: llFinish 0.45s ease forwards;
}

#lineLoader.finishing .ll-bar::before { display: none; }

@keyframes llFinish {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

.ll-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 0;
    font-size: 10px;
    letter-spacing: 0.02em;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
    text-transform: lowercase;
    line-height: 1;
}

.ll-stage {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fg-2);
}

.ll-stage::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    opacity: 1;
}

#lineLoader.visible .ll-stage::before {
    animation: llDot 1.1s ease-in-out infinite;
}

@keyframes llDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

#lineLoader.finishing .ll-stage::before { animation: none; opacity: 1; }

.ll-sep {
    color: var(--dim);
}

.ll-timer {
    color: var(--fg-3);
    min-width: 42px;
}

.slow-toast {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    z-index: 80;
    display: none;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 10px 16px;
    background: rgba(14, 16, 28, 0.92);
    border: 1px solid rgba(200, 195, 230, 0.14);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    font-size: 12px;
    color: var(--fg-2);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.slow-toast.visible {
    display: inline-flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.slow-toast .st-title {
    color: var(--fg);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: -0.005em;
}
.slow-toast .st-desc {
    color: var(--fg-3);
    font-size: 11px;
    margin-top: 2px;
}
.slow-toast #stCountdown {
    color: #e8e5f4;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.slow-toast .st-btn {
    background: rgba(200, 195, 230, 0.14);
    border: 1px solid rgba(200, 195, 230, 0.18);
    color: var(--fg);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.slow-toast .st-btn:hover {
    background: rgba(200, 195, 230, 0.22);
    border-color: rgba(200, 195, 230, 0.28);
}
