.investment-model-name {
    font-size: 0.875rem;
}

.investment-model-risk-meter--hidden {
    visibility: hidden;
}

.investment-model-tooltip {
    max-width: 17.5rem;
    text-align: left;
}

/* Investment Model Section Styles */
/* MudBlazor 8.5.0 Compatible */

.investment-model-section {
/*    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 12px;*/
    padding: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E8E8E8;
}

.model-name {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    line-height: 28px;
}

/* KPI Grid */
.kpi-grid {
    margin-bottom: 0 !important;
}

/* KPI Tiles */
.kpi-tile {
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 20px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    height: 100%;
}

    .kpi-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.kpi-tile-dark {
    border: 1px solid #4e4e56!important;
}

    .kpi-content {
        flex: 1;
    }

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.kpi-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #7A8FA3 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-icon {
    color: #9EAAB5 !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
}

    .info-icon:hover {
        color: #7A8FA3 !important;
        background: transparent !important;
    }

.kpi-main-content {
    margin-bottom: 12px;
}

/* Risk Profile Styles */
.risk-score {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
}

.risk-label {
    font-size: 13px !important;
    color: #7A8FA3 !important;
    margin-top: 4px;
}

.risk-meter {
    width: 100%;
    height: 28px;
    display: flex;
    gap: 3px;
    margin-top: auto;
    position: relative;
    padding-bottom: 20px;
}

.risk-segment {
    flex: 1;
    background: #D1D8E0;
    border-radius: 4px;
    transition: background 0.3s ease;
}

    .risk-segment.filled {
        /*        background: #D4B5FF;*/
        background-image: var(--gradient-primary) !important;
    }

/* Withdrawal Capacity Styles */
.withdrawal-value {
    font-size: 36px !important;
    font-weight: 700 !important;
/*    color: #6BA3F5 !important;*/
    line-height: 1 !important;
}

.confidence-label {
    font-size: 13px !important;
    color: #7A8FA3 !important;
    margin-top: 6px;
}

.range-visual {
    width: 100%;
    position: relative;
    height: 40px;
    margin-top: auto;
}

.range-bar {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #0047AB 0%, #002974 50%, #0047AB 100%);
    border-radius: 5px;
    transform: translateY(-50%);
}

/*.range-marker {
    position: absolute;
    top: 50%;
    width: 3px;
    height: 24px;
    background: #A8C5F0;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

    .range-marker::after {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        background: #0045a7;
        border: 2px solid white;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(107, 163, 245, 0.4);
    }*/

.range-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -100%);
    width: 30px;
    height: 25px;
}

    .range-marker::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 19px;
        height: 19px;
        background: var(--gradient-primary);
        border: 1px solid #E8E8E8;
        border-radius: 50% 50% 50% 0;
        transform: translateX(-50%) rotate(-45deg);
/*        box-shadow: 0 8px 20px rgba(0, 41, 116, 0.4), 0 2px 8px rgba(0, 71, 171, 0.2);*/
    }

.range-labels {
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9EAAB5;
    font-weight: 500;
}

/* Sequencing Styles */
.sequencing-value {
    font-size: 36px !important;
    font-weight: 700 !important;
/*    color: #9F9FF8 !important;*/
    line-height: 44px !important;
}

.sequencing-descriptor {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #7A8FA3 !important;
    margin-top: 4px;
}

.timeline-graphic {
    display: flex;
    gap: 4px;
    margin-top: auto;
    height: 28px;
    position: relative;
    padding-bottom: 20px;
}

.timeline-block {
    flex: 1;
    background: #D1D8E0;
    opacity: 0.8;
    border-radius: 3px;
    /*    max-width: 30px;*/
}

    .timeline-block.filled {
        background-image: var(--gradient-primary) !important;
    }


    /* Responsive Adjustments */
    @media (max-width: 960px) {
        .investment-model-section {
            padding: 16px;
        }

        .section-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .kpi-tile {
            min-height: 160px;
        }

        .risk-score,
        .withdrawal-value,
        .sequencing-value {
            font-size: 28px !important;
        }
    }

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.investment-model-section {
    animation: fadeIn 0.4s ease;
}

.kpi-tile {
    animation: fadeIn 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
    .investment-model-section,
    .kpi-tile {
        animation: none;
    }

        .kpi-tile:hover {
            transform: none;
        }
}

.progress-circular-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.circular-progress {
    position: relative;
    width: 80px;
    height: 80px;
}

    .circular-progress svg {
        display: block;
        transform: rotate(-90deg);
    }

.circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 2;
}

.circle-progress {
    fill: none;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-dasharray: 201;
    stroke-dashoffset: 134;
    transition: stroke-dashoffset 0.8s ease;
}

.circular-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    text-align: center;
}

.circular-percentage {
    color: var(--text-primary) !important;
    background: none !important;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1;
    text-shadow: none;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
}

.circular-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.progress-details {
    flex: 1;
}

.detail-row {
    display: flex;
    flex-direction:column;
/*    justify-content: space-between;*/
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    font-size: 14px;
    font-weight: 600;
    color: #6e6e73;
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    color: #0a0a0a;
}

.headline-spacer {
    width: 2px;
    background: var(--icon-gradient-secondary);
    border-radius: 100px;
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 12px;
    margin-bottom: 12px;
    display: block;
    border-radius: 5px;
}

/* KPI Tile Animation */
.kpi-tile {
    transition: all 0.3s ease;
}

.kpi-tile.tile-animate {
/*    animation: tileUpdate 0.6s ease-out;*/
}

.risk-segment.filled, .timeline-block.filled {
    animation: fillIn 0.4s ease-out;
}

.range-marker {
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
