/* ==========================================================================
   CMD WIRE (WHATDOYOUGOT) - MOBILE ARCHITECTURE CSS SYSTEM
   Design System: Modern CNBC Light Glassmorphic Theme with Touch Sizing
   Feature: Lower Viewport Section Header Bar (Thumb-First Navigation)
   ========================================================================== */

:root {
    --mobile-bottom-nav-height: 64px;
    --mobile-top-nav-height: 52px;
    --touch-target-min: 44px;
    --mobile-padding: 12px;
    --color-cmd-blue: #0052cc;
    --color-cmd-blue-active: #003d99;
    --color-cmd-bg-light: #f8fafc;
    --color-cmd-border: #e2e8f0;
}

/* TOUCH LATENCY ELIMINATION & SMOOTH TOUCH SCROLLING */
body {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* SAFE AREA INSET SUPPORT FOR NOTCH / HOME INDICATOR PHONES */
@supports (padding: env(safe-area-inset-bottom)) {
    .cmd-mobile-bottom-bar {
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ==========================================================================
   LOWER VIEWPORT SECTION HEADER BAR (DISPLAYED STRICTLY < 768px)
   ========================================================================== */
.cmd-mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-bottom-nav-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-top: 2px solid #0052cc;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 6px 8px;
    box-sizing: border-box;
}

.cmd-mobile-bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    height: 100%;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cmd-mobile-bottom-bar-inner::-webkit-scrollbar {
    display: none;
}

/* FAST INSTANT TOUCH RESPONSE (ELIMINATES 300MS MOBILE ZOOM DELAY) */
html, body, a, button, .cmd-mobile-tab-pill, .cmd-mobile-bottom-bar {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* HORIZONTAL SECTION HEADER PILLS (9 ICON FIT IN 1 ROW) */
.cmd-mobile-tab-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 38px;
    min-height: 38px;
    max-width: 42px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    text-decoration: none !important;
    font-family: var(--font-outfit), 'Outfit', sans-serif;
    font-size: 16.5px;
    font-weight: 900;
    transition: transform 0.1s ease, background 0.15s ease;
    user-select: none;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cmd-mob-icon {
    font-size: 16.5px;
    font-weight: 900;
    line-height: 1;
    display: inline-block;
}

.cmd-mobile-tab-pill:active {
    transform: scale(0.95);
}

.cmd-mobile-tab-pill.active {
    background: #0052cc !important;
    color: #ffffff !important;
    border-color: #0052cc !important;
    box-shadow: 0 3px 10px rgba(0, 82, 204, 0.3) !important;
}

.cmd-mobile-tab-pill.active svg {
    stroke: #ffffff !important;
}

/* ==========================================================================
   OFF-CANVAS MOBILE DRAWER & BACKDROP
   ========================================================================== */
.cmd-mobile-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cmd-mobile-drawer-backdrop.active {
    display: block;
    opacity: 1;
}

.cmd-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cmd-mobile-drawer.active {
    transform: translateX(-320px);
}

.cmd-mobile-drawer-header {
    padding: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--color-cmd-blue);
}

.cmd-mobile-drawer-brand {
    font-family: var(--font-outfit), 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.cmd-mobile-drawer-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cmd-mobile-drawer-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.cmd-mobile-drawer-section-title {
    font-family: var(--font-outfit), sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 8px 4px 8px;
}

.cmd-mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none !important;
    font-family: var(--font-outfit), sans-serif;
    font-size: 15px;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: background 0.15s ease, color 0.15s ease;
}

.cmd-mobile-drawer-link:hover,
.cmd-mobile-drawer-link:active {
    background: #eff6ff;
    color: var(--color-cmd-blue);
    border-color: #bfdbfe;
}

/* ==========================================================================
   PERSISTENT MOBILE AUDIO PLAYER BAR (DOCKED ABOVE LOWER SECTION BAR)
   ========================================================================== */
.cmd-mobile-audio-bar {
    display: none;
    position: fixed;
    bottom: var(--mobile-bottom-nav-height);
    left: 0;
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    padding: 8px 12px;
    box-sizing: border-box;
    z-index: 9998;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
    border-top: 2px solid var(--color-cmd-blue);
    transition: transform 0.25s ease;
}

.cmd-mobile-audio-bar.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cmd-mobile-audio-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex-grow: 1;
}

.cmd-mobile-audio-icon {
    width: 32px;
    height: 32px;
    background: var(--color-cmd-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cmd-mobile-audio-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cmd-mobile-audio-title {
    font-family: var(--font-outfit), sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmd-mobile-audio-sub {
    font-size: 10px;
    color: #94a3b8;
}

.cmd-mobile-audio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cmd-mobile-audio-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================================
   MEDIA QUERIES FOR LAYOUT COMPACTION (< 768px & < 480px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Show Mobile Navigation Bar & Add Body Top/Bottom Padding for Fixed Headers */
    body {
        padding-top: 54px !important;
        padding-bottom: calc(var(--mobile-bottom-nav-height) + 20px) !important;
    }

    /* PERMANENTLY FIXED FLOATING TOP HEADER FOR MOBILE */
    .main-header,
    .main-header.sticky-header,
    .main-header.scrolled {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(16px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
        border-bottom: 2px solid #0052cc !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        margin: 0 !important;
    }

    .cmd-mobile-bottom-bar {
        display: block !important;
    }

    /* Collapse Header for Mobile Top Bar */
    .header-inner {
        position: relative !important;
        padding: 6px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 50px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hide desktop middle icon tabs on mobile view */
    .header-nav-links {
        display: none !important;
    }

    /* ROCK-SOLID ANCHORED TOP RIGHT SEARCH BUTTON ON FLOATING HEADER */
    .header-controls {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        z-index: 10002 !important;
    }

    .search-box {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        position: relative !important;
        margin: 0 !important;
    }

    .search-box input,
    .main-header.scrolled .search-box input {
        display: none !important;
    }

    /* PERMANENTLY RIGHT-JUSTIFIED BLUE SEARCH BUTTON */
    .header-ticker-btn,
    .main-header.scrolled .header-ticker-btn {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        background: #0052cc !important;
        color: #ffffff !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(0, 82, 204, 0.3) !important;
        flex-shrink: 0 !important;
        z-index: 10002 !important;
    }

    /* MOBILE SEARCH POPUP MODAL STYLES */
    .mobile-search-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        z-index: 10005 !important;
        display: none;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 40px 16px 20px 16px !important;
        box-sizing: border-box !important;
    }

    .mobile-search-overlay.active {
        display: flex !important;
    }

    .mobile-search-card {
        width: 100% !important;
        max-width: 440px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        padding: 18px !important;
        box-sizing: border-box !important;
        border-top: 5px solid #0052cc !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    }

    .ms-modal-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .ms-modal-close {
        background: #f1f5f9 !important;
        border: none !important;
        border-radius: 50% !important;
        width: 28px !important;
        height: 28px !important;
        color: #64748b !important;
        font-weight: 900 !important;
        font-size: 14px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .ms-quick-pill {
        font-family: var(--font-outfit), 'Inter', sans-serif !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        color: #0052cc !important;
        background-color: #eff6ff !important;
        border: 1px solid #bfdbfe !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        cursor: pointer !important;
    }

    /* Brand Logo Resizing */
    .speech-bubble-img {
        height: 38px !important;
    }

    .logo-cmd {
        font-size: 22px !important;
    }

    .logo-wire {
        font-size: 14px !important;
        padding: 2px 6px !important;
    }

    /* Single-Column Stack Layouts for Grids */
    .three-col-layout,
    .hero-3col-layout,
    .hero-2row-layout,
    .hero-flex-layout,
    .grid-3col,
    .grid-2col,
    .main-grid,
    .content-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Table Horizontal Overflow Containers */
    table, .data-table, .market-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Financial Cards Touch Adaptations */
    .card, .market-card, .movers-card, .sentiment-card, .summary-card {
        padding: 12px !important;
        border-radius: 8px !important;
    }

    /* TICKER POPUP MODAL PERFECT CENTERED OVERLAY FOR MOBILE */
    #ticker-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        z-index: 10005 !important;
    }

    .ticker-modal-card {
        width: 94% !important;
        max-width: 440px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        padding: 14px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    }

    .modal-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }

    .modal-title-group {
        margin-right: 0 !important;
    }

    .modal-ticker-symbol {
        font-size: 18px !important;
    }

    .modal-company-name {
        font-size: 12px !important;
        display: block !important;
        width: 100% !important;
    }

    .modal-fullscreen-btn {
        display: none !important;
    }

    .modal-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 8px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .modal-stat-box {
        padding: 4px 6px !important;
    }

    .ms-lbl {
        font-size: 10px !important;
    }

    .ms-val {
        font-size: 13px !important;
    }

    #modal-price {
        font-size: 15px !important;
    }

    .modal-change-badge {
        font-size: 13px !important;
    }

    .modal-chart-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .modal-chart-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 210px !important;
        min-height: 190px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 6px !important;
    }

    #modal-sparkline-canvas {
        width: 100% !important;
        max-width: 100% !important;
        height: 150px !important;
        box-sizing: border-box !important;
    }

    .tradingview-widget-container,
    .tradingview-widget-container iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 210px !important;
        border-radius: 6px !important;
    }

    /* ==========================================================================
       US & GLOBAL MACRO COMMAND CENTER (MACRO.HTML) MOBILE OPTIMIZATIONS
       Zero-Wiggle, 100% Uniform Column Widths, No Horizontal Bleeding
       ========================================================================== */

    body[data-page="macro"],
    body[data-page="macro"] .app-container,
    .macro-hero-panel,
    .macro-module-section,
    .macro-gov-card,
    .macro-gov-stat-box {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .macro-hero-panel {
        padding: 12px !important;
    }

    .macro-hero-panel > div {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .macro-hero-panel > div > div {
        width: 100% !important;
        min-width: 100% !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .macro-gov-header-title {
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .macro-gov-header-subtitle {
        font-size: 12px !important;
    }

    .macro-source-badge,
    .schedule-badge-weekly,
    .schedule-badge-monthly {
        white-space: normal !important;
        word-break: break-word !important;
        display: inline-block !important;
    }

    .macro-module-filter-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 6px 4px !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .macro-filter-btn {
        flex: 0 0 auto !important;
        font-size: 11.5px !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
    }

    .macro-gov-overview-grid,
    .macro-gov-grid-2col,
    .spreads-2col-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .macro-gov-stat-box,
    .macro-gov-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
    }

    .yield-matrix-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .yield-cell {
        padding: 6px 4px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .yield-cell .tenor {
        font-size: 10px !important;
    }

    .yield-cell .rate {
        font-size: 14px !important;
    }

    .macro-data-table {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
        white-space: normal !important;
        border-collapse: collapse !important;
        box-sizing: border-box !important;
    }

    .macro-data-table tr {
        display: table-row !important;
        width: 100% !important;
    }

    .macro-data-table td {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        padding: 6px 4px !important;
        vertical-align: top !important;
        font-size: 12.5px !important;
    }

    .macro-data-table td.lbl {
        width: 65% !important;
        font-weight: 700 !important;
    }

    .macro-data-table td.val {
        width: 35% !important;
        text-align: right !important;
        font-weight: 900 !important;
        font-size: 13.5px !important;
    }

    .macro-data-table td.sub {
        width: 100% !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
        padding-bottom: 8px !important;
        color: #64748b !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .macro-stat-val {
        font-size: 18px !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
    }

    /* ==========================================================================
       THE FINANCIAL WIRE & BREAKING NEWS (NEWS.HTML) MOBILE OPTIMIZATIONS
       Zero-Wiggle, 100% Mobile Card Stream, Touch Filters & Compact Rows
       ========================================================================== */

    body[data-page="news"],
    body[data-page="news"] .app-container,
    .drudge-container,
    .wire-control-panel,
    .card-wire-stream {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .drudge-filter-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px 0 !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .drudge-btn {
        flex: 0 0 auto !important;
        font-size: 11.5px !important;
        padding: 5px 10px !important;
        white-space: nowrap !important;
    }

    .wire-control-panel {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }

    .wire-control-panel > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .wire-control-panel select {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 12px !important;
        height: 36px !important;
        box-sizing: border-box !important;
    }

    .pinned-stories-grid,
    .us-pinned-stories-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        box-sizing: border-box !important;
    }

    .wire-spotlight-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 12px !important;
    }

    .wire-spotlight-title {
        font-size: 14.5px !important;
        line-height: 1.35 !important;
        margin: 4px 0 6px 0 !important;
    }

    .wire-spotlight-meta {
        font-size: 10.5px !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    /* INDIVIDUAL MOBILE STANDALONE CARDS FOR NEWSTREAM ITEMS */
    .wire-card-rows {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 4px 0 !important;
        box-sizing: border-box !important;
    }

    .wire-row-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 4px solid #0052cc !important;
        border-radius: 8px !important;
        padding: 12px 14px !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
        gap: 8px !important;
    }

    .wire-row-item.impact-tier-high {
        border-left-color: #d90429 !important;
        background: #fffafa !important;
    }

    .wire-row-item.impact-tier-med {
        border-left-color: #d97706 !important;
    }

    .wire-row-headline {
        display: block !important;
        width: 100% !important;
        font-family: var(--font-sans), 'Inter', sans-serif !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        color: #0f172a !important;
        text-decoration: none !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        margin: 2px 0 !important;
    }

    .wire-item-top-badges {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .wire-item-top-badges .drudge-pub {
        margin-left: auto !important;
        font-size: 11.5px !important;
        color: #475569 !important;
        font-weight: 700 !important;
    }

    .wire-item-bottom-meta {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 2px !important;
        margin-left: 0 !important;
    }

    .wire-thumb {
        width: 100% !important;
        height: auto !important;
        max-height: 160px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    /* HIDE FLOATING FEEDBACK BUTTON ON MOBILE VIEW TO KEEP VIEWPORT CLEAN & UNCLUTTERED */
    #site-feedback-floating-btn {
        display: none !important;
    }

    .modal-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }

    .modal-title-group {
        margin-right: 0 !important;
    }

    .modal-ticker-symbol {
        font-size: 18px !important;
    }

    .modal-company-name {
        font-size: 12px !important;
        display: block !important;
        width: 100% !important;
    }

    .modal-fullscreen-btn {
        display: none !important;
    }

    .modal-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 8px !important;
        margin-bottom: 12px !important;
    }

    .modal-stat-box {
        padding: 4px 6px !important;
    }

    .ms-lbl {
        font-size: 10px !important;
    }

    .ms-val {
        font-size: 13px !important;
    }

    #modal-price {
        font-size: 15px !important;
    }

    .modal-change-badge {
        font-size: 13px !important;
    }

    .modal-chart-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .modal-chart-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 230px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 6px !important;
    }

    #modal-sparkline-canvas {
        width: 100% !important;
        max-width: 100% !important;
        height: 150px !important;
        box-sizing: border-box !important;
    }

    .tradingview-widget-container,
    .tradingview-widget-container iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 230px !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 480px) {
    .wire-spotlight-title {
        font-size: 15.5px !important;
    }

    .section-title-bar h2 {
        font-size: 16px !important;
    }
}

/* DESKTOP DEFAULTS FOR MOVERS ROW PAIRS & CARDS */
.movers-row-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
    padding: 2px 0;
    box-sizing: border-box;
}

.movers-card-col {
    width: 100%;
    box-sizing: border-box;
}

.movers-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 6px;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
    border-radius: 4px;
}

.movers-row-card-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.movers-row-card-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.movers-row-price {
    font-family: 'Inter', var(--font-sans, sans-serif);
    font-weight: 800;
    font-size: 12px;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.movers-vol-cap-span {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* Strict Horizontal Overflow Lock (Zero Wiggle across entire page) */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .app-container,
    .section-container,
    #trending-tickers-section,
    #trending-tickers-container,
    .movers-4col-grid,
    .movers-group-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Movers Page Section Header & Badges */
    .movers-header-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .movers-title-left {
        gap: 6px !important;
        width: 100% !important;
    }

    .movers-title-heading {
        font-size: 14px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .movers-badge-nyse,
    .movers-badge-sync {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    /* Schedule Transparency Banner */
    .movers-schedule-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        margin: 10px 0 14px 0 !important;
        font-size: 12px !important;
    }

    .movers-schedule-text {
        font-size: 12px !important;
        line-height: 1.4 !important;
        gap: 4px !important;
    }

    .movers-schedule-text strong {
        font-size: 12px !important;
    }

    .movers-schedule-pill {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 10.5px !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: break-word !important;
        padding: 5px 8px !important;
    }

    /* Timeframe Horizon Radio Bar Mobile Adjustments */
    .movers-timeframe-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        margin: 10px 0 14px 0 !important;
    }

    .movers-radio-group {
        gap: 12px !important;
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    /* Movers 4-Column Grid -> Stack Groups Vertically on Mobile */
    .movers-4col-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .movers-group-wrapper {
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 10px !important;
        padding: 10px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .movers-group-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        border-bottom: 2px solid #f1f5f9 !important;
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }

    .group-header-title span {
        font-size: 15px !important;
    }

    /* Convert row pairs from 2 columns to 1 column on Mobile */
    .movers-row-pair {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 100% !important;
        border-bottom: none !important;
        padding: 0 !important;
    }

    .movers-card-col {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 100% Rigid Uniform Mover Cards on Mobile */
    .movers-row-card {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 6px 10px !important;
        margin: 2px 0 !important;
        min-height: 40px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        background-color: #ffffff !important;
    }

    .movers-row-card:active {
        background-color: #eff6ff !important;
        transform: scale(0.98) !important;
    }

    .movers-row-card-left {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .movers-row-card-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Hide market cap/volume span on narrow mobile to guarantee 100% alignment & zero overflow */
    .movers-vol-cap-span {
        display: none !important;
    }

    .movers-rank-badge {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .movers-ticker-link {
        font-size: 14px !important;
        font-weight: 900 !important;
        flex-shrink: 0 !important;
    }

    .movers-row-price {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        flex-shrink: 0 !important;
    }

    .movers-dollar-change {
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    .movers-pct-badge {
        font-size: 11.5px !important;
        font-weight: 800 !important;
        padding: 3px 7px !important;
        border-radius: 4px !important;
    }
}

/* ==========================================================================
   ABOUT PAGE MOBILE RESPONSIVE STYLES (< 768px & < 480px)
   ========================================================================== */
.about-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    box-sizing: border-box;
    width: 100%;
}

.about-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    width: 100%;
}

.about-hero-title {
    font-family: var(--font-outfit), sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.about-hero-badge {
    font-family: var(--font-outfit), sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #0052cc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}

.about-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.about-grid-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.about-btc-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.about-btc-left-col {
    flex: 1;
    min-width: 260px;
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
}

.about-btc-address-box {
    font-family: var(--font-mono, monospace);
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    border-radius: 8px;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 640px;
    width: 100%;
    box-sizing: border-box;
}

.about-btc-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    flex-shrink: 0;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .about-hero-card {
        padding: 22px 18px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .about-hero-title {
        font-size: 21px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .about-hero-badge {
        font-size: 10px !important;
        padding: 3px 7px !important;
    }

    .about-card {
        padding: 20px 16px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .about-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
    }

    .about-grid-modules {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .about-btc-flex-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .about-btc-left-col {
        min-width: 0 !important;
        width: 100% !important;
    }

    .about-btc-address-box {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        font-size: 11.5px !important;
        padding: 10px 12px !important;
    }

    .about-btc-address-box button {
        width: 100% !important;
        padding: 8px 12px !important;
    }

    .about-btc-qr-box {
        width: 100% !important;
        padding: 16px 12px !important;
    }
}

/* ==========================================================================
   EARNINGS & MACROECONOMIC CALENDAR (CALENDAR.HTML) MOBILE OPTIMIZATIONS
   Zero-Wiggle, 100% Responsive Mobile Card Layout for Table & Grid Views
   ========================================================================== */

@media (max-width: 768px) {
    body[data-page="calendar"],
    body[data-page="calendar"] .calendar-page-container {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 12px 10px 40px 10px !important;
        margin: 0 auto !important;
    }

    .calendar-hero-header {
        margin-bottom: 14px !important;
        padding: 0 2px !important;
    }

    .calendar-page-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .calendar-page-subtitle {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    .calendar-news-headline-bar {
        padding: 12px 14px !important;
        margin-bottom: 14px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .headline-bar-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .headline-brief-item {
        font-size: 13px !important;
        line-height: 1.45 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .todays-widget-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    #todays-widget-content {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #todays-widget-content > div {
        min-width: 230px !important;
        max-width: 280px !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Filter bar horizontal touch scrolling on mobile */
    .calendar-controls-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 10px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
    }

    .calendar-filter-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 2px 0 6px 0 !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .calendar-filter-pill {
        flex: 0 0 auto !important;
        font-size: 11.5px !important;
        padding: 6px 12px !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
    }

    .calendar-controls-right {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .calendar-view-toggle-group {
        width: 100% !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        display: flex !important;
    }

    .calendar-view-btn {
        flex: 1 !important;
        text-align: center !important;
        font-size: 11.5px !important;
        padding: 6px 8px !important;
    }

    .calendar-search-box {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .calendar-search-input {
        width: 100% !important;
        font-size: 13px !important;
        padding: 8px 12px 8px 34px !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
    }

    /* Transform Table to Clean Responsive Mobile Cards on Mobile View */
    .calendar-table-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .calendar-data-table {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
        border: none !important;
        background: transparent !important;
    }

    .calendar-data-table thead {
        display: none !important;
    }

    .calendar-data-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .calendar-data-table tr {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 5px solid #0052cc !important;
        border-radius: 10px !important;
        padding: 14px 16px !important;
        gap: 8px !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    }

    .calendar-data-table td {
        display: block !important;
        width: 100% !important;
        padding: 2px 0 !important;
        box-sizing: border-box !important;
        border: none !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Row Header: Date & Time */
    .calendar-data-table td:nth-child(1) {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding-bottom: 8px !important;
        margin-bottom: 4px !important;
    }

    /* Event Title / Ticker */
    .calendar-data-table td:nth-child(2) {
        font-size: 14.5px !important;
    }

    /* Category & Impact Badges */
    .calendar-data-table td:nth-child(3),
    .calendar-data-table td:nth-child(4) {
        display: inline-block !important;
        width: auto !important;
        margin-right: 6px !important;
    }

    /* Forecast / Details Box */
    .calendar-data-table td:nth-child(5) {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        padding: 8px 10px !important;
        margin: 4px 0 !important;
    }

    /* AI Evaluation Block */
    .calendar-data-table td:nth-child(6) {
        font-size: 13px !important;
        color: #334155 !important;
        line-height: 1.5 !important;
        background: #eff6ff !important;
        border: 1px solid #bfdbfe !important;
        border-radius: 6px !important;
        padding: 10px 12px !important;
        margin-top: 4px !important;
    }

    /* Cards Grid View Optimizations for Mobile */
    .calendar-events-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .calendar-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 16px !important;
        border-radius: 10px !important;
        margin: 0 !important;
    }

    /* ==========================================================================
       HOMEPAGE 24/7 PERPETUAL MARKETS & FUTURES MOBILE OPTIMIZATIONS
       Single Column Stack (1 Card Per Row) for Full Description Visibility
       ========================================================================== */
    .grouped-markets-6col,
    #hyperliquid-cards-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .grouped-markets-6col .market-group-column {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .perp-black-card {
        padding: 8px 12px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .perp-black-row {
        padding: 6px 8px !important;
    }

    .perp-black-row .ml-name {
        font-size: 13.5px !important;
        font-weight: 800 !important;
    }

    .perp-black-row .ml-price {
        font-size: 13.5px !important;
        font-weight: 800 !important;
    }

    .perp-black-row .ml-change {
        font-size: 13px !important;
        font-weight: 800 !important;
    }
}




