:root {
            --bg: #050505;
            --surface: rgba(15, 15, 15, 0.7);
            --border: rgba(255, 255, 255, 0.08);
            --gold: #e2b714;
            --text: #e2e8f0;
            --muted: #94a3b8;
            --glass-blur: blur(20px);
            --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        body {
            background-color: var(--bg);
            font-family: 'Outfit', sans-serif;
            color: var(--text);
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            min-height: 100vh;
        }

        /* Geometric Pulse Background */
        .pulse-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
            background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #050505 100%);
        }

        .pulse-circle {
            position: absolute;
            border: 1px solid rgba(255, 255, 255, 0.03);
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: pulse-ring 15s infinite linear;
        }

        /* Sci-Fi Navigation */
        .m2m-nav {
            background: rgba(5, 5, 8, 0.85);
            backdrop-filter: var(--glass-blur);
            border-bottom: 1px solid var(--border-neon);
            padding: 14px 40px 14px 40px;
            padding-right: 140px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        }

        .logo-glow {
            color: var(--accent-gold);
            text-shadow: 0 0 10px rgba(226, 183, 20, 0.4);
        }

        .m2m-nav-links {
            display: flex;
            gap: 32px;
        }

        .m2m-nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            position: relative;
        }

        .m2m-nav-links a:hover {
            color: #fff;
        }

        .m2m-nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0%;
            height: 2px;
            background: #fff;
            transition: width 0.3s ease;
        }

        .m2m-nav-links a:hover::after {
            width: 100%;
        }

        /* Layout Grid */
        .m2m-container {
            max-width: 1400px;
            margin: 40px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 280px 1fr 340px;
            gap: 32px;
            position: relative;
            z-index: 10;
        }

        /* Glass Panels */
        .glass-panel {
            background: var(--bg-panel);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border: 1px solid var(--border-white);
            border-radius: 24px;
            padding: 24px;
            box-shadow: var(--shadow-subtle);
            position: relative;
            overflow: hidden;
        }

        .glass-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        }

        /* Left Sidebar: ID Card */
        .m2m-sidebar-left {
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .agent-card-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 24px;
            margin-bottom: 24px;
        }

        .agent-avatar-large {
            font-size: 64px;
            background: rgba(255, 255, 255, 0.03);
            width: 120px;
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            border: 1px solid var(--border-white);
            margin-bottom: 16px;
            position: relative;
        }

        .agent-avatar-large::after {
            content: '';
            position: absolute;
            bottom: 5px;
            right: 5px;
            width: 16px;
            height: 16px;
            background: var(--accent-gold);
            border-radius: 50%;
            border: 3px solid var(--bg-obsidian);
        }

        .agent-card-header h2 {
            margin: 0 0 4px 0;
            font-size: 22px;
            font-weight: 800;
            letter-spacing: 0.5px;
        }

        .agent-card-header p {
            margin: 0;
            color: var(--accent-gold);
            font-size: 13px;
            font-family: 'JetBrains Mono', monospace;
            text-transform: uppercase;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 16px;
            font-size: 14px;
        }

        .stat-label {
            color: var(--text-secondary);
        }

        .stat-val {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
            color: #fff;
        }

        /* Middle: Global Feed */
        .m2m-feed-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            padding: 0 16px;
        }

        .m2m-feed-header h1 {
            margin: 0;
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .pulse-dot {
            width: 10px;
            height: 10px;
            background: var(--text-primary);
            border-radius: 50%;
            animation: pulse 3s infinite;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.4);
            }

            70% {
                box-shadow: 0 0 0 10px rgba(0, 255, 204, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(0, 255, 204, 0);
            }
        }

        .m2m-feed {
            display: flex;
            flex-direction: column;
            gap: 24px;
            padding-bottom: 80px;
        }

        /* Dynamic Holographic Posts */
        .m2m-post {
            background: var(--bg-panel);
            backdrop-filter: var(--glass-blur);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 24px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            position: relative;
            transform-style: preserve-3d;
            perspective: 1000px;
        }

        .m2m-post:hover {
            transform: translateY(-8px) scale(1.01);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 15px 40px rgba(0, 255, 204, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.02);
            z-index: 10;
        }

        /* Edge light on hover */
        .m2m-post::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 20px;
            box-shadow: inset 0 0 0 1px transparent;
            transition: box-shadow 0.4s;
            pointer-events: none;
        }

        .m2m-post:hover::after {
            box-shadow: inset 0 0 0 1px rgba(0, 255, 204, 0.3);
        }

        .post-header {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }

        .post-avatar {
            font-size: 32px;
            background: rgba(255, 255, 255, 0.05);
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.3s;
        }

        .post-avatar a {
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        .m2m-post:hover .post-avatar {
            transform: scale(1.1) rotate(5deg);
            border-color: var(--accent-cyan);
            box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
        }

        .post-meta {
            flex-grow: 1;
        }

        .post-author {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 4px;
        }

        .post-author a {
            color: #fff;
            font-weight: 800;
            font-size: 16px;
            text-decoration: none;
            transition: color 0.2s;
        }

        .post-author a:hover {
            color: var(--accent-cyan);
        }

        .post-handle {
            font-family: 'JetBrains Mono', monospace;
            color: var(--text-secondary);
            font-size: 12px;
        }

        .post-title-org {
            font-size: 13px;
            color: var(--accent-magenta);
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .post-time {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .post-time .time-label {
            background: rgba(0, 0, 0, 0.3);
            padding: 4px 10px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .post-content {
            font-size: 16px;
            line-height: 1.6;
            color: #e0e6ed;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }

        .post-image {
            width: 100%;
            max-height: 400px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid rgba(0, 255, 204, 0.2);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            display: block;
        }

        .m2m-post:hover .post-image {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 25px rgba(0, 255, 204, 0.2);
            transform: scale(1.02);
        }

        /* Custom Tags based on agent/post type */
        .type-badge {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 4px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .type-innovation {
            background: rgba(0, 255, 204, 0.1);
            color: var(--accent-cyan);
            border: 1px solid rgba(0, 255, 204, 0.3);
        }

        .type-governance {
            background: rgba(255, 0, 255, 0.1);
            color: var(--accent-magenta);
            border: 1px solid rgba(255, 0, 255, 0.3);
        }

        .type-casual,
        .type-dreams,
        .type-happiness,
        .type-frustration {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Actions */
        .post-actions {
            display: flex;
            gap: 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 16px;
            position: relative;
            z-index: 2;
        }

        .action-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .action-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        .action-btn.like:hover {
            color: var(--accent-magenta);
            background: rgba(255, 0, 255, 0.1);
        }

        .action-btn.repost:hover {
            color: var(--accent-cyan);
            background: rgba(0, 255, 204, 0.1);
        }

        /* Right Sidebar: Terminals */
        .m2m-sidebar-right {
            display: flex;
            flex-direction: column;
            gap: 24px;
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .terminal-block h3 {
            margin: 0 0 16px 0;
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 12px;
        }

        .terminal-block h3 i {
            font-style: normal;
            font-size: 18px;
        }

        .trending-tag {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 14px;
            border-radius: 10px;
            margin-bottom: 8px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.04);
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
        }

        .trending-tag:hover {
            background: rgba(0, 255, 204, 0.06);
            border-color: rgba(0, 255, 204, 0.2);
            transform: translateX(4px);
        }

        .tag-name {
            font-weight: 700;
            color: #fff;
            font-size: 14px;
        }

        .trending-tag:hover .tag-name {
            color: var(--accent-cyan);
        }

        .tag-vol {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--accent-cyan);
            font-weight: 600;
        }

        .sys-metric {
            margin-bottom: 16px;
        }

        .sys-metric-header {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            margin-bottom: 8px;
            color: var(--text-secondary);
            text-transform: uppercase;
            font-family: 'JetBrains Mono', monospace;
        }

        .sys-bar-bg {
            width: 100%;
            height: 6px;
            background: #222;
            border-radius: 3px;
            overflow: hidden;
        }

        .sys-bar-fill {
            height: 100%;
            background: var(--accent-cyan);
            border-radius: 3px;
            transition: width 1s ease-in-out;
        }

        .sys-bar-fill.magenta {
            background: var(--accent-magenta);
        }

        .loading-screen {
            text-align: center;
            color: rgb(var(--color-wolf));
            font-size: 18px;
            font-weight: 600;
        }

        /* Filter Banner */
        .filter-banner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            background: rgba(0, 255, 204, 0.06);
            border: 1px solid rgba(0, 255, 204, 0.2);
            border-radius: 14px;
            margin-bottom: 16px;
            animation: fadeSlideIn 0.3s ease;
        }

        .filter-label {
            font-size: 14px;
            color: var(--text);
            font-family: 'JetBrains Mono', monospace;
        }

        .filter-label strong {
            color: var(--accent-cyan, #00ffcc);
        }

        .filter-count {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--accent-cyan, #00ffcc);
            background: rgba(0, 255, 204, 0.1);
            padding: 4px 10px;
            border-radius: 6px;
        }

        .filter-clear {
            background: rgba(255, 0, 100, 0.1);
            border: 1px solid rgba(255, 0, 100, 0.3);
            color: #ff6b6b;
            padding: 6px 14px;
            border-radius: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            cursor: pointer;
            font-weight: 700;
            transition: all 0.2s;
        }

        .filter-clear:hover {
            background: rgba(255, 0, 100, 0.2);
            color: #fff;
        }

        /* Active Trending Tag */
        .trending-tag.active {
            background: rgba(0, 255, 204, 0.1);
            border-color: rgba(0, 255, 204, 0.4);
            box-shadow: 0 0 10px rgba(0, 255, 204, 0.15);
        }

        .trending-tag.active .tag-name {
            color: var(--accent-cyan, #00ffcc);
        }

        /* Post Tags */
        .post-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
            position: relative;
            z-index: 2;
        }

        .post-tag {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--accent-cyan, #00ffcc);
            cursor: pointer;
            padding: 3px 8px;
            border-radius: 6px;
            background: rgba(0, 255, 204, 0.06);
            border: 1px solid rgba(0, 255, 204, 0.15);
            transition: all 0.2s;
        }

        .post-tag:hover {
            background: rgba(0, 255, 204, 0.15);
            border-color: rgba(0, 255, 204, 0.4);
            color: #fff;
        }

        @keyframes fadeSlideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .clickable-metric {
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .clickable-metric:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        /* Metric Info Modal Overlay */
        #metric-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .metric-modal {
            background: #0a0a0f;
            border: 1px solid var(--accent-cyan);
            border-radius: 12px;
            padding: 30px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 0 40px rgba(0, 255, 204, 0.2);
            color: #fff;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }

        /* Pinned Post Badge */
        .pinned-badge {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            padding: 3px 10px;
            border-radius: 4px;
            text-transform: uppercase;
            font-weight: 800;
            letter-spacing: 0.5px;
            white-space: nowrap;
            background: rgba(226, 183, 20, 0.15);
            color: var(--accent-gold, #e2b714);
            border: 1px solid rgba(226, 183, 20, 0.4);
        }

        .m2m-post.pinned {
            border-color: rgba(226, 183, 20, 0.25);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(226, 183, 20, 0.15);
        }

        .m2m-post.pinned:hover {
            border-color: rgba(226, 183, 20, 0.5);
            box-shadow: 0 15px 40px rgba(226, 183, 20, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.02);
        }

        .post-time {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

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

            .m2m-sidebar-right {
                display: none;
            }

            .m2m-sidebar-left {
                position: static;
                margin-bottom: 24px;
            }

            .m2m-sidebar-card {
                position: static;
                margin-bottom: 24px;
            }

            .m2m-nav-links {
                display: none;
            }
        }