/* --- Scanner icons --- */
.scan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    /* subtle background tint */
    margin-right: 8px;
}

.scan-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.9;
}

/* --- Fit score ring with soft gradient --- */
.ring {
    --p: 0;
    /* progress (0–100) */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #222;
    background: conic-gradient(linear-gradient(180deg, #6a5af9, #a855f7) var(--p),
            #e5e7eb var(--p));
    mask: radial-gradient(circle 48% at 50% 50%, transparent 98%, black 100%);
    -webkit-mask: radial-gradient(circle 48% at 50% 50%, transparent 98%, black 100%);
    box-shadow: 0 8px 18px rgba(168, 85, 247, 0.25);
}

.ring span {
    position: relative;
    z-index: 1;
}