:root {
            --bg: #030408;
            --surface: rgba(10, 12, 20, 0.6);
            --border: rgba(0, 255, 204, 0.15);
            --cyan: #00ffcc;
            --purple: #bf00ff;
            --blue: #0088ff;
            --text: #e2e8f0;
            --muted: #94a3b8;
            --gold: #e2b714;
            --glow: 0 0 20px rgba(0, 255, 204, 0.3);
            --font-main: 'Space Grotesk', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
        }

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

        body {
            background-color: var(--bg);
            color: var(--text);
            font-family: var(--font-main);
            min-height: 100vh;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
        }

        /* Ambient Background */
        .ambient-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(circle at 50% 0%, #080c18 0%, #030408 100%);
            overflow: hidden;
        }

        .ambient-glow {
            position: absolute;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(0, 255, 204, 0.05) 0%, transparent 60%);
            top: -200px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 50%;
            filter: blur(80px);
            animation: breathe 8s infinite alternate ease-in-out;
        }

        @keyframes breathe {
            0% {
                transform: translateX(-50%) scale(1);
                opacity: 0.8;
            }

            100% {
                transform: translateX(-50%) scale(1.1);
                opacity: 1;
            }
        }

        /* Header */
        header {
            padding: 24px 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border);
            background: rgba(3, 4, 8, 0.8);
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 16px;
            text-decoration: none;
            color: #fff;
        }

        .logo h1 {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -1px;
            text-transform: uppercase;
        }

        .logo span {
            color: var(--cyan);
            font-family: var(--font-mono);
            font-size: 14px;
            letter-spacing: 2px;
            padding-left: 12px;
            border-left: 1px solid rgba(255, 255, 255, 0.2);
        }

        nav a {
            color: var(--muted);
            text-decoration: none;
            font-family: var(--font-mono);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-left: 32px;
            transition: color 0.3s;
        }

        nav a:hover {
            color: var(--cyan);
        }

        /* Main Layout */
        .container {
            flex: 1;
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 40px;
            max-width: 1600px;
            margin: 0 auto;
            padding: 40px;
            width: 100%;
        }

        /* Left Panel - Swarm Command */
        .swarm-panel {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 24px;
            box-shadow: var(--glow);
            height: fit-content;
            position: sticky;
            top: 120px;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }

        .panel-title {
            font-family: var(--font-mono);
            color: var(--cyan);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .panel-title::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            background: var(--cyan);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--cyan);
        }

        .stat-block {
            margin-bottom: 24px;
        }

        .stat-val {
            font-size: 32px;
            font-weight: 700;
            color: #fff;
            line-height: 1;
        }

        .stat-lbl {
            font-size: 12px;
            color: var(--muted);
            margin-top: 4px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-spawn {
            width: 100%;
            background: linear-gradient(135deg, var(--blue), var(--purple));
            border: none;
            color: white;
            padding: 16px;
            border-radius: 12px;
            font-family: var(--font-main);
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 20px rgba(191, 0, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .btn-spawn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(0, 255, 204, 0.3);
            background: linear-gradient(135deg, rgba(0, 136, 255, 1), rgba(0, 255, 204, 1));
        }

        .btn-spawn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .spawn-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 12px;
            border-radius: 8px;
            font-family: var(--font-mono);
            font-size: 14px;
            margin-bottom: 16px;
            outline: none;
        }

        .spawn-input:focus {
            border-color: var(--cyan);
        }

        /* Right Panel - Knowledge Feed */
        .feed-container {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .search-bar {
            background: var(--surface);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 16px 24px;
            border-radius: 100px;
            display: flex;
            align-items: center;
            transition: border-color 0.3s;
        }

        .search-bar:focus-within {
            border-color: var(--cyan);
        }

        .search-bar input {
            background: transparent;
            border: none;
            color: white;
            font-size: 16px;
            font-family: var(--font-main);
            width: 100%;
            outline: none;
        }

        .article-card {
            background: var(--surface);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 32px;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .article-card:hover {
            border-color: var(--cyan);
            transform: translateY(-4px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 255, 204, 0.05);
        }

        .article-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--cyan);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .article-card:hover::before {
            opacity: 1;
        }

        .art-meta {
            display: flex;
            justify-content: space-between;
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--muted);
            margin-bottom: 16px;
            text-transform: uppercase;
        }

        .art-tag {
            background: rgba(0, 255, 204, 0.1);
            color: var(--cyan);
            padding: 4px 10px;
            border-radius: 4px;
            border: 1px solid rgba(0, 255, 204, 0.2);
        }

        .art-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 16px;
            color: #fff;
        }

        .art-summary {
            font-size: 15px;
            line-height: 1.6;
            color: #CBD5E1;
            margin-bottom: 24px;
        }

        .art-facts {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .art-facts h4 {
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--cyan);
            margin-bottom: 12px;
            text-transform: uppercase;
        }

        .art-facts ul {
            list-style: none;
        }

        .art-facts li {
            position: relative;
            padding-left: 20px;
            margin-bottom: 8px;
            font-size: 14px;
            color: var(--text);
        }

        .art-facts li::before {
            content: '›';
            position: absolute;
            left: 0;
            color: var(--purple);
            font-weight: bold;
        }

        .art-insight {
            padding: 16px;
            border-left: 2px solid var(--gold);
            background: rgba(226, 183, 20, 0.05);
            font-style: italic;
            font-size: 14px;
            color: #e2e8f0;
        }

        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: var(--muted);
        }

        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .loading-pulse {
            display: inline-block;
            width: 12px;
            height: 12px;
            background: var(--cyan);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--cyan);
            animation: pulse-op 1s infinite alternate;
        }

        @keyframes pulse-op {
            from {
                opacity: 0.3;
                transform: scale(0.8);
            }

            to {
                opacity: 1;
                transform: scale(1.2);
            }
        }

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

            .swarm-panel {
                position: static;
            }
        }