    /* ✅ SKELETON LOADING STATES */
    .skeleton {
        background: linear-gradient(90deg,
            var(--bg-tertiary) 0%,
            var(--bg-hover), 0.6) 50%,
            var(--bg-tertiary) 100%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.5s ease-in-out infinite;
        border-radius: inherit;
        pointer-events: none;
    }

    @keyframes skeleton-shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .skeleton-text {
        background: var(--bg-card-light);
        border-radius: 4px;
        display: inline-block;
        height: 1em;
        width: 100%;
    }

    .skeleton-box {
        background: linear-gradient(90deg,
            var(--bg-tertiary) 0%,
            var(--bg-hover), 0.6) 50%,
            var(--bg-tertiary) 100%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.5s ease-in-out infinite;
        border-radius: 12px;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        background: var(--bg-primary);
        min-height: 100%;
    }

    body {
        font-family: var(--font-primary);
        background: transparent;
        color: var(--text-primary);
        overflow-x: hidden;
        line-height: 1.6;
        position: relative;
        min-height: 0 !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    body>*:last-child {
        margin-bottom: 0 !important;
    }

    footer {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    footer .container {
        max-width: 1440px;
        padding: 0 2rem;
        margin-bottom: 0 !important;
    }

    .panel {
        background: var(--bg-panel);
        border: 1px solid var(--border-primary);
        border-radius: 24px;
        padding: 32px;
        box-shadow: var(--shadow-lg);
        /* PERFORMANCE: Removed expensive backdrop-filter and inset shadow */
        position: relative;
        width: 100%;
        box-sizing: border-box;
        /* GPU acceleration */
        will-change: transform;
        transform: translateZ(0);
    }

    .chart-section {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .header {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 24px;
    }

    .header h1 {
        font-size: clamp(24px, 2.6vw, 32px);
        font-weight: 800;
        background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .header span {
        font-size: 14px;
        color: var(--text-muted);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 600;
    }

    .gauge-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 32px;
        align-items: center;
        margin-bottom: 32px;
    }

    .gauge-container {
        position: relative;
        width: 360px;
        max-width: 100%;
        margin: 0 auto;
    }

    .gauge-arc {
        position: relative;
        width: 100%;
        padding-top: 50%;
        /* PERFORMANCE: Replaced drop-shadow with box-shadow */
        box-shadow: 0 8px 32px rgba(168, 197, 218, 0.15);
    }

    .gauge-bg {
        position: absolute;
        inset: 0;
        border-radius: 200px 200px 0 0;
        background: linear-gradient(90deg,
                #dc2626 0%,
                #f97316 20%,
                #eab308 40%,
                #facc15 50%,
                #84cc16 70%,
                #22c55e 85%,
                #16a34a 100%);
        box-shadow:
            0 0 40px rgba(239, 68, 68, 0.3),
            0 0 60px rgba(168, 197, 218, 0.2),
            inset 0 0 30px var(--border-secondary);
    }

    .gauge-mask {
        position: absolute;
        inset: 12%;
        border-radius: 160px 160px 0 0;
        background: linear-gradient(180deg, var(--bg-modal) 0%, var(--bg-panel) 100%);
        box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
    }

    .gauge-labels {
        position: absolute;
        inset: -10px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding: 0 20px;
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.5);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .needle {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 5px;
        height: 100%;
        transform-origin: bottom center;
        transform: translateX(-50%) rotate(-90deg);
        transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 2;
        /* PERFORMANCE: Replaced filter drop-shadow with box-shadow */
        will-change: transform;
    }

    .needle::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60%;
        background: linear-gradient(180deg,
                var(--titanium-silver) 0%,
                rgba(196, 204, 214, 1) 50%,
                rgba(196, 204, 214, 0.8) 100%);
        border-radius: 999px;
        box-shadow:
            0 0 40px rgba(196, 204, 214, 1),
            0 0 60px rgba(196, 204, 214, 0.7),
            inset 0 0 15px rgba(255, 255, 255, 0.8);
    }

    .needle::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        width: 20px;
        height: 20px;
        transform: translateX(-50%);
        background: radial-gradient(circle, var(--titanium-silver) 20%, rgba(196, 204, 214, 0.9) 60%, rgba(196, 204, 214, 0.6) 100%);
        border: 3px solid var(--titanium-silver);
        border-radius: 50%;
        box-shadow:
            0 0 30px rgba(196, 204, 214, 1),
            0 0 40px rgba(168, 197, 218, 0.6),
            inset 0 0 8px rgba(0, 0, 0, 0.5);
    }

    .score-card {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .score-value {
        font-size: clamp(56px, 6vw, 72px);
        font-weight: 900;
        line-height: 0.9;
        background: linear-gradient(135deg, var(--titanium-silver) 0%, var(--titanium-silver) 50%, var(--titanium-silver) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
    }

    /* PERFORMANCE: Removed expensive blur filter pseudo-element */

    .score-label {
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .score-message {
        font-size: 14px;
        color: var(--text-secondary);
        max-width: 420px;
        line-height: 1.6;
    }

    .score-trend {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-top: 6px;
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 12px;
        background: var(--border-secondary);
        border: 1px solid rgba(148, 163, 184, 0.18);
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--text-primary);
    }

    /* ✅ NEW: Yesterday Comparison */
    .yesterday-card {
        margin-top: 12px;
        padding: 12px 16px;
        border-radius: 12px;
        background: var(--bg-card-light);
        border: 1px solid var(--border-primary);
        display: inline-flex;
        align-items: center;
        gap: 16px;
        font-size: 14px;
    }

    .yesterday-label {
        color: var(--text-muted);
        font-weight: 500;
    }

    .yesterday-score {
        color: var(--text-primary);
        font-weight: 700;
        font-size: 18px;
    }

    .yesterday-change {
        padding: 4px 10px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 13px;
    }

    .yesterday-change.positive {
        background: rgba(16, 185, 129, 0.15);
        color: var(--success);
    }

    .yesterday-change.negative {
        background: rgba(239, 68, 68, 0.15);
        color: var(--danger);
    }

    .yesterday-change.neutral {
        background: rgba(148, 163, 184, 0.15);
        color: var(--text-muted);
    }

    .score-trend span {
        display: inline-flex;
        align-items: center;
    }

    .score-trend .trend-separator {
        font-size: 16px;
        color: var(--text-muted);
    }

    .trend-separator {
        color: var(--text-muted);
    }

    .meta {
        margin-top: 12px;
        font-size: 12px;
        color: var(--text-dimmed);
    }

    .meta time {
        color: var(--titanium-silver);
    }

    .insights {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
        margin-bottom: 32px;
        width: 100%;
        padding: 0;
    }

    .insight-chip {
        padding: 12px 18px;
        border-radius: 12px;
        background: linear-gradient(135deg,
                rgba(168, 197, 218, 0.15) 0%,
                rgba(168, 197, 218, 0.1) 100%);
        border: 1px solid rgba(168, 197, 218, 0.3);
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
        line-height: 1.5;
        width: 100%;
        box-sizing: border-box;
    }

    .summary-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
        margin-bottom: 36px;
        align-items: start;
        width: 100%;
        padding: 0;
    }

    .summary-card {
        padding: 18px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-overlay) 100%);
        border: 1px solid rgba(168, 197, 218, 0.15);
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .summary-card .label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--text-muted);
    }

    .summary-card .value {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .summary-card .muted {
        font-size: 12px;
        color: var(--text-muted);
    }

    .breakdown-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
        margin-bottom: 36px;
        align-items: start;
        width: 100%;
        padding: 0;
    }

    .metric-card {
        padding: 20px;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-panel) 100%);
        border: 1px solid transparent;
        background-clip: padding-box;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 12px;
        /* PERF: Specific transitions instead of 'all', use GPU-accelerated properties */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        /* PERF: Isolate layout calculations */
        contain: layout style;
    }

    .metric-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 18px;
        padding: 1px;
        background: linear-gradient(135deg,
                rgba(168, 197, 218, 0.3),
                rgba(168, 197, 218, 0.2),
                rgba(168, 197, 218, 0.3));
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        mask-composite: exclude;
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }

    .metric-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(168, 197, 218, 0.2),
            inset 0 0 40px rgba(168, 197, 218, 0.05);
    }

    .metric-card:hover::before {
        opacity: 1;
    }

    .metric-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }

    .metric-title {
        font-weight: 600;
        font-size: 15px;
    }

    .metric-weight {
        font-size: 12px;
        color: var(--text-muted);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-top: 2px;
    }

    .metric-score {
        text-align: right;
        font-size: 14px;
        color: var(--titanium-silver);
    }

    .metric-bar {
        width: 100%;
        height: 8px;
        border-radius: 999px;
        background: var(--bg-card);
        overflow: hidden;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
        position: relative;
    }

    .metric-fill {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg,
                #A8C5DA 0%,
                #A8C5DA 50%,
                #93c5fd 100%);
        box-shadow:
            0 0 20px rgba(168, 197, 218, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform-origin: left;
        transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: relative;
        z-index: 1;
    }

    .metric-fill::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.3) 50%,
                rgba(255, 255, 255, 0) 100%);
        border-radius: inherit;
    }

    .metric-details {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 13px;
    }

    .detail-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        color: var(--titanium-silver);
    }

    .detail-row span:last-child {
        font-weight: 600;
        color: var(--text-primary);
    }

    .loading,
    .error {
        text-align: center;
        padding: 60px 0;
    }

    .loading {
        color: var(--text-secondary);
        font-size: 16px;
        font-weight: 500;
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 12px;
    }

    .loading::before {
        content: '';
        width: 40px;
        height: 40px;
        border: 3px solid rgba(168, 197, 218, 0.2);
        border-top-color: var(--titanium-silver);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 20px;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        border: 3px solid rgba(168, 197, 218, 0.3);
        border-top-color: var(--titanium-silver);
        border-radius: 50%;
        animation: spin 0.8s linear infinite reverse;
    }

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

    .content-ready {
        opacity: 1;
    }

    .error {
        color: var(--market-bearish);
        font-size: 16px;
        font-weight: 500;
        padding: 40px;
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        border-radius: 16px;
    }

    /* ✅ NEWS SENTIMENT SECTION */
    .news-section {
        margin-top: 16px;
        padding-top: 36px;
        border-top: 1px solid rgba(148, 163, 184, 0.15);
    }

    .news-header {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .news-title {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .news-filters-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .news-filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
    }

    .filter-label {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: 4px;
    }

    .filter-btn,
    .sector-filter-btn {
        padding: 8px 16px;
        border-radius: 8px;
        background: var(--bg-card-light);
        border: 1px solid var(--border-titanium);
        color: var(--text-secondary);
        font-size: 13px;
        cursor: pointer;
        /* PERF: Specific transitions */
        transition: background-color 0.2s, border-color 0.2s, color 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .sector-filter-btn i,
    .filter-btn i,
    .sector-filter-btn svg,
    .filter-btn svg {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        vertical-align: middle;
    }

    .filter-btn:hover,
    .sector-filter-btn:hover {
        background: var(--bg-overlay);
        border-color: var(--border-accent);
    }

    .filter-btn.active {
        background: linear-gradient(135deg, var(--titanium-silver), var(--titanium-silver));
        border-color: var(--titanium-silver);
        color: var(--btn-titanium-text);
    }

    .sector-filter-btn.active {
        background: linear-gradient(135deg, var(--success), var(--market-bullish));
        border-color: var(--success);
        color: var(--text-on-accent);
    }

    .news-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        /* PERF: GPU layer for smooth scroll */
        transform: translateZ(0);
        will-change: scroll-position;
        overflow: visible;
    }

    .news-item {
        padding: 16px 20px;
        border-radius: 14px;
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
        display: flex;
        gap: 16px;
        align-items: start;
        /* PERF: Specific transitions instead of 'all' */
        transition: background-color 0.2s, border-color 0.2s;
        cursor: pointer;
        /* PERF: Isolate paint - removed 'paint' to allow tooltip overflow */
        contain: layout style;
        overflow: visible;
    }

    .news-item:hover {
        background: var(--bg-overlay);
        border-color: var(--border-titanium);
    }

    .news-indicator {
        width: 4px;
        min-width: 4px;
        height: 100%;
        border-radius: 2px;
        margin-top: 2px;
    }

    .news-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .news-badge {
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .news-badge.global {
        background: rgba(168, 197, 218, 0.15);
        color: var(--titanium-silver);
    }

    .news-badge.local {
        background: rgba(16, 185, 129, 0.15);
        color: var(--success);
    }

    .news-content {
        flex: 1;
    }

    .news-title-text {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.5;
    }

    .news-sentiment-badge {
        padding: 5px 12px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        border: 1.5px solid;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        /* PERF: No transition for better scroll perf */
    }

    .news-sentiment-badge:hover {
        /* PERF: Removed transform and box-shadow hover for scroll performance */
    }

    .ping-bar {
        display: inline-flex;
        align-items: flex-end;
        gap: 2px;
        padding: 4px 8px;
        border-radius: 6px;
        background: var(--bg-card-light);
        position: relative;
    }

    .ping-bar-line {
        width: 3px;
        border-radius: 2px 2px 0 0;
        /* PERF: Remove transition for scroll performance */
    }

    .ping-bar-tooltip {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-4px);
        background: var(--bg-panel);
        color: var(--text-primary);
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
        border: 1px solid var(--border-titanium);
    }

    .ping-bar:hover .ping-bar-tooltip {
        opacity: 1;
    }

    .load-more-btn {
        margin-top: 16px;
        padding: 12px 24px;
        border-radius: 10px;
        background: var(--bg-card-light);
        border: 1px solid var(--border-titanium);
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        /* PERF: Specific transitions */
        transition: background-color 0.2s, border-color 0.2s;
        width: 100%;
    }

    .load-more-btn:hover {
        background: var(--bg-overlay);
        border-color: var(--border-accent);
    }

    .bank-rates-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 36px;
        align-items: start;
        width: 100%;
        padding: 0;
    }

    /* ✅ FRESHNESS HIGHLIGHT for Central Bank Rate Cards */
    /* Hot (1 day) - Animated glowing border */
    .metric-card.freshness-hot {
        border: 2px solid transparent;
        background-image:
            linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-panel) 100%),
            linear-gradient(135deg, #f59e0b, #ef4444, #f59e0b);
        background-origin: border-box;
        background-clip: padding-box, border-box;
        animation: freshness-hot-pulse 2s ease-in-out infinite;
    }

    .metric-card.freshness-hot::before {
        background: linear-gradient(135deg,
            rgba(245, 158, 11, 0.6),
            rgba(239, 68, 68, 0.4),
            rgba(245, 158, 11, 0.6));
        opacity: 1;
    }

    @keyframes freshness-hot-pulse {
        0%, 100% {
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), 0 0 24px rgba(239, 68, 68, 0.2);
        }
        50% {
            box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 0 40px rgba(239, 68, 68, 0.3);
        }
    }

    /* Normal (2 days) - Subtle animated border */
    .metric-card.freshness-normal {
        border: 2px solid rgba(59, 130, 246, 0.5);
        animation: freshness-normal-glow 3s ease-in-out infinite;
    }

    .metric-card.freshness-normal::before {
        background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.4),
            rgba(59, 130, 246, 0.2),
            rgba(59, 130, 246, 0.4));
        opacity: 0.8;
    }

    @keyframes freshness-normal-glow {
        0%, 100% {
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
            border-color: rgba(59, 130, 246, 0.4);
        }
        50% {
            box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
            border-color: rgba(59, 130, 246, 0.6);
        }
    }

    /* Normal + Trend combinations with smooth animations */
    .metric-card.freshness-normal.trend-cutting {
        border-color: rgba(16, 185, 129, 0.5);
        animation: freshness-normal-cutting 3s ease-in-out infinite;
    }

    @keyframes freshness-normal-cutting {
        0%, 100% {
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
            border-color: rgba(16, 185, 129, 0.4);
        }
        50% {
            box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
            border-color: rgba(16, 185, 129, 0.7);
        }
    }

    .metric-card.freshness-normal.trend-hiking {
        border-color: rgba(239, 68, 68, 0.5);
        animation: freshness-normal-hiking 3s ease-in-out infinite;
    }

    @keyframes freshness-normal-hiking {
        0%, 100% {
            box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
            border-color: rgba(239, 68, 68, 0.4);
        }
        50% {
            box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
            border-color: rgba(239, 68, 68, 0.7);
        }
    }

    .metric-card.freshness-normal.trend-unchanged {
        border-color: rgba(100, 116, 139, 0.4);
        animation: freshness-normal-unchanged 4s ease-in-out infinite;
    }

    @keyframes freshness-normal-unchanged {
        0%, 100% {
            box-shadow: 0 0 6px rgba(100, 116, 139, 0.2);
            border-color: rgba(100, 116, 139, 0.35);
        }
        50% {
            box-shadow: 0 0 12px rgba(100, 116, 139, 0.35);
            border-color: rgba(100, 116, 139, 0.55);
        }
    }

    /* Stale (3 days) - Very subtle fading animation */
    .metric-card.freshness-stale {
        border: 1px solid rgba(148, 163, 184, 0.3);
        animation: freshness-stale-fade 5s ease-in-out infinite;
    }

    .metric-card.freshness-stale::before {
        background: linear-gradient(135deg,
            rgba(148, 163, 184, 0.25),
            rgba(148, 163, 184, 0.15),
            rgba(148, 163, 184, 0.25));
        opacity: 0.5;
    }

    @keyframes freshness-stale-fade {
        0%, 100% {
            box-shadow: 0 0 4px rgba(148, 163, 184, 0.15);
            border-color: rgba(148, 163, 184, 0.25);
        }
        50% {
            box-shadow: 0 0 8px rgba(148, 163, 184, 0.25);
            border-color: rgba(148, 163, 184, 0.4);
        }
    }

    /* Stale + Trend combinations */
    .metric-card.freshness-stale.trend-cutting {
        border-color: rgba(16, 185, 129, 0.25);
        animation: freshness-stale-cutting 5s ease-in-out infinite;
    }

    @keyframes freshness-stale-cutting {
        0%, 100% {
            box-shadow: 0 0 3px rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.2);
        }
        50% {
            box-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
            border-color: rgba(16, 185, 129, 0.35);
        }
    }

    .metric-card.freshness-stale.trend-hiking {
        border-color: rgba(239, 68, 68, 0.25);
        animation: freshness-stale-hiking 5s ease-in-out infinite;
    }

    @keyframes freshness-stale-hiking {
        0%, 100% {
            box-shadow: 0 0 3px rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.2);
        }
        50% {
            box-shadow: 0 0 6px rgba(239, 68, 68, 0.25);
            border-color: rgba(239, 68, 68, 0.35);
        }
    }

    .metric-card.freshness-stale.trend-unchanged {
        border-color: rgba(100, 116, 139, 0.25);
        animation: freshness-stale-unchanged 6s ease-in-out infinite;
    }

    @keyframes freshness-stale-unchanged {
        0%, 100% {
            box-shadow: 0 0 2px rgba(100, 116, 139, 0.1);
            border-color: rgba(100, 116, 139, 0.2);
        }
        50% {
            box-shadow: 0 0 5px rgba(100, 116, 139, 0.2);
            border-color: rgba(100, 116, 139, 0.3);
        }
    }

    /* Default (4+ days) - No animation, just subtle trend hint */
    .metric-card.freshness-default {
        border: 1px solid transparent;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .metric-card.freshness-default::before {
        background: linear-gradient(135deg,
            rgba(168, 197, 218, 0.3),
            rgba(168, 197, 218, 0.2),
            rgba(168, 197, 218, 0.3));
        opacity: 0.6;
    }

    /* Default + Trend combinations - very subtle static hint */
    .metric-card.freshness-default.trend-cutting {
        border-color: rgba(16, 185, 129, 0.15);
    }

    .metric-card.freshness-default.trend-hiking {
        border-color: rgba(239, 68, 68, 0.15);
    }

    .metric-card.freshness-default.trend-unchanged {
        border-color: rgba(100, 116, 139, 0.1);
    }

    /* ✅ Freshness badge indicator */
    .freshness-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-left: 8px;
    }

    .freshness-badge.hot {
        background: rgba(245, 158, 11, 0.2);
        color: #f59e0b;
        animation: badge-pulse 1.5s ease-in-out infinite;
    }

    .freshness-badge.normal {
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
    }

    .freshness-badge.stale {
        background: rgba(148, 163, 184, 0.15);
        color: #94a3b8;
    }

    @keyframes badge-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }

    /* ✅ TREND STYLING for Central Bank Rate Cards */
    /* Note: These are base styles - freshness combinations above take precedence */

    /* Hiking - Red glow (rate increase = bearish for market) */
    .metric-card.trend-hiking {
        border-color: rgba(239, 68, 68, 0.4);
    }

    .metric-card.trend-hiking::before {
        background: linear-gradient(135deg,
            rgba(239, 68, 68, 0.4),
            rgba(239, 68, 68, 0.2),
            rgba(239, 68, 68, 0.4));
    }

    .metric-card.trend-hiking.freshness-hot {
        background-image:
            linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-panel) 100%),
            linear-gradient(135deg, #ef4444, #dc2626, #ef4444);
        animation: trend-hiking-pulse 2s ease-in-out infinite;
    }

    @keyframes trend-hiking-pulse {
        0%, 100% {
            box-shadow: 0 0 12px rgba(239, 68, 68, 0.4), 0 0 24px rgba(220, 38, 38, 0.2);
        }
        50% {
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 0 40px rgba(220, 38, 38, 0.3);
        }
    }

    /* Cutting - Green glow (rate decrease = bullish for market) */
    .metric-card.trend-cutting {
        border-color: rgba(16, 185, 129, 0.4);
    }

    .metric-card.trend-cutting::before {
        background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.4),
            rgba(16, 185, 129, 0.2),
            rgba(16, 185, 129, 0.4));
    }

    .metric-card.trend-cutting.freshness-hot {
        background-image:
            linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-panel) 100%),
            linear-gradient(135deg, #10b981, #059669, #10b981);
        animation: trend-cutting-pulse 2s ease-in-out infinite;
    }

    @keyframes trend-cutting-pulse {
        0%, 100% {
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.4), 0 0 24px rgba(5, 150, 105, 0.2);
        }
        50% {
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(5, 150, 105, 0.3);
        }
    }

    /* Unchanged - Neutral gray/blue glow */
    .metric-card.trend-unchanged {
        border-color: rgba(148, 163, 184, 0.3);
    }

    .metric-card.trend-unchanged::before {
        background: linear-gradient(135deg,
            rgba(148, 163, 184, 0.3),
            rgba(148, 163, 184, 0.15),
            rgba(148, 163, 184, 0.3));
    }

    .metric-card.trend-unchanged.freshness-hot {
        background-image:
            linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-panel) 100%),
            linear-gradient(135deg, #64748b, #475569, #64748b);
        animation: trend-unchanged-pulse 2.5s ease-in-out infinite;
    }

    @keyframes trend-unchanged-pulse {
        0%, 100% {
            box-shadow: 0 0 8px rgba(100, 116, 139, 0.3), 0 0 16px rgba(71, 85, 105, 0.15);
        }
        50% {
            box-shadow: 0 0 12px rgba(100, 116, 139, 0.5), 0 0 24px rgba(71, 85, 105, 0.25);
        }
    }

    /* Combined freshness + trend badge colors */
    .metric-card.trend-hiking .freshness-badge.hot {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }

    .metric-card.trend-cutting .freshness-badge.hot {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
    }

    .metric-card.trend-unchanged .freshness-badge.hot {
        background: rgba(100, 116, 139, 0.2);
        color: #64748b;
    }

    @media (max-width: 768px) {
        .panel {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .bank-rates-grid {
            grid-template-columns: 1fr;
            gap: 12px;
            margin-bottom: 20px;
        }

        .metric-card {
            padding: 16px;
            box-shadow: none;
        }

        .metric-card:hover {
            transform: none;
            box-shadow: none;
        }

        .metric-card::before {
            display: none;
        }

        .metric-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .metric-score {
            text-align: left;
            font-size: 18px;
        }

        .metric-title {
            font-size: 14px;
        }

        .detail-row {
            font-size: 12px;
            gap: 8px;
        }

        .summary-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .breakdown-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .news-item {
            padding: 12px 16px;
            gap: 12px;
        }

        .news-item:hover {
            transform: none;
        }

        .news-title-text {
            font-size: 14px;
        }

        .yesterday-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        /* ✅ Mobile: Stack gauge + stats vertically */
        .rdgh-sentiment-card {
            padding: 16px;
            margin-bottom: 20px;
        }

        .rdgh-sentiment-grid {
            display: grid;
            grid-template-columns: 1fr !important;
            gap: 20px;
            margin-bottom: 20px;
        }

        .rdgh-gauge-section,
        .rdgh-stats-section {
            width: 100%;
            max-width: 100%;
        }

        /* ✅ Gauge responsive */
        .mini-gauge-container {
            padding: 16px 0;
            max-width: 180px;
            margin: 0 auto;
        }

        .mini-gauge-arc {
            width: 140px;
            height: 70px;
        }

        .mini-score-value {
            font-size: 32px;
        }

        .mini-score-label {
            font-size: 13px;
        }

        /* ✅ Historical stats responsive */
        .hist-stat-row {
            padding: 10px 12px;
        }

        .hist-label {
            font-size: 12px;
        }

        .hist-value {
            font-size: 12px;
            padding: 3px 10px;
        }

        /* ✅ Voting Section - Mobile */
        .rdgh-voting-section {
            padding-top: 20px;
            max-width: 100%;
        }

        .rdgh-voting-title {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 10px;
            text-align: center;
            letter-spacing: 0.01em;
        }

        .rdgh-voting-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
        }

        .rdgh-vote-btn {
            padding: 14px 16px;
            border: none;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            /* PERF: Specific transitions for GPU acceleration */
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .rdgh-vote-btn.bearish {
            background: linear-gradient(135deg, var(--danger) 0%, var(--market-bearish) 100%);
            color: var(--text-primary);
        }

        .rdgh-vote-btn.bearish:active {
            background: linear-gradient(135deg, var(--market-bearish) 0%, var(--danger) 100%);
            transform: scale(0.96);
            box-shadow: 0 2px 8px var(--danger-glow);
        }

        .rdgh-vote-btn.bullish {
            background: var(--btn-success-bg);
            color: var(--text-primary);
        }

        .rdgh-vote-btn.bullish:active {
            background: linear-gradient(135deg, var(--market-bullish) 0%, var(--success) 100%);
            transform: scale(0.96);
            box-shadow: 0 2px 8px var(--success-glow);
        }

        .vote-icon {
            width: 16px;
            height: 16px;
        }

        .vote-label {
            font-size: 13px;
        }

        .rdgh-voting-results {
            margin-top: 12px;
        }

        .vote-result-bar {
            display: flex;
            height: 44px;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 12px;
            background: var(--bg-tertiary);
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .vote-result-bar::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 12px;
            border: 1px solid var(--border-primary);
            pointer-events: none;
        }

        .vote-percentage {
            font-size: 13px;
        }

        .vote-total {
            font-size: 11px;
        }

        .vote-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
            transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
        }

        .vote-bar::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg,
                    transparent 0%,
                    rgba(255, 255, 255, 0.2) 50%,
                    transparent 100%);
            transform: translateX(-100%);
            animation: shimmer 2s infinite;
        }

        .vote-bar.bearish {
            background: linear-gradient(135deg, var(--danger) 0%, var(--market-bearish) 100%);
            color: var(--text-primary);
        }

        .vote-bar.bullish {
            background: var(--btn-success-bg);
            color: var(--text-primary);
        }

        .vote-total {
            text-align: center;
            color: var(--text-muted);
            font-size: 14px;
            font-weight: 600;
        }

        .gauge-section {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .panel {
            padding: 20px;
            border-radius: 16px;
            overflow: visible;
            /* Allow chart breakout */
        }

        .wrapper {
            padding: 0 1rem 2rem 1rem;
        }

        .insights {
            grid-template-columns: 1fr;
        }
    }

    /* ✅ Tablet responsive */
    @media (max-width: 1024px) and (min-width: 769px) {
        .rdgh-sentiment-card {
            padding: 24px;
        }

        .rdgh-sentiment-grid {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .rdgh-voting-section {
            max-width: 100%;
        }
    }

    .wrapper {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 2rem 3rem 2rem;
        width: 100%;
        /* PERF: Optimize scroll performance */
        transform: translateZ(0);
    }

    /* ✅ RDGH Sentiment Card - Combined Box */
    .rdgh-sentiment-card {
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
        border-radius: 16px;
        padding: 32px;
        margin-bottom: 32px;
    }

    /* Grid: Gauge + Historical Stats side by side */
    .rdgh-sentiment-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .rdgh-gauge-section,
    .rdgh-stats-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* ✅ Voting Section - Centered below gauge + stats */
    .rdgh-voting-section {
        padding-top: 32px;
        border-top: 1px solid var(--border-primary);
        max-width: 640px;
        margin: 0 auto;
    }

    .rdgh-voting-title {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-muted);
        margin-bottom: 12px;
        text-align: center;
        letter-spacing: 0.01em;
    }

    .rdgh-voting-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 0;
    }

    .rdgh-vote-btn {
        padding: 14px 20px;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        /* PERF: Specific transitions for GPU acceleration */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .rdgh-vote-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .rdgh-vote-btn:hover::before {
        opacity: 1;
    }

    .rdgh-vote-btn.bearish {
        background: linear-gradient(135deg, var(--danger) 0%, var(--danger-muted) 100%);
        color: var(--text-on-accent);
    }

    .rdgh-vote-btn.bearish:hover {
        background: linear-gradient(135deg, var(--danger-muted) 0%, var(--market-bearish) 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px var(--danger-glow);
    }

    .rdgh-vote-btn.bearish:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px var(--danger-glow);
    }

    .rdgh-vote-btn.bullish {
        background: var(--btn-success-bg);
        color: var(--text-on-accent);
    }

    .rdgh-vote-btn.bullish:hover {
        background: var(--btn-success-bg);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    }

    .rdgh-vote-btn.bullish:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    /* Ripple effect */
    .rdgh-vote-btn .ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        transform: scale(0);
        animation: ripple-animation 0.6s ease-out;
        pointer-events: none;
    }

    @keyframes ripple-animation {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }

    .vote-icon {
        width: 18px;
        height: 18px;
    }

    .vote-label {
        font-size: 14px;
    }

    /* Vote Results */
    .rdgh-voting-results {
        margin-top: 16px;
    }

    .vote-result-bar {
        display: flex;
        height: 48px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 12px;
        background: var(--bg-tertiary);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    .vote-result-bar::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 12px;
        border: 1px solid var(--border-primary);
        pointer-events: none;
    }

    .vote-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
        transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        min-width: 60px;
        position: relative;
        overflow: hidden;
    }

    .vote-bar::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.2) 50%,
                transparent 100%);
        transform: translateX(-100%);
        animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }

        50%,
        100% {
            transform: translateX(100%);
        }
    }

    .vote-bar.bearish {
        background: linear-gradient(135deg, var(--danger) 0%, var(--danger-muted) 100%);
        color: var(--text-on-accent);
    }

    .vote-bar.bullish {
        background: var(--btn-success-bg);
        color: var(--text-on-accent);
    }

    .vote-percentage {
        font-size: 14px;
        font-weight: 600;
    }

    .vote-total {
        text-align: center;
        color: var(--text-dimmed);
        font-size: 12px;
        font-weight: 500;
    }

    .rdgh-card-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-primary);
    }

    .historical-stats {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-top: 4px;
    }

    .hist-stat-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: var(--bg-card-light);
        border-radius: 8px;
        border: 1px solid var(--border-secondary);
    }

    .hist-label {
        font-size: 13px;
        color: var(--text-muted);
        font-weight: 500;
    }

    .hist-value {
        font-size: 14px;
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 6px;
        color: var(--text-primary);
    }

    .hist-value.fear {
        background: rgba(239, 68, 68, 0.15);
        color: var(--danger);
    }

    .hist-value.neutral {
        background: rgba(234, 179, 8, 0.15);
        color: var(--warning);
    }

    .hist-value.greed {
        background: rgba(132, 204, 22, 0.15);
        color: var(--market-bullish);
    }

    /* CMC-Style Clean Gauge */
    .mini-gauge-container {
        position: relative;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        padding: 24px 0;
    }

    .mini-gauge-arc {
        position: relative;
        width: 160px;
        height: 80px;
        margin: 0 auto 20px auto;
    }

    .mini-gauge-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 160px;
        height: 80px;
        background: linear-gradient(90deg,
                #ea3943 0%,
                #f05d56 12%,
                #f6856a 22%,
                #f0b90b 38%,
                #c8d450 52%,
                #84cc16 62%,
                #4ec96a 76%,
                #16c784 88%,
                #0ecb81 100%);
        border-radius: 80px 80px 0 0;
        overflow: hidden;
    }

    .mini-gauge-bg::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 0;
        background: var(--bg-primary);
        border-radius: 72px 72px 0 0;
    }

    .mini-needle {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 0;
        transform-origin: 50% 100%;
        transform: translateX(-50%) rotate(-90deg);
        transition: transform 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        z-index: 10;
    }

    .mini-needle::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: -1px;
        width: 2px;
        height: 70px;
        background: var(--titanium-silver);
        box-shadow: 0 0 10px rgba(196, 204, 214, 1);
    }

    .mini-needle::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: -6px;
        width: 12px;
        height: 12px;
        background: var(--titanium-silver);
        border-radius: 50%;
        box-shadow: 0 0 12px rgba(196, 204, 214, 1);
    }

    .mini-score-card {
        text-align: center;
    }

    .mini-score-value {
        font-size: 52px;
        font-weight: 800;
        line-height: 1;
        margin-bottom: 8px;
        color: var(--text-primary);
        letter-spacing: -0.02em;
    }

    .mini-score-label {
        font-size: 18px;
        font-weight: 600;
        text-transform: capitalize;
        letter-spacing: 0.01em;
    }

    .chart-legend {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--border-primary);
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: var(--text-secondary);
    }

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

    .legend-label {
        font-weight: 500;
    }

    .chart-canvas-wrapper {
        min-height: 400px;
        display: flex;
        align-items: center;
    }

    /* ✅ Duplicate media query removed - already defined above */

    @media (max-width: 720px) {
        .panel {
            padding: 24px 16px;
            border-radius: 20px;
        }

        .wrapper {
            padding-left: 16px;
            padding-right: 16px;
        }

        .header h1 {
            font-size: 24px;
        }

        .header span {
            font-size: 12px;
        }

        .gauge-section {
            gap: 24px;
            grid-template-columns: 1fr;
        }

        .gauge-container {
            width: 100%;
            max-width: 320px;
        }

        .score-value {
            font-size: 48px;
        }

        .score-label {
            font-size: 18px;
        }

        .score-message {
            font-size: 13px;
        }

        .insight-chip {
            width: 100%;
            padding: 10px 14px;
            font-size: 12px;
        }

        .summary-card {
            padding: 14px;
        }

        .summary-card .label {
            font-size: 11px;
        }

        .summary-card .value {
            font-size: 18px;
        }

        .summary-card .muted {
            font-size: 11px;
        }

        .metric-card {
            padding: 16px;
        }

        .metric-title {
            font-size: 14px;
        }

        .news-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
        }

        .news-filters {
            width: 100%;
        }

        .filter-btn,
        .sector-filter-btn {
            flex: 1;
            text-align: center;
            font-size: 11px;
            padding: 7px 10px;
        }

        .news-section {
            margin-top: 32px;
            padding-top: 24px;
        }

        .news-title {
            font-size: 20px;
        }

        .loading::before {
            width: 32px;
            height: 32px;
        }

        .loading::after {
            width: 24px;
            height: 24px;
            left: 16px;
        }
    }

    /* Page loader styles moved to system.css */

    /* ✅ Chart Period Buttons */
    .chart-period-btn {
        padding: 8px 16px;
        border-radius: 8px;
        background: var(--bg-card-light);
        border: 1px solid var(--border-titanium);
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    }

    .chart-period-btn:hover {
        background: var(--bg-overlay);
        border-color: var(--border-accent);
    }

    .chart-period-btn.active {
        background: linear-gradient(135deg, var(--titanium-silver), var(--titanium-silver));
        border-color: var(--titanium-silver);
        color: var(--btn-titanium-text);
    }

    /* ✅ Historical Chart Card */
    .historical-chart-card {
        position: relative;
    }

    .historical-chart-card #historicalChart {
        border-radius: 8px;
        overflow: hidden;
    }

    /* ✅ Market Breadth Mobile */
    @media (max-width: 768px) {
        .market-breadth-card {
            padding: 16px !important;
        }

        .breadth-bar-container {
            height: 40px !important;
        }

        .chart-period-btn {
            padding: 6px 12px;
            font-size: 12px;
        }

        #historicalChart {
            height: 250px !important;
        }
    }