        :root {
            --bg-color: #050505;
            --container-bg: rgba(255, 255, 255, 0.03);
            --border-color: rgba(255, 255, 255, 0.1);
            --text-primary: #ffffff;
            --text-secondary: #b3b3b3;
            --accent-color: #0095f6;
            --accent-hover: #1877f2;
            --danger-color: #ed4956;
            --danger-hover: #c32f3f;
            --layer-02: rgba(255, 255, 255, 0.02);
            --layer-03: rgba(255, 255, 255, 0.03);
            --layer-04: rgba(255, 255, 255, 0.04);
            --layer-05: rgba(255, 255, 255, 0.05);
            --layer-06: rgba(255, 255, 255, 0.06);
            --layer-08: rgba(255, 255, 255, 0.08);
            --layer-10: rgba(255, 255, 255, 0.1);
            --layer-15: rgba(255, 255, 255, 0.15);
            --shadow-color: rgba(0, 0, 0, 0.3);
            --tab-active-bg: rgba(255, 255, 255, 0.12);
            --tab-active-color: #ffffff;
            --tab-active-shadow: 0 4px 12px rgba(0,0,0,0.3);
            --tab-active-border: rgba(255, 255, 255, 0.1);
        }

        @media (prefers-color-scheme: light) {
            :root {
                --bg-color: #f2f4f7;
                --container-bg: #ffffff;
                --border-color: rgba(0, 0, 0, 0.08);
                --text-primary: #1a1a1a;
                --text-secondary: #666666;
                --layer-02: rgba(0, 0, 0, 0.02);
                --layer-03: rgba(0, 0, 0, 0.03);
                --layer-04: rgba(0, 0, 0, 0.04);
                --layer-05: rgba(0, 0, 0, 0.05);
                --layer-06: rgba(0, 0, 0, 0.06);
                --layer-08: rgba(0, 0, 0, 0.08);
                --layer-10: rgba(0, 0, 0, 0.1);
                --layer-15: rgba(0, 0, 0, 0.15);
                --shadow-color: rgba(0, 0, 0, 0.06);
                --tab-active-bg: #ffffff;
                --tab-active-color: #0095f6;
                --tab-active-shadow: 0 4px 15px rgba(0, 149, 246, 0.15);
                --tab-active-border: rgba(0, 149, 246, 0.3);
            }
            
            body {
                background: #f2f4f7 !important;
            }
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background: var(--bg-color);
            color: var(--text-primary);
            line-height: 1.5;
            padding: 4.5rem 1rem 5rem 1rem;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            margin: 0;
            box-sizing: border-box;
            background-attachment: fixed;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .container {
            width: 100%;
            max-width: 800px;
            background-color: var(--container-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 40px var(--shadow-color), inset 0 1px 0 var(--layer-05);
            animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .header {
            text-align: center;
            padding: 2.5rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .header h1 {
            font-size: 1.7rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            background: linear-gradient(45deg, #0095f6, #00d2ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header p {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-top: 0.5rem;
        }

        .upload-section {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            padding: 2.5rem;
        }

        .file-input-group {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .file-input-group label {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-primary);
        }

        .file-input-wrapper {
            position: relative;
            background-color: var(--layer-02);
            border: 1px dashed var(--border-color);
            border-radius: 14px;
            padding: 3rem 1.5rem;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .file-input-wrapper:hover {
            border-color: var(--accent-color);
            background-color: rgba(0, 149, 246, 0.04);
            transform: translateY(-2px);
        }

        .file-input-wrapper input[type="file"] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .file-name-display {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 0.5rem;
            pointer-events: none;
        }

        .btn-primary {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            margin-top: 0.5rem;
            box-shadow: 0 4px 15px rgba(0, 149, 246, 0.2);
        }

        .btn-primary:hover:not(:disabled) {
            background: var(--accent-hover);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 149, 246, 0.3);
        }
        
        .btn-primary:active:not(:disabled) {
            transform: translateY(-1px) scale(0.98);
        }
        
        .btn-primary:disabled {
            background: var(--layer-05);
            color: var(--text-secondary);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-danger-outline {
            background: rgba(237, 73, 86, 0.1);
            color: var(--danger-color);
            border: 1px solid rgba(237, 73, 86, 0.3);
            padding: 1rem;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            margin-top: 2rem;
            width: 100%;
            box-shadow: 0 4px 15px rgba(237, 73, 86, 0.15);
        }

        .btn-danger-outline:hover {
            background: rgba(237, 73, 86, 0.2);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(237, 73, 86, 0.25);
        }
        
        .btn-danger-outline:active {
            transform: translateY(-1px) scale(0.98);
        }

        #error-message {
            color: var(--danger-color);
            text-align: center;
            padding: 1rem;
            display: none;
            background: rgba(237, 73, 86, 0.1);
            border-radius: 10px;
            margin: 0 2rem 1rem 2rem;
            font-size: 0.9rem;
            animation: fadeIn 0.3s ease-out;
        }

        .instructions-card {
            background-color: var(--layer-03);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 1rem 2.5rem;
            font-size: 0.95rem;
            transition: transform 0.3s ease;
        }

        .instructions-card:hover {
            transform: translateY(-2px);
            background-color: var(--layer-04);
        }

        .instructions-card h2 {
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .instructions-card ol {
            padding-left: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .instructions-card li {
            margin-bottom: 0.5rem;
        }

        .instructions-card code {
            background-color: var(--layer-08);
            padding: 0.2rem 0.4rem;
            border-radius: 6px;
            font-family: ui-monospace, monospace;
            color: var(--text-primary);
            font-size: 0.85rem;
        }

        .instructions-card .note {
            background-color: rgba(0, 149, 246, 0.08);
            border-left: 3px solid var(--accent-color);
            padding: 0.75rem 1rem;
            border-radius: 0 8px 8px 0;
            color: var(--text-primary);
            font-size: 0.9rem;
        }

        /* Carousel CSS */
        .carousel-container {
            position: relative;
            max-width: 260px; 
            margin: 1.5rem auto 1rem auto;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            background: var(--layer-04);
            box-shadow: 0 4px 15px var(--shadow-color);
            transition: transform 0.3s ease;
        }
        
        .carousel-container:hover {
            transform: scale(1.02);
        }

        .carousel-slides {
            display: flex;
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            width: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            display: block;
        }

        .carousel-slide.active {
            display: block;
            animation: fadeIn 0.4s ease-out;
        }

        .carousel-slide img {
            width: 100%;
            display: block;
            object-fit: contain;
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 10px;
            box-sizing: border-box;
            pointer-events: none;
        }

        .carousel-btn {
            pointer-events: auto;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            color: white;
            border: 1px solid rgba(255,255,255,0.2);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .carousel-btn:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: scale(1.1);
        }
        
        .carousel-btn:active {
            transform: scale(0.95);
        }

        .carousel-dots-container {
            position: absolute;
            bottom: 15px;
            width: 100%;
            display: flex;
            justify-content: center;
            pointer-events: none;
        }

        .carousel-dots {
            display: flex;
            gap: 8px;
            pointer-events: auto;
        }

        .carousel-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .carousel-dot.active {
            background: white;
            transform: scale(1.4);
        }

        /* Results Section */
        .results-section {
            display: none; 
            padding: 1.5rem;
            animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .tab-buttons {
            display: flex;
            width: 100%;
            background-color: var(--layer-06);
            border-radius: 12px;
            padding: 0.4rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border-color);
        }

        .tab-btn {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            padding: 0.85rem 0.25rem;
            font-size: 0.9rem;
            font-weight: 500;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.3rem;
        }

        .tab-btn:hover:not(.active) {
            color: var(--text-primary);
            background-color: var(--layer-04);
        }

        .tab-btn.active {
            background-color: var(--tab-active-bg);
            color: var(--tab-active-color);
            box-shadow: var(--tab-active-shadow);
            transform: scale(1.02);
            border: 1px solid var(--tab-active-border);
        }
        
        .tab-count {
            font-size: 1.3rem;
            font-weight: 700;
        }

        .tab-content {
            display: none;
            padding: 0;
            max-height: 60vh;
            overflow-y: auto;
            border-radius: 12px;
            scroll-behavior: smooth;
            border: 1px solid var(--border-color);
            background: var(--layer-02);
        }

        .tab-content.active {
            display: block;
        }

        .user-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem;
            border-bottom: 1px solid var(--border-color);
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            text-decoration: none;
            cursor: pointer;
            opacity: 0;
            animation: fadeInUp 0.4s ease-out forwards;
        }
        
        .user-item:hover {
            background-color: var(--layer-04);
            transform: translateX(4px);
        }
        
        .user-item:active {
            background-color: var(--layer-06);
            transform: translateX(2px) scale(0.99);
        }

        .user-item:last-child {
            border-bottom: none;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            width: 100%;
        }

        .user-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(0,149,246,0.15), rgba(0,210,255,0.15));
            border: 1px solid rgba(0,149,246,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--accent-color);
            text-transform: uppercase;
            font-size: 1.1rem;
            flex-shrink: 0;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        .user-item:hover .user-avatar {
            transform: scale(1.05) rotate(5deg);
            background: linear-gradient(135deg, rgba(0,149,246,0.25), rgba(0,210,255,0.25));
            border-color: var(--accent-color);
            box-shadow: 0 4px 12px rgba(0, 149, 246, 0.2);
        }

        .user-details {
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .user-link {
            color: var(--text-primary);
            font-weight: 500;
            font-size: 1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.2s;
        }
        
        .user-item:hover .user-link {
            color: var(--accent-color);
        }

        .empty-state {
            padding: 4rem 1rem;
            text-align: center;
            color: var(--text-secondary);
            font-size: 1rem;
            animation: fadeIn 0.5s ease;
        }

        /* Custom scrollbar */
        * {
            scrollbar-width: thin;
            scrollbar-color: var(--layer-15) var(--bg-color);
        }
        
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-color);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--layer-15);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--layer-15);
        }

        @media (max-width: 600px) {
            body {
                padding: 4.5rem 0.5rem 3.5rem 0.5rem;
            }
            .container {
                border-radius: 16px;
                border: none;
            }
            .header {
                padding: 2rem 1rem;
            }
            .upload-section {
                padding: 1.5rem 1rem;
            }
            .instructions-card {
                margin: 1rem;
                padding: 1.25rem;
            }
            .tab-btn {
                font-size: 0.8rem;
            }
            .tab-count {
                font-size: 1.15rem;
            }
            .user-item {
                padding: 1rem;
            }
            .user-avatar {
                width: 38px;
                height: 38px;
                font-size: 0.95rem;
            }
        }
        
        @media (min-width: 601px) {
            body {
                padding: 4.5rem 1rem 5rem 1rem;
            }
        }
        
        /* Footer */
        .app-footer {
            margin-top: 3rem;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.85rem;
            width: 100%;
            max-width: 800px;
            animation: fadeIn 1s ease 0.5s both;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s;
            font-weight: 500;
        }

        .footer-links a:hover {
            color: var(--accent-color);
        }
        
        .footer-copyright {
            opacity: 0.7;
        }