:root {
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-brand: linear-gradient(135deg, #7c3aed, #06b6d4, #f472b6);
    --sidebar-width: 260px;
    --radius: 14px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
.admin-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(244,114,182,0.1) 0%, transparent 50%);
    z-index: 0;
    animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(124,58,237,0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(6,182,212,0.15) 0%, transparent 60%);
    animation: bgShift 12s ease-in-out infinite alternate;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15,15,35,0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 2;
}

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

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.site-logo {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-logo-sm {
    height: 80px;
    width: auto;
    max-width: 220px;
}

.site-logo-md {
    height: 120px;
    width: auto;
    max-width: 300px;
    margin: 0 auto 1.25rem;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    padding: 0.75rem 0.5rem;
    transition: transform 0.2s, opacity 0.2s;
}

.brand-logo-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.login-brand .brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--gradient-brand);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(124,58,237,0); }
}

.login-brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-brand p { color: var(--text-muted); margin-top: 0.25rem; font-size: 0.9rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
    background: rgba(255,255,255,0.08);
}

.input-icon-wrap { position: relative; }
.input-icon-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-icon-wrap .form-control { padding-left: 2.75rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    background: var(--gradient-brand);
    color: #fff;
    padding: 0.85rem;
    font-size: 1rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124,58,237,0.4); }

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: rgba(10,10,26,0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    min-height: 108px;
}

.brand-icon {
    width: 40px; height: 40px;
    background: var(--gradient-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav { flex: 1; padding: 1rem 0.75rem; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-bottom: 0.25rem;
}

.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-item.active {
    background: rgba(124,58,237,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(124,58,237,0.2);
}
.nav-item i { width: 20px; text-align: center; }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-avatar {
    width: 36px; height: 36px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-name { font-size: 0.85rem; font-weight: 600; }
.admin-email { font-size: 0.75rem; color: var(--text-muted); }

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--danger);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: background 0.3s;
}
.logout-btn:hover { background: rgba(239,68,68,0.1); }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10,10,26,0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
}

.page-title { font-size: 1.3rem; font-weight: 700; flex: 1; }

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.content-area { padding: 1.5rem 2rem 2rem; }

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.stat-card:nth-child(1)::before { background: var(--gradient-1); }
.stat-card:nth-child(2)::before { background: var(--gradient-2); }
.stat-card:nth-child(3)::before { background: var(--gradient-3); }
.stat-card:nth-child(4)::before { background: var(--gradient-4); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.stat-card:nth-child(1) .stat-icon { background: rgba(102,126,234,0.15); color: #667eea; }
.stat-card:nth-child(2) .stat-icon { background: rgba(245,87,108,0.15); color: #f5576c; }
.stat-card:nth-child(3) .stat-icon { background: rgba(79,172,254,0.15); color: #4facfe; }
.stat-card:nth-child(4) .stat-icon { background: rgba(67,233,123,0.15); color: #43e97b; }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ===== CHARTS ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: 0.5s;
}

.chart-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.chart-wrap { position: relative; height: 280px; }

/* ===== TABLE / PANEL ===== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

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

.panel-header h2 { font-size: 1.1rem; font-weight: 600; }

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

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-box input {
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    width: 240px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    width: 280px;
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.875rem;
}

th {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
tr:hover { background: rgba(255,255,255,0.02); }
tr:last-child { border-bottom: none; }

.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(6,182,212,0.15); color: var(--accent); }

.action-btns { display: flex; gap: 0.4rem; }

.btn-icon {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
}
.btn-icon.edit:hover { background: rgba(124,58,237,0.2); color: var(--primary-light); }
.btn-icon.delete:hover { background: rgba(239,68,68,0.2); color: var(--danger); }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-links { display: flex; gap: 0.35rem; }

.pagination-links a, .pagination-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.pagination-links a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.pagination-links .active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.show { display: flex; animation: fadeIn 0.2s; }

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

.modal {
    background: #12122a;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease-out;
}

.modal.lg { max-width: 560px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h3 { font-size: 1.1rem; font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.modal-body { padding: 1.5rem; }

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

.price-display {
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-align: center;
    margin-top: 0.5rem;
}

.price-display .price-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-display .price-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: var(--success); }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: var(--danger); }

.animate-in { animation: slideUp 0.4s ease-out; }

/* ===== SETTINGS ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.25rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.settings-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card h3 i { color: var(--primary-light); }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }

.login-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.25);
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .content-area { padding: 1rem; }
    .charts-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .search-box input { width: 180px; }
    .search-box input:focus { width: 200px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ===== PREFERENCE CONTROLS ===== */
.pref-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.lang-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

.lang-btn:hover { color: var(--text); background: var(--bg-card-hover); }
.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text);
    border-color: var(--primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-prefs {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
}

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-card: rgba(255,255,255,0.85);
    --bg-card-hover: rgba(255,255,255,1);
    --border: rgba(0,0,0,0.08);
    --text: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
}

[data-theme="light"] .admin-body::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(244,114,182,0.05) 0%, transparent 50%);
}

[data-theme="light"] .sidebar {
    background: rgba(255,255,255,0.95);
}

[data-theme="light"] .topbar {
    background: rgba(255,255,255,0.8);
}

[data-theme="light"] .login-card {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

[data-theme="light"] .form-control {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .form-control:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

[data-theme="light"] .modal {
    background: #ffffff;
}

[data-theme="light"] .stat-card,
[data-theme="light"] .panel,
[data-theme="light"] .chart-card,
[data-theme="light"] .settings-card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="light"] th {
    background: rgba(0,0,0,0.02);
}

[data-theme="light"] tr:hover {
    background: rgba(124,58,237,0.04);
}

[data-theme="light"] .nav-item.active {
    background: rgba(124,58,237,0.1);
}

[data-theme="light"] .search-box input {
    background: rgba(0,0,0,0.03);
}

[data-theme="light"] .btn-ghost {
    background: rgba(0,0,0,0.04);
}

[data-theme="light"] .btn-icon {
    background: rgba(0,0,0,0.04);
}

[data-theme="light"] .price-display {
    background: rgba(124,58,237,0.06);
    border-color: rgba(124,58,237,0.15);
}

@media (max-width: 768px) {
    .topbar-right { gap: 0.5rem; }
    .live-badge { display: none; }
}
