/* 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;
}

/* 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);
}

/* Heatmap Error State */
.heatmap-error {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #FF3333;
    background: rgba(255, 51, 51, 0.05);
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.heatmap-error .error-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.heatmap-error .error-text {
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: bold;
}

.heatmap-error .error-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    animation: pulse 2s infinite;
}

/* 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: 100px;
    /* Ultra-compact for maximum chart space */
    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 */
}

.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 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;
}

.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;
}

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

/* === 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: 50%;
    /* Circular */
    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 .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;
}

/* 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;
}

/* 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;
}

@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);
    animation: trigger-pulse 2s ease-in-out infinite;
}

@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) - Enhanced Cyan Blue indicator */
.atm-row {
    background: rgba(0, 255, 255, 0.15) !important;
    border-left: 4px solid var(--electric-cyan) !important;
    border-right: 4px solid var(--electric-cyan) !important;
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.2);
    animation: atm-pulse 2s infinite ease-in-out;
    z-index: 10;
}

@keyframes atm-pulse {

    0%,
    100% {
        background: rgba(0, 255, 255, 0.15) !important;
        box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.2);
    }

    50% {
        background: rgba(0, 255, 255, 0.25) !important;
        box-shadow: inset 0 0 25px rgba(0, 255, 255, 0.4);
    }
}


@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: var(--electric-cyan);
    font-weight: bold;
    text-shadow: 0 0 5px var(--electric-cyan);
    border: none;
    background: transparent;
    position: relative;
}

.atm-row .gamma-strike::after {
    content: "CURRENT";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: var(--electric-cyan);
    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.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 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;
    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.05);
    border-left: 2px solid var(--electric-cyan);
    padding-left: 10px;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.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 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 #d500f9;
    /* Purple hover accent */
}

/* 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-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;
    }

    /* Intel feed first */
    #unusual-whales {
        order: 2;
    }

    /* Unusual Whales second */
    #live-price-action {
        order: 3;
    }

    /* Price Action third */
    #gamma-wall {
        order: 4;
    }

    /* Gamma Wall */
    #polymarket-odds {
        order: 5;
    }

    /* 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: 400px;
        /* Ensure enough space for chart */
        height: auto;
    }

    #live-price-action .widget-content {
        padding: 10px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #chart-container {
        flex: 1;
        min-height: 350px !important;
        /* Taller chart on mobile */
        height: 100% !important;
        width: 100% !important;
    }

    /* 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;
    }

    /* Smaller ticker selector on mobile */
    #live-price-action .retro-selector {
        font-size: 10px;
        padding: 2px 4px;
        margin-left: 5px;
    }

    /* Header Adjustments */
    .main-header {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .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;
    }

    /* Heatmap Mobile Optimization */
    .heatmap-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
    }

    /* 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 (TREEMAP STYLE) --- */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    grid-auto-rows: minmax(35px, auto);
    /* Reduced from 50px to fit all */
    grid-auto-flow: dense;
    /* Packs items tightly */
    gap: 1px;
    /* Tight gap for FinViz look */
    padding: 0;
    height: 450px;
    /* Increased height for more items */
    overflow-y: hidden;
    /* Hide scrollbar if possible, auto if needed */
    background: #000;
}

.heatmap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    /* Base reduced */
    color: #FFFFFF;
    transition: all 0.2s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.heatmap-item:hover {
    z-index: 10;
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Sizing Classes */
.heatmap-item.size-mega {
    grid-column: span 2;
    grid-row: span 2;
    font-size: 14px;
    /* Reduced from 16px */
    font-weight: bold;
}

.heatmap-item.size-large {
    grid-column: span 2;
    grid-row: span 1;
    font-size: 11px;
    /* Reduced from 13px */
    font-weight: bold;
}

.heatmap-item.size-medium {
    grid-column: span 1;
    grid-row: span 1;
    font-size: 10px;
    /* Reduced from 11px */
}

.heatmap-item.size-small {
    grid-column: span 1;
    grid-row: span 1;
    font-size: 9px;
    /* Reduced from 10px */
}

.heatmap-item .sector-symbol {
    font-weight: bold;
    margin-bottom: 2px;
}

.heatmap-item .sector-change {
    opacity: 0.9;
}

/* Color Coding - Intensity Based (FinViz style) */
/* Positive - Green intensity levels */
.heatmap-item.positive.intensity-1 {
    background: #0a3d1d;
    border: 1px solid #1a6b35;
}

.heatmap-item.positive.intensity-2 {
    background: #0d5228;
    border: 1px solid #1e8e3e;
}

.heatmap-item.positive.intensity-3 {
    background: #117a33;
    border: 1px solid #2eb851;
}

.heatmap-item.positive.intensity-4 {
    background: #15a043;
    border: 1px solid #3ce06a;
    box-shadow: 0 0 8px rgba(60, 224, 106, 0.3);
}

/* Negative - Red intensity levels */
.heatmap-item.negative.intensity-1 {
    background: #4a1111;
    border: 1px solid #8b2222;
}

.heatmap-item.negative.intensity-2 {
    background: #661111;
    border: 1px solid #cc2222;
}

.heatmap-item.negative.intensity-3 {
    background: #8b1515;
    border: 1px solid #e03030;
}

.heatmap-item.negative.intensity-4 {
    background: #b01a1a;
    border: 1px solid #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

.heatmap-item.neutral {
    background: #333333;
    border: 1px solid #555;
}

/* Flash animation on data update */
.heatmap-item.heatmap-flash {
    animation: heatmapFlash 0.6s ease-out forwards;
}

@keyframes heatmapFlash {
    0% {
        filter: brightness(1.8);
        transform: scale(1.02);
    }

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

/* Timestamp styling */
.heatmap-ts {
    font-size: 9px;
    color: #666;
    margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.heatmap-item.loading {
    grid-column: span 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
    height: 100%;
}

/* === 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 */
}

/* 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: rgba(0, 0, 0, 0.95);
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 9999;
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: #FFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    min-width: 150px;
    max-width: 200px;
    backdrop-filter: blur(4px);
    transition: opacity 0.1s ease;
}

.gamma-tooltip.call-tooltip {
    border-color: var(--bullish-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

/* 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 {
    border-color: var(--bearish-color);
    box-shadow: 0 0 10px rgba(255, 0, 153, 0.2);
}

.tooltip-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    display: flex;
    justify-content: space-between;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.tooltip-label {
    color: #888;
    margin-right: 10px;
}

.tooltip-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

/* Gamma Wall Bars */
.gamma-row {
    display: flex;
    align-items: center;
    height: 14px;
    width: 100%;
    font-family: 'VT323', monospace;
    font-size: 12px;
    transform: translateZ(0);
    /* Promote to composite layer */
    will-change: transform;
    /* Hint to browser */
    position: relative;
    /* Required for FLIP label positioning */
}

.gamma-put-side,
.gamma-call-side {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
    /* Ensure side containers fill the row height */
}

.gamma-put-side {
    justify-content: flex-end;
    padding-right: 5px;
    border-right: 1px solid #333;
}

.gamma-call-side {
    justify-content: flex-start;
    padding-left: 5px;
    border-left: 1px solid #333;
}

.gamma-strike {
    width: 48px;
    text-align: center;
    color: #bbb;
    font-weight: bold;
    font-size: 11px;
    font-family: 'VT323', monospace;
    letter-spacing: 0.5px;
}

.gamma-bar-put {
    height: 10px;
    /* Fixed height to prevent collapse */
    background: var(--bearish-color);
    /* Solid color, no gradient */
    opacity: 0.9;
    /* Increased for better visibility */
    border-right: 2px solid var(--bearish-color);
    /* box-shadow removed to stop glow */
    transition: width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: width;
    min-width: 2px;
    /* Ensure visible even if tiny */
}

.gamma-bar-call {
    height: 10px;
    /* Fixed height to prevent collapse */
    background: var(--bullish-color);
    /* Solid color, no gradient */
    opacity: 0.9;
    /* Increased for better visibility */
    border-left: 2px solid var(--bullish-color);
    /* Reduced from 4px */
    transition: width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: width;
    min-width: 2px;
    /* Ensure visible even if tiny */
}

@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.6) !important;
}

/* === HOLLOW FRAME GHOST MODE (Next Trading Day) === */
/* Applied to #gamma-chart-bars when showing next-day data */

/* Base transition for all bar states */
.gamma-bar-put,
.gamma-bar-call {
    transition: all 0.3s ease, width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Ghost Mode: Hollow frames with colored borders */
.gamma-ghost-mode .gamma-bar-put {
    background-color: transparent !important;
    border: 1px solid var(--bearish-color);
    opacity: 0.6;
}

.gamma-ghost-mode .gamma-bar-call {
    background-color: transparent !important;
    border: 1px solid var(--bullish-color);
    opacity: 0.6;
}

/* Ghost Mode: Max walls still pulse but with hollow styling */
.gamma-ghost-mode .gamma-max-wall {
    background-color: transparent !important;
    border-width: 2px !important;
    opacity: 0.8;
}

/* Ghost Mode: ATM row remains solid and high-contrast */
.gamma-ghost-mode .atm-row .gamma-bar-put,
.gamma-ghost-mode .atm-row .gamma-bar-call {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    opacity: 1 !important;
}

/* Ghost Mode: FLIP label remains solid */
.gamma-ghost-mode .zero-gamma-label {
    opacity: 1 !important;
    text-shadow: 0 0 8px currentColor;
}

/* Ghost Mode: Strike labels slightly dimmed */
.gamma-ghost-mode .gamma-strike {
    opacity: 0.7;
}

/* Ghost Mode: Magnet/Trigger/Unusual strikes remain bright */
.gamma-ghost-mode .magnet-strike,
.gamma-ghost-mode .trigger-strike,
.gamma-ghost-mode .unusual-strike {
    opacity: 1 !important;
}

.gamma-axis-label {
    display: flex;
    justify-content: space-between;
    padding: 2px 15px;
    font-family: 'VT323', monospace;
    font-size: 10px;
    color: #555;
    border-top: 1px solid #222;
    margin-top: 2px;
}

.gamma-axis-top {
    border-top: none;
    border-bottom: 1px solid #222;
    margin-top: 0;
    margin-bottom: 2px;
    color: #888;
    font-size: 11px;
}

.gamma-axis-top span:first-child {
    color: #ff6666;
}

.gamma-axis-top span:last-child {
    color: #66ff88;
}

.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 Resolution Badge */
.polymarket-resolving-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;
    animation: pulse-amber 2s infinite;
}

@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;
}

/* VIP Animation */
.vip-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 999999;
    animation: vip-fade-out 3s forwards;
    animation-delay: 1s;
}

.vip-text {
    font-family: 'VT323', monospace;
    /* 16-bit retro font matching the app aesthetic */
    font-size: 48px;
    color: #FFD700;
    /* Gold */
    text-shadow: 4px 4px 0px #000, -2px -2px 0 #FFA500;
    margin-bottom: 20px;
    animation: vip-bounce 0.5s infinite alternate;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.vip-subtext {
    font-family: 'VT323', monospace;
    font-size: 24px;
    color: #FFF;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 4px;
}

@keyframes vip-bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

@keyframes vip-fade-out {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* 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;
}

.billing-link {
    position: absolute;
    top: 22px;
    right: 20px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: #00FFFF;
    cursor: pointer;
    text-transform: uppercase;
    z-index: 200;
    transition: color 0.2s;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.billing-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;
}

/* "CRITICAL EVENTS" label below date to indicate tappability */
.date.critical-event::after {
    content: 'CRITICAL EVENTS';
    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);
}

/* CRT Window */
.crt-window {
    position: relative;
    width: 600px;
    max-width: 90%;
    background: #0a0a0a;
    border: 4px solid #FF3333;
    /* Neon Red Border */
    border-radius: 12px;
    /* Softened Border */
    box-shadow:
        0 0 20px rgba(255, 51, 51, 0.6),
        inset 0 0 20px rgba(255, 51, 51, 0.2);
    display: flex;
    flex-direction: column;
    font-family: 'Press Start 2P', cursive;
    /* Retro Pixel Font */
    animation: windowOpen 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    /* Ensure content respects border radius */
}

@keyframes windowOpen {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
.crt-header {
    background: #FF3333;
    color: #000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crt-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
}

.crt-close-btn {
    background: none;
    border: none;
    color: #000;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.crt-close-btn:hover {
    color: #FFFFFF;
}

/* 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;
}

.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-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;
    margin-left: auto;
    /* Push to right */
    letter-spacing: 1px;
}

.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%;
}