/* --- Tooltips --- */
.ra-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-size: 0.6rem;
    font-weight: 700;
    cursor: help;
    margin-left: 0.35rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.ra-tip .ra-tip-body {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 0.6rem 0.75rem;
    background: #1e293b;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: normal;
    z-index: 100;
    pointer-events: none;
}

.ra-tip .ra-tip-body strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
}

.ra-tip .ra-tip-body code {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

.ra-tip:hover .ra-tip-body {
    display: block;
}

/* Arrow */
.ra-tip .ra-tip-body::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border);
}

/* --- Verdict Banner --- */
.ra-verdict {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.ra-verdict-retrain { color: var(--error); text-shadow: 0 0 40px rgba(239, 68, 68, 0.3); }
.ra-verdict-monitor { color: var(--warning); text-shadow: 0 0 40px rgba(245, 158, 11, 0.3); }
.ra-verdict-ok { color: var(--success); text-shadow: 0 0 40px rgba(16, 185, 129, 0.3); }

/* --- Check Cards --- */
.ra-check-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.ra-check-card:hover { border-color: var(--primary); }

.ra-check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ra-check-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.ra-check-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

.ra-check-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* --- Score Bar --- */
.ra-score-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ra-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.ra-check-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Reasons List --- */
.ra-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ra-reason-item:last-child { border-bottom: none; }

.ra-reason-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
}
