.heatmap-btn {
            padding: 4px 12px;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: #94a3b8;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.2s;
            min-width: 60px;
        }

        @media (max-width: 768px) {
            .heatmap-btn {
                padding: 3px 6px !important;
                font-size: 0.75rem !important;
                min-width: 40px !important;
            }
        }

/* Unified Glass Toolbar Design v2 - Professional Badge Select */
                                        .equity-header-wrapper {
                                            display: flex;
                                            justify-content: space-between;
                                            align-items: center;
                                            gap: 12px;
                                            margin-bottom: 10px;
                                            padding: 4px 0;
                                        }

                                        /* Removed custom h3 style to sync with standard card header */

                                        .equity-controls {
                                            display: flex;
                                            align-items: center;
                                            gap: 8px;
                                        }

                                        /* === CUSTOM SELECT BADGE === */
                                        .custom-select-wrapper {
                                            position: relative;
                                            display: inline-block;
                                            height: 38px;
                                        }

                                        /* The visible distinctive design */
                                        .custom-select-trigger {
                                            position: absolute;
                                            top: 0;
                                            left: 0;
                                            right: 0;
                                            bottom: 0;
                                            display: flex;
                                            align-items: center;
                                            gap: 8px;
                                            padding: 0 12px 0 36px;
                                            /* Space for calendar icon */
                                            background: rgba(15, 23, 42, 0.6);
                                            border: 1px solid rgba(255, 255, 255, 0.12);
                                            border-radius: 8px;
                                            color: #f59e0b;
                                            /* Gold accent color for Year */
                                            font-weight: 700;
                                            font-size: 0.9rem;
                                            pointer-events: none;
                                            /* Let clicks pass through to select */
                                            transition: all 0.2s ease;
                                            white-space: nowrap;
                                        }

                                        .custom-select-wrapper:hover .custom-select-trigger {
                                            border-color: rgba(255, 255, 255, 0.25);
                                            background: rgba(30, 41, 59, 0.8);
                                        }

                                        /* Icons positioning */
                                        .select-icon-left {
                                            position: absolute;
                                            left: 10px;
                                            top: 50%;
                                            transform: translateY(-50%);
                                            color: #94a3b8;
                                            pointer-events: none;
                                        }

                                        .select-icon-right {
                                            margin-left: 4px;
                                            color: #64748b;
                                        }

                                        /* The actual functionality (Hidden but clickable) */
                                        .glass-select-overlay {
                                            width: 100%;
                                            height: 100%;
                                            opacity: 0;
                                            position: relative;
                                            z-index: 2;
                                            cursor: pointer;
                                            -webkit-appearance: none;
                                        }

                                        /* === END CUSTOM SELECT === */

                                        .glass-input-base {
                                            height: 38px;
                                            box-sizing: border-box;
                                            background: rgba(15, 23, 42, 0.6);
                                            border: 1px solid rgba(255, 255, 255, 0.12);
                                            border-radius: 8px;
                                            color: #cbd5e1;
                                            font-family: inherit;
                                            font-size: 0.875rem;
                                            font-weight: 500;
                                            transition: all 0.2s ease;
                                        }

                                        .glass-input-base:hover {
                                            border-color: rgba(255, 255, 255, 0.25);
                                            background: rgba(30, 41, 59, 0.8);
                                        }

                                        .glass-input-base:focus {
                                            outline: none;
                                            border-color: #3b82f6;
                                            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
                                        }

                                        /* Date Specific */
                                        .glass-date {
                                            padding: 0 10px;
                                            color-scheme: dark;
                                            min-width: 130px;
                                            cursor: text;
                                        }

                                        /* Button Specific */
                                        .glass-btn {
                                            display: inline-flex;
                                            align-items: center;
                                            justify-content: center;
                                            padding: 0;
                                            width: 38px;
                                            cursor: pointer;
                                        }

                                        .glass-btn svg {
                                            width: 18px;
                                            height: 18px;
                                            transition: transform 0.2s;
                                        }

                                        .glass-btn:active svg {
                                            transform: scale(0.9);
                                        }

                                        .glass-btn-primary {
                                            background: rgba(16, 185, 129, 0.15);
                                            border-color: rgba(16, 185, 129, 0.4);
                                            color: #34d399;
                                        }

                                        .glass-btn-primary:hover {
                                            background: rgba(16, 185, 129, 0.25);
                                            border-color: #34d399;
                                            color: #6ee7b7;
                                            box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
                                        }

                                        .glass-btn-secondary {
                                            background: rgba(255, 255, 255, 0.03);
                                            color: #94a3b8;
                                        }

                                        .glass-btn-secondary:hover {
                                            background: rgba(255, 255, 255, 0.08);
                                            color: #f1f5f9;
                                        }

                                        .div-divider {
                                            width: 1px;
                                            height: 24px;
                                            background: rgba(255, 255, 255, 0.1);
                                            margin: 0 4px;
                                        }

                                        .date-group {
                                            display: flex;
                                            align-items: center;
                                            gap: 8px;
                                        }

                                        /* Mobile Responsiveness */
                                        @media (max-width: 768px) {
                                            .equity-header-wrapper {
                                                flex-direction: column;
                                                align-items: stretch;
                                                gap: 12px;
                                            }

                                            .div-divider {
                                                display: none;
                                            }

                                            /* 
                                               NEW MOBILE LAYOUT:
                                               Row 1: [Year Select (auto)]
                                               Row 2: [Start Date] [End Date]
                                            */
                                            .equity-controls {
                                                display: grid;
                                                grid-template-areas:
                                                    "year"
                                                    "dates";
                                                grid-template-columns: 1fr;
                                                gap: 8px;
                                                width: 100%;
                                            }

                                            /* Wrapper for Year Select expands to fill available space in Row 1 */
                                            .custom-select-wrapper {
                                                grid-area: year;
                                                width: 100%;
                                                min-width: 0;
                                            }

                                            .date-group {
                                                grid-area: dates;
                                                display: grid;
                                                grid-template-columns: 1fr 1fr;
                                                gap: 8px;
                                            }

                                            .glass-date {
                                                min-width: 0;
                                                width: 100%;
                                                text-align: center;
                                                font-size: 0.8rem;
                                            }
                                        }

                                        /* === Custom Date Filter Styles === */
                                        .custom-date-filter {
                                            position: relative;
                                            display: inline-block;
                                        }

                                        .filter-trigger-btn {
                                            display: flex;
                                            align-items: center;
                                            gap: 8px;
                                            padding: 0 12px;
                                            height: 32px;
                                            background: transparent;
                                            border: 1px solid transparent;
                                            border-radius: 6px;
                                            color: #94a3b8;
                                            font-size: 0.85rem;
                                            font-weight: 500;
                                            cursor: pointer;
                                            transition: all 0.2s;
                                            min-width: unset;
                                            text-align: left;
                                        }

                                        .filter-trigger-btn:hover {
                                            background: rgba(255, 255, 255, 0.05);
                                            color: #e2e8f0;
                                        }

                                        .filter-dropdown {
                                            position: absolute;
                                            top: calc(100% + 8px);
                                            right: 0;
                                            background: #1e293b;
                                            border: 1px solid rgba(255, 255, 255, 0.15);
                                            border-radius: 12px;
                                            padding: 8px 0;
                                            width: 260px;
                                            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
                                            z-index: 100;
                                            display: none;
                                            opacity: 0;
                                            transform: translateY(-10px);
                                            transition: opacity 0.2s, transform 0.2s;
                                            pointer-events: none;
                                        }

                                        .filter-dropdown.show {
                                            display: block;
                                            opacity: 1;
                                            transform: translateY(0);
                                            pointer-events: auto;
                                        }

                                        .dropdown-section {
                                            padding: 4px 0;
                                        }

                                        .section-title {
                                            font-size: 0.7rem;
                                            color: #64748b;
                                            text-transform: uppercase;
                                            letter-spacing: 0.5px;
                                            margin: 4px 16px;
                                            font-weight: 700;
                                        }

                                        .preset-item,
                                        .year-item {
                                            display: block;
                                            width: 100%;
                                            padding: 10px 16px;
                                            text-align: left;
                                            background: none;
                                            border: none;
                                            color: #cbd5e1;
                                            font-size: 0.9rem;
                                            cursor: pointer;
                                            transition: background 0.15s;
                                            font-weight: 500;
                                        }

                                        .preset-item:hover,
                                        .year-item:hover {
                                            background: rgba(255, 255, 255, 0.05);
                                            color: #fff;
                                        }

                                        .preset-item.active,
                                        .year-item.active {
                                            background: rgba(16, 185, 129, 0.1);
                                            color: #34d399;
                                            position: relative;
                                        }

                                        .preset-item.active::after,
                                        .year-item.active::after {
                                            content: '';
                                            position: absolute;
                                            right: 16px;
                                            top: 50%;
                                            transform: translateY(-50%);
                                            width: 6px;
                                            height: 6px;
                                            border-radius: 50%;
                                            background: #34d399;
                                        }

                                        .dropdown-divider {
                                            height: 1px;
                                            background: rgba(255, 255, 255, 0.08);
                                            margin: 4px 0;
                                        }

                                        .custom-range-btn {
                                            display: flex;
                                            align-items: center;
                                            gap: 10px;
                                            width: 100%;
                                            padding: 12px 16px;
                                            background: none;
                                            border: none;
                                            color: #94a3b8;
                                            font-size: 0.9rem;
                                            cursor: pointer;
                                            font-weight: 500;
                                        }

                                        .custom-range-btn:hover {
                                            background: rgba(255, 255, 255, 0.05);
                                            color: #cbd5e1;
                                        }

                                        /* Mobile Responsiveness */
                                        @media (max-width: 768px) {
                                            .filter-trigger-btn {
                                                width: 100%;
                                            }

                                            .filter-dropdown {
                                                width: 100%;
                                                position: fixed;
                                                bottom: 0;
                                                top: auto;
                                                left: 0;
                                                right: 0;
                                                border-radius: 16px 16px 0 0;
                                                border: none;
                                                border-top: 1px solid rgba(255, 255, 255, 0.1);
                                                background: #1e293b;
                                                transform: translateY(100%);
                                            }

                                            .filter-dropdown.show {
                                                transform: translateY(0);
                                            }
                                        }
/* ==========================================================================
   LIVE TRADING TERMINAL HUD & MARKET CLOCK WIDGET STYLES (v1.0.0)
   ========================================================================== */

/* Market Clock Widget - Top Header Navigation */
.market-clock-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 14px;
    margin-right: 15px;
    height: 38px;
    box-sizing: border-box;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-clock-widget:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.market-clock-widget .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* LIVE State (Emerald Color) */
.market-clock-widget.live .pulse-dot {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.market-clock-widget.live .pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #10b981;
    animation: pulseBeaconGlow 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    opacity: 0.8;
}

@keyframes pulseBeaconGlow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* CLOSED State (Soft Crimson Color) */
.market-clock-widget.closed .pulse-dot {
    background-color: #f43f5e;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

/* Text elements inside widget */
.market-clock-widget .status-text {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s;
}

.market-clock-widget.live .status-text {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.market-clock-widget.closed .status-text {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.12);
}

.market-clock-widget .time-text {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    color: #f1f5f9;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* ?? TRADING TERMINAL ACTIVE HUD EFFECT (Market is Open) */
body.market-live {
    transition: background-color 1s ease;
}

/* Glowing card frames */
body.market-live .card {
    position: relative;
    overflow: hidden;
    border-color: rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.03), 0 0 2px rgba(16, 185, 129, 0.1) !important;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Shimmer sweeping beam over the cards */
body.market-live .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(16, 185, 129, 0.04) 40%,
        rgba(16, 185, 129, 0.1) 50%,
        rgba(16, 185, 129, 0.04) 60%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: HUDCardShimmer 15s infinite ease-in-out;
    pointer-events: none;
    z-index: 5;
}

@keyframes HUDCardShimmer {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Subtle pulse of KPI values and system name */
body.market-live #sysNameDisplay,
body.market-live .kpi-value {
    animation: HUDTextPulse 4s infinite ease-in-out;
}

@keyframes HUDTextPulse {
    0%, 100% {
        text-shadow: 0 0 0px rgba(16, 185, 129, 0);
    }
    50% {
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
    }
}

/* ?? REPORTING/CLOSED STATE STYLE (Market is Closed) */
body.market-closed {
    transition: background-color 1s ease;
}

body.market-closed .card {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.45);
}

/* RESPONSIVE LAYOUT FOR MOBILE */
@media (max-width: 991px) {
    /* Hide status text on smaller displays to prevent overflow */
    .market-clock-widget .status-text {
        display: none;
    }
    .market-clock-widget {
        padding: 6px 10px;
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .market-clock-widget {
        height: 32px;
        padding: 4px 8px;
        gap: 6px;
        margin-right: 8px;
        border-radius: 6px;
    }
    
    .market-clock-widget .time-text {
        font-size: 0.8rem;
    }

    .market-clock-widget .pulse-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 576px) {
    /* Auto adjust layout elements on narrow headers */
    .top-header {
        position: relative;
    }
    
    .brand-logo span {
        display: none; /* Hide subtitle of brand */
    }
    
    .header-signal-btn {
        display: none !important; /* Hide CTA button to leave room for clock */
    }
}
