/* styles.css */

/* === PIXEL FONTS FOR TFI === */
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap');

/* Arcade Pixel font (fallback to system pixel fonts) */
@font-face {
    font-family: 'Arcade Pixel';
    src: local('Press Start 2P'), local('VT323'), local('Courier New');
    font-weight: bold;
}

/* === TFI DAMAGE NUMBER ANIMATION === */
@keyframes damageFloat {
    0% {
        transform: translateY(0) translateX(-50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-30px) translateX(-50%) scale(1.3);
        opacity: 0;
    }
}

@keyframes damageShake {

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

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

.tfi-damage-number {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Pixelify Sans', 'Arcade Pixel', 'Press Start 2P', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF0000;
    text-shadow:
        2px 2px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        0 0 10px rgba(255, 0, 0, 0.8);
    animation: damageFloat 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 100;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
}

.tfi-container.shake {
    animation: damageShake 0.15s ease-in-out;
}

:root {
    --bg-color: #000000;
    --text-color: #0051CA;
    /* Pepsi Blue */
    /* Neon Cyan */
    --primary-color: #0051CA;
    --alert-red: #FF3333;
    --dim-cyan: rgba(0, 81, 202, 0.2);
    --border-color: #0051CA;
    --widget-bg: rgba(0, 10, 25, 0.9);
    /* Slight blue tint */
    --font-mono: 'VT323', monospace;
    /* Pixel Font everywhere */
    --font-pixel: 'VT323', monospace;

    /* Feed Colors (Preserved) */
    --bullish-color: #00FF00;
    --bearish-color: #FF0099;
    --warning-color: #FFCC00;
    /* Yellow */
    --electric-cyan: #00FFFF;
    --accent-cyan: #00FFFF;
    --vex-positive-color: #C89CFF;
    --vex-negative-color: #FFB86B;
}

/* Auto-Scroll Button */
.auto-scroll-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    /* Glass effect */
    backdrop-filter: blur(4px);
    cursor: default;
}

.auto-scroll-btn.style-success {
    border-color: var(--bullish-color);
    color: var(--bullish-color);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

.auto-scroll-btn.style-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.2);
    background: rgba(255, 204, 0, 0.1);
}

.scroll-icon {
    display: flex;
    gap: 2px;
    height: 10px;
    align-items: center;
}

.scroll-icon .bar {
    width: 2px;
    height: 100%;
    border-radius: 2px;
    background-color: currentColor;
    /* Inherits text color */
    transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-shadow: 0 0 2px var(--dim-cyan);
    /* Slight bloom */
}

/* CRT Scanline Overlay */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: flex-end;
    /* Push right content to end */
    align-items: center;
    padding: 15px 20px;
    background: #000000;
    border-bottom: 2px solid var(--border-color);
    /* Thick border */
    position: relative;
    /* For absolute centering */
    top: 0;
    z-index: 100;
    box-shadow: 0 0 10px var(--dim-cyan);
    min-height: 140px;
    /* Increased to prevent overlap */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clock {
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* === PIGMENT OS BRANDING === */
.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
}

.brand-icon {
    display: none;
    /* Remove icon */
}

.brand-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
    /* Increased gap */
}

.brand-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subtitle-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    /* Increased from 10px */
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 6px;
}

.polymarket-badge {
    display: flex;
    align-items: center;
    /* Background removed, handled by Image */
    padding: 0;
}

.poly-logo-img {
    height: 28px;
    /* Increased from 20px for visibility */
    width: auto;
    display: block;
    opacity: 1;
    /* Full opacity for visibility */
    transition: opacity 0.3s ease;
}

.poly-logo-img:hover {
    opacity: 1;
}

/* Removed .poly-text as it is part of the logo image usually, or we just use the icon */

.pigment-word {
    font-family: var(--font-pixel);
    font-weight: 700;
    font-size: 64px;
    letter-spacing: 2px;

    /* Arcade 3D - Bright Yellow Face */
    color: #FFFF00;
    background: none;
    -webkit-text-fill-color: #FFFF00;

    /* Deep Layered 3D Extrusion (Pink then Blue) */
    text-shadow:
        1px 1px 0 #FF00FF, 2px 2px 0 #FF00FF, 3px 3px 0 #FF00FF, 4px 4px 0 #FF00FF, 5px 5px 0 #FF00FF, 6px 6px 0 #FF00FF,
        7px 7px 0 #0000FF, 8px 8px 0 #0000FF, 9px 9px 0 #0000FF, 10px 10px 0 #0000FF, 11px 11px 0 #0000FF, 12px 12px 0 #0000FF,
        13px 13px 20px rgba(0, 0, 0, 0.5);

    /* Subtle White Highlight */
    filter: drop-shadow(-1px -1px 0px #FFFFFF);

    animation:
        slam-enter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        retroShine 4s linear infinite 0.6s;
}

/* Retro Shine Animation (Light Sweep) */
@keyframes retroShine {

    0%,
    100% {
        filter: drop-shadow(-1px -1px 0px #FFFFFF) brightness(1);
    }

    50% {
        filter: drop-shadow(-1px -1px 0px #FFFFFF) brightness(1.4);
    }
}

/* Thermal Infrared Flow */
@keyframes thermalFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 300% 50%;
    }
}

/* Thermal Infrared Flow */
@keyframes thermalFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 300% 50%;
    }
}

/* "Round 1" Slam Effect */
@keyframes slam-enter {
    0% {
        opacity: 0;
        transform: scale(3);
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }

    70% {
        opacity: 1;
        transform: scale(0.9);
        filter: drop-shadow(0 0 50px white) drop-shadow(0 0 20px #FF00FF);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(-1px -1px 0px #FFFFFF);
    }
}

/* Thermal Infrared Flow */
@keyframes thermalFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 300% 50%;
    }
}

/* Idle Float (Fighter's Stance) */
@keyframes idle-float {

    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(4px 4px 0px #FF3333);
    }

    50% {
        transform: translateY(-5px);
        filter: drop-shadow(4px 8px 0px #FF3333);
    }
}

.os-word {
    font-family: var(--font-pixel);
    font-weight: 700;
    font-size: 64px;
    color: #FFFFFF;
    letter-spacing: 2px;

    /* Deep Layered 3D Extrusion (Pink then Blue) */
    text-shadow:
        1px 1px 0 #FF00FF, 2px 2px 0 #FF00FF, 3px 3px 0 #FF00FF, 4px 4px 0 #FF00FF, 5px 5px 0 #FF00FF, 6px 6px 0 #FF00FF,
        7px 7px 0 #0000FF, 8px 8px 0 #0000FF, 9px 9px 0 #0000FF, 10px 10px 0 #0000FF, 11px 11px 0 #0000FF, 12px 12px 0 #0000FF,
        13px 13px 20px rgba(0, 0, 0, 0.5);

    /* Subtle White Highlight */
    filter: drop-shadow(-1px -1px 0px #FFFFFF);

    animation:
        slam-enter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        retroShine 4s linear infinite 0.6s;
}

@keyframes flowGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

h1 {
    font-family: var(--font-pixel);
    font-size: 28px;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 0 8px var(--primary-color);
}

/* === GLOBAL MARKET SESSIONS === */
#market-sessions {
    display: flex;
    gap: 15px;
    margin-right: 20px;
    align-items: center;
}

.session-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    width: 40px;
    opacity: 0.7;
    /* Increased visibility */
    /* Default to closed/dimmed */
    transition: all 0.5s ease;
    z-index: 1000;
    /* Ensure on top */
}

.session-item.open {
    opacity: 1;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.session-flag {
    font-size: 12px;
}

.session-name {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.session-item.open .session-name {
    color: #FFFFFF;
    text-shadow: 0 0 8px var(--primary-color);
    font-weight: bold;
}

.session-bar-container {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.session-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    box-shadow: 0 0 4px var(--primary-color);
    transition: width 1s linear;
}

/* Open State - Green */
.session-item.open .session-bar {
    background: #00FF00;
    box-shadow: 0 0 4px #00FF00;
}

/* Premarket State - Orange */
.session-item.premarket .session-bar {
    background: #FFCC00;
    box-shadow: 0 0 4px #FFCC00;
}

/* Premarket Text Style */
.session-item.premarket .session-name {
    color: #FFCC00;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

/* Custom Dropdown */
/* Header Left Group - Title + Dropdown */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-dropdown {
    position: relative;
    font-family: var(--font-pixel);
    margin-left: auto;
    /* Push to right if needed, or just margin */
    margin-right: 10px;
    z-index: 1000;
}

.dropdown-selected {
    color: var(--electric-cyan);
    font-size: 14px;
    /* Smaller font */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    /* Compact padding */
    border: 1px solid rgba(0, 102, 255, 0.3);
    /* Subtle border */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-selected:hover {
    text-shadow: 0 0 5px var(--electric-cyan);
    border-color: var(--electric-cyan);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    right: 0;
    /* Align right edge */
    min-width: 120px;
    background: rgba(8, 8, 8, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: none;
    max-height: 300px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.custom-dropdown.open .dropdown-options {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-option {
    padding: 8px 15px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
}

.dropdown-option:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--electric-cyan);
    padding-left: 20px;
    /* Slide effect */
}

.dropdown-option.selected {
    color: var(--electric-cyan);
    font-weight: bold;
    border-left: 2px solid var(--electric-cyan);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(33px, 9999px, 11px, 0);
    }

    20% {
        clip: rect(88px, 9999px, 96px, 0);
    }

    40% {
        clip: rect(12px, 9999px, 64px, 0);
    }

    60% {
        clip: rect(55px, 9999px, 5px, 0);
    }

    80% {
        clip: rect(22px, 9999px, 77px, 0);
    }

    100% {
        clip: rect(99px, 9999px, 4px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(11px, 9999px, 88px, 0);
    }

    20% {
        clip: rect(55px, 9999px, 22px, 0);
    }

    40% {
        clip: rect(33px, 9999px, 11px, 0);
    }

    60% {
        clip: rect(77px, 9999px, 66px, 0);
    }

    80% {
        clip: rect(44px, 9999px, 33px, 0);
    }

    100% {
        clip: rect(99px, 9999px, 55px, 0);
    }
}

.status-box {
    border: 2px solid var(--accent-cyan);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--widget-bg);
    min-width: 200px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.status-box .label {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}

.status-box .value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.status-box.right-col {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
    min-height: 0;
}

/* Widget Sizing */
#market-consensus {
    flex: 0 0 auto;
}

#polymarket-odds {
    flex: 1;
    /* Expand to fill available space */
    min-height: 300px;
    /* Ensure minimum height */
    overflow: hidden;
    /* Prevent overflow */
}

#trader-fear-index {
    flex: 0 0 auto;
    height: 150px;
    /* Just enough for score + bar chart */
    margin-top: auto;
    /* Push to bottom of column */
    margin-bottom: 0;
}

#flow-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #000000;
    /* Pure Black */
}

/* OSINT Feed - Simple Horizontal Feed */
.news-feed-container {
    width: 100%;
    height: 392px;
    background: var(--widget-bg);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    /* Rounded Corners */
    overflow: hidden;
    /* Ensure rounded corners clip content */
    transition: box-shadow 0.25s ease;
}

#news-feed-container {
    height: 392px;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.18);
}

#news-feed-container.view-stocktwits {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 154px;
    align-self: stretch;
}

.news-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    gap: 10px;
}

/* Intel Feed Title */
.intel-title {
    color: #FFFFFF;
    font-weight: 600;
    font-family: 'VT323', monospace;
    font-size: 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.intel-view-news-trigger {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0 14px;
    min-width: 96px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #333;
    transition: color 0.2s ease, text-shadow 0.2s ease, background 0.2s ease;
}

.intel-view-news-trigger:hover {
    background: rgba(0, 191, 255, 0.08);
}

.intel-view-news-trigger.is-active {
    color: #00BFFF;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.28);
}

.intel-view-news-trigger:focus-visible {
    outline: 1px solid rgba(0, 191, 255, 0.75);
    outline-offset: -1px;
}

/* === INTEL BAR - Minimal HOT/COLD Design === */
.intel-bar {
    height: 24px;
    background: #000000;
    border-bottom: 1px solid #333;
    padding: 0;
    gap: 0;
}

/* Intel Row - Flex container for static label + scrollable ticker */
.intel-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Intel Left - Static label area (non-scrolling) */
.intel-left {
    flex: 0 0 auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Intel Scroll - Horizontally scrollable ticker area */
.intel-scroll {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    /* Firefox */
    height: 100%;
    display: flex;
    align-items: center;
}

#news-feed-container.view-stocktwits .intel-scroll {
    flex: 0 0 auto;
    overflow: visible;
}

.stocktwits-trigger {
    width: auto;
    min-width: 0;
    min-width: 96px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #e7faff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-align: left;
    cursor: pointer;
    appearance: none;
    overflow: hidden;
}

#news-feed-container.view-stocktwits .stocktwits-trigger {
    width: auto;
}

.stocktwits-trigger:hover {
    background: rgba(0, 191, 255, 0.08);
}

.stocktwits-trigger:focus-visible {
    outline: 1px solid rgba(0, 191, 255, 0.75);
    outline-offset: -1px;
}

.stocktwits-trigger-label,
.stocktwits-trigger-brand {
    white-space: nowrap;
}

.stocktwits-trigger-separator {
    color: rgba(0, 191, 255, 0.55);
    flex: 0 0 auto;
}

.stocktwits-trigger-brand {
    min-width: 0;
    color: #00FF66;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.22);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.stocktwits-trigger.is-active .stocktwits-trigger-brand {
    color: #00FF66;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.28);
}

#news-feed-container.is-stocktwits-loading .stocktwits-trigger-brand {
    color: #FFD166;
}

#news-feed-container.has-stocktwits-error .stocktwits-trigger-brand {
    color: #ff6b6b;
}

.stocktwits-panel {
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(0, 16, 30, 0.84), rgba(0, 8, 18, 0.92));
}

.stocktwits-panel-chrome {
    flex: 0 0 auto;
    min-height: 0;
    padding: 6px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.stocktwits-widget-host {
    flex: 0 0 auto;
    width: 100%;
    align-self: stretch;
    max-width: 100%;
    min-height: 102px;
    min-width: 0;
    margin-top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: 12px;
    background:
        radial-gradient(circle at top, rgba(0, 191, 255, 0.08), transparent 42%),
        rgba(2, 10, 18, 0.92);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 10px 24px rgba(0, 0, 0, 0.18);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 191, 255, 0.45) transparent;
}

.stocktwits-widget-host > *,
.stocktwits-widget-host .intel-markets-widget,
.stocktwits-widget-host tv-ticker-tape {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

.stocktwits-widget-host .intel-markets-widget {
    width: 100%;
    min-width: 100%;
    max-width: none;
    min-height: 0;
    display: block;
    align-self: stretch;
    inline-size: 100%;
}

.stocktwits-widget-host tv-ticker-tape {
    min-height: 96px;
    min-width: 100%;
    inline-size: 100%;
    block-size: auto;
}

.stocktwits-widget-host::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.stocktwits-widget-host::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.4);
    border-radius: 999px;
}

.stocktwits-panel[hidden],
#news-items-list[hidden] {
    display: none !important;
}

.intel-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

/* Inner container for ticker items - stays in one line */
.intel-scroll-inner {
    display: inline-flex;
    gap: 8px;
    white-space: nowrap;
    align-items: center;
    padding: 0 8px;
}

.intel-scroll-inner>* {
    flex: 0 0 auto;
}

.intel-bar .intel-title {
    padding: 0 8px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: #00BFFF;
    letter-spacing: 1.5px;
    border-right: 1px solid #333;
    height: 100%;
    display: flex;
    align-items: center;
}

.intel-bar .header-movers-ticker {
    margin-left: 8px;
    justify-content: flex-start;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.intel-bar .header-movers-ticker.ticker-fade-out {
    opacity: 0;
}

.intel-bar .mover-label {
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    margin-right: 8px;
}

.intel-bar .mover-hot {
    color: #00FF66;
}

.intel-bar .mover-cold {
    color: #FF4466;
}

.intel-bar .mover-track {
    display: flex;
    align-items: center;
    gap: 12px;
}

.intel-bar .mover-item {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    gap: 4px;
    min-width: 70px;
    /* Consistent width to prevent layout jitter */
}

.intel-bar .mover-item .mover-symbol {
    color: #FFFFFF !important;
}

/* Scroll Control - Bright by default, dims on intel-bar hover */
.scroll-control {
    flex-shrink: 0;
    padding: 0 8px;
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    color: #FF9500;
    text-shadow: 0 0 4px rgba(255, 149, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    appearance: none;
}

/* Dim when hovering anywhere on Intel Feed (auto-scroll paused) */
.news-feed-container:hover .scroll-control {
    color: #333;
    text-shadow: none;
}

.scroll-control.is-paused {
    color: #FFD166;
    text-shadow: 0 0 6px rgba(255, 209, 102, 0.55);
}

.scroll-control.is-disabled {
    color: #5c6672;
    text-shadow: none;
    cursor: default;
}

#news-feed-container.view-stocktwits .scroll-control {
    display: none;
}

.scroll-control:focus-visible {
    outline: 1px solid rgba(255, 149, 0, 0.7);
    outline-offset: 2px;
}

/* === SLOT MACHINE TICKER ANIMATIONS === */

/* The 'Window' that hides the scrolling text */
.ticker-viewport {
    position: relative;
    overflow: hidden;
    height: 24px;
    display: flex;
    align-items: center;
    flex: 1;
}

/* The Moving Container */
.ticker-track {
    display: flex;
    align-items: center;
    gap: 12px;
    will-change: transform, opacity;
}

/* Mover Items Container */
.mover-items {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* === HIGH-VELOCITY ARCADE REEL ANIMATION === */

/* Roll IN: Extreme speed from above, motion blur, white flash on impact, bounce */
.reel-in {
    animation: reelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Roll OUT: Fast drop with blur */
.reel-out {
    animation: reelOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes reelIn {
    0% {
        transform: translateY(-400%);
        opacity: 0;
        filter: blur(6px);
        color: inherit;
    }

    60% {
        transform: translateY(8%);
        opacity: 1;
        filter: blur(0);
        color: #FFFFFF;
        text-shadow: 0 0 10px #FFFFFF, 0 0 20px #FFFFFF;
    }

    75% {
        transform: translateY(-3%);
        color: inherit;
        text-shadow: none;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes reelOut {
    0% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: translateY(400%);
        opacity: 0;
        filter: blur(6px);
    }
}

/* Cascading Stagger Delays - Items land left to right */
/* Label animates first */
.reel-in .mover-label {
    animation-delay: 0ms;
}

/* Individual reel items use inline animation-delay for "tease" effect */
.reel-item {
    animation: reelItemIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    opacity: 0;
    /* Start hidden, animation fills forward */
}

@keyframes reelItemIn {
    0% {
        transform: translateY(-300%);
        opacity: 0;
        filter: blur(4px);
    }

    60% {
        transform: translateY(6%);
        opacity: 1;
        filter: blur(0);
        color: #FFFFFF;
        text-shadow: 0 0 8px #FFFFFF;
    }

    75% {
        transform: translateY(-2%);
        text-shadow: none;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header Controls */
.news-header .header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Compact Auto-Scroll Button */
.auto-scroll-compact {
    padding: 2px 6px !important;
    font-size: 10px !important;
    gap: 0 !important;
}

.auto-scroll-compact .scroll-icon {
    display: none;
}

/* Header Movers Ticker (Inline) */
.header-movers-ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-movers-ticker .ticker-content {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    animation: ticker-fade-in 0.5s ease;
}

.header-movers-ticker .mover-label {
    font-family: 'VT323', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1px 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.header-movers-ticker .mover-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.header-movers-ticker .mover-symbol {
    font-weight: 700;
    color: #FFFFFF;
}

.header-movers-ticker .mover-separator {
    color: #444;
    font-size: 8px;
}

.header-movers-ticker .mover-change {
    font-weight: 600;
}

.header-movers-ticker .mover-gain {
    color: #00FF00;
}

.header-movers-ticker .mover-loss {
    color: #FF0066;
}

/* Ticker Fade Animations */
.header-movers-ticker .ticker-fade-in {
    animation: ticker-fade-in 0.5s ease;
}

.header-movers-ticker .ticker-fade-out {
    animation: ticker-fade-out 0.5s ease;
}

@keyframes ticker-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ticker-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(5px);
    }
}

#news-items-list {
    display: flex;
    flex: 1;
    overflow-x: auto;
    /* Enable scrolling */
    overflow-y: hidden;
    padding: 8px 0;
    /* Reduced vertical padding */
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    cursor: grab;
}

#news-items-list:active {
    cursor: grabbing;
}

#news-track {
    display: flex;
    gap: 8px;
    /* Reduced gap */
    width: max-content;
    padding-left: 15px;
    /* Initial offset */
}

/* Hide scrollbar */
#news-items-list::-webkit-scrollbar {
    display: none;
}

.news-item {
    min-width: 280px;
    /* Increased width for larger text */
    max-width: 280px;
    background: rgba(0, 20, 40, 0.9);
    /* More opaque background */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    /* Slightly more padding */
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Increased gap */
    flex-shrink: 0;
}

.news-item:hover {
    background: rgba(0, 40, 80, 0.95);
    border-color: var(--electric-cyan);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    /* Reduced from 13px */
    opacity: 0.9;
}

.news-headline {
    font-size: 16px;
    /* Reduced from 18px */
    line-height: 1.2;
    /* Tighter line height */
    color: #FFFFFF;
    font-weight: 600;
    /* Bolder text */
    /* Prevent overflow */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-highlight-mag7 {
    border: 1px solid rgba(255, 51, 102, 0.8) !important;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.4), inset 0 0 4px rgba(255, 51, 102, 0.1);
    animation: pizzint-pulse 2.5s ease-in-out infinite;
}

.news-source-tag {
    font-weight: bold;
    margin-right: 6px;
}

.news-source-logo {
    width: 16px;
    height: 16px;
    border-radius: 0;
    /* Square logo tile */
    margin-right: 8px;
    vertical-align: middle;
    /* Full color always */
    filter: none;
}

.news-source-logo:hover {
    transform: scale(1.1);
    /* Slight zoom on hover instead */
    transition: transform 0.2s ease;
}

.news-time {
    color: #AAA;
    /* Lighter grey */
}

/* Ensure Chart takes remaining space */
#live-price-action {
    flex: 1;
    min-height: 600px;
    /* Increased for taller chart display */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

#live-price-action.price-action-view-globe {
    min-height: 520px;
}

#live-price-action .widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#chart-container {
    flex: 1;
    width: 100%;
    min-height: 0;
    /* Allow shrinking in flex context */
}

#chart-container>div,
#chart-container iframe {
    width: 100% !important;
    height: 100% !important;
}

.price-action-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: transparent;
}

.price-action-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    min-width: 0;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: rgba(231, 250, 255, 0.58);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.16em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease, opacity 0.2s ease;
}

.price-action-view-btn + .price-action-view-btn {
    position: relative;
    padding-left: 10px;
}

.price-action-view-btn + .price-action-view-btn::before {
    content: '|';
    position: absolute;
    left: 0;
    color: rgba(0, 191, 255, 0.38);
    pointer-events: none;
}

.price-action-view-btn:hover {
    color: rgba(231, 250, 255, 0.82);
}

.price-action-view-btn.is-active {
    color: #00FF66;
    text-shadow: 0 0 6px rgba(0, 255, 102, 0.22);
}

.price-action-view-btn:focus-visible {
    outline: none;
    color: rgba(231, 250, 255, 0.9);
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.3);
}

.price-action-tradingview-widget,
.price-action-tradingview-widget .tradingview-widget-container,
.price-action-tradingview-widget .tradingview-widget-container__widget,
.price-action-tradingview-widget iframe,
.price-action-tradingview-widget .price-action-economic-map-widget {
    width: 100%;
    height: 100%;
}

.price-action-tradingview-widget {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.price-action-tradingview-widget .tradingview-widget-container__widget {
    flex: 1 1 auto;
    min-height: 0;
}

.price-action-tradingview-widget .tradingview-widget-copyright {
    flex: 0 0 auto;
    padding-top: 6px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    color: rgba(231, 250, 255, 0.45);
}

.price-action-tradingview-widget .tradingview-widget-copyright a,
.price-action-tradingview-widget .tradingview-widget-copyright .blue-text {
    color: rgba(0, 191, 255, 0.8);
    text-decoration: none;
}

.price-action-economic-map-widget {
    display: block;
    min-height: 460px;
}

/* Threat Level Animations */
.status-box.critical {
    border-color: var(--accent-pink);
    animation: pulse-pink 1s infinite;
    color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.status-box.critical .label,
.status-box.critical .value {
    color: var(--accent-pink);
    text-shadow: 0 0 5px var(--accent-pink);
}

@keyframes pulse-pink {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0);
    }
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.widget {
    background: var(--widget-bg);
    border: 2px solid var(--border-color);
    /* Thick border */
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
    padding: 0;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    /* Rounded Corners */
}

/* Right column widgets - no gap */
.right-col .widget {
    margin-bottom: 0;
}

.widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Thicker decoration line */
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0.8;
}

.widget-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--widget-bg);
}

.widget-header h2 {
    font-family: var(--font-pixel);
    font-size: 18px;
    color: #FFFFFF;
    /* Pure White */
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.retro-emoji {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    font-size: 1.1em;
    line-height: 1;
    filter: drop-shadow(0 0 3px rgba(255, 105, 180, 0.4));
}

.retro-emoji::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Retro Scanline Effect */
    background: repeating-linear-gradient(
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.4) 1px,
        rgba(0, 0, 0, 0.4) 2px
    );
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* 16-Bit Pixel Art Arcade Button */
.arcade-btn {
    background-color: #5c49e2;
    /* CRT Scanline Effect Overlay */
    background-image: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    /* Flow Load Button Purple */
    border: 4px solid #000;
    box-shadow:
        inset -4px -4px 0px rgba(0, 0, 0, 0.4),
        inset 4px 4px 0px rgba(255, 255, 255, 0.3),
        4px 4px 0px rgba(0, 0, 0, 1);
    image-rendering: pixelated;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.arcade-btn:hover {
    background-color: #6d5ce6;
    filter: brightness(1.1);
    transform: translate(-2px, -2px);
    box-shadow:
        inset -4px -4px 0px rgba(0, 0, 0, 0.4),
        inset 4px 4px 0px rgba(255, 255, 255, 0.4),
        6px 6px 0px rgba(0, 0, 0, 1);
}

.arcade-btn:active {
    transform: translate(2px, 2px);
    box-shadow:
        inset 4px 4px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(255, 255, 255, 0.2),
        1px 1px 0px rgba(0, 0, 0, 1);
}

/* Reflective Shine Animation (Ported from Fish Finder) */
.arcade-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-35deg);
    animation: arcade-insider-shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

.arcade-btn:hover::after {
    animation: arcade-insider-shine 1.5s ease-in-out infinite;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%);
}

@keyframes arcade-insider-shine {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Retro 3D Title Styles (Ported from Unusual Flow) */
.retro-title-3d {
    font-family: var(--font-pixel);
    font-weight: 700;
    font-size: 24px;
    /* Slightly smaller for dashboard compact bar */
    letter-spacing: 1.5px;
    color: #FFFF00;
    background: none;
    -webkit-text-fill-color: #FFFF00;
    text-shadow:
        1px 1px 0 #FF00FF, 2px 2px 0 #FF00FF, 3px 3px 0 #FF00FF,
        4px 4px 0 #0000FF, 5px 5px 0 #0000FF, 6px 6px 0 #0000FF,
        7px 7px 15px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(-1px -1px 0px #FFFFFF);
    animation:
        slam-enter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        retroShine 4s linear infinite 0.6s;
    display: inline-block;
}

@keyframes slam-enter {
    0% {
        opacity: 0;
        transform: scale(3);
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }

    70% {
        opacity: 1;
        transform: scale(0.9);
        filter: drop-shadow(0 0 50px white) drop-shadow(0 0 20px #FF00FF);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(-1px -1px 0px #FFFFFF);
    }
}

@keyframes retroShine {

    0%,
    100% {
        filter: drop-shadow(-1px -1px 0px #FFFFFF) brightness(1);
    }

    50% {
        filter: drop-shadow(-1px -1px 0px #FFFFFF) brightness(1.4);
    }
}

/* PANIC BUTTON - FLOW! */
@keyframes stripe-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 56px 0; /* 56px covers one full stripe cycle diagonally */
    }
}

.hazard-stripe-bg {
    background: repeating-linear-gradient(
        -45deg,
        #ffcc00,
        #ffcc00 20px,
        #111 20px,
        #111 40px
    );
    background-size: 200% 200%;
    padding: 12px 15px;
    border: 4px solid #111;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.hazard-stripe-bg:hover {
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 0 15px rgba(255, 204, 0, 0.4);
}

.panic-btn-base {
    background: #A0B0C0; /* Light blue-grey base */
    border: 4px solid #111;
    border-radius: 40px;
    padding: 6px 8px; /* Slightly wider than the button itself to show the base */
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3), 0 10px 15px rgba(0,0,0,0.7);
    width: 90%;
    margin: 0 auto;
}

.panic-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #E60000;
    border: 3px solid #111;
    border-radius: 30px;
    height: 60px;
    position: relative;
    text-decoration: none;
    box-shadow: 
        inset 0 -8px 0 #990000, 
        inset 0 4px 6px rgba(255,255,255,0.4);
    transition: transform 0.1s, box-shadow 0.2s, background 0.2s, filter 0.2s;
    overflow: hidden;
    cursor: pointer;
}

.hazard-stripe-bg:hover .panic-btn, .panic-btn:hover {
    background: #FF1A1A; /* Brighter red on hover */
    box-shadow: 
        inset 0 -8px 0 #B30000, /* slightly brighter shadow */
        inset 0 4px 6px rgba(255,255,255,0.6),
        0 0 15px rgba(255, 0, 0, 0.6); /* Outer red glow */
    filter: brightness(1.1);
}

.hazard-stripe-bg:active .panic-btn, .panic-btn:active {
    transform: translateY(6px);
    box-shadow: 
        inset 0 -2px 0 #990000, 
        inset 0 2px 3px rgba(255,255,255,0.4);
}

.panic-btn::before {
    /* Glossy highlight */
    content: '';
    position: absolute;
    top: 5px;
    left: 10%;
    width: 80%;
    height: 35%;
    background: rgba(255,255,255,0.4);
    border-radius: 30px 30px 15px 15px;
    pointer-events: none;
    filter: blur(1px);
}

.panic-text {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 32px;
    font-style: italic;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.4);
    letter-spacing: 2px;
    transform: skewX(-5deg); /* Added slight skew to complement italic */
    z-index: 2;
    position: relative;
    padding-top: 4px; /* Center alignment adjustment for heavy bold font */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.2s;
}

.hazard-stripe-bg:hover .panic-text, .panic-btn:hover .panic-text {
    transform: skewX(-5deg) scale(1.1); /* Pop text slightly larger */
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5), 0 0 10px rgba(255,255,255,0.3);
}

/* Polymarket Odds - Pixel Title */
#polymarket-odds .widget-header h2 {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 12px;
    font-weight: 400;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    letter-spacing: 0px;
}

/* Trader Fear Index - Pixel Title */
#trader-fear-index .widget-header h2 {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 11px;
    font-weight: 400;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    letter-spacing: 0px;
}

/* Market Map - Pixel Title */
#sector-heatmap .widget-header h2 {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 12px;
    font-weight: 400;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    letter-spacing: 0px;
}

/* Unusual Whales - Pixel Title */
#whale-widget-title {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 12px;
    font-weight: 400;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    letter-spacing: 0px;
    cursor: pointer;
    transition: text-shadow 0.2s ease, color 0.2s ease;
}

#whale-widget-title:hover {
    color: #FF3366;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

/* Make whale emoji slightly bigger to match text */
.whale-emoji {
    font-size: 18px;
    vertical-align: middle;
}

/* INSERT COIN Easter Egg Hint - stacks above UNUSUAL WHALES title */
.insert-coin-hint {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 5px;
    color: #FFFF00;
    text-shadow: 1px 1px 0 #FF00FF, 2px 2px 0 #0000FF;
    letter-spacing: 1px;
    margin-bottom: 2px;
    animation: coin-bounce 1.2s ease-in-out infinite;
    opacity: 0.85;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Red glow on hover - matches title behavior */
#unusual-whales-link:hover .insert-coin-hint {
    color: #FF3366;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
    opacity: 1;
}

@keyframes coin-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}



.decoration-line {
    height: 2px;
    width: 20px;
    background: var(--accent-pink);
    box-shadow: 0 0 5px var(--accent-pink);
}

/* System Status Beacons (Dot + Signal Icon) */
.status-container {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
    align-items: center;
}

/* Default State (DOWN / INITIALIZING) - Neon Red */
.status-container .status-dot {
    display: none;
    /* Hide dot when offline */
    color: var(--alert-red);
    opacity: 0.8;
    font-size: 10px;
    /* Much smaller */
}

.status-container .status-text {
    font-family: var(--font-pixel);
    font-size: 10px;
    /* Much smaller */
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 4px;
    color: var(--alert-red);
    opacity: 1;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Live State - Neon Green */
#status-tfi .status-dot {
    display: none;
    /* Hide dot for TFI widget */
}

.status-container.status-live .status-dot {
    display: inline-block;
    /* Show dot when live */
    color: #00FF00;
    /* Pure Green */
    animation: status-blink 1.5s ease-in-out infinite;
    font-size: 8px;
    /* Tiny dot */
}

.status-container.status-live .status-text {
    color: #00FF00;
    /* Pure Green */
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.9);
    animation: status-blink 1.5s ease-in-out infinite;
}

.status-container.status-cached .status-dot,
.status-container.status-cached .status-text {
    color: #FFD166;
    text-shadow: 0 0 8px rgba(255, 209, 102, 0.75);
}

.status-container.status-stale .status-dot,
.status-container.status-stale .status-text {
    color: #FF8A65;
    text-shadow: 0 0 8px rgba(255, 138, 101, 0.75);
}

@keyframes status-blink {

    0%,
    49%,
    100% {
        opacity: 1;
    }

    50%,
    99% {
        opacity: 0.3;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 4px #00FF7F;
    }

    50% {
        transform: scale(1.2);
        /* Subtle breathe */
        opacity: 0.7;
        text-shadow: 0 0 10px #00FF7F;
        /* Glow expands */
    }

    100% {
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 4px #00FF7F;
    }
}


.widget-content {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    font-size: 12px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: var(--accent-cyan);
    font-family: var(--font-pixel);
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.highlight-pink {
    color: var(--accent-pink);
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent-pink);
}

/* Lists */
.list-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.alert-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #aaa;
}

.alert-item.new {
    animation: flash-pink 1s ease-out;
}

@keyframes flash-pink {
    0% {
        background-color: var(--accent-pink);
        color: #000;
    }

    100% {
        background-color: transparent;
        color: #aaa;
    }
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* Force height for widget */
    padding: 0;
    /* Remove padding for chart */
}

/* Gauge / TFI */
.gauge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.gauge-placeholder {
    text-align: center;
}

.gauge-value {
    font-family: var(--font-pixel);
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
}

.gauge-label {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: #666;
}

/* Ticker Widget (Dark Red/Maroon Style) */
.ticker-widget {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: auto;
    z-index: 1000;
    margin: 0;
    flex: none;
    box-shadow: 0 0 15px rgba(74, 14, 14, 0.6);
    border: 2px solid #8B0000;
    background: #4A0E0E;
    /* Dark red/maroon background */
    border-radius: 12px;
    /* Rounded Corners */
    font-family: var(--font-pixel);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9370DB;
    /* RSI purple text */
    font-weight: bold;
}

/* Remove the top decoration line */
.ticker-widget::after {
    display: none;
}

.ticker-widget .widget-content {
    padding: 5px 0;
    /* Add padding for vertical centering */
    height: 36px;
    /* Compact height */
    display: flex;
    align-items: center;
    /* Vertically center content */
    justify-content: center;
    overflow: hidden;
}

/* TFI Segmented Health Bar */
.tfi-container {
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.tfi-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tfi-score-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tfi-delta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tfi-delta.up {
    color: #00ff41;
}

.tfi-delta.down {
    color: #ff5555;
}

.tfi-vix-ref {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #666;
    letter-spacing: 1px;
    margin-top: 4px;
}

.tfi-score {
    font-family: 'Pixelify Sans', 'VT323', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #CCC;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
}

.tfi-rating {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Extreme Fear - Pulsing Red Alert */
.tfi-extreme-fear .tfi-score {
    color: #FF0000;
    text-shadow: 0 0 15px #FF0000;
    animation: fearPulse 1.5s ease-in-out infinite;
}

.tfi-extreme-fear .tfi-rating {
    color: #FF5555;
    font-weight: bold;
}

@keyframes fearPulse {

    0%,
    100% {
        opacity: 0.8;
        text-shadow: 0 0 20px #FF0000, 0 0 40px #FF0000;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 30px #FF0000, 0 0 60px #FF0000, 0 0 90px #FF0000;
    }
}

/* Extreme Greed - Pulsing Green Glow */
.tfi-extreme-greed .tfi-score {
    color: #00FF00;
    text-shadow: 0 0 15px #00FF00;
    animation: greedPulse 1s ease-in-out infinite;
}

.tfi-extreme-greed .tfi-rating {
    color: #55FF55;
    font-weight: bold;
}

@keyframes greedPulse {

    0%,
    100% {
        opacity: 0.8;
        text-shadow: 0 0 10px #00FF00;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 25px #00FF00, 0 0 35px #00FF00;
    }
}

/* Fear (Red) - Subtle emphasis */
.tfi-red .tfi-score {
    color: #FF5555;
}

.tfi-red .tfi-rating {
    color: #FF5555;
}

/* Greed (Green) - Subtle emphasis */
.tfi-green .tfi-score {
    color: #55FF55;
}

.tfi-green .tfi-rating {
    color: #55FF55;
}

/* Yellow (Neutral) */
.tfi-yellow .tfi-score {
    color: #FFD700;
}

.tfi-yellow .tfi-rating {
    color: #FFD700;
}

/* TFI Widget - Clean Terminal Style */

.tfi-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: normal;
    color: #CCC;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Extreme Fear - Pulsing Red Alert */
.tfi-extreme-fear .tfi-value {
    font-size: 16px;
    font-weight: bold;
    color: #FF0000;
    text-shadow: 0 0 10px #FF0000;
    animation: fearPulse 1.5s ease-in-out infinite;
}

@keyframes fearPulse {

    0%,
    100% {
        opacity: 0.8;
        text-shadow: 0 0 5px #FF0000;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px #FF0000, 0 0 25px #FF0000;
    }
}

/* Extreme Greed - Pulsing Green Glow */
.tfi-extreme-greed .tfi-value {
    font-size: 16px;
    font-weight: bold;
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00;
    animation: greedPulse 1s ease-in-out infinite;
}

@keyframes greedPulse {

    0%,
    100% {
        opacity: 0.8;
        text-shadow: 0 0 5px #00FF00;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px #00FF00, 0 0 25px #00FF00;
    }
}

/* Fear (Red) - Subtle emphasis */
.tfi-red .tfi-value {
    color: #FF5555;
}

/* Greed (Green) - Subtle emphasis */
.tfi-green .tfi-value {
    color: #55FF55;
}

.tfi-bar-chart {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 2;
    height: 20px;
    width: 100%;
}

.tfi-seg {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* Staggered animation delay for segments */
.tfi-seg:nth-child(1) {
    transition-delay: 0ms;
}

.tfi-seg:nth-child(2) {
    transition-delay: 30ms;
}

.tfi-seg:nth-child(3) {
    transition-delay: 60ms;
}

.tfi-seg:nth-child(4) {
    transition-delay: 90ms;
}

.tfi-seg:nth-child(5) {
    transition-delay: 120ms;
}

.tfi-seg:nth-child(6) {
    transition-delay: 150ms;
}

.tfi-seg:nth-child(7) {
    transition-delay: 180ms;
}

.tfi-seg:nth-child(8) {
    transition-delay: 210ms;
}

.tfi-seg:nth-child(9) {
    transition-delay: 240ms;
}

.tfi-seg:nth-child(10) {
    transition-delay: 270ms;
}

/* Active States - LED Glow */
.tfi-seg.active {
    box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
}

/* Color Themes */
.tfi-green .tfi-seg.active {
    background: #00ff41;
    color: #00ff41;
}

.tfi-yellow .tfi-seg.active {
    background: #ffd700;
    color: #ffd700;
}

.tfi-red .tfi-seg.active {
    background: #ff0055;
    color: #ff0055;
}

/* === SPRING ENTRANCE ANIMATION === */
.spring-entrance .widget,
.spring-entrance .news-feed-container,
.spring-entrance .ticker-widget,
.spring-entrance .main-header {
    animation: springIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
    transform: scale(0);
}

.spring-entrance .widget:nth-child(1),
.spring-entrance .main-header {
    animation-delay: 0s;
}

.spring-entrance .widget:nth-child(2) {
    animation-delay: 0.1s;
}

.spring-entrance .widget:nth-child(3) {
    animation-delay: 0.2s;
}

.spring-entrance .widget:nth-child(4) {
    animation-delay: 0.3s;
}

.spring-entrance .widget:nth-child(5) {
    animation-delay: 0.4s;
}

.spring-entrance .widget:nth-child(6) {
    animation-delay: 0.5s;
}

.spring-entrance .news-feed-container {
    animation-delay: 0.15s;
}

.spring-entrance .ticker-widget {
    animation-delay: 0.6s;
}

@keyframes springIn {
    0% {
        opacity: 0;
        transform: scale(0);
        filter: brightness(3);
    }

    60% {
        transform: scale(1.1);
        filter: brightness(1.5);
    }

    80% {
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

/* === SECTOR & ALERTS STYLES === */

/* Extreme Fear: Blood Pulse */
.tfi-extreme-fear .tfi-seg.active {
    background: #ff0000;
    color: #ff0000;
    animation: bloodPulse 1.5s infinite alternate;
}

@keyframes bloodPulse {
    0% {
        box-shadow: 0 0 5px #ff0000, 0 0 8px #ff0000;
        opacity: 0.8;
    }

    100% {
        box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
        opacity: 1;
    }
}

/* Extreme Greed: Money Surge */
.tfi-extreme-greed .tfi-seg.active {
    background: #00ff00;
    /* Bright Green */
    color: #00ff00;
    animation: moneySurge 0.5s infinite;
}

@keyframes moneySurge {
    0% {
        box-shadow: 0 0 5px #00ff00;
        filter: brightness(1);
    }

    50% {
        box-shadow: 0 0 25px #00ff00;
        filter: brightness(1.5);
    }

    100% {
        box-shadow: 0 0 5px #00ff00;
        filter: brightness(1);
    }
}

/* News Feed Expansion */
#flow-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#flow-feed .widget-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.ticker-content {
    display: flex;
    /* gap: 3rem; REMOVED to fix infinite scroll math */
    width: 100%;
    /* Critical: allows infinite width */
    /* animation: marquee-scroll 240s linear infinite; REMOVED for Fading Slideshow */
    justify-content: center;
    /* Center content */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    /* Ensure full width for centering */
}

.ticker-fade-out {
    opacity: 0;
    filter: blur(5px);
    transform: scale(0.98);
}

.ticker-fade-in {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    /* animation: glitch-load 0.3s ease-out; REMOVED per user request */
}

.ticker-item {
    font-size: 14px !important;
    /* Match LIVE indicator size */
    font-family: 'JetBrains Mono', monospace;
    color: #9370DB;
    /* RSI purple text */
    white-space: nowrap;
    margin-right: 3rem;
    /* Replaces gap for perfect 50% split */
}

/* Polymarket Dynamic Layout (Minimalist Terminal) */
.market-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.market-text-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.market-event {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

/* Scroll animation on hover for cut-off text */
.market-event:hover {
    overflow: visible;
    animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(0);
    }

    75% {
        transform: translateX(calc(-100% + 65vw * 0.65));
    }

    100% {
        transform: translateX(calc(-100% + 65vw * 0.65));
    }
}

.market-odds {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

.outcome-pair {
    display: flex;
    gap: 4px;
}

.outcome-label {
    color: var(--text-secondary);
}

.outcome-val {
    font-weight: 700;
}

.separator {
    color: var(--glass-border);
}

.visual-bar-row {
    display: flex;
    width: 100%;
    height: 2px;
    gap: 4px;
    margin-top: 2px;
    opacity: 0.8;
}

.progress-line {
    height: 100%;
    border-radius: 1px;
}

.delta-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 12px;
    font-weight: 700;
    height: fit-content;
    align-self: flex-start;
    margin-top: 2px;
}

.delta-pos {
    color: var(--electric-cyan);
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.delta-neg {
    color: var(--anaglyph-red);
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid rgba(255, 0, 60, 0.2);
}

.ticker-tape:hover .ticker-content {
    animation-play-state: paused !important;
    cursor: default;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

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

    /* Move exactly half (one duplicate block) */
}

/* Market Movers Tape Styling */
.mover-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 15px;
}

.mover-symbol {
    font-weight: bold;
    margin-right: 8px;
}

.mover-separator {
    color: #666;
    margin: 0 8px;
}

.mover-change {
    font-weight: bold;
}

/* Gainers - Green */
.mover-gain .mover-symbol,
.mover-gain .mover-change {
    color: #00FF7F;
    /* Vibrant Energy Green */
}

/* Losers - Red */
.mover-loss .mover-symbol,
.mover-loss .mover-change {
    color: #FF3333;
    /* Neon Red */
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #FF0055;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00FFFF;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(14px, 9999px, 121px, 0);
    }

    20% {
        clip: rect(78px, 9999px, 46px, 0);
    }

    40% {
        clip: rect(23px, 9999px, 89px, 0);
    }

    60% {
        clip: rect(54px, 9999px, 12px, 0);
    }

    80% {
        clip: rect(9px, 9999px, 67px, 0);
    }

    100% {
        clip: rect(125px, 9999px, 34px, 0);
    }
}

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

    100% {
        transform: translateX(-100%);
    }
}

/* Scrollbar - HIDDEN */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Expiration Date in Whale Feed */
.expiry-date {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    font-family: var(--font-mono);
}

/* Gamma Wall Upgrades */
/* Spot Line Removed per user request */

.zero-gamma-row .gamma-strike {
    color: #00CCFF;
    /* Retro Arcade Blue */
    font-weight: bold;
    text-shadow: 0 0 8px #00CCFF;
    border: 1px solid #00CCFF;
    border-radius: 4px;
    /* animation: humPulse 3s infinite ease-in-out; REMOVED */
}

/* Magnet Strike (Max Positive GEX - Stabilizing/Pinning) */
.magnet-strike {
    color: #FFD700 !important;
    /* Gold */
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

/* Trigger Strike (Max Negative GEX - Volatile/Accelerating) */
.trigger-strike {
    color: #FF6B35 !important;
    /* Orange-Red */
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.7);
}

@keyframes trigger-pulse {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
    }

    50% {
        text-shadow: 0 0 14px rgba(255, 107, 53, 0.9), 0 0 20px rgba(255, 60, 0, 0.4);
    }
}

/* Unusual Strike (Highest Vol/OI - Aggressive Positioning) */
.unusual-strike {
    color: #00E5CC !important;
    /* Aqua/Teal */
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 229, 204, 0.7);
}

/* Bearish Unusual Strike (Below Current Price) */
.unusual-strike.bearish {
    color: #FF6B9D !important;
    /* Pink for bearish */
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.7);
}

/* Legacy class (for backwards compatibility) */
.max-gex-strike {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.zero-gamma-label {
    position: absolute;
    right: 10px;
    font-size: 9px;
    color: #00CCFF;
    opacity: 0.8;
    font-weight: bold;
    pointer-events: none;
    /* animation: humPulse 3s infinite ease-in-out; REMOVED */
}

/* ATM Row (Current Price Strike) - left border marker only, no full-row flood */
.atm-row {
    border-left: 3px solid rgba(117, 182, 255, 0.78) !important;
    border-right: 3px solid rgba(117, 182, 255, 0.78) !important;
    z-index: 10;
}

/* First date column cell only gets the live-price ATM emphasis */
.atm-row .gex-cell:nth-child(2) {
    background: rgba(21, 87, 196, 0.82) !important;
    border-color: rgba(117, 182, 255, 0.56) !important;
    box-shadow: inset 0 0 0 1px rgba(191, 224, 255, 0.12), 0 0 14px rgba(74, 149, 255, 0.22) !important;
    animation: atm-pulse 2s infinite ease-in-out;
}

/* Other date columns in the ATM row stay normal (just slightly brighter) */
.atm-row .gex-cell:not(:nth-child(2)) {
    filter: brightness(1.15);
}

.atm-row .gex-value {
    color: #fff !important;
}

/* Only the first date cell gets the ATM emphasis */
.atm-row .gex-cell:nth-child(2) .gex-value {
    text-shadow: 0 0 10px rgba(124, 193, 255, 0.4);
}

@keyframes atm-pulse {
    0%, 100% {
        background: rgba(21, 87, 196, 0.8) !important;
        box-shadow: inset 0 0 0 1px rgba(191, 224, 255, 0.1), 0 0 12px rgba(74, 149, 255, 0.18);
    }
    50% {
        background: rgba(30, 103, 224, 0.9) !important;
        box-shadow: inset 0 0 0 1px rgba(209, 233, 255, 0.14), 0 0 18px rgba(74, 149, 255, 0.26);
    }
}



@keyframes atm-glow {

    0%,
    100% {
        box-shadow: inset 0 0 15px rgba(0, 204, 255, 0.3), 0 0 10px rgba(0, 204, 255, 0.4);
    }

    50% {
        box-shadow: inset 0 0 20px rgba(0, 204, 255, 0.5), 0 0 15px rgba(0, 204, 255, 0.6);
    }
}

.atm-row .gamma-strike {
    color: #8fc2ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(77, 151, 255, 0.22);
    border: none;
    background: transparent;
    position: relative;
}

.atm-row .gamma-strike::after {
    content: "ATM";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: rgba(145, 199, 255, 0.84);
    letter-spacing: 1.5px;
    white-space: nowrap;
    opacity: 0.8;
}


/* === UNUSUAL GAMMA WALL - Red All-Around Border (PizzINT Style) === */
/* Only applied to the SINGLE most unusual wall */
.most-unusual-wall {
    position: relative;
    border: 1px solid rgba(255, 51, 102, 0.8);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.4), inset 0 0 4px rgba(255, 51, 102, 0.1);
    /* animation: pizzint-pulse 2.5s ease-in-out infinite; REMOVED */
}

@keyframes pizzint-pulse {

    0%,
    100% {
        border-color: rgba(255, 51, 102, 0.6);
        box-shadow: 0 0 6px rgba(255, 51, 102, 0.3), inset 0 0 3px rgba(255, 51, 102, 0.05);
    }

    50% {
        border-color: rgba(255, 51, 102, 1);
        box-shadow: 0 0 12px rgba(255, 51, 102, 0.5), inset 0 0 5px rgba(255, 51, 102, 0.12);
    }
}

/* === GAMMA VOLUME LABELS === */
.gamma-vol-label {
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    opacity: 0.9;
    padding: 0 3px;
}

.gamma-vol-label.put-label {
    color: #FF66B2;
    margin-right: 4px;
}

.gamma-vol-label.call-label {
    color: #66FF99;
    margin-left: 4px;
}

/* === CALL/PUT DOMINANCE BADGE === */
.dominance-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-left: 8px;
    line-height: 1;
    vertical-align: middle;
}

.dominance-badge.bullish {
    background: rgba(0, 255, 65, 0.15);
    color: #00FF41;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.dominance-badge.bearish {
    background: rgba(255, 0, 153, 0.15);
    color: #FF0099;
    border: 1px solid rgba(255, 0, 153, 0.4);
}

.dominance-badge.gex-magnet {
    background: rgba(0, 255, 65, 0.15);
    color: #66ff99;
    border: 1px solid rgba(0, 255, 65, 0.36);
}

.dominance-badge.gex-trigger {
    background: rgba(255, 74, 102, 0.15);
    color: #ff8ea2;
    border: 1px solid rgba(255, 74, 102, 0.34);
}

.dominance-badge.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dominance-badge.vex-positive {
    background: rgba(208, 140, 255, 0.16);
    color: var(--vex-positive-color);
    border: 1px solid rgba(208, 140, 255, 0.45);
}

.dominance-badge.vex-negative {
    background: rgba(255, 138, 31, 0.16);
    color: var(--vex-negative-color);
    border: 1px solid rgba(255, 138, 31, 0.45);
}

.dominance-badge.theta-heat {
    background: rgba(83, 238, 180, 0.16);
    color: #dffcf0;
    border: 1px solid rgba(83, 238, 180, 0.38);
}

.dominance-badge.iv-call-rich {
    background: rgba(61, 204, 191, 0.14);
    color: #ebfffc;
    border: 1px solid rgba(61, 204, 191, 0.34);
}

.dominance-badge.iv-put-rich {
    background: rgba(214, 55, 95, 0.14);
    color: #fff0f5;
    border: 1px solid rgba(214, 55, 95, 0.34);
}

.dominance-badge.oi-lineup {
    background: rgba(255, 255, 255, 0.08);
    color: #e6ecf5;
    border: 1px solid rgba(199, 210, 226, 0.18);
}

/* The Hum Animation */
@keyframes humPulse {

    0%,
    100% {
        opacity: 0.8;
        text-shadow: 0 0 8px #00CCFF;
    }

    50% {
        opacity: 0.4;
        text-shadow: 0 0 2px #00CCFF;
    }
}

/* Retro Selector (Unified Style) */
.retro-selector {
    background: rgba(0, 0, 0, 0.3);
    color: #00CCFF;
    border: 1px solid #00CCFF;
    border-radius: 4px;
    padding: 2px 5px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    outline: none;
    margin-left: 10px;
}

.retro-selector:hover {
    background: rgba(0, 204, 255, 0.1);
    box-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
}

.retro-selector option {
    background: #0C0C18;
    color: #00CCFF;
}

/* CRT Scanline Effect */
.crt-effect {
    position: relative;
    overflow: hidden;
}

.crt-effect::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to bottom,
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 5;
    pointer-events: none;
}

.crt-effect::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.02;
    }

    50% {
        opacity: 0.05;
    }

    100% {
        opacity: 0.02;
    }
}

/* Alert Stream Styling */
.alert-item {
    background: rgba(20, 20, 30, 0.8);
    border-left: 2px solid var(--electric-cyan);
    padding: 10px;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--electric-cyan);
    margin-bottom: 2px;
}

.alert-text {
    line-height: 1.3;
}

.alert-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 5px;
}

.alert-btn {
    background: transparent;
    border: 1px solid var(--neon-pink);
    color: var(--electric-cyan);
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    padding: 2px 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.alert-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 5px var(--neon-pink);
}

/* Critical Flash Animation */
@keyframes flash-critical {
    0% {
        background-color: rgba(255, 0, 255, 0.8);
    }

    100% {
        background-color: rgba(20, 20, 30, 0.8);
    }
}

.alert-item.critical {
    animation: flash-critical 1s ease-out;
    border-left: 2px solid var(--neon-pink);
}

/* Flow Feed Container (Scrollable) */
#flow-feed-container {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 5px;
    /* Space for scrollbar */
}

/* Allow overflow when showing radar animation */
#flow-feed-container:has(.whale-pre-market-container) {
    overflow: visible !important;
}

/* Custom Scrollbar for Flow Feed */
#flow-feed-container::-webkit-scrollbar {
    width: 6px;
}

#flow-feed-container::-webkit-scrollbar-track {
    background: #0C0C18;
    /* Deep Cosmos */
}

#flow-feed-container::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
}

#flow-feed-container::-webkit-scrollbar-thumb:hover {
    background: #00FFFF;
    /* Brighter on hover */
}

/* Polymarket Container (Scrollable) */
#odds-list {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 5px;
    /* Space for scrollbar */
}

/* Custom Scrollbar for Polymarket */
#odds-list::-webkit-scrollbar {
    width: 6px;
}

#odds-list::-webkit-scrollbar-track {
    background: #0C0C18;
    /* Deep Cosmos */
}

#odds-list::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
}

#odds-list::-webkit-scrollbar-thumb:hover {
    background: #00FFFF;
    /* Brighter on hover */
}

/* Flow Feed Styling */
.flow-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #444;
    margin-bottom: 8px;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    position: relative;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
    /* Added from original .flow-item */
    font-size: 0.85rem;
    /* Added from original .flow-item */
    color: #e0e0e0;
    /* Added from original .flow-item */
    display: flex;
    /* Added from original .flow-item */
    flex-direction: column;
    /* Added from original .flow-item */
    gap: 4px;
    /* Added from original .flow-item */
    position: relative;
    /* Added from original .flow-item */
}

/* Stealth Mode (<$2M) - Subtle, dark */
.flow-stealth {
    background: rgba(0, 0, 0, 0.2);
    border-left-color: rgba(100, 100, 100, 0.2);
    color: rgba(234, 234, 234, 0.6);
}

/* Flash Mode (>$2M) - Whale Alerts */
.whale-alert {
    background: rgba(10, 10, 10, 0.5);
    animation: pulse-border 2s ease-in-out infinite;
}

.whale-alert-bull {
    border-left: 3px solid #00FF7F;
    box-shadow: inset 0 0 15px rgba(0, 255, 127, 0.1);
}

.whale-alert-bear {
    border-left: 3px solid #FF0055;
    box-shadow: inset 0 0 15px rgba(255, 0, 85, 0.1);
}

@keyframes pulse-border {

    0%,
    100% {
        border-left-width: 3px;
        opacity: 1;
    }

    50% {
        border-left-width: 4px;
        opacity: 0.8;
    }
}

/* Critical Whale Alert (>$4M) - Directional Borders */
.critical-whale-alert {
    animation: critical-pulse 1s ease-in-out infinite !important;
}

.critical-whale-bull {
    border: 2px solid #00FF7F !important;
    background: rgba(0, 255, 127, 0.1) !important;
    box-shadow: inset 0 0 20px rgba(0, 255, 127, 0.2), 0 0 15px rgba(0, 255, 127, 0.4);
}

.critical-whale-bear {
    border: 2px solid #FF3333 !important;
    background: rgba(255, 51, 51, 0.1) !important;
    box-shadow: inset 0 0 20px rgba(255, 51, 51, 0.2), 0 0 15px rgba(255, 51, 51, 0.4);
}

@keyframes critical-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
        box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

/* Mega Whale Alert (>$3M) - Ultra Intense Borders */
.mega-whale-alert {
    animation: mega-pulse 1.5s ease-in-out infinite !important;
    border-width: 4px !important;
}

.mega-whale-bull {
    border: 4px solid #00FF7F !important;
    background: rgba(0, 255, 127, 0.15) !important;
    box-shadow: inset 0 0 30px rgba(0, 255, 127, 0.3), 0 0 25px rgba(0, 255, 127, 0.6) !important;
}

.mega-whale-bear {
    border: 4px solid #FF3333 !important;
    background: rgba(255, 51, 51, 0.15) !important;
    box-shadow: inset 0 0 30px rgba(255, 51, 51, 0.3), 0 0 25px rgba(255, 51, 51, 0.6) !important;
}

@keyframes mega-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.01);
        box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.2), 0 0 35px rgba(255, 255, 255, 0.4);
    }
}

/* Live Feed Animations */
.flow-slide-in {
    animation: slide-in-from-top 0.5s ease-out;
}

@keyframes slide-in-from-top {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-fade-out {
    animation: fade-out 0.5s ease-out forwards;
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Glitch Bump Animation (New Entry) */
.flow-glitch-bump {
    animation: glitch-bump 0.3s ease-out;
}

@keyframes glitch-bump {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }

    20% {
        transform: translateX(3px);
        opacity: 0.5;
    }

    40% {
        transform: translateX(-2px);
        opacity: 0.8;
    }

    60% {
        transform: translateX(1px);
        opacity: 0.95;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.flow-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 0.9rem;
}

.flow-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
}

.flow-premium {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.whale-icon {
    font-size: 1.2rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Intel Minimalist Loader */
.intel-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 300px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #00CCFF;
    /* Intel Cyan */
    padding-left: 20px;
    gap: 5px;
}

.intel-row {
    opacity: 0.9;
}

.blink-cursor {
    display: inline-block;
    margin-left: 5px;
    animation: blink-block 1s step-end infinite;
}

@keyframes blink-block {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Pause on Hover Logic */
/* Since we are using JS prepend, we don't have a CSS animation to pause. 
   However, we can style the container to indicate interaction if needed. 
   The actual "Pause" logic will be in JS (stopping the interval). 
*/
/* PCR Chart Overlays */
.chart-container {
    position: relative;
}

.chart-overlay-label {
    position: absolute;
    right: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
}

.label-fear {
    top: 10px;
    color: var(--electric-cyan);
}

.label-greed {
    bottom: 10px;
    color: var(--neon-pink);
}

.pcr-signal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    text-align: center;
    z-index: 20;
    display: none;
    /* Hidden by default */
    animation: flash-border 1s infinite;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.pcr-signal-box.buy {
    border-color: var(--electric-cyan);
    color: var(--electric-cyan);
    animation: flash-border-cyan 1s infinite;
}

@keyframes flash-border {
    0% {
        border-color: var(--neon-pink);
        box-shadow: 0 0 10px var(--neon-pink);
    }

    50% {
        border-color: transparent;
        box-shadow: none;
    }

    100% {
        border-color: var(--neon-pink);
        box-shadow: 0 0 10px var(--neon-pink);
    }
}

@keyframes flash-border-cyan {
    0% {
        border-color: var(--electric-cyan);
        box-shadow: 0 0 10px var(--electric-cyan);
    }

    50% {
        border-color: transparent;
        box-shadow: none;
    }

    100% {
        border-color: var(--electric-cyan);
        box-shadow: 0 0 10px var(--electric-cyan);
    }
}

.alert-item.new {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Anime Glitch Animations */

/* Header Glitch (RGB Split on Load) */
.glitch {
    animation: glitch-load 0.2s ease-out 0.5s 1;
}

@keyframes glitch-load {

    0%,
    100% {
        text-shadow: 0 0 0 transparent;
    }

    25% {
        text-shadow: -2px 0 0 #00FF7F, 2px 0 0 #1E90FF;
        transform: translateX(2px);
    }

    50% {
        text-shadow: 2px 0 0 #00FF7F, -2px 0 0 #1E90FF;
        transform: translateX(-2px);
    }

    75% {
        text-shadow: -1px 0 0 #00FF7F, 1px 0 0 #1E90FF;
        transform: translateX(1px);
    }
}

/* Ticker Flicker */
.ticker-flash {
    animation: ticker-flicker 0.3s ease-in-out;
}

@keyframes ticker-flicker {

    0%,
    100% {
        opacity: 1;
        color: var(--deep-blue);
    }

    20%,
    60% {
        opacity: 0.3;
        color: var(--vibrant-green);
    }

    40%,
    80% {
        opacity: 1;
        color: var(--vibrant-green);
    }
}

/* Alert Scanline Slide-In */
.new-alert-slide {
    position: relative;
    animation: slide-in-fade 0.4s ease-out;
}

.new-alert-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(30, 144, 255, 0.3) 50%,
            transparent 100%);
    animation: scanline-slide 0.4s ease-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes scanline-slide {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slide-in-fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timestamp Pulse */
.timestamp-new {
    animation: timestamp-pulse 0.6s ease-out;
}

@keyframes timestamp-pulse {

    0%,
    100% {
        color: inherit;
        text-shadow: none;
    }

    50% {
        color: var(--vibrant-green);
        text-shadow: 0 0 8px var(--vibrant-green);
    }
}

/* Chart Border Static Noise */
.chart-container {
    border: 1px solid rgba(30, 144, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(30, 144, 255, 0.03) 2px,
            rgba(30, 144, 255, 0.03) 4px);
    pointer-events: none;
    z-index: 1;
    animation: scanline-move 8s linear infinite;
}

@keyframes scanline-move {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Polymarket Odds Block - Split Row Layout with 2px Laser Gauge */
.polymarket-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.polymarket-item:hover {
    background: rgba(0, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.08);
}

.polymarket-item.is-expanded {
    background:
        linear-gradient(180deg, rgba(6, 10, 15, 0.98), rgba(4, 7, 12, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(80, 170, 255, 0.08),
        inset 0 0 22px rgba(0, 180, 255, 0.04);
}

.polymarket-item.is-expanded::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(to bottom, rgba(110, 165, 210, 0.035) 0 1px, transparent 1px 3px),
        linear-gradient(90deg, transparent 0, rgba(55, 110, 160, 0.05) 50%, transparent 100%);
    opacity: 0.45;
    pointer-events: none;
}

.polymark.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
}

/* API Status Indicators */
.status-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    /* Push to right */
    margin-right: 10px;
    /* Space from edge */
}

.status-dot {
    font-size: 10px;
    color: #FF3333;
    /* Default: Red (Down) */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.status-signal {
    color: #FF3333;
    /* Default: Red (Down) */
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* Live State (Green + Pulse) */
.status-live .status-dot {
    color: #00FF7F;
    /* Vibrant Energy Green */
    text-shadow: 0 0 5px #00FF7F;
    animation: status-pulse 1.5s infinite;
}

.status-live .status-signal {
    color: #00FF7F;
}

@keyframes status-pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1.0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}



.polymarket-top-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.polymarket-event {
    font-family: var(--font-mono);
    font-size: 14px;
    /* Increased from 11px */
    color: #CCCCCC;
    letter-spacing: 0.5px;
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.polymarket-event:hover {
    overflow: visible;
    animation: scrollText 4s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% + 200px));
    }
}

/* === POLYMARKET STACKED LAYOUT === */
.polymarket-header {
    margin-bottom: 2px;
}

.polymarket-event {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.polymarket-event:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.polymarket-odds-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.polymarket-odds-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.poly-stats-mini {
    font-size: 10px;
    color: #666;
    display: flex;
    gap: 6px;
}

.poly-stats-mini .separator {
    color: #444;
}

.polymarket-laser-gauge {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    margin-top: 2px;
}

.polymarket-yes-segment {
    height: 100%;
    background: #00ff00;
    box-shadow: 0 0 5px #00ff00;
    transition: width 0.5s ease;
}

.polymarket-no-segment {
    height: 100%;
    background: #ff3333;
    opacity: 0.5;
    transition: width 0.5s ease;
}

.polymarket-expand-label {
    margin-top: 5px;
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 6px;
    color: rgba(120, 170, 190, 0.62);
    letter-spacing: 0.35px;
    text-transform: uppercase;
    opacity: 0.82;
}

.polymarket-detail-panel {
    margin-top: 4px;
    padding: 2px 0 0;
    animation: poly-detail-reveal 0.18s ease-out;
}

.polymarket-detail-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 6px;
    min-height: 18px;
}

.polymarket-detail-status {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 6px;
    letter-spacing: 0.3px;
    color: #8ba2b2;
}

.poly-detail-error {
    color: #ff6b6b;
}

.poly-book-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.poly-book-toggle {
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: #607383;
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 6px;
    letter-spacing: 0.25px;
    padding: 0 0 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.poly-book-toggle.is-active {
    color: #bfe9ff;
    border-color: rgba(72, 201, 255, 0.72);
}

.poly-book-terminal {
    background: transparent;
    border: 0;
    padding: 8px 0 0;
    box-shadow: none;
}

.polymarket-detail-title {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 6px;
    letter-spacing: 0.3px;
    color: #8ba2b2;
}

.poly-terminal-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: end;
    margin-bottom: 6px;
}

.poly-terminal-quote {
    min-width: 0;
}

.poly-terminal-quote.is-right {
    text-align: right;
}

.poly-terminal-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #91a0ac;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.poly-terminal-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

.poly-terminal-context {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding-bottom: 3px;
}

.poly-depth-stage {
    position: relative;
    height: 176px;
    background: transparent;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

.poly-depth-stage::after {
    content: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(190, 225, 255, 0.02) 42%,
            rgba(190, 225, 255, 0.08) 50%,
            rgba(190, 225, 255, 0.02) 58%,
            transparent 100%);
    transform: translateX(-100%);
    opacity: 0.35;
    pointer-events: none;
    animation: poly-depth-sweep 5.8s linear infinite;
}

.poly-depth-grid {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(to bottom, transparent 0 22px, rgba(255,255,255,0.07) 22px 23px),
        repeating-linear-gradient(to right, transparent 0 28px, rgba(255,255,255,0.018) 28px 29px);
    opacity: 0.16;
}

.poly-depth-centerline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background:
        repeating-linear-gradient(to bottom, rgba(180, 196, 208, 0.55) 0 2px, transparent 2px 12px);
    opacity: 0.65;
}

.poly-depth-half {
    position: absolute;
    top: 10px;
    bottom: 6px;
    width: calc(50% - 2px);
}

.poly-depth-half.is-bid {
    left: 0;
}

.poly-depth-half.is-ask {
    right: 0;
}

.poly-depth-svg,
.poly-depth-empty {
    position: absolute;
    inset: 0;
}

.poly-depth-svg {
    width: 100%;
    height: 100%;
}

.poly-depth-caption,
.poly-depth-legend,
.poly-depth-axis {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    line-height: 1.5;
    color: #91a0ac;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.poly-depth-legend,
.poly-depth-axis {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.poly-bid-label { color: #2bd66f; }
.poly-ask-label { color: #d4587d; }

/* Fine dithered fills fade toward the baseline; outlines stay one screen pixel. */
.poly-depth-fill {
    shape-rendering: crispEdges;
}

.poly-depth-line {
    fill: none;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: miter;
    shape-rendering: crispEdges;
}

.poly-depth-line.bid {
    stroke: #2bd66f;
    filter: drop-shadow(0 0 1px rgba(43, 214, 111, 0.12));
}

.poly-depth-line.ask {
    stroke: #d4587d;
    filter: drop-shadow(0 0 1px rgba(212, 88, 125, 0.12));
}

.poly-depth-trace {
    fill: none;
    stroke-width: 0.9;
    stroke-linejoin: miter;
    stroke-linecap: square;
    stroke-dasharray: 18 160;
    shape-rendering: crispEdges;
    opacity: 0.36;
    animation: poly-depth-feed 4.8s linear infinite, poly-depth-flicker 2.8s ease-in-out infinite;
}

.poly-depth-trace.bid {
    stroke: rgba(210, 255, 224, 0.78);
    filter: drop-shadow(0 0 2px rgba(43, 214, 111, 0.18));
}

.poly-depth-trace.ask {
    stroke: rgba(255, 209, 224, 0.75);
    filter: drop-shadow(0 0 2px rgba(212, 88, 125, 0.16));
    animation-direction: reverse, normal;
}

.poly-depth-empty {
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 8px;
    color: #7b8a94;
}

@keyframes poly-depth-feed {
    from {
        stroke-dashoffset: 180;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes poly-depth-flicker {
    0%,
    100% {
        opacity: 0.22;
    }

    50% {
        opacity: 0.44;
    }
}

@keyframes poly-depth-sweep {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes poly-detail-reveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .poly-terminal-header-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6px;
    }

    .poly-terminal-context {
        grid-column: 1 / -1;
        order: -1;
        align-items: center;
        min-width: 0;
        padding-bottom: 0;
    }

    .poly-terminal-quote.is-right {
        text-align: right;
    }

    .poly-terminal-value {
        font-size: 19px;
    }
}

/* Polymarket Glitch Effect */
.polymarket-glitch {
    animation: polymarket-glitch-anim 0.3s ease-out;
}

@keyframes polymarket-glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translateX(2px);
        opacity: 0.95;
    }
}

/* Probability Change Flash Animations */
.prob-flash-up {
    animation: probFlashUp 1s ease-out;
}

.prob-flash-down {
    animation: probFlashDown 1s ease-out;
}

@keyframes probFlashUp {
    0% {
        text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41;
        color: #00ff41;
    }

    50% {
        text-shadow: 0 0 5px #00ff41;
    }

    100% {
        text-shadow: none;
        color: inherit;
    }
}

@keyframes probFlashDown {
    0% {
        text-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444;
        color: #ff4444;
    }

    50% {
        text-shadow: 0 0 5px #ff4444;
    }

    100% {
        text-shadow: none;
        color: inherit;
    }
}

/* === UNUSUAL WHALES REDESIGN === */
#flow-feed-container {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    /* Force scrollbar to prevent jitter */
    height: 100%;
    padding: 0;
}

/* Whale Feed Animations */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 40px;
        margin-bottom: 0;
    }
}

.whale-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.2fr 0.8fr;
    align-items: center;
    padding: 0 10px;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.whale-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ffffff;
}

/* Columns */
.col-ticker {
    font-weight: bold;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.col-premium {
    color: #FFFFFF;
    /* Was Polymarket Blue */
    transition: background-color 0.2s;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* OSINT Feed Scrolling Animation */
.news-feed-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Ensure container has height */
}

/* REMOVED DUPLICATE #news-items-list WITH AUTO-SCROLL ANIMATION */
/* REMOVED @keyframes scroll-vertical */

/* Market Wire Typography Refinement */


.news-time {
    color: #888;
}

/* General Widget Typography Bump */
.widget-content {
    font-size: 14px;
    /* Base size increase */
}

.polymarket-event {
    font-family: var(--font-mono);
    font-size: 14px;
    /* Increased from 11px */
    color: #CCCCCC;
    letter-spacing: 0.5px;
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.polymarket-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #666;
}

.poly-stat {
    display: flex;
    gap: 4px;
}

.stat-val {
    color: #999;
    font-weight: bold;
}

.polymarket-odds {
    display: flex;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: bold;
}

.polymarket-odds-text {
    font-family: var(--font-mono);
    font-size: 14px;
    /* Increased from 11px */
    font-weight: bold;
    letter-spacing: 0.5px;
}

.whale-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.2fr 0.8fr;
    align-items: center;
    padding: 0 10px;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: #FFFFFF;
    /* Increased from 13px */
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}



.news-title:hover {
    text-decoration: underline;
    color: var(--accent-cyan);
}

.news-source {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* Tags */
.tag-mega {
    color: #ff00ff;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.tag-bull {
    color: #00ff88;
}

.tag-bear {
    color: #ff4444;
}

.tag-sweep {
    color: #00bcd4;
}

.tag-block {
    color: #FFA500;
    /* Vivid Orange for pit trades */
    font-weight: bold;
}

.tag-canceled {
    color: #888888;
    text-decoration: line-through;
    opacity: 0.7;
    font-weight: bold;
}

.tag-dump {
    color: #FF5252;
    text-shadow: 0 0 5px rgba(255, 82, 82, 0.5);
}

.tag-lotto {
    color: #FFD700;
    /* Gold */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    font-weight: bold;
}

.type-c {
    color: #00FF00;
    font-weight: bold;
}

.type-p {
    color: #FF3333;
    font-weight: bold;
}

.tag-itm {
    color: #FFB300;
    /* Amber for ITM (Deep/Safe) */
    border: 1px solid rgba(255, 179, 0, 0.3);
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 4px;
}

.tag-otm {
    color: #D500F9;
    /* Purple for OTM (Speculative) */
    border: 1px solid rgba(213, 0, 249, 0.3);
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 4px;
}

.tag-atm {
    color: #FF3333;
    /* Red for ATM (High Risk/Pivot) */
    border: 1px solid rgba(255, 51, 51, 0.3);
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 4px;
}

/* Tag Column - Flexbox for side-by-side meter + tags */
.col-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    /* Tags on right */
}

/* Delta Mini Progress Bar - 16-bit Retro Style */
.delta-bar-mini {
    width: 36px;
    height: 6px;
    background: #ff4444;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    margin-right: 6px;
    order: -1;
}

.delta-bar-mini .delta-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #00ff88;
}

/* Delta Wrapper - label + bar side by side */
.delta-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    order: -1;
}

.delta-label {
    font-size: 9px;
    color: #888;
    font-family: 'VT323', monospace;
    min-width: 24px;
}

/* New Inline Tag for Buyer/Seller */
.tag-inline-text {
    font-family: 'Press Start 2P';
    font-size: 7px;
    margin-left: 5px;
    opacity: 1;
    letter-spacing: 0.5px;
    vertical-align: baseline;
    text-transform: uppercase;
}

.tag-hedge {
    color: #E0E0E0;
    /* White/Grey for Hedge (Neutral/Protection) */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* BOUGHT/SOLD Badge - Replaces Delta Gauge */
.side-badge-wrapper {
    display: flex;
    align-items: center;
    order: -1;
    margin-right: 4px;
}

.side-badge {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 0;
    border: none;
    background: none;
    text-transform: uppercase;
}

.side-bought {
    color: #39FF14;
    background: none;
    border: none;
    text-shadow: none;
}

.side-sold {
    color: #FF3131;
    background: none;
    border: none;
    text-shadow: none;
}

/* Type Indicators in Strike Column */
.diag-latency {
    color: #5DADE2;
    font-size: 9px;
    margin-left: auto;
}

/* Fixed X Button below Diagnostics */
.x-fixed-btn {
    position: fixed;
    top: 35px;
    /* Below the 5px top + ~25px height of diag bar */
    left: 20px;
    background: rgba(157, 78, 221, 0.2);
    /* Purple tint */
    border: 1px solid #9D4EDD;
    /* Purple border */
    color: #FFFFFF;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    z-index: 900;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

.x-fixed-btn:hover {
    background: #9D4EDD;
    /* Solid purple on hover */
    border-color: #9D4EDD;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.6);
}

/* Market Status Button */
.market-status-btn {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #FFA500;
    color: #FFFFFF;
    padding: 3px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    cursor: default;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.market-status-btn.after-market {
    background: rgba(255, 165, 0, 0.2);
    border-color: #FFA500;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

.market-status-btn.pre-market {
    background: rgba(157, 78, 221, 0.2);
    border-color: #9D4EDD;
    box-shadow: 0 0 8px rgba(157, 78, 221, 0.3);
}

.market-status-btn.market-open {
    background: rgba(0, 200, 83, 0.2);
    border-color: #00c853;
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.3);
}

/* Fixed Discord Button next to X */
.discord-fixed-btn {
    position: fixed;
    top: 35px;
    left: 100px;
    /* Offset to sit next to X button */
    background: rgba(255, 165, 0, 0.2);
    /* Orange tint */
    border: 1px solid #FFA500;
    /* Orange border */
    color: #FFFFFF;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    z-index: 900;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
}

.discord-fixed-btn:hover {
    background: #FFA500;
    /* Solid orange on hover */
    border-color: #FFA500;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}

.delta-up {
    color: #00ff00;
    font-size: 14px;
    margin-left: 6px;
    font-weight: bold;
}

.delta-down {
    color: #ff3333;
    font-size: 14px;
    margin-left: 6px;
    font-weight: bold;
}

/* Animation for new rows - Bloomberg Terminal Style Flash */
@keyframes flash-row {
    0% {
        background-color: rgba(255, 255, 255, 0.9);
    }

    100% {
        background-color: transparent;
    }
}

.whale-row.new-row {
    animation: flash-row 800ms ease-out forwards;
}

/* Stagger animation for multiple new rows */
.whale-row.new-row:nth-child(1) {
    animation-delay: 0ms;
}

.whale-row.new-row:nth-child(2) {
    animation-delay: 50ms;
}

.whale-row.new-row:nth-child(3) {
    animation-delay: 100ms;
}

.whale-row.new-row:nth-child(4) {
    animation-delay: 150ms;
}

.whale-row.new-row:nth-child(5) {
    animation-delay: 200ms;
}

/* MEGA trade pulse animation (PizzINT-style red) */
@keyframes mega-pulse {

    0%,
    100% {
        box-shadow: inset 0 0 0 1px rgba(255, 82, 82, 0.3);
        background: rgba(255, 82, 82, 0.05);
    }

    50% {
        box-shadow: inset 0 0 0 2px rgba(255, 82, 82, 0.6);
        background: rgba(255, 82, 82, 0.12);
    }
}

.whale-row.mega-row {
    animation: mega-pulse 2s ease-in-out infinite;
    border-left: 3px solid #ff5252 !important;
}

/* Directional hover glow */
.whale-row.call-row:hover {
    background: rgba(0, 200, 83, 0.08);
    border-left-color: #00c853;
}

.whale-row.put-row:hover {
    background: rgba(255, 82, 82, 0.08);
    border-left-color: #ff5252;
}

/* Long-press to save states */
.whale-row.pressing {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.1s, background 0.1s;
}

.whale-row.saving {
    opacity: 0.7;
    pointer-events: none;
}

.whale-row.saved {
    border-left: 3px solid #00ff88 !important;
    background: rgba(0, 255, 136, 0.05);
}

/* Time-ago badge */
.time-ago {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 4px;
    transition: opacity 0.5s ease-out;
}

.time-ago-now {
    color: rgba(255, 255, 255, 0.5);
}

.time-ago.fade-out {
    opacity: 0;
}

#whale-stale-banner {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    text-align: center;
    padding: 4px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 152, 0, 0.3);
}

#whale-stale-banner.hidden {
    display: none;
}

#load-more-whales {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.2s;
}

#load-more-whales:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* News Sentiment Tags */
.news-sentiment {
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 2px;
    margin-left: 6px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.news-sentiment.sentiment-bullish {
    background: rgba(0, 255, 157, 0.1);
    color: #00FF9D;
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.news-sentiment.sentiment-bearish {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

/* Breaking News Alert */
.breaking-news-alert {
    border: 1px solid #ff0000 !important;
    color: #ff0000 !important;
    animation: pulse-red-border 2s infinite;
}

@keyframes pulse-red-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}





/* --- MINIMALIST RAW DATA STREAM --- */
:root {
    --stream-bg: #0b0e11;
    --stream-text: #e1e3e6;
    --stream-dim: #5c6370;
    --stream-accent: #00ff9d;
    --stream-alert: #ff5050;
    --stream-font: 'JetBrains Mono', 'Consolas', monospace;
}

/* --- MINIMALIST RAW DATA STREAM --- */
:root {
    --stream-bg: #0b0e11;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #1e2124;
    padding-bottom: 8px;
    flex-shrink: 0;
}

/* Stream List - REMOVED DUPLICATE #news-items-list RULE */

/* Stream Row Item */
.stream-row {
    display: flex;
    align-items: flex-start;
    /* Align to top for wrapped text */
    padding: 6px 4px;
    /* Slightly more padding for the border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    line-height: 1.4;
    text-decoration: none;
    color: var(--stream-text);
    transition: background 0.1s;
    border-radius: 2px;
    font-family: 'Courier New', Courier, monospace;
    /* Retro Terminal Font */
}

/* Watchlist alert styling handled below at line 2220 */

.stream-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Columns */
.stream-time {
    color: var(--stream-dim);
    font-size: 0.7rem;
    /* Smaller time */
    width: 40px;
    flex-shrink: 0;
    margin-right: 8px;
    padding-top: 2px;
    /* Align with text */
    font-family: 'Courier New', Courier, monospace;
}

.stream-source {
    color: #666;
    /* Dimmer source */
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-right: 8px;
    background: #15181c;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
    padding-top: 2px;
    font-family: 'Courier New', Courier, monospace;
}

.stream-ticker {
    font-weight: 700;
    margin-right: 8px;
    font-size: 0.8rem;
    padding-top: 1px;
    font-family: 'Courier New', Courier, monospace;
}

.stream-ticker.bullish {
    color: var(--stream-accent);
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.2);
}

.stream-ticker.bearish {
    color: var(--stream-alert);
    text-shadow: 0 0 5px rgba(255, 80, 80, 0.2);
}

.stream-headline {
    color: var(--stream-text);
    flex-grow: 1;
    white-space: normal;
    word-break: break-word;
    font-size: 11px;
    /* Match Polymarket text size */
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    /* TERMINAL STYLE */
    letter-spacing: 0.5px;
    /* Improve readability */
}

.stream-row:hover .stream-headline {
    color: #fff;
}

/* Scrollbar */
#news-items-list::-webkit-scrollbar {
    width: 4px;
}

#news-items-list::-webkit-scrollbar-track {
    background: var(--stream-bg);
}

#news-items-list::-webkit-scrollbar-thumb {
    background: #333;
}

/* Watchlist Alert - Glowing Pulse Animation */
.watchlist-alert {
    border: 1px solid #FF4444 !important;
    border-radius: 8px !important;
    background: rgba(255, 68, 68, 0.05);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}



/* === NEWS FEED ENHANCEMENTS === */


.news-highlight-mag7 {
    border: 1px solid rgba(255, 51, 102, 0.8) !important;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.4), inset 0 0 4px rgba(255, 51, 102, 0.1);
    animation: pizzint-pulse 2.5s ease-in-out infinite;
}

.news-source-tag {
    font-weight: bold;
    color: var(--electric-cyan);
    margin-right: 6px;
    font-size: 0.9em;
}

/* === PRE-MARKET PULSING RADAR RINGS === */
.whale-pre-market-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: visible !important;
}

.radar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #00ff00;
    border-radius: 50%;
    opacity: 0;
    width: 20px;
    height: 20px;
    /* will-change removed for performance stability */
}

.radar-ring-1 {
    animation: radar-pulse 2.5s ease-out infinite;
}

.radar-ring-2 {
    animation: radar-pulse 2.5s ease-out infinite 0.8s;
}

.radar-ring-3 {
    animation: radar-pulse 2.5s ease-out infinite 1.6s;
}

@keyframes radar-pulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0;
        border-width: 4px;
        transform: translate(-50%, -50%);
    }

    10% {
        opacity: 0.9;
        border-width: 3px;
        transform: translate(-50%, -50%);
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        border-width: 1px;
        transform: translate(-50%, -50%);
    }
}

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    animation: center-pulse 2s ease-in-out infinite;
    /* will-change removed for performance stability */
}

@keyframes center-pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.status-message {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}


/* === WEEKEND MODE: PIXEL WHALE SLEEPING ANIMATION === */
.whale-weekend-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(180deg,
            #0a1628 0%,
            /* Night sky */
            #1a0a2e 30%,
            /* Deep purple transition */
            #0d1f3c 60%,
            /* Dark ocean surface */
            #081426 100%
            /* Deep ocean */
        );
    overflow: hidden;
    border-radius: 4px;
}

/* Pixel Ocean Water Layer */
.pixel-ocean {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg,
            #1e3a5f 0%,
            /* Water surface */
            #152a45 30%,
            #0d1f3c 60%,
            #081426 100%
            /* Deep water */
        );
    overflow: hidden;
}

/* Pixel Wave Rows */
.pixel-wave-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    display: flex;
    gap: 0;
}

.pixel-wave-row:nth-child(1) {
    top: 0;
    animation: pixel-wave 4s ease-in-out infinite;
}

.pixel-wave-row:nth-child(2) {
    top: 12px;
    animation: pixel-wave 4s ease-in-out infinite 0.5s;
    opacity: 0.7;
}

.pixel-wave-row:nth-child(3) {
    top: 24px;
    animation: pixel-wave 4s ease-in-out infinite 1s;
    opacity: 0.5;
}

.pixel-wave {
    width: 16px;
    height: 4px;
    background: rgba(157, 219, 255, 0.3);
    margin-right: 8px;
    border-radius: 2px;
}

@keyframes pixel-wave {

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

    50% {
        transform: translateX(8px);
    }
}


/* Water surface shimmer */
.water-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(157, 219, 255, 0.2) 20%,
            rgba(157, 219, 255, 0.4) 50%,
            rgba(157, 219, 255, 0.2) 80%,
            transparent 100%);
    animation: shimmer-move 6s linear infinite;
}

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

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

/* Weekend Status Text */
.weekend-status-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 20;
}

.weekend-status-text {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: rgba(157, 219, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.weekend-status-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(157, 219, 255, 0.4);
    margin-top: 4px;
    letter-spacing: 1px;
}

/* Stars in the night sky */
.pixel-stars {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 2px;
    height: 2px;
    background: #fff;
    box-shadow:
        20px 5px 0 0 rgba(255, 255, 255, 0.6),
        50px 15px 0 0 rgba(255, 255, 255, 0.4),
        80px 8px 0 0 rgba(255, 255, 255, 0.5),
        120px 20px 0 0 rgba(255, 255, 255, 0.3),
        160px 10px 0 0 rgba(255, 255, 255, 0.6),
        200px 25px 0 0 rgba(255, 255, 255, 0.4),
        240px 5px 0 0 rgba(255, 255, 255, 0.5),
        30px 35px 0 0 rgba(255, 255, 255, 0.3),
        90px 40px 0 0 rgba(255, 255, 255, 0.4),
        150px 38px 0 0 rgba(255, 255, 255, 0.5);
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* === DEMO DATA INDICATOR === */
.demo-indicator {
    font-size: 9px;
    color: #ff9800;
    background: rgba(255, 152, 0, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 152, 0, 0.3);
    animation: demo-pulse 2s ease-in-out infinite;
}

@keyframes demo-pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* === WHALE NEW BADGE === */
.whale-new-badge {
    font-size: 8px;
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.15);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 255, 157, 0.4);
    animation: new-badge-pulse 2s ease-in-out infinite;
    text-shadow: 0 0 4px rgba(0, 255, 157, 0.3);
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes new-badge-pulse {

    0%,
    100% {
        opacity: 0.8;
        box-shadow: 0 0 3px rgba(0, 255, 157, 0.2);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(0, 255, 157, 0.4);
    }
}

/* === MOBILE OPTIMIZATIONS === */
@media screen and (max-width: 768px) {

    /* Adjust widget content padding */
    .widget-content {
        padding: 5px;
    }

    /* Ensure columns stack properly if not already */
    .column {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {

    /* Mobile Adjustments */
    .poly-logo-img {
        height: 22px;
        /* Reduced from 28px for mobile */
    }

    .subtitle-text {
        font-size: 9px;
    }

    .clock {
        font-size: 14px;
    }

    .date {
        font-size: 11px;
    }

    .pigment-word,
    .os-word {
        font-size: 40px;
    }

    body {
        overflow-y: auto;
        /* Enable scrolling on mobile */
        height: auto;
    }

    .terminal-container {
        height: auto;
        padding-bottom: 60px;
        /* Space for bottom ticker */
    }

    .main-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        overflow: visible;
    }

    .column {
        height: auto;
        overflow: visible;
        display: contents;
        /* Flatten columns so widgets can be individually ordered */
    }

    /* Individual widget ordering for mobile */
    .news-feed-container {
        order: 1;
    }

    #news-feed-container {
        height: min(440px, 66vh);
    }

    #news-feed-container.view-news {
        height: min(300px, 46vh);
    }

    #news-feed-container.view-stocktwits {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 132px;
        align-self: stretch;
    }

    .stocktwits-widget-host {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 88px;
        margin-top: 0;
    }

    .stocktwits-panel-chrome {
        align-items: stretch;
        padding: 4px 4px 6px;
    }

    .stocktwits-widget-host .intel-markets-widget,
    .stocktwits-widget-host tv-ticker-tape {
        min-height: 84px;
    }

    #news-feed-container.view-stocktwits .intel-scroll {
        flex: 0 0 auto;
        overflow: visible;
    }

    #news-feed-container.view-stocktwits .stocktwits-trigger {
        width: auto;
    }

    #news-feed-container.view-stocktwits .stocktwits-panel {
        flex: 0 0 auto;
        overflow: visible;
    }

    .stocktwits-trigger {
        font-size: 9px;
        letter-spacing: 0.08em;
        min-width: 78px;
        padding: 0 10px;
    }

    .intel-view-news-trigger {
        min-width: 78px;
        padding: 0 10px;
    }

    .news-item {
        min-width: 230px;
        max-width: 230px;
        padding: 10px;
        gap: 4px;
    }

    .news-meta {
        font-size: 10px;
    }

    .news-headline {
        font-size: 14px;
        line-height: 1.15;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    /* Intel feed first */
    #unusual-whales {
        order: 2;
    }

    /* Unusual Whales second */
    #live-price-action {
        order: 3;
    }

    .expanded-badge-external {
        order: 4;
        align-self: stretch;
        display: block;
        width: auto;
        margin: 0 16px -12px;
        padding: 6px 10px;
        text-align: center;
        font-size: 10px;
        line-height: 1;
        z-index: 20;
    }

    /* Gamma Wall - Capped height on mobile with internal scroll */
    #gamma-wall {
        order: 4;
        max-height: 650px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    #radar-glance {
        order: 4;
        min-height: 560px;
    }

    /* Keep the mobile market board compact with an independently scrolling list. */
    #polymarket-odds {
        order: 5;
        flex: none;
        height: 520px;
        min-height: 0;
        max-height: 520px;
    }

    #polymarket-odds .widget-header {
        flex-shrink: 0;
    }

    #polymarket-container {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Polymarket */
    #trader-fear-index {
        order: 6;
    }

    /* TFI */
    #sector-heatmap {
        order: 7;
    }

    /* Market Map last */

    /* Adjust Widget Heights for Mobile */
    .widget {
        min-height: 0;
        /* Allow shrinking */
        height: auto;
        /* Shrink-wrap content */
        max-height: none;
        flex: none;
    }

    /* Price Action Widget - Exception for proper chart display */
    #live-price-action {
        flex: 1;
        min-height: 440px;
        height: auto;
    }

    #live-price-action.price-action-view-stocks {
        min-height: 690px;
    }

    #live-price-action.price-action-view-indices {
        min-height: 560px;
    }

    #live-price-action.price-action-view-globe {
        min-height: 0;
        height: auto;
    }

    #live-price-action.price-action-view-chart {
        min-height: 600px;
    }

    #live-price-action .widget-content {
        padding: 8px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #chart-container {
        flex: 1;
        min-height: 360px !important;
        height: 100% !important;
        width: 100% !important;
    }

    #live-price-action.price-action-view-stocks .price-action-tradingview-widget .tradingview-widget-container__widget,
    #live-price-action.price-action-view-stocks .price-action-tradingview-widget iframe {
        min-height: 610px;
        height: 610px !important;
    }

    #live-price-action.price-action-view-indices #chart-container {
        min-height: 490px !important;
    }

    #live-price-action.price-action-view-indices .price-action-tradingview-widget {
        min-height: 0;
    }

    #live-price-action.price-action-view-indices .price-action-tradingview-widget .tradingview-widget-container__widget,
    #live-price-action.price-action-view-indices .price-action-tradingview-widget iframe {
        min-height: 480px;
        height: 480px !important;
    }

    #live-price-action.price-action-view-globe #chart-container {
        min-height: 0 !important;
        height: auto !important;
    }

    #live-price-action.price-action-view-globe .price-action-economic-map-widget {
        min-height: 0;
        height: auto !important;
    }

    #live-price-action.price-action-view-chart #chart-container {
        min-height: 520px !important;
    }

    #live-price-action.price-action-view-chart .price-action-tradingview-widget .tradingview-widget-container__widget,
    #live-price-action.price-action-view-chart .price-action-tradingview-widget iframe {
        min-height: 520px;
        height: 520px !important;
    }

    #live-price-action .header-left-group {
        gap: 8px;
        flex-wrap: wrap;
    }

    /* Ensure TradingView iframe fills container */
    #chart-container iframe {
        width: 100% !important;
        height: 100% !important;
    }

    /* Price Action title - Player 2 Ready font */
    #live-price-action .widget-header h2 {
        font-family: 'Press Start 2P', 'VT323', monospace;
        font-size: 10px;
        letter-spacing: 1px;
    }

    /* Price Action view switcher on mobile */
    #live-price-action .price-action-view-btn {
        min-height: 18px;
        padding: 0 5px;
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    #live-price-action .price-action-view-btn + .price-action-view-btn {
        padding-left: 8px;
    }

    /* Header Adjustments */
    .main-header {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .header-utility-links {
        position: static;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .financial-disclaimer {
        position: static;
        width: 100%;
        text-align: right;
        order: 3;
    }

    #market-sessions {
        margin-right: 0;
    }

    .pigment-word,
    .os-word {
        font-size: 32px;
        animation:
            slam-enter-mobile 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
            retroShine 4s linear infinite 0.6s;
        filter: drop-shadow(-1px -1px 0px #FFFFFF);
        text-shadow:
            1px 1px 0 #FF00FF, 2px 2px 0 #FF00FF, 3px 3px 0 #FF00FF, 4px 4px 0 #FF00FF,
            5px 5px 0 #0000FF, 6px 6px 0 #0000FF, 7px 7px 0 #0000FF, 8px 8px 8px rgba(0, 0, 0, 0.5);
    }

    @keyframes slam-enter-mobile {
        0% {
            opacity: 0;
            transform: scale(3);
            filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
        }

        70% {
            opacity: 1;
            transform: scale(0.9);
            filter: drop-shadow(0 0 20px white) drop-shadow(0 0 10px #FF00FF);
        }

        100% {
            transform: scale(1);
            filter: drop-shadow(-1px -1px 0px #FFFFFF);
        }
    }

    @keyframes idle-float-mobile {

        0%,
        100% {
            transform: translateY(0);
            filter: drop-shadow(2px 2px 0px #FF3333);
        }

        50% {
            transform: translateY(-3px);
            filter: drop-shadow(2px 4px 0px #FF3333);
        }
    }

    @keyframes idle-float-mobile {

        0%,
        100% {
            transform: translateY(0);
            filter: drop-shadow(2px 2px 0px #FF3333);
        }

        50% {
            transform: translateY(-3px);
            filter: drop-shadow(2px 4px 0px #FF3333);
        }
    }

    /* Chart Container on Mobile */
    .chart-container {
        min-height: 300px;
    }

    /* Ticker Widget */
    .ticker-widget {
        position: fixed !important;
        bottom: 0 !important;
        left: 0;
        right: 0;
        z-index: 9999;
        min-height: auto;
        height: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    /* Ensure dropdown doesn't get cut off */
    .custom-dropdown {
        margin-right: 0;
    }

    .header-left-group {
        width: 100%;
        justify-content: space-between;
    }

    .market-map-widget-host {
        min-height: min(76vw, 340px);
        max-height: min(82vw, 380px);
        aspect-ratio: 1 / 1;
    }

    /* Typography Adjustments */
    .widget-content {
        font-size: 14px;
    }

    .widget-header h2 {
        font-size: 16px;
    }
}

/* === NEWS FEED SLIDE-IN ANIMATION === */
.news-slide-in {
    animation: news-slide-in 0.5s ease-out forwards;
}

@keyframes news-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Cyber Watchdog Connection Monitor === */
/* === SYSTEM DIAGNOSTICS - CONCEPT 2: INLINE BAR === */
.diag-inline {
    position: fixed;
    top: 5px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px 4px 0;
    /* Remove left padding for alignment */
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 910;
    /* Ensure tooltip appears above Follow button (z-index: 900) */
    user-select: none;
}

/* Minimal WiFi Signal Bars */
.wifi-signal {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 10px;
}

.wifi-bar {
    width: 2px;
    background: #00FF41;
    border-radius: 1px;
    transition: opacity 0.3s, background 0.3s;
}

.wifi-bar[data-bar="1"] {
    height: 3px;
}

.wifi-bar[data-bar="2"] {
    height: 5px;
}

.wifi-bar[data-bar="3"] {
    height: 7px;
}

.wifi-bar[data-bar="4"] {
    height: 10px;
}

/* Signal strength states */
.wifi-signal.weak .wifi-bar:nth-child(n+2) {
    opacity: 0.2;
}

.wifi-signal.fair .wifi-bar:nth-child(n+3) {
    opacity: 0.2;
}

.wifi-signal.good .wifi-bar:nth-child(n+4) {
    opacity: 0.2;
}

.wifi-signal.excellent .wifi-bar {
    opacity: 1;
}

/* Red when disconnected */
.wifi-signal.disconnected .wifi-bar {
    background: #FF3333;
    opacity: 0.3;
}

.inline-status {
    color: #00FF41;
    font-weight: 600;
}

.inline-divider {
    width: 1px;
    height: 10px;
    background: #333;
}

.inline-services {
    display: flex;
    gap: 6px;
    color: #999;
}

.inline-services span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background: #00FF41;
    box-shadow: 0 0 3px rgba(0, 255, 65, 0.4);
}

.dot.yellow {
    background: #FFD700;
    box-shadow: 0 0 3px rgba(255, 215, 0, 0.4);
}

.dot.red {
    background: #FF3333;
    box-shadow: 0 0 3px rgba(255, 51, 51, 0.4);
}

.dot.gray {
    background: #444;
}

.inline-metric {
    color: #5DADE2;
    font-size: 9px;
}

#sector-heatmap .widget-content {
    padding: 6px 8px 8px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

#sector-heatmap .widget-header {
    padding: 4px 8px;
    min-height: 30px;
}

.market-map-widget-host {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: clamp(340px, 40vh, 430px);
    max-height: 430px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.12);
    border-radius: 10px;
    background:
        radial-gradient(circle at top, rgba(0, 191, 255, 0.08), transparent 46%),
        rgba(2, 10, 18, 0.94);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 10px 24px rgba(0, 0, 0, 0.18);
}

.market-map-widget-host .market-map-tradingview-widget,
.market-map-widget-host .tradingview-widget-container,
.market-map-widget-host .tradingview-widget-container__widget,
.market-map-widget-host iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.market-map-widget-host .market-map-tradingview-widget {
    position: relative;
    min-height: 100%;
}

.market-map-widget-host .tradingview-widget-copyright {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    color: rgba(196, 225, 255, 0.72);
    background: rgba(2, 10, 18, 0.72);
    padding: 2px 6px;
    border-radius: 999px;
}

.market-map-widget-host .tradingview-widget-copyright a,
.market-map-widget-host .tradingview-widget-copyright .blue-text {
    color: #00bfff;
    text-decoration: none;
}

.market-map-ts {
    font-size: 9px;
    color: #666;
    margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
}

/* === GAMMA WALL CHART === */
.gamma-chart-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
    background: #000;
}

/* Override chart-container overflow for gamma widget - allow scrolling */
#gamma-container {
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* Gamma Header Removed - Title handled by widget header */

#gamma-chart-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center - allows proper scrolling for indices with many strikes */
    overflow-y: scroll;
    /* Force scrollbar to prevent jitter */
    gap: 2px;
    padding-right: 5px;
    padding-top: 20px;
    padding-bottom: 10px;
    position: relative;
    /* Required for accurate offsetTop calculations */
}

.gamma-extended-signal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 24px;
    margin-bottom: 3px;
    padding: 3px 7px;
    border-top: 1px solid rgba(180, 190, 200, 0.1);
    border-bottom: 1px solid rgba(180, 190, 200, 0.12);
    background: rgba(2, 7, 5, 0.74);
    color: #c8ced6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 0;
}

.gamma-extended-signal.hidden {
    display: none;
}

.gamma-extended-title {
    color: #d8dde5;
    font-weight: 800;
    white-space: nowrap;
}

.gamma-extended-tone {
    color: #f2d58a;
    white-space: nowrap;
    opacity: 0.86;
}

.gamma-extended-contracts {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.gamma-extended-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 1px 4px;
    border: 1px solid rgba(180, 190, 200, 0.12);
    background: rgba(0, 0, 0, 0.18);
    color: #eef2f6;
    white-space: nowrap;
}

.gamma-extended-chip-muted {
    border-color: rgba(200, 206, 214, 0.14);
    color: #8f98a3;
    opacity: 0.78;
}

.gamma-extended-emoji {
    font-size: 10px;
    line-height: 1;
}

.gamma-extended-contract {
    color: #ffffff;
    font-weight: 800;
}

.gamma-extended-metric {
    color: #aeb6c0;
}

.gamma-extended-tag {
    color: #f2d58a;
}

@media (max-width: 720px) {
    .gamma-extended-signal {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 5px;
        font-size: 8px;
    }

    .gamma-extended-tone {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gamma-extended-contracts {
        grid-column: 1 / -1;
        overflow-x: auto;
        padding-bottom: 1px;
    }
}

/* Scrollbar for chart */
#gamma-chart-bars::-webkit-scrollbar {
    width: 4px;
}

#gamma-chart-bars::-webkit-scrollbar-track {
    background: #111;
}

#gamma-chart-bars::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

/* Tooltip Styles */

.gamma-tooltip {
    position: fixed;
    background: #FFFFFF;
    border: 2px solid #000000;
    padding: 8px;
    border-radius: 0;
    pointer-events: none;
    z-index: 9998;
    font-family: 'VT323', monospace;
    font-size: 13px;
    color: #000000;
    min-width: 140px;
    max-width: 200px;
    transition: opacity 0.1s ease;
}

.gamma-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -11px;
    border-width: 11px;
    border-style: solid;
    border-color: #000000 transparent transparent transparent;
}

.gamma-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.gamma-tooltip.call-tooltip {
    /* Kept class for JS coupling but removed colored border for uniform chatbox look */
    box-shadow: none;
}

/* Tiny Loading Bar for Gamma Wall */
.gamma-loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: #00CCFF;
    width: 0%;
    transition: width 0.3s ease-out;
    z-index: 10;
    box-shadow: 0 0 5px #00CCFF;
}

.gamma-loading-bar.loading {
    width: 100%;
    transition: width 1.5s ease-in-out;
}

.gamma-tooltip.put-tooltip {
    /* Kept class for JS coupling but removed colored border for uniform chatbox look */
    box-shadow: none;
}

.tooltip-header {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
    border-bottom: 1px solid #000000;
    padding-bottom: 3px;
    display: flex;
    justify-content: space-between;
    color: #000000 !important;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.tooltip-label {
    color: #000000 !important;
    margin-right: 6px;
}

.tooltip-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #000000 !important;
}

/* Gamma Wall Heatmap Row */
.gamma-row {
    display: grid;
    grid-template-columns: var(--gamma-strike-column-width, 45px) repeat(var(--gamma-date-columns, 3), minmax(0, 1fr));
    align-items: stretch; /* Fill height */
    height: 28px; /* Base height for heatmap cells */
    width: 100%;
    margin-bottom: 0px; /* REMOVE GAP FOR SEAMLESS 2D HEATMAP */
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    transform: translateZ(0);
    will-change: transform;
    position: relative;
}

/* === COMPACT MULTI-DATE LAYOUT (SPY / QQQ WEEKLY VIEW) === */
/* Tighten spacing when the wall renders 4+ expiry columns. */
#gamma-chart-bars.compact-grid .gamma-row {
    height: 24px;
    font-size: 10px;
}

#gamma-chart-bars.compact-grid .gamma-strike {
    width: 40px;
    font-size: 9px;
    padding-right: 4px;
}

#gamma-chart-bars.compact-grid .gex-value {
    font-size: 11px;
}


/* Heatmap Cell container */
.gex-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 0px; /* Seameless look */
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.4); /* Subtle internal divisions */
    border-right: none;
    border-bottom: none;
}
.gex-cell:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.4);
}
.gamma-row:last-child .gex-cell {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.gex-cell:hover {
    filter: brightness(1.2);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.gex-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.25) 1px,
        rgba(0, 0, 0, 0.25) 2px
    );
    z-index: 1;
}

.atm-row .gex-cell:nth-child(2)::before {
    display: none;
}

/* Primary GEX Value */
.gex-value {
    color: #FFF;
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.gex-cell.has-percent-change {
    justify-content: flex-end;
    padding-bottom: 3px;
}

.gex-percent-change {
    position: absolute;
    top: 2px;
    right: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 3;
    pointer-events: none;
}

#gamma-wall[data-metric="vex"] .gex-value {
    color: #2d2018;
    text-shadow: none;
}

#gamma-wall[data-metric="theta"] .gex-value {
    color: #f7fbff;
    text-shadow: none;
}

#gamma-wall[data-metric="iv"] .gex-value {
    color: #f0f7ff;
    text-shadow: none;
}

#gamma-wall[data-metric="vex"] .vex-positive.intensity-2 .gex-value,
#gamma-wall[data-metric="vex"] .vex-positive.intensity-3 .gex-value,
#gamma-wall[data-metric="vex"] .vex-positive.intensity-4 .gex-value,
#gamma-wall[data-metric="vex"] .vex-negative.intensity-2 .gex-value,
#gamma-wall[data-metric="vex"] .vex-negative.intensity-3 .gex-value,
#gamma-wall[data-metric="vex"] .vex-negative.intensity-4 .gex-value {
    color: #fffafc;
    text-shadow: 0 1px 1px rgba(31, 17, 42, 0.35);
}

#gamma-wall[data-metric="theta"] .theta-heat.intensity-0 .gex-value,
#gamma-wall[data-metric="theta"] .theta-heat.intensity-1 .gex-value,
#gamma-wall[data-metric="theta"] .theta-heat.intensity-2 .gex-value,
#gamma-wall[data-metric="theta"] .theta-heat.intensity-3 .gex-value {
    color: #31435f;
    text-shadow: none;
}

#gamma-wall[data-metric="theta"] .theta-heat.intensity-4 .gex-value,
#gamma-wall[data-metric="theta"] .gex-cell.theta-peak-node .gex-value {
    color: #fff8fb;
    text-shadow: 0 1px 1px rgba(72, 22, 36, 0.28);
}

#gamma-wall[data-metric="iv"] .iv-call-rich.intensity-2 .gex-value,
#gamma-wall[data-metric="iv"] .iv-call-rich.intensity-3 .gex-value,
#gamma-wall[data-metric="iv"] .iv-call-rich.intensity-4 .gex-value,
#gamma-wall[data-metric="iv"] .gex-cell.iv-call-peak-node .gex-value,
#gamma-wall[data-metric="iv"] .iv-put-rich.intensity-2 .gex-value,
#gamma-wall[data-metric="iv"] .iv-put-rich.intensity-3 .gex-value,
#gamma-wall[data-metric="iv"] .iv-put-rich.intensity-4 .gex-value,
#gamma-wall[data-metric="iv"] .gex-cell.iv-put-peak-node .gex-value {
    color: #fffaf8;
    text-shadow: 0 1px 1px rgba(43, 20, 8, 0.28);
}

/* Secondary Volume Text (Tiny, Top-Left / Bottom-Right) */
.gex-vol-put {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.gex-vol-call {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

/* Gamma wall colors aligned to the market map shading style */
.gex-positive.intensity-0 { background: #082f17; border-color: #14562b; }
.gex-positive.intensity-1 { background: #0a3d1d; border-color: #1a6b35; }
.gex-positive.intensity-2 { background: #0d5228; border-color: #1e8e3e; }
.gex-positive.intensity-3 { background: #117a33; border-color: #2eb851; }
.gex-positive.intensity-4 { background: #15a043; border-color: #3ce06a; box-shadow: 0 0 8px rgba(60, 224, 106, 0.3); }

.gex-negative.intensity-0 { background: #341010; border-color: #651919; }
.gex-negative.intensity-1 { background: #4a1111; border-color: #8b2222; }
.gex-negative.intensity-2 { background: #661111; border-color: #cc2222; }
.gex-negative.intensity-3 { background: #8b1515; border-color: #e03030; }
.gex-negative.intensity-4 { background: #b01a1a; border-color: #ff4444; box-shadow: 0 0 8px rgba(255, 68, 68, 0.3); }

/* Heatmap Intensity Colors (VEX) */
/* Richer VEX scale: muted but clearly tinted from the first nonzero bucket */
.vex-positive.intensity-0 { background: #d8b4ff; border-color: #c695f3; }
.vex-positive.intensity-1 { background: #bf8df3; border-color: #ab72de; }
.vex-positive.intensity-2 { background: #9a67d1; border-color: #8451b8; }
.vex-positive.intensity-3 { background: #7448ad; border-color: #623993; }
.vex-positive.intensity-4 { background: #532d84; border-color: #6f46a4; box-shadow: inset 0 0 14px rgba(24, 10, 45, 0.34); }

.vex-negative.intensity-0 { background: #ffd29a; border-color: #ffbf78; }
.vex-negative.intensity-1 { background: #ffb86b; border-color: #f5a14a; }
.vex-negative.intensity-2 { background: #ff9e3d; border-color: #e98a1f; }
.vex-negative.intensity-3 { background: #de7700; border-color: #f08c14; box-shadow: inset 0 0 10px rgba(126, 60, 0, 0.14); }
.vex-negative.intensity-4 { background: #b85700; border-color: #db7c16; box-shadow: inset 0 0 14px rgba(92, 39, 0, 0.32); }

/* Heatmap Intensity Colors (THETA) */
.theta-heat.intensity-0 { background: #53eeb4; border-color: #7df3c8; }
.theta-heat.intensity-1 { background: #82f5cf; border-color: #acf9e0; }
.theta-heat.intensity-2 { background: #edf3ff; border-color: #dbe7ff; box-shadow: inset 0 0 10px rgba(112, 143, 210, 0.08); }
.theta-heat.intensity-3 { background: #ffc9ad; border-color: #ffb590; box-shadow: inset 0 0 10px rgba(173, 91, 44, 0.12); }
.theta-heat.intensity-4 { background: #db4d5a; border-color: #f47e88; box-shadow: inset 0 0 12px rgba(255, 236, 240, 0.18), 0 0 10px rgba(219, 77, 90, 0.28); }

/* Heatmap Intensity Colors (IV SKEW) */
.iv-call-rich.intensity-0 { background: #12363a; border-color: #21575d; }
.iv-call-rich.intensity-1 { background: #16565c; border-color: #247f87; }
.iv-call-rich.intensity-2 { background: #1f8185; border-color: #2bb1b3; box-shadow: inset 0 0 10px rgba(7, 36, 38, 0.14); }
.iv-call-rich.intensity-3 { background: #29aead; border-color: #43d1cf; box-shadow: inset 0 0 10px rgba(8, 43, 42, 0.12); }
.iv-call-rich.intensity-4 { background: #3dccbf; border-color: #8df8ee; box-shadow: inset 0 0 12px rgba(227, 255, 252, 0.24), 0 0 10px rgba(61, 204, 191, 0.28); }

.iv-put-rich.intensity-0 { background: #341420; border-color: #5a2236; }
.iv-put-rich.intensity-1 { background: #561b33; border-color: #8a2c50; }
.iv-put-rich.intensity-2 { background: #842744; border-color: #bd4169; box-shadow: inset 0 0 10px rgba(52, 12, 25, 0.14); }
.iv-put-rich.intensity-3 { background: #b33156; border-color: #e65d82; box-shadow: inset 0 0 10px rgba(63, 14, 31, 0.12); }
.iv-put-rich.intensity-4 { background: #d6375f; border-color: #ff94b0; box-shadow: inset 0 0 12px rgba(255, 236, 243, 0.24), 0 0 10px rgba(214, 55, 95, 0.28); }

/* Neutral/Zero */
.gex-neutral { background: #1a1a1a; border-color: #333; }

.gamma-strike {
    width: 45px; /* Narrower to give heatmap cells more space */
    text-align: right;
    padding-right: 6px;
    color: #8f96a3; /* Quieter ladder so the heatmap stays primary */
    font-weight: 500;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    white-space: nowrap;
}

.gamma-strike-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.gamma-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gamma-cue-primary.trigger-cue {
    animation: trigger-pulse 2s ease-in-out infinite;
}

.gamma-cue-secondary {
    opacity: 0.58;
    filter: grayscale(1) saturate(0.1);
    text-shadow: none !important;
    animation: none !important;
}

.vex-positive-strike,
.vex-negative-strike {
    position: relative;
    font-weight: bold;
}

.vex-positive-strike {
    color: var(--vex-positive-color);
    text-shadow: 0 0 5px rgba(208, 140, 255, 0.45);
}

.vex-negative-strike {
    color: var(--vex-negative-color);
    text-shadow: 0 0 5px rgba(255, 138, 31, 0.45);
}

.vex-positive-strike::before,
.vex-negative-strike::before {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    letter-spacing: 1.1px;
    white-space: nowrap;
    opacity: 0.95;
}

.vex-positive-strike::before {
    content: "+VEX";
    color: var(--vex-positive-color);
}

.vex-negative-strike::before {
    content: "-VEX";
    color: var(--vex-negative-color);
}

.vex-apex-strike {
    color: #d8b4ff;
    text-shadow: 0 0 7px rgba(187, 107, 255, 0.72);
}

.vex-apex-strike::before {
    content: none;
}

.theta-burn-strike {
    color: #ff8d97;
    text-shadow: 0 0 6px rgba(219, 77, 90, 0.45);
}

.theta-burn-strike::before {
    content: "HEAT";
    color: #ff8d97;
}

.iv-call-skew-strike,
.iv-put-skew-strike {
    position: relative;
    font-weight: bold;
}

.iv-call-skew-strike {
    color: #70f1e4;
    text-shadow: 0 0 6px rgba(61, 204, 191, 0.5);
}

.iv-put-skew-strike {
    color: #ff97b2;
    text-shadow: 0 0 6px rgba(214, 55, 95, 0.46);
}

.iv-call-skew-strike::before,
.iv-put-skew-strike::before {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    letter-spacing: 1.1px;
    white-space: nowrap;
    opacity: 0.95;
}

.iv-call-skew-strike::before {
    content: "+IV";
    color: #70f1e4;
}

.iv-put-skew-strike::before {
    content: "-IV";
    color: #ff97b2;
}

.vex-positive-row .gex-cell,
.vex-negative-row .gex-cell {
    filter: none;
}

.vex-positive-row .gex-cell {
    box-shadow: inset 0 0 0 1px rgba(135, 100, 192, 0.18);
}

.vex-negative-row .gex-cell {
    box-shadow: inset 0 0 0 1px rgba(245, 134, 18, 0.18);
}

.gex-cell.vex-apex-node {
    background: #7b2cbf !important;
    border-color: #d8b4ff !important;
    box-shadow: inset 0 0 0 1px rgba(245, 235, 255, 0.78), 0 0 18px rgba(167, 80, 255, 0.92);
    z-index: 14;
    animation: vex-apex-warning 1.15s ease-in-out infinite;
}

.gex-cell.vex-apex-node .gex-value {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
    font-weight: bold;
}

.gex-cell.gex-vex-node {
    background: #7b2cbf !important;
    border-color: rgba(0, 0, 0, 0.45) !important;
    box-shadow: 0 0 16px rgba(123, 44, 191, 0.82);
    z-index: 13;
}

.gex-cell.gex-vex-node .gex-value {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.42);
    font-weight: bold;
}

.gex-cell .vex-apex-label {
    position: absolute;
    top: 2px;
    left: 3px;
    z-index: 2;
    color: #ff4d4d;
    font-family: 'Space Mono', monospace;
    font-size: 6px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.75);
}

.gex-cell.theta-peak-node {
    background: #c92e43 !important;
    border-color: #ff8f9d !important;
    box-shadow: inset 0 0 0 1px rgba(255, 238, 241, 0.82), 0 0 14px rgba(201, 46, 67, 0.86);
    z-index: 13;
}

.gex-cell.iv-call-peak-node {
    background: #3dccbf !important;
    border-color: #aafff5 !important;
    box-shadow: inset 0 0 0 1px rgba(235, 255, 253, 0.84), 0 0 14px rgba(61, 204, 191, 0.84);
    z-index: 13;
}

.gex-cell.iv-put-peak-node {
    background: #d6375f !important;
    border-color: #ffb7ca !important;
    box-shadow: inset 0 0 0 1px rgba(255, 241, 246, 0.84), 0 0 14px rgba(214, 55, 95, 0.82);
    z-index: 13;
}

@keyframes vex-apex-warning {
    0%,
    100% {
        background: #7b2cbf;
        box-shadow: inset 0 0 0 1px rgba(245, 235, 255, 0.72), 0 0 12px rgba(167, 80, 255, 0.72);
    }
    50% {
        background: #9d4edd;
        box-shadow: inset 0 0 0 1px rgba(245, 235, 255, 0.95), 0 0 22px rgba(167, 80, 255, 1);
    }
}

@keyframes gamma-pulse {
    0% {
        opacity: 0.8;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }

    50% {
        opacity: 1.0;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
    }

    100% {
        opacity: 0.8;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
}

.gamma-max-wall {
    animation: gamma-pulse 1.5s infinite ease-in-out;
    will-change: opacity, box-shadow;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 12px rgba(255, 255, 255, 0.18);
}

/* Per-date gamma flip node: orange flashing marker on the exact cell only */
.gex-cell.gamma-flip-node {
    background: #ff8a1f !important;
    border-color: #ffb067 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 220, 184, 0.55), 0 0 10px rgba(255, 138, 31, 0.8);
    z-index: 12;
    animation: gamma-flip-node-flash 1.2s ease-in-out infinite;
}

.gex-cell.gamma-flip-node .gex-value {
    color: #111;
    text-shadow: none;
}

@keyframes gamma-flip-node-flash {
    0%,
    100% {
        background: #ff8a1f;
        box-shadow: inset 0 0 0 1px rgba(255, 220, 184, 0.55), 0 0 8px rgba(255, 138, 31, 0.7);
    }
    50% {
        background: #ff6f00;
        box-shadow: inset 0 0 0 1px rgba(255, 220, 184, 0.75), 0 0 14px rgba(255, 111, 0, 0.95);
    }
}

.gamma-axis-label {
    display: flex;
    padding: 2px 0px; /* Aligned with grid */
    margin-left: 45px; /* Offset by Strike column */
    border-top: 1px solid #222;
    margin-top: 2px;
}

#gamma-headers {
    display: grid;
    grid-template-columns: var(--gamma-strike-column-width, 45px) repeat(var(--gamma-date-columns, 3), minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
    padding: 0;
    padding-bottom: 4px;
    padding-right: 5px; /* match scrollbar offset */
}


.gamma-axis-spacer {
    display: block; /* Empty space above strike index column */
}

.gamma-axis-col {
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 15px; /* Larger header text */
    color: #ccc;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.gamma-axis-top {
    border-top: none;
    border-bottom: 1px solid #222;
    margin-top: 0;
    margin-bottom: 0px; /* No gap below header to touch the cells */
}

.gamma-axis-top span:first-child {
    color: #ff6666;
}

.gamma-axis-top span:last-child {
    color: #66ff88;
}

.gamma-axis-label.oi-view {
    display: none;
}

#gamma-chart-bars.oi-view {
    padding-top: 0 !important;
}

.gamma-chart-wrapper.oi-view {
    padding-top: 2px;
}

.gamma-oi-view-shell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100%;
}

.gamma-oi-active-date {
    padding-left: 42px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.12em;
    color: #8e95a4;
    text-transform: uppercase;
}

.gamma-oi-view {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gamma-oi-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    min-height: 14px;
    margin-bottom: 0;
    font-family: 'JetBrains Mono', monospace;
}

.gamma-oi-strike {
    text-align: right;
    color: #9ba3b2;
    font-size: 9px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.gamma-oi-bars {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    min-height: 13px;
    cursor: pointer;
}

.gamma-oi-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(173, 181, 196, 0.34);
    transform: translateX(-0.5px);
    box-shadow: 0 0 6px rgba(173, 181, 196, 0.12);
}

.gamma-oi-side {
    position: relative;
    height: 8px;
}

.gamma-oi-side-put {
    display: flex;
    justify-content: flex-end;
}

.gamma-oi-side-call {
    display: flex;
    justify-content: flex-start;
}

.gamma-oi-bar {
    position: absolute;
    top: 50%;
    height: 9px;
    transform: translateY(-50%);
    border-radius: 0;
}

.gamma-oi-bar-base {
    height: 7px;
    opacity: 0.96;
    z-index: 1;
}

.gamma-oi-side-put .gamma-oi-bar {
    right: 0;
}

.gamma-oi-side-call .gamma-oi-bar {
    left: 0;
}

.gamma-oi-bar-put {
    background: linear-gradient(90deg, rgba(190, 64, 214, 0.96), rgba(255, 72, 228, 0.92));
    box-shadow:
        inset 0 0 0 1px rgba(255, 190, 247, 0.08),
        0 0 8px rgba(255, 72, 228, 0.14);
}

.gamma-oi-bar-call {
    background: linear-gradient(90deg, rgba(84, 212, 170, 0.92), rgba(126, 241, 198, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(206, 255, 236, 0.08),
        0 0 8px rgba(84, 212, 170, 0.12);
}

.gamma-oi-row.atm-row .gamma-oi-strike {
    color: #f2f6ff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.18);
}

.gamma-oi-row.atm-row .gamma-oi-bars {
    background: rgba(255, 255, 255, 0.025);
}

.gamma-oi-axis {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 42px repeat(9, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    padding-top: 3px;
    padding-bottom: 2px;
    background: linear-gradient(180deg, rgba(18, 22, 31, 0), rgba(18, 22, 31, 0.92) 32%);
    border-top: 1px solid rgba(60, 67, 79, 0.45);
}

.gamma-oi-axis::before {
    content: '';
    display: block;
}

.gamma-oi-axis-label {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #d4bc84;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.gamma-oi-axis-label.is-zero {
    color: #c9d1de;
}

.gamma-dte-text {
    font-family: 'VT323', monospace;
    font-size: 11px;
    color: #FFF;
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.gamma-price-badge {
    background: #1a1a1a;
    border: 1px solid #00CCFF;
    color: #00CCFF;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 5px #00CCFF;
}

/* Current Price Indicator */
.current-price-row {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px dashed #666;
    border-bottom: 1px dashed #666;
}

.current-price-row .gamma-strike {
    color: #FFF;
    text-shadow: 0 0 5px #FFF;
}

/* VIEW Button */
.view-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    font-family: 'VT323', monospace;
    font-size: 14px;
    padding: 2px 8px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 10px;
    transition: all 0.2s;
}

.view-btn:hover {
    border-color: #00FF9D;
    color: #00FF9D;
    box-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
}

.view-btn.active {
    background: rgba(0, 255, 157, 0.1);
    border-color: #00FF9D;
    color: #00FF9D;
}

/* Polymarket probability and relevance context */
.polymarket-reason {
    color: var(--text-secondary, #999);
    font-size: 0.68rem;
    line-height: 1.4;
    margin: 3px 0 6px;
}

.polymarket-probability-badge {
    display: inline-block;
    background: rgba(255, 165, 0, 0.15);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes pulse-amber {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(255, 165, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0);
    }
}

/* Weekend Data Badge */
.weekend-badge {
    font-size: 0.7em;
    background: #333;
    color: #aaa;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid #555;
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* Monday Preview Badge (Caution Orange) */
.monday-badge {
    font-size: 0.7em;
    background: rgba(255, 152, 0, 0.15);
    color: #FF9800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(255, 152, 0, 0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Today Badge - Green (After Hours) */
.today-badge-green {
    font-size: 0.7em;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(76, 175, 80, 0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Today Badge - Purple (Pre-Market) */
.today-badge-purple {
    font-size: 0.7em;
    background: rgba(156, 39, 176, 0.15);
    color: #E040FB;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(156, 39, 176, 0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Today Badge - Dim (Overnight) */
.today-badge-dim {
    font-size: 0.7em;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* === API STATUS GRID === */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    margin-top: 4px;
}

.status-item {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00FF41;
    font-size: 10px;
    text-align: center;
    padding: 2px 0;
    border-radius: 2px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.status-item.offline {
    background: rgba(255, 51, 51, 0.15);
    border-color: #FF3333;
    color: #FF3333;
    animation: status-blink 1s infinite;
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
}

@keyframes status-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.impact-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    border-top: 1px solid #333;
    padding-top: 4px;
}

.impact-row .value {
    font-weight: bold;
    color: #00FF41;
}

.impact-row .value.critical {
    color: #FF3333;
    animation: glitch-text 0.2s infinite;
}

@keyframes glitch-text {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(-1px, -1px);
    }

    60% {
        transform: translate(1px, 1px);
    }

    80% {
        transform: translate(1px, -1px);
    }

    100% {
        transform: translate(0);
    }
}

/* Sign Out Button - Fixed below X/Discord */
.sign-out-btn {
    position: fixed;
    top: 65px;
    left: 20px;
    background: rgba(255, 51, 51, 0.2);
    border: 1px solid #FF3333;
    color: #FF3333;
    padding: 4px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    z-index: 900;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.sign-out-btn:hover {
    background: rgba(255, 51, 51, 0.4);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
    color: #FFF;
}

/* Compact VIP session welcome */
.vip-overlay{text-shadow:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:999999;box-sizing:border-box;color:#ddd;font:12px/1.6 "JetBrains Mono",monospace;animation:vip-welcome-in .16s ease-out}.vip-overlay *{box-sizing:border-box}
.vip-overlay{width:min(420px,calc(100vw - 32px));background:#101010;border:1px solid #333;box-shadow:0 16px 60px #0009}.vip-overlay .header{height:33px;display:flex;align-items:center;justify-content:space-between;background:#191919;border-bottom:1px solid #303030;padding:0 13px;font-size:10px;color:#aaa;letter-spacing:.5px}.vip-overlay .close{background:none;border:0;color:#888;font:17px monospace;cursor:pointer;padding:0 2px}.vip-overlay .body{padding:23px 20px 25px}.vip-overlay .access{display:flex;align-items:center;gap:8px;color:#78b89c;font-size:10px;letter-spacing:.6px}.vip-overlay .light{height:5px;width:5px;background:#78b89c;box-shadow:0 0 5px #78b89c40}.vip-overlay h1{font-family:inherit;color:#ddd;text-transform:none;box-shadow:none;text-shadow:none;font-size:22px;font-weight:500;letter-spacing:-.6px;margin:12px 0 5px}.vip-overlay .hint{color:#777;font-size:11px;margin:0}.vip-overlay .footer{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-top:1px solid #292929;color:#666;font-size:9px}.vip-overlay .enter{border:0;background:none;color:#d0a765;font:11px 'JetBrains Mono',monospace;cursor:pointer;padding:3px 0}.vip-overlay .enter:hover{color:#f2cd8f}.vip-overlay .close:hover{color:#ddd}.vip-overlay button:focus-visible{outline:1px solid #b89358;outline-offset:3px}

@keyframes vip-welcome-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.vip-overlay{animation:none}}


/* Orange Badge for Tomorrow's Expiry */
.today-badge-orange {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
    border: 1px solid #FFA500;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 8px;
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 165, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0);
    }
}

/* Gamma Wall Expiry Toggle */
.gamma-toggle-container {
    display: flex;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-left: 10px;
    overflow: hidden;
}

.gamma-toggle-btn {
    padding: 4px 8px;
    font-family: var(--font-pixel);
    font-size: 10px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid var(--border-color);
}

.gamma-toggle-btn:last-child {
    border-right: none;
}

.gamma-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.gamma-toggle-btn.active {
    background: var(--accent-cyan);
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Orange active state for Tomorrow */
.gamma-toggle-btn[data-mode="tomorrow"].active {
    background: #FFA500;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

/* Gamma Wall Expiry Toggle */
.gamma-toggle-container {
    display: flex;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-left: 10px;
    overflow: hidden;
}

.gamma-toggle-btn {
    padding: 2px 6px;
    /* Smaller padding */
    font-family: var(--font-pixel);
    font-size: 9px;
    /* Smaller font size */
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid var(--border-color);
}

.gamma-toggle-btn:last-child {
    border-right: none;
}

.gamma-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.gamma-toggle-btn.active {
    background: var(--accent-cyan);
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Orange active state for Tomorrow */
.gamma-toggle-btn[data-mode="tomorrow"].active {
    background: #FFA500;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

/* Smaller Gamma Wall Badges */
.today-badge-green,
.today-badge-purple,
.today-badge-dim,
.today-badge-orange,
.monday-badge {
    font-size: 9px !important;
    padding: 1px 4px !important;
    line-height: 1 !important;
    border-radius: 2px !important;
    vertical-align: middle !important;
}

/* Support Text below Sign Out */
.support-text {
    position: fixed;
    top: 95px;
    /* Below Sign Out button (65px + ~25px height + gap) */
    left: 20px;
    font-family: 'VT323', monospace;
    font-size: 10px;
    color: #888;
    z-index: 900;
    pointer-events: none;
    letter-spacing: 1px;
    opacity: 0.7;
    text-transform: uppercase;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

/* Financial Disclaimer above Clock */
.financial-disclaimer {
    position: absolute;
    top: 5px;
    right: 20px;
    font-family: 'VT323', monospace;
    font-size: 10px;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    pointer-events: none;
}

.header-utility-links {
    position: absolute;
    top: 22px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 200;
}

.header-utility-link {
    font-family: 'VT323', monospace;
    font-size: 12px;
    text-transform: uppercase;
    transition: color 0.2s;
    text-decoration: none;
}

.header-utility-link.referral-link {
    appearance: none;
    background: transparent;
    border: 0;
    color: #00FF41;
    padding: 0;
    font-family: 'VT323', monospace;
    font-size: 12px;
    line-height: normal;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.45);
}

.header-utility-link.referral-link:hover {
    color: #444;
    text-shadow: none;
}

.referral-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    font-family: 'VT323', monospace;
}

.referral-modal.hidden {
    display: none;
}

.referral-modal-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
}

/* Compact referral terminal, matching the approved dashboard chrome. */
.referral-window { position:relative; width:min(520px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid #42443f; background:#0c0e0d; color:#dedfdb; box-shadow:0 16px 60px #0009; font:12px/1.5 'JetBrains Mono',monospace; }
.referral-window-header { display:flex; align-items:center; justify-content:space-between; padding:9px 16px; border-bottom:1px solid #30332f; background:#181b18; font-size:12px; letter-spacing:.08em; }
.referral-close-btn { border:0; background:none; color:#ef6868; font:22px/1 monospace; cursor:pointer; padding:0 4px; }
.referral-window-body { padding:18px; }
.referral-offer { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding-bottom:18px; border-bottom:1px solid #282c28; }
.referral-offer div { display:flex; flex-direction:column; }
.referral-offer small { color:#8c938b; font-size:10px; letter-spacing:.06em; }
.referral-offer strong { font-size:30px; font-weight:500; color:#e5e7df; line-height:1.6; }
.referral-offer em { font-size:12px; font-style:normal; color:#91b39b; }
.referral-offer span { font-size:11px; color:#90978f; }
.referral-window-body label { display:block; margin:17px 0 6px; color:#949a92; font-size:10px; letter-spacing:.08em; }
.referral-copy-row { display:flex; gap:10px; }
.referral-copy-row input { min-width:0; flex:1; border:1px solid #31362f; border-radius:0; background:#080a08; color:#b5c9b8; padding:9px; font:12px monospace; }
.referral-copy-row button { border:0; background:none; color:#d0a35f; padding:6px 0; min-width:78px; font:11px monospace; cursor:pointer; }
.referral-copy-row button:hover { color:#f4ca85; }
.referral-window button:focus-visible { outline:1px solid #d0a35f; outline-offset:3px; }
.referral-progress { display:grid; grid-template-columns:1fr 1fr; margin:20px 0 16px; border-top:1px solid #282c28; border-bottom:1px solid #282c28; }
.referral-progress div { padding:14px 0; font-size:10px; color:#949a92; }
.referral-progress div + div { padding-left:18px; border-left:1px solid #282c28; }
.referral-progress span { display:block; color:#9cc1a7; font-size:23px; font-variant-numeric:tabular-nums; margin-bottom:3px; }
#referral-modal-status { color:#bbc0b6; font-size:11px; }
.referral-pending { margin:-6px 0 12px; color:#d0a35f; font-size:10px; letter-spacing:.04em; }
.referral-verification-note { margin-top:10px; color:#747c72; font-size:10px; }
.referral-verification-note a { color:#929b8e; }
.billing-link { appearance:none; background:none; border:0; padding:0; }
.billing-link:disabled { opacity:.6; cursor:wait; }
@media(max-width:380px) { .referral-window-body { padding:12px; } .referral-offer { gap:10px; } .referral-offer span { font-size:10px; } }

.billing-link {
    color: #00FFFF;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.billing-link:hover {
    color: #444;
    text-shadow: none;
}

.docs-link {
    color: #FFCC00;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.45);
}

.docs-link:hover {
    color: #444;
    text-shadow: none;
}

/* Price Notification Modal */
.price-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

.price-modal-content {
    background: linear-gradient(135deg, rgba(20, 10, 40, 0.95), rgba(10, 5, 25, 0.95));
    border: 2px solid #9D4EDD;
    border-radius: 12px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.4);
    max-width: 400px;
}

.price-modal-content h2 {
    font-family: 'VT323', monospace;
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.price-modal-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.price-highlight {
    font-family: 'VT323', monospace;
    font-size: 64px;
    font-weight: bold;
    color: #00FFFF;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin-bottom: 20px;
}

.price-highlight span {
    font-size: 24px;
    color: #888;
}

.price-cta {
    display: inline-block;
    background: linear-gradient(90deg, #9D4EDD, #7B2CBF);
    color: white;
    font-family: 'VT323', monospace;
    font-size: 20px;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.price-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
}

.price-dismiss {
    display: block;
    background: transparent;
    border: none;
    color: #555;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
}

.price-dismiss:hover {
    color: #888;
}

/* === RADAR ANIMATION (Unusual Whales Pre-Market/Offline) === */
.whale-pre-market-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    /* Adjusted to fit widget */
    min-height: 300px;
}

.radar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    /* Scaled down for widget */
    height: 200px;
    z-index: 0;
    pointer-events: none;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--electric-cyan);
    /* Use theme color */
    border-radius: 50%;
    opacity: 0;
    width: 20px;
    height: 20px;
    will-change: transform, opacity, width, height;
}

.radar-ring-1 {
    animation: radar-pulse 2.5s ease-out infinite;
}

.radar-ring-2 {
    animation: radar-pulse 2.5s ease-out infinite 0.8s;
}

.radar-ring-3 {
    animation: radar-pulse 2.5s ease-out infinite 1.6s;
}

@keyframes radar-pulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0;
        border-width: 4px;
        transform: translate(-50%, -50%);
    }

    10% {
        opacity: 0.5;
        border-width: 3px;
        transform: translate(-50%, -50%);
    }

    100% {
        width: 250px;
        /* Scaled */
        height: 250px;
        opacity: 0;
        border-width: 1px;
        transform: translate(-50%, -50%);
    }
}

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--electric-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--electric-cyan), 0 0 20px var(--electric-cyan);
    animation: center-pulse 2s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes center-pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.status-message {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    color: #888;
    font-family: var(--font-mono);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* === ECONOMIC EVENT CALENDAR (RETRO ARCADE STYLE) === */

/* Trigger Animation (Pulsing Red Border) */
@keyframes criticalPulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 51, 51, 0);
        border-color: rgba(255, 51, 51, 0.5);
        color: #FFFFFF;
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 51, 51, 0.8);
        border-color: #FF3333;
        color: #FF3333;
        text-shadow: 0 0 5px #FF3333;
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 51, 51, 0);
        border-color: rgba(255, 51, 51, 0.5);
        color: #FFFFFF;
    }
}

.date.critical-event {
    animation: criticalPulse 1.5s infinite ease-in-out;
    border: 2px solid #FF3333;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Live countdown under the date (red on a release day, amber otherwise). */
.date.critical-event::after {
    content: attr(data-next);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'VT323', monospace;
    font-size: 8px;
    color: #FF3333;
    letter-spacing: 0.5px;
    white-space: nowrap;
    animation: criticalPulse 1.5s infinite ease-in-out;
}

.date.critical-event:hover {
    background: rgba(255, 51, 51, 0.2);
    transform: scale(1.05);
}

/* Modal Overlay */
.retro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.retro-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

/* Terminal Window Modal */
.crt-window {
    position: relative;
    width: 600px;
    max-width: 90%;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono, 'JetBrains Mono', Consolas, monospace);
    animation: windowOpen 0.2s ease-out;
    overflow: hidden;
}

@keyframes windowOpen {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
.crt-header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    color: #c9d1d9;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crt-title {
    font-family: var(--font-mono, 'JetBrains Mono', Consolas, monospace);
    font-size: 12px;
    letter-spacing: 0px;
    text-transform: uppercase;
    font-weight: 600;
    color: #8b949e;
}

.crt-close-btn {
    background: none;
    border: none;
    color: #8b949e;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    font-weight: normal;
    padding: 0 4px;
}

.crt-close-btn:hover {
    color: #e6edf3;
}

/* Content Area */
.crt-content {
    position: relative;
    padding: 20px;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    color: #00FFFF;
    /* Cyber Blue Text */
}

.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}

.event-list-header {
    display: flex;
    justify-content: flex-end;
    /* Align status to the right */
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 10px;
}









/* Shared calendar content follows its modal, floating panel, or embedded frame. */
.economic-calendar-widget-host {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #0b0c0d;
    box-shadow: none;
}
.economic-calendar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border-bottom: 1px solid #292b2e;
    font-family: 'JetBrains Mono', monospace;
}
.economic-calendar-heading h2 { margin: 0; color: #ddd; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; text-shadow: none; }
.economic-calendar-heading span { color: #868b92; font-size: 9px; }
.economic-calendar-mount,
.economic-calendar-tradingview-widget,
.economic-calendar-tradingview-widget .tradingview-widget-container__widget {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
}
.economic-calendar-tradingview-widget iframe { width: 100%; height: 100%; border: 0; flex: 1 1 0; min-height: 0; }
.economic-calendar-tradingview-widget .tradingview-widget-copyright {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-top: 1px solid #24272b;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #868b92;
}
.economic-calendar-tradingview-widget .tradingview-widget-copyright a,
.economic-calendar-tradingview-widget .tradingview-widget-copyright .blue-text { color: #9ba5af; text-decoration: none; }
.economic-calendar-tradingview-widget .tradingview-widget-copyright a:hover { color: #e8b86d; }

.crt-status {
    font-family: 'VT323', monospace;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background-color: #00FF00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF00;
    animation: ledBlink 1.5s infinite;
}

@keyframes ledBlink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px #00FF00;
    }

    50% {
        opacity: 0.3;
        box-shadow: 0 0 2px #00FF00;
    }
}

.status-active {
    color: #00FF00;
    font-weight: bold;
    animation: statusActiveBlink 1s step-end infinite;
}

@keyframes statusActiveBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.blink-text {
    animation: blink 1s step-end infinite;
    color: #FF3333;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Event List */
.retro-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-row {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    /* Softened Border */
    background: rgba(0, 81, 202, 0.1);
    transition: all 0.2s;
}

.event-row:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00FFFF;
}

/* Boss Encounter (High Impact) */
.event-row.boss-encounter {
    border: 2px solid #FF3333;
    background: rgba(255, 51, 51, 0.1);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.event-row.boss-encounter .event-title {
    color: #FF3333;
    text-shadow: 0 0 5px #FF3333;
}

/* Level Cleared (Passed) */
.event-row.level-cleared {
    opacity: 0.6;
    border-color: #00FF00;
    background: rgba(0, 255, 0, 0.05);
}

.event-row.level-cleared .event-title {
    color: #00FF00;
    text-decoration: line-through;
}

.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}



.event-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-countdown {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.event-title {
    font-size: 12px;
    color: #FFFFFF;
    font-family: 'Press Start 2P', cursive;
    /* Retro Pixel Font */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-timer {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.event-date-label {
    font-family: 'VT323', monospace;
    font-size: 11px;
    color: #7FDBFF;
    letter-spacing: 1px;
    opacity: 0.85;
}

.urgent-timer {
    color: #FF3333;
    text-shadow: 0 0 5px #FF3333;
}

.urgent-pulse {
    animation: urgentPulse 1s infinite alternate;
    border-color: #FF3333 !important;
}

@keyframes urgentPulse {
    from {
        box-shadow: 0 0 5px rgba(255, 51, 51, 0.2);
        background: rgba(255, 51, 51, 0.1);
    }

    to {
        box-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
        background: rgba(255, 51, 51, 0.2);
    }
}

/* Critical Alert (< 60s) */
.critical-timer {
    color: #FF0000 !important;
    text-shadow: 0 0 10px #FF0000, 0 0 20px #FF0000;
    animation: criticalFlash 0.5s infinite alternate;
}

.critical-pulse {
    border-color: #FF0000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: criticalBgFlash 0.5s infinite alternate;
}

@keyframes criticalFlash {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

@keyframes criticalBgFlash {
    from {
        background: rgba(255, 0, 0, 0.1);
    }

    to {
        background: rgba(255, 0, 0, 0.3);
    }
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #888;
}

.event-time {
    font-family: 'VT323', monospace;
    color: #D800FF;
    font-size: 12px;
    /* Tiny text */
}

.event-separator {
    color: #444;
}

.event-type {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
}

.event-status-icon {
    width: 30px;
    text-align: center;
    font-size: 16px;
    margin-right: 10px;
}

/* === 5-SEGMENT PIXEL PROGRESS BAR (45-DAY COUNTDOWN) === */
.event-progress-container {
    width: 100%;
    margin-top: 6px;
}

.pixel-progress-bar {
    display: flex;
    gap: 2px;
    height: 10px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.progress-segment {
    flex: 1;
    height: 100%;
    border: 2px solid #000;
    background: #222;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Pill shape - rounded ends */
.progress-segment:first-child {
    border-radius: 6px 0 0 6px;
}

.progress-segment:last-child {
    border-radius: 0 6px 6px 0;
}

/* Segment colors when ACTIVE (filled) */
.progress-segment.seg-green.active {
    background: linear-gradient(180deg, #00FF41 0%, #00CC33 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 4px rgba(0, 255, 65, 0.4);
}

.progress-segment.seg-light-green.active {
    background: linear-gradient(180deg, #7FFF00 0%, #66CC00 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 4px rgba(127, 255, 0, 0.4);
}

.progress-segment.seg-yellow.active {
    background: linear-gradient(180deg, #FFFF00 0%, #CCCC00 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 4px rgba(255, 255, 0, 0.4);
}

.progress-segment.seg-orange.active {
    background: linear-gradient(180deg, #FF9900 0%, #CC7700 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 4px rgba(255, 153, 0, 0.4);
}

.progress-segment.seg-red.active {
    background: linear-gradient(180deg, #FF3333 0%, #CC0000 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 6px rgba(255, 51, 51, 0.6);
}

/* Critical state - red segment pulses when only red remains */
/* Critical state - red segment pulses when only red remains */
.pixel-progress-bar.critical .progress-segment.seg-red.active {
    animation: redSegmentPulse 0.3s infinite alternate;
    /* Faster pulse */
}

/* Standard Flow Animation - Scanline effect for non-critical events */
.pixel-progress-bar.flow {
    position: relative;
    overflow: hidden;
}

.pixel-progress-bar.flow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%);
    transform: skewX(-20deg);
    animation: standardFlow 2s infinite linear;
    pointer-events: none;
    z-index: 10;
}

/* Staggered animation delay for cascading scan effect (top to bottom) */
.event-row:nth-child(1) .pixel-progress-bar.flow::after {
    animation-delay: 0s;
}

.event-row:nth-child(2) .pixel-progress-bar.flow::after {
    animation-delay: 0.15s;
}

.event-row:nth-child(3) .pixel-progress-bar.flow::after {
    animation-delay: 0.3s;
}

.event-row:nth-child(4) .pixel-progress-bar.flow::after {
    animation-delay: 0.45s;
}

.event-row:nth-child(5) .pixel-progress-bar.flow::after {
    animation-delay: 0.6s;
}

.event-row:nth-child(6) .pixel-progress-bar.flow::after {
    animation-delay: 0.75s;
}

.event-row:nth-child(7) .pixel-progress-bar.flow::after {
    animation-delay: 0.9s;
}

.event-row:nth-child(8) .pixel-progress-bar.flow::after {
    animation-delay: 1.05s;
}

.event-row:nth-child(9) .pixel-progress-bar.flow::after {
    animation-delay: 1.2s;
}

.event-row:nth-child(10) .pixel-progress-bar.flow::after {
    animation-delay: 1.35s;
}

@keyframes standardFlow {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Critical Animation - Intense Red Pulse (No Flow) */
.pixel-progress-bar.critical {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    animation: criticalContainerPulse 0.5s infinite alternate;
}

@keyframes criticalContainerPulse {
    from {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.4), inset 0 0 5px rgba(255, 0, 0, 0.2);
    }

    to {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.9), inset 0 0 10px rgba(255, 0, 0, 0.5);
    }
}

@keyframes criticalContainerPulse {
    from {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }

    to {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    }
}

@keyframes redSegmentPulse {
    from {
        background: linear-gradient(180deg, #FF3333 0%, #CC0000 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 6px rgba(255, 51, 51, 0.6);
    }

    to {
        background: linear-gradient(180deg, #FF0000 0%, #990000 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 0, 0, 0.9);
    }
}

/* Inactive (empty) segments */
.progress-segment:not(.active) {
    background: #1a1a1a;
    border-color: #333;
}

/* Footer */
.crt-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 10px;
    color: #666;
    border-top: 1px dashed #444;
    padding-top: 10px;
}

/* === NEW GAMEPLAY ELEMENTS === */

/* Countdown Timer */


/* Difficulty Stars */
/* Difficulty Stars */
.difficulty-stars {
    display: flex;
    gap: 4px;
    /* Monospace gap */
    align-items: center;
    margin-left: 8px;
}

.pixel-star {
    width: 12px;
    /* Slightly larger for the star shape */
    height: 12px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    /* Standard Star SVG Data URI */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.pixel-star.active {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
    filter: drop-shadow(0 0 3px #FFD700);
    /* CRT Bloom */
}

.pixel-star.inactive {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23444444"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
    opacity: 0.3;
}

.event-row.boss-encounter .difficulty-stars {
    animation: pulseGold 1.5s infinite alternate;
}

@keyframes pulseGold {
    from {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
    }

    to {
        text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    }
}

/* === INSIDER TRADES === */
.alert-item.insider-alert {
    border-left: 3px solid #FFD700;
    /* Gold border for Insider */
    background: rgba(255, 215, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
}

.insider-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.insider-badge.insider-buy {
    background: rgba(0, 255, 65, 0.2);
    color: #00FF41;
    border: 1px solid #00FF41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.insider-badge.insider-sell {
    background: rgba(255, 51, 51, 0.2);
    color: #FF3333;
    border: 1px solid #FF3333;
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
}

.insider-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex-grow: 1;
}

.insider-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
}

.insider-meta {
    font-size: 0.75rem;
    color: #aaa;
}

.insider-value {
    color: #FFD700;
    font-weight: 600;
}

.insider-time {
    font-size: 0.7rem;
    color: #666;
    font-family: 'Courier New', monospace;
    margin-left: auto;
}

/* === AFTER-MARKET FEED (SEC + Insider) === */
.after-market-header {
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px dashed #FFD700;
    margin-bottom: 8px;
}

.after-market-header .pixel-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.after-market-row {
    border-left: 3px solid #FFD700 !important;
    background: rgba(255, 215, 0, 0.05) !important;
}

/* SEC Filing Badges */
.sec-form {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: 1px;
}

.sec-form.sec-major {
    color: #00FFFF;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.sec-form.sec-minor {
    color: #888;
}

.sec-label {
    font-size: 0.75rem;
    color: #00FFFF;
    font-weight: 600;
}

.sec-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 255, 255, 0.15);
    color: #00FFFF;
    border: 1px solid #00FFFF;
}

.sec-date {
    font-size: 0.65rem;
    color: #666;
    font-family: 'Courier New', monospace;
    margin-left: 6px;
}

/* Insider Trade Badges */
.insider-buy {
    color: #00FF41 !important;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.insider-sell {
    color: #FF3333 !important;
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}

.insider-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
}

.insider-badge.insider-buy {
    background: rgba(0, 255, 65, 0.15);
    color: #00FF41;
    border: 1px solid #00FF41;
}

.insider-badge.insider-sell {
    background: rgba(255, 51, 51, 0.15);
    color: #FF3333;
    border: 1px solid #FF3333;
}

.insider-name {
    font-size: 0.75rem;
    color: #AAA;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insider-date {
    font-size: 0.65rem;
    color: #666;
    font-family: 'Courier New', monospace;
    margin-left: 6px;
}

/* Empty State */
.after-market-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 8px;
}

.after-market-empty .pixel-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #666;
    letter-spacing: 2px;
}

.after-market-empty .pixel-subtext {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #444;
}

/* === DISCORD STATUS WIDGET (BUTTON STYLE) === */
.discord-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    /* Back to JetBrains Mono for button consistency */
    font-size: 9px;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-shadow: none;
    text-transform: uppercase;
    text-decoration: none;
    margin-left: 0;

    /* Button Style */
    background: rgba(255, 165, 0, 0.2);
    /* Orange Tint */
    border: 1px solid #FFA500;
    /* Orange Border */
    padding: 4px 8px;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
    position: relative;
    /* For Tooltip */
}

.discord-btn:hover {
    background: #FFA500;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}

.discord-btn:hover .online-text {
    color: #000;
}

.discord-icon {
    width: 12px;
    height: 12px;
}

.online-text {
    opacity: 0.8;
}

/* Pixel Art Tooltip */
.pixel-tooltip {
    visibility: hidden;
    position: absolute;
    top: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    border: 2px solid #FFA500;
    color: #FFA500;
    font-family: 'VT323', monospace;
    font-size: 14px;
    padding: 4px 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 4px 4px 0px rgba(165, 100, 0, 0.5);
    /* Retro Block Shadow */
    z-index: 1000;

    /* Pixelated look */
    image-rendering: pixelated;
    transition: opacity 0.1s, top 0.1s;
}

/* Triangle for Tooltip */
.pixel-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent #FFA500 transparent;
}

.discord-btn:hover .pixel-tooltip {
    visibility: visible;
    opacity: 1;
    top: 125%;
}
/* --- TICKER SEARCH COMPONENTS (Ported from Unusual Flow) --- */
.ticker-search-btn {
    background: #9D4EDD;
    border: 1px solid #7B2CBF;
    color: #fff;
    padding: 0 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-pixel);
    font-size: 8px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px #5A189A;
    text-decoration: none;
    margin-left: 8px;
}

.ticker-search-btn:hover {
    background: #7B2CBF;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #5A189A;
}

.search-input-container {
    margin-bottom: 15px;
    position: relative;
}

.search-input-retro {
    width: 100%;
    background: #000;
    border: 2px solid #5A189A;
    color: #00FF00;
    padding: 10px 15px;
    font-family: var(--font-pixel);
    font-size: 10px;
    border-radius: 0;
    outline: none;
    box-shadow: inset 0 0 10px rgba(157, 78, 221, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-input-retro:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 1px #58a6ff;
}

.search-results-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #30363d;
    background: #0d1117;
    margin-top: 10px;
    border-radius: 4px;
}

.search-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #21262d;
    transition: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: transparent;
    color: #8b949e;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover, .search-result-item.selected {
    background: #1f2937;
    color: #e6edf3;
}

.search-result-item.selected::before {
    content: '';
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.result-ticker {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: #FFCC00;
    text-shadow: 1px 1px 0px #000;
}

.result-name {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: #555;
    text-transform: uppercase;
    opacity: 0.6;
}

.retro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.retro-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}



@keyframes windowOpen {
    from { transform: scale(0.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}











.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 1;
}



/* --- LED TICKER DISPLAY (Retro Nintendo Style) --- */
.ticker-active-display {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: #00FF00; /* Neon Green */
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    background: #000;
    border: 1px solid #333;
    padding: 0 12px;
    border-radius: 4px;
    min-width: 100px;
    height: 29px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
    cursor: default;
    margin-left: 10px;
}

.ticker-active-display.empty {
    color: #444;
    text-shadow: none;
}

@media (max-width: 520px) {
    

    

    #economic-calendar-modal .crt-title {
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    

    

    #economic-calendar-modal .event-list-header {
        margin-bottom: 10px;
        padding-bottom: 4px;
    }


    .economic-calendar-tradingview-widget .tradingview-widget-copyright {
        padding-top: 4px;
        font-size: 8px;
    }


}

@media (max-width: 768px) {
    #gamma-chart-bars,
    #gamma-headers {
        --gamma-strike-column-width: 56px !important;
    }

    #gamma-chart-bars.compact-grid,
    #gamma-headers.compact-grid {
        --gamma-strike-column-width: 50px !important;
    }

    .gamma-strike {
        width: 56px;
        padding-left: 8px;
        padding-right: 4px;
        gap: 4px;
        overflow: visible;
    }

    #gamma-chart-bars.compact-grid .gamma-strike {
        width: 50px;
        padding-left: 6px;
        padding-right: 3px;
        gap: 3px;
    }

    .gamma-cue {
        flex: 0 0 auto;
    }
}

/* Adjust Gamma Wall Header for new button */
#gamma-wall .widget-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 10px;
    row-gap: 5px;
}

/* Underlying Ticker Widget Bar (TradingView Symbol Info) */
.underlying-ticker-bar {
    display: none;
    width: 100%;
    margin-bottom: 6px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 81, 202, 0.25);
    background: rgba(0, 0, 0, 0.3);
    max-height: 92px;
}

.underlying-ticker-bar.is-mounted {
    display: block;
}

.underlying-ticker-bar .tradingview-widget-container,
.underlying-ticker-bar .tradingview-widget-container__widget,
.underlying-ticker-bar iframe {
    width: 100% !important;
}

.underlying-ticker-bar .tradingview-widget-copyright {
    display: none !important;
}

#gamma-wall .gamma-title-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
}

#gamma-wall .gamma-spot-price {
    font-size: 10px;
    color: #6f7785;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 1px;
}

#gamma-wall .widget-header h2 {
    margin-right: 0;
}

#gamma-wall .gamma-title-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
}

#gamma-wall .gamma-title {
    display: inline-flex;
    align-items: center;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    color: inherit;
}

.expanded-badge-external {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    font-weight: 800;
    color: #000000;
    background: #ffffff;
    border: 1px solid #ffffff;
    padding: 2px 3px 2px 4px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    animation: badge-bounce 2s infinite ease-in-out;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    margin-bottom: -10px; /* Pull it closer to the widget */
    margin-left: 10px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.2);
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.expanded-badge-external:hover {
    background: #c084fc;
    color: #ffffff;
    border-color: #c084fc;
    box-shadow: 0 4px 10px rgba(192, 132, 252, 0.5), 0 0 10px rgba(192, 132, 252, 0.4);
}

@keyframes badge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

#gamma-wall .gamma-header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

#gamma-wall .gamma-action-group,
#gamma-wall .gamma-status-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

#gamma-wall .gamma-status-group {
    gap: 6px;
    margin-bottom: -2px;
}

#gamma-wall .widget-header .decoration-line {
    grid-column: 1 / -1;
}

#gamma-wall #gamma-ticker-display {
    min-width: 82px;
    height: 24px;
    padding: 0 8px;
    margin-left: 0;
    font-size: 13px;
    letter-spacing: 0.7px;
    border-radius: 4px;
}

#gamma-wall .ticker-search-btn {
    height: 26px;
    padding: 0 10px;
    margin-left: 0;
    font-size: 8px;
    box-shadow: 1px 1px 0 #5A189A;
}

#gamma-wall .gamma-action-group .ticker-search-btn + .ticker-search-btn {
    margin-left: 6px;
}

#gamma-wall .status-container {
    gap: 3px;
    margin-left: 0;
    transform: translateY(1px);
}

#gamma-wall .status-container .status-text {
    margin-left: 0;
    font-size: 9px;
    letter-spacing: 0.8px;
}

#gamma-expanded-modal {
    z-index: 100001;
}

#gamma-expanded-modal .gamma-expanded-window {
    width: min(94vw, 1220px);
    max-width: min(94vw, 1220px);
    border-color: #5ee36e;
    box-shadow:
        0 0 24px rgba(94, 227, 110, 0.42),
        inset 0 0 18px rgba(26, 111, 40, 0.18);
}

#gamma-expanded-modal .gamma-expanded-header {
    background: linear-gradient(90deg, #103f17 0%, #1a5e24 55%, #163d1c 100%);
    color: #effff1;
}

#gamma-expanded-modal .crt-close-btn {
    color: #effff1;
}

#gamma-expanded-modal .gamma-expanded-content {
    min-height: 0;
    max-height: min(84vh, 980px);
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.gamma-expanded-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.gamma-expanded-symbol {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 15, 11, 0.92);
    color: #f4f7fb;
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.gamma-expanded-meta {
    color: #8f9ba8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gamma-expanded-node-strip {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 38px;
}

.gamma-expanded-node-card {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(17, 20, 25, 0.96);
    color: #f2f5fb;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.gamma-expanded-node-card:hover,
.gamma-expanded-node-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(24, 28, 34, 0.98);
    outline: none;
}

.gamma-expanded-node-card.is-positive {
    border-color: rgba(84, 214, 100, 0.32);
}

.gamma-expanded-node-card.is-negative {
    border-color: rgba(255, 92, 92, 0.32);
}

.gamma-expanded-node-card.is-flip {
    border-color: rgba(255, 164, 82, 0.38);
}

.gamma-expanded-node-card.is-unusual {
    border-color: rgba(88, 163, 255, 0.36);
}

.gamma-expanded-node-main {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gamma-expanded-node-sub {
    color: #8d97a6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gamma-expanded-shell {
    position: relative;
    z-index: 1;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(37, 87, 51, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(18, 19, 24, 0.98), rgba(10, 11, 14, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

#gamma-expanded-headers {
    padding: 10px 10px 6px 0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.gamma-expanded-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px 10px 0;
    overflow: auto;
}

.gamma-expanded-bars .gamma-row {
    height: 40px;
    font-size: 14px;
}

.gamma-expanded-bars .gamma-strike {
    width: 64px;
    padding-right: 10px;
    color: #d0d5de;
    font-size: 13px;
}

.gamma-expanded-bars .gex-value {
    font-size: 24px;
}

.gamma-expanded-bars .gex-percent-change {
    top: 4px;
    right: 6px;
    font-size: 9px;
}

.gamma-expanded-bars .gex-cell.has-percent-change {
    padding-bottom: 5px;
}

.gamma-expanded-bars .gex-cell.gex-node-positive {
    box-shadow: inset 0 0 0 1px rgba(196, 255, 205, 0.5), 0 0 10px rgba(76, 211, 92, 0.22);
}

.gamma-expanded-bars .gex-cell.gex-node-negative {
    box-shadow: inset 0 0 0 1px rgba(255, 215, 215, 0.5), 0 0 10px rgba(255, 91, 91, 0.24);
}

.gamma-expanded-bars .gex-cell.gex-node-flip {
    background: #ff8a1f !important;
    border-color: #ffbc79 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 224, 192, 0.7), 0 0 16px rgba(255, 138, 31, 0.65);
}

.gamma-expanded-bars .gex-cell.gex-node-flip .gex-value {
    color: #120c06;
    text-shadow: none;
}

.gamma-expanded-bars .gex-cell.gex-node-unusual {
    box-shadow: inset 0 0 0 1px rgba(191, 223, 255, 0.58), 0 0 14px rgba(71, 140, 255, 0.34);
}

.gamma-expanded-empty,
.gamma-expanded-loading {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9eabba;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    #gamma-expanded-modal .gamma-expanded-window {
        width: 96vw;
        max-width: 96vw;
    }

    #gamma-expanded-modal .gamma-expanded-content {
        max-height: 86vh;
        padding: 14px 12px 12px;
    }

    .gamma-expanded-symbol {
        font-size: 20px;
        min-height: 38px;
        padding: 0 14px;
    }

    .gamma-expanded-bars .gamma-row {
        height: 32px;
    }

    .gamma-expanded-bars .gamma-strike {
        width: 52px;
        font-size: 11px;
        padding-right: 7px;
    }

    .gamma-expanded-bars .gex-value {
        font-size: 16px;
    }
}

/* Generic Retro 3D Title */
.retro-3d-title {
    position: relative;
    font-family: 'Press Start 2P', var(--font-pixel), cursive;
    font-size: 22px;
    line-height: 1;
    margin: 0;
    padding: 0;
    color: transparent;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.5));
}

.retro-3d-title.theme-gold {
    --title-gradient: linear-gradient(180deg, #FFE866 0%, #FFD000 45%, #FFA500 55%, #FF5A00 100%);
    --title-shadow-color: #6e2e00;
}

.retro-3d-title.theme-red {
    --title-gradient: linear-gradient(180deg, #ff9999 0%, #ff3333 45%, #cc0000 55%, #800000 100%);
    --title-shadow-color: #4a0000;
}

.retro-3d-title.theme-blue {
    --title-gradient: linear-gradient(180deg, #99ccff 0%, #3399ff 45%, #0066cc 55%, #003366 100%);
    --title-shadow-color: #001a33;
}

.retro-3d-title.theme-orange {
    --title-gradient: linear-gradient(180deg, #FFB366 0%, #FF8000 45%, #CC6600 55%, #994C00 100%);
    --title-shadow-color: #4D2600;
}

.retro-3d-title.theme-pink {
    --title-gradient: linear-gradient(180deg, #FFCCFF 0%, #FF66FF 45%, #FF00FF 55%, #CC00CC 100%);
    --title-shadow-color: #660066;
}

.retro-3d-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.retro-3d-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: transparent;
    text-shadow:
        -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
        0 -1px 0 #000, -1px 0 0 #000, 1px 0 0 #000, 0 1px 0 #000,
        -1px 2px 0 var(--title-shadow-color), 0 2px 0 var(--title-shadow-color), 1px 2px 0 var(--title-shadow-color),
        -1px 3px 0 var(--title-shadow-color), 0 3px 0 var(--title-shadow-color), 1px 3px 0 var(--title-shadow-color),
        -1px 4px 0 var(--title-shadow-color), 0 4px 0 var(--title-shadow-color), 1px 4px 0 var(--title-shadow-color),
        -2px 2px 0 #000, 2px 2px 0 #000,
        -2px 3px 0 #000, 2px 3px 0 #000,
        -2px 4px 0 #000, 2px 4px 0 #000,
        -2px 5px 0 #000, -1px 5px 0 #000, 0 5px 0 #000, 1px 5px 0 #000, 2px 5px 0 #000;
}

/* === HOMEPAGE RADAR AT A GLANCE === */
#radar-glance {
    --radar-reclaim: #7bafd4;
    --radar-advance: #37f29a;
    --radar-extended: #ffd166;
    --radar-fade: #ff8e53;
    --radar-decline: #ff4f70;
    flex: 1 1 0;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(3, 5, 8, 0.96)),
        #030507;
}

#radar-glance::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.025) 3px 4px);
}

#radar-glance .radar-glance-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    align-items: center;
    padding: 7px 10px 6px;
    background: rgba(0, 0, 0, 0.84);
}

#radar-glance .radar-glance-title-lockup {
    min-width: 0;
}

#radar-glance .radar-glance-title-lockup h2 {
    margin: 0 0 3px;
    color: #f4f8ff;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(99, 215, 255, 0.32);
}

#radar-glance .radar-glance-title-lockup .retro-emoji {
    margin-left: 5px;
}

.radar-glance-kicker {
    display: block;
    color: #6d8296;
    font-family: var(--font-mono);
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.3;
}

#status-radar-glance {
    align-self: center;
    margin: 0;
}

.radar-glance-header-state {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.radar-glance-header-meta {
    display: block;
    max-width: 240px;
    overflow: hidden;
    color: #596d7e;
    font-family: var(--font-mono);
    font-size: 5.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: right;
    white-space: normal;
}

.radar-glance-session-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 4px;
    border: 1px solid rgba(255, 94, 122, 0.46);
    border-radius: 3px;
    background: rgba(255, 94, 122, 0.1);
    color: #ff5e7a;
    font-weight: 900;
    line-height: 1;
}

.radar-glance-session-chip.is-weekend {
    border-color: rgba(255, 211, 92, 0.6);
    background: rgba(255, 211, 92, 0.12);
    color: #ffd35c;
    box-shadow: 0 0 7px rgba(255, 211, 92, 0.16);
}

.radar-glance-session-chip.is-premarket {
    border-color: rgba(141, 196, 255, 0.52);
    background: rgba(141, 196, 255, 0.1);
    color: #8dc4ff;
}

.radar-glance-session-chip.is-open {
    border-color: rgba(55, 242, 154, 0.52);
    background: rgba(55, 242, 154, 0.1);
    color: #37f29a;
}

.radar-glance-refresh-time,
.radar-glance-gex-coverage {
    display: block;
    margin-top: 2px;
}

.radar-glance-refresh-time {
    color: rgba(255, 211, 92, 0.82);
}

#status-radar-glance .status-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff4f70;
    box-shadow: 0 0 7px currentColor;
}

#status-radar-glance.status-live .status-dot,
#status-radar-glance.status-cached .status-dot,
#status-radar-glance.status-stale .status-dot {
    display: block;
}

#status-radar-glance.status-live .status-dot {
    background: #37f29a;
}

#status-radar-glance.status-cached .status-dot {
    background: #ffd166;
}

#status-radar-glance.status-stale .status-dot {
    background: #ff8e53;
}

#status-radar-glance .status-text {
    margin: 0;
    font-size: 7px;
}

#radar-glance .decoration-line {
    display: none;
}

.radar-glance-summary {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px 7px;
    border-bottom: 1px solid rgba(99, 215, 255, 0.14);
    color: #c6d3df;
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

#radar-glance-asof {
    color: #6f8498;
    text-align: right;
}

.radar-glance-cycle {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    justify-content: stretch;
    gap: 0;
    padding: 4px 8px 6px;
}

.radar-glance-loading,
.radar-glance-empty {
    display: flex;
    flex: 1;
    min-height: 250px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #71869a;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-align: center;
}

.radar-glance-empty.is-error {
    color: #ff6b81;
}

.radar-glance-sweep {
    width: 62px;
    aspect-ratio: 1;
    border: 1px solid rgba(55, 242, 154, 0.44);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 49%, rgba(55, 242, 154, 0.24) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(55, 242, 154, 0.18) 50%, transparent 51%),
        conic-gradient(from 0deg, rgba(55, 242, 154, 0.45), transparent 24%);
    box-shadow: inset 0 0 12px rgba(55, 242, 154, 0.12), 0 0 12px rgba(55, 242, 154, 0.08);
    animation: radar-glance-spin 1.9s linear infinite;
}

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

.radar-glance-group {
    --group-accent: #63d7ff;
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: stretch;
    flex: 1 1 0;
    min-height: 50px;
    border-bottom: 1px solid rgba(99, 215, 255, 0.1);
}

.radar-glance-group:last-child {
    border-bottom: 0;
}

.radar-glance-group[data-group="reclaim"] { --group-accent: var(--radar-reclaim); }
.radar-glance-group[data-group="advance"] { --group-accent: var(--radar-advance); }
.radar-glance-group[data-group="extended"] { --group-accent: var(--radar-extended); }
.radar-glance-group[data-group="fade"] { --group-accent: var(--radar-fade); }
.radar-glance-group[data-group="decline"] { --group-accent: var(--radar-decline); }

.radar-glance-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px 4px 4px;
    border-right: 1px solid color-mix(in srgb, var(--group-accent) 30%, transparent);
}

.radar-glance-stage strong {
    color: var(--group-accent);
    font-family: var(--font-pixel);
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.radar-glance-stage span {
    color: #68798a;
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.radar-glance-stage-count {
    color: #e7f0f7 !important;
}

.radar-glance-tickers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    align-content: center;
    padding: 4px 4px 4px 9px;
}

.radar-glance-ticker {
    min-width: 0;
    padding: 4px 6px;
    border: 1px solid rgba(112, 142, 168, 0.2);
    border-left-color: color-mix(in srgb, var(--group-accent) 70%, transparent);
    border-radius: 3px;
    background: rgba(7, 18, 30, 0.84);
    color: #ecf4fb;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.radar-glance-ticker:hover,
.radar-glance-ticker:focus-visible {
    border-color: var(--group-accent);
    background: color-mix(in srgb, var(--group-accent) 10%, rgba(7, 18, 30, 0.92));
    color: var(--group-accent);
    outline: none;
}

.radar-glance-ticker em {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #64778a;
    font-size: 6px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radar-glance-no-locks {
    grid-column: 1 / -1;
    color: #4d6173;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
}

.radar-glance-open {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 9px 9px;
    padding: 9px 10px;
    border: 1px solid rgba(55, 242, 154, 0.5);
    background: rgba(55, 242, 154, 0.06);
    color: #37f29a;
    font-family: var(--font-pixel);
    font-size: 7px;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.radar-glance-open:hover,
.radar-glance-open:focus-visible {
    background: #37f29a;
    color: #02100b;
    box-shadow: 0 0 14px rgba(55, 242, 154, 0.24);
    outline: none;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .radar-glance-group {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .radar-glance-tickers {
        grid-template-columns: 1fr;
    }

    .radar-glance-ticker:nth-child(n + 3) {
        display: none;
    }
}

@media (max-width: 768px) {
    #radar-glance {
        min-height: 560px;
    }

    .radar-glance-group {
        min-height: 82px;
    }

    .radar-glance-ticker {
        font-size: 9px;
    }
}

/* Homepage Radar mirrors the swipeable mobile Stage Map. */
#radar-glance .radar-glance-cycle {
    display: block;
    overflow: hidden;
    padding: 0 0 5px;
}

.radar-glance-map-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    padding: 5px 8px 4px;
    border-bottom: 1px solid rgba(99, 215, 255, 0.12);
}

.radar-glance-map-tabs button {
    appearance: none;
    min-width: 0;
    padding: 5px 1px 4px;
    border: 0;
    border-bottom: 1px solid rgba(104, 127, 147, 0.25);
    background: transparent;
    color: #566b7d;
    font-family: var(--font-mono);
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.radar-glance-map-tabs button.active {
    border-bottom-color: #37f29a;
    color: #37f29a;
    text-shadow: 0 0 7px rgba(55, 242, 154, 0.45);
}

.radar-glance-map-track {
    display: flex;
    width: 100%;
    height: calc(100% - 28px);
    min-height: 0;
    gap: 8px;
    padding: 7px 0 3px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.radar-glance-map-track::-webkit-scrollbar {
    display: none;
}

#radar-glance .radar-glance-group {
    display: flex;
    flex: 0 0 calc(100% - 26px);
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    border: 1px solid rgba(80, 111, 137, 0.24);
    border-top-color: color-mix(in srgb, var(--group-accent) 64%, transparent);
    background: rgba(0, 0, 0, 0.42);
    scroll-snap-align: start;
    overflow: hidden;
}

#radar-glance .radar-glance-stage {
    display: flex;
    min-height: 34px;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border: 0;
    border-bottom: 1px solid rgba(93, 118, 139, 0.18);
    background: linear-gradient(90deg, color-mix(in srgb, var(--group-accent) 8%, transparent), transparent 65%);
}

#radar-glance .radar-glance-stage-count {
    flex: 0 0 auto;
    color: var(--group-accent) !important;
    font-family: var(--font-pixel);
    font-size: 16px;
    text-shadow: 0 0 7px color-mix(in srgb, var(--group-accent) 48%, transparent);
}

#radar-glance .radar-glance-stage-name {
    overflow: hidden;
    color: var(--group-accent);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#radar-glance .radar-glance-group[data-group="reclaim"] .radar-glance-stage-count,
#radar-glance .radar-glance-group[data-group="reclaim"] .radar-glance-stage-name {
    color: #7bafd4 !important;
    text-shadow: none;
}

.radar-glance-map-list {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(55, 242, 154, 0.24) transparent;
}

.radar-glance-map-row {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(70px, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-left: 2px solid rgba(55, 242, 154, 0.45);
    background: rgba(7, 9, 12, 0.9);
    color: #dfe8f0;
    font-family: var(--font-mono);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.radar-glance-map-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.radar-glance-map-row:hover,
.radar-glance-map-row:focus-visible {
    border-left: 1px solid var(--group-accent);
    background: color-mix(in srgb, var(--group-accent) 10%, transparent);
    outline: none;
}

.radar-glance-map-row.gex-rotation-bullish {
    border-color: rgba(55, 242, 154, 0.9);
    border-left-color: #74f0a8;
    background: rgba(55, 242, 154, 0.19);
    box-shadow: inset 0 0 20px rgba(55, 242, 154, 0.16), 0 0 12px rgba(55, 242, 154, 0.13);
}

.radar-glance-map-row.gex-rotation-bearish {
    border-color: rgba(255, 72, 96, 0.94);
    border-left-color: #ff5e7a;
    background: rgba(255, 51, 77, 0.23);
    box-shadow: inset 0 0 22px rgba(255, 51, 77, 0.2), 0 0 14px rgba(255, 51, 77, 0.16);
}

.radar-glance-map-row.gex-rotation-bullish .radar-glance-row-main strong {
    color: #74f0a8;
    text-shadow: 0 0 8px rgba(55, 242, 154, 0.32);
}

.radar-glance-map-row.gex-rotation-bearish .radar-glance-row-main strong {
    color: #ff6b82;
    text-shadow: 0 0 9px rgba(255, 51, 77, 0.36);
}

.radar-glance-row-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.radar-glance-logo {
    position: relative;
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(136, 157, 176, 0.26);
    border-radius: 0;
    background: radial-gradient(circle, rgba(93, 123, 147, 0.25), rgba(8, 15, 23, 0.94));
}

.radar-glance-logo::before {
    content: '✕';
    color: #71869a;
    font-size: 6px;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.radar-glance-logo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.radar-glance-row-main strong {
    overflow: hidden;
    color: #eef4f9;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.9px;
    text-overflow: ellipsis;
}

.radar-glance-iv-caution,
.radar-glance-breakout-caution,
.radar-glance-wall-arrow {
    display: inline-block;
    margin-left: 3px;
    vertical-align: 0.02em;
    line-height: 1;
}

.radar-glance-iv-caution {
    color: initial;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    font-size: 10px;
    letter-spacing: 0;
    text-shadow: none;
}

.radar-glance-iv-caution.is-prior-close {
    opacity: 0.66;
}

.radar-glance-iv-caution.is-stage-check {
    margin-left: 4px;
    font-size: 11px;
}

.radar-glance-breakout-caution {
    display: inline-grid;
    place-items: center;
    color: #ffe774;
    font-family: 'Press Start 2P', var(--font-mono);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0;
    image-rendering: pixelated;
}

.radar-glance-wall-arrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 900;
    text-shadow: none;
}

.radar-glance-wall-arrow.is-up {
    color: #37f29a;
}

.radar-glance-wall-arrow.is-down {
    color: #ff5d77;
}

.radar-glance-row-intel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    text-align: right;
}

.radar-glance-row-intel em {
    max-width: 100%;
    overflow: hidden;
    color: #d8e1e8;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radar-glance-row-intel em.is-price-discovery {
    color: #c7a2ff;
    text-shadow: 0 0 8px rgba(199, 162, 255, 0.32);
}

.radar-glance-row-gex {
    display: flex;
    max-width: 100%;
    gap: 7px;
    overflow: hidden;
    color: #718496;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.radar-glance-row-gex b {
    font-weight: 800;
}

.radar-glance-row-gex .gex-positive-node {
    color: rgba(55, 242, 154, 0.76);
}

.radar-glance-row-gex .gex-negative-node {
    color: rgba(255, 94, 122, 0.8);
}

.radar-glance-row-gex .is-up {
    color: #37f29a;
    text-shadow: 0 0 5px rgba(55, 242, 154, 0.22);
}

.radar-glance-row-gex .is-down {
    color: #ff5d77;
    text-shadow: 0 0 5px rgba(255, 93, 119, 0.2);
}

.radar-glance-row-gex.is-muted,
.radar-glance-row-gex .is-muted {
    color: #485b6b;
}

/* Homepage Stage Check — mirrors Radar's mobile bottom sheet. */
.radar-glance-stage-check {
    position: absolute;
    z-index: 30;
    display: none;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: min(72%, 360px);
    padding: 10px 12px 11px;
    overflow: auto;
    transform: none;
    border: 2px solid #050505;
    background:
        repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.055) 0, rgba(0, 0, 0, 0.055) 1px, transparent 1px, transparent 3px),
        #f8f8ef;
    color: #050505;
    font-family: 'VT323', monospace;
    box-shadow: 0 -3px 0 rgba(55, 242, 154, 0.2), 4px 4px 0 rgba(0, 0, 0, 0.52);
}

.radar-glance-stage-check.is-open {
    display: block;
}

.radar-glance-stage-check-close {
    appearance: none;
    position: absolute;
    top: 5px;
    right: 6px;
    display: grid;
    width: 16px;
    height: 16px;
    padding: 0;
    place-items: center;
    border: 1px solid #d9224f;
    background: #f8f8ef;
    color: #d9224f;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.radar-glance-stage-check-close:hover,
.radar-glance-stage-check-close:focus-visible {
    background: #d9224f;
    color: #f8f8ef;
    outline: none;
}

.radar-glance-stage-check-content {
    padding-right: 16px;
}

.radar-glance-stage-check-title {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 13px;
    margin-bottom: 7px;
    color: #111;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.7px;
}

.radar-glance-stage-check-title-logo {
    display: inline-flex;
    width: 0;
    height: 13px;
    flex: 0 0 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0 solid #111;
    border-radius: 0;
    background: #f8f8ef;
    opacity: 0;
}

.radar-glance-stage-check-title-logo.has-image {
    width: 13px;
    flex-basis: 13px;
    border-width: 1px;
    opacity: 1;
}

.radar-glance-stage-check-title-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.radar-glance-stage-check-row {
    display: grid;
    grid-template-columns: 12px 68px minmax(0, 1fr);
    gap: 5px;
    align-items: baseline;
    color: #0c0c0c;
    font-size: 14px;
    line-height: 1.18;
    white-space: nowrap;
}

.radar-glance-stage-check-mark {
    color: #10a84d;
    font-weight: 900;
}

.radar-glance-stage-check-label {
    color: #111;
    font-weight: 900;
}

.radar-glance-stage-check-value {
    overflow: hidden;
    color: #191919;
    text-align: right;
    text-overflow: ellipsis;
}

.radar-glance-stage-check-row.is-warn .radar-glance-stage-check-mark,
.radar-glance-stage-check-row.is-warn .radar-glance-stage-check-value {
    color: #d46a00;
}

.radar-glance-stage-check-row.is-gex-up .radar-glance-stage-check-mark,
.radar-glance-stage-check-row.is-gex-up .radar-glance-stage-check-value {
    color: #10a84d;
}

.radar-glance-stage-check-row.is-danger .radar-glance-stage-check-mark,
.radar-glance-stage-check-row.is-danger .radar-glance-stage-check-value {
    color: #d9224f;
}

.radar-glance-stage-check-row.is-reclaim-bull .radar-glance-stage-check-value {
    color: #00a96f;
    font-weight: 900;
    text-shadow: 0 0 4px rgba(0, 169, 111, 0.16);
}

.radar-glance-stage-check-row.is-stage-driver {
    --radar-glance-driver-color: #d46a00;
}

.radar-glance-stage-check-row.is-stage-driver.is-gex-up {
    --radar-glance-driver-color: #00a96f;
}

.radar-glance-stage-check-row.is-stage-driver.is-danger {
    --radar-glance-driver-color: #d9224f;
}

.radar-glance-stage-check-row.is-stage-driver .radar-glance-stage-check-value {
    color: var(--radar-glance-driver-color);
    opacity: 1;
    text-shadow: none;
    animation: radar-glance-stage-driver-flash 1.3s steps(1, end) infinite;
}

@keyframes radar-glance-stage-driver-flash {
    0%, 49.999% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0.28;
    }
}

.radar-glance-stage-check-tape {
    overflow: hidden;
    margin-top: 7px;
    padding-top: 5px;
    border-top: 1px solid rgba(5, 5, 5, 0.22);
    color: #111;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.radar-glance-stage-check-tape-track {
    display: inline-flex;
    width: max-content;
    animation: radar-glance-stage-check-tape var(--radar-glance-tape-duration, 24s) linear infinite;
}

.radar-glance-stage-check-tape-run {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-right: 22px;
}

.radar-glance-stage-check-tape-pointer {
    color: #00b978;
    font-family: var(--font-mono);
    font-weight: 900;
    text-shadow: 0 0 4px rgba(0, 185, 120, 0.34);
}

.radar-glance-stage-check-tape-item {
    color: #111;
    padding-right: 9px;
}

.radar-glance-stage-check-tape-segment-title {
    margin-right: 4px;
    color: #555;
    font-weight: 900;
}

.radar-glance-stage-check-tape-segment-title.is-bullish {
    color: #009c62;
}

.radar-glance-stage-check-tape-segment-title.is-bearish {
    color: #d9224f;
}

@keyframes radar-glance-stage-check-tape {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .radar-glance-stage-check-row.is-stage-driver .radar-glance-stage-check-value {
        animation: none;
    }
}

.radar-glance-stage-check-open {
    display: block;
    margin-top: 8px;
    padding: 6px 8px;
    border: 1px solid #10a84d;
    color: #087c38;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
}

.radar-glance-stage-check-open:hover,
.radar-glance-stage-check-open:focus-visible {
    background: #10a84d;
    color: #fff;
    outline: none;
}

@media (max-width: 768px) {
    .radar-glance-stage-check {
        position: fixed;
        z-index: 100004;
        left: 10px;
        right: 10px;
        bottom: max(10px, calc(env(safe-area-inset-bottom) + 6px));
        width: auto;
        max-width: none;
        max-height: min(58vh, 360px);
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .radar-glance-stage-check-tape {
        overflow-x: auto;
    }

    .radar-glance-stage-check-tape-track {
        animation: none;
    }
}

#radar-glance .radar-glance-no-locks {
    display: grid;
    height: 100%;
    place-items: center;
}

@media (max-width: 1100px) and (min-width: 769px) {
    #radar-glance .radar-glance-map-row:nth-child(n + 6) {
        display: none;
    }
}

@media (max-width: 768px) {
    #radar-glance .radar-glance-group {
        min-height: 0;
    }

    .radar-glance-map-row {
        min-height: 31px;
    }
}

/* Final homepage Stage Map composition: no extra navigation chrome. */
#radar-glance .radar-glance-cycle {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    padding: 0;
}

.radar-glance-map-head {
    flex: 0 0 auto;
    padding: 8px 10px 7px;
    border-bottom: 1px solid rgba(91, 123, 148, 0.22);
    background: rgba(0, 0, 0, 0.84);
}

.radar-glance-map-headline,
.radar-glance-map-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.radar-glance-map-headline {
    color: #e6edf3;
    font-family: var(--font-pixel);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.radar-glance-map-headline > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.radar-glance-map-headline i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #37f29a;
    box-shadow: 0 0 7px rgba(55, 242, 154, 0.8);
}

.radar-glance-map-headline strong {
    color: #7d8d9c;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.08em;
}

.radar-glance-map-meta {
    justify-content: flex-end;
    margin-top: 5px;
    color: #526878;
    font-family: var(--font-mono);
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.radar-glance-map-meta b {
    padding: 1px 4px;
    border: 1px solid rgba(255, 209, 102, 0.32);
    border-radius: 2px;
    color: #d2b85e;
    font-size: 5px;
}

#radar-glance .radar-glance-map-track {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding-top: 7px;
}

#radar-glance .radar-glance-group {
    flex-basis: calc(100% - 20px);
}

#radar-glance .radar-glance-map-row {
    min-height: 34px;
}

#radar-glance .radar-glance-map-list {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    #radar-glance .radar-glance-map-row {
        min-height: 34px;
    }

    #radar-glance .radar-glance-map-track {
        height: 460px;
        min-height: 460px;
        flex: 0 0 460px;
    }

    #radar-glance .radar-glance-map-list {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: scroll;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

/* GammaWall launcher: a screen-only Color-era boot, without console chrome. */
.expanded-badge-external.gex-handheld-launch {
    position: relative;
    display: flex;
    width: auto;
    min-height: 60px;
    flex: 0 0 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #3d4250;
    border-radius: 8px 8px 12px 8px;
    background-color: #d9dccf;
    background-image:
        linear-gradient(rgba(38, 45, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 45, 42, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(119, 128, 113, 0.08));
    background-size: 3px 3px, 3px 3px, 100% 100%;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.28),
        inset 0 -3px 9px rgba(45, 52, 45, 0.12),
        0 1px 0 rgba(0, 0, 0, 0.72);
    color: inherit;
    text-decoration: none;
    animation: none;
    transition: filter 0.15s ease, border-color 0.15s ease;
}

.expanded-badge-external.gex-handheld-launch:hover,
.expanded-badge-external.gex-handheld-launch:focus-visible {
    border-color: #596170;
    color: inherit;
    filter: brightness(1.045);
    outline: none;
    transform: none;
}

.expanded-badge-external.gex-handheld-launch:focus-visible::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(123, 175, 212, 0.8);
    border-radius: 5px 5px 8px 5px;
    pointer-events: none;
}

.expanded-badge-external.gex-handheld-launch:active {
    filter: brightness(0.98);
    transform: none;
}

.gex-gbc-logo {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Pixelify Sans', 'Arcade Pixel', monospace;
    font-size: 36px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 1;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    transition: transform 0.15s ease;
}

.gex-gbc-logo.is-booting {
    animation: gammawall-boot-clock 1.55s linear both;
}

.gex-gbc-logo.is-pending {
    opacity: 0;
}

.gex-gbc-logo i {
    color: #252bdc;
    font-style: normal;
}

.gex-gbc-logo.is-booting i {
    animation: gammawall-letter-raster 0.92s steps(1, end) both;
}

.gex-gbc-logo.is-booting i:nth-child(1) { animation-delay: 0ms; }
.gex-gbc-logo.is-booting i:nth-child(2) { animation-delay: 60ms; }
.gex-gbc-logo.is-booting i:nth-child(3) { animation-delay: 120ms; }
.gex-gbc-logo.is-booting i:nth-child(4) { animation-delay: 180ms; }
.gex-gbc-logo.is-booting i:nth-child(5) { animation-delay: 240ms; }
.gex-gbc-logo.is-booting i:nth-child(6) { animation-delay: 300ms; }
.gex-gbc-logo.is-booting i:nth-child(7) { animation-delay: 360ms; }
.gex-gbc-logo.is-booting i:nth-child(8) { animation-delay: 420ms; }
.gex-gbc-logo.is-booting i:nth-child(9) { animation-delay: 480ms; }

.gex-gbc-maker {
    margin-top: 3px;
    color: #171817;
    font-family: 'Pixelify Sans', 'Arcade Pixel', monospace;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.8;
    opacity: 0;
    transform: scaleX(1.06);
    transform-origin: center;
    -webkit-font-smoothing: none;
}

.gex-gbc-logo.is-booting + .gex-gbc-maker {
    animation: gammawall-maker-reveal 0.01s steps(1, end) 0.58s both;
}

.gex-gbc-logo.is-ready + .gex-gbc-maker {
    opacity: 1;
}

.gex-gbc-maker sup {
    position: relative;
    top: -0.16em;
    margin-left: 0.08em;
    font-size: 0.72em;
    line-height: 0;
}

.gex-handheld-launch:hover .gex-gbc-logo,
.gex-handheld-launch:focus-visible .gex-gbc-logo {
    transform: scale(1.035);
}

@keyframes gammawall-boot-clock {
    from { opacity: 1; }
    to { opacity: 1; }
}

@keyframes gammawall-letter-raster {
    0%, 5% { opacity: 0; color: #ffff00; }
    6%, 20% { opacity: 1; color: #ffff00; }
    21%, 35% { opacity: 1; color: #ff1d12; }
    36%, 52% { opacity: 1; color: #ff00e8; }
    53%, 100% { opacity: 1; color: #252bdc; }
}

@keyframes gammawall-maker-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .expanded-badge-external.gex-handheld-launch {
        order: 0;
        width: auto;
        min-height: 64px;
        flex-basis: 64px;
        align-self: stretch;
        margin: 0 8px 8px;
        padding: 0;
    }

    .gex-gbc-logo {
        font-size: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gex-gbc-logo,
    .gex-gbc-logo.is-booting,
    .gex-gbc-logo.is-pending {
        animation: none;
        opacity: 1;
    }

    .gex-gbc-logo.is-booting i {
        animation: none;
    }

    .gex-gbc-maker,
    .gex-gbc-logo.is-booting + .gex-gbc-maker,
    .gex-gbc-logo.is-ready + .gex-gbc-maker {
        animation: none;
        opacity: 1;
    }
}

.radar-glance-stage-check-row.is-rotation-context { white-space: normal; align-items: start; }
.radar-glance-stage-check-row.is-rotation-context .radar-glance-stage-check-value { overflow: visible; overflow-wrap: anywhere; }

.radar-glance-stage-check-row.is-rotation-footer { font-size: 0.8em; opacity: 0.65; }

.radar-glance-map-row.gex-confluence,
.radar-glance-map-row.gex-confluence:hover,
.radar-glance-map-row.gex-confluence:focus-visible {
    border-color: #aa83ff;
    border-left-color: #c3a5ff;
    background: rgba(151, 102, 255, 0.20);
    box-shadow: inset 0 0 18px rgba(151, 102, 255, 0.12);
}
.radar-glance-map-row.gex-confluence .radar-glance-row-main strong { color: #d2bbff; }

/* Context colors describe a watch, not a confirmed reaction. */
.radar-glance-stage-check-row.is-confluence-green .radar-glance-stage-check-value, .stage-check-row.is-confluence-green .stage-check-value { color: #20ad70; }
.radar-glance-stage-check-row.is-confluence-red .radar-glance-stage-check-value, .stage-check-row.is-confluence-red .stage-check-value { color: #e04b63; }
.radar-glance-stage-check-row.is-confluence-amber .radar-glance-stage-check-value, .stage-check-row.is-confluence-amber .stage-check-value { color: #c58a20; }
.radar-glance-stage-check-row.is-confluence-purple .radar-glance-stage-check-value, .stage-check-row.is-confluence-purple .stage-check-value { color: #a178df; }

/* Mini Radar: quieter, single-line scan with the full Stage Check on demand. */
#radar-glance {
    background: #050709;
}

#radar-glance::before {
    display: none;
}

#radar-glance .radar-glance-header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(141, 158, 172, 0.18);
    background: #07090b;
}

#radar-glance .radar-glance-title-lockup h2 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-shadow: none;
}

#radar-glance .radar-glance-title-lockup .retro-emoji {
    font-size: 12px;
    opacity: 0.8;
}

#radar-glance .radar-glance-header-meta {
    display: flex;
    max-width: none;
    align-items: center;
    gap: 5px;
    color: #a3b0bc;
    font-size: 9px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

#radar-glance .radar-glance-session-chip {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: inherit;
}

.radar-glance-meta-separator,
.radar-glance-meta-date { color: #64717d; }
.radar-glance-meta-sync { color: #d9b75d; }

#radar-glance .radar-glance-map-tabs {
    flex: 0 0 auto;
    gap: 0;
    padding: 0 8px;
    border-bottom: 1px solid rgba(141, 158, 172, 0.18);
    background: #07090b;
}

#radar-glance .radar-glance-map-tabs button {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 2px;
    border-bottom: 2px solid transparent;
    color: #76838e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: none;
}

#radar-glance .radar-glance-map-tabs button span {
    color: #56636d;
    font-variant-numeric: tabular-nums;
}

#radar-glance .radar-glance-map-tabs button.active {
    border-bottom-color: #37f29a;
    color: #f1f5f8;
    text-shadow: none;
}

#radar-glance .radar-glance-map-tabs button.active span { color: #37f29a; }
#radar-glance .radar-glance-map-tabs button:focus-visible { outline: 1px solid #37f29a; outline-offset: -3px; }

#radar-glance .radar-glance-map-track {
    gap: 0;
    padding: 0;
    scroll-padding-left: 0;
}

#radar-glance .radar-glance-group {
    flex: 0 0 100%;
    border: 0;
    background: transparent;
}

#radar-glance .radar-glance-stage {
    min-height: 34px;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(141, 158, 172, 0.14);
    background: transparent;
}

#radar-glance .radar-glance-stage-name {
    color: #e5ecf1 !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

#radar-glance .radar-glance-stage-name span {
    color: #697987;
    font-weight: 600;
}

#radar-glance .radar-glance-stage-count {
    color: var(--group-accent) !important;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: none;
}

#radar-glance .radar-glance-map-list {
    gap: 0;
    padding: 0 10px;
    scrollbar-color: rgba(145, 162, 176, 0.3) transparent;
}

#radar-glance .radar-glance-map-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 41px;
    padding: 5px 8px;
    border: 0;
    border-bottom: 1px solid rgba(141, 158, 172, 0.13);
    border-left: 2px solid transparent;
    background: transparent;
    box-shadow: none;
}

#radar-glance .radar-glance-map-row:last-child {
    border-bottom: 0;
}

#radar-glance .radar-glance-map-row:hover,
#radar-glance .radar-glance-map-row:focus-visible {
    border-left: 2px solid var(--group-accent);
    background: rgba(190, 209, 222, 0.07);
    box-shadow: none;
}

#radar-glance .radar-glance-map-row.gex-confluence,
#radar-glance .radar-glance-map-row.gex-confluence:hover,
#radar-glance .radar-glance-map-row.gex-confluence:focus-visible {
    border-color: rgba(141, 158, 172, 0.13);
    border-left: 2px solid #ab8adb;
    background: transparent;
    box-shadow: none;
}

#radar-glance .radar-glance-map-row.gex-confluence:hover,
#radar-glance .radar-glance-map-row.gex-confluence:focus-visible {
    background: rgba(171, 138, 219, 0.08);
}

#radar-glance .radar-glance-map-row.gex-rotation-bullish,
#radar-glance .radar-glance-map-row.gex-rotation-bearish {
    border: 0;
    border-bottom: 1px solid rgba(141, 158, 172, 0.13);
    border-left: 2px solid #37b983;
    background: transparent;
    box-shadow: none;
}

#radar-glance .radar-glance-map-row.gex-rotation-bearish { border-left-color: #d45b70; }
#radar-glance .radar-glance-map-row.gex-rotation-bullish:hover { background: rgba(55, 185, 131, 0.08); }
#radar-glance .radar-glance-map-row.gex-rotation-bearish:hover { background: rgba(212, 91, 112, 0.08); }

#radar-glance .radar-glance-row-main strong,
#radar-glance .radar-glance-map-row.gex-confluence .radar-glance-row-main strong,
#radar-glance .radar-glance-map-row.gex-rotation-bullish .radar-glance-row-main strong,
#radar-glance .radar-glance-map-row.gex-rotation-bearish .radar-glance-row-main strong {
    color: #e8edf1;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-shadow: none;
}

#radar-glance .radar-glance-row-intel {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#radar-glance .radar-glance-row-context {
    color: #7c8b97;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

#radar-glance .gex-confluence .radar-glance-row-context { color: #b99add; }
#radar-glance .gex-rotation-bullish .radar-glance-row-context { color: #55c998; }
#radar-glance .gex-rotation-bearish .radar-glance-row-context { color: #e18494; }

#radar-glance .radar-glance-row-intel em,
#radar-glance .radar-glance-row-intel em.is-price-discovery {
    color: #acb8c2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: none;
}

@media (min-width: 1500px) {
    #radar-glance .radar-glance-map-row { min-height: 56px; }
    #radar-glance .radar-glance-map-tabs button { font-size: 10px; }
    #radar-glance .radar-glance-stage-name { font-size: 11px; }
    #radar-glance .radar-glance-row-main strong { font-size: 12px; }
    #radar-glance .radar-glance-row-intel em,
    #radar-glance .radar-glance-row-intel em.is-price-discovery { font-size: 11px; }
}

@media (max-width: 1100px) and (min-width: 769px) {
    #radar-glance .radar-glance-map-row:nth-child(n + 6) { display: grid; }
}

@media (max-width: 768px) {
    #radar-glance .radar-glance-map-track {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
    }
}

/* Critical Events Log: compact terminal chrome with a definite flexible height. */
#economic-calendar-modal .crt-window {
    width: min(90vw, 760px);
    height: min(620px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    border-radius: 0;
    background: #0b0c0d;
}
#economic-calendar-modal .crt-header { flex: 0 0 auto; background: #151719; border-color: #292b2e; }
#economic-calendar-modal .crt-title { color: #ddd; font-family: 'JetBrains Mono', monospace; text-shadow: none; }
#economic-calendar-modal .crt-content {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: #0b0c0d;
}
#economic-calendar-modal .economic-calendar-heading { justify-content: flex-end; padding: 7px 12px; }
#economic-calendar-modal .economic-calendar-heading h2 { display: none; }
#economic-calendar-modal .crt-footer { flex: 0 0 auto; padding: 6px 12px; color: #868b92; border-color: #292b2e; font-size: 9px; }
html.terminal-embed[data-terminal-native=calendar] body::after { display: none; }
@media(max-width:520px) {
    #economic-calendar-modal .crt-window { width: calc(100vw - 20px); max-width: none; height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); }
    .economic-calendar-heading { padding: 8px; gap: 8px; }
    .economic-calendar-heading h2 { font-size: 11px; }
    .economic-calendar-heading span { font-size: 8px; }
}

/* Hyperliquid uses the same small mark as Tracer; here it opens the PERP terminal. */
.price-action-hyperliquid-btn{display:inline-flex;align-items:center;gap:5px;text-transform:none}
.price-action-hyperliquid-btn.is-active{color:#ffad48}
.price-action-hyperliquid-btn .tracer-hyperliquid-pixel-mark{position:relative;width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#3be4cd;box-shadow:0 0 0 1px #3be4cd2e;opacity:.42;image-rendering:pixelated}
.price-action-hyperliquid-btn .tracer-hyperliquid-pixel-mark::after{content:"";position:absolute;inset:2px 1px;background:#071316;clip-path:polygon(0 0,25% 0,38% 34%,62% 34%,75% 0,100% 0,100% 100%,75% 100%,62% 66%,38% 66%,25% 100%,0 100%)}
.price-action-hyperliquid-btn.is-active .tracer-hyperliquid-pixel-mark{opacity:1;box-shadow:0 0 0 1px #0546406b,0 0 4px #3be4cdad}
#live-price-action.price-action-view-perp{min-height:0;flex:1 1 0;height:100%;max-height:100%}
#live-price-action.price-action-view-perp #chart-container{padding:0;min-height:0;height:100%;overflow:hidden}
.price-action-perp-terminal{display:block;border:0;width:100%;height:100%;flex:1 1 0;min-height:0;background:#0a0a0a}
@media(min-width:769px){.terminal-dashboard-slot[data-slot=chart]:has(> .terminal-dashboard-original:not([hidden]) > .price-action-view-perp){min-height:0;overflow:hidden}.center-col:has(.price-action-view-perp){min-height:0}#live-price-action.price-action-view-perp .widget-header{flex-shrink:0}}
@media(max-width:768px){#live-price-action.price-action-view-perp{min-height:1120px;height:auto;max-height:none;flex:none}.price-action-perp-terminal{height:1080px;min-height:1080px}}

.price-action-hyperliquid-btn{color:#ffad48}.price-action-hyperliquid-btn .tracer-hyperliquid-pixel-mark{width:12px;height:10px;flex-basis:12px;background:url('/assets/hyperliquid-mark.svg') center/contain no-repeat;border-radius:0;opacity:1;box-shadow:none}.price-action-hyperliquid-btn .tracer-hyperliquid-pixel-mark::after{display:none}

/* Hyperliquid owns its stream status beside the wallet controls. */
#live-price-action.price-action-view-perp #status-chart{display:none}

/* Side Radar while a fresh snapshot is taken: ticker names cycle with a terminal flash (no stale numbers). */
.radar-glance-scan { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 220px; font-family: 'JetBrains Mono', monospace; }
.radar-glance-scan .rgs-head { display: flex; align-items: center; gap: 6px; color: #8f8f8f; font-size: 9px; letter-spacing: .12em; }
.radar-glance-scan .rgs-dot { width: 6px; height: 6px; background: #e0ac55; animation: rgs-blink 1s steps(2, start) infinite; }
.radar-glance-scan .rgs-ticker { min-width: 120px; padding: 3px 10px; text-align: center; color: #ececec; font-size: 22px; font-weight: 600; letter-spacing: .08em; }
.radar-glance-scan .rgs-ticker.is-flash { animation: rgs-flash .22s ease-out; }
.radar-glance-scan .rgs-bar { width: 60%; max-width: 220px; height: 2px; background: #1d1d1d; }
.radar-glance-scan .rgs-bar span { display: block; height: 100%; width: 0; background: #58ac88; transition: width .2s linear; }
.radar-glance-scan .rgs-count { color: #6c6c6c; font-size: 9px; font-variant-numeric: tabular-nums; }
.radar-glance-scan .rgs-note { color: #555; font-size: 8px; letter-spacing: .1em; }
@keyframes rgs-flash { from { background: #49cf7c; color: #04180b; } to { background: transparent; } }
@keyframes rgs-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .radar-glance-scan .rgs-ticker.is-flash, .radar-glance-scan .rgs-dot { animation: none; } }
.radar-glance-map-row.radar-glance-arrive { animation: rg-arrive .6s ease-out both; }
@keyframes rg-arrive { 0% { opacity: 0; transform: translateY(-3px); } 20% { opacity: 1; transform: none; background: rgba(73, 207, 124, .55); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .radar-glance-map-row.radar-glance-arrive { animation: none; } }

/* PA new ticker: chart fades in fast; the header (ticker, price, change) carries the motion. */
.chart-fade-in { animation: pa-fade .12s ease-out both; }
@keyframes pa-fade { from { opacity: 0; } }
.price-action-chart-quote.is-landing strong { animation: pa-quote-flash .7s ease-out; }
.price-action-chart-quote.is-landing.is-up strong { --pa-flash: #45e08a; }
.price-action-chart-quote.is-landing.is-down strong { --pa-flash: #ff4466; }
@keyframes pa-quote-flash { 0%, 20% { background: var(--pa-flash, #e0ac55); color: #000; } 100% { background: transparent; } }
.price-action-chart-quote.is-landing .price-action-chart-change { animation: pa-change-in .28s steps(3, end) .3s both; }
@keyframes pa-change-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.price-action-chart-ticker.is-typing input { animation: pa-type .15s steps(4, end); }
@keyframes pa-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) {
    .chart-fade-in, .price-action-chart-quote.is-landing strong, .price-action-chart-quote.is-landing .price-action-chart-change, .price-action-chart-ticker.is-typing input { animation: none; }
}

/* Owner welcome: amber access badge + border accent. */
.vip-overlay.is-owner{border-color:#6b5839}.vip-overlay.is-owner .access{color:#e0ac55}.vip-overlay.is-owner .light{background:#e0ac55;box-shadow:0 0 5px #e0ac5560}

/* ECO board (Critical Events Log): our own schedule, Bloomberg-style. */
.eco-board { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; font-family: 'JetBrains Mono', monospace; background: #050607; color: #c9ced3; }
/* Tracked Fish-style log: badge bar, one-line NEXT hero, DATE / ET / TYPE / EVENT / IN table, type chips. */
.eco-bar { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #1d2024; white-space: nowrap; overflow: hidden; }
.eco-badge { background: #e0ac55; color: #120c02; font-size: 10px; font-weight: 700; padding: 0 5px; letter-spacing: .04em; }
.eco-bar strong { color: #e0ac55; font-size: 11px; letter-spacing: .18em; font-weight: 600; }
.eco-count { color: #6b7178; font-size: 10px; }
.eco-src { margin-left: auto; color: #6b7178; font-size: 9px; letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; }
.eco-hero { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #1d2024; background: #0d0b07; min-width: 0; }
.eco-hero-label { font-size: 9px; letter-spacing: .14em; color: #6b7178; }
.eco-hero-name { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.eco-hero-name em, .eco-name em { font-style: normal; font-size: 8px; letter-spacing: .08em; color: #e0ac55; border: 1px solid rgba(224,172,85,.5); padding: 0 4px; margin-left: 6px; vertical-align: middle; }
.eco-hero-when { font-size: 10px; color: #6b7178; white-space: nowrap; }
.eco-clock { margin-left: auto; font-size: 18px; font-weight: 600; color: #e0ac55; font-variant-numeric: tabular-nums; letter-spacing: .02em; padding: 0 4px; white-space: nowrap; }
.eco-clock.tick { animation: eco-tick .7s ease-out; }
@keyframes eco-tick { from { background: rgba(224,172,85,.25); color: #fff; } to { background: transparent; } }
.eco-controls { display: flex; align-items: center; gap: 12px; padding: 4px 12px; border-bottom: 1px solid #1d2024; }
.eco-controls button { height: 18px; padding: 0 1px; font: 600 9px 'JetBrains Mono', monospace; letter-spacing: .1em; color: #6b7178; background: transparent; border: 0; cursor: pointer; }
.eco-controls button[aria-pressed="true"] { color: #e0ac55; box-shadow: inset 0 -1px 0 #e0ac55; }
.eco-sep { flex: 1; }
.eco-cols, .eco-row { display: grid; grid-template-columns: 74px 38px 50px minmax(0, 1fr) 58px; column-gap: 8px; align-items: center; padding: 0 12px; }
.eco-cols { padding-top: 4px; padding-bottom: 4px; font-size: 9px; letter-spacing: .12em; color: #6b7178; border-bottom: 1px solid #1d2024; }
.eco-cols span:last-child, .eco-left { text-align: right; }
.eco-list { flex: 1 1 0; min-height: 0; overflow-y: auto; padding-bottom: 6px; }
.eco-row { min-height: 23px; font-size: 11px; border-bottom: 1px solid #0f1113; animation: eco-in .3s steps(3, end) both; animation-delay: calc(min(var(--i), 30) * 22ms); }
@keyframes eco-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.eco-row:hover { background: #0d1013; }
.eco-date, .eco-time { color: #9aa0a8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eco-chip { justify-self: start; font-size: 9px; font-weight: 700; letter-spacing: .04em; padding: 0 5px; line-height: 14px; background: #3a3f45; color: #e6e8ea; }
.eco-chip.t-fed { background: #4a5bd6; color: #eef0ff; } .eco-chip.t-infl { background: #e0405c; color: #fff2f4; }
.eco-chip.t-jobs { background: #1fae63; color: #04140b; } .eco-chip.t-gdp { background: #3bb7d0; color: #03181d; }
.eco-chip.t-cons { background: #e0ac55; color: #120c02; } .eco-chip.t-potus { background: #c062b4; color: #fff0fb; }
.eco-name { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eco-row.i1 .eco-name { color: #9aa0a8; }
.eco-left { color: #e0ac55; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eco-later { padding: 3px 12px; font-size: 9px; letter-spacing: .14em; color: #4b5057; background: #0a0b0d; border-bottom: 1px solid #1d2024; }
.eco-row.is-later { opacity: .5; } .eco-row.is-later .eco-left { color: #6b7178; }
.eco-row.is-next { background: #14110a; box-shadow: inset 2px 0 0 #e0ac55; }
.eco-row.is-next .eco-left { animation: eco-pulse 1.6s ease-in-out infinite; }
@keyframes eco-pulse { 50% { opacity: .45; } }
.eco-row.is-soon { box-shadow: inset 2px 0 0 #ff4466; } .eco-row.is-soon .eco-left { color: #ff4466; font-weight: 600; }
.eco-row.is-out { opacity: .4; }
.eco-empty { padding: 18px; text-align: center; color: #6b7178; font-size: 10px; }
.eco-foot { padding: 6px 12px 6px 30px; border-top: 1px solid #1d2024; font-size: 8px; color: #6b7178; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#economic-calendar-modal .economic-calendar-heading { display: none; }
@media (prefers-reduced-motion: reduce) { .eco-row, .eco-clock.tick, .eco-row.is-next .eco-left { animation: none; } }

/* Date box on a quiet day: same shape, no alarm; the amber countdown sits underneath. */
.date.events-link:not(.critical-event) { border: 2px solid #3a3f45; padding: 2px 8px; border-radius: 4px; cursor: pointer; position: relative; transition: all 0.2s ease; color: #e9ecef; }
.date.events-link:not(.critical-event):hover { border-color: #e0ac55; }
.date.events-link:not(.critical-event)::after { content: attr(data-next); position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); font-family: 'VT323', monospace; font-size: 9px; color: #e0ac55; letter-spacing: 0.5px; white-space: nowrap; }
.session-item:not(.open):not(.premarket) .session-name { color: #7d848b; }
@media (max-width: 600px) {
    .date.events-link::after { left: auto !important; right: 0; transform: none !important; }
}

