* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #5a189a;
            --secondary: #7b2cbf;
            --accent: #9d4edd;
            --dark: #0f0f23;
            --card: #1a1a2e;
            --surface: #2d2d4d;
            --text: #ffffff;
            --text-secondary: #e0e0e0;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --info: #3b82f6;
            --premium: #FFD700;
            --bronze: #CD7F32;
            --gold: #FFD700;
            --silver: #C0C0C0;
            --neural: #ff6b6b;
            --neural-glow: #ff8787;
            --grupo-a: #10b981;
            --grupo-b: #3b82f6;
            --campeao: linear-gradient(135deg, #FFD700, #FF8C00);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--dark);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
        }

        .menu-toggle {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1000;
            background: var(--primary);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transition: all 0.3s;
        }

        .menu-toggle:hover {
            transform: scale(1.05);
            background: var(--accent);
        }

        .sidebar {
            position: fixed;
            left: -300px;
            top: 0;
            width: 300px;
            height: 100%;
            background: var(--card);
            z-index: 999;
            transition: left 0.3s ease;
            padding-top: 70px;
            overflow-y: auto;
            box-shadow: 2px 0 20px rgba(0,0,0,0.3);
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar-item {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s;
            border-left: 4px solid transparent;
            cursor: pointer;
        }

        .sidebar-item:hover, .sidebar-item.active {
            background: var(--surface);
            color: var(--accent);
            border-left-color: var(--accent);
        }

        .sidebar-item i {
            margin-right: 15px;
            font-size: 20px;
            width: 28px;
            text-align: center;
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 998;
        }

        .sidebar-overlay.active {
            display: block;
        }

        .container {
            max-width: 100%;
            padding: 20px;
            margin-top: 60px;
        }

        .screen {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .screen.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .card {
            background: var(--card);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .card-title {
            color: var(--text);
            font-size: 1.5rem;
            font-weight: 600;
        }

        .numbers-grid {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 8px;
            margin: 15px 0;
        }

        .number {
            width: 39px;
            height: 39px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            background: var(--surface);
            color: var(--text-secondary);
            font-size: 16px;
        }

        .number.selected {
            background: var(--accent);
            color: white;
            transform: scale(1.1);
        }

        .number.fixed {
            background: var(--success);
            color: white;
        }

        .number.excluded {
            background: var(--danger);
            color: white;
        }

        .btn {
            padding: 12px 24px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }

        .btn-success {
            background: var(--success);
            color: white;
        }

        .btn-warning {
            background: var(--warning);
            color: #333;
        }

        .btn-gold {
            background: var(--gold);
            color: #333;
            font-weight: bold;
        }

        .btn-danger {
            background: var(--danger);
            color: white;
        }

        .btn-info {
            background: var(--info);
            color: white;
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--accent);
            color: var(--accent);
        }

        .btn-campeao {
            background: linear-gradient(135deg, #FFD700, #FF8C00);
            color: #333;
            font-weight: bold;
        }

        .btn-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .btn-sm {
            padding: 5px 15px;
            font-size: 0.8rem;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        th, td {
            padding: 12px;
            text-align: center;
            border-bottom: 1px solid var(--surface);
        }

        th {
            background: var(--surface);
            color: var(--accent);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1001;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: var(--card);
            border-radius: 16px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .modal-title {
            text-align: center;
            margin-bottom: 20px;
            color: var(--accent);
        }

        @media (max-width: 768px) {
            .container { padding: 10px; }
            .btn-group { flex-direction: column; }
            .btn { width: 100%; }
            .numbers-grid { grid-template-columns: repeat(8, 1fr); }
        }

        @media (max-width: 600px) {
            .numbers-grid { grid-template-columns: repeat(5, 1fr); }
            .game-row { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
            .game-numbers { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 5px !important; width: 100% !important; }
            .game-number { width: 100% !important; height: 40px !important; font-size: 1rem !important; }
            .game-actions { width: 100% !important; justify-content: space-around !important; margin-top: 5px !important; }
            .info-btn { width: 100% !important; margin: 5px 0 !important; }
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .stat-card {
            background: var(--surface);
            padding: 15px;
            border-radius: 12px;
            text-align: center;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: bold;
            color: var(--accent);
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .app-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            padding: 20px;
            border-radius: 0 0 20px 20px;
            text-align: center;
            margin-bottom: 20px;
        }

        .app-title {
            font-size: 1.8rem;
            margin-bottom: 5px;
        }

        .app-subtitle {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .games-horizontal {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .game-row {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: var(--surface);
            border-radius: 12px;
            font-size: 1.15rem;
            flex-wrap: wrap;
        }

        .game-numbers {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            flex: 1;
        }

        .game-number {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--primary);
            color: white;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .game-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .game-action-btn {
            padding: 8px 12px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .save-btn {
            background: var(--success);
            color: white;
        }

        .copy-btn {
            background: var(--info);
            color: white;
        }

        .delete-btn {
            background: var(--danger);
            color: white;
        }

        .check-btn {
            background: var(--warning);
            color: #333;
        }

        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1002;
        }

        .popup-overlay.active {
            display: flex;
        }

        .popup-content {
            background: var(--card);
            border-radius: 16px;
            padding: 25px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .popup-title {
            text-align: center;
            margin-bottom: 15px;
            color: var(--accent);
            font-size: 1.2rem;
        }

        .popup-numbers-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin: 15px 0;
        }

        .popup-number {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            background: var(--surface);
            color: var(--text-secondary);
            font-size: 16px;
        }

        .popup-number.selected {
            background: var(--accent);
            color: white;
        }

        .popup-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
        }

        .ia-status {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            padding: 15px;
            border-radius: 12px;
            margin: 15px 0;
            text-align: center;
            font-weight: bold;
        }

        .badge-gold {
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: #333;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .badge-silver {
            background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
            color: #333;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .badge-bronze {
            background: linear-gradient(135deg, #CD7F32, #A0522D);
            color: white;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .badge-premium {
            background: linear-gradient(135deg, var(--gold), var(--warning));
            color: #333;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .badge-neural {
            background: linear-gradient(135deg, #ff6b6b, #ff8787);
            color: white;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            animation: neural-pulse 2s infinite;
        }

        .badge-inteligente {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .badge-campeao {
            background: linear-gradient(135deg, #FFD700, #FF8C00);
            color: #333;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        @keyframes neural-pulse {
            0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
        }

        .tracker-table-container {
            max-height: 600px;
            overflow-y: auto;
            overflow-x: auto;
            border: 1px solid var(--surface);
            border-radius: 8px;
            margin: 15px 0;
        }

        .tracker-table {
            min-width: 100%;
            background: white;
        }

        .tracker-table th {
            background: var(--surface);
            color: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .tracker-table td {
            padding: 8px;
            border: 1px solid #ddd;
            color: #333;
        }

        .tabs {
            display: flex;
            border-bottom: 2px solid var(--surface);
            margin-bottom: 20px;
            overflow-x: auto;
        }

        .tab {
            padding: 12px 20px;
            cursor: pointer;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-weight: 500;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .tab.active {
            color: var(--accent);
            border-bottom: 2px solid var(--accent);
            background: rgba(157, 78, 221, 0.1);
        }

        .group-22-item {
            background: var(--surface);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            transition: all 0.3s;
            border-left: 4px solid transparent;
        }

        .group-22-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .group-22-item.premium {
            border-left-color: var(--gold);
            background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), var(--surface));
        }

        .group-22-item.top-10 {
            border-left-color: var(--accent);
        }

        .group-score {
            font-size: 1.5rem;
            font-weight: bold;
            text-align: center;
            min-width: 60px;
        }

        .group-score.gold { color: var(--gold); }
        .group-score.silver { color: var(--silver); }
        .group-score.bronze { color: var(--bronze); }
        .group-score.premium { color: var(--premium); }

        .group-stats {
            display: flex;
            gap: 15px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
        }

        .stat-item .value {
            font-weight: bold;
            color: var(--accent);
        }

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: var(--accent);
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            background-color: white;
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
            z-index: 1000;
            min-width: 160px;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .dropdown-menu.show {
            display: block;
        }
        
        .dropdown-menu a {
            display: block;
            padding: 10px 15px;
            color: #333;
            text-decoration: none;
            transition: background-color 0.2s;
        }
        
        .dropdown-menu a:hover {
            background-color: #f0f0f0;
        }

        .last-contest-number {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 16px;
            background: var(--info);
            color: white;
        }

        .last-contest-number.repeated {
            background: var(--warning);
            color: #333;
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
        }

        .last-contest-number.not-selected {
            background: var(--surface);
            color: var(--text-secondary);
            opacity: 0.7;
        }

        .last-contest-number.grupo-a {
            background: var(--grupo-a);
        }

        .last-contest-number.grupo-b {
            background: var(--grupo-b);
        }

        .last-contest-number.excluido {
            background: var(--danger);
            opacity: 0.5;
        }

        .drawn-number {
            background-color: #10b981 !important;
            color: white !important;
            font-weight: bold;
            border: 2px solid #059669;
        }

        .missing-number {
            background-color: #f3f4f6 !important;
            color: #9ca3af !important;
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: var(--surface);
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 10px;
        }
        
        .filter-content {
            display: none;
            padding: 10px;
        }
        
        .filter-content.active {
            display: block;
        }
        
        .control-btn {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            border: 1px solid var(--accent);
            background: var(--surface);
            color: var(--text);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .control-btn:hover {
            background: var(--accent);
            color: white;
        }

        .toggle-switch {
            position: relative;
            display: inline-flex;
            align-items: center;
            cursor: pointer;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
            background-color: #ccc;
            border-radius: 34px;
            margin-right: 10px;
            transition: .4s;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            border-radius: 50%;
            transition: .4s;
        }
        
        input:checked + .toggle-slider {
            background-color: var(--success);
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        .repetida-inteligente-panel {
            background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(59,130,246,0.1));
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
        }

        .grupo-a-badge {
            background: var(--grupo-a);
            color: white;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .grupo-b-badge {
            background: var(--grupo-b);
            color: white;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .bloco-item {
            background: rgba(255,255,255,0.05);
            padding: 8px;
            border-radius: 8px;
            margin: 5px 0;
        }

        .info-btn {
            background: var(--info);
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 0.7rem;
            cursor: pointer;
            margin-top: 5px;
        }

        .info-btn:hover {
            opacity: 0.9;
        }

        .preditiva-card {
            background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(255,107,107,0.05));
            border: 1px solid rgba(255,215,0,0.3);
        }
        
        .status-fogo {
            background: linear-gradient(135deg, #ff6b6b, #ff8787);
            color: white;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: bold;
            display: inline-block;
        }
        
        .status-estrela {
            background: linear-gradient(135deg, #f59e0b, #fbbf24);
            color: #333;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: bold;
            display: inline-block;
        }
        
        .badge-14 {
            background: var(--gold);
            color: #333;
        }
        
        .badge-13 {
            background: var(--silver);
            color: #333;
        }
        
        .badge-12 {
            background: var(--bronze);
            color: white;
        }
        
        .btn-preditivo {
            background: linear-gradient(135deg, var(--gold), #ff6b6b);
            color: #333;
            font-weight: bold;
        }
        
        .btn-preditivo:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255,107,107,0.3);
        }

        .analise-concurso-buttons {
            display: flex;
            gap: 10px;
            margin: 15px 0;
            flex-wrap: wrap;
        }
        .analise-concurso-btn {
            background: var(--surface);
            border: 1px solid var(--info);
            color: var(--info);
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }
        .analise-concurso-btn:hover {
            background: var(--info);
            color: white;
        }
        .analise-concurso-btn.active {
            background: var(--info);
            color: white;
        }
        .resultado-analise-concurso {
            background: rgba(0,0,0,0.3);
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            max-height: 400px;
            overflow-y: auto;
        }
        .acerto-alto { color: var(--gold); font-weight: bold; }
        .acerto-bom { color: var(--silver); }
        .acerto-medio { color: var(--bronze); }
        
        .fortes-badge {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .fracas-badge {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .forte-badge {
            background: #10b981;
            color: white;
            padding: 2px 6px;
            border-radius: 12px;
            font-size: 0.65rem;
            margin-right: 4px;
        }
        
        .fraca-badge {
            background: #ef4444;
            color: white;
            padding: 2px 6px;
            border-radius: 12px;
            font-size: 0.65rem;
            margin-right: 4px;
        }
        
        .ia2-fortes-panel {
            background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
            border-left: 4px solid var(--success);
        }
        
        .winner-15-group {
            background: linear-gradient(90deg, rgba(255,215,0,0.25), var(--surface));
            border-left: 4px solid var(--gold);
            box-shadow: 0 2px 8px rgba(255,215,0,0.2);
        }
        
        .winner-15-badge {
            background: linear-gradient(135deg, var(--gold), #ff8c00);
            color: #333;
            font-weight: bold;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .consistencia-badge {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            font-weight: bold;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .user-badge {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--success);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            z-index: 1000;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            cursor: pointer;
        }
        
        .user-badge i {
            margin-right: 5px;
        }
        
        .user-menu {
            position: fixed;
            top: 70px;
            right: 20px;
            background: var(--card);
            border-radius: 12px;
            padding: 10px;
            z-index: 1001;
            display: none;
            min-width: 200px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        
        .user-menu.active {
            display: block;
        }
        
        .user-menu-item {
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.3s;
        }
        
        .user-menu-item:hover {
            background: var(--surface);
        }
        
        .user-menu-item i {
            margin-right: 10px;
            width: 20px;
        }
        
        .bloco-corrigido {
            background: rgba(16,185,129,0.2);
            border-left: 3px solid var(--success);
            padding: 5px 10px;
            border-radius: 6px;
            margin-top: 8px;
        }
        
        .bloco-corrigido .destaque {
            color: var(--success);
            font-weight: bold;
        }
        
        .campeao-summary {
            background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,140,0,0.2));
            border: 1px solid var(--gold);
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
        }
        
        .quente-number {
            background: linear-gradient(135deg, #ff6b6b, #ff8787);
            color: white;
        }
        
        .atrasado-number {
            background: linear-gradient(135deg, #f59e0b, #fbbf24);
            color: #333;
        }

        .analise-paineis {
            display: flex;
            gap: 20px;
            margin: 15px 0;
            flex-wrap: wrap;
        }
        .analise-paineis > div {
            flex: 1;
            min-width: 250px;
        }
        
        .mini-desdobramento-info {
            background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(255,215,0,0.1));
            border-radius: 10px;
            padding: 12px;
            margin: 10px 0;
            font-size: 0.8rem;
        }
        .bloco-variacao {
            display: inline-block;
            background: var(--gold);
            color: #333;
            border-radius: 20px;
            padding: 2px 8px;
            font-size: 0.7rem;
            font-weight: bold;
            margin-left: 8px;
        }
        .falha-indicator {
            display: inline-block;
            background: rgba(16, 185, 129, 0.15);
            border-radius: 12px;
            padding: 2px 8px;
            font-size: 0.7rem;
            margin-top: 4px;
            color: var(--info);
        }
        .falha-badge {
            background: var(--info);
            color: white;
            border-radius: 10px;
            padding: 1px 5px;
            font-size: 0.65rem;
            margin-left: 4px;
        }
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--dark);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 20px;
        }
        .loading-screen.hide {
            display: none;
        }
        .pwa-install-btn {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
        }
        .faq-item {
            margin-bottom: 15px;
            border-bottom: 1px solid var(--surface);
            padding-bottom: 10px;
        }
        .faq-question {
            font-weight: bold;
            color: var(--gold);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .faq-answer {
            display: none;
            margin-top: 10px;
            color: var(--text-secondary);
            padding-left: 10px;
        }
        .faq-answer.show {
            display: block;
        }

/* =========================================
   TRACKER IA2 — Estilos nativos (sem Tailwind)
   ========================================= */

.tracker-panel {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.tracker-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.tracker-input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tracker-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.tracker-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(157,78,221,0.4);
    background: var(--dark);
    color: var(--text);
    font-size: 0.9rem;
    width: 160px;
    text-align: center;
    transition: border-color 0.2s;
    outline: none;
}
.tracker-input:focus {
    border-color: var(--accent);
}

.tracker-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.tracker-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tracker-dropdown-wrap {
    position: relative;
}

.tracker-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--accent);
    background: var(--dark);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.tracker-dropdown-btn:hover {
    background: var(--accent);
    color: white;
}

.tracker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    background: var(--card);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 200;
    overflow: hidden;
}
.tracker-dropdown.show {
    display: block;
}

.tracker-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.tracker-dropdown-item:hover {
    background: var(--surface);
    color: var(--accent);
}

.tracker-status-panel {
    margin: 12px 0;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
}

.tracker-status-row {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.tracker-status-row:last-child { margin-bottom: 0; }

.tracker-status-value { color: var(--accent); font-weight: 700; }
.tracker-status-highlight { color: var(--danger); font-weight: 700; }
.tracker-status-success { color: var(--success); font-weight: 700; }

.tracker-results-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tracker-strong, .tracker-weak {
    flex: 1;
    min-width: 200px;
    padding: 14px;
    border-radius: 12px;
}

.tracker-strong {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
}

.tracker-weak {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
}

.tracker-strong-title {
    color: var(--success);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tracker-weak-title {
    color: var(--danger);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tracker-numbers {
    font-size: 1.1rem;
    font-weight: bold;
    font-family: monospace;
    color: var(--text);
    letter-spacing: 0.05em;
}

/* =========================================
   USER MENU — Perfil e Logout
   ========================================= */

.user-menu-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(157,78,221,0.08);
    border-radius: 8px 8px 0 0;
    margin: -10px -10px 0 -10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.user-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 0;
}

.user-menu-logout {
    color: var(--danger) !important;
}
.user-menu-logout i {
    color: var(--danger) !important;
}
.user-menu-logout:hover {
    background: rgba(239,68,68,0.12) !important;
}

/* =========================================
   MENU TOGGLE — garantir ícone visível
   ========================================= */
.menu-toggle i {
    font-size: 1.2rem;
    color: white;
    display: block;
    line-height: 1;
}

/* SUPABASE AUTH AND LAYOUT STYLES */
.user-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}
.download-app-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 1.5rem;
}
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}
.login-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    background: var(--surface);
    color: white;
    border: 1px solid var(--accent);
}
.login-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}
.badge-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-silver {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.medias-aplicadas-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* =========================================
   AUTH SCREENS (Login / Registro)
   ========================================= */
#loginScreen.screen,
#registerScreen.screen {
    padding: 0;
    max-width: 100%;
}

.auth-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(90, 24, 154, 0.4) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(157, 78, 221, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
                var(--dark);
}

/* Animated background orbs */
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}
.auth-bg-orb.orb1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #5a189a, transparent);
    top: -100px; left: -100px;
    animation-duration: 9s;
}
.auth-bg-orb.orb2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #3b82f6, transparent);
    bottom: -80px; right: -80px;
    animation-duration: 11s;
    animation-delay: -3s;
}
.auth-bg-orb.orb3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, #9d4edd, transparent);
    top: 50%; right: 20%;
    animation-duration: 7s;
    animation-delay: -6s;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card {
    position: relative;
    z-index: 2;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 24px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    animation: authCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(157, 78, 221, 0.8));
    animation: pulse 2s ease-in-out infinite;
}
.auth-app-name {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9d4edd, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}
.auth-app-version {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
}
.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.auth-field {
    position: relative;
    margin-bottom: 14px;
}
.auth-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}
.auth-input {
    width: 100%;
    background: rgba(45, 45, 77, 0.8);
    border: 1.5px solid rgba(157, 78, 221, 0.2);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    padding: 13px 16px 13px 42px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
    font-family: inherit;
}
.auth-input:focus {
    border-color: var(--accent);
    background: rgba(45, 45, 77, 1);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}
.auth-input::placeholder { color: rgba(255,255,255,0.35); }

.auth-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.auth-eye-btn:hover { color: var(--accent); }

.auth-message {
    min-height: 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    border-radius: 8px;
    padding: 0 4px;
    transition: all 0.3s;
}
.auth-message:not(:empty) {
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
}
.auth-message.success:not(:empty) {
    background: rgba(16, 185, 129, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    letter-spacing: 0.3px;
}
.auth-btn:active { transform: scale(0.97); }

.auth-btn-primary {
    background: linear-gradient(135deg, #5a189a, #9d4edd);
    color: white;
    box-shadow: 0 6px 20px rgba(90, 24, 154, 0.4);
}
.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(90, 24, 154, 0.6);
    filter: brightness(1.1);
}

.auth-btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid rgba(157, 78, 221, 0.5);
}
.auth-btn-outline:hover {
    background: rgba(157, 78, 221, 0.1);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.auth-btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 4px;
}
.auth-btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

/* Password strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    margin-top: -6px;
    opacity: 0;
    transition: opacity 0.3s;
}
.password-strength.visible { opacity: 1; }

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}
.strength-bar {
    height: 4px;
    border-radius: 4px;
    flex: 1;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
}
.strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-secondary);
    min-width: 50px;
}

.auth-footer {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 16px;
    margin-bottom: 0;
}
