.insights-section {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 20px;
    color: #eeeeee;
    line-height: 1.65;
}

.insights-section h2,
.insight-card h2,
.insight-card h3 {
    color: #d4af37;
    margin: 0 0 14px;
}

.insight-card {
    background: #141414;
    border: 1px solid #343028;
    border-radius: 12px;
    padding: 22px;
    margin: 18px 0;
}

.insight-card p {
    color: #c1c1c1;
}

.rate-status {
    background: #1c1911;
    border: 1px solid #6b5720;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 16px auto;
    color: #dccb93;
    font-size: .85rem;
}

.rate-status strong {
    flex-basis: 100%;
}

.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.insight-grid .insight-card {
    margin-bottom: 0;
}

.table-scroll {
    overflow-x: auto;
}

.insights-section table,
.insight-card table {
    width: 100%;
    border-collapse: collapse;
    text-align: start;
    min-width: 500px;
}

.insights-section th,
.insights-section td,
.insight-card th,
.insight-card td {
    padding: 12px;
    border-bottom: 1px solid #333333;
    white-space: nowrap;
}

.insights-section caption {
    text-align: start;
    font-weight: 600;
    padding: 10px 0;
}

.insights-section td small {
    display: block;
    color: #aaaaaa;
    font-size: .74rem;
}

.rate-up {
    color: #5de58a;
}

.rate-down {
    color: #ff8282;
}

.range-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.range-stats dt {
    color: #aaaaaa;
}

.range-stats dd {
    margin: 0;
    color: #eeeeee;
    font-size: 1.25rem;
}

.insight-note {
    font-size: .84rem;
    color: #bbbbbb;
}

.estimator-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.estimator-fields label,
.chart-controls label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: .87rem;
}

.gold-estimator input,
.gold-estimator select,
.chart-controls select,
.insights-section input,
.insights-section button {
    padding: 12px;
    border: 1px solid #66572e;
    border-radius: 6px;
    background: #222222;
    color: #ffffff;
    font: inherit;
    max-width: 100%;
}

.gold-estimator output {
    display: block;
    font-size: 1.1rem;
    color: #f2d278;
    margin: 20px 0;
}

.chart-controls {
    display: flex;
    gap: 20px;
}

.history-chart {
    display: block;
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 380px;
    margin: 16px 0;
    background: #0d0d0d;
    border: 1px solid #29251d;
    border-radius: 12px;
    overflow: visible;
}

.history-chart text {
    fill: #cccccc;
    font: 12px system-ui;
}

.chart-plot-bg {
    fill: #111111;
}

.chart-grid-line {
    stroke: #2f2b23;
    stroke-width: 1;
}

.chart-axis-label {
    fill: #8f8f8f;
    font-size: 11px;
}

.chart-price-line {
    stroke: #f2d278;
    stroke-width: 3.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, .22));
}

.chart-single-line {
    stroke: #f2d278;
    stroke-width: 2;
    stroke-dasharray: 8 8;
}

.chart-dot {
    fill: #d4af37;
    stroke: #111111;
    stroke-width: 2;
}

.chart-dot-latest {
    fill: #f7dc82;
    stroke: #0d0d0d;
    stroke-width: 3;
}

.chart-label-box {
    fill: #19160f;
    stroke: #806927;
    stroke-width: 1;
}

.chart-value-label {
    fill: #f7dc82;
    font-size: 12px;
    font-weight: 700;
}

.insights-section pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #141414;
    padding: 14px;
    border-radius: 8px;
}

.rate-status-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold-estimator input:focus-visible,
.gold-estimator select:focus-visible,
.chart-controls select:focus-visible {
    outline: 2px solid #e4c76b;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .estimator-fields {
        grid-template-columns: 1fr 1fr;
    }

    .insight-card {
        padding: 16px;
    }

    .range-stats {
        gap: 18px;
    }

    .insights-section {
        padding: 0 14px;
    }

    .chart-controls {
        gap: 12px;
    }

    .history-chart {
        min-height: 200px;
    }
}

@media (max-width: 420px) {
    .estimator-fields {
        grid-template-columns: 1fr;
    }

    .chart-controls {
        flex-wrap: wrap;
    }
}
