/* === ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ === */
:root {
    --bg-primary: #08080f;
    --bg-secondary: #0d0d1a;
    --bg-card: rgba(18, 18, 32, 0.7);
    --bg-card-hover: rgba(25, 25, 45, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-input: rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(124, 58, 237, 0.3);
    --text-primary: #f0f0f7;
    --text-secondary: #9898b8;
    --text-muted: #606080;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.5);
    --accent-cyan: #06b6d4;
    --topbar-bg: rgba(10, 10, 18, 0.8);
    --sidebar-bg: rgba(12, 12, 22, 0.6);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f5f3ff;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-input: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(124, 58, 237, 0.4);
    --text-primary: #1a1025;
    --text-secondary: #5c5070;
    --text-muted: #9085a0;
    --accent: #7c3aed;
    --accent-light: #6d28d9;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --topbar-bg: rgba(255, 255, 255, 0.8);
    --sidebar-bg: rgba(255, 255, 255, 0.7);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    transition: background 0.4s ease, color 0.4s ease;
}

a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128, 128, 160, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 160, 0.4); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.7); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}