/* Dark Theme Styles for MARKET page */

/* AI-Trade Button Styles */
#aiTradeControlBtn {
    background: #8A2BE2 !important; /* Фиолетовый цвет в выключенном состоянии */
    border: 1px solid #9932CC !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.4) !important;
}

#aiTradeControlBtn:hover:not(.ai-trade-active) {
    background: #9932CC !important;
    box-shadow: 0 0 12px rgba(153, 50, 204, 0.6) !important;
    transform: scale(1.02) !important;
}

/* AI-Trade Button Active Animation - красивое яркое мерцание */
@keyframes aiTradeActiveBlink {
    0% {
        background: #FF1493 !important; /* Ярко-розовый */
        box-shadow: 
            0 0 10px rgba(255, 20, 147, 1),
            0 0 20px rgba(255, 20, 147, 0.8),
            0 0 30px rgba(255, 20, 147, 0.6),
            0 0 40px rgba(255, 20, 147, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
        color: #fff !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
        border: 2px solid #FF69B4 !important;
    }
    33% {
        background: #00FF41 !important; /* Ярко-зеленый */
        box-shadow: 
            0 0 15px rgba(0, 255, 65, 1),
            0 0 25px rgba(0, 255, 65, 0.8),
            0 0 35px rgba(0, 255, 65, 0.6),
            0 0 45px rgba(0, 255, 65, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
        color: #000 !important;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
        border: 2px solid #32CD32 !important;
    }
    66% {
        background: #00BFFF !important; /* Ярко-голубой */
        box-shadow: 
            0 0 15px rgba(0, 191, 255, 1),
            0 0 25px rgba(0, 191, 255, 0.8),
            0 0 35px rgba(0, 191, 255, 0.6),
            0 0 45px rgba(0, 191, 255, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
        color: #000 !important;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
        border: 2px solid #87CEEB !important;
    }
    100% {
        background: #FF1493 !important; /* Обратно к розовому */
        box-shadow: 
            0 0 10px rgba(255, 20, 147, 1),
            0 0 20px rgba(255, 20, 147, 0.8),
            0 0 30px rgba(255, 20, 147, 0.6),
            0 0 40px rgba(255, 20, 147, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
        color: #fff !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
        border: 2px solid #FF69B4 !important;
    }
}

.ai-trade-active {
    animation: aiTradeActiveBlink 1.2s ease-in-out infinite !important;
    transform: scale(1.05) !important;
    font-weight: bold !important;
}

/* Selected coin row highlighting in Changing Coins table */
.selected-coin-row {
    background: rgba(0, 191, 255, 0.15) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.4);
}

.selected-coin-row td {
    background: transparent !important;
}

.ai-trade-active:hover {
    animation: aiTradeActiveBlink 0.8s ease-in-out infinite !important;
    transform: scale(1.08) !important;
}

/* EXEC Button Active Animation */
@keyframes execActivePulse {
    0% {
        background: #800020;
        box-shadow: 0 0 5px rgba(128, 0, 32, 0.6);
        color: white;
    }
    50% {
        background: #a0003a;
        box-shadow: 0 0 20px rgba(128, 0, 32, 0.9), 0 0 30px rgba(128, 0, 32, 0.6);
        color: white;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
    100% {
        background: #800020;
        box-shadow: 0 0 5px rgba(128, 0, 32, 0.6);
        color: white;
    }
}

.exec-btn-active {
    animation: execActivePulse 1.2s ease-in-out infinite !important;
    border: 1px solid #800020 !important;
}

/* Left Sidebar and Resizable Layout Styles */
.page-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

.left-sidebar {
    position: fixed;
    top: 193px;
    left: 0;
    width: 350px;
    /* Removed min-width and max-width to make it fixed */
    height: calc(100vh - 193px);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    box-shadow: 2px 0 20px rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 900;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Removed resize-handle styles since sidebar is now fixed width */

.main-content {
    margin-left: 350px;
    width: calc(100vw - 350px);
    max-width: calc(100vw - 350px);
    min-height: calc(100vh - 193px);
    padding: 20px;
    transition: margin-left 0.3s ease, width 0.3s ease;
    background-color: var(--bg-primary);
    box-sizing: border-box;
}

/* Обеспечиваем корректное отображение всех элементов в main-content */
.main-content * {
    max-width: 100%;
    box-sizing: border-box;
}



/* Таблицы адаптируются к ширине контейнера */
.main-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
}

/* Ячейки таблицы с переносом текста */
.main-content th, 
.main-content td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* max-width: 0 удален - это скрывало содержимое первого столбца */
}

/* Специальный стиль для первой колонки с монетами */
.main-content th:first-child,
.main-content td:first-child {
    min-width: 120px;
    max-width: 180px;
    width: 150px;
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
    .left-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px !important;
    }
    
    .left-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
    }
    
    .mobile-sidebar-toggle {
        display: block !important;
    }

    /* Mobile Table Adaptations - All columns visible */
    
    /* ChangingCoins Table - Show all columns (restrictions removed) */
    /* Column restrictions removed for mobile devices */
    
    /* Selected Symbols Table - Show all columns (restrictions removed) */
    /* Removed column restrictions for Selected Symbols table */
    
    /* Order Book Table - Show all columns (restrictions removed) */
    /* Removed column restrictions for Order Book table */
    
    /* Enable row interactions on mobile for ChangingCoins */
    /* Pointer events restrictions removed for mobile devices */
    
    /* Reset mobile container padding */
    .main-content {
        padding: 10px !important;
    }
    
    /* Enable horizontal scroll for tables on mobile */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
        margin-bottom: 20px !important;
    }
    
    .table {
        width: auto !important;
        margin-bottom: 0 !important;
        font-size: 0.75rem !important;
        table-layout: auto !important;
    }
    
    /* Force Changing Coins table to not compress */
    #coinsTable {
        min-width: 1400px !important;
        width: auto !important;
    }
    
    .table th,
    .table td {
        padding: 0.375rem 0.25rem !important;
        white-space: nowrap !important;
        min-width: 60px !important;
    }
    
    /* Restore all columns visibility on mobile - enable horizontal scroll instead */
    /* BUT allow JavaScript to control .extra-column and .symbol-column visibility */
    #coinsTable th:not(.extra-column):not(.symbol-column),
    #coinsTable td:not(.extra-column):not(.symbol-column),
    #symbolsTable th,
    #symbolsTable td,
    #orderBookTable th,
    #orderBookTable td {
        display: table-cell !important;
    }
    
    /* Mobile table containers - Full width optimization */
    .selected-symbols-table-container,
    .changing-coins-table-container,
    .order-book-table-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Order Book and Selected Symbols full width on mobile */
    .orderbook-section,
    .selected-symbols-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
    }
    
    /* Unified font sizes for Order Book table on all screen sizes */
    #orderBookTable th,
    #orderBookTable td {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    
    .orderbook-section .table-responsive,
    .selected-symbols-section .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* Mobile table styling - stretch to screen width */
    #orderBookTable,
    #symbolsTable {
        width: 100% !important;
        min-width: 100% !important;
        table-layout: auto !important;
    }
    
    /* Mobile font size adjustments for better readability */
    #orderBookTable th,
    #orderBookTable td,
    #symbolsTable th,
    #symbolsTable td {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.2rem !important;
        white-space: nowrap !important;
    }

    /* Coin Parameters Mobile Adaptation */
    .coin-details-unified .param-card {
        min-height: 220px !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .coin-details-unified .param-grid {
        gap: 0.75rem !important;
    }
    
    .coin-details-unified .param-row {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        min-height: 40px !important;
        border-radius: 8px !important;
    }
    
    .coin-details-unified .param-label {
        font-size: 1.1rem !important;
        font-weight: bold !important;
    }
    
    .coin-details-unified .param-value {
        font-size: 1.2rem !important;
        font-weight: bold !important;
    }
}

/* Order Book Table Unified Font Sizes (Desktop) */
#orderBookTable th,
#orderBookTable td {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* Left Sidebar Scrollbar Styling */
.left-sidebar ::-webkit-scrollbar {
    width: 12px;
    background: rgba(0, 191, 255, 0.1);
}

.left-sidebar ::-webkit-scrollbar-track {
    background: rgba(0, 191, 255, 0.1);
    border-radius: 6px;
}

.left-sidebar ::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.25);
    border-radius: 6px;
    border: 2px solid rgba(0, 191, 255, 0.1);
    transition: background 0.3s ease;
}

.left-sidebar ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 191, 255, 0.4);
    border: 2px solid rgba(0, 191, 255, 0.15);
}

.left-sidebar ::-webkit-scrollbar-thumb:active {
    background: rgba(0, 191, 255, 0.6);
}

/* Firefox Scrollbar Styling for Sidebar */
.left-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 191, 255, 0.25) rgba(0, 191, 255, 0.1);
}

/* Main Page Scrollbar Styling - TRADER Style */
body ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body ::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.9);
    border-radius: 5px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

body ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(0, 191, 255, 0.8) 0%, 
        rgba(0, 255, 136, 0.8) 50%,
        rgba(255, 215, 0, 0.8) 100%);
    border-radius: 5px;
    border: 1px solid rgba(0, 191, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

body ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(0, 191, 255, 1) 0%, 
        rgba(0, 255, 136, 1) 50%,
        rgba(255, 215, 0, 1) 100%);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
    transform: scale(1.1);
}

body ::-webkit-scrollbar-corner {
    background: rgba(0, 20, 40, 0.9);
}

/* Firefox Scrollbar Styling for Main Page */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 191, 255, 0.8) rgba(0, 20, 40, 0.9);
    
    .coin-details-unified .group-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .coin-details-unified .social-link-card {
        min-height: 45px !important;
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        font-size: 1rem !important;
    }
    
    .coin-details-unified .coin-logo {
        width: 110px !important;
        height: 110px !important;
    }
    
    .coin-details-unified .coin-info h6 {
        font-size: 1.1rem !important;
    }
    
    .coin-details-unified .price-display div {
        font-size: 1.1rem !important;
    }
    
    .coin-details-unified .cmc-rank-badge {
        font-size: 1rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Adjust header content padding on mobile to make room for button */
    .header-content {
        padding-left: 70px !important;
    }
    
    /* Включаем горизонтальную прокрутку для таблиц только на мобильных */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Убираем возможность горизонтальной прокрутки для основной страницы на мобильных */
    body {
        overflow-x: hidden !important;
    }
    
    html {
        overflow-x: hidden !important;
    }
}

/* Hide mobile toggle on desktop - handled in HTML now */

/* Sidebar Content Styling */
.control-panel-section {
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1);
}

.control-panel-section h6 {
    color: #00bfff;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    padding-bottom: 5px;
}

/* Sidebar Scrollbar */
.left-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 191, 255, 0.1);
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00bfff, #00ff88);
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ff88, #00bfff);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}

/* Compact CoinMarketCap Section Styles */
.coin-details-unified .param-card {
    min-height: 120px;
    transition: all 0.3s ease;
}

.coin-details-unified .param-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

.coin-details-unified .coin-logo {
    transition: all 0.3s ease;
}

.coin-details-unified .coin-logo:hover {
    transform: scale(1.05);
}

.coin-details-unified .social-link-card {
    transition: all 0.3s ease;
}

.coin-details-unified .social-link-card:hover {
    transform: translateX(5px);
    background: rgba(0, 191, 255, 0.2) !important;
    color: #00bfff !important;
}

.coin-details-unified .param-grid {
    font-size: 0.85rem;
}

.coin-details-unified .param-row {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coin-details-unified .param-row:last-child {
    border-bottom: none;
}

.coin-details-unified .group-title {
    font-size: 0.8rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coin-details-unified .param-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.coin-details-unified .param-value {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive adjustments for compact layout */
@media (max-width: 1200px) {
    .coin-details-unified .row.g-2 > .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .coin-details-unified .row.g-2 > .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .coin-details-unified .param-card {
        min-height: 100px;
    }
}

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #4a9eff;
    --accent-secondary: #00d4aa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --border-color: #444444;
    --blue-header: #00bfff;
    --success-glow: #00ff88;
}

/* LIFE_EXEC Red Blinking Indicator Animation */
@keyframes blinkRed {
    0% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.4);
    }
    100% {
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.4), 0 0 10px rgba(255, 0, 0, 0.3), 0 0 15px rgba(255, 0, 0, 0.2);
    }
}

.life-exec-indicator {
    animation: blinkRed 1s infinite alternate;
}

/* Light theme - based on dark theme with lightened backgrounds */
[data-theme="light"] {
    --bg-primary: #2a3038;     /* Dark #1a1a1a lightened */
    --bg-secondary: #3a4048;   /* Dark #2d2d2d lightened */
    --bg-tertiary: #4a5058;    /* Dark #3a3a3a lightened */
    --text-primary: #ffffff;   /* Keep white text */
    --text-secondary: #b0b0b0; /* Keep light secondary text */
    --border-color: #60708a;   /* Lightened dark borders */
    --blue-header: #00bfff;    /* Keep cyan from dark theme */
    --success-glow: #00ff88;   /* Keep green from dark theme */
    --accent-primary: #4a9eff; /* Keep blue accent */
    --accent-secondary: #00d4aa; /* Keep teal accent */
    --success-color: #28a745;  /* Keep success green */
    --danger-color: #dc3545;   /* Keep danger red */
    --warning-color: #ffc107;  /* Keep warning yellow */
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: block !important;
    margin-top: 193px; /* Default desktop offset */
    padding-bottom: 60px;
}

/* Changing Coins Table with Scrolling - Limited to 19 rows */
.table-responsive {
    overflow-y: auto;
    overflow-x: auto; /* Возвращаем горизонтальную прокрутку для таблиц */
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Changing Coins Table - Max 19 rows visible */
.changing-coins-section .table-responsive {
    max-height: 520px; /* Точная высота для 19 строк + заголовок */
    overflow-y: auto;
    overflow-x: auto; /* Возвращаем горизонтальную прокрутку */
    border: 1px solid #00bfff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}


/* Custom scrollbar styles for Changing Coins */
.changing-coins-section .table-responsive::-webkit-scrollbar {
    width: 8px;
}

.changing-coins-section .table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.8);
    border-radius: 4px;
}

.changing-coins-section .table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.8) 0%, rgba(0, 255, 136, 0.8) 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.4);
}

.changing-coins-section .table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 1) 0%, rgba(0, 255, 136, 1) 100%);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

/* Changing Coins Table Sticky Header */
#coinsTable thead th {
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
    z-index: 15;
    border-bottom: 2px solid #00bfff;
    box-shadow: 0 2px 5px rgba(0, 191, 255, 0.2);
}

#coinsTable tbody tr {
    height: 26px;
    min-height: 26px;
}

#coinsTable tbody tr:hover {
    background-color: rgba(0, 191, 255, 0.15) !important;
    transition: background-color 0.2s ease;
}

/* Order Book Table Scrolling - Max height 777px */
.orderbook-section .table-responsive {
    max-height: 777px; /* Increased height as requested */
    overflow-y: auto;
    overflow-x: auto; /* Возвращаем горизонтальную прокрутку */
    border: 1px solid #00bfff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

/* Order Book Panel - общие стили для панели */
.order-book-panel .table-responsive {
    max-height: 777px; /* Increased height as requested */
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #00bfff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

/* Order Book Table Sticky Header */
#orderBookTable thead th {
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
    z-index: 15;
    border-bottom: 2px solid #00bfff;
    box-shadow: 0 2px 5px rgba(0, 191, 255, 0.2);
}

/* Selected Symbols Table Sticky Header */
#symbolsTable thead th {
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
    z-index: 15;
    border-bottom: 2px solid #00bfff;
    box-shadow: 0 2px 5px rgba(0, 191, 255, 0.2);
}

/* Selected Symbols Table Container */
.selected-symbols-table-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
}

/* Search Container for Symbols */
.search-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.symbols-search-input {
    background: rgba(0, 191, 255, 0.1) !important;
    border: 1px solid rgba(0, 191, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 8px 12px 8px 35px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.symbols-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.symbols-search-input:focus {
    outline: none;
    border-color: rgba(0, 191, 255, 0.7) !important;
    background: rgba(0, 191, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

/* Order Book Search Input */
.orderbook-search-input {
    background: rgba(0, 191, 255, 0.1) !important;
    border: 1px solid rgba(0, 191, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 8px 12px 8px 35px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.orderbook-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.orderbook-search-input:focus {
    outline: none;
    border-color: rgba(0, 191, 255, 0.7) !important;
    background: rgba(0, 191, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.selected-symbols-table-container::-webkit-scrollbar {
    width: 8px;
}

.selected-symbols-table-container::-webkit-scrollbar-track {
    background: rgba(0, 191, 255, 0.1);
    border-radius: 4px;
}

.selected-symbols-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00bfff, #00ff88);
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

.selected-symbols-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ff88, #00bfff);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}


/* Order Book Table Row Styling */
#orderBookTable tbody tr {
    height: 26px;
    min-height: 26px;
}

#orderBookTable tbody tr:hover {
    background-color: rgba(0, 191, 255, 0.15) !important;
    transition: background-color 0.2s ease;
}

/* Neon glow animation for changed rows text */
.order-book-row-changed td {
    color: #00ff88 !important;
    text-shadow: 
        0 0 5px rgba(0, 255, 136, 0.8),
        0 0 10px rgba(0, 255, 136, 0.6),
        0 0 15px rgba(0, 255, 136, 0.4) !important;
    animation: neonTextPulse 0.5s ease-in-out;
    transition: all 0.3s ease-out;
}

@keyframes neonTextPulse {
    0% {
        color: #00ff88;
        text-shadow: 
            0 0 3px rgba(0, 255, 136, 0.6),
            0 0 6px rgba(0, 255, 136, 0.4),
            0 0 9px rgba(0, 255, 136, 0.2);
    }
    50% {
        color: #00ffff;
        text-shadow: 
            0 0 8px rgba(0, 255, 255, 1),
            0 0 16px rgba(0, 255, 255, 0.8),
            0 0 24px rgba(0, 255, 255, 0.6);
    }
    100% {
        color: #00ff88;
        text-shadow: 
            0 0 5px rgba(0, 255, 136, 0.8),
            0 0 10px rgba(0, 255, 136, 0.6),
            0 0 15px rgba(0, 255, 136, 0.4);
    }
}

/* Selected Symbols Table - Text highlighting for cryptocurrency names */
.symbol-name-increased {
    color: #00ff88 !important;
    text-shadow: 
        0 0 5px rgba(0, 255, 136, 0.8),
        0 0 10px rgba(0, 255, 136, 0.6),
        0 0 15px rgba(0, 255, 136, 0.4) !important;
    animation: symbolNamePulseGreen 0.8s ease-in-out;
}

.symbol-name-decreased {
    color: #ff4444 !important;
    text-shadow: 
        0 0 5px rgba(255, 68, 68, 0.8),
        0 0 10px rgba(255, 68, 68, 0.6),
        0 0 15px rgba(255, 68, 68, 0.4) !important;
    animation: symbolNamePulseRed 0.8s ease-in-out;
}

.symbol-name-changed {
    color: #00bfff !important;
    text-shadow: 
        0 0 5px rgba(0, 191, 255, 0.8),
        0 0 10px rgba(0, 191, 255, 0.6),
        0 0 15px rgba(0, 191, 255, 0.4) !important;
    animation: symbolNamePulseBlue 0.8s ease-in-out;
}

/* Individual cell highlighting for changed values */
.symbol-cell-increased {
    color: #00ff88 !important;
    text-shadow: 
        0 0 5px rgba(0, 255, 136, 0.8),
        0 0 10px rgba(0, 255, 136, 0.6) !important;
    animation: symbolCellPulseGreen 0.6s ease-in-out;
}

.symbol-cell-decreased {
    color: #ff4444 !important;
    text-shadow: 
        0 0 5px rgba(255, 68, 68, 0.8),
        0 0 10px rgba(255, 68, 68, 0.6) !important;
    animation: symbolCellPulseRed 0.6s ease-in-out;
}

/* Animation keyframes for symbol table highlighting */
@keyframes symbolRowGlowGreen {
    0% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), inset 0 0 15px rgba(0, 255, 136, 0.2); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.3), inset 0 0 10px rgba(0, 255, 136, 0.1); }
}

@keyframes symbolRowGlowRed {
    0% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.5), inset 0 0 15px rgba(255, 68, 68, 0.2); }
    100% { box-shadow: 0 0 10px rgba(255, 68, 68, 0.3), inset 0 0 10px rgba(255, 68, 68, 0.1); }
}

@keyframes symbolRowGlowBlue {
    0% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 191, 255, 0.5), inset 0 0 15px rgba(0, 191, 255, 0.2); }
    100% { box-shadow: 0 0 10px rgba(0, 191, 255, 0.3), inset 0 0 10px rgba(0, 191, 255, 0.1); }
}

@keyframes symbolCellPulseGreen {
    0% { 
        color: #00ff88;
        text-shadow: 0 0 3px rgba(0, 255, 136, 0.6);
    }
    50% { 
        color: #44ffaa;
        text-shadow: 0 0 12px rgba(0, 255, 136, 1), 0 0 18px rgba(0, 255, 136, 0.8);
    }
    100% { 
        color: #00ff88;
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.8), 0 0 10px rgba(0, 255, 136, 0.6);
    }
}

@keyframes symbolCellPulseRed {
    0% { 
        color: #ff4444;
        text-shadow: 0 0 3px rgba(255, 68, 68, 0.6);
    }
    50% { 
        color: #ff6666;
        text-shadow: 0 0 12px rgba(255, 68, 68, 1), 0 0 18px rgba(255, 68, 68, 0.8);
    }
    100% { 
        color: #ff4444;
        text-shadow: 0 0 5px rgba(255, 68, 68, 0.8), 0 0 10px rgba(255, 68, 68, 0.6);
    }
}

@keyframes symbolCellPulseBlue {
    0% { 
        color: #00bfff;
        text-shadow: 0 0 3px rgba(0, 191, 255, 0.6);
    }
    50% { 
        color: #44ccff;
        text-shadow: 0 0 12px rgba(0, 191, 255, 1), 0 0 18px rgba(0, 191, 255, 0.8);
    }
    100% { 
        color: #00bfff;
        text-shadow: 0 0 5px rgba(0, 191, 255, 0.8), 0 0 10px rgba(0, 191, 255, 0.6);
    }
}

/* Animation keyframes for symbol name highlighting */
@keyframes symbolNamePulseGreen {
    0% { 
        color: #00ff88;
        text-shadow: 0 0 3px rgba(0, 255, 136, 0.6);
    }
    50% { 
        color: #44ffaa;
        text-shadow: 0 0 15px rgba(0, 255, 136, 1), 0 0 25px rgba(0, 255, 136, 0.8);
    }
    100% { 
        color: #00ff88;
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.8), 0 0 10px rgba(0, 255, 136, 0.6), 0 0 15px rgba(0, 255, 136, 0.4);
    }
}

@keyframes symbolNamePulseRed {
    0% { 
        color: #ff4444;
        text-shadow: 0 0 3px rgba(255, 68, 68, 0.6);
    }
    50% { 
        color: #ff6666;
        text-shadow: 0 0 15px rgba(255, 68, 68, 1), 0 0 25px rgba(255, 68, 68, 0.8);
    }
    100% { 
        color: #ff4444;
        text-shadow: 0 0 5px rgba(255, 68, 68, 0.8), 0 0 10px rgba(255, 68, 68, 0.6), 0 0 15px rgba(255, 68, 68, 0.4);
    }
}

@keyframes symbolNamePulseBlue {
    0% { 
        color: #00bfff;
        text-shadow: 0 0 3px rgba(0, 191, 255, 0.6);
    }
    50% { 
        color: #44ccff;
        text-shadow: 0 0 15px rgba(0, 191, 255, 1), 0 0 25px rgba(0, 191, 255, 0.8);
    }
    100% { 
        color: #00bfff;
        text-shadow: 0 0 5px rgba(0, 191, 255, 0.8), 0 0 10px rgba(0, 191, 255, 0.6), 0 0 15px rgba(0, 191, 255, 0.4);
    }
}

/* Text highlighting for changed cell values */
.cell-value-increased {
    color: #00ff88 !important;
    text-shadow: 
        0 0 5px rgba(0, 255, 136, 0.8),
        0 0 10px rgba(0, 255, 136, 0.6) !important;
    animation: symbolCellPulseGreen 0.8s ease-in-out;
}

.cell-value-decreased {
    color: #ff4444 !important;
    text-shadow: 
        0 0 5px rgba(255, 68, 68, 0.8),
        0 0 10px rgba(255, 68, 68, 0.6) !important;
    animation: symbolCellPulseRed 0.8s ease-in-out;
}

.cell-value-changed {
    color: #00bfff !important;
    text-shadow: 
        0 0 5px rgba(0, 191, 255, 0.8),
        0 0 10px rgba(0, 191, 255, 0.6) !important;
    animation: symbolCellPulseBlue 0.8s ease-in-out;
}

/* Demo Exchange Header Glow Effect - ONLY for Exchange parameter card */
.page-header.demo-glow .center-section > div:first-child {
    background: linear-gradient(135deg, rgba(30, 30, 0, 0.95) 0%, rgba(60, 60, 0, 0.95) 50%, rgba(90, 90, 0, 0.95) 100%) !important;
    border: 2px solid rgba(255, 255, 0, 0.6) !important;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 0, 0.4),
        0 0 60px rgba(255, 255, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 0, 0.1) !important;
    animation: demoHeaderPulse 3s ease-in-out infinite;
}

@keyframes demoHeaderPulse {
    0% {
        box-shadow: 
            0 4px 30px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 255, 0, 0.3),
            0 0 40px rgba(255, 255, 0, 0.15),
            inset 0 0 20px rgba(255, 255, 0, 0.05);
    }
    50% {
        box-shadow: 
            0 4px 30px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(255, 255, 0, 0.5),
            0 0 80px rgba(255, 255, 0, 0.3),
            inset 0 0 40px rgba(255, 255, 0, 0.15);
    }
    100% {
        box-shadow: 
            0 4px 30px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 255, 0, 0.3),
            0 0 40px rgba(255, 255, 0, 0.15),
            inset 0 0 20px rgba(255, 255, 0, 0.05);
    }
}

/* Enhanced Demo Exchange Card Glow */
.page-header.demo-glow .center-section > div:first-child {
    background: rgba(255, 255, 0, 0.15) !important;
    border: 2px solid rgba(255, 255, 0, 0.8) !important;
    box-shadow: 
        0 0 15px rgba(255, 255, 0, 0.6),
        0 0 30px rgba(255, 255, 0, 0.3),
        inset 0 0 10px rgba(255, 255, 0, 0.1);
    animation: demoCardPulse 2s ease-in-out infinite;
}

@keyframes demoCardPulse {
    0% {
        box-shadow: 
            0 0 10px rgba(255, 255, 0, 0.4),
            0 0 20px rgba(255, 255, 0, 0.2),
            inset 0 0 5px rgba(255, 255, 0, 0.05);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 255, 0, 0.8),
            0 0 40px rgba(255, 255, 0, 0.4),
            inset 0 0 15px rgba(255, 255, 0, 0.2);
    }
    100% {
        box-shadow: 
            0 0 10px rgba(255, 255, 0, 0.4),
            0 0 20px rgba(255, 255, 0, 0.2),
            inset 0 0 5px rgba(255, 255, 0, 0.05);
    }
}

/* Enhanced Demo Exchange Card Text - только для самого поля Exchange */  
.page-header.demo-glow .center-section > div:first-child #current-exchange {
    color: #ffff00 !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 0, 0.8),
        0 0 20px rgba(255, 255, 0, 0.6),
        0 0 30px rgba(255, 255, 0, 0.4) !important;
    animation: demoTextGlow 2.5s ease-in-out infinite;
}

@keyframes demoTextGlow {
    0% {
        text-shadow: 
            0 0 8px rgba(255, 255, 0, 0.6),
            0 0 16px rgba(255, 255, 0, 0.4),
            0 0 24px rgba(255, 255, 0, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 0, 1),
            0 0 30px rgba(255, 255, 0, 0.8),
            0 0 45px rgba(255, 255, 0, 0.6);
    }
    100% {
        text-shadow: 
            0 0 8px rgba(255, 255, 0, 0.6),
            0 0 16px rgba(255, 255, 0, 0.4),
            0 0 24px rgba(255, 255, 0, 0.2);
    }
}

/* Trend indicators animations */
.trend-indicator {
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
    display: inline-block;
}

@keyframes trendUp {
    0% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-3px) scale(1.2);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

@keyframes trendDown {
    0% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(3px) scale(1.2);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
}

/* Custom neon scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00bfff, #00ff88);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ff88, #00bfff);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
}

::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #00bfff var(--bg-secondary);
}

/* Export buttons styling */
.export-btn {
    background: linear-gradient(45deg, #4a9eff, #00d4aa);
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 6px;
    color: white;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.export-btn:hover {
    background: linear-gradient(45deg, #00d4aa, #4a9eff);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.5);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.export-btn i {
    font-size: 0.9rem;
}

/* Theme toggle button */
#themeToggleBtn {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    color: #ffd700;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(8px);
}

#themeToggleBtn:hover {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3));
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
    border-color: rgba(255, 215, 0, 0.8);
}

/* Enhanced table styling for light theme */
[data-theme="light"] .table-dark {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Export Dropdown Styling with High Z-Index */
.dropdown-menu {
    z-index: 10000 !important;
    position: absolute !important;
}

.dropdown {
    position: relative;
    z-index: 9999;
}

/* Ensure dropdown appears above all panels */
.dropdown.show .dropdown-menu {
    z-index: 10001 !important;
}

/* Light theme text improvements */
[data-theme="light"] {
    color: var(--text-primary) !important;
}

[data-theme="light"] .dropdown-menu {
    background: rgba(240, 240, 240, 0.95) !important;
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .dropdown-item {
    color: var(--text-primary) !important;
}

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .dropdown-item:focus {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Sidebar Market Parameters Styling */
.sidebar-market-params {
    width: 100% !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    height: auto !important;
}

.sidebar-param-section {
    width: 100%;
    margin-bottom: 15px;
}

.sidebar-param-section:last-child {
    margin-bottom: 0;
}

.sidebar-params-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-param-item {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure sidebar content uses full width */
.sidebar-content {
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Light theme text contrast improvements */
[data-theme="light"] .table,
[data-theme="light"] .table td,
[data-theme="light"] .table th {
    color: var(--text-primary) !important;
}

[data-theme="light"] .btn {
    color: white !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .table-dark th,
[data-theme="light"] .table-dark td {
    border-color: var(--border-color);
    background-color: transparent;
}

[data-theme="light"] .table-dark thead th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        margin-top: 120px; /* Reduced mobile header height */
    }
    
    .page-header {
        min-height: 100px !important;
    }
    
    .header-content {
        padding: 15px 20px !important;
    }
    
    /* Hide header Download button on mobile */
    #headerExportDropdown {
        display: none !important;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    /* Hide logo image on mobile */
    .left-section img {
        display: none !important;
    }
    
    /* Mobile brand text - single line only */
    .left-section {
        justify-content: center;
        text-align: center;
        flex: none !important;
    }
    
    .brand-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Hide desktop brand elements on mobile */
    .brand-text,
    .sub-brand,
    .version {
        display: none !important;
    }
    
    /* Show mobile single line brand */
    .mobile-brand {
        display: block !important;
    }
    
    /* Show QUANT button on mobile with specific styling */
    .right-section a[href="/quant"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Hide center trading cards on mobile */
    .center-section {
        display: none !important;
    }
    
    /* Adjust right navigation */
    .right-section {
        flex: none !important;
        gap: 8px;
    }
    
    .right-section button,
    .right-section a {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    
    /* Увеличить размеры плашек параметров на мобильных */
    .market-params-grid .param-item {
        min-height: 120px !important;
        padding: 22px !important;
    }
    
    /* Увеличить шрифт названий параметров на мобильных */
    .market-params-grid .param-name {
        font-size: 0.9rem !important;
    }
    
    /* Увеличить шрифт значений параметров на мобильных */
    .market-params-grid .param-value {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 480px) {
    body {
        margin-top: 100px; /* Further reduced for very small mobiles */
    }
    
    .page-header {
        min-height: 80px !important;
    }
    
    .header-content {
        padding: 10px 15px !important;
    }
    
    .brand-text {
        font-size: 1.3rem !important;
    }
    
    .sub-brand {
        font-size: 1.3rem !important;
    }
    
    .right-section button,
    .right-section a {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.0rem !important;
    }
    
    /* Дополнительные исправления для мобильных устройств */
    .market-params-grid .param-item {
        min-height: 110px !important;
        padding: 20px !important;
    }
    
    .market-params-grid .param-name {
        font-size: 0.85rem !important;
    }
    
    .market-params-grid .param-value {
        font-size: 1.5rem !important;
    }
}

/* Keep table header fixed */
#coinsTable thead th {
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
    z-index: 10;
    border-bottom: 2px solid var(--border-color);
}

/* Alternating row backgrounds for Changing Coins table */
#coinsTable tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

#coinsTable tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Enhance row hover effect */
#coinsTable tbody tr:hover {
    background-color: rgba(0, 191, 255, 0.1) !important;
    transition: background-color 0.2s ease;
}

/* Ensure actual/outdated row colors override alternating backgrounds */
#coinsTable tbody tr.row-actual {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%) !important;
    border-left: 3px solid #ffd700;
}

#coinsTable tbody tr.row-outdated {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 107, 107, 0.03) 100%) !important;
    border-left: 3px solid #ff6b6b;
}

/* Price change highlighting with neon green glow */
.price-changed {
    color: #00ff41 !important;
    text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41, 0 0 20px #00ff41;
    font-weight: bold !important;
    animation: neonGlow 3s ease-out;
}

/* Neon glow animation for changed prices */
@keyframes neonGlow {
    0% {
        color: #00ff41;
        text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
        transform: scale(1.02);
    }
    50% {
        color: #00ff88;
        text-shadow: 0 0 8px #00ff88, 0 0 15px #00ff88, 0 0 25px #00ff88, 0 0 35px #00ff88;
        transform: scale(1.05);
    }
    100% {
        color: #00ff41;
        text-shadow: 0 0 3px #00ff41, 0 0 6px #00ff41, 0 0 12px #00ff41;
        transform: scale(1);
    }
}

/* Mobile responsive header layout */
@media (max-width: 768px) {
    /* Mobile body content offset */
    body {
        margin-top: 200px !important; /* Reduced for single-row layout */
    }
    
    .page-header .header-content {
        flex-direction: column !important;
        padding: 15px 20px !important;
        min-height: auto !important;
        gap: 15px !important;
    }
    
    .page-header .left-section {
        flex: none !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .page-header .left-section img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .page-header .left-section .brand-text {
        font-size: 1.6rem !important;
    }
    
    .page-header .left-section .sub-brand {
        font-size: 1rem !important;
    }
    
    .page-header .left-section .version {
        font-size: 0.8rem !important;
    }
    
    /* Mobile header parameters - 1 row layout with smaller cards */
    .page-header .center-section {
        flex: none !important;
        max-width: none !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    
    .page-header .center-section > div {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 70px !important;
        max-width: 85px !important;
        padding: 4px 6px !important;
    }
    
    .page-header .center-section > div > div:first-child {
        font-size: 0.55rem !important;
    }
    
    .page-header .center-section > div > div:last-child {
        font-size: 0.7rem !important;
    }
    
    .page-header .right-section {
        flex: none !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .page-header .right-section button,
    .page-header .right-section a {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        padding: 8px !important;
    }
    
    /* Adjust quick navigation position for mobile */
    .quick-navigation {
        top: 200px !important;
    }
}

@media (max-width: 480px) {
    /* Mobile body content offset for small phones */
    body {
        margin-top: 220px !important; /* Space for 2-row layout */
    }
    
    .page-header .header-content {
        padding: 10px 15px !important;
        gap: 10px !important;
    }
    
    /* Even more compact on small phones - 2 rows layout */
    .page-header .center-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 4px !important;
        justify-items: center !important;
    }
    
    .page-header .center-section > div {
        width: 100% !important;
        max-width: 75px !important;
        min-width: auto !important;
        padding: 3px 4px !important;
    }
    
    .page-header .center-section > div > div:first-child {
        font-size: 0.55rem !important;
    }
    
    .page-header .center-section > div > div:last-child {
        font-size: 0.7rem !important;
    }
    
    /* Adjust quick navigation position for small phones */
    .quick-navigation {
        top: 220px !important;
    }
}

/* Blinking animation for refresh buttons */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Custom scrollbar for table container */
.table-responsive::-webkit-scrollbar {
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* AI Trading Copilot Stats Groups */
.stats-group {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.stats-group-1 {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.stats-group-2 {
    border-color: rgba(255, 165, 0, 0.3);
    background: rgba(255, 165, 0, 0.05);
}

.stats-group-3 {
    border-color: rgba(138, 43, 226, 0.3);
    background: rgba(138, 43, 226, 0.05);
}

/* Unified font sizes for all stats */
.stat-item h6 {
    font-size: 12px !important;
    margin-bottom: 4px !important;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value, .pnl-value {
    font-size: 14px !important;
    font-weight: bold;
}

.stat-value.small {
    font-size: 14px !important;
}

/* Group 1 - Financial Metrics (Green palette) */
.stats-group-1 .stat-item h6 {
    color: #00ff88 !important;
}

.stats-group-1 #totalPnlDisplay {
    color: #00ff88;
}

.stats-group-1 #mprDisplay {
    color: #00cc66;
}

.stats-group-1 #balanceDisplay {
    color: #00aa44;
}

.stats-group-1 #balanceUsedDisplay {
    color: #007722;
}

.stats-group-1 #totalTurnoverDisplay {
    color: #008833;
}

/* Group 2 - Order Statistics (Orange palette) */
.stats-group-2 .stat-item h6 {
    color: #ff9500 !important;
}

.stats-group-2 #openedOrdersDisplay {
    color: #ff9500;
}

.stats-group-2 #closedOrdersDisplay {
    color: #ff7700;
}

.stats-group-2 #tpCountDisplay {
    color: #ff5500;
}

.stats-group-2 #slCountDisplay {
    color: #ff3300;
}

.stats-group-2 #tpSlRatioDisplay {
    color: #dd2200;
}

/* Group 3 - Time Metrics (Purple palette) */
.stats-group-3 .stat-item h6 {
    color: #9d4edd !important;
}

.stats-group-3 #tradingTimeDisplay {
    color: #9d4edd;
}

.stats-group-3 #meanDurationDisplay {
    color: #7b3abb;
}

/* MOBILE RESPONSIVE STYLES */
/* Tablet (768px) and smaller */
@media (max-width: 768px) {
    .navbar {
        min-height: 120px;
        padding: 15px 0;
    }
    
    .container-fluid {
        height: auto;
        padding: 0 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left-section {
        max-width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .brand-text {
        text-align: center;
    }
    
    .brand-main {
        font-size: 1.5rem;
    }
    
    .brand-sub {
        font-size: 1rem;
    }
    
    .brand-credits {
        font-size: 0.8rem;
    }
    
    .header-center-section {
        max-width: 100%;
        order: 3;
    }
    
    /* Trading Parameters Cards - Tablet Layout */
    .header-center-section > div {
        flex-wrap: wrap;
        gap: 8px !important;
        justify-content: center !important;
        max-width: 100% !important;
    }
    
    .header-center-section > div > div {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .header-center-section > div > div > div:first-child {
        font-size: 0.65rem !important;
    }
    
    .header-center-section > div > div > div:last-child {
        font-size: 0.75rem !important;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .header-right-section {
        order: 2;
    }
    
    .nav-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    body {
        margin-top: 130px;
    }
}

/* Enhanced Tooltips for Table Headers */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    z-index: 10001;
    background: rgba(0, 20, 60, 0.95);
    color: #ffff00;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 0, 0.3);
    border: 1px solid rgba(255, 255, 0, 0.4);
    transform: translateX(-50%) translateY(-110%);
    left: 50%;
    top: 0;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

th[title] {
    position: relative;
    cursor: help;
}

th[title]:hover {
    background: rgba(0, 191, 255, 0.1) !important;
    transition: background-color 0.3s ease;
}

/* Mobile (480px) and smaller */
@media (max-width: 480px) {
    .navbar {
        min-height: 100px;
        padding: 10px 0;
    }
    
    .container-fluid {
        padding: 0 10px;
        gap: 10px;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-main {
        font-size: 1.3rem;
    }
    
    .brand-sub {
        font-size: 0.9rem;
    }
    
    .brand-credits {
        font-size: 0.7rem;
    }
    
    /* Trading Parameters Cards - Mobile Layout */
    .header-center-section > div {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: center !important;
    }
    
    .header-center-section > div > div {
        width: 80px !important;
        padding: 4px 8px !important;
    }
    
    .header-center-section > div > div > div:first-child {
        font-size: 0.6rem !important;
        margin-bottom: 1px !important;
    }
    
    .header-center-section > div > div > div:last-child {
        font-size: 0.7rem !important;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .status-item {
        padding: 6px 8px;
    }
    
    .status-label {
        font-size: 0.8rem;
    }
    
    .status-value {
        font-size: 0.9rem;
    }
    
    .nav-buttons {
        gap: 5px;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    body {
        margin-top: 110px;
    }
    
    /* Hide center section on very small screens */
    .header-center-section {
        display: none;
    }
}

/* Page end footer */
.page-end-footer {
    background: #1a1a1a !important;
    padding: 13px !important;
    text-align: center !important;
    border-top: 1px solid #333 !important;
    margin-top: 50px !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 1 !important;
}

.page-end-footer p {
    color: #888 !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    position: static !important;
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, #0a1b2e 0%, #1a2f4a 50%, #2c4866 100%) !important;
    border-bottom: 2px solid #00ffff;
    box-shadow: 0 2px 15px rgba(0, 255, 255, 0.4);
    min-height: 140px;
    padding: 20px 0;
}

.container-fluid {
    height: 100px;
    padding: 0 30px;
    display: block !important;
    position: relative !important;
}

/* Left Section */
.header-left-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    max-width: 350px;
}

.logo-brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-main {
    color: #00ffff;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 2px;
}

.brand-sub {
    color: #87ceeb;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(135, 206, 235, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.brand-credits {
    color: #9370db;
    font-size: 0.85rem;
    font-weight: 300;
    text-shadow: 0 0 6px rgba(147, 112, 219, 0.5);
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.copyright-text {
    color: #888;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.8;
}

/* Center Section */
.header-center-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 2;
    max-width: 600px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.status-item {
    text-align: center;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.status-label {
    color: #87ceeb;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-value {
    color: #00ffff;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Right Section */
.header-right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.nav-btn i {
    color: #00ffff;
    font-size: 0.9rem;
}

.nav-item {
    color: #87ceeb;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(135, 206, 235, 0.3);
    background: rgba(135, 206, 235, 0.05);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(5px);
}

.nav-item:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-item.active {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.nav-item i {
    font-size: 1.1rem;
}

.nav-item span {
    font-size: 0.8rem;
}

/* Notification Bar - Compact Style */
.notification-bar {
    background: rgba(0, 255, 136, 0.15);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding: 4px 0;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 999;
    animation: slideDown 0.2s ease-out;
    backdrop-filter: blur(5px);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    font-weight: 500;
    font-size: 0.8rem;
    text-align: center;
}

.notification-content i {
    color: #00ff88;
    font-size: 0.7rem;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
        max-height: 0;
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
        max-height: 30px;
    }
}

@keyframes slideUp {
    from { 
        opacity: 1; 
        transform: translateY(0); 
        max-height: 30px;
    }
    to { 
        opacity: 0; 
        transform: translateY(-20px); 
        max-height: 0;
    }
}

/* Control Panel Styles */
.control-panel {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 86, 179, 0.08) 100%);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
    backdrop-filter: blur(10px);
}

.control-panel h4 {
    color: #00bfff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

/* Gradient Buttons */
.btn-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
    transition: all 0.3s ease;
}

.btn-gradient-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.6);
    color: white;
}

/* Neutral Blue Buttons */
.btn-neutral {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8) 0%, rgba(0, 86, 179, 0.6) 100%);
    border: 1px solid rgba(0, 191, 255, 0.5);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-neutral:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 1) 0%, rgba(0, 86, 179, 0.8) 100%);
    border-color: rgba(0, 191, 255, 0.8);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

/* Current Time Badge */
.current-time-badge .badge {
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* LIFE_EXEC Button States */
#lifeExecBtn.life-exec-active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5) !important;
    animation: lifeExecRedPulse 2s infinite !important;
}

#lifeExecBtn.life-exec-active:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border-color: #e74c3c !important;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.7) !important;
    transform: translateY(-2px) !important;
}

@keyframes lifeExecRedPulse {
    0% { 
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.5), 0 0 25px rgba(220, 53, 69, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(220, 53, 69, 0.8), 0 0 35px rgba(220, 53, 69, 0.5);
    }
    100% { 
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.5), 0 0 25px rgba(220, 53, 69, 0.3);
    }
}

/* LIFE_EXEC Button Red Indicator */
.life-exec-button-indicator {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.life-exec-button-indicator.active {
    display: block !important;
}

.life-exec-button-indicator.inactive {
    display: none !important;
}

/* Neon Glow Animations for AI Trading */
@keyframes neonBlueGlow {
    0% { 
        text-shadow: 0 0 20px #00bfff, 0 0 40px #00bfff, 0 0 60px #00bfff, 0 0 80px #00bfff;
        color: #00bfff;
    }
    25% { 
        text-shadow: 0 0 30px #00bfff, 0 0 60px #00bfff, 0 0 90px #00bfff, 0 0 120px #00bfff;
        color: #33ccff;
    }
    50% { 
        text-shadow: 0 0 15px #00bfff, 0 0 30px #00bfff, 0 0 45px #00bfff, 0 0 60px #00bfff;
        color: #66d9ff;
    }
    75% { 
        text-shadow: 0 0 35px #00bfff, 0 0 70px #00bfff, 0 0 105px #00bfff, 0 0 140px #00bfff;
        color: #00d4ff;
    }
    100% { 
        text-shadow: 0 0 25px #00bfff, 0 0 50px #00bfff, 0 0 75px #00bfff, 0 0 100px #00bfff;
        color: #4dd2ff;
    }
}

@keyframes neonGreenGlow {
    0% { 
        text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88, 0 0 60px #00ff88, 0 0 80px #00ff88;
        color: #00ff88;
    }
    25% { 
        text-shadow: 0 0 30px #00ff88, 0 0 60px #00ff88, 0 0 90px #00ff88, 0 0 120px #00ff88;
        color: #33ffaa;
    }
    50% { 
        text-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88, 0 0 45px #00ff88, 0 0 60px #00ff88;
        color: #66ffaa;
    }
    75% { 
        text-shadow: 0 0 35px #00ff88, 0 0 70px #00ff88, 0 0 105px #00ff88, 0 0 140px #00ff88;
        color: #00ffaa;
    }
    100% { 
        text-shadow: 0 0 25px #00ff88, 0 0 50px #00ff88, 0 0 75px #00ff88, 0 0 100px #00ff88;
        color: #4dffaa;
    }
}

@keyframes neonRedGlow {
    0% { 
        text-shadow: 0 0 20px #ff3333, 0 0 40px #ff3333, 0 0 60px #ff3333, 0 0 80px #ff3333;
        color: #ff3333;
    }
    25% { 
        text-shadow: 0 0 30px #ff3333, 0 0 60px #ff3333, 0 0 90px #ff3333, 0 0 120px #ff3333;
        color: #ff5555;
    }
    50% { 
        text-shadow: 0 0 15px #ff3333, 0 0 30px #ff3333, 0 0 45px #ff3333, 0 0 60px #ff3333;
        color: #ff6666;
    }
    75% { 
        text-shadow: 0 0 35px #ff3333, 0 0 70px #ff3333, 0 0 105px #ff3333, 0 0 140px #ff3333;
        color: #ff4444;
    }
    100% { 
        text-shadow: 0 0 25px #ff3333, 0 0 50px #ff3333, 0 0 75px #ff3333, 0 0 100px #ff3333;
        color: #ff7777;
    }
}

/* Header Glow Effects for AI Trading */
.algo-trading-active-green {
    animation: headerGreenFlicker 1.2s ease-in-out infinite !important;
    border-color: rgba(0, 255, 136, 0.8) !important;
    box-shadow: 0 6px 50px rgba(0, 255, 136, 0.6) !important;
}

.algo-trading-active-red {
    animation: headerRedFlicker 1.2s ease-in-out infinite !important;
    border-color: rgba(255, 51, 51, 0.8) !important;
    box-shadow: 0 6px 50px rgba(255, 51, 51, 0.6) !important;
}

@keyframes headerGreenFlicker {
    0% { 
        border-color: rgba(0, 255, 136, 0.4);
        box-shadow: 0 4px 30px rgba(0, 255, 136, 0.3), 0 0 60px rgba(0, 255, 136, 0.2);
    }
    20% { 
        border-color: rgba(0, 255, 136, 1);
        box-shadow: 0 6px 60px rgba(0, 255, 136, 0.8), 0 0 100px rgba(0, 255, 136, 0.5);
    }
    40% { 
        border-color: rgba(0, 255, 136, 0.6);
        box-shadow: 0 4px 40px rgba(0, 255, 136, 0.4), 0 0 80px rgba(0, 255, 136, 0.3);
    }
    60% { 
        border-color: rgba(0, 255, 136, 1);
        box-shadow: 0 8px 80px rgba(0, 255, 136, 0.9), 0 0 120px rgba(0, 255, 136, 0.6);
    }
    80% { 
        border-color: rgba(0, 255, 136, 0.5);
        box-shadow: 0 4px 35px rgba(0, 255, 136, 0.4), 0 0 70px rgba(0, 255, 136, 0.3);
    }
    100% { 
        border-color: rgba(0, 255, 136, 0.9);
        box-shadow: 0 6px 70px rgba(0, 255, 136, 0.7), 0 0 110px rgba(0, 255, 136, 0.5);
    }
}

@keyframes headerRedFlicker {
    0% { 
        border-color: rgba(255, 51, 51, 0.4);
        box-shadow: 0 4px 30px rgba(255, 51, 51, 0.3), 0 0 60px rgba(255, 51, 51, 0.2);
    }
    20% { 
        border-color: rgba(255, 51, 51, 1);
        box-shadow: 0 6px 60px rgba(255, 51, 51, 0.8), 0 0 100px rgba(255, 51, 51, 0.5);
    }
    40% { 
        border-color: rgba(255, 51, 51, 0.6);
        box-shadow: 0 4px 40px rgba(255, 51, 51, 0.4), 0 0 80px rgba(255, 51, 51, 0.3);
    }
    60% { 
        border-color: rgba(255, 51, 51, 1);
        box-shadow: 0 8px 80px rgba(255, 51, 51, 0.9), 0 0 120px rgba(255, 51, 51, 0.6);
    }
    80% { 
        border-color: rgba(255, 51, 51, 0.5);
        box-shadow: 0 4px 35px rgba(255, 51, 51, 0.4), 0 0 70px rgba(255, 51, 51, 0.3);
    }
    100% { 
        border-color: rgba(255, 51, 51, 0.9);
        box-shadow: 0 6px 70px rgba(255, 51, 51, 0.7), 0 0 110px rgba(255, 51, 51, 0.5);
    }
}

/* Selector Groups */
.selector-group .form-select {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.selector-group .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    transform: scale(1.02);
}

.selector-group label {
    color: #00bfff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

.form-select {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.form-select:focus {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 86, 179, 0.1) 100%);
    border-color: rgba(0, 191, 255, 0.6);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.25);
}

.form-select option {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Market Parameters Styles */
.market-params-container {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 86, 179, 0.08) 100%);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
    backdrop-filter: blur(10px);
}

/* Unified Coin Details Panel Styles */
.coin-details-unified {
    position: relative;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 8px;
    margin-bottom: 15px !important;
}

.unified-panel {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(0, 255, 136, 0.03) 100%);
    border: 1px solid rgba(0, 255, 136, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.unified-panel:hover {
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.15);
    transform: translateY(-2px);
}

.coin-logo-section {
    position: relative;
}

.coin-logo-section .coin-logo {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.coin-logo-section .coin-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
}

.param-group {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px;
    border-left: 3px solid rgba(0, 255, 136, 0.4);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 93px;
}

.param-group:hover {
    background: rgba(0, 0, 0, 0.25);
    border-left-color: #00ff88;
    box-shadow: 0 3px 15px rgba(0, 255, 136, 0.1);
}

.group-title {
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 5px;
    margin-bottom: 10px !important;
}

.param-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    margin-bottom: 2px;
}

.param-item:last-child {
    margin-bottom: 0;
}

.param-label {
    color: #adb5bd;
    font-size: 0.8rem;
    font-weight: 500;
    flex: 0 0 auto;
    margin-right: 8px;
}

.param-value {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: right;
    flex: 1;
}

.param-value.fw-bold {
    font-size: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-link {
    color: #17a2b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.social-link:hover {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    transform: translateX(3px);
}

.chart-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.badge.bg-success {
    background: linear-gradient(135deg, #00ff88, #00cc6a) !important;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .param-group {
        min-height: 80px;
        margin-bottom: 15px;
    }
    
    .param-label, .param-value {
        font-size: 0.75rem;
    }
    
    .group-title {
        font-size: 0.85rem;
    }
}

/* Mobile Header Styles - Tablet (768px and below) */
@media (max-width: 768px) {
    .mobile-header {
        height: auto !important;
        min-height: 80px !important;
        padding: 10px 15px !important;
    }
    
    .mobile-header-content {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .mobile-logo-section {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        order: 1 !important;
    }
    
    .mobile-logo-section img {
        width: 60px !important;
        height: 60px !important;
        margin-right: 0 !important;
    }
    
    .mobile-title {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }
    
    .mobile-subtitle {
        font-size: 0.8rem !important;
    }
    
    .mobile-author {
        font-size: 0.6rem !important;
    }
    
    .mobile-status-section {
        display: none !important;
    }
    
    .mobile-nav-section {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        order: 3 !important;
    }
    
    .mobile-nav-btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .mobile-refresh-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    
    /* No additional padding needed for tablet - using margin-top on container */
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .mobile-header {
        min-height: 90px !important;
        padding: 8px 10px !important;
    }
    
    .mobile-header-content {
        gap: 8px !important;
    }
    
    .mobile-logo-section {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .mobile-logo-section img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .mobile-title {
        font-size: 1.3rem !important;
    }
    
    .mobile-subtitle {
        font-size: 0.7rem !important;
    }
    
    .mobile-author {
        font-size: 0.55rem !important;
    }
    
    .mobile-status-section {
        display: none !important;
    }
    
    .mobile-nav-section {
        width: 100% !important;
        gap: 6px !important;
    }
    
    .mobile-nav-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        flex: 1 !important;
        min-width: 70px !important;
        max-width: 100px !important;
    }
    
    .mobile-refresh-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }
    
    /* No additional padding needed for mobile - using margin-top on container */
}

/* MARKET PAGE MOBILE NAVIGATION FIXES */
/* Tablet (768px and below) - Navigation Panel Positioning */
@media (max-width: 768px) {
    /* Quick Navigation Menu - increase top offset */
    div[style*="position: fixed; top: 133px"] {
        top: 150px !important; /* Увеличен отступ от заголовка с 133px до 150px */
    }
    
    /* Adjust body margin to account for increased navigation height */
    body {
        margin-top: 193px !important; /* Увеличен общий отступ для учета новой позиции навигации */
    }
}

/* Mobile (480px and below) - Navigation Panel Positioning */
@media (max-width: 480px) {
    /* Quick Navigation Menu - further increase top offset for mobile */
    div[style*="position: fixed; top: 133px"],
    div[style*="position: fixed; top: 150px"] {
        top: 160px !important; /* Дополнительный отступ для мобильных устройств */
        height: 50px !important; /* Увеличена высота для лучшего отображения кнопок */
        padding: 0 15px !important; /* Уменьшены боковые отступы */
    }
    
    /* Adjust button sizes and spacing for mobile */
    div[style*="position: fixed; top: 133px"] .btn,
    div[style*="position: fixed; top: 150px"] .btn,
    div[style*="position: fixed; top: 160px"] .btn,
    div[style*="position: fixed; top: 133px"] button,
    div[style*="position: fixed; top: 150px"] button,
    div[style*="position: fixed; top: 160px"] button {
        padding: 8px 10px !important;
        font-size: 0.7rem !important;
        margin: 0 2px !important;
    }
    
    /* Adjust body margin for mobile navigation */
    body {
        margin-top: 213px !important; /* Увеличен отступ body для мобильных */
    }
}

.param-category {
    margin-bottom: 2.0rem;
}

.category-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    display: flex;
    align-items: center;
}

.category-title i {
    color: #4CAF50;
}

.market-params-container h4 {
    color: #00ff88;
    padding-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    font-weight: 600;
    margin-bottom: 10px;
}

.category-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.category-title i {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.market-params-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 0;
    align-items: center;
}

.param-card {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 140px;
    flex-shrink: 0;
}

.param-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.15);
    transform: translateY(-1px);
}

.param-name {
    font-size: 0.75rem;
    color: #00bfff;
    margin-bottom: 4px;
    text-transform: capitalize;
    font-weight: 500;
    line-height: 1.0;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.param-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.param-value .value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.0;
}

.param-value .rating {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 3px;
}

.param-value .rating.positive {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.15);
}

.param-value .rating.negative {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.15);
}

.param-main-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #ffffff;
    text-shadow: none;
}

.param-main-value.positive {
    color: #00ff88;
    text-shadow: none;
}

.param-main-value.negative {
    color: #ff4757;
    text-shadow: none;
}

.param-main-value.neutral {
    color: #ffffff;
    text-shadow: none;
}

.param-unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: #adb5bd;
    margin-left: 2px;
}

.param-bottom-row {
    display: flex;
    justify-content: flex-end;
}

.param-rating {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-shadow: none;
}

.param-rating.positive {
    color: #ffffff;
    background-color: rgba(0, 255, 136, 0.8);
}

.param-rating.negative {
    color: #ffffff;
    background-color: rgba(255, 71, 87, 0.8);
}

.param-rating.critical {
    color: #ffffff !important;
    background-color: rgba(255, 71, 87, 0.9) !important;
    animation: criticalRatingBlink 1.5s ease-in-out infinite !important;
    font-weight: bold !important;
    border: 1px solid #ff4757 !important;
}

/* Critical Rating Neon Blink Animation */
@keyframes criticalRatingBlink {
    0% {
        background-color: rgba(255, 71, 87, 0.9) !important;
        box-shadow: 
            0 0 5px rgba(255, 71, 87, 0.8),
            0 0 10px rgba(255, 71, 87, 0.6),
            0 0 15px rgba(255, 71, 87, 0.4);
        color: #ffffff !important;
    }
    50% {
        background-color: rgba(255, 20, 20, 1) !important;
        box-shadow: 
            0 0 10px rgba(255, 20, 20, 1),
            0 0 20px rgba(255, 20, 20, 0.8),
            0 0 30px rgba(255, 20, 20, 0.6),
            0 0 40px rgba(255, 20, 20, 0.4);
        color: #ffffff !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    }
    100% {
        background-color: rgba(255, 71, 87, 0.9) !important;
        box-shadow: 
            0 0 5px rgba(255, 71, 87, 0.8),
            0 0 10px rgba(255, 71, 87, 0.6),
            0 0 15px rgba(255, 71, 87, 0.4);
        color: #ffffff !important;
    }
}

.param-rating.neutral {
    color: #000000;
    background-color: rgba(173, 181, 189, 0.8);
}

/* New color classes for CoinMarketCap parameters */
.param-blue {
    color: #17a2b8 !important;
    font-weight: 600;
}

.param-positive {
    color: #00ff88 !important;
    font-weight: 600;
}

.param-negative {
    color: #ff4757 !important;
    font-weight: 600;
}

/* Volatility Blue Rating for all volatility parameters */
.param-rating.volatility-blue {
    color: #ffffff !important;
    background-color: #00bfff !important;
    font-weight: 600 !important;
    text-shadow: 0 0 6px rgba(0, 191, 255, 0.8) !important;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.4) !important;
    border: 1px solid rgba(0, 191, 255, 0.6) !important;
    border-radius: 6px !important;
}

.price-yellow {
    color: #ffd700 !important;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.param-purple {
    color: #9370db !important;
    font-weight: 500;
}

/* CMC Rank Badge with neon styling */
.cmc-rank-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    border: 1px solid #00ff88;
    border-radius: 8px;
    color: #00ff88;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.4),
        inset 0 0 10px rgba(0, 255, 136, 0.1);
}

/* Mobile optimization for Market Parameters */
@media (max-width: 768px) {
    .market-params-container {
        padding: 1rem !important;
    }
    
    .param-category {
        margin-bottom: 1.5rem !important;
    }
    
    .category-layout.d-flex.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .category-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        width: 100%;
        text-align: center;
    }
    
    .market-params-grid {
        gap: 8px !important;
        justify-content: center !important;
        width: 100%;
    }
    
    .param-card {
        min-width: 150px !important;
        max-width: 210px !important;
        height: 120px !important;
        min-height: 120px !important;
        padding: 12px 15px !important;
        flex: 1 1 calc(50% - 4px);
    }
    
    .param-name {
        font-size: 0.55rem !important;
        margin-bottom: 1px !important;
        line-height: 1.0 !important;
    }
    
    .param-value .value {
        font-size: 0.9rem !important;
        line-height: 1.0 !important;
    }
    
    .param-value .rating {
        font-size: 0.6rem !important;
        padding: 1px 2px !important;
    }
}

@media (max-width: 480px) {
    .market-params-container {
        padding: 0.5rem !important;
    }
    
    .param-category {
        margin-bottom: 1rem !important;
    }
    
    .category-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .market-params-grid {
        gap: 5px !important;
    }
    
    .param-card {
        min-width: 135px !important;
        max-width: 195px !important;
        height: 113px !important;
        min-height: 113px !important;
        padding: 11px 14px !important;
        flex: 1 1 calc(50% - 2.5px);
    }
    
    .param-name {
        font-size: 0.4rem !important;
        margin-bottom: 1px !important;
        line-height: 0.85 !important;
    }
    
    .param-value .value {
        font-size: 0.7rem !important;
        line-height: 0.85 !important;
    }
    
    .param-value .rating {
        font-size: 0.55rem !important;
        padding: 1px 2px !important;
    }
}



/* Coin Parameters (CoinMarketCap) Section - Enhanced Readability & Mobile Optimization */
.coin-details-unified {
    background: linear-gradient(135deg, rgba(40, 44, 52, 0.95) 0%, rgba(33, 37, 43, 0.98) 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 191, 255, 0.15);
    backdrop-filter: blur(10px);
}

.coin-details-unified .section-title {
    color: #00bfff !important;
    text-shadow: 0 0 12px rgba(0, 191, 255, 0.6);
    font-weight: 600;
    font-size: 1.2rem;
}

.coin-details-unified .unified-panel {
    background: linear-gradient(135deg, rgba(45, 52, 60, 0.8) 0%, rgba(38, 44, 52, 0.9) 100%);
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 8px;
}

.coin-header-card {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.08) 0%, rgba(0, 123, 255, 0.12) 100%) !important;
    border: 1px solid rgba(0, 191, 255, 0.3) !important;
    border-radius: 8px !important;
}

.cmc-rank-badge {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 123, 255, 0.3) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 191, 255, 0.4);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

.price-yellow {
    color: #ffd700 !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    font-weight: 700;
}

.param-positive {
    color: #00ff88 !important;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.param-negative {
    color: #ff6b6b !important;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

/* Mobile Responsive Design for Coin Parameters Section */
@media (max-width: 768px) {
    .coin-details-unified {
        margin: 10px 0;
        padding: 15px;
        border-radius: 10px;
    }
    
    .coin-details-unified .section-title {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
        text-align: left !important;
    }
    
    .coin-details-unified .unified-panel {
        padding: 15px !important;
        border-radius: 8px;
    }
    
    .coin-header-card {
        padding: 15px !important;
        border-radius: 8px !important;
    }
    
    /* Mobile: Left-aligned layout */
    .coin-header-card .d-flex {
        flex-direction: row !important;
        text-align: left !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .coin-logo-wrapper {
        text-align: left !important;
        flex-shrink: 0;
    }
    
    .coin-logo-wrapper img {
        width: 50px !important;
        height: 50px !important;
        border: 2px solid #00bfff !important;
    }
    
    .coin-main-info {
        flex-grow: 1 !important;
        text-align: left !important;
    }
    
    .coin-main-info h4 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
        color: #ffffff !important;
        text-align: left !important;
    }
    
    .coin-main-info .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .cmc-rank-badge {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        align-self: flex-start !important;
    }
    
    .price-display {
        text-align: left !important;
    }
    
    .price-display .price-yellow {
        font-size: 1.3rem !important;
    }
    
    .price-display .fs-5 {
        font-size: 1rem !important;
    }
    
    /* Parameter rows responsive design */
    .coin-details-unified .row {
        margin-bottom: 15px !important;
    }
    
    .coin-details-unified .col-md-6,
    .coin-details-unified .col-md-4,
    .coin-details-unified .col-md-3 {
        margin-bottom: 12px;
        text-align: left !important;
    }
    
    /* Parameter values styling */
    .coin-details-unified .param-value {
        font-size: 0.95rem !important;
        color: #00bfff !important;
        font-weight: 600;
        text-shadow: 0 0 8px rgba(0, 191, 255, 0.3);
    }
    
    .coin-details-unified .param-label {
        font-size: 0.8rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        margin-bottom: 4px !important;
        display: block;
    }
    
    /* Resource links mobile styling */
    .coin-details-unified .resource-links a {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 123, 255, 0.1) 100%) !important;
        border: 1px solid rgba(0, 191, 255, 0.3) !important;
        color: #00bfff !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        display: block !important;
        text-align: left !important;
        transition: all 0.3s ease !important;
    }
    
    .coin-details-unified .resource-links a:hover {
        background: linear-gradient(135deg, rgba(0, 191, 255, 0.25) 0%, rgba(0, 123, 255, 0.2) 100%) !important;
        box-shadow: 0 0 12px rgba(0, 191, 255, 0.4) !important;
        transform: translateY(-2px) !important;
    }
}

@media (max-width: 480px) {
    .coin-details-unified {
        margin: 8px 0;
        padding: 12px;
        border-radius: 8px;
    }
    
    .coin-details-unified .section-title {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
        text-align: left !important;
    }
    
    .coin-details-unified .unified-panel {
        padding: 12px !important;
    }
    
    .coin-header-card {
        padding: 12px !important;
    }
    
    /* Mobile small: Maintain left alignment */
    .coin-header-card .d-flex {
        flex-direction: row !important;
        text-align: left !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .coin-logo-wrapper img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .coin-main-info h4 {
        font-size: 1.1rem !important;
        text-align: left !important;
    }
    
    .cmc-rank-badge {
        font-size: 0.7rem !important;
        padding: 3px 6px !important;
    }
    
    .price-display .price-yellow {
        font-size: 1.2rem !important;
    }
    
    .price-display .fs-5 {
        font-size: 0.9rem !important;
    }
    
    .coin-details-unified .param-value {
        font-size: 0.9rem !important;
    }
    
    .coin-details-unified .param-label {
        font-size: 0.75rem !important;
    }
    
    .coin-details-unified .resource-links a {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* Stack columns on very small screens */
    .coin-details-unified .col-md-6,
    .coin-details-unified .col-md-4,
    .coin-details-unified .col-md-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: left !important;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 360px) {
    .coin-details-unified {
        margin: 6px 0;
        padding: 10px;
        border-radius: 6px;
    }
    
    .coin-details-unified .section-title {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
    }
    
    .coin-details-unified .unified-panel {
        padding: 10px !important;
    }
    
    .coin-header-card {
        padding: 10px !important;
    }
    
    .coin-header-card .d-flex {
        gap: 10px !important;
    }
    
    .coin-logo-wrapper img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .coin-main-info h4 {
        font-size: 1rem !important;
    }
    
    .cmc-rank-badge {
        font-size: 0.65rem !important;
        padding: 2px 5px !important;
    }
    
    .price-display .price-yellow {
        font-size: 1.1rem !important;
    }
    
    .price-display .fs-5 {
        font-size: 0.85rem !important;
    }
    
    .coin-details-unified .param-value {
        font-size: 0.85rem !important;
    }
    
    .coin-details-unified .param-label {
        font-size: 0.7rem !important;
    }
    
    .coin-details-unified .resource-links a {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .market-params-container {
        padding: 0.25rem !important;
    }
    
    .param-card {
        min-width: 120px !important;
        max-width: 165px !important;
        height: 98px !important;
        min-height: 98px !important;
        padding: 8px 11px !important;
        flex: 1 1 calc(50% - 1px);
    }
    
    .param-name {
        font-size: 0.35rem !important;
        line-height: 0.8 !important;
        margin-bottom: 0px !important;
    }
    
    .param-value .value {
        font-size: 0.6rem !important;
        line-height: 0.8 !important;
    }
    
    .category-title {
        font-size: 0.7rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .param-value .rating {
        font-size: 0.4rem !important;
        padding: 0px 1px !important;
    }
    
    .market-params-grid {
        gap: 3px !important;
    }
}

@keyframes neonPulse {
    0% {
        box-shadow: 
            0 0 10px rgba(0, 255, 136, 0.4),
            inset 0 0 10px rgba(0, 255, 136, 0.1);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(0, 255, 136, 0.6),
            inset 0 0 15px rgba(0, 255, 136, 0.2);
    }
}

.param-main-value.positive {
    color: var(--success-color);
}

.param-main-value.negative {
    color: var(--danger-color);
}

.param-main-value.neutral {
    color: var(--text-primary);
}

.param-unit {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.param-rating {
    background-color: var(--bg-primary);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    width: fit-content;
    margin-left: auto;
}

.param-rating.positive {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.param-rating.negative {
    background-color: rgba(220, 53, 69, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.param-rating.neutral {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.param-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.param-rating-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

/* Filters Styles */
.filters-container {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 86, 179, 0.08) 100%);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
    backdrop-filter: blur(10px);
}

.filter-label {
    color: #00ffff;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.filter-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.filter-input {
    background: #2d2d2d;
    border: 1px solid #28a745;
    color: #28a745;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.85em;
    flex: 1;
    font-weight: bold;
}

.filter-input:not(:placeholder-shown) {
    color: #ffff00 !important;
    font-weight: bold;
}

.filter-input::placeholder {
    color: #28a745;
    font-weight: bold;
}

.filter-input:focus {
    background: #3a3a3a;
    border-color: #00ffff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    outline: none;
}

.filter-separator {
    color: #666;
    font-weight: bold;
    min-width: 10px;
    text-align: center;
}

.filter-status {
    color: #00ffff;
    font-size: 0.9em;
    font-style: italic;
}

.filter-slider-container {
    margin-top: 5px;
}

.dual-range-slider {
    position: relative;
    width: 100%;
    height: 20px;
    margin: 10px 0;
}

.dual-range-slider .slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.dual-range-slider .slider-range {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffb700);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Yellow colors for all filter types */
.filter-growth5h .dual-range-slider .slider-range,
.filter-growth1h .dual-range-slider .slider-range,
.filter-turnover .dual-range-slider .slider-range,
.filter-volatility .dual-range-slider .slider-range {
    background: linear-gradient(90deg, #ffd700, #ffb700);
}

.filter-growth5h .dual-range-slider input[type="range"]::-webkit-slider-thumb,
.filter-growth1h .dual-range-slider input[type="range"]::-webkit-slider-thumb,
.filter-turnover .dual-range-slider input[type="range"]::-webkit-slider-thumb,
.filter-volatility .dual-range-slider input[type="range"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.filter-growth5h .dual-range-slider .range-max::-webkit-slider-thumb,
.filter-growth1h .dual-range-slider .range-max::-webkit-slider-thumb,
.filter-turnover .dual-range-slider .range-max::-webkit-slider-thumb,
.filter-volatility .dual-range-slider .range-max::-webkit-slider-thumb {
    background: linear-gradient(135deg, #ffeb3b, #ffd700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.filter-growth5h .dual-range-slider input[type="range"]::-moz-range-thumb,
.filter-growth1h .dual-range-slider input[type="range"]::-moz-range-thumb,
.filter-turnover .dual-range-slider input[type="range"]::-moz-range-thumb,
.filter-volatility .dual-range-slider input[type="range"]::-moz-range-thumb {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.filter-growth5h .dual-range-slider .range-max::-moz-range-thumb,
.filter-growth1h .dual-range-slider .range-max::-moz-range-thumb,
.filter-turnover .dual-range-slider .range-max::-moz-range-thumb,
.filter-volatility .dual-range-slider .range-max::-moz-range-thumb {
    background: linear-gradient(135deg, #ffeb3b, #ffd700);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dual-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 20px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    cursor: pointer;
    border: 2px solid #1a1a1a;
    pointer-events: all;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Order Book Table Header Styling */
.order-book-header th {
    background-color: var(--blue-header) !important;
    color: #000 !important;
    font-weight: bold !important;
    text-shadow: none !important;
    border-bottom: 2px solid #0099cc !important;
}

.order-book-header tr {
    background-color: var(--blue-header) !important;
}

/* Order Book Table Data Styling */
/* Set font size for all Order Book table cells to 12px (unified) */
#orderBookTable td,
#orderBookTable th {
    font-size: 12px !important;
}

/* Order Book Table Column Width Adjustments */
/* Narrow the ID column (first column) */
#orderBookTable td:first-child,
#orderBookTable th:first-child {
    width: 60px !important;
    max-width: 60px !important;
    min-width: 60px !important;
    text-align: center !important;
    padding: 4px 2px !important;
}

/* Expand the Symbol column (second column) */
#orderBookTable td:nth-child(2),
#orderBookTable th:nth-child(2) {
    width: 140px !important;
    max-width: 140px !important;
    min-width: 140px !important;
    padding: 8px 12px !important;
}

/* Ensure symbol text in coin-symbol class is properly aligned */
#orderBookTable .coin-symbol {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#orderBookTable .coin-symbol .crypto-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

#orderBookTable .coin-symbol .symbol-name {
    flex: 1 !important;
    font-weight: bold !important;
}

/* Style for date columns (Time Open, Time Close) - unified 12px font */
.order-book-time-open,
.order-book-time-close {
    color: #00bfff !important;
    font-size: 12px !important;
}

/* Position Type and Order State columns styling */
#orderBookTable .position-type-cell,
#orderBookTable .order-state-cell {
    font-weight: bold !important;
    border: 1px solid #4a9eff !important;
    border-radius: 3px !important;
    padding: 4px 8px !important;
    background-color: rgba(74, 158, 255, 0.1) !important;
}

/* Additional styling for the spans inside position type cells */
#orderBookTable .position-type-cell span {
    font-weight: bold !important;
}

/* Order State color coding */
.order-book-state-closed {
    color: #28a745 !important; /* Green for closed */
    font-weight: bold !important;
}

.order-book-state-open {
    color: #dc3545 !important; /* Red for open */
    font-weight: bold !important;
}

/* Order State Ex color coding */
.order-state-ex-unknown {
    color: #ff4444 !important; /* Red for unknown */
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.order-state-ex-closed {
    color: #00bfff !important; /* Light blue for closed */
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

.order-state-ex-opened {
    color: #ffd700 !important; /* Yellow for opened */
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* P&L and Reason Closed columns styling */
#orderBookTable .pnl-cell,
#orderBookTable .reason-closed-cell {
    font-weight: bold !important;
    border: 1px solid #ffc107 !important;
    border-radius: 3px !important;
    padding: 4px 8px !important;
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.order-book-state-closed {
    color: #00bfff !important;
}

.order-book-state-open {
    color: #ffd700 !important;
}

.order-book-reason-tp {
    color: #00ff88 !important;
    text-shadow: 0 0 10px #00ff88 !important;
}

.order-book-reason-sl {
    color: #ff4444 !important;
}

.order-book-reason-manual {
    color: #ffd700 !important;
}

.order-book-take-profit {
    color: #40e0d0 !important; /* Light turquoise */
}

.order-book-stop-loss {
    color: #9370db !important; /* Purple */
}

/* Market Volatility Parameters - Blue Values */
#marketVolatilityGrid .param-main-value {
    color: #4a9eff !important;
    font-weight: 600 !important;
}

/* Trading Panel Styles */
.trading-panel {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 86, 179, 0.08) 100%);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
    backdrop-filter: blur(10px);
}

.trading-buttons .trading-btn {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.trading-buttons .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.trading-buttons .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.trading-buttons .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.trading-buttons .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.trading-params .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.trading-params .form-select {
    border: 1px solid rgba(0, 255, 136, 0.3);
    background-color: #1a1a1a;
    color: #ffffff;
}

.trading-params .form-select:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
}

/* Trading Coin Info Styles */
.trading-coin-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.trading-coin-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.trading-coin-details h5 {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
}

.trading-coin-price {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.price-change {
    font-weight: 600;
}

/* Trade Notification Styles */
.trade-notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.trade-notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.trade-notification-title {
    font-weight: bold;
    font-size: 1.1em;
}

.trade-notification-details {
    line-height: 1.4;
}

.trade-notification-details div {
    margin: 4px 0;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, #ffeb3b, #ffd700);
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    cursor: pointer;
    border: 2px solid #1a1a1a;
    pointer-events: all;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dual-range-slider input[type="range"]::-moz-range-thumb:hover {
    background: linear-gradient(135deg, #ffeb3b, #ffd700);
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.dual-range-slider input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

.dual-range-slider .range-max::-webkit-slider-thumb {
    background: linear-gradient(135deg, #ffeb3b, #ffd700);
}

.dual-range-slider .range-max::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, #fff176, #ffeb3b);
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.dual-range-slider .range-max::-moz-range-thumb {
    background: linear-gradient(135deg, #ffeb3b, #ffd700);
}

.dual-range-slider .range-max::-moz-range-thumb:hover {
    background: linear-gradient(135deg, #fff176, #ffeb3b);
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Exchange Selector with SVG Icons */
.exchange-selector {
    position: relative;
}

.exchange-selector option {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    padding-left: 30px !important;
}

.exchange-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 10;
}

/* Custom select styling for better icon display */
.exchange-selector-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.exchange-selector-wrapper::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('/static/images/demo.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: none;
}

/* Row Actuality Styles */
.row-actual {
    border-left: 5px solid #00ff88 !important;
    background-color: rgba(0, 255, 136, 0.1) !important;
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.15) !important;
}

.row-outdated {
    border-left: 5px solid #ff4444 !important;
    background-color: rgba(255, 68, 68, 0.1) !important;
    opacity: 0.6;
    box-shadow: inset 0 0 10px rgba(255, 68, 68, 0.15) !important;
}

.exchange-selector-wrapper.bybit::before {
    background-image: url('/static/images/bybit.svg');
}

.exchange-selector-wrapper.okx::before {
    background-image: url('/static/images/okx.svg');
}

.exchange-selector-wrapper.moex::before {
    background-image: url('/static/images/moex.svg');
}

.exchange-selector-wrapper.demo::before {
    background-image: url('/static/images/demo.svg');
}

.exchange-selector-wrapper select {
    padding-left: 35px !important;
}

/* Trading Section Styles */
.trading-container {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 86, 179, 0.08) 100%);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
    backdrop-filter: blur(10px);
}

.trading-container h4 {
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.trading-container h5 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.pnl-section {
    text-align: right;
}

.pnl-value {
    font-size: 14px !important;
    font-weight: bold;
    color: #28a745;
}

.pnl-value.negative {
    color: #dc3545;
}

.position-long {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.position-short {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.trade-btn {
    padding: 2px 8px;
    font-size: 0.8em;
    border-radius: 4px;
}

.trade-btn.added {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.trade-btn.available {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

#orderBookTable {
    font-size: 12px;
}

#orderBookTable th {
    padding: 0.5rem 0.3rem;
    font-size: 12px;
}

#orderBookTable td {
    padding: 0.5rem 0.3rem;
    font-size: 12px;
}

#orderBookTable td.time-column {
    font-size: 9px;
}

/* Enhanced styling for Change and P&L columns */
#orderBookTable td.change-cell,
#orderBookTable td.pnl-cell {
    font-size: 12px !important;
    font-weight: bold !important;
}

#orderBookTable .positive-value {
    color: #00ff41 !important;
}

#orderBookTable .negative-value {
    color: #ff0036 !important;
}

/* Table Styles */
.coins-table-container {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 86, 179, 0.08) 100%);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
    backdrop-filter: blur(10px);
}



.table-responsive {
    border-radius: 4px;
}

.table thead th {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}



.coins-table-container h4 {
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.table-dark {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.table-dark th {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

.table-dark td {
    border-color: var(--border-color) !important;
    vertical-align: middle !important;
    height: 50px;
    line-height: 1.2;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-striped > tbody > tr:hover {
    background-color: rgba(74, 158, 255, 0.1);
    cursor: pointer;
}

/* Coin Details Section Adaptive Styling */
.coin-header-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.coin-logo-wrapper img {
    transition: transform 0.3s ease;
}

.coin-logo-wrapper img:hover {
    transform: scale(1.05);
}

/* Удален конфликтующий стиль .param-card с min-height: 200px */

.param-row {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.param-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.param-value {
    color: #ffffff;
    font-size: 0.95rem;
}

.social-links-grid .social-link-card {
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-links-grid .social-link-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    color: #00bfff;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .coin-header-card {
        padding: 1.5rem !important;
    }
    
    .coin-header-card .d-flex {
        text-align: center;
    }
    
    .coin-main-info h4 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .price-display .fs-4 {
        font-size: 1.3rem !important;
    }
    
    .price-display .fs-5 {
        font-size: 1.1rem !important;
    }
    
    .param-card {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .param-row {
        padding: 6px 0;
    }
    
    .param-label {
        font-size: 0.85rem;
    }
    
    .param-value {
        font-size: 0.9rem;
    }
    
    .social-links-grid .social-link-card {
        padding: 0.7rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .coin-header-card {
        padding: 1rem !important;
    }
    
    .coin-logo-wrapper img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .coin-main-info h4 {
        font-size: 1.2rem;
    }
    
    .price-display .fs-4 {
        font-size: 1.1rem !important;
    }
    
    .price-display .fs-5 {
        font-size: 1rem !important;
    }
    
    .param-card {
        padding: 1rem !important;
    }
    
    .group-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem !important;
    }
    
    .param-label {
        font-size: 0.8rem;
    }
    
    .param-value {
        font-size: 0.85rem;
    }
    
    .social-links-grid .social-link-card {
        padding: 0.5rem !important;
        font-size: 0.85rem;
        margin-bottom: 0.5rem !important;
    }
}

/* Growth value colors */
.table .growth-positive {
    color: var(--success-color) !important;
    font-weight: 600;
}

.table .growth-negative {
    color: var(--danger-color) !important;
    font-weight: 600;
}

.table .growth-neutral {
    color: var(--text-secondary) !important;
}

/* Info value colors (Volume, Turnover, Index Volume, Index Volatility) */
.table .info-value {
    color: var(--accent-primary) !important;
    font-weight: 500;
}

/* Index volatility and trend value colors */
.table .ivolatility-value {
    color: #ffd700 !important;
    font-weight: 500;
}

.table .trend-value {
    color: #ff6b35 !important;
    font-weight: 500;
}

/* Coin symbol styling */
.table .coin-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
    border-color: var(--border-color) !important;
    vertical-align: middle !important;
    height: 50px;
    min-height: 50px;
    box-sizing: border-box;
}

.crypto-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.table .symbol-name {
    color: var(--warning-color) !important;
    font-weight: 700;
}

/* Trade Button Styles */
.trade-btn.added {
    background-color: var(--danger-color) !important;
    border-color: var(--danger-color) !important;
    color: white !important;
}

.trade-btn.added:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.trade-btn.available {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
}

.trade-btn.available:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Chart Container */
.chart-container {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 86, 179, 0.08) 100%);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.25);
    backdrop-filter: blur(10px);
}

/* Market Volatility Chart - Expanded Working Area */
.chart-container.market-volatility {
    padding: 15px 5px 10px 10px !important; /* Reduced right padding to eliminate empty space */
}

.chart-container.market-volatility .chart-wrapper {
    margin: 0 !important; /* Remove any wrapper margins */
    padding: 0 !important; /* Remove any wrapper padding */
}

.chart-container.market-volatility .d-flex.justify-content-between.align-items-center.mb-3 {
    margin-bottom: 8px !important; /* Reduce header margin */
}

.chart-container.market-volatility h4 {
    margin-bottom: 0 !important; /* Remove title bottom margin */
    padding-bottom: 5px !important; /* Reduce title bottom padding */
}

/* Expand canvas to use maximum available space */
.chart-container.market-volatility #marketChart {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Force chart wrapper to use full width with minimal right margin */
.chart-container.market-volatility .chart-wrapper {
    margin-right: 0 !important;
    padding-right: 0 !important;
    width: calc(100% + 5px) !important; /* Extend slightly to eliminate right empty space */
}

.chart-container h4 {
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.chart-wrapper {
    position: relative;
    height: 800px;
    width: 100%;
}

/* Market Volatility Chart - Optimized Height */
.chart-container.market-volatility .chart-wrapper {
    height: 750px !important; /* Reduced height for more compact display */
}

#marketChart {
    background-color: transparent;
    border-radius: 4px;
}

/* Modal Styles */
.modal-content {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--accent-primary);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.coin-param {
    margin-bottom: 10px;
    padding: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    border-left: 3px solid var(--accent-primary);
}

.coin-param strong {
    color: var(--text-primary);
}

.text-info {
    color: var(--accent-secondary) !important;
}

.text-info:hover {
    color: #00b894 !important;
    text-decoration: underline;
}

.btn-outline-light {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline-light:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .control-panel .row > div {
        margin-bottom: 15px;
    }
    
    .btn {
        margin-bottom: 5px !important;
        width: 100%;
    }
    
    .interval-selector {
        margin-top: 10px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .chart-wrapper {
        height: 300px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Table Sorting Styles */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: rgba(74, 158, 255, 0.2) !important;
}

.sort-indicator {
    margin-left: 8px;
    font-size: 0.8em;
    opacity: 0.5;
}

.sort-indicator::after {
    content: "↕";
}

.sortable.sort-asc .sort-indicator::after {
    content: "↑";
    opacity: 1;
    color: var(--accent-primary);
}

.sortable.sort-desc .sort-indicator::after {
    content: "↓";
    opacity: 1;
    color: var(--accent-primary);
}

/* Custom Header Tooltips for Changing Coins Table */
.header-tooltip {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(5px);
}

.header-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.header-tooltip-content {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.98) 0%, rgba(0, 50, 100, 0.98) 100%);
    border: 2px solid rgba(0, 191, 255, 0.6);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 191, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 320px;
    min-width: 200px;
}

.header-tooltip-title {
    color: #00ffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    padding-bottom: 8px;
}

.header-tooltip-title i {
    color: #ffd700;
    font-size: 1rem;
}

.header-tooltip-description {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.header-tooltip-description strong {
    color: #00bfff;
}

.header-tooltip-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 191, 255, 0.6);
}

.header-tooltip-arrow::after {
    content: '';
    position: absolute;
    top: 2px;
    left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(0, 30, 60, 0.98);
}

/* =====================================================
   Filter & Column Settings Tooltips
   ===================================================== */

/* Info icon styling for filters and column settings */
.filter-tooltip-icon {
    color: rgba(0, 191, 255, 0.6);
    font-size: 0.75rem;
    margin-left: 4px;
    cursor: help;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.filter-tooltip-icon:hover {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Filter settings tooltip container */
.filter-settings-tooltip {
    position: fixed;
    z-index: 10002;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.filter-settings-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* Tooltip content wrapper */
.filter-tooltip-content {
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.98) 0%, rgba(0, 60, 120, 0.98) 100%);
    border: 2px solid rgba(0, 255, 136, 0.6);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    max-width: 320px;
    min-width: 200px;
    position: relative;
}

/* Tooltip title */
.filter-tooltip-title {
    color: #00ff88;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 8px;
}

.filter-tooltip-title i {
    color: #ffd700;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Tooltip description */
.filter-tooltip-description {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.filter-tooltip-description strong {
    color: #00ff88;
}

/* Tooltip arrow (pointing down by default - tooltip above element) */
.filter-tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 255, 136, 0.6);
}

.filter-tooltip-arrow::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(0, 40, 80, 0.98);
}

/* Arrow pointing up (when tooltip is below element) */
.filter-tooltip-arrow.arrow-top {
    bottom: auto;
    top: -8px;
    border-top: none;
    border-bottom: 8px solid rgba(0, 255, 136, 0.6);
}

.filter-tooltip-arrow.arrow-top::after {
    bottom: auto;
    top: 2px;
    border-top: none;
    border-bottom: 7px solid rgba(0, 40, 80, 0.98);
}

/* Coin Details Styles */
.coin-details-row {
    background: linear-gradient(135deg, 
        rgba(6, 33, 74, 0.95) 0%, 
        rgba(12, 44, 97, 0.95) 25%, 
        rgba(15, 52, 119, 0.95) 50%, 
        rgba(18, 60, 142, 0.95) 75%, 
        rgba(21, 67, 165, 0.95) 100%) !important;
    border: 2px solid rgba(0, 123, 255, 0.4);
    box-shadow: 
        0 4px 20px rgba(0, 123, 255, 0.3),
        0 8px 40px rgba(0, 123, 255, 0.2),
        inset 0 2px 10px rgba(0, 191, 255, 0.1);
    animation: expandedRowGlow 3s ease-in-out infinite alternate;
}

@keyframes expandedRowGlow {
    from {
        border-color: rgba(0, 123, 255, 0.4);
        box-shadow: 
            0 4px 20px rgba(0, 123, 255, 0.3),
            0 8px 40px rgba(0, 123, 255, 0.2),
            inset 0 2px 10px rgba(0, 191, 255, 0.1);
    }
    to {
        border-color: rgba(0, 191, 255, 0.6);
        box-shadow: 
            0 6px 30px rgba(0, 123, 255, 0.5),
            0 12px 60px rgba(0, 123, 255, 0.3),
            inset 0 3px 15px rgba(0, 191, 255, 0.2);
    }
}

.coin-details-container {
    padding: 25px !important;
    background: linear-gradient(135deg, 
        rgba(6, 33, 74, 0.98) 0%, 
        rgba(12, 44, 97, 0.98) 25%, 
        rgba(15, 52, 119, 0.98) 50%, 
        rgba(18, 60, 142, 0.98) 75%, 
        rgba(21, 67, 165, 0.98) 100%);
    border: 3px solid rgba(0, 191, 255, 0.5);
    border-radius: 12px;
    box-shadow: 
        0 6px 30px rgba(0, 123, 255, 0.4),
        0 12px 60px rgba(0, 123, 255, 0.2),
        inset 0 3px 15px rgba(0, 191, 255, 0.15);
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin: 0 -20px !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.coin-details-content {
    background: linear-gradient(135deg, 
        rgba(3, 21, 48, 0.95) 0%, 
        rgba(8, 31, 66, 0.95) 25%, 
        rgba(13, 41, 84, 0.95) 50%, 
        rgba(18, 51, 102, 0.95) 75%, 
        rgba(23, 61, 120, 0.95) 100%);
    border-radius: 8px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    padding: 25px;
    box-shadow: 
        0 4px 20px rgba(0, 123, 255, 0.25),
        inset 0 2px 10px rgba(0, 191, 255, 0.1);
}

.details-section {
    margin-bottom: 20px;
}

.details-section h6 {
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Прозрачные секции для Coin Parameters и Coin Data */
.details-section h6.section-title.text-warning,
.details-section h6.section-title.text-info {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 6px;
    padding: 8px 15px;
    margin-bottom: 15px;
}

/* Прозрачный фон для таблицы данных монеты */
.details-section .table-responsive {
    background: rgba(6, 33, 74, 0.3) !important;
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.details-section .table.table-dark {
    background: transparent !important;
    backdrop-filter: blur(5px);
}

.details-section .table.table-dark th,
.details-section .table.table-dark td {
    background: rgba(6, 33, 74, 0.2) !important;
    border-color: rgba(0, 123, 255, 0.2) !important;
}

/* Прозрачная панель параметров монеты */
.coin-parameters-panel {
    background: rgba(6, 33, 74, 0.3) !important;
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.coin-parameters-panel .coin-param-item {
    background: rgba(3, 21, 48, 0.2) !important;
    border: 1px solid rgba(0, 191, 255, 0.15) !important;
}

.social-link-card {
    background: rgba(6, 33, 74, 0.2) !important;
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Прозрачные плашки параметров в CoinMarketCap секции */
.param-card {
    background: rgba(6, 33, 74, 0.2) !important;
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Прозрачные строки параметров */
.param-row {
    background: rgba(3, 21, 48, 0.2) !important;
    border: 1px solid rgba(0, 191, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Прозрачная панель с данными */
.unified-panel {
    background: rgba(6, 33, 74, 0.2) !important;
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Old coin parameter styles removed - now using unified panel styles */

.tradingview-container {
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 3px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4),
                0 0 40px rgba(0, 255, 136, 0.2),
                inset 0 0 10px rgba(0, 255, 136, 0.1);
    min-height: 450px;
    padding: 10px;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

.tradingview-container.full-width {
    min-height: 600px;
    width: 100%;
}

/* Coin details chart: autosize widgets need a real height, not only min-height */
#coinDetailContent .tradingview-container.coin-detail-tradingview {
    height: 620px;
    min-height: 600px;
}

#coinDetailContent .tradingview-container.coin-detail-tradingview > .tradingview-widget-container {
    width: 100%;
    height: 100% !important;
    min-height: 580px;
}

#coinDetailContent .tradingview-container.coin-detail-tradingview iframe {
    width: 100%;
    height: 100%;
    min-height: 580px;
    border: 0;
}

#coinDetailContent .tradingview-widget-container__widget {
    height: 100%;
    width: 100%;
    min-height: 580px;
}

@keyframes neonGlow {
    from {
        border-color: #00ff88;
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4),
                    0 0 40px rgba(0, 255, 136, 0.2),
                    inset 0 0 10px rgba(0, 255, 136, 0.1);
    }
    to {
        border-color: #00cc66;
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.6),
                    0 0 60px rgba(0, 255, 136, 0.3),
                    inset 0 0 15px rgba(0, 255, 136, 0.2);
    }
}

.tradingview-widget-container {
    width: 100%;
    height: 420px;
    position: relative;
}

.full-width .tradingview-widget-container {
    height: 570px;
}

.tradingview-widget {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.chart-btn {
    margin-top: 10px;
}

/* Status Messages */
.status-message {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-weight: 500;
}

.status-success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.status-error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.status-info {
    background-color: rgba(74, 158, 255, 0.2);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

/* Footer Styles */
.footer-section {
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
}

.service-description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.service-description h3 {
    color: var(--accent-primary);
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.service-intro {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.features-section {
    text-align: left;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.features-section h4 {
    color: var(--accent-secondary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.features-list li:before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.neon-line {
    width: 80%;
    max-width: 800px;
    height: 3px;
    margin: 0 auto 30px auto;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00ff88 20%, 
        #00ffdd 50%, 
        #00ff88 80%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6),
                0 0 20px rgba(0, 255, 136, 0.4),
                0 0 30px rgba(0, 255, 136, 0.2);
    border-radius: 2px;
    animation: neonLinePulse 3s ease-in-out infinite alternate;
}

@keyframes neonLinePulse {
    from {
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.6),
                    0 0 20px rgba(0, 255, 136, 0.4),
                    0 0 30px rgba(0, 255, 136, 0.2);
    }
    to {
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.8),
                    0 0 30px rgba(0, 255, 136, 0.6),
                    0 0 45px rgba(0, 255, 136, 0.3);
    }
}

.footer-text {
    padding: 0 20px;
}

.footer-text p {
    color: #888888;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Price column styles */
.table .price-value {
    color: #87ceeb !important;
    font-weight: 600;
    text-align: left;
    font-size: 0.85em;
    border-color: var(--border-color) !important;
    vertical-align: middle;
}

/* iVolume column styles */
.table .ivolume-value {
    color: #9370db !important;
    font-weight: 600;
    border-color: var(--border-color) !important;
    vertical-align: middle;
}

/* vlt column styles */
.table .vlt-value {
    color: #87ceeb !important;
    font-weight: 600;
    border-color: var(--border-color) !important;
    vertical-align: middle;
}

/* Price Change Animations */
@keyframes priceUpGlow {
    0% {
        color: #00ff88;
        text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 30px #00ff88;
        transform: scale(1.1);
    }
    50% {
        color: #00ff88;
        text-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88, 0 0 45px #00ff88;
        transform: scale(1.15);
    }
    100% {
        color: #00ff88;
        text-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88, 0 0 15px #00ff88;
        transform: scale(1);
    }
}

@keyframes priceDownGlow {
    0% {
        color: #ff4757;
        text-shadow: 0 0 10px #ff4757, 0 0 20px #ff4757, 0 0 30px #ff4757;
        transform: scale(1.1);
    }
    50% {
        color: #ff4757;
        text-shadow: 0 0 15px #ff4757, 0 0 30px #ff4757, 0 0 45px #ff4757;
        transform: scale(1.15);
    }
    100% {
        color: #ff4757;
        text-shadow: 0 0 5px #ff4757, 0 0 10px #ff4757, 0 0 15px #ff4757;
        transform: scale(1);
    }
}

/* Sort indicators */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: rgba(0, 212, 255, 0.1);
}

.sort-indicator {
    margin-left: 5px;
    opacity: 0.5;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.sortable.sort-asc .sort-indicator,
.sortable.sort-desc .sort-indicator {
    opacity: 1;
    color: #00d4ff;
}

/* Absolute sort indicator */
.sortable.sort-absolute {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-left: 3px solid #ffc107 !important;
}

.sortable.sort-absolute .sort-indicator {
    color: #ffc107 !important;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 193, 7, 0.5);
}

/* Sort option checkbox styling */
.sort-option-label {
    color: #00ffff !important;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 8px;
}

.form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.form-check-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Coins counter in header */
.coins-counter-info {
    display: flex;
    align-items: center;
    color: #00ff88;
    font-size: 0.9rem;
    font-weight: 500;
}

.coins-counter-info i {
    color: #ffd700;
}

/* iVolatility column styles */
.table .ivolatility-value {
    color: #ffc0cb !important;
    font-weight: 600;
    border-color: var(--border-color) !important;
    vertical-align: middle;
}

/* Header brand styles */
.hermes-brand {
    color: #00d4ff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.algo-brand {
    color: #ff6b6b;
    font-weight: 600;
    margin-left: 8px;
}



/* Time display styles */
#headerCurrentTime {
    color: #ffd700 !important;
    font-weight: 600;
}

#currentTime {
    color: #000000 !important;
    font-weight: 600;
}

.text-light-emphasis {
    color: #ccc !important;
}

.text-light-emphasis i {
    color: #ffd700 !important;
}

/* Header Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hide center exchange card on mobile for cleaner layout */
    div[style*="justify-content: center; flex: 1; max-width: 200px"] {
        display: none !important;
    }
    
    /* Adjust header layout for tablets */
    div[style*="position: fixed; top: 0"] > div {
        padding: 15px 25px !important;
        min-height: 80px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Logo section adjustments */
    div[style*="display: flex; align-items: center; gap: 20px"] {
        justify-content: center !important;
        margin-bottom: 10px;
    }
    
    div[style*="display: flex; align-items: center; gap: 20px"] img {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Brand text adjustments */
    div[style*="color: #00ffff; font-size: 2.2rem"] {
        font-size: 1.8rem !important;
    }
    
    div[style*="color: #87ceeb; font-size: 1.3rem"] {
        font-size: 1.1rem !important;
    }
    
    div[style*="color: #9370db; font-size: 1rem"] {
        font-size: 0.8rem !important;
    }
    
    /* Navigation adjustments */
    div[style*="display: flex; align-items: center; justify-content: flex-end"] {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    div[style*="display: flex; align-items: center; justify-content: flex-end"] a,
    div[style*="display: flex; align-items: center; justify-content: flex-end"] button {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    div[style*="width: 36px; height: 36px"] {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Adjust body margin for mobile header */
    body {
        margin-top: 140px !important;
    }
}

@media (max-width: 480px) {
    /* Even more compact for phones */
    div[style*="position: fixed; top: 0"] > div {
        padding: 10px 15px !important;
        min-height: 70px !important;
    }
    
    div[style*="display: flex; align-items: center; gap: 20px"] img {
        width: 50px !important;
        height: 50px !important;
    }
    
    div[style*="color: #00ffff; font-size: 2.2rem"] {
        font-size: 1.5rem !important;
    }
    
    div[style*="color: #87ceeb; font-size: 1.3rem"] {
        font-size: 1rem !important;
    }
    
    div[style*="color: #9370db; font-size: 1rem"] {
        font-size: 0.7rem !important;
    }
    
    div[style*="display: flex; align-items: center; justify-content: flex-end"] a,
    div[style*="display: flex; align-items: center; justify-content: flex-end"] button {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        flex: 1 !important;
        max-width: 80px !important;
    }
    
    div[style*="width: 36px; height: 36px"] {
        width: 28px !important;
        height: 28px !important;
        flex: none !important;
        max-width: none !important;
    }
    
    /* Adjust body margin for phone header */
    body {
        margin-top: 120px !important;
    }
}



/* Smooth transition for Order Book table updates to prevent flicker */
#orderBookTableBody {
    transition: opacity 0.15s ease-in-out;
}

/* Additional smooth transitions for all table bodies */
.table-responsive tbody {
    transition: opacity 0.1s ease-in-out;
}

/* Order Book table font size styling - 13px for all columns except time columns */
#orderBookTable tbody td {
    font-size: 13px !important;
    font-weight: 500;
}

/* Time columns keep smaller font size for better fit */
#orderBookTable tbody td:nth-child(3), /* Time Open */
#orderBookTable tbody td:nth-child(4) { /* Time Close */
    font-size: 11px !important;
}

/* Special styling for specific data types in Order Book */
#orderBookTable tbody td.price-yellow,
#orderBookTable tbody td.param-positive,
#orderBookTable tbody td.param-negative {
    font-size: 13px !important;
    font-weight: 600;
}

/* Position type and order state columns with larger font */
#orderBookTable tbody td:nth-child(6), /* Position Type */
#orderBookTable tbody td:nth-child(8) { /* Order State */
    font-size: 13px !important;
    font-weight: 600;
}

/* AI Trading Copilot Button Press Effects */
.trading-container .btn {
    transition: all 0.15s ease-in-out;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trading-container .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.trading-container .btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease-in-out;
}

/* Specific button press effects for different button types */
.trading-container .btn-success:active {
    background-color: #1e7e34 !important;
    border-color: #1c7430 !important;
}

.trading-container .btn-secondary:active {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

.trading-container .btn-info:active {
    background-color: #138496 !important;
    border-color: #117a8b !important;
}

/* Refresh button press effect */
.trading-container .refresh-btn:active {
    background: rgba(0, 191, 255, 0.5) !important;
    transform: scale(0.9);
}

/* ADD BEST COINS button specific press effect */
.trading-container .btn-info[onclick="addBestCoins()"]:active {
    background: #0056b3 !important;
    border-color: #004085 !important;
    color: #e6f3ff !important;
}

/* AI Trading Copilot buttons mobile optimization */
@media (max-width: 768px) {
    /* Make AI Trading Copilot buttons full width on mobile like Start Algo Trading */
    .trading-container button[onclick*="addBestCoins"],
    .trading-container button[onclick*="removeAllCoins"] {
        width: 100% !important;
        margin-bottom: 10px !important;
        font-size: 0.85rem !important;
        padding: 10px 8px !important;
    }
}

/* Universal Button Press Effects for ALL buttons on MARKET page */
button, .btn, input[type="button"], input[type="submit"] {
    transition: all 0.15s ease-in-out;
    transform: scale(1);
}

button:hover, .btn:hover, input[type="button"]:hover, input[type="submit"]:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

button:active, .btn:active, input[type="button"]:active, input[type="submit"]:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease-in-out;
}

/* Specific effects for different button types */
.btn-primary:active {
    background-color: #0056b3 !important;
    border-color: #004085 !important;
}

.btn-secondary:active {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

.btn-success:active {
    background-color: #1e7e34 !important;
    border-color: #1c7430 !important;
}

.btn-info:active {
    background-color: #138496 !important;
    border-color: #117a8b !important;
}

.btn-warning:active {
    background-color: #d39e00 !important;
    border-color: #b08800 !important;
}

.btn-danger:active {
    background-color: #bd2130 !important;
    border-color: #b21f2d !important;
}

/* Refresh buttons (R) special effects */
.refresh-btn:active {
    background: rgba(0, 191, 255, 0.6) !important;
    transform: scale(0.9) !important;
}

/* Filter control buttons */
#applyFiltersBtn:active {
    background-color: #0056b3 !important;
    border-color: #004085 !important;
}

#clearFiltersBtn:active {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

/* Table sorting buttons (sortable headers) */
.sortable:active {
    background-color: rgba(0, 191, 255, 0.3) !important;
    transform: scale(0.98);
}

/* Trade action buttons in tables */
.trade-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navigation buttons */
.navigation-btn:active, .nav-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Quick Navigation buttons with inline styles - override with active effects */
button[style*="background: rgba(255, 255, 255, 0.12)"]:active {
    background: rgba(0, 255, 255, 0.3) !important;
    transform: scale(0.96) !important;
    border-color: rgba(0, 255, 255, 0.7) !important;
}

/* Top refresh button with special inline styles */
button[onclick="refreshData()"]:active {
    background: rgba(0, 255, 136, 1) !important;
    color: #000 !important;
    transform: scale(0.9) !important;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.7) !important;
}

/* Control Panel buttons */
.btn-gradient-success:active {
    background: linear-gradient(135deg, #1e7e34, #155724) !important;
    transform: scale(0.95);
}

.btn-neutral:active {
    background-color: #495057 !important;
    transform: scale(0.95);
}

/* AI Trade Control button - special handling for dynamic states */
#aiTradeControlBtn:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Add/Remove trading symbol buttons */
button[onclick*="addCoinForTrading"]:active,
button[onclick*="removeCoinFromTrading"]:active {
    transform: scale(0.9) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* Dropdown and select elements */
select:active {
    transform: scale(0.99);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Range sliders when interacting */
input[type="range"]:active {
    transform: scale(1.02);
}

/* Sortable table headers enhancement */
th.sortable:active {
    background-color: rgba(0, 191, 255, 0.4) !important;
    color: #ffffff !important;
    transform: scale(0.98) !important;
}

/* Any remaining button-like elements */
[role="button"]:active,
.clickable:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* Press effect class for dynamic elements */
.press-effect {
    transition: all 0.15s ease-in-out !important;
    transform: scale(1) !important;
}

.press-effect:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.press-effect:active {
    transform: scale(0.95) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Ensure inline styles work for mousedown/mouseup events */
button[onmousedown]:active {
    transform: scale(0.95) !important;
}

/* Chart interaction buttons */
.chart-btn:active {
    transform: scale(0.9) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

/* Market Parameters hover effects */
.param-card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4) !important;
    border-color: rgba(0, 191, 255, 0.6) !important;
    transition: all 0.3s ease !important;
}

.param-card {
    transition: all 0.3s ease !important;
    transform: scale(1) !important;
}

/* Algo Trading Active - Page-wide pulsing effect */
.algo-trading-active {
    animation: algoTradingPulse 2s infinite ease-in-out;
}

@keyframes algoTradingPulse {
    0% { 
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
        border-color: rgba(0, 255, 136, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.7), 0 0 40px rgba(0, 255, 136, 0.3);
        border-color: rgba(0, 255, 136, 0.7);
    }
    100% { 
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
        border-color: rgba(0, 255, 136, 0.3);
    }
}

/* Header algo trading effect */
.header-algo-active {
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(0, 191, 255, 0.1)) !important;
    border: 2px solid rgba(0, 255, 136, 0.5) !important;
    animation: headerPulse 3s infinite ease-in-out;
}

@keyframes headerPulse {
    0% { 
        background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(0, 191, 255, 0.1));
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    }
    50% { 
        background: linear-gradient(45deg, rgba(0, 255, 136, 0.2), rgba(0, 191, 255, 0.2));
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    }
    100% { 
        background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(0, 191, 255, 0.1));
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    }
}

/* ==================== LIGHT THEME STYLES - BASED ON DARK THEME WITH LIGHTENED BACKGROUNDS ==================== */

[data-theme="light"] .card,
[data-theme="light"] .panel,
[data-theme="light"] .section-panel {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .card-header,
[data-theme="light"] .panel-header {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(26, 127, 255, 0.25) !important;
}

[data-theme="light"] .btn-outline-primary {
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

[data-theme="light"] .btn-outline-primary:hover {
    background-color: var(--accent-primary) !important;
    color: white !important;
}

[data-theme="light"] .badge {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .alert {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .navbar,
[data-theme="light"] .page-header {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .nav-link {
    color: var(--text-primary) !important;
}

[data-theme="light"] .nav-link:hover {
    color: var(--accent-primary) !important;
}

/* Text color fixes for comprehensive coverage */
[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .bg-dark {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] .bg-secondary {
    background-color: var(--bg-tertiary) !important;
}

/* Modal and overlay improvements */
[data-theme="light"] .modal-content {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

/* Chart and visualization improvements */
[data-theme="light"] canvas {
    background-color: var(--bg-primary) !important;
}

[data-theme="light"] .chart-container {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

/* Specific component styling for light theme */
[data-theme="light"] .table-responsive {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] .list-group-item {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .progress {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="light"] .breadcrumb {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] .pagination .page-link {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .pagination .page-link:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Light theme text and button improvements */
[data-theme="light"] label,
[data-theme="light"] .form-label {
    color: var(--text-primary) !important;
}

[data-theme="light"] .form-text {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .input-group-text {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Order Book Trade Visualization Chart Styles */
.chart-container {
    position: relative;
    margin-top: 20px;
}

#orderBookTradeChart {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    cursor: crosshair;
    background: linear-gradient(135deg, rgba(8, 28, 71, 0.4) 0%, rgba(15, 42, 107, 0.3) 50%, rgba(8, 28, 71, 0.4) 100%);
}

#orderBookChartInfoPanel {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#orderBookChartInfoPanel > div:first-child {
    color: #00bfff !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.8);
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

#orderBookChartInfoPanel > div:not(:first-child) {
    color: #ffffff !important;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}

.chart-legend {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.chart-legend > div {
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.chart-legend > div:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: scale(1.05);
}

.chart-legend span {
    text-shadow: 0 0 3px currentColor;
    font-weight: 600;
}

/* Mobile responsiveness for Order Book Chart */
@media (max-width: 768px) {
    #orderBookTradeChart {
        height: 300px !important;
        max-width: 100%;
    }
    
    #orderBookChartInfoPanel {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-top: 10px;
        width: 100%;
        max-width: none;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 8px !important;
        align-items: flex-start;
    }
    
    .chart-legend > div {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Order Book Chart Tooltip Styles */
.order-book-chart-tooltip {
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: scale(0.9);
}

.order-book-chart-tooltip.visible {
    opacity: 1;
    transform: scale(1);
}

.tooltip-crypto-icon {
    flex-shrink: 0;
}

.tooltip-content {
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
    row-gap: 6px;
}

.tooltip-row {
    grid-column: span 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.tooltip-label {
    flex-shrink: 0;
    margin-right: 8px;
}

.tooltip-value {
    flex-grow: 1;
    text-align: right;
    font-weight: 600;
    color: #ffffff;
}

/* Position type styling */
.tooltip-value.tooltip-long {
    color: #00ff88 !important;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.tooltip-value.tooltip-short {
    color: #ff4757 !important;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

/* P&L styling */
.tooltip-value.tooltip-profit {
    color: #00ff88 !important;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.tooltip-value.tooltip-loss {
    color: #ff4757 !important;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

/* Reason styling */
.tooltip-value.tooltip-tp {
    color: #00ff88 !important;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.tooltip-value.tooltip-sl {
    color: #ff6b35 !important;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

@media (max-width: 768px) {
    #orderBookTradeChart {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    #orderBookTradeChart {
        height: 250px !important;
    }
    
    .chart-container {
        padding: 10px 5px 5px 5px !important;
    }
    
    .chart-legend {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .chart-legend > div {
        font-size: 0.7rem !important;
    }
}

/* Legacy media query fix */
@media (max-width: 480px) {
    #orderBookTradeChart {
        height: 250px !important;
    }
    
    .chart-legend > div {
        font-size: 0.8rem;
    }
    
    .chart-legend > div > div {
        width: 10px !important;
        height: 10px !important;
    }
}

/* MOBILE OPTIMIZATION FOR AI TRADING COPILOT */
@media (max-width: 768px) {
    /* Selected Symbols Statistics - Mobile Layout */
    .selected-symbols-stats {
        padding: 10px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    .selected-symbols-stats h6 {
        font-size: 17px !important;
        margin-bottom: 10px !important;
        text-align: center;
    }
    
    .selected-symbols-stats .row {
        margin: 0 !important;
    }
    
    .selected-symbols-stats .col-2,
    .selected-symbols-stats .col-3 {
        padding: 2px !important;
        margin-bottom: 8px;
        display: flex !important;
        justify-content: center !important;
    }
    
    .selected-symbols-stats .stat-item {
        text-align: center !important;
        padding: 4px;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .selected-symbols-stats .stat-item small {
        font-size: 15px !important;
        display: block;
        margin-bottom: 4px;
    }
    
    .selected-symbols-stats .stat-item div {
        font-size: 20px !important;
        line-height: 1.4;
    }
    
    /* Trading Stats Groups - Mobile Layout */
    .trading-stats {
        padding: 8px !important;
        text-align: center !important;
    }
    
    .stats-group {
        padding: 6px !important;
        margin-bottom: 6px !important;
        text-align: center !important;
    }
    
    .stats-group .row {
        margin: 0 !important;
    }
    
    .stats-group .col-2,
    .stats-group .col-3,
    .stats-group .col-4,
    .stats-group .col-6 {
        padding: 2px !important;
        margin-bottom: 6px;
        display: flex !important;
        justify-content: center !important;
    }
    
    .stats-group .stat-item {
        text-align: center !important;
        padding: 3px;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stats-group .stat-item h6 {
        font-size: 15px !important;
        margin-bottom: 4px !important;
        line-height: 1.3;
    }
    
    .stats-group .stat-value,
    .stats-group .pnl-value {
        font-size: 20px !important;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - more compact layout for AI Trading Copilot */
    .selected-symbols-stats {
        padding: 8px !important;
    }
    
    .selected-symbols-stats .stat-item div {
        font-size: 18px !important;
    }
    
    .stats-group .stat-value,
    .stats-group .pnl-value {
        font-size: 18px !important;
    }
    
    .stats-group .stat-item h6 {
        font-size: 14px !important;
    }
    
    /* Make columns stack on very small screens */
    .selected-symbols-stats .col-2,
    .selected-symbols-stats .col-3,
    .stats-group .col-2,
    .stats-group .col-3,
    .stats-group .col-4,
    .stats-group .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Hide Exchange and Coins Count in footer on mobile */
    .footer-desktop {
        display: none !important;
    }
}

/* Sidebar Market Parameters */
.sidebar-market-params {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00bfff #1e1e1e;
}

.sidebar-market-params::-webkit-scrollbar {
    width: 6px;
}

.sidebar-market-params::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 3px;
}

.sidebar-market-params::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 3px;
}

.sidebar-market-params::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

.sidebar-param-item {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.sidebar-param-item:hover {
    background: rgba(0, 191, 255, 0.15);
    border-color: rgba(0, 191, 255, 0.4);
}

.sidebar-param-name {
    font-size: 0.7rem;
    color: #00bfff;
    text-shadow: 0 0 4px rgba(0, 191, 255, 0.5);
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

.sidebar-param-value {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.sidebar-param-positive {
    color: #00ff00;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.4);
}

.sidebar-param-negative {
    color: #ff6b6b;
    text-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
}

/* ============================================
   ORDER BOOK STYLES
   ============================================ */

/* Order Book Container */
#orderBookContainer {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.8) 0%, rgba(0, 40, 80, 0.6) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

#orderBookContainer:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Order Book Header */
.order-book-header {
    background: linear-gradient(90deg, rgba(0, 191, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    padding: 8px 12px;
    margin: -15px -15px 15px -15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.order-book-header div {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00bfff !important;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
}

/* Order Book Levels */
.order-book-level {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.order-book-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.order-book-level:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.order-book-level:hover::before {
    opacity: 1;
}

/* Ask Levels (Sell Orders) - Red Theme */
.order-book-asks .order-book-level {
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.12) 0%, 
        rgba(239, 68, 68, 0.06) 50%, 
        rgba(239, 68, 68, 0.03) 100%);
    border-left: 3px solid rgba(239, 68, 68, 0.7);
    border-radius: 0 4px 4px 0;
}

.order-book-asks .order-book-level::before {
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.2) 0%, 
        rgba(239, 68, 68, 0.1) 100%);
}

.order-book-asks .order-book-level:hover {
    border-left-color: rgba(239, 68, 68, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        -4px 0 15px rgba(239, 68, 68, 0.2);
}

/* Bid Levels (Buy Orders) - Green Theme */
.order-book-bids .order-book-level {
    background: linear-gradient(90deg, 
        rgba(34, 197, 94, 0.12) 0%, 
        rgba(34, 197, 94, 0.06) 50%, 
        rgba(34, 197, 94, 0.03) 100%);
    border-left: 3px solid rgba(34, 197, 94, 0.7);
    border-radius: 0 4px 4px 0;
}

.order-book-bids .order-book-level::before {
    background: linear-gradient(90deg, 
        rgba(34, 197, 94, 0.2) 0%, 
        rgba(34, 197, 94, 0.1) 100%);
}

.order-book-bids .order-book-level:hover {
    border-left-color: rgba(34, 197, 94, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        -4px 0 15px rgba(34, 197, 94, 0.2);
}

/* Price and Amount Text Styling */
.order-book-level div:first-child {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.order-book-level div:last-child {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    opacity: 0.9;
}

/* Spread Display */
.order-book-spread {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 215, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.order-book-spread::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 50%, 
        transparent 100%);
    animation: spreadShimmer 3s linear infinite;
}

@keyframes spreadShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Order Book Footer */
.order-book-footer {
    background: rgba(0, 255, 255, 0.05);
    padding: 6px 12px;
    margin: 15px -15px -15px -15px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    text-align: center;
    color: #94a3b8;
}

/* Loading and Error States */
#orderBookLoading, #orderBookError {
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

#orderBookLoading {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #00bfff;
}

#orderBookLoading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#orderBookError {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 71, 87, 0.05) 100%);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

#orderBookError i {
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Order Book Symbol in Header */
#orderBookSymbol {
    font-size: 0.75rem;
    margin-left: 8px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive Design for Order Book */
@media (max-width: 768px) {
    #orderBookContainer {
        padding: 12px;
        margin: 0 -5px;
    }
    
    .order-book-header {
        margin: -12px -12px 12px -12px;
        padding: 6px 10px;
    }
    
    .order-book-level {
        font-size: 0.65rem;
        padding: 1px 3px;
    }
    
    .order-book-spread {
        padding: 6px 8px;
        font-size: 0.65rem;
    }
    
    .order-book-footer {
        margin: 12px -12px -12px -12px;
        padding: 4px 8px;
    }
}

/* Scrollbar Styling for Order Book */
#orderBookContainer::-webkit-scrollbar {
    width: 6px;
}

#orderBookContainer::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.3);
    border-radius: 3px;
}

#orderBookContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(0, 191, 255, 0.6) 0%, 
        rgba(0, 255, 255, 0.4) 100%);
    border-radius: 3px;
    transition: background 0.3s ease;
}

#orderBookContainer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(0, 191, 255, 0.8) 0%, 
        rgba(0, 255, 255, 0.6) 100%);
}

/* About Modal Styles */
.about-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.about-modal-content {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.98) 0%, rgba(0, 20, 40, 0.98) 100%);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 16px;
    padding: 0;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.4),
        0 0 100px rgba(0, 191, 255, 0.2),
        inset 0 0 60px rgba(0, 255, 255, 0.05);
    animation: slideIn 0.4s ease;
}

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

.about-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #00ffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.about-modal-close:hover {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    transform: scale(1.2);
}

.about-modal-header {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(0, 255, 255, 0.1) 100%);
    padding: 30px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 14px 14px 0 0;
}

.about-modal-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.about-modal-title {
    color: #00ffff;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 1px;
}

.about-modal-body {
    padding: 30px;
}

.about-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 191, 255, 0.05);
    border-left: 3px solid rgba(0, 191, 255, 0.5);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.about-section:hover {
    background: rgba(0, 191, 255, 0.08);
    border-left-color: rgba(0, 255, 255, 0.7);
    transform: translateX(5px);
}

.about-section.highlight-section {
    background: rgba(0, 255, 136, 0.08);
    border-left-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.about-section.highlight-section:hover {
    background: rgba(0, 255, 136, 0.12);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.3);
}

.about-label {
    color: #00bfff;
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

.about-section.highlight-section .about-label {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.about-text {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .about-modal-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .about-modal-logo {
        width: 60px;
        height: 60px;
    }
    
    .about-modal-title {
        font-size: 1.4rem;
    }
    
    .about-modal-body {
        padding: 20px;
    }
    
    .about-section {
        padding: 12px;
    }
    
    .about-label {
        font-size: 0.95rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
    
    /* Stack charts and signals vertically on mobile */
    #sidebarChartsSignalsContainer > div {
        grid-template-columns: 1fr !important;
    }
}

