#rx24-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 30%, #14101f 0%, #050508 55%, #000 100%);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#rx24-loader.rx24-loader--hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.rx24-loader-inner {
    text-align: center;
    animation: rx24LoaderIn 0.5s ease;
}

@keyframes rx24LoaderIn {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: none; }
}

.rx24-loader-ring-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
}

.rx24-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.12);
    border-top-color: #ffd700;
    border-right-color: #f9d423;
    animation: rx24Spin 0.9s linear infinite;
}

.rx24-loader-ring--inner {
    inset: 10px;
    border-width: 2px;
    border-top-color: rgba(255, 215, 0, 0.5);
    border-right-color: transparent;
    animation: rx24Spin 1.4s linear infinite reverse;
}

@keyframes rx24Spin {
    to { transform: rotate(360deg); }
}

.rx24-loader-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffd700;
    text-shadow: 0 0 24px rgba(255, 215, 0, 0.45);
}

.rx24-loader-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.35));
    animation: rx24LogoPulse 1.6s ease-in-out infinite;
}

@keyframes rx24LogoPulse {
    50% { transform: scale(1.06); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.55)); }
}

.rx24-loader-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 215, 0, 0.85);
    text-transform: uppercase;
}

.rx24-loader-dots::after {
    content: '';
    animation: rx24Dots 1.4s steps(4, end) infinite;
}

@keyframes rx24Dots {
    0%  { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.rx24-loader-bar {
    width: 120px;
    height: 3px;
    margin: 16px auto 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.rx24-loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 3px;
    animation: rx24Bar 1.2s ease-in-out infinite;
}

@keyframes rx24Bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

body.rx24-loading { overflow: hidden; }
