@import url('tokens.css');
/* CVE Detail Page Styles */
.cve-detail-container {
    min-height: calc(100vh - 140px);
    padding: 40px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.cve-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Column - Main Content */
.cve-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border);
}

.cve-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #333;
}

.cve-id {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(90deg, #FFFFFF 0%, #36d0ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #111827;
    background-clip: text;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.severity-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    transition: all 0.2s ease;
}

.severity-badge.critical {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid #9333ea;
    color: #7c3aed;
}

.severity-badge.high { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; color: #b91c1c; }

.severity-badge.medium { background: rgba(249, 115, 22, 0.12); border: 1px solid #f97316; color: #c2410c; }

.severity-badge.low {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid #3b82f6;
    color: #2563eb;
}

.cve-section {
    margin-bottom: 40px;
}

/* Content Sections - Overview, Description, Impact, Solution */
.content-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    font-size: 20px;
    font-weight: 800;
    background: none;
    -webkit-text-fill-color: #0f172a;
    color: #0f172a;
    margin: 0 0 16px 0;
    font-family: 'Inter', sans-serif;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    margin: 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF 0%, #36d0ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #111827;
    background-clip: text;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.overview-text,
.description-text,
.impact-box p,
.solution-box p,
.activity-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    margin: 0;
}

.activity-section {
    background: #222;
    border-radius: 8px;
    padding: 30px;
    border-left: 1px solid #e2e8f0;
}

.activity-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exploitation-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.exploitation-label {
    font-weight: 600;
    color: #aaa;
}

.exploitation-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.exploitation-badge.very_low {
    background: #28a745;
    color: #0f172a;
}

.exploitation-badge.low {
    background: #ffc107;
    color: #000;
}

.exploitation-badge.medium {
    background: #ff9800;
    color: #0f172a;
}

.exploitation-badge.high {
    background: #ff5722;
    color: #0f172a;
}

.exploitation-badge.very_high {
    background: #f44336;
    color: #0f172a;
}

.impact-box,
.solution-box {
    background: #222;
    border-radius: 8px;
    padding: 24px;
    border-left: 1px solid #e2e8f0;
}

.solution-box {
    border-left-color: #e2e8f0;
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.references-list li {
    margin-bottom: 12px;
}

.references-list a {
    color: #36d0ea;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.references-list a:hover {
    color: #36d0ea;
    text-decoration: underline;
}

/* Right Column - Sidebar */
.cve-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #0a1f44;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(54, 208, 234, 0.2);
    color: #cbd5e1;
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    margin: 0 0 20px 0;
    font-family: 'Inter', sans-serif;
}

/* Light text default inside navy sidebar cards */
.cve-sidebar .sidebar-card p,
.cve-sidebar .sidebar-card span,
.cve-sidebar .sidebar-card li,
.cve-sidebar .sidebar-card td,
.cve-sidebar .sidebar-card th,
.cve-sidebar .sidebar-card label,
.cve-sidebar .sidebar-card h4,
.cve-sidebar .sidebar-card h5,
.cve-sidebar .sidebar-card .metric-label,
.cve-sidebar .sidebar-card div:not([class*="badge"]):not([class*="chip"]) {
    color: #cbd5e1;
}

/* CVSS Graph */
.cvss-graph {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.cvss-circle {
    width: 200px;
    height: 200px;
}

.cvss-bg {
    fill: none;
    stroke: #333;
    stroke-width: 12;
}

.cvss-progress {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: {{ (cve.display_cvss / 10 * 565)|round(2) }}px 565px;
}

.cvss-score-text {
    font-size: 42px;
    font-weight: 800;
    fill: #fff;
    text-anchor: middle;
    font-family: 'Inter', sans-serif;
}

.cvss-label {
    font-size: 14px;
    fill: #aaa;
    text-anchor: middle;
    font-family: 'Inter', sans-serif;
}

/* CVSS Score Circular Display (Alternative) */
.cvss-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(54, 208, 234, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* CVSS Score Colors by Severity */
.score-circle.critical {
    background: conic-gradient(
        from 0deg,
        #dc2626 0%,
        #dc2626 calc(var(--score, 90) * 1%),
        rgba(220, 38, 38, 0.1) calc(var(--score, 90) * 1%),
        rgba(220, 38, 38, 0.1) 100%
    );
    box-shadow: 
        0 0 30px rgba(220, 38, 38, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.score-circle.high {
    background: conic-gradient(
        from 0deg,
        #ea580c 0%,
        #ea580c calc(var(--score, 81) * 1%),
        rgba(234, 88, 12, 0.1) calc(var(--score, 81) * 1%),
        rgba(234, 88, 12, 0.1) 100%
    );
    box-shadow: 
        0 0 30px rgba(234, 88, 12, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.score-circle.medium {
    background: conic-gradient(
        from 0deg,
        #475569 0%,
        #475569 calc(var(--score, 50) * 1%),
        rgba(245, 158, 11, 0.1) calc(var(--score, 50) * 1%),
        rgba(245, 158, 11, 0.1) 100%
    );
    box-shadow: 
        0 0 30px rgba(245, 158, 11, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.score-circle.low {
    background: conic-gradient(
        from 0deg,
        #22c55e 0%,
        #22c55e calc(var(--score, 30) * 1%),
        rgba(34, 197, 94, 0.1) calc(var(--score, 30) * 1%),
        rgba(34, 197, 94, 0.1) 100%
    );
    box-shadow: 
        0 0 30px rgba(34, 197, 94, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 1;
}

.score-value {
    position: relative;
    z-index: 2;
    font-size: 48px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(54, 208, 234, 0.5);
    line-height: 1;
}

/* Score Value Colors by Severity */
.score-circle.critical .score-value {
    color: #dc2626;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.score-circle.high .score-value {
    color: #ea580c;
    text-shadow: 0 0 20px rgba(234, 88, 12, 0.5);
}

.score-circle.medium .score-value {
    color: #475569;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.score-circle.low .score-value {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.score-max {
    position: relative;
    z-index: 2;
    font-size: 16px;
    color: #64748b;
    margin-top: 4px;
}

.score-version {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

/* Metadata */
.metadata-grid {
    display: grid;
    gap: 16px;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

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

.metadata-label {
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
}

.metadata-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

/* Badges */
.badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #222;
    border-radius: 8px;
    border: 2px solid #333;
    opacity: 0.5;
    transition: all 0.3s;
}

.badge-item.badge-active {
    opacity: 1;
    border-color: #36d0ea;
    background: #f8fafc;
}

.badge-icon {
    font-size: 28px;
}

.badge-text {
    font-size: 12px;
    color: #ccc;
    text-align: center;
    font-weight: 600;
}

/* KEV Card */
.kev-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-color: #ff6b00;
}

/* EPSS */
.epss-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.epss-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #222;
    border-radius: 8px;
}

.epss-value {
    font-size: 32px;
    font-weight: 800;
    color: #36d0ea;
    font-family: 'Inter', sans-serif;
}

.epss-label {
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

/* SSVC Card */
.ssvc-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-color: #28a745;
}

.ssvc-decision-badge {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
}

.ssvc-decision-badge.act {
    background: #f44336;
    color: #0f172a;
}

.ssvc-decision-badge.attend {
    background: #ff9800;
    color: #0f172a;
}

.ssvc-decision-badge.track {
    background: #2196f3;
    color: #0f172a;
}

.ssvc-decision-badge.defer {
    background: #4caf50;
    color: #0f172a;
}

.ssvc-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ssvc-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

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

.ssvc-label {
    font-size: 14px;
    color: #aaa;
}

.ssvc-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

/* CTA Cards */
.cta-card {
    padding: 24px;
    border-radius: 12px;
    border: 2px solid;
}

.cta-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.cta-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin: 0 0 20px 0;
}

.cta-primary {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-color: #36d0ea;
}

.cta-secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-color: #ff00ff;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #36d0ea;
    color: #000;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #36d0ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 208, 234, 0.3);
}

.cta-secondary .cta-button {
    background: #ff00ff;
    color: #0f172a;
}

.cta-secondary .cta-button:hover {
    background: #ff33ff;
    box-shadow: 0 4px 12px rgba(255, 0, 255, 0.3);
}

/* Language Toggle */
.lang-toggle {
    display: inline-flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid rgba(54, 208, 234, 0.5);
    background: transparent;
    color: #36d0ea;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: #36d0ea;
    background: rgba(54, 208, 234, 0.12);
}

.lang-btn.active {
    background: #36d0ea;
    color: #000;
    border-color: #36d0ea;
}

/* Responsive */
@media (max-width: 1024px) {
    .cve-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .cve-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cve-content {
        padding: 24px;
    }
    
    .cve-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cve-id {
        font-size: 28px;
    }
    
    .badges-grid,
    .epss-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Cards */
.cta-card {
    background: #0a1f44 !important;
    border: 1px solid rgba(54, 208, 234, 0.2) !important;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(54, 208, 234, 0.3);
    border-color: #36d0ea !important;
}

.cta-card h3 {
    color: #36d0ea;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #36d0ea 0%, #2bb8d1 100%);
    color: #0f172a;
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #36d0ea 0%, #36d0ea 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(54, 208, 234, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid #36d0ea;
    color: #36d0ea;
}

.cta-btn.secondary:hover {
    background: rgba(54, 208, 234, 0.1);
    border-color: #36d0ea;
    color: #36d0ea;
}

/* Z-index fix for content above background */
.header {
    position: relative;
    z-index: 10;
}

.cve-detail-container {
    position: relative;
    z-index: 10;
}

/* Badge Value - Cyan Outlined (Unified Style) */
.badge-value {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: transparent;
    color: #36d0ea;
    border: 1px solid #36d0ea;
    transition: all 0.2s ease;
}

.badge-value:hover {
    background: rgba(54, 208, 234, 0.1);
    border-color: #36d0ea;
    color: #36d0ea;
}

/* Detail Item - Label left, Badge right with padding */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding-right: 40px;
}

.detail-label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-align: left;
    flex-shrink: 0;
}

.detail-value {
    text-align: right;
    color: #0f172a;
    font-weight: 500;
}

/* CVE Header Row - Title + Badges */
.cve-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cve-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.cve-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Severity Badge Styles - Outlined */
.severity-badge {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    transition: all 0.2s ease;
}

/* Severity standard: low=blue · medium=orange · high=red (KEV) · critical=purple */
.severity-badge.critical {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid #9333ea;
    color: #7c3aed;
}

.severity-badge.critical:hover {
    background: rgba(147, 51, 234, 0.18);
}

.severity-badge.high {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #b91c1c;
}

.severity-badge.high:hover {
    background: rgba(239, 68, 68, 0.18);
}

.severity-badge.medium {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid #f97316;
    color: #c2410c;
}

.severity-badge.medium:hover {
    background: rgba(249, 115, 22, 0.2);
}

.severity-badge.low {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid #3b82f6;
    color: #2563eb;
}

.severity-badge.low:hover {
    background: rgba(37, 99, 235, 0.18);
}

/* Badge KEV/Exploit/PoC Styles - Outlined Cyan */
/* KEV → red (home pattern) */
.badge-kev {
    background: rgba(220, 38, 38, 0.10) !important;
    border-color: #991b1b !important;
    color: #991b1b !important;
}
.badge-kev:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    border-color: #7f1d1d !important;
    color: #7f1d1d !important;
}
/* Exploit + PoC → orange (home pattern) */
.badge-exploit,
.badge-poc {
    background: rgba(249, 115, 22, 0.10) !important;
    border-color: #f97316 !important;
    color: #c2410c !important;
}
.badge-exploit:hover,
.badge-poc:hover {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: #ea580c !important;
    color: #ea580c !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cve-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cve-title {
        font-size: 28px;
    }
}
/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(54, 208, 234, 0.3);
    box-shadow: 0 4px 20px rgba(54, 208, 234, 0.1);
    transform: translateY(-2px);
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #36d0ea;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-title i {
    font-size: 1rem;
}

.info-card-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Affected Products Card */
.product-item {
    margin-bottom: 1rem;
}

.product-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.05rem;
}

.cpe-list {
    margin-top: 0.75rem;
}

.cpe-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.cpe-item {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.cpe-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(54, 208, 234, 0.8);
    font-style: italic;
}

/* Classification Card */
.classification-item {
    margin-bottom: 1rem;
}

.classification-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.classification-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-cwe {
    display: inline-block;
    background: linear-gradient(135deg, rgba(54, 208, 234, 0.2), rgba(54, 208, 234, 0.2));
    border: 1px solid rgba(54, 208, 234, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #36d0ea;
}

.classification-placeholder {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-muted {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Exploit Card */
.exploit-section {
    margin-bottom: 1.25rem;
}

.exploit-section:last-child {
    margin-bottom: 0;
}

.exploit-type-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.exploit-type-label i {
    margin-right: 0.3rem;
    color: rgba(54, 208, 234, 0.7);
}

.exploit-link {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    color: rgba(54, 208, 234, 0.9);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.exploit-link:hover {
    background: rgba(54, 208, 234, 0.1);
    color: #36d0ea;
    transform: translateX(4px);
}

.exploit-link i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

.no-data {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 0.9rem;
}

.no-data-small {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   CVSS Analysis Card (Mondoo-style)
   ======================================== */

.cvss-analysis-card {
    background: #0a1f44;
    border: 1px solid rgba(54,208,234,0.18);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: none;
}

.cvss-analysis-card h3 {
    margin-bottom: 16px;
    color: #334155;
}

/* Header: Badge + Circle */
.cvss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.cvss-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.2);
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Circular Progress Score */
.cvss-score-circle-new {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        from 0deg,
        var(--score-color) calc(var(--score) * 1%),
        rgba(255,255,255,0.14) calc(var(--score) * 1%)
    );
    box-shadow: 0 0 18px rgba(var(--score-color-rgb), 0.75),
                0 0 36px rgba(var(--score-color-rgb), 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

.cvss-score-circle-new::before {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0a1f44;
}

.cvss-score-circle-new .score-number {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 700;
    color: var(--score-color);
}

/* Score colors */
.cvss-score-circle-new.critical {
    --score-color: #ff3b3b;
    --score-color-rgb: 255, 59, 59;
}

.cvss-score-circle-new.high {
    --score-color: #f97316;
    --score-color-rgb: 249, 115, 22;
}

.cvss-score-circle-new.medium {
    --score-color: #f59e0b;
    --score-color-rgb: 245, 158, 11;
}

.cvss-score-circle-new.low {
    --score-color: #22c55e;
    --score-color-rgb: 34, 197, 94;
}

/* Sections */
.cvss-section {
    margin-bottom: 20px;
}

.cvss-section:last-of-type {
    margin-bottom: 16px;
}

.cvss-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #36d0ea;
    margin-bottom: 8px;
}

/* Metrics */
.cvss-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cvss-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

.cvss-metric-row:hover {
    background: rgba(255,255,255,0.05);
}

.metric-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.metric-dot.critical {
    background: #ef4444;
}

.metric-dot.high {
    background: #f97316;
}

.metric-dot.medium {
    background: #f59e0b;
}

.metric-dot.low {
    background: #22c55e;
}

.metric-label {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.metric-value {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
}

.metric-code {
    font-size: 10px;
    font-family: 'Courier New', monospace;
    color: #36d0ea;
    background: rgba(54, 208, 234, 0.12);
    border: 1px solid rgba(54, 208, 234, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Vector String */
.cvss-vector {
    padding-top: 16px;
    border-top: 1px solid rgba(51, 65, 85, 0.3);
}

.cvss-vector code {
    font-size: 10px;
    font-family: 'Courier New', monospace;
    color: #36d0ea;
    background: rgba(54, 208, 234, 0.12);
    border: 1px solid rgba(54, 208, 234, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    word-break: break-all;
    line-height: 1.6;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .cvss-analysis-card {
        padding: 16px;
    }
    
    .cvss-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .cvss-score-circle-new {
        width: 70px;
        height: 70px;
    }
    
    .cvss-score-circle-new::before {
        width: 56px;
        height: 56px;
    }
    
    .cvss-score-circle-new .score-number {
        font-size: 20px;
    }
}


/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--score-color-rgb), 0.4),
                    0 0 40px rgba(var(--score-color-rgb), 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(var(--score-color-rgb), 0.6),
                    0 0 60px rgba(var(--score-color-rgb), 0.3);
    }
}


/* CVSS Version Selector */
.cvss-version-selector {
    display: flex;
    gap: 8px;
}

.cvss-version-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(51, 65, 85, 0.3);
    color: #94a3b8;
    border: 1px solid rgba(54,208,234,0.18);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cvss-version-btn:hover {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(139, 92, 246, 0.5);
    color: #64748b;
}

.cvss-version-btn.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: #64748b;
    color: #64748b;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.cvss-version-btn:active {
    transform: scale(0.95);
}


/* ========================================
   Attack Vectors Card
   ======================================== */

.attack-vectors-card {
    margin-top: 24px;
    background: #0a1f44;
    border: 1px solid rgba(54,208,234,0.18);
    border-radius: 16px;
    backdrop-filter: none;
}

.vector-section {
    margin-bottom: 20px;
}

.vector-section:last-child {
    margin-bottom: 0;
}

.vector-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px 0;
}

.vector-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.3);
    transition: all 0.2s ease;
}

.vector-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(100, 116, 139, 0.5);
}

.vector-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cwe-badge {
    color: #991b1b;
}

.capec-badge {
    color: #475569;
}

.vector-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.vector-id {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Monaco', 'Courier New', monospace;
}

.vector-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(51, 65, 85, 0.3);
    color: #94a3b8;
    transition: all 0.2s ease;
}

.vector-link:hover {
    background: rgba(100, 116, 139, 0.4);
    color: #36d0ea;
}

.link-icon {
    width: 14px;
    height: 14px;
}

/* Empty State */
.vector-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
}

.empty-icon {
    width: 40px;
    height: 40px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.vector-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-style: italic;
}


/* ========================================
   LEV+ & SSVC Card
   ======================================== */

.lev-ssvc-card {
    margin-top: 24px;
    background: #0a1f44;
    border: 1px solid rgba(54,208,234,0.18);
    border-radius: 16px;
    backdrop-filter: none;
}

.card-header-with-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-header-with-link h3 {
    margin: 0;
    color: #334155;
}

.info-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(51, 65, 85, 0.3);
    color: #94a3b8;
    transition: all 0.2s ease;
}

.info-link:hover {
    background: rgba(100, 116, 139, 0.4);
    color: #36d0ea;
}

.info-link svg {
    width: 14px;
    height: 14px;
}

/* LEV+ Section */
.lev-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.lev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lev-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.2);
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LEV+ Score Circle */
.lev-score-circle {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        from 0deg,
        var(--score-color) calc(var(--score) * 1%),
        rgba(255,255,255,0.14) calc(var(--score) * 1%)
    );
    box-shadow: 0 0 15px rgba(var(--score-color-rgb), 0.3),
                0 0 30px rgba(var(--score-color-rgb), 0.15);
    animation: pulse-glow 2s ease-in-out infinite;
}

.lev-score-circle::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.lev-score-circle .score-number {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--score-color);
}

/* LEV Breakdown */
.lev-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 13px;
}

.breakdown-item.boost {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.breakdown-label {
    color: #94a3b8;
    font-weight: 500;
}

.breakdown-value {
    color: #334155;
    font-weight: 600;
    font-family: 'Monaco', 'Courier New', monospace;
}

.breakdown-item.boost .breakdown-value {
    color: #22c55e;
}

/* Threat Level Section */
.threat-section {
    /* Same styling as lev-section and ssvc-section */
}

.threat-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* SSVC Section */
.ssvc-section {
    margin-top: 20px;
}

.ssvc-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px 0;
}

.ssvc-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ssvc-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(241, 245, 249, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ssvc-metric-row:hover {
    background: rgba(241, 245, 249, 0.5);
}

/* ========================================
   LEV+ and SSVC Dedicated View Styles
   Add to END of detailed.css
   ======================================== */

/* LEV+ Full View Container */
.levplus-view-container {
    min-height: calc(100vh - 140px);
    padding: 40px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.levplus-view-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SSVC Full View Container */
.ssvc-view-container {
    min-height: calc(100vh - 140px);
    padding: 40px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.ssvc-view-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* View Header (shared by both LEV+ and SSVC) */
.view-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #333;
}

.view-title-main {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(90deg, #FFFFFF 0%, #36d0ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #111827;
    background-clip: text;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.view-back-button {
    padding: 12px 24px;
    background: #f8fafc;
    border: 1px solid #333;
    border-radius: 6px;
    color: #36d0ea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.view-back-button:hover {
    background: #222;
    border-color: #36d0ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 208, 234, 0.3);
}

/* LEV+ Score Display */
.levplus-score-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #333;
    margin-bottom: 40px;
}

.levplus-score-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF 0%, #36d0ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #111827;
    background-clip: text;
    margin: 0 0 30px 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.levplus-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.levplus-score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #475569 0%,
        #475569 calc(var(--lev-score, 50) * 1%),
        rgba(139, 92, 246, 0.1) calc(var(--lev-score, 50) * 1%),
        rgba(139, 92, 246, 0.1) 100%
    );
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.levplus-score-circle::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 1;
}

.levplus-score-number {
    position: relative;
    z-index: 2;
    font-size: 48px;
    font-weight: 800;
    color: #475569;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    line-height: 1;
}

.levplus-score-label {
    position: relative;
    z-index: 2;
    font-size: 16px;
    color: #64748b;
    margin-top: 4px;
}

.levplus-version-text {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

/* LEV+ Breakdown */
.levplus-breakdown-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #333;
}

.levplus-breakdown-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF 0%, #36d0ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #111827;
    background-clip: text;
    margin: 0 0 30px 0;
    font-family: 'Inter', sans-serif;
}

.levplus-components-grid {
    display: grid;
    gap: 20px;
}

.levplus-component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #222;
    border-radius: 8px;
    border: 1px solid #333;
}

.levplus-component-label {
    font-size: 16px;
    color: #ccc;
    font-weight: 500;
}

.levplus-component-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.levplus-component-value.boost-positive {
    color: #22c55e;
}

.levplus-component-value.boost-negative {
    color: #991b1b;
}

/* SSVC Decision Display */
.ssvc-decision-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #333;
    margin-bottom: 40px;
}

.ssvc-decision-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF 0%, #36d0ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #111827;
    background-clip: text;
    margin: 0 0 30px 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.ssvc-decision-display {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.ssvc-decision-box {
    padding: 30px 60px;
    border-radius: 12px;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid;
    font-family: 'Inter', sans-serif;
}

.ssvc-decision-box.decision-act {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.ssvc-decision-box.decision-attend {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
    border-color: #ea580c;
    box-shadow: 0 0 30px rgba(234, 88, 12, 0.3);
}

.ssvc-decision-box.decision-track,
.ssvc-decision-box.decision-track-star {
    background: rgba(54, 208, 234, 0.1);
    color: #36d0ea;
    border-color: #36d0ea;
    box-shadow: 0 0 30px rgba(54, 208, 234, 0.3);
}

/* SSVC Metrics */
.ssvc-metrics-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #333;
}

.ssvc-metrics-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF 0%, #36d0ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #111827;
    background-clip: text;
    margin: 0 0 30px 0;
    font-family: 'Inter', sans-serif;
}

.ssvc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ssvc-metric-card {
    background: #222;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ssvc-metric-label {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ssvc-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

/* No Data State */
.view-no-data {
    background: #f8fafc;
    border-radius: 12px;
    padding: 60px 40px;
    border: 1px solid #333;
    text-align: center;
}

.view-no-data-text {
    font-size: 18px;
    color: #94a3b8;
    margin: 0;
}

/* Info Footer */
.view-info-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.view-info-text {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ============================================
   STANDARDIZED CARD PATTERN
   ============================================ */

/* Card Sections */
.card-section {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.card-section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.card-section.last-section {
    /* No special styling for last section */
}

/* Section Metrics Container */
.section-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Section Title */
.section-title {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px 0;
}

/* Legacy class support */
.threat-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lev-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ssvc-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* LEV+ Tooltip Icon */
.tooltip-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    cursor: help;
    margin-left: 6px;
    flex-shrink: 0;
}

.lev-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lev-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 12px 16px;
    background: #0a1f44;
    border: 1px solid rgba(54, 208, 234, 0.3);
    border-radius: 8px;
    min-width: 280px;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.5;
    color: #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.lev-tooltip strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.lev-tooltip p {
    margin: 0;
    color: #cbd5e1;
}

.lev-tooltip-wrapper:hover .lev-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Prediction info tooltip (ransomware predictions) */
.prediction-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.prediction-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 10px 14px;
    background: #0a1f44;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    min-width: 260px;
    max-width: 300px;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.5;
    color: #cbd5e1;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.prediction-tooltip-wrapper:hover .prediction-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .levplus-view-layout,
    .ssvc-view-layout {
        padding: 0 16px;
    }
    
    .ssvc-metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .view-header-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .view-title-main {
        font-size: 28px;
    }
    
    .levplus-score-section,
    .levplus-breakdown-section,
    .ssvc-decision-section,
    .ssvc-metrics-section {
        padding: 24px;
    }
    
    .levplus-score-circle {
        width: 160px;
        height: 160px;
    }
    
    .levplus-score-circle::before {
        width: 130px;
        height: 130px;
    }
    
    .levplus-score-number {
        font-size: 42px;
    }
    
    .ssvc-decision-box {
        padding: 20px 40px;
        font-size: 28px;
    }
}


/* ========================================
   TAB SYSTEM CSS - APPEND TO EXISTING detailed.css
   
   INSTRUCTIONS:
   Add this content to the END of your existing detailed.css file.
   This avoids conflicts and extends functionality.
   ======================================== */

/* Breadcrumb Navigation (New for Tabs) */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(241, 245, 249, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
}

.breadcrumb-item {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item:hover {
    color: #36d0ea;
}

.breadcrumb-separator {
    color: #94a3b8;
}

.breadcrumb-current {
    color: #334155;
    font-weight: 500;
}

/* Container Overrides for Tabs */
.container:has(.breadcrumb-nav),
.container:has(.tab-navigation-container) {
    margin-bottom: 0.5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.filters:has(.breadcrumb-nav),
.filters:has(.tab-navigation-container) {
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
}

/* Tab Navigation Container */
.tab-navigation-container {
    width: 100%;
    margin: 0.5rem 0 1rem 0;
}

.tab-navigation {
    display: flex;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-navigation::-webkit-scrollbar {
    height: 6px;
}

.tab-navigation::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.tab-navigation::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.tab-navigation::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Tab Buttons */
.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover { background: rgba(255,255,255,0.06); color: #ffffff; }

.tab-btn.active {
    background: transparent;
    color: #36d0ea;
    border-bottom: none;
}

.tab-btn i { display: none; }
.tab-btn::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
}
.tab-btn.active::before {
    background: #36d0ea;
    box-shadow: 0 0 8px 1px rgba(54, 208, 234, 0.85), 0 0 2px #36d0ea;
}

.badge-soon {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(54, 208, 234, 0.2);
    border-top-color: #36d0ea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-state p {
    font-size: 1rem;
    margin: 0;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #f87171;
    text-align: center;
}

.error-state i {
    margin-bottom: 1rem;
    color: #991b1b;
}

.error-state h3 {
    margin: 0 0 0.5rem 0;
    color: #fca5a5;
}

.error-state p {
    margin: 0 0 1.5rem 0;
    color: #94a3b8;
}

.btn-reload {
    padding: 0.75rem 1.5rem;
    background: #36d0ea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-reload:hover {
    background: #2563eb;
}

/* Placeholder State */
.placeholder-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #94a3b8;
    text-align: center;
}

.placeholder-state i {
    margin-bottom: 1rem;
    color: #64748b;
}

.placeholder-state h3 {
    margin: 0 0 0.5rem 0;
    color: #475569;
}

.placeholder-state p {
    margin: 0.5rem 0;
    color: #94a3b8;
}

/* Tab Content Styling */
.analysis-content,
.products-content,
.exploits-content,
.activity-content {
    padding: 2rem;
}

.analysis-content h2,
.products-content h2,
.exploits-content h2,
.activity-content h2 {
    margin: 0 0 1.5rem 0;
    color: #334155;
    font-size: 1.75rem;
}

.analysis-content section,
.products-content section,
.exploits-content section,
.activity-content section {
    margin-bottom: 2rem;
}

.analysis-content h3,
.products-content h3,
.exploits-content h3,
.activity-content h3 {
    margin: 0 0 1rem 0;
    color: #475569;
    font-size: 1.25rem;
}

/* CPE List for Products Tab - More specific selector to avoid conflict */
.products-content .cpe-list {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.products-content .cpe-list li {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Exploits List */
.exploits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exploit-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.exploit-item h4 {
    margin: 0 0 0.5rem 0;
}

.exploit-item a {
    color: #36d0ea;
    text-decoration: none;
}

.exploit-item a:hover {
    text-decoration: underline;
}

.exploit-item code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.exploit-item .badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(54, 208, 234, 0.2);
    color: #36d0ea;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Sightings List */
.sightings-list {
    list-style: none;
    padding: 0;
}

.sightings-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* References Tab Content - More specific to avoid conflict with existing .references-list */
.references-content {
    padding: 2rem;
}

.references-content h2 {
    margin: 0 0 1.5rem 0;
    color: #334155;
    font-size: 1.75rem;
}

.references-content section {
    margin-bottom: 2rem;
}

.references-content h3 {
    margin: 0 0 1rem 0;
    color: #475569;
    font-size: 1.25rem;
}

/* References List - Scoped to tab content only */
.references-content .references-list {
    list-style: none;
    padding: 0;
}

.references-content .references-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.references-content .references-list a {
    color: #36d0ea;
    text-decoration: none;
    flex: 1;
}

.references-content .references-list a:hover {
    text-decoration: underline;
}

/* Reference Badges - New for categorization */
.ref-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.badge-official {
    background: rgba(54, 208, 234, 0.2);
    color: #36d0ea;
}

.badge-vendor {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-advisory {
    background: rgba(71, 85, 105, 0.2);
    color: #475569;
}

.badge-technical {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

.badge-other {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* Responsive for Tabs */
@media (max-width: 768px) {
    .tab-navigation {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .breadcrumb-nav {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ======================================== 
   END OF TAB SYSTEM CSS
   ======================================== */


   
/* EPSS vs KEV Prediction chart card — navy */
.content-section.epss-chart-navy {
    background: #0a1f44;
    border: 1px solid rgba(54, 208, 234, 0.2);
}
.content-section.epss-chart-navy h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
}

/* Force all sidebar card variants → navy (match EPSS card) */
.cve-sidebar .sidebar-card,
.cvss-analysis-card, .attack-vectors-card, .lev-ssvc-card {
    background: #0a1f44 !important;
    border: 1px solid rgba(54, 208, 234, 0.2) !important;
    backdrop-filter: none !important;
}
.cve-sidebar .sidebar-card h3, .cve-sidebar .sidebar-card h4 { color: #ffffff; }

/* Cyan metric orb (e.g. KEV Date) */
.metric-dot.cyan { background: #36d0ea; box-shadow: 0 0 6px rgba(54,208,234,0.6); }

/* Navy variant for content-section (e.g. Ransomware Intelligence in Analysis) */
.content-section.navy-card {
    background: #0a1f44 !important;
    border: 1px solid rgba(54, 208, 234, 0.2) !important;
    box-shadow: none;
}
.content-section.navy-card h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
}
.content-section.navy-card,
.content-section.navy-card p,
.content-section.navy-card span,
.content-section.navy-card div,
.content-section.navy-card td,
.content-section.navy-card li,
.content-section.navy-card strong { color: #cbd5e1; }

/* Detail-page descriptive name shown as a subtitle directly under the code
   (CWE/CAPEC/ATT&CK id) — replaces the old name-in-an-inner-card. */
.detail-subtitle {
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: #334155;
    /* soft new-line hugging the id: pull up into the .cve-header-row's
       30px bottom gap so it sits right under the title */
    margin-top: -1.7rem;
    margin-bottom: 1.6rem;
    line-height: 1.3;
}

/* ===================================================================
   DETAIL CONTENT STANDARD (all *_detail pages: cwe/capec/attack/ransomware)
   Model = CWE Description: section <h2> (Como uppercase) + flowing body.
   For sections with multiple entries, each entry = a sub-topic:
     <div class="detail-item">
        <div class="detail-subtopic">Label</div>      (Manrope bold, dark)
        <p class="detail-body">description…</p>        (16px standard body)
     </div>
   =================================================================== */
.detail-body {
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
    margin: 0;
}
.detail-subtopic {
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}
.detail-entry { margin-bottom: 1.4rem; }
.detail-entry:last-child { margin-bottom: 0; }

/* Inline MITRE reference link, e.g. SOAR [REF-1479] in CWE detection text */
.cwe-ref-link {
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.cwe-ref-link:hover { text-decoration: underline; }

/* External bibliographic citation marker (e.g. [REF-1479]) — not hosted here,
   so shown muted and non-clickable instead of an outbound link. */
.cwe-ref-cite {
    color: #94a3b8;
    font-size: 0.85em;
    font-weight: 500;
}
