.risk-score-strip {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    backdrop-filter: blur(6px);
}

.risk-strip-high {
    background: rgba(127, 29, 29, 0.45);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.18);
}

.risk-strip-medium {
    background: rgba(120, 53, 15, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.risk-strip-low {
    background: rgba(20, 83, 45, 0.35);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

/* ================= RISK LOADING ORB ================= */

.risk-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    background: radial-gradient(
        circle,
        rgba(6, 18, 38, 0.75) 0%,
        rgba(3, 10, 20, 0.92) 70%
    );

    border-radius: 14px;
    transition: opacity 0.25s ease;
}

.risk-loading-overlay.hidden {
    display: none;
}

/* 🔵 core orb */
.risk-orb {
    width: 90px;
    height: 90px;
    border-radius: 50%;

    background:
        radial-gradient(circle at 35% 35%, #7dd3fc, #2563eb 40%, #020617 75%);

    box-shadow:
        0 0 18px rgba(56, 189, 248, 0.25),
        0 0 40px rgba(37, 99, 235, 0.25),
        inset 0 0 16px rgba(255,255,255,0.1);

    animation: orbPulse 1.8s ease-in-out infinite;
    position: relative;
}

/* ring 1 */
.risk-orb::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.2);
    animation: orbRing 2.2s linear infinite;
}

/* ring 2 */
.risk-orb::after {
    content: "";
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.12);
    animation: orbRingOuter 3s linear infinite;
}

/* text */
.risk-loading-text {
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.3px;
}

/* animations */

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes orbRing {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes orbRingOuter {
    0% {
        transform: scale(0.85);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.risk-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(4px);
    z-index: 3;
}

.risk-loading-overlay.hidden {
    display: none;
}

.risk-orb {
    width: 132px;
    height: 132px;
    border-radius: 999px;
    box-shadow:
        0 0 40px rgba(56, 189, 248, 0.08),
        inset 0 0 24px rgba(255, 255, 255, 0.06);
    animation: riskPulse 1.8s ease-in-out infinite;
}

.risk-loading-text {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@keyframes riskPulse {
    0% { transform: scale(0.96); opacity: 0.72; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.96); opacity: 0.72; }
}
