/* Advanced Premium Design System */
:root {
    --bg-main: #060608;
    --bg-card: rgba(20, 20, 25, 0.7);
    --bg-sidebar: #0a0a0f;
    --accent-primary: #3b82f6;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(16px);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-group { margin-bottom: 32px; }
.nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding-left: 12px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
    color: var(--accent-primary);
    box-shadow: inset 3px 0 0 var(--accent-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 48px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.header-title h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-title p { color: var(--text-secondary); font-size: 1.1rem; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, 0.2); }

.stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.stat-icon { font-size: 1.5rem; }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; }
.stat-value { font-size: 2.25rem; font-weight: 700; margin-bottom: 8px; }
.stat-footer { font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }

.trend-up { color: var(--accent-success); }
.trend-down { color: var(--accent-danger); }

/* Provider Section */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.provider-card:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: var(--shadow-premium); }

.provider-header {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.provider-name { font-weight: 700; font-size: 1.1rem; }
.provider-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; background: rgba(59, 130, 246, 0.1); color: var(--accent-primary); }

.provider-body { padding: 24px; }
.p-stat-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.p-stat-label { color: var(--text-secondary); font-size: 0.9rem; }
.p-stat-value { font-weight: 600; }

.p-progress { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; margin-top: 16px; overflow: hidden; }
.p-progress-bar { height: 100%; background: var(--accent-success); transition: width 1s ease; }

/* Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 48px;
}

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 20px 24px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; background: rgba(255,255,255,0.01); }
td { padding: 20px 24px; border-top: 1px solid var(--border-color); font-size: 0.95rem; }

.row-hover:hover { background: rgba(255, 255, 255, 0.01); }

.badge { padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-buy { background: rgba(16, 185, 129, 0.1); color: var(--accent-success); }
.badge-sell { background: rgba(239, 68, 68, 0.1); color: var(--accent-danger); }

.price-box { font-family: monospace; display: flex; flex-direction: column; gap: 2px; }
.price-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

.roi-pill { padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; text-align: right; }
.roi-plus { color: var(--accent-success); }
.roi-minus { color: var(--accent-danger); }

/* Responsive */
@media (max-width: 1200px) {
    .sidebar { width: 80px; padding: 32px 10px; }
    .logo span, .nav-label, .nav-item span:not(.icon) { display: none; }
    .main-content { margin-left: 80px; padding: 32px; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .header { flex-direction: column; gap: 24px; }
}
