  * { 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; 
            font-family: 'JetBrains Mono', monospace;
            background: var(--background);
            color: var(--foreground);
        }
        
        body { display: flex; flex-direction: column; }
        .ui-sans { font-family: 'Inter', system-ui, sans-serif; }
        .tabular-nums { font-variant-numeric: tabular-nums; }
        
        header { height: var(--header-h); 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);
        }
        @keyframes flash-green {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(22, 163, 74, 0.2); }
}

@keyframes flash-red {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(239, 68, 68, 0.2); }
}

.flash-green {
    animation: flash-green 0.6s ease;
}

.flash-red {
    animation: flash-red 0.6s ease;
}

        
        @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;
        }
        
     @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;
}
        
        main { 
            flex: 1; 
            overflow-y: auto; 
            padding: 20px;
        }
        
        .container {
            max-width: 1600px;
            margin: 0 auto;
        }
        
        .model-cards-container {
            margin-bottom: 24px;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        
        .model-cards-container::-webkit-scrollbar {
            display: none;
        }
        
        .model-cards {
            display: flex;
            gap: 12px;
            min-width: min-content;
        }
        
        .model-card {
            background: rgba(10, 10, 10, 0.8);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 180px;
            flex-shrink: 0;
        }
        
        .model-card:hover {
            border-color: rgba(16, 185, 129, 0.3);
            background: rgba(16, 185, 129, 0.05);
            transform: translateY(-2px);
        }
        
        .model-card.active {
            border-color: #10b981 !important;
            background: rgba(16, 185, 129, 0.15) !important;
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
        }
        
        .model-card-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }
        
        .model-card-name {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .model-card-capital {
            font-size: 15px;
            font-weight: 700;
            color: #10b981;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 24px;
        }
        
        .stat-card {
            background: rgba(10, 10, 10, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 16px;
            min-height: 88px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .stat-label {
            font-size: 11px;
            color: var(--muted-text);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .stat-value {
            font-size: 20px;
            font-weight: 700;
        }
        
        .stat-value.positive {
            color: #10b981;
        }
        
        .stat-value.negative {
            color: #ef4444;
        }
        
        .pnl-positive { color: #16a34a; }
        .pnl-negative { color: #ef4444; }
        
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        
        th {
            text-align: left;
            padding: 12px;
            background: rgba(255, 255, 255, 0.02);
            font-weight: 700;
            color: var(--muted-text);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        th.text-right {
            text-align: right;
        }
        
        td {
            padding: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        td.text-right {
            text-align: right;
        }
        
        tr:hover {
            background: rgba(255, 255, 255, 0.02);
        }
        
        .coin-badge {
            background: rgba(16, 185, 129, 0.15);
            color: #10b981;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 700;
            font-size: 11px;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px;
            color: var(--muted-text);
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 16px;
            margin-top: 20px;
            padding: 16px;
        }
        
        .pagination button {
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: var(--foreground);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .pagination button:hover:not(:disabled) {
            background: rgba(16, 185, 129, 0.1);
            border-color: #10b981;
        }
        
        .pagination button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        .page-info {
            color: var(--muted-text);
            font-size: 12px;
        }
        
        .loading {
            text-align: center;
            padding: 40px;
            color: var(--muted-text);
        }
        
        @media (max-width: 768px) {
            main { padding: 12px; }
            .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
            .model-card { min-width: 120px; }
            table { font-size: 10px; }
            th, td { padding: 8px 6px; }
        }

        /* 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);
}