:root {
    /* Light Theme Default */
    --bg-base: #f4f4f6;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #fafafa;
    --bg-surface-hover: #f0f0f4;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(229, 9, 20, 0.4);

    --text-primary: #111114;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;

    /* Sectrox Branding */
    --sectrox-red: #e50914;
    --sectrox-red-hover: #ff1e27;
    --sectrox-red-glow: rgba(229, 9, 20, 0.4);

    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;

    /* VIP / Premium */
    --vip-gold: #d4a017;
    --vip-gold-glow: rgba(212, 160, 23, 0.4);
    --vip-diamond: #e50914;
    --vip-diamond-glow: rgba(229, 9, 20, 0.5);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* Sidebar Variables */
    --sidebar-bg: rgba(255, 255, 255, 0.6);
    --sidebar-shadow-inner: rgba(255, 255, 255, 1);
    --sidebar-shadow-outer: 10px 0 40px rgba(0, 0, 0, 0.03);
    --sidebar-item-hover-bg: rgba(0, 0, 0, 0.04);
    --sidebar-item-active-glow: linear-gradient(90deg, #ffffff 0%, #fafafa 100%);
    --sidebar-item-active-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    --sidebar-label-color: rgba(0, 0, 0, 0.35);
    --sidebar-item-color: rgba(0, 0, 0, 0.55);
    --sidebar-brand-gradient: linear-gradient(135deg, #111114 0%, #52525b 100%);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
    --header-height: 64px;

    /* Premium Transitions */
    --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 700ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
    --shadow-red-glow: 0 0 20px var(--sectrox-red-glow), 0 0 40px rgba(229, 9, 20, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-base: #020202;
    --bg-surface: #0a0a0c;
    --bg-surface-elevated: #111114;
    --bg-surface-hover: #18181c;

    --border-color: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(255, 0, 60, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --glass-bg: rgba(10, 10, 12, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);

    /* Sidebar Variables */
    --sidebar-bg: rgba(10, 10, 12, 0.7);
    --sidebar-shadow-inner: rgba(255, 255, 255, 0.03);
    --sidebar-shadow-outer: 10px 0 40px rgba(0, 0, 0, 0.5);
    --sidebar-item-hover-bg: rgba(255, 255, 255, 0.03);
    --sidebar-item-active-glow: linear-gradient(90deg, rgba(229, 9, 20, 0.15) 0%, transparent 100%);
    --sidebar-item-active-shadow: inset 1px 0 0 0 rgba(229, 9, 20, 0.5);
    --sidebar-label-color: rgba(255, 255, 255, 0.3);
    --sidebar-item-color: rgba(255, 255, 255, 0.5);
    --sidebar-brand-gradient: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

* {
    box-sizing: border-box;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 150, 150, 0.5);
}