   * { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --header-h: 40px;
            --ticker-h: 28px;
            --background: #0a0a0a;
            --foreground: #ededed;
            --panel-bg: #0a0a0a;
            --panel-border: rgba(255, 255, 255, 0.1);
            --muted-text: #a1a1aa;
            --brand-accent: #10b981;
            --header-bg: rgba(0, 0, 0, 0.7);
            --header-border: rgba(255, 255, 255, 0.1);
            --btn-inactive-fg: #d4d4d8;
        }
        html, body { height: 100vh; width: 100vw; overflow: hidden; }
        body {
            font-family: 'IBM Plex Mono', monospace;
            background: var(--background);
            color: var(--foreground);
            display: flex;
            flex-direction: column;
        }
        .ui-sans { font-family: 'Inter', system-ui, sans-serif; }
        .tabular-nums { font-variant-numeric: tabular-nums; }
        
        @keyframes ticker-scroll { 
            0% { transform: translateX(0); } 
            100% { transform: translateX(-25%); } 
        }
        
        .ticker-track { 
            animation: ticker-scroll 60s linear infinite;
            will-change: transform;
            display: flex !important;
            align-items: center !important;
            gap: 1.5rem !important;
        }
        
        .ticker-item {
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }
        
        .ticker-coin-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .ticker-coin-fallback {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(16, 185, 129, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            font-weight: 700;
            color: #10b981;
            flex-shrink: 0;
        }
        
        @keyframes flash-green {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; color: #16a34a; }
        }
        
        @keyframes flash-red {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; color: #ef4444; }
        }
        
        .flash-green { animation: flash-green 0.4s ease; }
        .flash-red { animation: flash-red 0.4s ease; }
        
        .number-cell {
            display: inline-block;
            min-width: 80px;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }
        
        .number-cell-small {
            display: inline-block;
            min-width: 60px;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }
        
        .number-cell-mini {
            display: inline-block;
            min-width: 50px;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }
        
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 3px; }
        ::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.3); border-radius: 3px; transition: all 0.3s ease; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.5); }
        ::-webkit-scrollbar-thumb:active { background: rgba(16, 185, 129, 0.7); }
        * { scrollbar-width: thin; scrollbar-color: rgba(16, 185, 129, 0.3) rgba(255, 255, 255, 0.02); }
        
        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .flex-shrink-0 { flex-shrink: 0; }
        .flex-1 { flex: 1; }
        .items-baseline { align-items: baseline; }
        .space-x-1 > * + * { margin-left: 0.25rem; }
        .space-x-0\.5 > * + * { margin-left: 0.125rem; }
        .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
        .px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
        .py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
        .text-xs { font-size: 0.75rem; line-height: 1rem; }
        .font-black { font-weight: 900; }
        .font-bold { font-weight: 700; }
        .font-semibold { font-weight: 600; }
        .rounded { border-radius: 0.25rem; }
        .mr-1 { margin-right: 0.25rem; }
        .ml-1 { margin-left: 0.25rem; }
        .border-b { border-bottom-width: 1px; }
        .backdrop-blur { backdrop-filter: blur(10px); }
        
        #header {
            height: var(--header-h);
            background: var(--header-bg);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--header-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 0.5rem;
            flex-shrink: 0;
        }
        
        .icon-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s ease;
            cursor: pointer;
        }
        
        .icon-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(16, 185, 129, 0.3);
        }
        
        @media (max-width: 1023px) {
            .logo-text-full { display: none !important; }
            .logo-text-compact { display: block !important; }
            .nav-text-full { display: none !important; }
            .nav-text-compact { display: block !important; }
        }
        
        @media (min-width: 1024px) {
            .logo-text-compact { display: none !important; }
            .nav-text-compact { display: none !important; }
        }
        
        .nav-link-mobile {
            padding: 4px 8px;
            font-size: 10px;
            font-weight: 700;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .nav-link-mobile.active {
            background: rgba(16, 185, 129, 0.15);
            color: #10b981;
        }
        
        #ticker-wrapper {
            height: var(--ticker-h);
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(8px);
            border-bottom: 1px solid var(--panel-border);
            overflow: hidden;
            flex-shrink: 0;
        }
        
        main { flex: 1; overflow-y: auto; }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 32px 20px;
        }
        
        .page-title {
            font-size: 28px;
            font-weight: 900;
            margin-bottom: 24px;
            font-family: 'Inter', sans-serif;
        }
        
        .desktop-table-wrapper { overflow-x: auto; }
        .desktop-table {
            width: 100%;
            background: rgba(10, 10, 10, 0.6);
            border: 1px solid var(--panel-border);
            border-radius: 8px;
            overflow: hidden;
            table-layout: fixed;
        }
        .desktop-table thead {
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid var(--panel-border);
        }
        .desktop-table th {
            padding: 14px 12px;
            text-align: left;
            font-size: 11px;
            font-weight: 600;
            color: var(--muted-text);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .desktop-table th:nth-child(1) { width: 60px; }
        .desktop-table th:nth-child(2) { width: auto; }
        .desktop-table th:nth-child(3) { width: 120px; }
        .desktop-table th:nth-child(4) { width: 120px; }
        .desktop-table th:nth-child(5) { width: 100px; }
        .desktop-table th:nth-child(6) { width: 80px; }
        .desktop-table th:nth-child(7) { width: 90px; }
        .desktop-table th.text-right { text-align: right; }
        .desktop-table tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
        .desktop-table tr:last-child { border-bottom: none; }
        .desktop-table td {
            padding: 16px 12px;
            font-size: 12px;
            color: var(--foreground);
        }
        .desktop-table td.text-right { text-align: right; }
        
        .model-cell { display: flex; align-items: center; gap: 10px; }
        .model-icon { font-size: 24px; }
        .model-name { font-weight: 600; }
        
        .rank-badge {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 13px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: #a1a1aa;
        }
        
        .text-success { color: #10b981; font-weight: 600; }
        .text-danger { color: #ef4444; font-weight: 600; }
        .pnl-positive { color: #16a34a; }
        .pnl-negative { color: #ef4444; }
        
        .mobile-cards { display: none; }
        .model-card {
            background: rgba(10, 10, 10, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .card-rank { font-size: 20px; font-weight: 700; color: #a1a1aa; }
        .card-stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        .card-stat { display: flex; flex-direction: column; gap: 4px; }
        .card-stat-label {
            font-size: 10px;
            text-transform: uppercase;
            color: #888;
            font-weight: 600;
        }
        .card-stat-value {
            font-size: 14px;
            font-weight: 600;
            min-height: 24px;
        }
        
        .bottom-section {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 20px;
            margin-top: 32px;
        }
        .info-cards { display: flex; flex-direction: column; gap: 16px; }
        .info-card {
            background: rgba(10, 10, 10, 0.6);
            border: 1px solid var(--panel-border);
            border-radius: 8px;
            padding: 20px;
        }
        .info-card-label {
            font-size: 10px;
            text-transform: uppercase;
            color: var(--muted-text);
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }
        
        #winner {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 32px;
        }
        
        .total-value {
            font-size: 32px;
            font-weight: 900;
            font-family: 'IBM Plex Mono', monospace;
            min-width: 180px;
            display: inline-block;
        }
        
        .chart-card {
            background: rgba(10, 10, 10, 0.6);
            border: 1px solid var(--panel-border);
            border-radius: 8px;
            padding: 20px;
        }
        .chart-container {
            margin-top: 16px;
            height: 200px;
        }
        
        .pairs-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 0;
        }
        
        .pair-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid rgba(16, 185, 129, 0.3);
            transition: all 0.2s ease;
            cursor: pointer;
            object-fit: cover;
        }
        
        .pair-icon:hover {
            border-color: rgba(16, 185, 129, 0.6);
            transform: scale(1.1);
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
        }
        
        @media (max-width: 768px) {
            html, body { overflow-x: hidden !important; width: 100% !important; max-width: 100vw !important; }
            #header { padding: 0 0.75rem; }
            .container { padding: 20px 12px; }
            .page-title { font-size: 22px; margin-bottom: 16px; }
            .desktop-table-wrapper { display: none; }
            .mobile-cards { display: block; }
            .bottom-section { grid-template-columns: 1fr; gap: 16px; }
            .chart-container { height: 180px; }
            ::-webkit-scrollbar { width: 4px; height: 4px; }
        }

/* SweetAlert2 Dark Theme Customization */
.modern-update-popup {
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px) !important;
}

.modern-update-popup .swal2-title {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    margin-bottom: 20px !important;
}

.modern-update-popup .swal2-html-container {
    color: #d0d0d0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Confirm Button - Green */
.modern-update-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease !important;
}

.modern-update-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

/* Cancel Button - Dark */
.modern-update-cancel {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #a0a0a0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
}

.modern-update-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Loading Spinner Color */
.swal2-loader {
    border-color: #10b981 transparent #10b981 transparent !important;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Backdrop Blur */
.swal2-container.swal2-backdrop-show {
    backdrop-filter: blur(8px);
}