/* Premium Dark Theme Stylesheet for Trade Tracker */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-main: #080b0f;
    --bg-card: #0f131a;
    --bg-card-hover: #151a24;
    --border-color: #1f2733;
    --border-hover: #2e3a4d;
    --accent-blue: #d4af37;
    --accent-blue-glow: rgba(212, 175, 55, 0.15);
    --success-green: #4ade80;
    --success-glow: rgba(74, 222, 128, 0.15);
    --danger-red: #f43f5e;
    --danger-glow: rgba(244, 63, 94, 0.15);
    --warning-gold: #ffd600;
    --text-primary: #f0f4f8;
    --text-secondary: #7f91a3;
    --filters-bg: #0d121c;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition-speed: 0.25s;
}

[data-theme="light"] {
    --bg-main: #f0f4f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --filters-bg: #e2e8f0;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}



/* Layout Container */
.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2vw;
}

/* Header Section */




.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 0 10px var(--accent-blue));
    animation: pulse 2.5s infinite alternate;
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    color: #64748b;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 3fr 1fr;
    }
}

/* Cards Base */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.card:hover {
    border-color: var(--border-hover);
}

/* Stats Summary Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 576px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .stats-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

.stat-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    background: linear-gradient(145deg, #111622, #0d1117);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--border-hover);
}

.stat-box.positive::before {
    background-color: var(--success-green);
}

.stat-box.negative::before {
    background-color: var(--danger-red);
}

.stat-box.blue::before {
    background-color: var(--accent-blue);
}

.stat-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}





.stat-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Charts Wrapper */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .charts-grid {
        grid-template-columns: 2.2fr 1fr;
    }
}

.chart-card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.chart-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-container {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: 100%;
}

/* Controls / Filters Panel */
.filters-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--filters-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .filters-panel {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 200px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control, .form-select {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

/* Quick range buttons */
.quick-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

/* Interactive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #000000;
}

.btn-primary:hover {
    background-color: #33c0ff;
    box-shadow: 0 0 15px rgba(0, 176, 255, 0.4);
}

.btn-success {
    background-color: var(--success-green);
    color: #000000;
}

.btn-success:hover {
    background-color: #33eb91;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #64748b;
}

.btn-outline.active {
    background-color: var(--accent-blue-glow);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

/* Trading table card */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.trades-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.trades-table th {
    background-color: #0d121c;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition-speed);
}

.trades-table th:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.trades-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
}

.trades-table tr.trade-row:hover td {
    background-color: var(--bg-card-hover);
}

/* Expandable trade details row */
.trades-table tr.details-row {
    background-color: #0b0f14;
    display: none;
}

.trades-table tr.details-row.active {
    display: table-row;
}

.trade-details-panel {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .trade-details-panel {
        grid-template-columns: 1fr 1fr 2fr;
    }
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.details-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Direction indicators */
.dir-long {
    color: var(--success-green);
    background-color: rgba(0, 230, 118, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 230, 118, 0.15);
    display: inline-block;
}

.dir-short {
    color: var(--danger-red);
    background-color: rgba(255, 23, 68, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 23, 68, 0.15);
    display: inline-block;
}

/* Badges */
.leverage-badge {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-badge {
    background-color: rgba(0, 176, 255, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 176, 255, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-won {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.status-lost {
    background-color: rgba(255, 23, 68, 0.1);
    color: var(--danger-red);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.status-open {
    background-color: rgba(255, 214, 0, 0.1);
    color: var(--warning-gold);
    border: 1px solid rgba(255, 214, 0, 0.2);
}

/* Coin logo align */
.coin-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--border-color);
}

/* Sort headers indicators */
.sortable-header {
    position: relative;
    padding-right: 1.5rem !important;
}

.sortable-header::after {
    content: '↕';
    position: absolute;
    right: 0.5rem;
    opacity: 0.3;
}

.sortable-header.asc::after {
    content: '▲';
    color: var(--accent-blue);
    opacity: 1;
}

.sortable-header.desc::after {
    content: '▼';
    color: var(--accent-blue);
    opacity: 1;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease;
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

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

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Forms layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .grid-span-2 {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* Mobile responsive table */
@media (max-width: 768px) {
    .trades-table, .trades-table thead, .trades-table tbody, .trades-table th, .trades-table td, .trades-table tr {
        display: block;
    }
    
    .trades-table thead {
        display: none; /* Hide header on mobile */
    }
    
    .trades-table tr.trade-row {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: linear-gradient(180deg, var(--bg-card), #0b0f14);
        padding: 0.75rem;
    }
    
    .trades-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        text-align: right;
    }
    
    .trades-table td:last-child {
        border-bottom: none;
    }
    
    .trades-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 0.75rem;
        text-transform: uppercase;
        text-align: left;
    }
    
    .trades-table tr.details-row.active {
        display: block;
        margin-top: -1rem;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    
    .trade-details-panel {
        padding: 1rem;
    }
    
    .coin-cell {
        justify-content: flex-end;
    }
}

/* Hide admin features when admin mode is disabled */
body:not(.admin-enabled) .admin-only {
    display: none !important;
}

/* Mobile responsive dashboard optimization */
@media (max-width: 576px) {
    .container {
        padding: 0.75rem !important;
    }
    
    header {
        margin-bottom: 1.5rem !important;
        padding-bottom: 1rem !important;
        gap: 0.75rem !important;
    }
    
    .brand h1 {
        font-size: 1.35rem !important;
    }
    
    .brand p {
        font-size: 0.75rem !important;
    }
    
    .header-actions {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .header-actions .btn {
        flex-grow: 1 !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        padding: 0.6rem 0.8rem !important;
    }
    
    /* Stats row grid spacing and sizing */
    .stats-row {
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .stat-box {
        padding: 0.9rem 0.75rem !important;
    }
    
    .stat-box .stat-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 0.35rem !important;
    }
    
    .stat-box .stat-value {
        font-size: 1.15rem !important;
    }
    
    .stat-box .stat-sub {
        font-size: 0.65rem !important;
    }
    
    /* Filters panel spacing */
    .filters-panel {
        padding: 0.85rem !important;
        gap: 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .filters-panel .btn {
        width: 100% !important;
        padding: 0.65rem !important;
    }
    
    /* Chart card padding and heights */
    .chart-card {
        padding: 1rem !important;
        min-height: 280px !important;
    }
    
    .chart-header {
        margin-bottom: 0.75rem !important;
    }
    
    .chart-title {
        font-size: 0.95rem !important;
    }
    
    /* Responsive details block spacing */
    .trade-details-panel {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
    }
    
    /* Compact login modal on mobile */
    .modal-content {
        padding: 1.5rem 1rem !important;
        width: 94% !important;
    }
}

/* Language Switcher */
.lang-selector {
    position: relative;
    cursor: pointer;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 100px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1001;
}

.lang-dropdown.active {
    display: flex;
}

.lang-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: background 0.2s;
    text-align: left;
    cursor: pointer;
    color: #64748b;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}


/* Floating Telegram Chat Widget */
.telegram-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #0088cc;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.telegram-chat-widget:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.6);
    background-color: #0099e6;
    color: #ffffff;
}

/* Pulsing outer ring */
.telegram-chat-widget .widget-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0088cc;
    box-sizing: border-box;
    opacity: 0.8;
    animation: widget-ping 2s infinite ease-out;
    pointer-events: none;
}

@keyframes widget-ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Tooltip on hover */
.telegram-chat-widget .widget-tooltip {
    position: absolute;
    right: 70px;
    background: #0d1117;
    color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.telegram-chat-widget:hover .widget-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

@media (max-width: 576px) {
    .telegram-chat-widget {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .telegram-chat-widget .widget-tooltip {
        display: none !important;
    }
}

/* Global Navigation Menu Added for Trade Tracker */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-item > a, .nav-dropdown-trigger {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-item > a:hover, .nav-item.active > a, .nav-dropdown-wrap.active .nav-dropdown-trigger {
    color: var(--accent-blue);
}
.nav-dropdown-wrap {
    position: relative;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.nav-dropdown-wrap.active .nav-dropdown-menu,
.nav-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown-item:hover {
    background: var(--border-color);
    color: var(--accent-blue);
}
.nav-dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.nav-dropdown-wrap.active .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .header-actions {
        flex-wrap: wrap;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding-top: 1rem;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
    }
    .nav-dropdown-menu.open {
        display: block;
    }
}

/* Floating Telegram Chat Widget */
.telegram-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #2AABEE; /* Official Telegram Blue */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.telegram-chat-widget:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.6);
    color: #ffffff;
}

.telegram-chat-widget .widget-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2AABEE;
    border-radius: 50%;
    z-index: -1;
    animation: telegram-pulse 2s infinite;
}

@keyframes telegram-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.telegram-chat-widget .widget-tooltip {
    position: absolute;
    right: 70px;
    background: var(--bg-card);
    color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.telegram-chat-widget:hover .widget-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

@media (max-width: 576px) {
    .telegram-chat-widget {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .telegram-chat-widget .widget-tooltip {
        display: none !important;
    }
}

/* Fix Header Layout for Unified Nav */
.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    .header-actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }
}

/* Custom Tooltips for Header Buttons */
.custom-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--bg-card);
    color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    pointer-events: none;
}
.tooltip-btn:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item i {
    color: #d4af37;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* ====== ZENITH TRADER THEME OVERRIDES ====== */
.zt-oversight-header {
    margin-bottom: 24px;
    padding-top: 10px;
}
.zt-tracking-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4ade80; /* Subtle green or gray */
    margin-bottom: 12px;
    font-weight: 600;
}
.zt-main-title {
    font-size: 26px;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.zt-sub-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.zt-panel {
    background: rgba(16, 20, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

/* Override stats row */
.stats-panel .stats-row {
    margin-bottom: 0 !important;
    gap: 0 !important;
}

.stats-panel .stat-box {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 24px 20px !important;
    text-align: left !important;
    box-shadow: none !important;
}
.stats-panel .stat-box:last-child {
    border-right: none !important;
}
.stats-panel .stat-box::before {
    display: none !important;
}

/* Typography for stats */
.stats-panel .stat-label {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    margin-bottom: 8px !important;
}
.stats-panel .stat-value {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
}
.stats-panel .stat-sub {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Chart Cards Override */
.chart-card.zt-panel {
    background: rgba(16, 20, 29, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    padding: 20px !important;
}
.chart-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}
.chart-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

/* Hide old chart-card styles */
.card.chart-card {
    background: transparent;
    border: none;
}

/* Responsive fixes for new panel layout */
@media (max-width: 991px) {
    .stats-panel .stat-box {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
}

/* Update for Tracker Header */
.zt-tracking-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.zt-tracking-text {
    margin-bottom: 0 !important; /* Override previous */
}
.zt-tracking-right {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ====== TRACKER COMPACT 75% SCALE (Header/Footer excluded) ====== */

/* Make container edge-to-edge with minimal padding */
.container {
    padding: 1rem 1.5vw !important;
    max-width: 100% !important;
}

/* Stats row: tighter */
.stats-row {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}
.stat-box {
    padding: 0.85rem 0.9rem !important;
}
.stat-label {
    font-size: 0.62rem !important;
    margin-bottom: 0.2rem !important;
    letter-spacing: 0.4px !important;
}
.stat-value {
    font-size: 1rem !important;
}
.stat-sub {
    font-size: 0.62rem !important;
}

/* Dashboard grid: charts */
.dashboard-grid {
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}
.card, .zt-panel.chart-card {
    padding: 14px !important;
    border-radius: 10px !important;
}
.chart-header {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
}
.chart-title {
    font-size: 0.78rem !important;
}
.chart-container {
    height: 200px !important;
}

/* Quick range buttons */
.quick-ranges {
    margin-bottom: 0.75rem !important;
    gap: 0.4rem !important;
}
.btn-sm {
    padding: 4px 12px !important;
    font-size: 0.72rem !important;
    border-radius: 14px !important;
}

/* Filters panel */
.filters-panel {
    padding: 0.75rem 1rem !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    border-radius: 10px !important;
}
.filter-group label {
    font-size: 0.65rem !important;
    margin-bottom: 4px !important;
}
.form-control, .form-select {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
    height: auto !important;
}

/* Trades table */
.table-wrapper {
    border-radius: 10px !important;
}
.table-container {
    padding: 0 !important;
}
.trade-table th, .trade-table td {
    padding: 6px 10px !important;
    font-size: 0.70rem !important;
}
.trade-table th {
    font-size: 0.62rem !important;
}
.badge {
    padding: 2px 7px !important;
    font-size: 0.60rem !important;
    border-radius: 3px !important;
}
.action-btn {
    padding: 3px 7px !important;
    font-size: 0.65rem !important;
}

/* ================================================================= */

/* ====== MEGA PANEL (outer container for top section) ====== */
.zt-mega-panel {
    background: rgba(10, 13, 20, 0.82);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 28px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Header inside mega panel */
.zt-mega-panel .zt-oversight-header {
    margin-bottom: 20px;
    padding-top: 0;
}

/* Stats panel inside mega panel: seamless no-bg */
.zt-mega-panel .stats-panel {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
}
.zt-mega-panel .stats-row {
    gap: 0 !important;
    margin-bottom: 0 !important;
}
.zt-mega-panel .stat-box {
    background: transparent !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 0 !important;
    padding: 14px 18px !important;
    text-align: left !important;
    box-shadow: none !important;
}
.zt-mega-panel .stat-box:last-child {
    border-right: none !important;
}
.zt-mega-panel .stat-box::before { display: none !important; }
.zt-mega-panel .stat-label {
    font-size: 11px !important;
    color: rgba(255,255,255,0.45) !important;
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    margin-bottom: 6px !important;
}
.zt-mega-panel .stat-value {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 3px !important;
}
.zt-mega-panel .stat-sub {
    font-size: 11px !important;
    color: rgba(255,255,255,0.35) !important;
}

/* Chart cards inside mega panel */
.zt-mega-panel .dashboard-grid {
    gap: 12px !important;
    margin-bottom: 0 !important;
}
.zt-mega-panel .chart-card {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 10px !important;
    padding: 16px !important;
}
.zt-mega-panel .chart-title {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.75) !important;
}
.zt-mega-panel .chart-header {
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.zt-mega-panel .chart-container {
    height: 220px !important;
}
/* =========================================================== */

/* ====================================================
   ZENITHTRADER.NET DESIGN LANGUAGE APPLIED TO TRACKER
   ====================================================
   Colors: bg=#06060b, surface=#0d0d14, border=rgba(255,255,255,0.07)
   Text main=#f5f1e8, muted=#64748b, green=#4ade80, red=#f87171
   Font: system-ui / Inter, weight 400 labels / 600 values
   ==================================================== */

/* Root overrides for tracker page */
body {
    background: #06060b !important;
}
.particle-psi-site-shell {
    background: transparent !important;
}
.container {
    padding: 1.2rem 2vw !important;
}

/* ---- Outer mega panel ---- */
.zt-mega-panel {
    background: #0d0d14 !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 14px !important;
    padding: 28px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

/* ---- Oversight header ---- */
.zt-tracking-text { font-size: 10px; letter-spacing: 1.5px; font-weight: 600; }
.zt-tracking-text span:first-child { color: #eab308 !important; }
.zt-tracking-right { font-size: 11px; color: #4ade80 !important; letter-spacing: 0.5px; }
.zt-main-title { font-size: 24px !important; font-weight: 400 !important; color: #f5f1e8 !important; letter-spacing: -0.3px !important; line-height: 1.3 !important; margin-bottom: 6px !important; }
.zt-sub-title { font-size: 12px !important; color: #64748b !important; }

/* ---- Stats panel (horizontal seamless strip) ---- */
.zt-mega-panel .stats-panel {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 8px !important;
    margin-bottom: 14px !important;
}
.zt-mega-panel .stat-box {
    padding: 16px 20px !important;
    border-right: 1px solid rgba(255,255,255,0.06) !important;
    text-align: left !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.zt-mega-panel .stat-box:last-child { border-right: none !important; }
.zt-mega-panel .stat-box::before { display: none !important; }

.zt-mega-panel .stat-label {
    font-size: 10.5px !important;
    color: #64748b !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    margin-bottom: 8px !important;
    text-transform: none !important;
}
.zt-mega-panel .stat-value {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #f5f1e8 !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.3px !important;
    font-variant-numeric: tabular-nums;
}


.zt-mega-panel .stat-sub {
    font-size: 11px !important;
    color: #64748b !important;
    font-variant-numeric: tabular-nums;
}

/* ---- Chart panels ---- */
.zt-mega-panel .dashboard-grid { gap: 12px !important; }
.zt-mega-panel .chart-card {
    background: rgba(255,255,255,0.015) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 8px !important;
    padding: 18px !important;
}
.zt-mega-panel .chart-header {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
}
.zt-mega-panel .chart-title {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}
.zt-mega-panel .chart-container { height: 230px !important; }

/* ---- Quick range buttons ---- */
.quick-ranges {
    display: flex;
    justify-content: center;
    gap: 6px !important;
    margin: 16px 0 12px !important;
}
.btn-sm {
    padding: 5px 14px !important;
    font-size: 0.72rem !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    transition: all 0.2s;
}
.btn-sm:hover, .btn-sm.active {
    background: #eab308 !important;
    color: #000 !important;
    border-color: #eab308 !important;
}

/* ---- Filters panel ---- */
.filters-panel {
    background: #0d0d14 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
}
.filter-group label {
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}
.form-control, .form-select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 6px !important;
    color: #f5f1e8 !important;
    font-size: 0.72rem !important;
    padding: 6px 10px !important;
}

/* ---- Trade table ---- */
.table-wrapper {
    background: #0d0d14 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.trade-table th {
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    background: rgba(255,255,255,0.02) !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.trade-table td {
    font-size: 12px !important;
    color: #f5f1e8 !important;
    padding: 9px 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    vertical-align: middle !important;
}
.trade-table tr:hover td { background: rgba(255,255,255,0.025) !important; }
.badge {
    font-size: 10px !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}
/* ================================================= */

/* ---- Disclaimer note at bottom of table ---- */
.tracker-disclaimer {
    margin-top: 16px;
    padding: 10px 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.disclaimer-diamond {
    color: #334155;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ====== TRADE TABLE: compact 75% scale ====== */
.table-container {
    padding: 0 !important;
}
.trade-table {
    font-size: 11px !important;
}
.trade-table th {
    font-size: 9px !important;
    padding: 8px 10px !important;
    letter-spacing: 0.8px !important;
}
.trade-table td {
    font-size: 11px !important;
    padding: 7px 10px !important;
    line-height: 1.35 !important;
}
.trade-table .badge {
    font-size: 9px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}
.action-btn {
    font-size: 10px !important;
    padding: 2px 7px !important;
}
.trade-table .pair-symbol {
    font-size: 11px !important;
}
/* Pagination compact */
.pagination-container button {
    font-size: 11px !important;
    padding: 3px 10px !important;
    height: auto !important;
}
.pagination-container {
    margin-top: 12px !important;
    gap: 4px !important;
}
/* Showing N trades text */
.table-header-row {
    font-size: 11px !important;
    padding: 8px 12px !important;
}
/* ============================================= */

/* ====== TRADE TABLE: further compact -35% ====== */
.trade-table th {
    font-size: 8px !important;
    padding: 5px 8px !important;
}
.trade-table td {
    font-size: 9.5px !important;
    padding: 4px 8px !important;
    line-height: 1.25 !important;
}
.trade-table .badge {
    font-size: 8px !important;
    padding: 1px 5px !important;
}
.action-btn {
    font-size: 8.5px !important;
    padding: 1px 5px !important;
}
.pagination-container button {
    font-size: 9px !important;
    padding: 2px 7px !important;
}
.table-header-row, .table-header-row span {
    font-size: 9.5px !important;
    padding: 5px 10px !important;
}
/* ================================================= */

/* ====== ALL CONTENT: compact -35% (header, stats, charts, filters, table) ====== */

/* Oversight header typography */
.zt-main-title { font-size: 16px !important; margin-bottom: 4px !important; }
.zt-sub-title { font-size: 10px !important; }
.zt-tracking-text { font-size: 9px !important; }
.zt-tracking-right { font-size: 9px !important; }
.zt-oversight-header { margin-bottom: 12px !important; }

/* Stats panel */
.zt-mega-panel .stats-panel { margin-bottom: 10px !important; }
.zt-mega-panel .stat-box { padding: 10px 14px !important; }
.zt-mega-panel .stat-label { font-size: 8.5px !important; margin-bottom: 4px !important; }
.zt-mega-panel .stat-value { font-size: 14px !important; margin-bottom: 2px !important; }
.zt-mega-panel .stat-sub { font-size: 9px !important; }

/* Mega panel padding */
.zt-mega-panel { padding: 18px !important; margin-bottom: 12px !important; }

/* Chart cards */
.zt-mega-panel .dashboard-grid { gap: 8px !important; }
.zt-mega-panel .chart-card { padding: 12px !important; }
.zt-mega-panel .chart-header { margin-bottom: 8px !important; padding-bottom: 8px !important; }
.zt-mega-panel .chart-title { font-size: 10px !important; }
.zt-mega-panel .chart-container { height: 140px !important; }

/* Quick range buttons */
.quick-ranges { margin: 10px 0 8px !important; gap: 4px !important; }
.btn-sm { padding: 3px 10px !important; font-size: 10px !important; }

/* Filters panel */
.filters-panel { padding: 8px 12px !important; gap: 10px !important; margin-bottom: 8px !important; }
.filter-group label { font-size: 8px !important; margin-bottom: 3px !important; }
.form-control, .form-select { font-size: 10px !important; padding: 4px 8px !important; }

/* Container top padding */
.container { padding: 0.6rem 1.5vw !important; }

/* =================================================================================== */

/* ====== TRADE TABLE ROWS + DISCLAIMER: -35% more ====== */
.trade-table th {
    font-size: 7px !important;
    padding: 4px 7px !important;
}
.trade-table td {
    font-size: 8px !important;
    padding: 3px 7px !important;
    line-height: 1.2 !important;
}
.trade-table .badge {
    font-size: 7px !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
}
.action-btn {
    font-size: 7px !important;
    padding: 1px 4px !important;
}
.table-header-row, .table-header-row span {
    font-size: 8px !important;
    padding: 4px 8px !important;
}
.pagination-container button {
    font-size: 8px !important;
    padding: 1px 6px !important;
}
/* Disclaimer note */
.tracker-disclaimer {
    font-size: 8px !important;
    padding: 7px 4px !important;
    margin-top: 8px !important;
    gap: 5px !important;
}
/* ======================================================= */

/* ====== EDGE TO EDGE FIX ====== */
.container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.6rem 1.5vw !important;
    margin: 0 !important;
}
/* ================================ */

/* ====== DIVIDER LINE FOR MAIN TITLE ====== */
.zt-main-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
}
/* ========================================= */

/* ====== BALANCED BOTTOM DISCLAIMER ====== */
.tracker-disclaimer {
    font-size: 10px !important;
    color: #64748b !important;
    padding: 14px 0 0 0 !important;
    margin-top: 14px !important;
    gap: 6px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.disclaimer-diamond {
    font-size: 10px !important;
}
/* ========================================= */

/* Zenith Proprietary Analytics Overrides */
.trades-table td .coin-cell strong {
    color: #efe0c6 !important;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.trades-table th {
    color: #64748b !important;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.dir-long {
    color: var(--success-green) !important;
}
.dir-short {
    color: var(--danger-red) !important;
}

/* Make table transparent like Scanner */
.table-card {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.table-header-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.trades-table th {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.trades-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.trades-table tr.trade-row:hover td {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.trades-table tr.details-row {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 768px) {
    .trades-table tr.trade-row {
        background: rgba(0, 0, 0, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}

/* Make Mega Panel and Chart Cards completely transparent */
.zt-mega-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.zt-mega-panel .chart-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Also make the controls section transparent */
.filters-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.dashboard-stats {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Make tracker inputs completely transparent */
.filters-panel .form-control, .filters-panel .form-select {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.filters-panel .form-control:focus, .filters-panel .form-select:focus {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

/* =================================================================================== */
/* GLASSMORPHISM TELEGRAM WIDGET REDESIGN */
/* =================================================================================== */
.telegram-chat-widget {
    background: rgba(20, 24, 30, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(42, 171, 238, 0.4) !important;
    color: #2AABEE !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(42, 171, 238, 0.1) !important;
    border-radius: 50% !important;
    right: 15px !important;
    bottom: 15px !important;
}

.telegram-chat-widget:hover {
    background: rgba(42, 171, 238, 0.15) !important;
    border-color: rgba(42, 171, 238, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.3), inset 0 0 15px rgba(42, 171, 238, 0.4) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

.telegram-chat-widget .widget-pulse {
    display: none !important; /* Hide old solid pulse */
}

/* Elegant Glass Pulse */
.telegram-chat-widget::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    border: 1px solid rgba(42, 171, 238, 0.6);
    animation: glass-pulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
    pointer-events: none;
}

@keyframes glass-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Glass Tooltip */
.telegram-chat-widget .widget-tooltip {
    background: rgba(10, 12, 16, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important; 
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    right: 56px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 576px) {
    .telegram-chat-widget {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
    }
}

/* =================================================================================== */
/* COMPREHENSIVE ELEGANT CHART REDESIGN */
/* =================================================================================== */

.chart-card {
    background: rgba(10, 14, 20, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 215, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    min-height: unset !important;
}

.chart-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
}

.chart-title {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

.chart-container {
    height: 220px !important; 
    max-height: 220px !important;
}

@media (max-width: 768px) {
    .chart-container {
        height: 180px !important;
        max-height: 180px !important;
    }
    .chart-card {
        padding: 12px !important;
    }
}

/* =================================================================================== */
/* 100% UNIFIED ELEGANT CHART REDESIGN (EQUITY CURVE & DONUT) - ALL PAGES */
/* =================================================================================== */

.chart-card, 
.zt-mega-panel .chart-card,
.dashboard-grid .chart-card {
    background: rgba(10, 14, 20, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 215, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    min-height: unset !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.chart-header,
.zt-mega-panel .chart-header,
.dashboard-grid .chart-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
}

.chart-title,
.zt-mega-panel .chart-title,
.dashboard-grid .chart-title {
    font-family: var(--font-heading, 'Inter', sans-serif) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: flex;
    align-items: center;
}

.chart-title i {
    color: #ffffff !important;
}

.chart-container,
.zt-mega-panel .chart-container,
.dashboard-grid .chart-container {
    height: 240px !important; 
    max-height: 240px !important;
}

@media (max-width: 768px) {
    .chart-container,
    .zt-mega-panel .chart-container,
    .dashboard-grid .chart-container {
        height: 180px !important;
        max-height: 180px !important;
    }
    .chart-card,
    .zt-mega-panel .chart-card,
    .dashboard-grid .chart-card {
        padding: 12px !important;
    }
}

/* =================================================================================== */
/* 100% UNIFIED ELEGANT STATS GRID (TOP ROW) - ALL PAGES */
/* =================================================================================== */

.stats-panel, 
.zt-mega-panel .stats-panel {
    background: rgba(10, 14, 20, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 215, 0, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
}

.stats-panel .stat-box,
.zt-mega-panel .stats-panel .stat-box {
    background: transparent !important;
    border-right: 1px solid rgba(255, 215, 0, 0.05) !important;
    padding: 20px 24px !important;
}

.stats-panel .stat-box:last-child,
.zt-mega-panel .stats-panel .stat-box:last-child {
    border-right: none !important;
}

/* Elegant Labels */
.stats-panel .stat-label,
.zt-mega-panel .stats-panel .stat-label {
    font-family: var(--font-heading, 'Inter', sans-serif) !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 8px !important;
}

/* Elegant Values */
.stats-panel .stat-value,
.zt-mega-panel .stats-panel .stat-value {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 6px !important;
    /* We don't force color here, let JS set green/red/white */
}

/* Elegant Sub-Labels */
.stats-panel .stat-sub,
.zt-mega-panel .stats-panel .stat-sub {
    font-size: 0.65rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .stats-panel .stat-box,
    .zt-mega-panel .stats-panel .stat-box {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 215, 0, 0.05) !important;
        padding: 16px 20px !important;
    }
    .stats-panel .stat-box:last-child,
    .zt-mega-panel .stats-panel .stat-box:last-child {
        border-bottom: none !important;
    }
}

/* =================================================================================== */
/* MASTER MEGA PANEL ENCLOSURE (UNIFIED DASHBOARD) */
/* =================================================================================== */

/* 1. Make the Mega Panel the true Glassmorphism container */
div.zt-mega-panel {
    background: rgba(10, 14, 20, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
    padding: 28px !important;
    margin-bottom: 28px !important;
}

/* 2. Soften the inner Stats Panel to blend inside */
div.zt-mega-panel .stats-panel {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-bottom: 24px !important;
}

/* 3. Soften the inner Chart Cards to blend inside */
div.zt-mega-panel .chart-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 4. Improve the internal borders so they don't clash with the gold */
div.zt-mega-panel .stats-panel .stat-box {
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Mobile responsive */
@media (max-width: 991px) {
    div.zt-mega-panel {
        padding: 16px !important;
    }
    div.zt-mega-panel .stats-panel .stat-box {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}


/* =================================================================================== */
/* SUPREME MINIMALISM OVERRIDE - REQUESTED BY USER (ALL WHITE, NO COLOR CODING) */
/* =================================================================================== */

/* Remove any glowing or colored backgrounds */
.stats-panel .stat-box, 
.zt-mega-panel .stats-panel .stat-box {
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove colored accents */
.stats-panel .stat-box::before, 
.zt-mega-panel .stats-panel .stat-box::before {
    display: none !important;
}

/* Make all values pure white and remove text shadows */
.stats-panel .stat-value,
.zt-mega-panel .stats-panel .stat-value,
.stat-box.positive .stat-value,
.stat-box.negative .stat-value,
.stat-box.blue .stat-value {
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
}

/* Muted elegant labels */
.stats-panel .stat-label,
.zt-mega-panel .stats-panel .stat-label {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Muted elegant subtext */
.stats-panel .stat-sub,
.zt-mega-panel .stats-panel .stat-sub {
    color: rgba(255, 255, 255, 0.25) !important;
    font-size: 0.6rem !important;
    font-weight: 400 !important;
}

/* Enforce solid unified panel layout */
.stats-panel .stats-row,
.zt-mega-panel .stats-panel .stats-row {
    gap: 0 !important;
    background: rgba(10, 14, 20, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.stats-panel .stat-box,
.zt-mega-panel .stats-panel .stat-box {
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 !important;
    padding: 1.25rem 1.5rem !important;
}

.stats-panel .stat-box:last-child,
.zt-mega-panel .stats-panel .stat-box:last-child {
    border-right: none !important;
}

@media (max-width: 991px) {
    .stats-panel .stats-row,
    .zt-mega-panel .stats-panel .stats-row {
        flex-direction: column !important;
    }
    .stats-panel .stat-box,
    .zt-mega-panel .stats-panel .stat-box {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    .stats-panel .stat-box:last-child,
    .zt-mega-panel .stats-panel .stat-box:last-child {
        border-bottom: none !important;
    }
}


/* Additional fixes to ensure a single unified bar */
.stats-panel.zt-panel,
.zt-mega-panel .stats-panel {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.stats-row {
    background: rgba(10, 14, 20, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    display: flex !important; /* Or grid, but flex guarantees it stretches */
}

/* Fallback if display: flex causes issues, we can keep grid but gap 0 */
.stats-row {
    display: grid !important;
    gap: 0 !important;
}

.stat-box {
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.5rem !important;
    text-align: left !important;
    box-shadow: none !important;
}
.stat-box:last-child {
    border-right: none !important;
}

/* Pure White Values */
.stat-box .stat-value {
    color: #ffffff !important;
    text-shadow: none !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem !important;
    margin-top: 0.35rem !important;
}

/* Elegant Labels */
.stat-box .stat-label {
    color: rgba(255, 255, 255, 0.45) !important;
    text-transform: uppercase !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

/* Subtext */
.stat-box .stat-sub {
    color: rgba(255, 255, 255, 0.25) !important;
    font-size: 0.65rem !important;
}

/* Hide color accents */
.stat-box::before,
.stat-box.positive::before,
.stat-box.negative::before,
.stat-box.blue::before {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .stats-row {
        grid-template-columns: 1fr !important;
    }
    .stat-box {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .stat-box:last-child {
        border-bottom: none !important;
    }
}


/* Ensure both chart cards are exactly the same height */
.dashboard-grid {
    align-items: stretch !important;
}

.dashboard-grid .chart-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.dashboard-grid .chart-card .chart-container {
    flex: 1 !important; /* Grow to fill space so canvas can expand */
    min-height: 200px !important;
}

/* Allow canvas to fill the flex container */
.dashboard-grid .chart-card .chart-container canvas {
    height: 100% !important;
}

/* Ensure the right side chart container doesn't overly stretch if we want the legend at the bottom */
.dashboard-grid .chart-card:last-child .chart-container {
    flex: 0 0 auto !important; /* Keep it fixed so it doesn't stretch weirdly */
}

/* Force the line chart container to completely fill the available height */
.dashboard-grid .chart-card:first-child .chart-container {
    max-height: none !important;
    height: 100% !important;
}
