/* Breakdown Section */
.breakdown-section {
    background: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-radius: 0.5rem;
}

.breakdown-header {
    margin-bottom: 2rem;
}

.breakdown-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.breakdown-bars {
    display: grid;
    gap: 1.5rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breakdown-item-label {
    min-width: 100px;
    font-weight: 600;
    color: var(--bs-dark);
}

.breakdown-item-percent {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--bs-primary);
}

.breakdown-bar {
    flex: 1;
    height: 24px;
    background-color: var(--border-subtle);
    border-radius: 9999px;
    overflow: hidden;
}

.breakdown-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background-color: var(--bs-primary);
    transition: width 0.3s ease;
    border-radius: 9999px;
}

.market-pulse-card {
    background: linear-gradient(140deg, var(--tagtaly-paper) 0%, rgba(30, 58, 95, 0.05) 52%, rgba(166, 61, 42, 0.06) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.market-pulse-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.market-pulse-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
}

.market-pulse-status {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.market-pulse-analysis {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.market-index-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.market-index-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.market-index-frame {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border-subtle);
    border-radius: 0.85rem;
    padding: 0.75rem;
}

.market-index-chart {
    width: 100%;
    height: 280px;
    display: block;
}

.market-index-legend {
    margin-top: 1rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.market-index-legend-item {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border-subtle);
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
}

.market-index-legend-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.market-index-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--bs-dark);
}

.market-index-swatch {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 9999px;
    flex: 0 0 auto;
}

.market-index-change {
    font-weight: 700;
    font-size: 0.95rem;
}

.market-index-value {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.market-index-empty {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.market-index-grid-line {
    stroke: rgba(148, 163, 184, 0.28);
    stroke-width: 1;
}

.market-index-zero-line {
    stroke: rgba(15, 23, 42, 0.38);
    stroke-width: 1.25;
}

.market-index-axis-label {
    fill: #64748b;
    font-size: 12px;
}

.market-index-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-index-endpoint {
    stroke: white;
    stroke-width: 2;
}

@media (max-width: 767.98px) {
    .market-pulse-header {
        flex-direction: column;
    }

    .market-pulse-status {
        white-space: normal;
    }

    .market-index-chart {
        height: 240px;
    }
}

