:root {
    --bg-deep: #050510;
    --bg-panel: rgba(16, 16, 24, 0.62);
    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-bg-hover: rgba(255, 255, 255, 0.085);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-bright: rgba(255, 255, 255, 0.32);
    --glass-highlight: rgba(255, 255, 255, 0.22);
    --glass-shine: rgba(255, 255, 255, 0.45);
    --glass-shadow-deep: 0 12px 32px rgba(0, 0, 0, 0.45);
    --accent: #818cf8;
    --accent-2: #a5b4fc;
    --accent-glow: rgba(129, 140, 248, 0.45);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --sidebar-width: 340px;
    --item-radius: 16px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; -webkit-user-drag: none; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cc-svg-defs {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

/* --- BACKGROUND — enough mid-frequency detail for refraction to read --- */
.universe-bg {
    position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 18% 30%, rgba(99, 102, 241, 0.28), transparent 55%),
        radial-gradient(ellipse 55% 50% at 82% 70%, rgba(59, 130, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 40% 35% at 50% 100%, rgba(217, 70, 239, 0.14), transparent 60%),
        radial-gradient(circle at 40% 55%, rgba(165, 180, 252, 0.08), transparent 40%),
        radial-gradient(circle at 65% 25%, rgba(56, 189, 248, 0.07), transparent 35%);
}

.grid-overlay {
    position: fixed; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(rgba(165,180,252,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165,180,252,0.04) 1px, transparent 1px);
    background-size: 42px 42px, 42px 42px, 10px 10px, 10px 10px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
    .universe-bg { animation: none; }
}
