/* NIBIRU Terminal - Bloomberg Professional Style */
/* Professional Financial Terminal Design */

:root {
    /* Bloomberg Color Palette */
    --bloomberg-black: #000000;
    --bloomberg-dark: #0a0a0a;
    --bloomberg-darker: #1a1a1a;
    --bloomberg-orange: #ff6600;
    --bloomberg-orange-light: #ff8833;
    --bloomberg-orange-dark: #cc5200;
    --bloomberg-blue: #0066cc;
    --bloomberg-green: #00ff88;
    --bloomberg-red: #ff3333;
    --bloomberg-yellow: #ffcc00;
    --bloomberg-gray: #333333;
    --bloomberg-light-gray: #666666;
    --bloomberg-text: #ffffff;
    --bloomberg-text-secondary: #cccccc;
    --bloomberg-text-muted: #999999;
    --bloomberg-border: #333333;
    --bloomberg-border-light: #444444;
    
    /* Typography */
    --font-mono: 'Doto', 'JetBrains Mono', 'Courier New', monospace;
    --font-sans: 'Doto', 'Inter', 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Borders */
    --border-radius: 2px;
    --border-width: 1px;
}

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

body {
    font-family: 'Doto', var(--font-sans);
    background: var(--bloomberg-black);
    color: var(--bloomberg-text);
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 13px;
    font-weight: 400;
}

.calendar-v2-header { position: relative; display: flex; align-items: center; justify-content: space-between; }
.calendar-v2-header .digital-title { font-family: var(--font-mono); color: var(--bloomberg-orange); letter-spacing: 1px; }

/* Calendar Version Toggle Buttons */
.calendar-version-tabs {
    display: flex;
    gap: 8px;
}

.calendar-version-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-version-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.calendar-version-btn.active {
    background: var(--bloomberg-orange);
    border-color: var(--bloomberg-orange);
    color: #000000;
}

.calendar-version-content {
    display: none;
    height: calc(100% - 60px);
    width: 100%;
}

.calendar-version-content.active {
    display: block;
}
/* Authentication Styles */
.auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-btn {
    background: var(--bloomberg-darker);
    color: var(--bloomberg-orange);
    border: 1px solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    background: var(--bloomberg-orange);
    color: var(--bloomberg-black);
    border-color: var(--bloomberg-orange);
}

.auth-btn.login-btn {
    border-bottom: 2px solid var(--bloomberg-green);
    box-shadow: 0 -2px 0 rgba(0, 255, 136, 0.3) inset;
}

.auth-btn.logout-btn {
    border-bottom: 2px solid var(--bloomberg-red);
    box-shadow: 0 -2px 0 rgba(255, 51, 51, 0.3) inset;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info, .wallet-info {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--bloomberg-text-secondary);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--bloomberg-border);
}

/* Authentication Modal */
.auth-modal, .payment-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: 10000;
    backdrop-filter: blur(5px);
}

.auth-modal-content, .payment-modal-content {
    background: var(--bloomberg-darker);
    border: 2px solid var(--bloomberg-orange);
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
}

.auth-modal-header, .payment-modal-header {
    background: var(--bloomberg-orange);
    color: var(--bloomberg-black);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--bloomberg-black);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.1);
}

.auth-modal-body, .payment-modal-body {
    padding: 20px;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-form h4 {
    color: var(--bloomberg-orange);
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form input {
    width: 100%;
    background: var(--bloomberg-black);
    border: 1px solid var(--bloomberg-border);
    color: var(--bloomberg-text);
    padding: 12px;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--bloomberg-orange);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.auth-action-btn, .wallet-btn, .payment-btn {
    width: 100%;
    background: var(--bloomberg-orange);
    color: var(--bloomberg-black);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.auth-action-btn:hover, .wallet-btn:hover, .payment-btn:hover {
    background: var(--bloomberg-orange-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

.wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-status, .payment-status {
    padding: 10px;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
}

.auth-status.success, .payment-status.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--bloomberg-green);
    color: var(--bloomberg-green);
}

.auth-status.error, .payment-status.error {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid var(--bloomberg-red);
    color: var(--bloomberg-red);
}

.auth-status.loading, .payment-status.loading {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid var(--bloomberg-yellow);
    color: var(--bloomberg-yellow);
}

/* Payment Modal Specific Styles */
.payment-info {
    text-align: center;
    margin-bottom: 20px;
}

.payment-details {
    background: var(--bloomberg-black);
    border: 1px solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
}

.payment-amount {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--bloomberg-orange);
    margin-bottom: 8px;
}

.payment-description {
    font-size: 12px;
    color: var(--bloomberg-text-secondary);
}

.payment-actions {
    display: flex;
    gap: 10px;
}

.cancel-btn {
    flex: 1;
    background: var(--bloomberg-gray);
    color: var(--bloomberg-text);
    border: 1px solid var(--bloomberg-border);
    padding: 12px;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: var(--bloomberg-light-gray);
}

.payment-btn {
    flex: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-content, .payment-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .auth-section {
        flex-direction: column;
        gap: 5px;
    }
    
    .user-profile {
        flex-direction: column;
        gap: 5px;
    }
    
    .payment-actions {
        flex-direction: column;
    }
}

.bookmark-tabs { position: relative; display: flex; gap: 6px; }
.bookmark-btn { position: relative; background: var(--bloomberg-darker); color: var(--bloomberg-orange); border: 1px solid var(--bloomberg-border); border-bottom: 2px solid var(--bloomberg-orange); border-top-left-radius: 3px; border-top-right-radius: 3px; padding: 5px 10px; font-family: var(--font-mono); font-size: 11px; display: flex; align-items: center; gap: 6px; cursor: pointer; box-shadow: 0 -2px 0 rgba(255, 102, 0, 0.3) inset; }
.bookmark-btn:hover { background: #111; }
.bookmark-label { display: inline-flex; align-items: center; gap: 6px; }
.bookmark-icon svg { display: block; }
.bookmark-close { display: none; color: var(--bloomberg-text); margin-left: 6px; }
.bookmark-btn.open { color: var(--bloomberg-text); border-bottom-color: var(--bloomberg-red); }
.bookmark-btn.open .bookmark-close { display: inline; }
.chat-overlay { position: fixed; top: 0; left: 50%; transform: translate(-50%, -20px); width: min(920px, 92vw); max-height: 80vh; background: var(--bloomberg-dark); border: 1px solid var(--bloomberg-border); box-shadow: 0 10px 40px rgba(0,0,0,0.6); border-radius: 4px; opacity: 0; pointer-events: none; transition: transform 260ms ease-out, opacity 260ms ease-out; z-index: 1200; }
.chat-overlay.open { transform: translate(-50%, 20px); opacity: 1; pointer-events: auto; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--bloomberg-border); background: var(--bloomberg-darker); }
.chat-title { font-family: var(--font-mono); color: var(--bloomberg-orange); font-size: 12px; }
.chat-close { cursor: pointer; color: var(--bloomberg-text); font-size: 14px; }
.chat-body { padding: 8px 12px; overflow-y: auto; max-height: 60vh; font-family: var(--font-mono); background: var(--bloomberg-darker); min-height: 200px; }
.chat-message { margin: 8px 0; white-space: pre-wrap; line-height: 1.4; }
.chat-message.user { color: var(--bloomberg-blue); }
.chat-message.assistant { color: var(--bloomberg-text); }
.chat-label { font-weight: bold; margin-right: 8px; }
.chat-message.user .chat-label { color: var(--bloomberg-blue); }
.chat-message.assistant .chat-label { color: var(--bloomberg-orange); }
.chat-content { color: var(--bloomberg-text); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--bloomberg-border); background: var(--bloomberg-darker); }
.chat-input input { flex: 1; background: #111; color: var(--bloomberg-text); border: 1px solid var(--bloomberg-border); padding: 8px; border-radius: 3px; font-size: 13px; }
.chat-input input::placeholder { color: var(--bloomberg-text-muted); }
.chat-input button { background: var(--bloomberg-orange); color: #000; border: none; padding: 8px 12px; border-radius: 3px; cursor: pointer; font-family: var(--font-mono); font-weight: 700; }
.chat-input button:hover { background: var(--bloomberg-orange-light); }

/* Bloomberg Terminal Header */
.terminal-header {
    background: var(--bloomberg-dark);
    border-bottom: 2px solid var(--bloomberg-orange);
    padding: var(--spacing-xs) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    height: 40px;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.terminal-title h1 {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--bloomberg-orange);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Header actions container and button overrides */
.terminal-header-actions {
    /* Middle section for navigation buttons */
}

/* Mode Labels */
.mode-label {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    line-height: 1.2;
}

.pro-label {
    background: linear-gradient(135deg, var(--bloomberg-orange), #ff8800);
    color: var(--bloomberg-black);
    box-shadow: 0 1px 2px rgba(255, 102, 0, 0.3);
}

.simple-label {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: var(--bloomberg-black);
    box-shadow: 0 1px 2px rgba(0, 212, 170, 0.3);
}

/* Mode Switch Button (Rounded Capsule Style) */
.mode-switch-btn {
    position: relative;
    background: linear-gradient(135deg, var(--bloomberg-darker), #1a1a1a);
    color: var(--bloomberg-orange);
    border: 1px solid var(--bloomberg-border);
    border-radius: 16px;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 102, 0, 0.1);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    margin-left: 8px;
}

.mode-switch-btn:hover {
    background: linear-gradient(135deg, #222, #2a2a2a);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 102, 0, 0.3);
    transform: translateY(-0.5px);
}

.mode-switch-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 102, 0, 0.2);
}

.mode-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mode-switch-icon {
    display: flex;
    align-items: center;
    font-size: 10px;
}

/* Legacy Simple Mode Button (for backward compatibility) */
.simple-mode-btn {
    position: relative;
    background: var(--bloomberg-darker);
    color: var(--bloomberg-orange);
    border: 1px solid var(--bloomberg-border);
    border-bottom: 2px solid var(--bloomberg-orange);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 -2px 0 rgba(255, 102, 0, 0.3) inset;
    transition: background 0.2s ease;
}

.simple-mode-btn:hover {
    background: #111;
}

.simple-mode-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.simple-mode-icon {
    display: flex;
    align-items: center;
}

/* Simple Mode Styles */
.simple-mode-container {
    padding: var(--spacing-md);
    min-height: calc(100vh - 60px);
    background: var(--bloomberg-black);
}

/* TradingView Widget Styling for Simple Mode */
.tradingview-widget-container {
    background: var(--bloomberg-black);
    border-bottom: 1px solid var(--bloomberg-border);
    margin: 0;
    padding: 0;
}

/* Hide TradingView Copyright */
.tradingview-widget-copyright {
    display: none !important;
}

/* Hide TradingView Logo Wrap */
.logoWrap,
[class*="logoWrap"] {
    display: none !important;
}

/* Hide TradingView JS Copyright Label */
.js-copyright-label,
[class*="js-copyright-label"] {
    display: none !important;
}

/* Aggressive TradingView Branding Removal */
.label-dzbd7lyV,
[class*="label-dzbd7lyV"],
.label-e9c6dycV,
[class*="label-e9c6dycV"],
.end-dzbd7lyV,
[class*="end-dzbd7lyV"],
.top-dzbd7lyV,
[class*="top-dzbd7lyV"],
.snap-dzbd7lyV,
[class*="snap-dzbd7lyV"],
.label__link-dzbd7lyV,
[class*="label__link-dzbd7lyV"],
.logoWrap-dzbd7lyV,
[class*="logoWrap-dzbd7lyV"],
.logoWrap-e9c6dycV,
[class*="logoWrap-e9c6dycV"],
.svgTextWrap-e9c6dycV,
[class*="svgTextWrap-e9c6dycV"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide TradingView SVG logos */
svg[viewBox="0 0 17 10"],
svg[viewBox="0 0 71 13"] {
    display: none !important;
}

/* Hide any links to TradingView with copyright attributes */
a[href*="tradingview.com"][data-target-type="copyright"],
a[href*="utm_campaign=ticker-tape-logo"],
a[href*="utm_campaign=symbol-info-logo"] {
    display: none !important;
}

.simple-mode-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

/* Simple Mode Layout Panels */
.simple-mode-left-panel {
    flex: 1;
    min-width: 550px;
}

.simple-mode-right-panel {
    flex: 1;
    min-width: 400px;
}

/* BTC Widget Specific Styling */
.simple-mode-left-panel .tradingview-widget-container {
    background: var(--bloomberg-black);
    border: 1px solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.placeholder-message {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--bloomberg-text-muted);
    border: 1px dashed var(--bloomberg-border);
    border-radius: var(--border-radius);
    background: var(--bloomberg-darker);
}

/* Crypto Screener Section Styling */
.crypto-screener-section {
    margin: var(--spacing-lg) var(--spacing-md);
    background: var(--bloomberg-black);
    border: 1px solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 500px;
}

.crypto-screener-section .tradingview-widget-container {
    height: 500px;
    background: var(--bloomberg-black);
}

.placeholder-message h2 {
    color: var(--bloomberg-orange);
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-md);
    font-size: 24px;
    letter-spacing: 2px;
}

.placeholder-message p {
    font-family: var(--font-mono);
    font-size: 14px;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--bloomberg-orange) !important; /* Force orange color */
}

/* Keep LIVE indicator green */
.status-item:first-child {
    color: white !important; /* Keep LIVE text white */
}

/* Ensure time element is orange */
#currentTime {
    color: var(--bloomberg-orange) !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bloomberg-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Container */
.container {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    grid-template-rows: 1fr;
    gap: 2px;
    height: calc(100vh - 70px); /* Adjusted to account for header (40px) + footer (30px) */
    min-height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    background: var(--bloomberg-darker);
    overflow: hidden;
}

/* Left Panel */
.left-panel {
    background: var(--bloomberg-dark);
    border-right: var(--border-width) solid var(--bloomberg-border);
    display: flex;
    flex-direction: column;
    gap: 1px; /* Reduced from 2px */
    height: calc(100vh - 70px); /* Adjusted to account for header and footer */
    overflow: hidden;
    padding-bottom: 10px; /* Add padding to ensure content doesn't touch footer */
}

/* Left panel widgets - dynamic sizing */
.left-panel .widget {
    background: var(--bloomberg-dark);
    border: var(--border-width) solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Proportional heights for 4 left-panel widgets: 20%, 25%, 30%, 25% */
.left-panel .widget:nth-child(1) { flex: 20; }
.left-panel .widget:nth-child(2) { flex: 25; }
.left-panel .widget:nth-child(3) { flex: 30; }
.left-panel .widget:nth-child(4) { flex: 25; }
.left-panel .widget-header {
    background: var(--bloomberg-darker);
    padding: 1px var(--spacing-sm); /* Reduced by 50% from 2px to 1px */
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-panel .widget-content {
    padding: 1px var(--spacing-xs); /* Reduced by 50% from 2px to 1px */
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Center Panel */
.center-panel {
    background: var(--bloomberg-dark);
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: calc(100vh - 70px); /* Adjusted to account for header and footer */
    overflow: hidden;
    padding-bottom: 10px; /* Add padding to ensure content doesn't touch footer */
}

/* Right Panel */
.right-panel {
    background: var(--bloomberg-dark);
    border-left: var(--border-width) solid var(--bloomberg-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: calc(100vh - 70px); /* Adjusted to account for header and footer */
    overflow: hidden;
    padding-bottom: 10px; /* Add padding to ensure content doesn't touch footer */
}

/* Widget Base Styling */
.widget {
    background: var(--bloomberg-dark);
    border: var(--border-width) solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.widget-header {
    background: var(--bloomberg-darker);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--bloomberg-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-content {
    padding: var(--spacing-xs); /* Reduced from var(--spacing-md) */
    flex: 1;
    overflow: auto;
}

/* Chart Container */
.chart-container {
    flex: 1;
    min-height: 100px; /* Reduced from 400px to 100px as requested */
    height: 100px; /* Fixed height of 100px */
    overflow: visible;
}

.chart-controls {
    background: var(--bloomberg-darker);
    padding: var(--spacing-sm);
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    display: flex;
    gap: var(--spacing-sm);
}

.chart-tabs {
    display: flex;
    gap: 1px;
}

.chart-tab {
    background: var(--bloomberg-gray);
    color: var(--bloomberg-text-secondary);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.chart-tab:hover {
    background: var(--bloomberg-light-gray);
    color: var(--bloomberg-text);
}

.chart-tab.active {
    background: var(--bloomberg-orange);
    color: var(--bloomberg-black);
}

/* Market Overview */
.market-overview {
    height: 50px; /* Fixed height as requested */
    overflow: hidden;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xs); /* Further reduced from var(--spacing-sm) */
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 9px; /* Reduced from 10px */
    color: var(--bloomberg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px; /* Reduced by 50% from 2px to 1px */
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 14px; /* Reduced from 16px */
    font-weight: 600;
    color: var(--bloomberg-text);
}

/* Fear & Greed Index */
.fear-greed {
    /* Removed min-height to allow dynamic sizing */
    position: relative;
}

.meter-container {
    position: relative;
    width: 80px; /* Reduced from 120px */
    height: 40px; /* Reduced from 60px */
    margin: var(--spacing-xs) auto; /* Further reduced margin */
}

.meter-bg {
    width: 80px; /* Reduced from 120px */
    height: 40px; /* Reduced from 60px */
    background: linear-gradient(
        to right,
        #ff0000 0%,
        #ff4400 25%,
        #ffff00 50%,
        #88ff00 75%,
        #00ff00 100%
    );
    border-radius: 80px 80px 0 0; /* Adjusted for new size */
    position: relative;
}

.meter-bg::after {
    content: '';
    position: absolute;
    top: 8px; /* Adjusted for new size */
    left: 8px; /* Adjusted for new size */
    right: 8px; /* Adjusted for new size */
    bottom: 0;
    background: var(--bloomberg-dark);
    border-radius: 64px 64px 0 0; /* Adjusted for new size */
}

.meter-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 32px; /* Reduced from 50px */
    background: var(--bloomberg-text);
    transform-origin: bottom center;
    z-index: 10;
    transition: transform 0.5s ease;
}

.fear-greed-value {
    text-align: center;
    margin-top: var(--spacing-xs); /* Further reduced margin */
}

.fear-greed-number {
    font-family: var(--font-mono);
    font-size: 16px; /* Further reduced from 18px */
    font-weight: 700;
    color: var(--bloomberg-orange);
}

.fear-greed-label {
    font-family: var(--font-mono);
    font-size: 8px; /* Further reduced from 9px */
    color: var(--bloomberg-text-secondary);
    text-transform: uppercase;
    margin-top: 2px; /* Minimal margin */
}

/* Liquidation Heatmap */
.liquidation-heatmap {
    min-height: 160px;
    position: relative;
    transition: all 0.3s ease;
}

.liquidation-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.liquidation-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bloomberg-darker);
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--bloomberg-border);
    transition: all 0.3s ease;
}

.liquidation-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--bloomberg-text-muted);
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    margin-top: -var(--spacing-xs);
}

.liquidation-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.liquidation-ratios {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--bloomberg-text-muted);
    margin-top: var(--spacing-sm);
}

.liquidation-sentiment {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: var(--spacing-xs);
}

/* Pulsing animations for extreme liquidations */
@keyframes pulse-red {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
        border-color: rgba(255, 51, 51, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 51, 51, 0.6);
        border-color: rgba(255, 51, 51, 0.8);
    }
}

@keyframes pulse-orange {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
        border-color: rgba(255, 102, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
        border-color: rgba(255, 102, 0, 0.8);
    }
}

/* CMC Altcoin Season Index */
.cmc-altcoin-season {
    height: 50px; /* Fixed height as requested */
    overflow: hidden;
}

.cmc-altcoin-progress-container {
    margin: var(--spacing-sm) 0; /* Reduced from var(--spacing-md) */
}

.cmc-altcoin-progress-bg {
    width: 100%;
    height: 6px; /* Reduced from 8px */
    background: var(--bloomberg-gray);
    border-radius: 3px; /* Adjusted for new height */
    overflow: hidden;
}

.cmc-altcoin-progress {
    height: 100%;
    background: linear-gradient(to right, #ff0000, #ffff00, #00ff00);
    border-radius: 3px; /* Adjusted for new height */
    transition: width 0.5s ease;
}

.cmc-altcoin-value {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 16px; /* Reduced from 20px */
    font-weight: 700;
    color: var(--bloomberg-orange);
    margin-bottom: var(--spacing-xs); /* Reduced from var(--spacing-sm) */
}

.cmc-altcoin-interpretation {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 9px; /* Reduced from 10px */
    color: var(--bloomberg-text-muted);
    text-transform: uppercase;
    margin-top: var(--spacing-xs);
}

/* Altcoin Season Container and Elements */
.altcoin-season-container {
    text-align: center;
    padding: var(--spacing-sm);
}

.altcoin-season-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--bloomberg-orange);
    margin-bottom: var(--spacing-xs);
}

.altcoin-season-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bloomberg-text);
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.altcoin-season-description {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--bloomberg-text-muted);
    text-transform: uppercase;
}

/* CMC ETF Flows Widget */
.cmc-etf-flows {
    /* Removed min-height to allow dynamic sizing */
}

.etf-flows-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs); /* Reduced from var(--spacing-sm) */
    margin: var(--spacing-xs) 0; /* Further reduced from var(--spacing-sm) */
}

.etf-flow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0; /* Further reduced padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.etf-flow-item:last-child {
    border-bottom: none;
}

.etf-flow-label {
    font-family: var(--font-mono);
    font-size: 9px; /* Reduced from 10px */
    color: var(--bloomberg-text-muted);
    text-transform: uppercase;
}

.etf-flow-value {
    font-family: var(--font-mono);
    font-size: 11px; /* Reduced from 12px */
    font-weight: 700;
    color: var(--bloomberg-orange);
}

.etf-sentiment {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 9px; /* Reduced from 10px */
    color: var(--bloomberg-text-muted);
    text-transform: uppercase;
    margin-top: var(--spacing-xs); /* Reduced from var(--spacing-sm) */
    padding: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* CMC Market Cycle Widget */
.cmc-market-cycle {
    min-height: 200px; /* Increased to accommodate new indicators */
}

/* Crypto Market Cycle Top Indicators */
.cycle-top-indicators {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cycle-top-header {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bloomberg-text);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.cycle-top-value {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--bloomberg-text);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.cycle-top-hit {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--bloomberg-text-muted);
    text-align: right;
    margin-bottom: var(--spacing-sm);
}

.cycle-top-bar {
    position: relative;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin-bottom: var(--spacing-xs);
}

.cycle-bar-section {
    flex: 1;
    height: 100%;
}

.cycle-bar-section.hold {
    background: linear-gradient(to right, #00ff00, #7fff00);
}

.cycle-bar-section.neutral {
    background: #ffffff;
}

.cycle-bar-section.sell {
    background: linear-gradient(to right, #ff4500, #ff0000);
}

.cycle-bar-indicator {
    position: absolute;
    top: -2px;
    width: 16px;
    height: 16px;
    background: var(--bloomberg-text);
    border-radius: 50%;
    border: 2px solid var(--bloomberg-dark);
    transform: translateX(-50%);
    left: 0%;
    transition: left 0.3s ease;
}

.cycle-bar-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--bloomberg-text-muted);
    text-transform: uppercase;
}

/* Market Cycle Container and Elements */
.market-cycle-container {
    text-align: center;
    padding: var(--spacing-sm);
}

.market-cycle-value {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--bloomberg-text);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.market-cycle-hit {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--bloomberg-orange);
    margin-bottom: var(--spacing-sm);
}

.market-cycle-progress {
    width: 100%;
    height: 12px;
    background: var(--bloomberg-gray);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.market-cycle-progress-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.cycle-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm); /* Reduced from var(--spacing-md) */
    margin: var(--spacing-sm) 0; /* Reduced from var(--spacing-md) */
}

.cycle-indicator {
    text-align: center;
}

.cycle-label {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    padding: 4px 8px;
    border-radius: 4px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.cycle-label.hold {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.cycle-label.sell {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.market-cycle-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    padding: 0 var(--spacing-xs);
}

.cycle-value {
    font-family: var(--font-mono);
    font-size: 12px; /* Reduced from 14px */
    font-weight: 700;
    color: var(--bloomberg-orange);
}

.cycle-phase {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px; /* Reduced from 12px */
    color: var(--bloomberg-text-muted);
    text-transform: uppercase;
    margin-top: var(--spacing-sm); /* Reduced from var(--spacing-md) */
    padding: var(--spacing-xs); /* Reduced from var(--spacing-sm) */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-weight: 700;
}

/* Indicator Search Styles */
.indicator-search-container {
    margin-bottom: 20px;
}

.search-header {
    margin-bottom: 15px;
}

.search-header h2 {
    color: #ff6600;
    font-family: 'Doto', monospace;
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input-container {
    position: relative;
    width: 100%;
}

#indicator-search {
    width: 100%;
    padding: 12px 40px 12px 16px; /* Added right padding for clear button */
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: 'Doto', monospace;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#indicator-search:focus {
    border-color: #ff6600;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

#indicator-search::placeholder {
    color: #666;
}

/* Clear Search Button */
.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
    z-index: 10;
}

.clear-search-btn:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
}

.clear-search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Show clear button when input has content */
.search-input-container.has-content .clear-search-btn {
    display: block;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #fff;
    font-family: 'Doto', monospace;
    font-size: 14px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background: #ff6600;
    color: #000;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item i {
    width: 16px;
    text-align: center;
}

.selected-indicator-container {
    margin-top: 20px;
}

.selected-indicator-container .widget {
    margin-bottom: 0;
}

/* Scrollbar for suggestions dropdown */
.suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 3px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #ff8833;
}
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 100%;
}

/* Market Cycle widget gets full width */
.indicators-grid .widget {
    grid-column: 1 / -1; /* Span full width */
    background: var(--bloomberg-dark);
    border: 1px solid var(--bloomberg-border);
    border-radius: 8px;
    padding: var(--spacing-xs); /* Reduced from var(--spacing-md) */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Iframe Widget Styles - Default no invert */
.widget iframe {
    border-radius: 6px;
    background: var(--bloomberg-gray);
    min-height: 420px;
    filter: none;
}

/* Apply orange scrollbar theme to all iframes - FORCED */
/* Force orange scrollbars for all iframes with maximum specificity */
iframe::-webkit-scrollbar,
iframe *::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

iframe::-webkit-scrollbar-track,
iframe *::-webkit-scrollbar-track {
    background: #1a1a1a !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

iframe::-webkit-scrollbar-thumb,
iframe *::-webkit-scrollbar-thumb {
    background: #ff6600 !important;
    background-color: #ff6600 !important;
    border-radius: 3px !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: none !important;
}

iframe::-webkit-scrollbar-thumb:hover,
iframe *::-webkit-scrollbar-thumb:hover {
    background: #ff8833 !important;
    background-color: #ff8833 !important;
}

iframe::-webkit-scrollbar-corner,
iframe *::-webkit-scrollbar-corner {
    background: #1a1a1a !important;
}

/* Only INDICATOR menu iframes should be inverted, except liquidation heatmap */
#indicator-content .widget iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* HyperDash liquidation heatmap should not be inverted (already has dark theme) */
#indicator-content .widget.liquidation-heatmap iframe {
    filter: none !important;
}

/* TradingView chart should not be inverted */
#tradingview_chart {
    filter: none !important;
}

/* TradingView heatmap should not be inverted */
#tradingview_heatmap {
    filter: none !important;
}

/* TradingView widget containers should not be inverted */
.tradingview-widget-container {
    filter: none !important;
}

/* Ensure all TradingView elements are not inverted */
.tradingview-widget-container * {
    filter: none !important;
}

.widget.liquidation-heatmap iframe {
    min-height: 640px;
}
.crypto-list {
    flex: 0 0 auto;
    min-height: 200px;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    height: auto;
    transition: all 0.3s ease;
}

/* Expanded crypto list when news panel is hidden */
.crypto-list.expanded {
    flex: 1;
    max-height: none;
    min-height: 400px;
}

.crypto-list.expanded .widget-content {
    max-height: none;
    flex: 1;
}

.crypto-list .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs);
    background: var(--bloomberg-darker);
    border-bottom: var(--border);
}

.crypto-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.crypto-search-input {
    background: var(--bloomberg-dark);
    border: 1px solid var(--bloomberg-border);
    border-radius: 4px;
    padding: 6px 30px 6px 10px;
    color: var(--bloomberg-text);
    font-size: 12px;
    width: 150px;
    transition: all 0.3s ease;
}

.crypto-search-input:focus {
    outline: none;
    border-color: var(--bloomberg-accent);
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.crypto-search-input::placeholder {
    color: var(--bloomberg-text-secondary);
}

.crypto-search-icon {
    position: absolute;
    right: 8px;
    color: var(--bloomberg-text-secondary);
    font-size: 12px;
    pointer-events: none;
}

.crypto-list .widget-content {
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 520px);
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    color: var(--bloomberg-text-secondary);
    text-align: center;
    gap: var(--spacing-sm);
}

.no-results i {
    font-size: 24px;
    opacity: 0.5;
}

.no-results span {
    font-size: 14px;
}

.crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    transition: background 0.2s ease;
}

.crypto-item:hover {
    background: var(--bloomberg-darker);
}

.crypto-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.crypto-symbol {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--bloomberg-text);
}

.crypto-name {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--bloomberg-text-muted);
}

.crypto-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.price-value {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--bloomberg-text);
}

.price-change {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
}

.price-change.positive {
    color: var(--bloomberg-green);
}

.price-change.negative {
    color: var(--bloomberg-red);
}

/* News Feed */
.news-feed {
    flex: 1;
    min-height: 300px;
    height: calc(100vh - 320px);
    display: flex;
    flex-direction: column;
}

/* Expanded News Styles for NEWS Tab */
.news-main-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-header {
    background: var(--bloomberg-darker);
    padding: var(--spacing-xs); /* Reduced from var(--spacing-md) */
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    margin-bottom: var(--spacing-xs); /* Reduced from var(--spacing-md) */
}

.news-header h2 {
    color: var(--bloomberg-orange);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0; /* Reduced from var(--spacing-md) */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expanded-news-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 var(--spacing-xs); /* Reduced from var(--spacing-md) */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xs); /* Reduced from var(--spacing-md) */
    align-content: start;
}

.expanded-news-content .news-item {
    background: var(--bloomberg-darker);
    border: var(--border-width) solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs); /* Reduced from var(--spacing-md) */
    margin-bottom: var(--spacing-xs); /* Reduced from var(--spacing-sm) */
    transition: all 0.3s ease;
    height: fit-content;
}

.expanded-news-content .news-item:hover {
    border-color: var(--bloomberg-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.1);
}

.expanded-news-content .news-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.expanded-news-content .news-excerpt {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.expanded-news-content .news-meta {
    font-size: 10px;
    justify-content: space-between;
}

.news-controls {
    background: var(--bloomberg-darker);
    padding: var(--spacing-sm);
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-btn {
    background: var(--bloomberg-orange);
    color: var(--bloomberg-black);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.refresh-btn:hover {
    background: var(--bloomberg-orange-light);
}

.news-filters {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.filter-tag {
    background: var(--bloomberg-gray);
    color: var(--bloomberg-text-secondary);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.filter-tag:hover {
    background: var(--bloomberg-light-gray);
    color: var(--bloomberg-text);
}

.filter-tag.active {
    background: var(--bloomberg-orange);
    color: var(--bloomberg-black);
}

.search-bar {
    position: relative;
}

.search-bar input {
    width: 100%;
    background: var(--bloomberg-gray);
    border: var(--border-width) solid var(--bloomberg-border);
    color: var(--bloomberg-text);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 10px;
    border-radius: var(--border-radius);
    outline: none;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    border-color: var(--bloomberg-orange);
    box-shadow: 0 0 0 1px var(--bloomberg-orange);
}

.search-bar input::placeholder {
    color: var(--bloomberg-text-muted);
}

.news-content {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 420px);
    padding: 0;
}

.news-content::-webkit-scrollbar {
    width: 4px;
}

.news-content::-webkit-scrollbar-track {
    background: var(--bloomberg-darker);
}

.news-content::-webkit-scrollbar-thumb {
    background: var(--bloomberg-orange);
    border-radius: 2px;
}

.news-content::-webkit-scrollbar-thumb:hover {
    background: #ff8833;
}

.news-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.news-item {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.news-item:hover {
    background: var(--bloomberg-darker);
}

.news-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--bloomberg-text);
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.news-source {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--bloomberg-orange);
    text-transform: uppercase;
    font-weight: 600;
}

.news-time {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--bloomberg-text-muted);
}

.news-excerpt {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--bloomberg-text-secondary);
    line-height: 1.3;
}

/* Calendar Styles for CALENDAR Tab */
.calendar-main-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendar-header {
    background: var(--bloomberg-darker);
    padding: var(--spacing-xs);
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    margin-bottom: var(--spacing-xs);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-header h2 {
    color: var(--bloomberg-orange);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-widget-container {
    flex: 1;
    background: var(--bloomberg-darker);
    border: var(--border-width) solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 800px;
    height: calc(100vh - 200px);
}

.calendar-widget-container .tradingview-widget-container {
    height: 100%;
    width: 100%;
}

/* Calendar V2 Styles for CALENDAR V2 Tab */
.calendar-v2-main-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendar-v2-header {
    background: var(--bloomberg-darker);
    padding: var(--spacing-xs);
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    margin-bottom: var(--spacing-xs);
}

.calendar-v2-header h2 {
    color: var(--bloomberg-green);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-v2-widget-container {
    flex: 1;
    background: var(--bloomberg-darker);
    border: var(--border-width) solid var(--bloomberg-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 800px;
    height: calc(100vh - 200px);
    position: relative;
}

.calendar-v2-widget-container #economicCalendarWidget {
    height: 100%;
    width: 100%;
}

.calendar-v2-widget-container .ecw-copyright {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 11px;
    color: var(--bloomberg-text-muted);
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 1000;
}

.calendar-v2-widget-container .ecw-copyright a {
    color: var(--bloomberg-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.calendar-v2-widget-container .ecw-copyright a:hover {
    color: var(--bloomberg-orange);
}

/* Loading States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm); /* Reduced from var(--spacing-xl) */
    color: var(--bloomberg-text-muted);
}

.loading-spinner i {
    font-size: 20px;
    color: var(--bloomberg-orange);
    margin-bottom: var(--spacing-sm);
}

.loading-spinner span {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
}

.no-news {
    text-align: center;
    padding: var(--spacing-sm); /* Reduced from var(--spacing-xl) */
    color: var(--bloomberg-text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bloomberg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--bloomberg-orange);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8833;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 250px 1fr 250px;
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .left-panel,
    .right-panel {
        border: none;
        border-bottom: var(--border-width) solid var(--bloomberg-border);
    }
}

@media (max-width: 768px) {
    .terminal-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .chart-controls {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Animation Enhancements */
.widget {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bloomberg-style Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 10px;
}

.data-table th {
    background: var(--bloomberg-darker);
    color: var(--bloomberg-orange);
    padding: var(--spacing-xs) var(--spacing-sm);
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: var(--border-width) solid var(--bloomberg-border);
}

.data-table td {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: var(--border-width) solid var(--bloomberg-border);
    color: var(--bloomberg-text);
}

.data-table tr:hover {
    background: var(--bloomberg-darker);
}

/* Professional Glow Effects */
.glow-green {
    color: var(--bloomberg-green);
    text-shadow: 0 0 5px rgba(0, 204, 102, 0.3);
}

.glow-red {
    color: var(--bloomberg-red);
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
}

.glow-orange {
    color: var(--bloomberg-orange);
    text-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
}

/* Footer */
.terminal-footer {
    background: var(--bloomberg-darker);
    border-top: var(--border-width) solid var(--bloomberg-border);
    padding: var(--spacing-xs) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--bloomberg-text-muted);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 30px;
}

.last-updated {
    font-size: 8px;
    color: var(--bloomberg-text-muted);
    opacity: 0.7;
}

/* Make footer time orange */
#footerTime {
    color: var(--bloomberg-orange) !important;
}

/* Button Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

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

/* Heatmap Widget - Right Side Panel */
.heatmap-widget {
    margin-bottom: var(--spacing-md);
}

.heatmap-widget .widget-content {
    padding: var(--spacing-sm);
    background: var(--bloomberg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.heatmap-widget gecko-coin-heatmap-widget {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
}

/* Web3 Authentication Styles */
.network-info, .payment-info {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.9em;
    color: #00ff88;
    text-align: center;
}

.payment-info {
    background: rgba(255, 165, 0, 0.1);
    border-color: #ffa500;
    color: #ffa500;
}

.admin-note {
    margin-top: 15px;
    text-align: center;
    opacity: 0.7;
}

.admin-note small {
    color: #888;
    font-style: italic;
}

.payment-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.payment-amount, .payment-network, .payment-recipient {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.9em;
}

.payment-amount {
    font-weight: bold;
    color: #ffa500;
}

.access-info {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.access-status, .access-expiry, .access-countdown {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.9em;
}

.access-status {
    color: #00ff88;
    font-weight: bold;
}

.access-expiry, .access-countdown {
    color: #ccc;
}

.unlimited {
    color: #00ff88 !important;
    font-weight: bold;
    text-transform: uppercase;
}