        :root {
            --bg-color: #0d0f12;
            --card-bg: rgba(22, 26, 33, 0.7);
            --card-border: rgba(255, 255, 255, 0.08);
            --text-main: #f0f3f6;
            --text-muted: #c9d1d9;
            --accent-primary: #58a6ff;
            --accent-green: #3fb950;
            --accent-orange: #f0883e;
            --glass-blur: blur(12px);
        }

        .text-muted {
            color: var(--text-muted) !important;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            background-image: radial-gradient(circle at 10% 20%, rgba(88, 166, 255, 0.05) 0%, transparent 40%),
                              radial-gradient(circle at 90% 80%, rgba(63, 185, 80, 0.04) 0%, transparent 40%);
            background-attachment: fixed;
        }

        h1, h2, h3, h4, th {
            font-family: 'Outfit', sans-serif;
        }

        .glass-card {
            background: var(--card-bg);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .glass-card:hover {
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        }

        .navbar-brand {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-primary), #bc85ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 1.6rem;
        }

        .navbar-brand .emoji {
            display: inline-block;
            -webkit-text-fill-color: initial !important;
            -webkit-background-clip: initial !important;
            background: none !important;
        }

        .stat-card {
            text-align: center;
            padding: 16px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 12px;
        }

        .stat-val {
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent-primary);
            font-family: 'Outfit', sans-serif;
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Slider Styles */
        .slider-container {
            background: rgba(88, 166, 255, 0.06);
            border: 1px solid rgba(88, 166, 255, 0.15);
            border-radius: 12px;
            padding: 16px 24px;
        }

        .form-range::-webkit-slider-thumb {
            background: var(--accent-primary);
        }
        .form-range::-moz-range-thumb {
            background: var(--accent-primary);
        }

        /* Image Display Grid */
        .group-card {
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.2);
            margin-bottom: 20px;
        }
        
        .group-header {
            background: rgba(255, 255, 255, 0.03);
            padding: 12px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .group-images-row {
            display: flex;
            flex-wrap: wrap;
            padding: 20px;
            gap: 20px;
        }

        .image-item {
            flex: 1;
            min-width: 240px;
            max-width: 320px;
            background: rgba(255, 255, 255, 0.01);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 10px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            transition: background 0.15s ease;
        }
        
        .image-item:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .img-container {
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #000;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            position: relative;
        }

        .img-container img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: transform 0.2s ease;
        }

        .img-container:hover img {
            transform: scale(1.04);
        }

        .meta-list {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 10px;
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
            flex-grow: 1;
        }

        .meta-list li {
            margin-bottom: 4px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .meta-list li strong {
            color: var(--text-main);
        }

        /* Badges */
        .badge-source {
            font-size: 0.65rem;
            font-weight: 600;
            padding: 3px 6px;
            border-radius: 4px;
            text-transform: uppercase;
        }
        .src-1231552525197183 { background-color: rgba(88, 166, 255, 0.15); color: #58a6ff; border: 1px solid rgba(88, 166, 255, 0.3); }
        .src-1257724029834965 { background-color: rgba(188, 133, 255, 0.15); color: #bc85ff; border: 1px solid rgba(188, 133, 255, 0.3); }
        .src-2100719124103101 { background-color: rgba(63, 185, 80, 0.15); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.3); }

        /* Filter buttons */
        .btn-outline-custom {
            color: var(--text-main) !important;
            border-color: rgba(255, 255, 255, 0.15) !important;
            background-color: rgba(255, 255, 255, 0.02) !important;
            transition: all 0.2s ease-in-out;
        }
        .btn-outline-custom:hover, 
        .btn-outline-custom:active, 
        .btn-outline-custom:focus,
        .btn-check:checked + .btn-outline-custom,
        .btn-check:checked + .btn-outline-custom:hover {
            background-color: var(--accent-primary) !important;
            border-color: var(--accent-primary) !important;
            color: #ffffff !important;
            box-shadow: 0 0 8px rgba(88, 166, 255, 0.4) !important;
        }

        /* Search input */
        .search-control {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-main);
            border-radius: 8px;
        }
        .search-control::placeholder {
            color: rgba(255, 255, 255, 0.5) !important;
            opacity: 1;
        }
        .search-control:focus {
            background: rgba(255, 255, 255, 0.05);
            border-color: var(--accent-primary);
            box-shadow: none;
            color: var(--text-main);
        }

        /* Image modal */
        .modal-content-custom {
            background: rgba(20, 24, 30, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
        }

        /* Distance Matrix Badge */
        .dist-badge {
            font-size: 0.7rem;
            padding: 3px 6px;
            border-radius: 4px;
            font-weight: 500;
        }

        .dist-match {
            background-color: rgba(63, 185, 80, 0.15);
            color: #3fb950;
        }

        .dist-partial {
            background-color: rgba(240, 136, 62, 0.15);
            color: #f0883e;
        }

        #pagination-info {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        /* New GraphQL Metadata Styles */
        .author-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: rgba(255, 255, 255, 0.02);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            margin: -12px -12px 12px -12px;
        }

        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            border: 1.5px solid rgba(88, 166, 255, 0.4);
            background: rgba(0, 0, 0, 0.3);
            cursor: pointer;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .author-avatar:hover {
            transform: scale(1.1);
            border-color: var(--accent-primary);
        }

        .author-meta {
            display: flex;
            flex-direction: column;
            line-height: 1.25;
            flex-grow: 1;
            overflow: hidden;
        }

        .author-name {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-main);
            text-decoration: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .author-name:hover {
            color: var(--accent-primary);
        }

        .post-time {
            font-size: 0.7rem;
            color: var(--text-muted);
        }

        .badge-op-repost {
            font-size: 0.65rem;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            text-transform: uppercase;
        }

        .op-badge {
            background-color: rgba(240, 136, 62, 0.15);
            color: var(--accent-orange);
            border: 1px solid rgba(240, 136, 62, 0.3);
        }

        .repost-badge {
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .post-message-container {
            font-size: 0.75rem;
            color: var(--text-main);
            background: rgba(0, 0, 0, 0.15);
            border-radius: 6px;
            padding: 6px 8px;
            margin-top: 8px;
            border-left: 2.5px solid var(--accent-primary);
            white-space: pre-wrap;
            word-break: break-word;
        }

        .ocr-caption-container {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-style: italic;
            background: rgba(88, 166, 255, 0.03);
            border: 1.5px dashed rgba(88, 166, 255, 0.15);
            border-radius: 6px;
            padding: 6px 8px;
            margin-top: 8px;
            word-break: break-word;
        }

        .engagement-footer {
            display: flex;
            justify-content: space-around;
            align-items: center;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            margin: 12px -12px -12px -12px;
            padding: 8px 6px;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }

        .engagement-item {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .engagement-item strong {
            color: var(--text-main);
        }

        .image-item.user-highlight {
            outline: 2px solid var(--accent-primary);
            box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
            animation: pulse-border 1.5s infinite alternate;
        }

        @keyframes pulse-border {
            0% {
                outline-color: rgba(88, 166, 255, 0.4);
                box-shadow: 0 0 5px rgba(88, 166, 255, 0.2);
            }
            100% {
                outline-color: rgba(88, 166, 255, 1);
                box-shadow: 0 0 15px rgba(88, 166, 255, 0.6);
            }
        }

        .filter-active-pill {
            background: rgba(88, 166, 255, 0.15);
            border: 1px solid var(--accent-primary);
            color: var(--accent-primary);
            font-size: 0.8rem;
            padding: 4px 12px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .filter-active-pill .btn-close {
            filter: invert(1);
            font-size: 0.65rem;
            padding: 0;
            margin: 0;
        }

        .distances-panel {
            display: none;
        }

        body.show-distances .distances-panel {
            display: block;
        }

