.cp-tooltip {
    position: absolute;
    z-index: 10000;
    display: none;
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    color: #1a1a1a;
}

.tt-custom-wrapper {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


.cp-tooltip:not(:has(.tt-custom-wrapper)) {
    background: #0f172a;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    border: none;
}

@keyframes tooltipFadeIn {
    0% { opacity: 0; transform: translateY(4px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}


.tt-custom-wrapper {
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    width: 400px;
    box-sizing: border-box;

    overflow: hidden;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);

    isolation: isolate; 
}

.tt-custom-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;

    width: 120px;
    height: 120px;

    background: radial-gradient(
        circle at top right,
        rgba(var(--decor-rgb), 0.25),
        transparent 70%
    );

    pointer-events: none;
    z-index: 0;
}

.tt-wraper-bg-decor {
    position: absolute;
    right: -140px;
    top: -140px;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background: radial-gradient(
        circle at center,
        rgba(var(--decor-rgb), 0.45) 0%,
        rgba(var(--decor-rgb), 0.20) 35%,
        rgba(var(--decor-rgb), 0.10) 55%,
        rgba(var(--decor-rgb), 0) 75%
    );

    filter: blur(18px);
    opacity: 0.9;

    pointer-events: none;
    z-index: 0;
}

.tt-main-head {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.tt-status-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tt-status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tt-status-title-row h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.tt-main-head p {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}


.tt-comm-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 12px;
}

.tt-comm-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 24px;
}

.tt-comm-subtitle strong {
    font-weight: 700;
}


.tt-gradient-track {
    position: relative;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.tt-grad-diff {
    background: linear-gradient(to right, #84cc16, #eab308, #f97316, #b91c1c);
}

.tt-grad-cond {
    background: linear-gradient(to right, #ef4444, #f97316, #eab308, #c1d82f);
}


.tt-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}


.tt-marker-official {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid #0f172a; 
    z-index: 2;
}


.tt-marker-comm {
    width: 16px;
    height: 16px;
    background: #111827;
    border: 3px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 3;
}

.tt-track-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 24px;
}


.tt-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
}

.tt-bd-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tt-bd-label {
    width: 75px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0f172a;
    text-align: left;
}

.tt-bd-label span {
    color: #64748b;
}

.tt-bd-bar {
    flex: 1;
    height: 6px;
    background: #ffffff;
    border-radius: 3px;
    overflow: hidden;
}

.tt-bd-fill {
    height: 100%;
    background: #1e293b;
    border-radius: 3px;
}