        /* THEME VARIABLES */
        :root {
            /* Default: Light Theme (Branco) */
            --bg: #f8f9fa;
            --panel: #ffffff;
            --muted: #6c757d;
            --text: #212529;
            --primary: #0d6efd;
            --primary-glow: rgba(13, 110, 253, 0.25);
            --border: #dee2e6;
            --danger: #dc3545;
            --warning: #ffc107;
            --info: #0dcaf0;
            --sidebar-width: 260px;
            --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            --hover-lift: translateY(-2px);
        }

        [data-theme="light"] {
            --bg: #f8f9fa;
            --panel: #ffffff;
            --muted: #6c757d;
            --text: #212529;
            --primary: #0d6efd;
            --primary-glow: rgba(13, 110, 253, 0.25);
            --border: #dee2e6;
            --danger: #dc3545;
            --warning: #ffc107;
            --info: #0dcaf0;
            --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            --hover-lift: translateY(-2px);
        }

        [data-theme="light"] body::before {
            background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 50%, #fce4ec 100%);
        }

        [data-theme="light"] .result-list,
        [data-theme="light"] .inputs textarea,
        [data-theme="light"] .login-card input,
        [data-theme="light"] .chk-option {
            background: #f8f9fa !important;
        }

        [data-theme="light"] .result-card {
            background: #ffffff !important;
        }

        [data-theme="dark"] {
            --bg: #000000;
            --panel: #0a0a0a;
            --muted: #a0a0a0;
            --text: #ffffff;
            --primary: #a78bfa;
            --primary-glow: rgba(167, 139, 250, 0.4);
            --border: #1a1a1a;
            --danger: #ef4444;
            --warning: #f59e0b;
            --info: #3b82f6;
            --card-shadow: 0 8px 32px rgba(167, 139, 250, 0.15);
        }

        [data-theme="blue"] {
            --bg: #e8f4f8;
            --panel: #ffffff;
            --muted: #0a9396;
            --text: #004d5a;
            --primary: #0891b2;
            --primary-glow: rgba(8, 145, 178, 0.25);
            --border: #b8e6f0;
            --danger: #dc3545;
            --warning: #f59e0b;
            --info: #06b6d4;
            --card-shadow: 0 4px 16px rgba(8, 145, 178, 0.15);
        }

        [data-theme="dark"] body,
        html[data-theme="dark"] {
            background-color: #000000 !important;
        }

        [data-theme="blue"] body,
        html[data-theme="blue"] {
            background-color: #e8f4f8 !important;
        }

        canvas#matrix-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            display: none;
            pointer-events: none;
        }

        html, body {
            background: #f8f9fa !important;
        }

        [data-theme="dark"] html,
        [data-theme="dark"] body {
            background: #000000 !important;
        }

        [data-theme="blue"] html,
        [data-theme="blue"] body {
            background: #e8f4f8 !important;
        }

        [data-theme="light"] html,
        [data-theme="light"] body {
            background: #f8f9fa !important;
        }

        body {
            color: var(--text);
            font-family: 'Share Tech Mono', monospace;
            overflow-x: hidden;
            display: flex;
            height: 100vh;
            margin: 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg);
            z-index: -2;
        }

        [data-theme="dark"] body::before {
            background: radial-gradient(ellipse at top, #1a1a1a 0%, #000000 100%);
        }

        [data-theme="blue"] body::before {
            background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 50%, #dbeafe 100%);
        }

        /* Dark theme specific styles */
        [data-theme="dark"] #sidebar {
            background: #000000;
            border-right: 1px solid #1a1a1a;
            box-shadow: 4px 0 24px rgba(167, 139, 250, 0.1);
        }

        [data-theme="dark"] .card {
            background: #0a0a0a !important;
            border: 1px solid #1a1a1a !important;
            box-shadow: 0 8px 32px rgba(167, 139, 250, 0.1) !important;
        }

        [data-theme="dark"] .result-list {
            background: #000000 !important;
            border: 1px solid #1a1a1a !important;
        }

        [data-theme="dark"] .result-card {
            background: #0a0a0a !important;
        }

        /* SIDEBAR */
        #sidebar {
            width: var(--sidebar-width);
            background: var(--bg);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            padding: 20px 0;
            flex-shrink: 0;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            z-index: 1000;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] #sidebar {
            background: #000000;
        }

        [data-theme="blue"] #sidebar {
            background: #ffffff;
            border-right: 1px solid #b8e6f0;
        }

        [data-theme="light"] #sidebar {
            background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        }

        .brand-box {
            padding: 0 20px 20px;
            border-bottom: 2px solid var(--border);
            margin-bottom: 20px;
            text-align: center;
            position: relative;
        }

        .brand-box::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            animation: pulse 2s ease-in-out infinite;
        }

        .brand {
            font-family: 'Orbitron', sans-serif;
            color: var(--primary);
            font-size: 1.4rem;
            font-weight: 900;
            text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
            letter-spacing: 2px;
            animation: glow 3s ease-in-out infinite;
        }

        @keyframes glow {
            0%, 100% { text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow); }
            50% { text-shadow: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow), 0 0 80px var(--primary-glow); }
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        .nav-menu {
            list-style: none;
            padding: 0;
            margin: 0;
            flex: 1;
        }

        .nav-item {
            margin-bottom: 5px;
        }

        .nav-link-sidebar {
            display: flex;
            align-items: center;
            padding: 14px 20px;
            color: var(--text);
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-left: 3px solid transparent;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .nav-link-sidebar::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0;
            background: linear-gradient(90deg, var(--primary-glow), transparent);
            transition: width 0.3s ease;
        }

        .nav-link-sidebar:hover, .nav-link-sidebar.active {
            background: transparent;
            color: var(--primary);
            border-left-color: transparent;
            transform: translateX(4px);
            box-shadow: none;
        }

        .nav-link-sidebar:hover::before, .nav-link-sidebar.active::before {
            width: 100%;
        }

        .nav-link-sidebar.active {
            font-weight: 700;
            text-shadow: none;
        }

        .nav-link-sidebar i {
            width: 25px;
            text-align: center;
            margin-right: 10px;
        }

        /* MAIN CONTENT */
        #main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            padding: 20px;
            overflow-y: auto;
            min-height: 100vh;
            position: relative;
            background: var(--bg);
            transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-topbar {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background: var(--bg);
            border-bottom: 2px solid var(--border);
            z-index: 1100;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] .mobile-topbar {
            background: #000000;
        }

        [data-theme="blue"] .mobile-topbar {
            background: #ffffff;
            border-bottom: 2px solid #b8e6f0;
        }

        [data-theme="light"] .mobile-topbar {
            background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
        }

        .mobile-topbar .brand-mobile {
            font-family: 'Orbitron', sans-serif;
            color: var(--primary);
            font-size: 1rem;
            font-weight: 900;
            text-shadow: 0 0 10px var(--primary-glow);
            letter-spacing: 1px;
        }

        .toggle-btn {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text);
            border: 2px solid var(--border);
            border-radius: 8px;
            padding: 8px 14px;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .toggle-btn i {
            font-size: 1.1rem;
        }

        .toggle-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: 0 0 20px var(--primary-glow);
        }

        .toggle-btn:active {
            transform: scale(0.95);
        }

        /* VIEWS */
        .view-section {
             display: block !important;
             opacity: 1 !important;
             visibility: visible !important;
        }

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

        /* DASHBOARD STATS */
        .dash-card {
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .dash-card {
            background: #0a0a0a;
        }

        [data-theme="blue"] .dash-card {
            background: #ffffff;
            border: 1px solid #b8e6f0;
        }

        [data-theme="light"] .dash-card {
            background: #ffffff;
        }

        .dash-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--info));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .dash-card:hover {
            transform: var(--hover-lift);
            box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
            border-color: var(--primary);
        }

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

        .dash-icon {
            font-size: 3rem;
            opacity: 0.9;
            transition: all 0.3s ease;
            filter: drop-shadow(0 0 10px currentColor);
        }

        .dash-card:hover .dash-icon {
            transform: scale(1.1) rotate(5deg);
            opacity: 1;
        }

        .dash-info h3 {
            margin: 0;
            font-size: 2.5rem;
            font-family: 'Orbitron', sans-serif;
            font-weight: 900;
            background: linear-gradient(135deg, var(--text), var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .dash-info p {
            margin: 5px 0 0 0;
            color: var(--muted);
            font-family: 'Rajdhani', sans-serif;
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 1px;
            font-size: 0.9rem;
        }

        /* TEXTAREA & INPUTS */
        .inputs textarea {
            background-color: rgba(0, 0, 0, 0.15);
            border: 2px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: 'Share Tech Mono', monospace;
            width: 100%;
            padding: 12px;
            resize: vertical;
            height: 250px;
            transition: all 0.3s ease;
        }

        [data-theme="dark"] .inputs textarea {
            background-color: #000000;
            border-color: #1a1a1a;
            color: #ffffff;
        }

        [data-theme="blue"] .inputs textarea {
            background-color: #ffffff;
            border-color: #b8e6f0;
            color: #004d5a;
        }

        [data-theme="light"] .inputs textarea {
            background-color: rgba(0, 0, 0, 0.02);
        }

        .inputs textarea:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px var(--primary-glow), 0 0 20px var(--primary-glow);
            transform: translateY(-1px);
        }

        .inputs textarea::placeholder {
            color: var(--muted);
            opacity: 0.6;
        }

        /* BUTTONS */
        .btn-play, .btn-stop {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 8px;
            font-family: 'Orbitron', sans-serif;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin-top: 10px;
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-play::before, .btn-stop::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn-play:hover::before, .btn-stop:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-play {
            background: linear-gradient(135deg, var(--primary) 0%, #2ea043 100%);
            color: white;
            box-shadow: 0 4px 20px var(--primary-glow);
            z-index: 1;
        }

        .btn-play > * {
            position: relative;
            z-index: 2;
        }

        .btn-play:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 30px var(--primary-glow);
        }

        .btn-play:active,
        .btn-play:focus {
            outline: none;
            transform: translateY(-2px);
        }

        .btn-stop {
            background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
            color: white;
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-stop.active {
            opacity: 1;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(248, 81, 73, 0.4);
        }

        .btn-stop.active:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 30px rgba(248, 81, 73, 0.5);
        }

        .btn-stop:active,
        .btn-stop:focus {
            outline: none;
        }

        .btn-minimal {
            padding: 8px 14px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--muted);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
        }
        .btn-minimal:hover {
            color: var(--primary);
            border-color: var(--primary);
            background: var(--primary-glow);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--primary-glow);
        }

        /* ACTION BUTTONS - MODERN DESIGN */
        .btn-action {
            padding: 6px;
            width: 30px;
            height: 30px;
            border: none;
            border-radius: 50%;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-action:focus,
        .btn-action:focus-visible {
            outline: none !important;
        }

        .btn-action i {
            position: relative;
            z-index: 2;
        }

        .btn-action::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn-action:hover::before {
            width: 100px;
            height: 100px;
        }

        .btn-action-play {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .btn-action-play:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
        }

        .btn-action-play:active {
            transform: scale(1.05);
        }

        .btn-action-stop {
            background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
            color: #9ca3af;
            opacity: 0.5;
            cursor: not-allowed;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .btn-action-stop.active {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            opacity: 1;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }

        .btn-action-stop.active:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
        }

        .btn-action-stop.active:active {
            transform: scale(1.05);
        }

        /* LISTA CONFIG PANEL */
        .btn-lista-config {
            position: relative;
        }

        .lista-config-panel {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            background: var(--panel);
            border: 2px solid var(--primary);
            border-radius: 12px;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 18px;
            box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
            z-index: 100;
            animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(20px);
            white-space: nowrap;
        }

        [data-theme="dark"] .lista-config-panel {
            background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
            border-color: #a78bfa;
        }

        [data-theme="blue"] .lista-config-panel {
            background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
            border-color: #0891b2;
        }

        [data-theme="light"] .lista-config-panel {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-color: #0d6efd;
        }

        .lista-config-panel::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 20px;
            width: 10px;
            height: 10px;
            background: var(--panel);
            border-left: 2px solid var(--primary);
            border-top: 2px solid var(--primary);
            transform: rotate(45deg);
        }

        [data-theme="dark"] .lista-config-panel::before {
            background: #0a0a0a;
            border-color: #a78bfa;
        }

        [data-theme="blue"] .lista-config-panel::before {
            background: #ffffff;
            border-color: #0891b2;
        }

        [data-theme="light"] .lista-config-panel::before {
            background: #ffffff;
            border-color: #0d6efd;
        }

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

        /* RESULT TABS - MODERN DESIGN */
        .result-tabs {
            display: flex;
            border-bottom: none;
            margin-bottom: 20px;
            gap: 8px;
            background: transparent;
            padding: 8px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
        }

        [data-theme="dark"] .result-tabs {
            background: rgba(0, 0, 0, 0.2);
        }

        [data-theme="blue"] .result-tabs {
            background: rgba(8, 145, 178, 0.05);
        }

        [data-theme="light"] .result-tabs {
            background: rgba(0, 0, 0, 0.03);
        }

        [data-theme="dark"] .card .result-tabs {
            background: rgba(0, 0, 0, 0.2) !important;
        }

        [data-theme="dark"] .card-body .result-tabs {
            background: rgba(0, 0, 0, 0.2) !important;
        }

        .result-tab {
            padding: 16px 32px;
            cursor: pointer;
            color: var(--muted);
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
            position: relative;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            border: 2px solid transparent;
            overflow: hidden;
            z-index: 1;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            touch-action: manipulation;
        }

        .result-tab * {
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            pointer-events: none;
        }

        .result-tab:visited,
        .result-tab:link {
            color: var(--muted) !important;
        }

        [data-theme="dark"] .result-tab {
            background: rgba(255, 255, 255, 0.05);
        }

        [data-theme="blue"] .result-tab {
            background: rgba(255, 255, 255, 0.5);
        }

        [data-theme="light"] .result-tab {
            background: rgba(255, 255, 255, 0.8);
        }

        /* Efeito de brilho animado */
        .result-tab::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            transition: all 0.6s ease;
            opacity: 0;
        }

        /* Borda inferior gradiente */
        .result-tab::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 80%;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--primary), var(--info), transparent);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 10px;
        }

        .result-tab.active {
            color: var(--primary);
            background: transparent;
            border-color: transparent;
            transform: translateY(-2px);
            font-weight: 900;
        }

        [data-theme="dark"] .result-tab.active {
            background: transparent;
            color: #818cf8;
        }

        [data-theme="blue"] .result-tab.active {
            background: transparent;
            color: #0891b2;
        }

        [data-theme="light"] .result-tab.active {
            background: transparent;
            color: #0d6efd;
        }

        .result-tab.active::before {
            opacity: 0;
        }

        .result-tab.active::after {
            transform: translateX(-50%) scaleX(1);
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .result-tab:hover:not(.active) {
            color: var(--primary);
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--primary);
            transform: translateY(-2px);
        }

        [data-theme="dark"] .result-tab:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
        }

        [data-theme="blue"] .result-tab:hover:not(.active) {
            background: rgba(255, 255, 255, 0.9);
        }

        [data-theme="light"] .result-tab:hover:not(.active) {
            background: rgba(255, 255, 255, 1);
        }

        .result-tab:hover:not(.active)::before {
            opacity: 0.5;
        }

        .result-tab:hover:not(.active)::after {
            transform: translateX(-50%) scaleX(0.5);
        }

        .result-tab:active {
            transform: translateY(0) scale(0.98);
        }

        .result-tab:focus,
        .result-tab:focus-visible,
        .result-tab:active:focus,
        .result-tab:active {
            outline: none !important;
            box-shadow: none !important;
        }

        /* Prevenir mudança de cor ao clicar */
        .result-tab:not(.active):active,
        .result-tab:not(.active):focus,
        .result-tab:not(.active):visited {
            color: var(--muted) !important;
            background: rgba(255, 255, 255, 0.03) !important;
        }

        [data-theme="dark"] .result-tab:not(.active):active,
        [data-theme="dark"] .result-tab:not(.active):focus {
            color: var(--muted) !important;
            background: rgba(255, 255, 255, 0.05) !important;
        }

        [data-theme="blue"] .result-tab:not(.active):active,
        [data-theme="blue"] .result-tab:not(.active):focus {
            color: var(--muted) !important;
            background: rgba(255, 255, 255, 0.5) !important;
        }

        [data-theme="light"] .result-tab:not(.active):active,
        [data-theme="light"] .result-tab:not(.active):focus {
            color: var(--muted) !important;
            background: rgba(255, 255, 255, 0.8) !important;
        }

        .result-tab.active:focus,
        .result-tab.active:active {
            color: var(--primary) !important;
            background: transparent !important;
        }

        [data-theme="dark"] .result-tab.active:focus,
        [data-theme="dark"] .result-tab.active:active {
            color: #818cf8 !important;
            background: transparent !important;
        }

        [data-theme="blue"] .result-tab.active:focus,
        [data-theme="blue"] .result-tab.active:active {
            color: #0891b2 !important;
            background: transparent !important;
        }

        [data-theme="light"] .result-tab.active:focus,
        [data-theme="light"] .result-tab.active:active {
            color: #0d6efd !important;
            background: transparent !important;
        }

        .result-list {
            height: 450px;
            overflow-y: auto;
            background: rgba(0, 0, 0, 0.1);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px;
            position: relative;
        }

        [data-theme="dark"] .result-list {
            background: #000000;
        }

        [data-theme="blue"] .result-list {
            background: #ffffff;
            border-color: #b8e6f0;
        }

        [data-theme="light"] .result-list {
            background: rgba(0, 0, 0, 0.02);
        }

        .result-list::-webkit-scrollbar {
            width: 10px;
        }

        .result-list::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }

        .result-list::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 8px;
            border: 2px solid var(--bg);
        }

        .result-list::-webkit-scrollbar-thumb:hover {
            background: #2ea043;
        }

        /* RESULT CARDS */
        .result-card {
            background: var(--panel);
            border-left: 4px solid var(--muted);
            padding: 14px 16px;
            margin-bottom: 12px;
            font-size: 0.95rem;
            animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 0 10px 10px 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }

        .result-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: inherit;
            filter: brightness(1.5);
            box-shadow: 0 0 15px currentColor;
        }

        .result-card:hover {
            transform: translateX(6px) scale(1.01);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        .result-card.live {
            border-left-color: var(--primary);
            background: linear-gradient(90deg, var(--primary-glow) 0%, var(--panel) 100%);
        }

        .result-card.live::before {
            background: var(--primary);
        }

        .result-card.die {
            border-left-color: var(--danger);
            background: linear-gradient(90deg, rgba(201, 75, 75, 0.08) 0%, var(--panel) 100%);
        }

        .result-card.die::before {
            background: var(--danger);
        }

        .result-card.ccn {
            border-left-color: var(--warning);
            background: linear-gradient(90deg, rgba(212, 132, 62, 0.08) 0%, var(--panel) 100%);
        }

        .result-card.ccn::before {
            background: var(--warning);
        }

        .result-card.charged {
            border-left-color: var(--info);
            background: linear-gradient(90deg, rgba(62, 168, 157, 0.08) 0%, var(--panel) 100%);
        }

        .result-card.charged::before {
            background: var(--info);
        }

        [data-theme="dark"] .result-card {
            background: #0a0a0a !important;
        }

        [data-theme="blue"] .result-card {
            background: #ffffff !important;
        }

        .badge {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            margin-right: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            font-family: 'Rajdhani', sans-serif;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border: 1px solid transparent;
            backdrop-filter: blur(10px);
        }

        .badge:hover {
            transform: translateY(-1px);
        }

        .badge-live {
            background: rgba(16, 185, 129, 0.15);
            color: #10b981;
            border-color: rgba(16, 185, 129, 0.3);
        }

        [data-theme="dark"] .badge-live {
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
        }

        .badge-die {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.3);
        }

        [data-theme="dark"] .badge-die {
            background: rgba(239, 68, 68, 0.2);
            color: #f87171;
        }

        .badge-ccn {
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
            border-color: rgba(245, 158, 11, 0.3);
        }

        [data-theme="dark"] .badge-ccn {
            background: rgba(245, 158, 11, 0.2);
            color: #fbbf24;
        }

        .badge-charged {
            background: rgba(59, 130, 246, 0.15);
            color: #3b82f6;
            border-color: rgba(59, 130, 246, 0.3);
        }

        [data-theme="dark"] .badge-charged {
            background: rgba(59, 130, 246, 0.2);
            color: #60a5fa;
        }

        /* OVERRIDES FOR DARK THEME */
        .card {
            background: var(--panel) !important;
            border: 1px solid var(--border) !important;
            border-radius: 12px !important;
            box-shadow: var(--card-shadow) !important;
            transition: all 0.3s ease !important;
        }

        [data-theme="dark"] .card { background: #0a0a0a !important;
        }

        [data-theme="blue"] .card {
            background: #ffffff !important;
        }

        [data-theme="light"] .card {
            background: #ffffff !important;
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4) !important;
        }

        .card-header, .card-footer {
            background: rgba(255, 255, 255, 0.02) !important;
            border-color: var(--border) !important;
        }

        [data-theme="light"] .card-header,
        [data-theme="light"] .card-footer {
            background: rgba(0, 0, 0, 0.02) !important;
        }

        .card-body {
            background: transparent !important;
        }

        [data-theme="dark"] .card-body {
            background: transparent !important;
        }

        .panel {
            background: transparent !important;
        }

        [data-theme="dark"] .panel {
            background: transparent !important;
        }

        /* THEME TOGGLE BUTTON */
        #theme-toggle:hover {
            transform: scale(1.1) rotate(180deg);
            border-color: var(--primary);
            box-shadow: 0 6px 24px var(--primary-glow);
        }

        #theme-toggle:active {
            transform: scale(1.05) rotate(180deg);
        }

        #theme-toggle:focus,
        #theme-toggle:focus-visible {
            outline: none !important;
        }

        [data-theme="dark"] #theme-toggle {
            background: #0a0a0a;
            border-color: #1a1a1a;
            box-shadow: 0 4px 16px rgba(167, 139, 250, 0.2);
        }

        [data-theme="dark"] #theme-toggle:hover {
            border-color: #a78bfa;
            box-shadow: 0 6px 24px rgba(167, 139, 250, 0.4);
        }

        /* Força background correto em todos os elementos internos dos cards no tema dark */
        [data-theme="dark"] .card *:not(.btn-play):not(.btn-stop):not(.btn-minimal):not(.badge) {
            background-color: transparent;
        }

        [data-theme="dark"] .card { background: #0a0a0a !important;
        }

        [data-theme="dark"] .card .result-list {
            background: #000000 !important;
        }

        [data-theme="dark"] .card .controls-header {
            background: #0a0a0a !important;
        }

        [data-theme="dark"] .card textarea,
        [data-theme="dark"] .card input:not([type="checkbox"]):not([type="radio"]) {
            background: #000000 !important;
        }

        /* SCROLLBAR */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg);
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--primary), #2ea043);
            border-radius: 8px;
            border: 2px solid var(--bg);
        }
        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #2ea043, var(--primary));
        }

        /* FORM CONTROLS */
        .form-control {
            background: var(--panel) !important;
            color: var(--text) !important;
            border: 1px solid var(--border) !important;
        }

        .form-control:focus {
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 2px var(--primary-glow) !important;
        }

        /* CONTROLS HEADER */
        .controls-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border);
            border-radius: 8px;
            flex-wrap: wrap;
            gap: 12px;
        }

        [data-theme="dark"] .controls-header {
            background: #0a0a0a;
        }

        [data-theme="blue"] .controls-header {
            background: #ffffff;
        }

        [data-theme="light"] .controls-header {
            background: rgba(0, 0, 0, 0.02);
        }

        /* PAGE TITLES - MINIMALIST */
        .page-title {
            font-family: 'Rajdhani', sans-serif;
            color: var(--muted);
            margin-bottom: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .page-title:hover {
            opacity: 1;
            color: var(--text);
        }

        .page-title i {
            color: var(--primary);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            #sidebar {
                width: 85%;
                max-width: 300px;
                left: 0;
                top: 0;
                bottom: 0;
                transform: translateX(-100%);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
                will-change: transform;
                visibility: hidden;
            }
            #sidebar.open {
                transform: translateX(0);
                visibility: visible;
            }

            /* Overlay escuro quando sidebar aberta */
            #sidebar.open::after {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                background: rgba(0, 0, 0, 0.7);
                z-index: -1;
                cursor: pointer;
            }

            .mobile-topbar {
                display: flex;
            }

            #main-content {
                margin-left: 0;
                padding: 12px;
                padding-top: 68px;
                height: auto;
                min-height: 100vh;
            }

            /* Otimizações de performance mobile */
            * {
                transition-duration: 0.15s !important;
            }

            .nav-link-sidebar {
                font-size: 1rem;
                padding: 12px 18px;
                transition: background 0.15s ease, color 0.15s ease;
            }

            .nav-link-sidebar::before {
                transition: width 0.2s ease;
            }

            /* Desabilitar animações pesadas no mobile */
            .dash-icon {
                animation: none !important;
            }

            .brand {
                animation: none !important;
            }

            .brand-box::after {
                animation: none !important;
            }

            /* Simplificar hover effects */
            .dash-card:hover {
                transform: none;
            }

            .btn-play::before,
            .btn-stop::before,
            .btn-action::before {
                display: none;
            }

            .result-list {
                height: 300px;
                font-size: 0.85rem;
            }

            .dash-card {
                padding: 12px;
                margin-bottom: 12px;
            }

            .dash-info h3 {
                font-size: 1.5rem;
            }

            .dash-icon {
                font-size: 1.8rem;
            }

            .page-title {
                font-size: 0.8rem;
                margin-bottom: 16px;
            }

            .chk-options {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .chk-panel {
                width: 100%;
                max-width: 100%;
                padding: 16px;
                margin: 0;
            }

            .login-card {
                width: 95%;
                max-width: 360px;
                padding: 20px;
            }

            .result-tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                display: flex;
                flex-wrap: nowrap;
                gap: 4px;
                padding-bottom: 4px;
                scrollbar-width: none;
            }

            .result-tabs::-webkit-scrollbar {
                display: none;
            }

            .result-tab {
                padding: 12px 20px;
                font-size: 0.85rem;
                white-space: nowrap;
                flex-shrink: 0;
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            /* Remover efeitos pesados das tabs no mobile */
            .result-tab::before,
            .result-tab::after {
                display: none;
            }

            .result-tab:hover:not(.active) {
                transform: none;
            }

            .result-tab.active {
                transform: none;
                border-bottom: 3px solid var(--primary);
            }

            .badge {
                font-size: 0.65rem;
                padding: 2px 6px;
            }

            /* Botão de tema no mobile */
            #theme-toggle {
                top: 12px;
                right: 12px;
                width: 36px !important;
                height: 36px !important;
            }

            #theme-toggle i {
                font-size: 1rem !important;
            }

            /* Cards em coluna única */
            .row .col-md-3,
            .row .col-md-4,
            .row .col-md-6,
            .row .col-md-8 {
                width: 100%;
                padding-left: 0;
                padding-right: 0;
            }

            /* Inputs e textareas mais compactos */
            .inputs textarea {
                height: 180px;
                font-size: 0.85rem;
                padding: 10px;
            }

            .form-control {
                font-size: 0.9rem;
                padding: 8px 12px;
            }

            /* Melhor espaçamento */
            .card {
                margin-bottom: 12px;
            }

            .card-body {
                padding: 12px;
            }

            /* Controles de checker mais compactos */
            .btn-play, .btn-stop {
                padding: 12px;
                font-size: 0.9rem;
                min-height: 48px;
                transition: background 0.15s ease, transform 0.1s ease;
            }

            .btn-play:active,
            .btn-stop:active {
                transform: scale(0.97);
            }

            .btn-minimal {
                padding: 8px 12px;
                font-size: 0.85rem;
                min-height: 44px;
                transition: background 0.15s ease, color 0.15s ease;
            }

            /* Botões de ação otimizados */
            .btn-action {
                min-width: 44px;
                min-height: 44px;
                transition: transform 0.1s ease, background 0.15s ease;
            }

            .btn-action:active {
                transform: scale(0.95);
            }

            /* Tabelas responsivas */
            table {
                font-size: 0.85rem;
            }

            table th, table td {
                padding: 8px 6px;
            }

            /* Modais mais compactos */
            .swal2-popup {
                width: 90% !important;
                padding: 16px !important;
            }

            .swal2-title {
                font-size: 1.3rem !important;
            }

            .swal2-content {
                font-size: 0.9rem !important;
            }

            /* Stats cards mais compactos */
            .stats-row {
                gap: 8px;
            }

            /* Checker options mais compactas */
            .chk-option {
                padding: 10px;
                font-size: 0.9rem;
            }

            /* Reduzir padding geral */
            h4 {
                font-size: 1.1rem;
                margin-bottom: 12px;
            }

            h5 {
                font-size: 1rem;
            }

            /* Result cards mais compactos */
            .result-card {
                padding: 8px !important;
                margin-bottom: 4px !important;
                font-size: 0.85rem;
            }

            .result-card .badge {
                font-size: 0.65rem;
            }

            /* Configurações mais compactas */
            .config-section {
                margin-bottom: 16px;
            }

            /* Dashboard lives mais compacto */
            .live-item {
                padding: 8px;
                font-size: 0.85rem;
            }

            /* Scrollbar mais fina no mobile */
            ::-webkit-scrollbar {
                width: 4px;
                height: 4px;
            }
        }

        /* Tablets */
        @media (min-width: 769px) and (max-width: 1024px) {
            #sidebar {
                width: 220px;
            }

            #main-content {
                margin-left: 220px;
                padding: 16px;
            }

            .dash-info h3 {
                font-size: 1.8rem;
            }

            .page-title {
                font-size: 0.85rem;
            }
        }

        /* Landscape mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .result-list {
                height: 220px;
            }

            .dash-card {
                padding: 10px;
            }

            .dash-info h3 {
                font-size: 1.3rem;
            }

            .page-title {
                font-size: 0.75rem;
            }

            #main-content {
                padding-top: 60px;
            }
        }

        /* Touch devices - áreas de toque maiores */
        @media (hover: none) and (pointer: coarse) {
            .nav-link-sidebar {
                padding: 16px 18px;
                min-height: 52px;
            }

            .btn-play, .btn-stop, .btn-minimal {
                min-height: 48px;
            }

            .chk-option {
                min-height: 52px;
                padding: 14px;
            }

            .result-tab {
                min-height: 48px;
                padding: 14px 24px;
            }

            button, .btn {
                min-height: 48px;
            }

            /* Feedback visual imediato no toque */
            .nav-link-sidebar:active,
            .btn:active,
            .result-tab:active {
                opacity: 0.7;
                transition: opacity 0.05s ease;
            }
        }

        /* Otimizações para mobile */
        body.is-mobile {
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
        }

        body.is-mobile * {
            -webkit-user-select: none;
            user-select: none;
        }

        body.is-mobile input,
        body.is-mobile textarea {
            -webkit-user-select: text;
            user-select: text;
        }

        /* Reduzir animações no mobile para performance */
        @media (max-width: 768px) {
            * {
                animation-duration: 0.2s !important;
            }

            .card,
            .dash-card,
            .result-card {
                will-change: auto;
            }

            /* Scroll suave otimizado */
            .result-list {
                -webkit-overflow-scrolling: touch;
                scroll-behavior: smooth;
            }

            /* Prevenir layout shift */
            img {
                content-visibility: auto;
            }
        }

        /* Mobile extra pequeno (< 400px) */
        @media (max-width: 400px) {
            #main-content {
                padding: 8px;
            }

            .page-title {
                font-size: 0.7rem;
            }

            .dash-info h3 {
                font-size: 1.3rem;
            }

            .result-tab {
                padding: 6px 10px;
                font-size: 0.8rem;
            }

            .btn-play, .btn-stop {
                font-size: 0.8rem;
                padding: 8px;
            }

            .card-body {
                padding: 10px;
            }
        }

        body.reduce-motion .dash-icon {
            animation: none !important;
        }

        body.reduce-motion .brand {
            animation: none !important;
        }

        /* Scroll suave no mobile */
        body.is-mobile {
            -webkit-overflow-scrolling: touch;
        }

        body.is-mobile .result-list,
        body.is-mobile #main-content {
            -webkit-overflow-scrolling: touch;
        }

        /* Melhor feedback visual no toque */
        body.is-mobile .btn-play:active,
        body.is-mobile .btn-stop:active,
        body.is-mobile .btn-minimal:active {
            transform: none;
            opacity: 1;
            outline: none;
        }

        body.is-mobile .nav-link-sidebar:active {
            background: rgba(63, 185, 80, 0.2);
        }

        body.is-mobile .chk-option:active {
            transform: scale(0.97);
        }
        .locked-view {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 60vh;
            color: var(--muted);
            flex-direction: column;
            gap: 16px;
            animation: fadeIn 0.5s ease;
        }
        .locked-view .lock-icon {
            font-size: 6rem;
            color: var(--text);
            opacity: 0.15;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .login-overlay {
            position: fixed;
            inset: 0;
            background: var(--bg);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }
        .login-card {
            width: 400px;
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .login-card {
            background: #0a0a0a;
        }

        [data-theme="blue"] .login-card {
            background: #ffffff;
        }

        [data-theme="light"] .login-card {
            background: rgba(255, 255, 255, 0.98);
        }

        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--info), var(--primary));
            background-size: 200% 100%;
            animation: shimmer 3s linear infinite;
        }

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

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        .login-card h3 {
            margin: 0 0 24px 0;
            font-family: 'Orbitron', sans-serif;
            color: var(--primary);
            text-align: center;
            font-size: 1.8rem;
            font-weight: 900;
            text-shadow: 0 0 20px var(--primary-glow);
            letter-spacing: 2px;
        }
        .login-card input {
            width: 100%;
            padding: 12px 16px;
            border-radius: 10px;
            border: 2px solid var(--border);
            background: rgba(0, 0, 0, 0.15);
            color: var(--text);
            font-family: 'Share Tech Mono', monospace;
            transition: all 0.3s ease;
        }

        [data-theme="dark"] .login-card input {
            background: #000000;
        }

        [data-theme="blue"] .login-card input {
            background: #ffffff;
        }

        [data-theme="light"] .login-card input {
            background: rgba(0, 0, 0, 0.02);
        }

        .login-card input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-glow), 0 0 20px var(--primary-glow);
            transform: translateY(-1px);
        }

        .login-card input::placeholder {
            color: var(--muted);
            opacity: 0.6;
        }
        .login-card input {
            width: 100%;
            padding: 10px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: #0d1117;
            color: var(--text);
        }
        .login-error {
            color: var(--danger);
            margin-top: 8px;
            min-height: 20px;
            text-align: center;
        }
        .login-actions {
            margin-top: 12px;
        }
        .chk-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.6);
            display: none;
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }
        .chk-panel {
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 28px;
            width: 560px;
            max-width: 90%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .chk-panel {
            background: #0a0a0a;
        }

        [data-theme="blue"] .chk-panel {
            background: #ffffff;
        }

        [data-theme="light"] .chk-panel {
            background: rgba(255, 255, 255, 0.98);
        }

        .chk-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--info), var(--primary));
            background-size: 200% 100%;
            animation: shimmer 3s linear infinite;
        }

        .chk-title {
            font-family: 'Orbitron', sans-serif;
            color: var(--text);
            font-size: 1.4rem;
            font-weight: 900;
            margin-bottom: 20px;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 0 20px var(--primary-glow);
        }
        .chk-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        .chk-option {
            padding: 16px;
            border: 2px solid var(--border);
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.1);
            color: var(--text);
            font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            font-size: 1.1rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .chk-option {
            background: #000000;
        }

        [data-theme="blue"] .chk-option {
            background: #ffffff;
        }

        [data-theme="light"] .chk-option {
            background: rgba(0, 0, 0, 0.02);
        }

        .chk-option::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: var(--primary-glow);
            transform: translate(-50%, -50%);
            transition: width 0.4s, height 0.4s;
        }

        .chk-option:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px var(--primary-glow);
        }

        .chk-option:hover::before {
            width: 300px;
            height: 300px;
        }

        /* MOBILE RESPONSIVENESS — Unificado (sidebar usa translateX do bloco @media 768px acima) */
        @media (max-width: 768px) {
            /* Sidebar: NÃO redeclarar aqui — usa translateX(-100%)/translateX(0) do bloco anterior */

            /* Controls header empilha no mobile */
            .controls-header {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                padding: 10px;
            }

            .controls-header > div {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                gap: 6px;
            }

            /* CHK Overlay/Panel mobile */
            .chk-panel {
                width: 95%;
                max-width: none;
                padding: 16px;
                margin: 10px;
            }

            .chk-options {
                grid-template-columns: 1fr;
            }

            .chk-option {
                font-size: 0.85rem;
                padding: 10px;
            }

            /* Result tabs scrollable */
            .result-tabs {
                overflow-x: auto;
                justify-content: flex-start;
                white-space: nowrap;
                padding-bottom: 5px;
            }

            /* Badges mais compactos */
            .badge {
                font-size: 0.6rem;
                padding: 2px 5px;
            }

            /* Login card */
            .login-card {
                width: 95%;
                padding: 20px;
            }

            /* Chat widget */
            #chat-widget-card {
                width: 90vw;
                height: 70vh;
                bottom: 80px;
                right: 5vw;
            }
            #chat-widget-btn {
                width: 50px;
                height: 50px;
                bottom: 15px;
                right: 15px;
            }

            /* Admin cols */
            .admin-tab-content .row .col-md-5,
            .admin-tab-content .row .col-md-7 {
                width: 100%;
            }

            /* Prevenir overflow horizontal */
            body {
                overflow-x: hidden !important;
            }

            #main-content {
                overflow-x: hidden;
                max-width: 100vw;
            }

            /* Textos longos quebram linha */
            .result-card {
                word-break: break-all;
            }
        }
        #view-social.active {
            display: flex !important;
            flex-direction: column;
        }
        #chat-widget-btn:hover { transform: scale(1.1); }
        #chat-widget-btn:active { transform: scale(0.9); }

        .msg-bubble { max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 0.85rem; animation: msg-fadeIn 0.2s ease; position: relative; }
        .msg-left { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 2px; color: var(--text); }
        .msg-right { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 2px; box-shadow: 0 2px 8px var(--primary-glow); }
        .msg-user { font-size: 0.65rem; font-weight: bold; margin-bottom: 2px; display: flex; align-items: center; gap: 4px; }
        .msg-time { font-size: 0.55rem; opacity: 0.7; margin-top: 3px; text-align: right; }
        .msg-img { max-width: 100%; border-radius: 8px; margin-top: 5px; cursor: pointer; transition: transform 0.2s; }
        .msg-img:hover { transform: scale(1.02); }

        .badge-plan { padding: 1px 4px; border-radius: 3px; font-size: 0.55rem; text-transform: uppercase; font-weight: 900; }
        .badge-plan-free { background: #6c757d; color: white; }
        .badge-plan-vip { background: #0dcaf0; color: black; }
        .badge-plan-pro { background: #ffc107; color: black; }

        .mention-suggestions {
            position: absolute;
            bottom: 50px;
            left: 0;
            width: 200px;
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            display: none;
            z-index: 10000;
            max-height: 150px;
            overflow-y: auto;
        }
        .mention-item {
            padding: 8px 12px;
            cursor: pointer;
            font-size: 0.8rem;
            color: var(--text);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .mention-item:hover {
            background: var(--primary);
            color: white;
        }
        @keyframes chat-pulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
            70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }
        @keyframes msg-fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
