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

/* ============ DARK (default) ============ */
:root {
    --bg-0: #030304;
    --bg-1: #08080d;
    --bg-2: #0f0f18;
    --bg-3: #17172a;
    --text: #eeeef5;
    --text-dim: rgba(220,220,255,0.55);
    --text-mute: rgba(180,180,220,0.35);
    --border: rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.14);
    --accent: #c8aaff;
    --accent-2: #7ed4fd;
    --accent-soft: rgba(200,170,255,0.10);
    --glow: rgba(200,170,255,0.18);
    --danger: #ff4d6d;
    --success: #3be8b0;
    --warning: #ffd166;
    --radius: 8px;
    --radius-lg: 14px;
    --glass-bg: rgba(15,15,28,0.72);
    --glass-border: rgba(200,170,255,0.13);
    --glass-shadow: 0 8px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
    --particle-color: rgba(200,170,255,0.6);
}

/* ============ LIGHT ============ */
[data-theme="light"] {
    --bg-0: #f8f8fc;
    --bg-1: #f0f0f8;
    --bg-2: #e8e8f4;
    --bg-3: #dcdcee;
    --text: #1a1a2e;
    --text-dim: rgba(20,20,60,0.6);
    --text-mute: rgba(20,20,60,0.38);
    --border: rgba(0,0,60,0.08);
    --border-strong: rgba(0,0,60,0.15);
    --accent: #7c3aed;
    --accent-2: #0ea5e9;
    --accent-soft: rgba(124,58,237,0.10);
    --glow: rgba(124,58,237,0.15);
    --danger: #e11d48;
    --success: #059669;
    --warning: #d97706;
    --glass-bg: rgba(245,245,252,0.80);
    --glass-border: rgba(124,58,237,0.15);
    --glass-shadow: 0 8px 40px rgba(100,80,200,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    --particle-color: rgba(124,58,237,0.5);
}

html, body {
    height: 100%;
    background: var(--bg-0);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============ CANVAS LAYER ============ */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* everything above canvas */
.app-shell, .login-shell { position: relative; z-index: 1; }
