/* ========================================
   VIERCAPITAL TERMINAL - Bloomberg Style
   ======================================== */

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

/* Dark Mode (Default) - Light Blue Accents */
:root, [data-theme="dark"] {
    /* Bloomberg Terminal Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-panel: #0d0d0d;
    --bg-gradient-start: #0d0d0d;
    --bg-gradient-end: #0a0a0a;
    --bg-card: rgba(26, 26, 26, 0.5);
    --bg-hover: rgba(59, 130, 246, 0.1);
    --border-color: #1a1a1a;
    --border-highlight: #2a2a2a;

    /* Text Colors - Light Blue Accent */
    --text-primary: #3b82f6;
    --text-secondary: #2563eb;
    --text-muted: #888888;
    --text-white: #ffffff;
    --text-green: #00ff41;
    --text-red: #ff3131;

    /* Accent Colors - Light Blue Theme */
    --accent-orange: #2563eb;
    --accent-yellow: #ffd700;
    --accent-blue: #00aaff;
    --accent-glow: rgba(59, 130, 246, 0.3);

    /* Font */
    --font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
}

/* Light Mode */
[data-theme="light"] {
    /* Light Mode Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-panel: #ffffff;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f1f5f9;
    --bg-card: rgba(241, 245, 249, 0.8);
    --bg-hover: rgba(59, 130, 246, 0.1);
    --border-color: #e2e8f0;
    --border-highlight: #cbd5e1;

    /* Text Colors - Light Blue Accent */
    --text-primary: #3b82f6;
    --text-secondary: #2563eb;
    --text-muted: #64748b;
    --text-white: #0f172a;
    --text-green: #16a34a;
    --text-red: #dc2626;

    /* Accent Colors - Light Blue Theme */
    --accent-orange: #3b82f6;
    --accent-yellow: #f59e0b;
    --accent-blue: #0ea5e9;
    --accent-glow: rgba(59, 130, 246, 0.2);
}

/* Light Mode Component Overrides */
[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

[data-theme="light"] .signal-card:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .liq-alert:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .signal-filter-btn:hover {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .trade-suggestion:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .signal-modal-content {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .signal-tabs {
    background: #f1f5f9;
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .signal-tab-content {
    background: #f8fafc;
}

[data-theme="light"] .leverage-row {
    background: rgba(59, 130, 246, 0.05);
}

[data-theme="light"] .leverage-row:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Light Mode Modal Overrides */
[data-theme="light"] .chart-modal {
    background-color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .chart-modal-content {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .chart-modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .liq-modal {
    background: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .liq-modal-content {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .liq-modal-header {
    background: rgba(241, 245, 249, 0.8);
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .liq-modal-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .liq-detail-modal {
    background: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .liq-detail-modal-content {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .position-modal {
    background: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .position-modal-content {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .position-modal-header {
    background: rgba(241, 245, 249, 0.8);
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .position-section {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .signal-modal {
    background-color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .signal-modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .delete-confirm-overlay {
    background: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .delete-confirm-modal {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .delete-confirm-header {
    border-bottom-color: #e2e8f0;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.4;
}

/* ========================================
   TERMINAL CONTAINER
   ======================================== */

.terminal {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 32px);
    min-height: calc(100vh - 32px);
    width: 100vw;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    border-bottom: 1px solid var(--border-highlight);
    padding: 4px 20px;
    height: 36px;
    flex-shrink: 0;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-left: 10px;
}

.theme-toggle:hover {
    border-color: var(--text-primary);
    background: var(--bg-hover);
}

.theme-toggle svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.theme-toggle:hover svg {
    color: var(--text-primary);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

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

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

.status-text {
    color: var(--text-green);
    font-size: 10px;
    font-weight: 600;
}

.timestamp {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   OVERVIEW BAR CONTAINER
   ======================================== */

.overview-bar-container {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}

.market-overview {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 8px 12px;
    flex-shrink: 0;
    width: 50%;
    border-right: 1px solid var(--border-color);
}

.overview-section-title {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.overview-items {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.traditional-markets-bar {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 8px 12px;
    flex-shrink: 0;
    width: 50%;
}

.trad-markets-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 6px;
}

.trad-market-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
}

.trad-market-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.trad-market-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.trad-market-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.trad-market-symbol {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.trad-market-price {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.trad-market-change {
    font-size: 9px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    flex-shrink: 0;
}

.trad-market-change.positive {
    color: #00ff41;
}

.trad-market-change.negative {
    color: #ff3131;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% / 6 - 7px);
}

.overview-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.overview-item.fear-greed {
    border-color: var(--border-highlight);
    cursor: default;
}

.overview-item.fear-greed:hover {
    background: var(--bg-card);
    transform: none;
}

.overview-item:last-child {
    cursor: default;
}

.overview-item:last-child:hover {
    background: var(--bg-card);
    transform: none;
}

.overview-item-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.overview-label {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.overview-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.overview-change {
    font-size: 9px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    flex-shrink: 0;
    min-width: 40px;
}

.overview-change.positive {
    color: var(--text-green);
}

.overview-change.negative {
    color: var(--text-red);
}

.overview-sentiment {
    font-size: 7px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 40px;
    max-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.overview-sentiment.extreme-fear {
    background: rgba(255, 49, 49, 0.3);
    color: #ff3131;
}

.overview-sentiment.fear {
    background: rgba(255, 100, 50, 0.3);
    color: #ff6432;
}

.overview-sentiment.neutral {
    background: rgba(255, 200, 0, 0.3);
    color: #ffc800;
}

.overview-sentiment.greed {
    background: rgba(100, 255, 50, 0.3);
    color: #64ff32;
}

.overview-sentiment.extreme-greed {
    background: rgba(0, 255, 65, 0.3);
    color: #00ff41;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ========================================
   LEFT SECTION
   ======================================== */

.left-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    gap: 0;
    min-height: 0;
}

.watchlist-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.watchlist-panel .panel-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.watchlist-panel .panel-content::-webkit-scrollbar {
    display: none;
}

.right-section .wallet-panel .panel-content,
.right-section .news-panel .panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.liq-header-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.liq-exchange-badge {
    font-size: 7px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.liq-exchange-badge.binance {
    background: rgba(243, 186, 47, 0.2);
    color: #f3ba2f;
    border: 1px solid rgba(243, 186, 47, 0.4);
}

.liq-exchange-badge.bybit {
    background: rgba(255, 164, 27, 0.2);
    color: #ffa41b;
    border: 1px solid rgba(255, 164, 27, 0.4);
}

.liq-exchange-badge.hyperliquid {
    background: rgba(80, 200, 120, 0.2);
    color: #50c878;
    border: 1px solid rgba(80, 200, 120, 0.4);
}

.liquidations-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    min-height: 0;
}

/* Stats Section - Unified for all panels */
.liq-stats-section {
    padding: 6px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.liq-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.liq-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 3px;
    background: var(--bg-card);
    border-radius: 3px;
    border: 1px solid var(--border-color);
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
}

.liq-stat-box.long {
    border-color: rgba(255, 49, 49, 0.3);
    background: rgba(255, 49, 49, 0.05);
}

.liq-stat-box.short {
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
}

.liq-stat-box.highlight {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
}

.liq-stat-label {
    font-size: 7.4px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.liq-stat-value {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.liq-stat-box.long .liq-stat-value {
    color: #ff3131;
}

.liq-stat-box.short .liq-stat-value {
    color: #00ff41;
}

.liq-stat-box.highlight .liq-stat-value {
    color: var(--text-white);
}

.liq-stat-value.long-text {
    color: #ff3131 !important;
}

.liq-stat-value.short-text {
    color: #00ff41 !important;
}

.liq-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.liq-feed::-webkit-scrollbar {
    display: none;
}

.liq-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: var(--text-muted);
    width: 100%;
}

.liq-placeholder-text {
    font-size: 10.5px;
}

/* Liquidation Alert Item - Card Style */
.liq-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: 0 4px 4px 0;
    animation: liqSlideIn 0.25s ease-out;
    border-left: 3px solid var(--border-color);
    flex-shrink: 0;
    min-height: 52px;
    box-sizing: border-box;
}

.liq-alert.long {
    border-left-color: #ff3131;
}

.liq-alert.short {
    border-left-color: #00ff41;
}

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

/* Alert Header */
.liq-alert-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.liq-alert-symbol {
    font-size: 11.6px;
    font-weight: 700;
    color: var(--text-white);
}

/* Alert Side Badge */
.liq-alert-side {
    font-size: 8.4px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
    letter-spacing: 0.3px;
    margin-left: auto;
}

.liq-alert-side.long {
    background: rgba(255, 49, 49, 0.3);
    color: #ffffff;
}

.liq-alert-side.short {
    background: rgba(0, 255, 65, 0.3);
    color: #ffffff;
}

/* Alert Value */
.liq-alert-value {
    font-size: 11.6px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.liq-alert-value.long {
    color: #ff3131;
}

.liq-alert-value.short {
    color: #00ff41;
}

/* Alert Details */
.liq-alert-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    color: var(--text-muted);
}

.liq-alert-detail {
    display: flex;
    align-items: center;
    gap: 3px;
}

.liq-alert-label {
    color: var(--text-muted);
}

.liq-alert-data {
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

/* Alert Exchange Badge */
.liq-alert-exchange {
    font-size: 7.4px;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.liq-alert-exchange.binance {
    background: rgba(243, 186, 47, 0.25);
    color: #f3ba2f;
}

.liq-alert-exchange.bybit {
    background: rgba(255, 164, 27, 0.25);
    color: #ffa41b;
}

.liq-alert-exchange.hyperliquid {
    background: rgba(80, 200, 120, 0.25);
    color: #50c878;
}

.liq-alert-exchange.absorption {
    background: rgba(0, 255, 65, 0.3);
    color: #ffffff;
    font-size: 9px;
    padding: 3px 8px;
    letter-spacing: 0.5px;
    margin: 0 auto;
}

.liq-alert-exchange.nuke {
    background: rgba(255, 49, 49, 0.3);
    color: #ffffff;
    font-size: 9px;
    padding: 3px 8px;
    letter-spacing: 0.5px;
    margin: 0 auto;
}

.liq-alert-emoji {
    font-size: 12px;
    margin: 0 auto;
}

/* Alert Time */
.liq-alert-time {
    font-size: 8.4px;
    color: var(--text-muted);
}

.liq-alert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ========================================
   RIGHT SECTION
   ======================================== */

.right-section {
    width: 50%;
    display: flex;
    flex-direction: row;
}

/* Right section - 4 panels horizontal, symmetrical */
.right-section .liquidations-panel,
.right-section .absorption-panel,
.right-section .wallet-panel,
.right-section .news-panel {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--border-color);
    max-width: 25%;
}

.right-section .news-panel {
    border-right: none;
}

/* ========================================
   PANEL STYLES
   ======================================== */

.panel {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-panel);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    border-bottom: 1px solid var(--border-highlight);
    flex-shrink: 0;
}

.panel-title {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.panel-badge {
    font-size: 7px;
    padding: 2px 5px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.panel-badge.blink {
    color: var(--text-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

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

.panel-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.panel-content::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   DATA TABLE
   ======================================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    position: sticky;
    top: 0;
    background-color: var(--bg-panel);
}

.data-table th {
    text-align: left;
    padding: 7px 9px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 7px 9px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
}

.data-table tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.data-table .positive {
    color: var(--text-green);
}

.data-table .negative {
    color: var(--text-red);
}

.placeholder-row td,
.placeholder-row span {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* ========================================
   TABS
   ======================================== */

.panel-tabs {
    display: flex;
    gap: 4px;
}

.tab-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.tab-btn.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* ========================================
   TRADING TOOLS
   ======================================== */

.tool-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
}

.tool-link,
.tool-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tool-link:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

.tool-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-highlight);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    transition: all 0.2s ease;
}

.tool-link:hover .tool-icon {
    border-color: var(--text-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.tool-placeholder {
    color: var(--text-muted);
}

.tool-placeholder .tool-icon {
    border-style: dashed;
}

/* ========================================
   NEWS FEED & PANIC INDICATOR
   ======================================== */

.news-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 6px !important;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.right-section .news-content {
    padding: 6px !important;
}

/* Panic Period Indicator */
.panic-indicator {
    background: var(--bg-panel);
    border: 1px solid var(--border-highlight);
    border-radius: 3px;
    padding: 6px 8px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.panic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.panic-title {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.panic-period {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.panic-period.extreme-fear {
    background-color: rgba(255, 49, 49, 0.3);
    color: #ff3131;
    border: 1px solid #ff3131;
}

.panic-period.fear {
    background-color: rgba(255, 100, 100, 0.2);
    color: #ff6464;
    border: 1px solid #ff6464;
}

.panic-period.neutral {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.panic-period.greed {
    background-color: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid #00ff41;
}

.panic-period.extreme-greed {
    background-color: rgba(0, 255, 65, 0.3);
    color: #00ff41;
    border: 1px solid #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.panic-bar-container {
    margin-bottom: 6px;
}

.panic-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.panic-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.panic-fill.bearish {
    background: linear-gradient(90deg, #ff3131 0%, #ff6464 100%);
}

.panic-fill.bullish {
    background: linear-gradient(90deg, #00cc33 0%, #00ff41 100%);
}

.panic-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.panic-label {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.panic-label.bearish {
    color: #ff6464;
}

.panic-label.bullish {
    color: #00ff41;
}

.panic-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.panic-stat {
    font-size: 9px;
    color: var(--text-muted);
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-feed::-webkit-scrollbar {
    display: none;
}

.news-item {
    padding: 8px 10px;
    border-left: 3px solid var(--border-highlight);
    background-color: var(--bg-card);
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 0 4px 4px 0;
    margin-bottom: 4px;
}

.news-item:hover {
    border-left-color: var(--text-primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.news-item.bullish {
    border-left-color: #00ff41;
}

.news-item.bearish {
    border-left-color: #ff3131;
}

.news-item.important {
    border-left-color: var(--text-primary);
    background-color: rgba(59, 130, 246, 0.08);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.news-time {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 500;
}

.news-sentiment {
    display: flex;
    gap: 6px;
    font-size: 8px;
}

.news-votes {
    display: flex;
    align-items: center;
    gap: 2px;
}

.news-votes.positive {
    color: #00ff41;
}

.news-votes.negative {
    color: #ff3131;
}

.news-headline {
    font-size: 10px;
    color: var(--text-white);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.news-source {
    font-size: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.news-coins {
    display: flex;
    gap: 4px;
}

.news-coin {
    font-size: 8px;
    padding: 1px 4px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-primary);
}

/* ========================================
   WALLET TRACKER - HYPERLIQUID
   ======================================== */

.wallet-header-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hl-badge {
    font-size: 7px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(80, 200, 120, 0.2);
    color: #50c878;
    border: 1px solid rgba(80, 200, 120, 0.4);
}

.wallet-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.wallet-filter {
    display: flex;
    gap: 4px;
    padding: 6px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.hl-filter-btn {
    flex: 1;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hl-filter-btn:hover {
    background: rgba(40, 40, 40, 0.8);
    color: var(--text-white);
}

.hl-filter-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--border-highlight);
    color: var(--text-primary);
}

.hl-filter-btn.long.active {
    background: rgba(0, 255, 65, 0.15);
    border-color: #00ff41;
    color: #00ff41;
}

.hl-filter-btn.short.active {
    background: rgba(255, 49, 49, 0.15);
    border-color: #ff3131;
    color: #ff3131;
}

.wallet-stats-section {
    padding: 6px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.wallet-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 3px;
    background: var(--bg-card);
    border-radius: 3px;
    border: 1px solid var(--border-color);
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
}

.wallet-stat-box.buy {
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
}

.wallet-stat-box.sell {
    border-color: rgba(255, 49, 49, 0.3);
    background: rgba(255, 49, 49, 0.05);
}

.wallet-stat-box.highlight {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
}

.wallet-stat-label {
    font-size: 7.4px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.wallet-stat-value {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.wallet-stat-value.positive {
    color: #00ff41;
}

.wallet-stat-value.negative {
    color: #ff3131;
}

.wallet-stat-box.buy .wallet-stat-value {
    color: #00ff41;
}

.wallet-stat-box.sell .wallet-stat-value {
    color: #ff3131;
}

.wallet-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wallet-feed::-webkit-scrollbar {
    display: none;
}

.wallet-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: var(--text-muted);
    font-size: 10.5px;
    width: 100%;
}

.hl-section-header {
    font-size: 8.4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    margin-top: 4px;
    border-radius: 3px;
    flex-shrink: 0;
}

.hl-section-header:first-child {
    margin-top: 0;
}

.hl-section-header.long {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    border-left: 2px solid #00ff41;
}

.hl-section-header.short {
    background: rgba(255, 49, 49, 0.1);
    color: #ff3131;
    border-left: 2px solid #ff3131;
}

.hl-position {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: 0 4px 4px 0;
    border-left: 3px solid var(--border-color);
    flex-shrink: 0;
    min-height: 52px;
    box-sizing: border-box;
}

.hl-position.long {
    border-left-color: #00ff41;
}

.hl-position.short {
    border-left-color: #ff3131;
}

.hl-position-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hl-position-coin {
    font-weight: 700;
    font-size: 11.6px;
    color: var(--text-white);
}

.hl-position-side {
    font-weight: 700;
    font-size: 8.4px;
    padding: 2px 5px;
    border-radius: 2px;
    letter-spacing: 0.3px;
}

.hl-position-side.long {
    background: rgba(0, 255, 65, 0.3);
    color: #ffffff;
}

.hl-position-side.short {
    background: rgba(255, 49, 49, 0.3);
    color: #ffffff;
}

.hl-position-leverage {
    font-weight: 700;
    font-size: 8.4px;
    color: var(--text-white);
    background: rgba(59, 130, 246, 0.3);
    padding: 2px 5px;
    border-radius: 2px;
    margin-left: auto;
}

.hl-position-main {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hl-position-size-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.hl-position-label {
    font-size: 7.4px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.hl-position-size-value {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.hl-position-prices {
    display: flex;
    gap: 8px;
}

.hl-position-price-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.hl-position-price {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.hl-position-pnl {
    font-weight: 700;
    font-size: 11.6px;
    font-variant-numeric: tabular-nums;
}

.hl-position-pnl.positive {
    color: #00ff41;
}

.hl-position-pnl.negative {
    color: #ff3131;
}

.hl-position-wallet {
    font-size: 8.4px;
    color: var(--text-muted);
    font-family: monospace;
}

/* ========================================
   CHART MODAL
   ======================================== */

.chart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.chart-modal.active {
    display: flex;
}

.chart-modal-content {
    width: 1404px;
    max-width: 98vw;
    max-height: 90vh;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
}

.chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    border-bottom: 1px solid var(--border-highlight);
}

.chart-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-modal-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.chart-modal-symbol {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.chart-modal-badge {
    font-size: 8px;
    padding: 3px 8px;
    background-color: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 3px;
    letter-spacing: 1px;
}

.chart-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.chart-modal-close:hover {
    color: var(--text-primary);
}

.chart-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.chart-modal-body::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Modal Main Layout with Left Watchlist */
.chart-modal-main {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Left Watchlist Sidebar in Modal */
.modal-watchlist-sidebar {
    width: 200px;
    min-width: 200px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-watchlist-header {
    padding: 10px 12px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.modal-watchlist-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.modal-watchlist-list::-webkit-scrollbar {
    width: 4px;
}

.modal-watchlist-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.modal-watchlist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.modal-watchlist-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.modal-watchlist-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-left: 2px solid var(--text-primary);
}

.modal-watchlist-item-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.modal-watchlist-item-info {
    flex: 1;
    min-width: 0;
}

.modal-watchlist-item-symbol {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-white);
}

.modal-watchlist-item-price {
    font-size: 10px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.modal-watchlist-item-change {
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.modal-watchlist-item-change.positive {
    color: var(--text-green);
}

.modal-watchlist-item-change.negative {
    color: var(--text-red);
}

/* Modal Content Area (right of watchlist) */
.chart-modal-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chart-modal-content-area::-webkit-scrollbar {
    display: none;
}

/* Chart Row with Sidebar */
.chart-row {
    display: flex;
    flex-shrink: 0;
    flex-grow: 0;
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    border-bottom: 1px solid var(--border-color);
}

.chart-container {
    flex: 1;
    min-width: 0;
    height: 100%;
    background-color: #000;
}

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

/* Mini Sidebar next to Chart */
.chart-mini-sidebar {
    width: 140px;
    min-width: 140px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
}

.mini-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.mini-sidebar-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mini-sidebar-title {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.mini-sidebar-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.mini-sidebar-value.large {
    font-size: 14px;
    color: var(--text-primary);
}

.mini-sidebar-change {
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mini-sidebar-change.positive {
    color: var(--text-green);
}

.mini-sidebar-change.negative {
    color: var(--text-red);
}

.mini-sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 16px;
}

.mini-label {
    font-size: 9px;
    color: var(--text-muted);
}

.mini-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.mini-value.positive {
    color: var(--text-green);
}

.mini-value.negative {
    color: var(--text-red);
}

/* Key Levels Section */
.key-levels-section {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.key-level-dist-row {
    font-size: 8px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.key-level-dist-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.key-level-dist-row.above {
    color: var(--text-green);
}

.key-level-dist-row.below {
    color: var(--text-red);
}

.key-level-dist-row.neutral {
    color: var(--text-muted);
}

/* Data Grid Below Chart */
.chart-data-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background-color: var(--bg-secondary);
}

/* Content Grid (Trade Suggestion + Heatmap) */
.chart-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Header Button Group */
.chart-btn-group-header {
    display: flex;
    gap: 6px;
    margin-left: auto;
    margin-right: 12px;
}

.chart-btn-group-header .chart-velo-btn,
.chart-btn-group-header .chart-trade-btn {
    padding: 4px 10px;
    font-size: 9px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.chart-btn-group-header .chart-velo-btn {
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
    color: #000;
}

.chart-btn-group-header .chart-trade-btn {
    background: linear-gradient(135deg, #f0b90b 0%, #d4a50a 100%);
    color: #000;
}

.chart-btn-group-header .chart-velo-btn:hover,
.chart-btn-group-header .chart-trade-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.chart-data-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
}

.chart-data-title {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.chart-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.chart-data-label {
    font-size: 9px;
    color: var(--text-muted);
}

.chart-data-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.chart-data-value.positive {
    color: var(--text-green);
}

.chart-data-value.negative {
    color: var(--text-red);
}

/* Trade Suggestion in Chart Modal */
.chart-trade-suggestion {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--border-color);
}

.chart-trade-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trade-suggestion-none {
    color: var(--text-muted);
    font-size: 9px;
    text-align: center;
    padding: 8px 0;
}

.trade-suggestion-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    border-left: 3px solid var(--text-primary);
}

.trade-suggestion-card.long {
    border-left-color: #00ff41;
}

.trade-suggestion-card.short {
    border-left-color: #ff3131;
}

.trade-suggestion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trade-suggestion-direction {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
}

.trade-suggestion-direction.long {
    background: rgba(0, 255, 65, 0.3);
    color: #ffffff;
}

.trade-suggestion-direction.short {
    background: rgba(255, 49, 49, 0.3);
    color: #ffffff;
}

.trade-suggestion-confidence {
    font-size: 9px;
    color: var(--text-muted);
}

.trade-suggestion-levels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.trade-suggestion-level {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.trade-suggestion-level-label {
    font-size: 7px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.trade-suggestion-level-value {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.trade-suggestion-level-value.entry {
    color: var(--text-white);
}

.trade-suggestion-level-value.sl {
    color: #ff3131;
}

.trade-suggestion-level-value.tp {
    color: #00ff41;
}

.trade-suggestion-rr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

.trade-suggestion-rr-label {
    font-size: 8px;
    color: var(--text-muted);
}

.trade-suggestion-rr-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-white);
}

.trade-suggestion-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.trade-suggestion-reason {
    font-size: 7px;
    padding: 2px 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: var(--text-muted);
}

/* ========================================
   LIQUIDATION HEATMAP
   ======================================== */

.liquidation-heatmap-section {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--border-color);
}

.liquidation-heatmap-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.liq-heatmap-loading,
.liq-heatmap-error {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    padding: 15px 0;
}

.liq-heatmap-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.liq-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.liq-summary-label {
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.liq-summary-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-white);
}

.liq-heatmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.liq-heatmap-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.liq-column-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.liq-column-title {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.liq-column-title.long-text {
    color: #00ff41;
}

.liq-column-title.short-text {
    color: #ff3131;
}

.liq-column-subtitle {
    font-size: 7px;
    color: var(--text-muted);
}

.liq-levels {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.liq-level {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 3px;
    padding: 5px;
    border-left: 2px solid var(--text-muted);
    transition: all 0.2s ease;
}

.liq-level.high {
    border-left-color: #ff3131;
    background: rgba(255, 49, 49, 0.08);
}

.liq-level.medium {
    border-left-color: #ffa500;
    background: rgba(255, 165, 0, 0.06);
}

.liq-level.low {
    border-left-color: #666;
    background: rgba(100, 100, 100, 0.05);
}

.liq-level.highest {
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
    border-left-color: #8a2be2 !important;
}

.liq-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.liq-level-leverage {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 4px;
    border-radius: 2px;
}

.liq-level-price {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.liq-level-distance {
    font-size: 8px;
    font-weight: 600;
}

.liq-level-distance.positive {
    color: #00ff41;
}

.liq-level-distance.negative {
    color: #ff3131;
}

.liq-level-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 4px 0;
}

.liq-level-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.liq-level-fill.high {
    background: linear-gradient(90deg, #ff3131, #ff6b6b);
}

.liq-level-fill.medium {
    background: linear-gradient(90deg, #ffa500, #ffc107);
}

.liq-level-fill.low {
    background: linear-gradient(90deg, #666, #888);
}

.liq-level-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.liq-level-prob {
    font-size: 8px;
    font-weight: 600;
}

.liq-level-prob.high {
    color: #ff3131;
}

.liq-level-prob.medium {
    color: #ffa500;
}

.liq-level-prob.low {
    color: #888;
}

.liq-level-time {
    font-size: 7px;
    color: var(--text-muted);
}

.liq-level-empty {
    font-size: 8px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0;
}

.liq-heatmap-thesis {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.liq-thesis-title {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.liq-thesis-content {
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.liq-thesis-content p {
    margin: 0 0 6px 0;
}

.liq-thesis-content p:last-child {
    margin-bottom: 0;
}

.liq-thesis-content strong {
    color: var(--text-white);
}

/* ========================================
   MARKET SENTIMENT SECTION
   ======================================== */

.market-sentiment-section {
    margin-top: 10px;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--border-color);
}

.data-source-badge {
    font-size: 7px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.sentiment-loading,
.sentiment-error {
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
    padding: 20px 0;
}

.sentiment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sentiment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
}

.sentiment-card-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.sentiment-card-title {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.sentiment-card-subtitle {
    font-size: 7px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sentiment-ratio-display {
    margin-bottom: 4px;
}

.sentiment-bar-container {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg-primary);
}

.sentiment-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.sentiment-bar.long,
.sentiment-bar.buy {
    background: linear-gradient(90deg, #00ff41, #00cc33);
}

.sentiment-bar.short,
.sentiment-bar.sell {
    background: linear-gradient(90deg, #ff3131, #cc0000);
}

.sentiment-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    font-size: 8px;
}

.long-label,
.buy-label {
    color: #00ff41;
}

.short-label,
.sell-label {
    color: #ff3131;
}

.sentiment-ratio-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.ratio-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.ratio-trend {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
}

.ratio-trend.positive {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
}

.ratio-trend.negative {
    background: rgba(255, 49, 49, 0.15);
    color: #ff3131;
}

.sentiment-badge {
    font-size: 7px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.sentiment-badge.bullish {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
}

.sentiment-badge.bearish {
    background: rgba(255, 49, 49, 0.2);
    color: #ff3131;
}

.sentiment-badge.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.sentiment-ratio-value.bullish .ratio-number {
    color: #00ff41;
}

.sentiment-ratio-value.bearish .ratio-number {
    color: #ff3131;
}

.sentiment-ratio-value.neutral .ratio-number {
    color: var(--text-white);
}

/* Open Interest Card */
.sentiment-oi-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.oi-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.oi-change {
    font-size: 10px;
    font-weight: 600;
}

.oi-change.positive {
    color: #00ff41;
}

.oi-change.negative {
    color: #ff3131;
}

.oi-indicator {
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.oi-label {
    font-size: 8px;
    color: var(--text-muted);
}

/* Sentiment Analysis */
.sentiment-analysis {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.sentiment-analysis-title {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.sentiment-analysis-content {
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sentiment-analysis-content p {
    margin: 0 0 6px 0;
}

.sentiment-analysis-content p:last-child {
    margin-bottom: 0;
}

.sentiment-analysis-content strong {
    color: var(--text-white);
}

.sentiment-analysis-content .positive {
    color: #00ff41;
    font-weight: 600;
}

.sentiment-analysis-content .negative {
    color: #ff3131;
    font-weight: 600;
}

.sentiment-analysis-content .neutral {
    color: var(--text-muted);
    font-weight: 600;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .sentiment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
    .sentiment-grid {
        grid-template-columns: 1fr;
    }

    .sentiment-card {
        padding: 10px;
    }

    .ratio-number {
        font-size: 16px;
    }
}

/* Old sidebar button group - kept for compatibility */
.chart-btn-group {
    display: none;
}

/* Make watchlist rows clickable */
.watchlist-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.watchlist-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

/* ========================================
   COMPACT WATCHLIST
   ======================================== */

.watchlist-table.compact {
    font-size: 12.1px;
}

.watchlist-table.compact th,
.watchlist-table.compact td {
    padding: 5.2px 6.2px;
}

.watchlist-table.compact .th-symbol {
    width: 93px;
}

.watchlist-table.compact .th-price {
    width: 76px;
}

.watchlist-table.compact .th-change {
    width: 56px;
}

.watchlist-table.compact .th-volume {
    width: 67px;
}

.watchlist-table.compact .th-funding {
    width: 51px;
}

.watchlist-table.compact .coin-logo,
.watchlist-table.compact .coin-logo-placeholder {
    width: 19px;
    height: 19px;
}

.watchlist-table.compact .symbol-name {
    font-size: 11.2px;
}

/* ========================================
   LEFT SECTION LAYOUT (Signals + Watchlist)
   ======================================== */

.left-section {
    display: flex;
    flex-direction: row;
}

.signals-panel {
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.agent-badges {
    display: flex;
    gap: 4px;
    align-items: center;
}

.watchlist-panel {
    flex: 1;
    min-width: 0;
}

/* ========================================
   TRADE SIGNALS PANEL
   ======================================== */

.signals-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Signal Filter */
.signal-filter {
    display: flex;
    gap: 4px;
    padding: 6px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.signal-filter-btn {
    flex: 1;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.signal-filter-btn:hover {
    background: rgba(40, 40, 40, 0.8);
    color: var(--text-white);
}

.signal-filter-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--border-highlight);
    color: var(--text-primary);
}

.signal-filter-btn[data-filter="active"].active {
    background: rgba(0, 255, 65, 0.15);
    border-color: rgba(0, 255, 65, 0.4);
    color: #00ff41;
}

.signal-filter-btn[data-filter="pending"].active {
    background: rgba(0, 170, 255, 0.15);
    border-color: rgba(0, 170, 255, 0.4);
    color: #00aaff;
}

.signal-filter-btn[data-filter="wins"].active {
    background: rgba(0, 255, 65, 0.15);
    border-color: rgba(0, 255, 65, 0.4);
    color: #00ff41;
}

.signal-filter-btn[data-filter="losses"].active {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.4);
    color: #ff4444;
}

.signals-feed {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.signals-feed::-webkit-scrollbar {
    display: none;
}

.signal-placeholder {
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.signal-placeholder::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-highlight);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Signal Card */
.signal-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 3px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.signal-card:hover {
    background: rgba(40, 40, 40, 0.8);
    transform: translateX(2px);
}

.signal-card.long {
    border-left-color: #00ff41;
}

.signal-card.short {
    border-left-color: #ff3131;
}

.signal-card.pending {
    opacity: 0.85;
    border-left-style: dashed;
}

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

.signal-type-badge {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.signal-type-badge.active {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.signal-type-badge.pending {
    background: rgba(59, 130, 246, 0.2);
    color: #ff8c00;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.signal-type-badge.alternative {
    background: rgba(138, 43, 226, 0.2);
    color: #9370db;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

/* Timeframe badges */
.signal-type-badge.timeframe {
    background: rgba(100, 100, 100, 0.2);
    color: #888;
    border: 1px solid rgba(100, 100, 100, 0.3);
}

.signal-type-badge.timeframe.scalp {
    background: rgba(255, 50, 50, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

.signal-type-badge.timeframe.intraday {
    background: rgba(0, 170, 255, 0.15);
    color: #00aaff;
    border: 1px solid rgba(0, 170, 255, 0.3);
}

.signal-type-badge.timeframe.swing {
    background: rgba(255, 200, 0, 0.15);
    color: #ffc800;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

.signal-type-badge.timeframe.position {
    background: rgba(0, 255, 150, 0.15);
    color: #00ff96;
    border: 1px solid rgba(0, 255, 150, 0.3);
}

/* Trade type badges */
.signal-type-badge.spot {
    background: rgba(50, 205, 50, 0.2);
    color: #32cd32;
    border: 1px solid rgba(50, 205, 50, 0.3);
}

.signal-type-badge.leveraged {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

/* Timeframe row in signal card */
.signal-timeframe-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.signal-duration {
    font-size: 9px;
    color: #666;
    margin-left: auto;
}

/* Spot trade card styling */
.signal-card.spot {
    border-left: 2px solid #32cd32;
}

.signals-section-header {
    font-size: 9px;
    font-weight: 600;
    padding: 6px 8px;
    margin: 4px 0;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.signals-section-header.active {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.signals-section-header.pending {
    background: var(--bg-hover);
    color: #ff8c00;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    margin-top: 10px;
}

.signals-section-header.saved {
    background: rgba(0, 170, 255, 0.1);
    color: #00aaff;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.signals-section-header.wins {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signals-section-header.losses {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-pnl {
    font-size: 10px;
    font-weight: 700;
}

.section-pnl.positive {
    color: #00ff41;
}

.section-pnl.negative {
    color: #ff4444;
}

/* Historical signal card styles */
.signal-card.historical {
    opacity: 0.9;
}

.signal-card.historical.win {
    border-left: 2px solid #00ff41;
}

.signal-card.historical.loss {
    border-left: 2px solid #ff4444;
}

.signal-type-badge.win {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.signal-type-badge.loss {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.4);
}

.signal-pnl-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.signal-pnl-badge.win {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
}

.signal-pnl-badge.loss {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
}

/* Save button for signals */
.signal-save-btn {
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 3px;
    margin-right: 4px;
}

.signal-save-btn:hover {
    color: #00aaff;
    background: rgba(0, 170, 255, 0.1);
}

.signal-save-btn.saved {
    color: #00aaff;
}

.signal-save-btn.saved:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* Delete button for signals */
.signal-delete-btn {
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 3px;
    margin-right: 4px;
}

.signal-delete-btn:hover {
    color: #ff3131;
    background: rgba(255, 49, 49, 0.15);
}

/* Delete confirmation modal */
.delete-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.delete-confirm-modal {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    width: 320px;
    animation: slideIn 0.15s ease;
}

@keyframes slideIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.delete-confirm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ff3131;
}

.delete-confirm-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 49, 49, 0.15);
    border: 1px solid #ff3131;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.delete-confirm-body {
    padding: 16px;
}

.delete-confirm-body p {
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 8px;
}

.delete-confirm-body p strong {
    color: #ff8c00;
}

.delete-confirm-note {
    font-size: 10px !important;
    color: #666666 !important;
}

.delete-confirm-buttons {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #1a1a1a;
}

.delete-confirm-btn {
    flex: 1;
    padding: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
}

.delete-confirm-btn.cancel {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #888888;
}

.delete-confirm-btn.cancel:hover {
    border-color: #444444;
    color: #ffffff;
}

.delete-confirm-btn.confirm {
    background: rgba(255, 49, 49, 0.15);
    border: 1px solid #ff3131;
    color: #ff3131;
}

.delete-confirm-btn.confirm:hover {
    background: #ff3131;
    color: #0a0a0a;
}

/* Saved signal card styling */
.signal-card.saved {
    border-left: 2px solid #00aaff;
}

.signal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.signal-coin {
    display: flex;
    align-items: center;
    gap: 6px;
}

.signal-coin-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.signal-coin-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.signal-direction {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.signal-direction.long {
    background: rgba(0, 255, 65, 0.2);
    color: #ffffff;
}

.signal-direction.short {
    background: rgba(255, 49, 49, 0.2);
    color: #ffffff;
}

.signal-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.signal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.signal-label {
    color: var(--text-muted);
}

.signal-value {
    color: var(--text-white);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.signal-value.positive {
    color: #00ff41;
}

.signal-value.negative {
    color: #ff3131;
}

.signal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.signal-rr {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.15);
    padding: 3px 8px;
    border-radius: 3px;
}

.signal-confidence-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--text-muted);
}

.signal-confidence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.signal-confidence-dot.high {
    background: #00ff41;
}

.signal-confidence-dot.medium {
    background: #ffd700;
}

.signal-confidence-dot.low {
    background: #ff6600;
}

.signal-time {
    font-size: 8px;
    color: var(--text-muted);
}

/* ========================================
   SIGNAL DETAIL MODAL
   ======================================== */

.signal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.signal-modal.active {
    display: flex;
}

.signal-modal-content {
    width: 90vw;
    max-width: 600px;
    max-height: 90vh;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
}

.signal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    border-bottom: 1px solid var(--border-highlight);
}

.signal-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.signal-modal-symbol {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
}

.signal-modal-direction {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.signal-modal-direction.long {
    background: rgba(0, 255, 65, 0.2);
    color: #ffffff;
}

.signal-modal-direction.short {
    background: rgba(255, 49, 49, 0.2);
    color: #ffffff;
}

.signal-modal-rr {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
}

.signal-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.signal-modal-close:hover {
    color: var(--text-primary);
}

.signal-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.signal-modal-body::-webkit-scrollbar {
    display: none;
}

.signal-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
}

.signal-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.signal-data-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 4px;
}

.signal-data-label {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.signal-data-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.signal-data-value.positive {
    color: #00ff41;
}

.signal-data-value.negative {
    color: #ff3131;
}

.signal-data-value.highlight {
    color: var(--text-primary);
}

.signal-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 4px;
    border-left: 3px solid var(--border-color);
}

.signal-indicator.bullish {
    border-left-color: #00ff41;
}

.signal-indicator.bearish {
    border-left-color: #ff3131;
}

.signal-indicator.neutral {
    border-left-color: #ffd700;
}

.signal-indicator-name {
    font-size: 11px;
    color: var(--text-white);
    font-weight: 500;
}

.signal-indicator-value {
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.signal-indicator-value.bullish {
    color: #00ff41;
}

.signal-indicator-value.bearish {
    color: #ff3131;
}

.signal-indicator-value.neutral {
    color: #ffd700;
}

.signal-analysis {
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-white);
}

.signal-analysis p {
    margin-bottom: 8px;
}

.signal-patterns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.signal-pattern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 4px;
    font-size: 10px;
}

.signal-pattern-icon {
    font-size: 12px;
}

.signal-pattern-text {
    color: var(--text-white);
    flex: 1;
}

.signal-pattern-result {
    font-weight: 600;
}

.signal-pattern-result.positive {
    color: #00ff41;
}

.signal-pattern-result.negative {
    color: #ff3131;
}

/* Key Levels Section */
.signal-key-levels-section {
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid rgba(0, 170, 255, 0.2);
}

.signal-key-levels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.key-levels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.key-levels-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.key-levels-position {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

.key-levels-position.bullish {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
}

.key-levels-position.bearish {
    background: rgba(255, 49, 49, 0.15);
    color: #ff3131;
}

.key-levels-position.neutral {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
}

.key-levels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.key-levels-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.key-levels-column-title {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.key-levels-column-title.resistance {
    color: #ff3131;
}

.key-levels-column-title.support {
    color: #00ff41;
}

.key-level-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 2px solid transparent;
}

.key-level-item.resistance {
    border-left-color: #ff3131;
}

.key-level-item.support {
    border-left-color: #00ff41;
}

.key-level-item.psychological {
    background: rgba(255, 215, 0, 0.08);
}

.key-level-price {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.key-level-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.key-level-distance {
    font-size: 9px;
    color: var(--text-muted);
}

.key-level-strength {
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.key-level-strength.high {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
}

.key-level-strength.medium {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.key-level-strength.low {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.key-level-badge {
    font-size: 7px;
    padding: 1px 4px;
    border-radius: 2px;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    letter-spacing: 0.3px;
}

.key-levels-summary {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 9px;
}

.key-levels-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.key-levels-summary-label {
    color: var(--text-muted);
}

.key-levels-summary-value {
    font-weight: 600;
    color: var(--text-white);
}

.key-levels-summary-value.positive {
    color: #00ff41;
}

.key-levels-summary-value.negative {
    color: #ff3131;
}

/* Leverage Calculator */
.signal-leverage {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leverage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.leverage-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.leverage-subtitle {
    font-size: 9px;
    color: var(--text-muted);
}

.leverage-recommendation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
}

.leverage-rec-label {
    font-size: 10px;
    color: var(--text-muted);
}

.leverage-rec-value {
    font-size: 14px;
    font-weight: 700;
    color: #00ff41;
}

.leverage-rec-reason {
    font-size: 9px;
    color: var(--text-muted);
    margin-left: auto;
}

.leverage-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.leverage-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 0.8fr;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(26, 26, 26, 0.8);
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-align: center;
}

.leverage-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 0.8fr;
    gap: 4px;
    padding: 8px 10px;
    font-size: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.leverage-table-row:last-child {
    border-bottom: none;
}

.leverage-table-row:hover {
    background: var(--bg-hover);
}

.leverage-table-row.recommended {
    background: rgba(0, 255, 65, 0.08);
    border-left: 3px solid #00ff41;
}

.leverage-table-row.recommended:hover {
    background: rgba(0, 255, 65, 0.15);
}

.lev-value {
    font-weight: 600;
    color: var(--text-white);
}

.leverage-table-row.recommended .lev-value {
    color: #00ff41;
}

.lev-size {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.lev-pnl {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lev-pnl.positive {
    color: #00ff41;
}

.lev-pnl.negative {
    color: #ff3131;
}

.lev-liq {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.lev-risk {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 2px;
    letter-spacing: 0.3px;
}

.lev-risk.low {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
}

.lev-risk.medium {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.lev-risk.high {
    background: rgba(255, 49, 49, 0.2);
    color: #ff3131;
}

.leverage-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.4;
}

.signal-confidence {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
}

.signal-confidence-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.signal-confidence-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.signal-confidence-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #ff6600 0%, #ffd700 50%, #00ff41 100%);
}

.signal-confidence-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1400px) {
    .right-section {
        flex-wrap: wrap;
    }

    .markets-panel,
    .crypto-panel,
    .news-panel,
    .wallet-panel {
        width: 50%;
        height: 50%;
        border-bottom: 1px solid var(--border-color);
    }

    .markets-panel,
    .news-panel {
        border-right: 1px solid var(--border-color);
    }

    .crypto-panel,
    .wallet-panel {
        border-right: none;
    }
}

@media (max-width: 1000px) {
    .main-content {
        flex-direction: column;
    }

    .left-section,
    .right-section {
        width: 100%;
        height: auto;
        min-height: 400px;
    }

    .left-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .right-section {
        flex-direction: column;
    }

    .right-section .liquidations-panel,
    .right-section .absorption-panel,
    .right-section .wallet-panel,
    .right-section .news-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-height: 300px;
        max-width: 100%;
    }

    .right-section .news-panel {
        border-bottom: none;
    }
}

/* ========================================
   MOBILE STYLES (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    body {
        font-size: 11px;
    }

    .terminal {
        height: auto;
        min-height: calc(100vh - 40px);
    }

    /* Header Mobile */
    .header {
        padding: 6px 12px;
        height: 44px;
    }

    .header-left,
    .header-right {
        min-width: auto;
    }

    .logo {
        font-size: 14px;
        letter-spacing: 3px;
    }

    .logo-icon {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }

    .timestamp {
        font-size: 11px;
    }

    /* Overview Bar Mobile */
    .overview-bar-container {
        flex-direction: column;
    }

    .market-overview,
    .traditional-markets-bar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 6px 8px;
    }

    .overview-items,
    .trad-markets-items {
        flex-wrap: wrap;
        gap: 4px;
    }

    .overview-item,
    .trad-market-item {
        flex: 1 1 calc(33.33% - 4px);
        min-width: calc(33.33% - 4px);
        padding: 5px 6px;
    }

    .overview-label,
    .trad-market-symbol {
        font-size: 7px;
    }

    .overview-value,
    .trad-market-price {
        font-size: 9px;
    }

    .overview-change,
    .trad-market-change {
        font-size: 8px;
    }

    /* Main Content Mobile */
    .main-content {
        flex-direction: column;
        flex: 1;
    }

    .left-section,
    .right-section {
        width: 100%;
        height: auto;
        border-right: none;
    }

    .left-section {
        flex-direction: column;
        min-height: auto;
        max-height: none;
    }

    .signals-panel {
        width: 100%;
        min-width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .watchlist-panel {
        max-height: 350px;
    }

    .right-section {
        flex-direction: column;
        flex: 1;
    }

    .right-section .liquidations-panel,
    .right-section .absorption-panel,
    .right-section .wallet-panel,
    .right-section .news-panel {
        min-height: 280px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-width: 100%;
    }

    /* Signal Cards Mobile */
    .signal-card {
        padding: 8px;
    }

    .signal-coin-name {
        font-size: 12px;
    }

    .signal-price-row {
        font-size: 9px;
    }

    /* Signal Modal Mobile */
    .signal-modal-content {
        width: 95vw;
        max-height: 95vh;
    }

    .signal-modal-header {
        padding: 12px 16px;
    }

    .signal-modal-symbol {
        font-size: 18px;
    }

    .signal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .signal-data-value {
        font-size: 12px;
    }

    /* Watchlist Table Mobile */
    .watchlist-table {
        font-size: 10px;
    }

    .watchlist-table th,
    .watchlist-table td {
        padding: 6px 4px;
    }

    .watchlist-table .th-symbol {
        width: 90px;
    }

    .watchlist-table .th-price {
        width: 70px;
    }

    .watchlist-table .th-change {
        width: 55px;
    }

    /* Hide less important columns on mobile */
    .watchlist-table .th-mcap,
    .watchlist-table .th-funding,
    .watchlist-table td:nth-child(6),
    .watchlist-table td:nth-child(7) {
        display: none;
    }

    .coin-logo,
    .coin-logo-placeholder {
        width: 18px;
        height: 18px;
    }

    .symbol-wrapper {
        gap: 5px;
    }

    .symbol-name {
        font-size: 10px;
    }

    /* Panel Headers Mobile */
    .panel-header {
        padding: 6px 10px;
    }

    .panel-title {
        font-size: 10px;
    }

    /* Liquidations Mobile */
    .liq-stats-section {
        padding: 4px;
    }

    .liq-stat-row {
        flex-wrap: wrap;
        gap: 3px;
    }

    .liq-stat-box {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 4px 5px;
    }

    .liq-stat-label {
        font-size: 6px;
    }

    .liq-stat-value {
        font-size: 9px;
    }

    .liq-alert {
        padding: 6px 8px;
    }

    .liq-alert-symbol {
        font-size: 10px;
    }

    .liq-alert-value {
        font-size: 10px;
    }

    /* Wallet Tracker Mobile */
    .wallet-stats {
        flex-wrap: wrap;
        gap: 3px;
        padding: 4px;
    }

    .wallet-stat-box {
        flex: 1 1 calc(50% - 3px);
        padding: 4px 6px;
    }

    .wallet-stat-label {
        font-size: 6px;
    }

    .wallet-stat-value {
        font-size: 10px;
    }

    .hl-position {
        padding: 8px 10px;
    }

    .hl-position-coin {
        font-size: 11px;
    }

    .hl-position-side,
    .hl-position-leverage {
        font-size: 8px;
        padding: 2px 5px;
    }

    .hl-position-main {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hl-position-size-row,
    .hl-position-price-item {
        flex: 1 1 calc(50% - 8px);
    }

    /* News Mobile */
    .news-item {
        padding: 6px 8px;
    }

    .news-headline {
        font-size: 9px;
        -webkit-line-clamp: 3;
    }

    .news-time,
    .news-source {
        font-size: 8px;
    }

    /* Chart Modal Mobile */
    .chart-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .chart-modal-header {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .chart-modal-symbol {
        font-size: 16px;
    }

    .chart-modal-logo {
        width: 24px;
        height: 24px;
    }

    .chart-btn-group-header {
        margin-left: 0;
        margin-right: 0;
    }

    .chart-btn-group-header .chart-velo-btn,
    .chart-btn-group-header .chart-trade-btn {
        padding: 4px 10px;
        font-size: 9px;
    }

    .chart-row {
        height: auto;
        flex-direction: column;
    }

    .chart-container {
        height: 200px;
        min-height: 180px;
        max-height: 200px;
    }

    .chart-mini-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .mini-sidebar-section {
        flex: 1;
        min-width: 120px;
        padding-bottom: 0;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding-right: 10px;
    }

    .mini-sidebar-section:last-child {
        border-right: none;
        padding-right: 0;
    }

    .mini-sidebar-value.large {
        font-size: 14px;
    }

    .chart-data-grid {
        padding: 12px;
        gap: 12px;
    }

    .chart-content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .chart-data-section {
        padding: 10px;
    }

    .liq-heatmap-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Footer Mobile */
    .site-footer {
        height: 40px;
        padding: 0 10px;
    }

    .footer-content {
        font-size: 9px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-text {
        display: none;
    }

    .footer-separator:nth-child(2) {
        display: none;
    }
}

/* ========================================
   SMALL MOBILE STYLES (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .header {
        padding: 4px 8px;
        height: 40px;
    }

    .logo {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .logo-icon {
        display: none;
    }

    .status-text {
        display: none;
    }

    .timestamp {
        font-size: 10px;
    }

    /* Overview even more compact */
    .overview-item,
    .trad-market-item {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 4px 5px;
    }

    .overview-section-title {
        font-size: 8px;
        margin-bottom: 4px;
    }

    /* Hide 7D column on very small screens */
    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) {
        display: none;
    }

    .watchlist-table th,
    .watchlist-table td {
        padding: 5px 3px;
        font-size: 9px;
    }

    /* Liquidation stats 2x2 grid */
    .liq-stat-box {
        flex: 1 1 calc(50% - 2px);
    }

    /* Wallet stats stacked */
    .wallet-stat-box {
        flex: 1 1 100%;
    }

    .wallet-filter {
        padding: 4px;
    }

    .hl-filter-btn {
        padding: 4px 6px;
        font-size: 8px;
    }

    /* News more compact */
    .news-headline {
        font-size: 9px;
    }

    /* Exchange badges smaller */
    .liq-exchange-badge,
    .hl-badge {
        font-size: 6px;
        padding: 1px 3px;
    }

    .panel-badge {
        font-size: 6px;
        padding: 1px 4px;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .overview-item,
    .trad-market-item {
        min-height: 44px;
    }

    .watchlist-table tbody tr {
        min-height: 44px;
    }

    .watchlist-table td {
        padding: 8px 4px;
    }

    .news-item {
        min-height: 60px;
        padding: 10px 12px;
    }

    .liq-alert {
        min-height: 50px;
        padding: 8px 10px;
    }

    .hl-position {
        padding: 10px 12px;
    }

    .hl-filter-btn {
        min-height: 36px;
    }

    .tab-btn {
        min-height: 36px;
        padding: 8px 12px;
    }

    .chart-modal-close {
        padding: 10px 15px;
        font-size: 36px;
    }

    /* Remove hover effects on touch */
    .overview-item:hover,
    .trad-market-item:hover,
    .news-item:hover,
    .watchlist-table tr:hover {
        transform: none;
    }

    /* Active states for touch */
    .overview-item:active,
    .trad-market-item:active {
        background: rgba(59, 130, 246, 0.15);
    }

    .news-item:active {
        background-color: rgba(59, 130, 246, 0.1);
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */

@media (max-width: 900px) and (orientation: landscape) {
    .terminal {
        height: auto;
    }

    .main-content {
        flex-direction: row;
    }

    .left-section {
        width: 45%;
        min-height: 100%;
        max-height: none;
    }

    .right-section {
        width: 55%;
        flex-direction: column;
    }

    .right-section .liquidations-panel,
    .right-section .absorption-panel,
    .right-section .wallet-panel,
    .right-section .news-panel {
        min-height: 200px;
        max-width: 100%;
    }

    .overview-bar-container {
        flex-direction: row;
    }

    .market-overview,
    .traditional-markets-bar {
        width: 50%;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }

    .traditional-markets-bar {
        border-right: none;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.panel {
    animation: fadeIn 0.3s ease;
}

/* Data update flash effect */
.flash-update {
    animation: flashUpdate 0.5s ease;
}

@keyframes flashUpdate {
    0% { background-color: rgba(59, 130, 246, 0.3); }
    100% { background-color: transparent; }
}

/* Live price flash effects */
.flash-green {
    animation: flashGreen 0.3s ease;
}

.flash-red {
    animation: flashRed 0.3s ease;
}

@keyframes flashGreen {
    0% {
        color: #00ff41;
        text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
    }
    100% {
        color: var(--text-white);
        text-shadow: none;
    }
}

@keyframes flashRed {
    0% {
        color: #ff3131;
        text-shadow: 0 0 8px rgba(255, 49, 49, 0.8);
    }
    100% {
        color: var(--text-white);
        text-shadow: none;
    }
}

/* Unavailable row styling */
.unavailable-row td {
    color: var(--text-muted) !important;
    opacity: 0.5;
}

/* ========================================
   WATCHLIST TABLE SPECIFIC STYLES
   ======================================== */

.watchlist-table {
    table-layout: fixed;
}

.watchlist-table th {
    white-space: nowrap;
}

.watchlist-table .th-symbol {
    width: 140px;
}

.watchlist-table .th-price {
    width: 110px;
}

.watchlist-table .th-change {
    width: 85px;
}

.watchlist-table .th-mcap {
    width: 95px;
}

.watchlist-table .th-funding {
    width: 90px;
}

.watchlist-table .th-volume {
    width: 100px;
}

/* Market Cap cell styling */
.mcap-cell {
    color: var(--text-white) !important;
    font-variant-numeric: tabular-nums;
}

/* Symbol cell with logo */
.symbol-cell {
    font-weight: 600;
}

.symbol-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coin-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.coin-logo-placeholder {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.symbol-name {
    color: var(--text-white);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Price cell styling */
.price-cell {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--text-white) !important;
}

/* Change cell styling */
.change-cell {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* Funding cell styling */
.funding-cell {
    font-variant-numeric: tabular-nums;
    font-size: 11px;
}

.funding-cell.positive {
    color: var(--text-green);
}

.funding-cell.negative {
    color: var(--text-red);
}

/* Volume cell styling */
.volume-cell {
    color: var(--text-white) !important;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
}

.footer-brand {
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 2px;
}

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

.footer-text {
    color: var(--text-muted);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00ff41;
}

.footer-dot {
    width: 6px;
    height: 6px;
    background: #00ff41;
    border-radius: 50%;
    animation: footerPulse 2s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========================================
   LIQUIDATION MODAL
   ======================================== */

.liq-stat-box.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.liq-stat-box.clickable:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.02);
}

.liq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.liq-modal.active {
    display: flex;
}

.liq-modal-content {
    width: 90vw;
    max-width: 500px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.liq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.liq-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.liq-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.liq-modal-close:hover {
    color: var(--text-primary);
}

.liq-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.liq-modal-body::-webkit-scrollbar {
    display: none;
}

.liq-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.liq-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
}

.liq-modal-item.long {
    border-left-color: #00ff41;
}

.liq-modal-item.short {
    border-left-color: #ff3131;
}

.liq-modal-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.liq-modal-rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    width: 24px;
}

.liq-modal-rank.top3 {
    color: var(--text-primary);
}

.liq-modal-symbol {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
}

.liq-modal-side {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.liq-modal-side.long {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
}

.liq-modal-side.short {
    background: rgba(255, 49, 49, 0.2);
    color: #ff3131;
}

.liq-modal-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.liq-modal-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.liq-modal-time {
    font-size: 10px;
    color: var(--text-muted);
}

.liq-modal-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 40px 20px;
}

/* ========================================
   LIQUIDATION DETAIL MODAL
   ======================================== */

.liq-alert {
    cursor: pointer;
    transition: all 0.2s ease;
}

.liq-alert:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: scale(1.02);
}

.liq-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.liq-detail-modal.active {
    display: flex;
}

.liq-detail-modal-content {
    width: 90vw;
    max-width: 480px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.liq-detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
}

.liq-detail-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.liq-detail-symbol {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.liq-detail-symbol.long {
    color: #00ff41;
}

.liq-detail-symbol.short {
    color: #ff3131;
}

.liq-detail-side-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.liq-detail-side-badge.long {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.liq-detail-side-badge.short {
    background: rgba(255, 49, 49, 0.2);
    color: #ff3131;
    border: 1px solid rgba(255, 49, 49, 0.3);
}

.liq-detail-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.liq-detail-modal-close:hover {
    color: var(--text-primary);
}

.liq-detail-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.liq-detail-modal-body::-webkit-scrollbar {
    display: none;
}

.liq-detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
}

.liq-detail-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.liq-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.liq-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.liq-detail-item.full {
    grid-column: span 2;
}

.liq-detail-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.liq-detail-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white);
}

.liq-detail-value.large {
    font-size: 18px;
    font-weight: 700;
}

.liq-detail-value.small {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

.liq-detail-value.long {
    color: #00ff41;
}

.liq-detail-value.short {
    color: #ff3131;
}

.liq-detail-value.positive {
    color: #00ff41;
}

.liq-detail-value.negative {
    color: #ff3131;
}

.liq-detail-value.exchange {
    text-transform: uppercase;
    font-weight: 600;
}

.liq-detail-value.exchange.binance {
    color: #f0b90b;
}

.liq-detail-value.exchange.bybit {
    color: #f7a600;
}

.liq-detail-value.exchange.hyperliquid {
    color: #00ff41;
}

.liq-detail-footer-note {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    line-height: 1.5;
}

/* ========================================
   POSITION DETAIL MODAL
   ======================================== */

.position-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.position-modal.active {
    display: flex;
}

.position-modal-content {
    width: 90vw;
    max-width: 520px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.position-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
}

.position-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.position-modal-coin {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
}

.position-modal-side {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.position-modal-side.long {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.position-modal-side.short {
    background: rgba(255, 49, 49, 0.2);
    color: #ff3131;
    border: 1px solid rgba(255, 49, 49, 0.3);
}

.position-modal-leverage {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    border-radius: 3px;
}

.position-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.position-modal-close:hover {
    color: var(--text-primary);
}

.position-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.position-modal-body::-webkit-scrollbar {
    display: none;
}

.position-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
}

.position-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.position-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.position-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.position-item.full {
    grid-column: span 2;
}

.position-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.position-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.position-value.large {
    font-size: 20px;
    font-weight: 700;
}

.position-value.positive {
    color: #00ff41;
}

.position-value.negative {
    color: #ff3131;
}

.position-value.highlight {
    color: var(--text-primary);
}

.position-pnl-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.position-pnl-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.position-pnl-fill.positive {
    background: linear-gradient(90deg, #00ff41 0%, #00cc33 100%);
}

.position-pnl-fill.negative {
    background: linear-gradient(90deg, #ff3131 0%, #cc0000 100%);
}

.position-wallet-link {
    font-size: 11px;
    color: var(--accent-blue);
    text-decoration: none;
    word-break: break-all;
}

.position-wallet-link:hover {
    text-decoration: underline;
}

.position-footer-note {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    line-height: 1.5;
}

/* Position item clickable */
.hl-position {
    cursor: pointer;
    transition: all 0.2s ease;
}

.hl-position:hover {
    background: var(--bg-hover);
    transform: translateX(2px);
}

/* ========================================
   ABSORPTION/DUMP TRACKER PANEL
   ======================================== */

.absorption-panel {
    /* Inherits flex: 1 1 25% from right-section rules */
    overflow: hidden;
}

.absorption-panel .panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.absorption-header-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.absorption-exchange-badge {
    font-size: 7px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.absorption-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    min-height: 0;
}

.absorption-stats-section {
    padding: 6px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.absorption-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.absorption-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 3px;
    background: var(--bg-card);
    border-radius: 3px;
    border: 1px solid var(--border-color);
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
}

.absorption-stat-box.buy {
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
}

.absorption-stat-box.sell {
    border-color: rgba(255, 49, 49, 0.3);
    background: rgba(255, 49, 49, 0.05);
}

.absorption-stat-box.highlight {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
}

.absorption-stat-label {
    font-size: 7.4px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.absorption-stat-value {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.absorption-stat-box.buy .absorption-stat-value {
    color: #00ff41;
}

.absorption-stat-box.sell .absorption-stat-value {
    color: #ff3131;
}

.absorption-stat-box.highlight .absorption-stat-value {
    color: var(--text-white);
}

.absorption-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.absorption-feed::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.absorption-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: var(--text-muted);
    font-size: 10.5px;
    width: 100%;
}

.absorption-placeholder-text {
    opacity: 0.6;
}

/* Absorption Alert Item - matches Liquidations style */
.absorption-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: 0 4px 4px 0;
    border-left: 3px solid var(--border-color);
    animation: absorptionSlideIn 0.25s ease-out;
    flex-shrink: 0;
    min-height: 52px;
    box-sizing: border-box;
}

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

.absorption-alert.buy {
    border-left-color: #00ff41;
}

.absorption-alert.sell {
    border-left-color: #ff3131;
}

.absorption-alert-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.absorption-alert-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.absorption-alert-symbol {
    font-size: 11.6px;
    font-weight: 700;
    color: var(--text-white);
}

.absorption-alert-side {
    font-size: 8.4px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
    letter-spacing: 0.3px;
}

.absorption-alert-side.buy {
    background: rgba(0, 255, 65, 0.3);
    color: #00ff41;
}

.absorption-alert-side.sell {
    background: rgba(255, 49, 49, 0.3);
    color: #ff3131;
}

.absorption-alert-value {
    font-size: 11.6px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}

.absorption-alert-value.buy {
    color: #00ff41;
}

.absorption-alert-value.sell {
    color: #ff3131;
}

.absorption-alert-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    color: var(--text-muted);
}

.absorption-alert-detail {
    display: flex;
    align-items: center;
    gap: 3px;
}

.absorption-alert-label {
    color: var(--text-muted);
}

.absorption-alert-data {
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.absorption-alert-time {
    font-size: 8.4px;
    color: var(--text-muted);
}


