       /* --- 1. CONFIGURAÇÕES VISUAIS --- */
        :root {
            --azul-samsung: #1428a0;
            --azul-brilhante: #2962ff;
            --preto-fundo: #050505;
            --cinza-card: #141414;
            --cinza-borda: #333;
            --texto-branco: #ffffff;
            --destaque: #2196f3;
            --verde-sucesso: #00c853;
            --vermelho-erro: #ff4444;
            --ouro-master: #ffd700;
            --degrade-trilha: linear-gradient(135deg, rgba(20, 40, 160, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }

        body {
            background-color: var(--preto-fundo);
            color: var(--texto-branco);
            overflow: hidden;
            height: 100vh;
        }

        /* TEXTURAS */
        .fundo-textura {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            z-index: 0; pointer-events: none; opacity: 0.1;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ctext x='10' y='50' font-family='Arial' font-weight='bold' fill='%23555' transform='rotate(45)' opacity='0.5'%3EG%3C/text%3E%3C/svg%3E");
        }

        .fundo-textura-home {
            position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
            z-index: 0; opacity: 0.4; pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 100 100'%3E%3Cstyle%3Etext{font-family:'Arial Black',sans-serif;font-weight:900;fill:%23555;font-size:10px;opacity:0.6}%3C/style%3E%3Ctext x='15' y='25' transform='rotate(45 15 25)'%3EG%3C/text%3E%3Ctext x='85' y='15' transform='rotate(-20 85 15)'%3EA%3C/text%3E%3Ctext x='50' y='55' transform='rotate(90 50 55)'%3EL%3C/text%3E%3Ctext x='25' y='85' transform='rotate(-45 25 85)'%3EA%3C/text%3E%3Ctext x='75' y='80' transform='rotate(30 75 80)'%3EX%3C/text%3E%3Ctext x='90' y='45' transform='rotate(180 90 45)'%3EY%3C/text%3E%3Ctext x='10' y='60' transform='rotate(60 10 60)'%3ES%3C/text%3E%3Ctext x='60' y='10' transform='rotate(-15 60 10)'%3EA%3C/text%3E%3C/svg%3E");
            background-size: 150px 150px;
            mask-image: radial-gradient(circle at center, transparent 20%, black 80%);
            -webkit-mask-image: radial-gradient(circle at center, transparent 20%, black 80%);
            animation: rodarTextura 120s linear infinite;
        }
        @keyframes rodarTextura { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

        /* LOGIN */
        #tela-login { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.8s; }
        .caixa-login { text-align: center; width: 300px; position: relative; }
        .caixa-login input { width: 100%; padding: 10px; margin: 5px 0; background: #222; border: 1px solid #444; color: white; border-radius: 5px; }
        .botao-entrar { width: 100%; padding: 10px; background: var(--azul-samsung); border: none; color: white; font-weight: bold; cursor: pointer; border-radius: 5px; margin-top: 10px; }
        .link-cadastro { color: #888; font-size: 0.8rem; margin-top: 15px; cursor: pointer; text-decoration: underline; }
        .msg-erro { color: var(--vermelho-erro); font-size: 0.8rem; margin-bottom: 10px; }

        /* LAYOUT PRINCIPAL */
        #painel-principal { display: flex; height: 100vh; opacity: 0; transition: 1s; pointer-events: none; }
        aside { width: 260px; background: #0a0a0a; border-right: 1px solid #222; padding: 20px; display: flex; flex-direction: column; z-index: 10; }
        .area-logo { font-size: 1.5rem; font-weight: bold; color: white; margin-bottom: 30px; text-align: center; letter-spacing: 2px; }
        .area-logo span { color: var(--azul-samsung); }
        
        .user-welcome { font-size: 0.9rem; color: #888; margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 10px; }

        nav button {
            background: transparent; border: none; color: #888; width: 100%; padding: 12px;
            text-align: left; cursor: pointer; display: flex; align-items: center; gap: 15px;
            border-radius: 8px; transition: 0.2s; margin-bottom: 5px;
        }
        nav button:hover { background: #1a1a1a; color: white; }
        nav button.ativo { background: var(--azul-samsung); color: white; font-weight: bold; }
        
        .btn-sair { margin-top: auto; color: var(--vermelho-erro); border: 1px solid rgba(255, 68, 68, 0.3); }
        .btn-sair:hover { background: rgba(255, 68, 68, 0.1); }

        #conteudo-principal { flex: 1; padding: 40px; overflow-y: auto; position: relative; scroll-behavior: smooth; }

        /* --- DASHBOARD (HOME) --- */
        #container-home {
            height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 30px;
        }
        .header-video-home { width: 100%; max-width: 900px; position: relative; z-index: 2; margin-top: 20px; }
        
        .video-home-frame {
            width: 100%; 
            aspect-ratio: 16 / 9; 
            border-radius: 20px; 
            overflow: hidden;
            box-shadow: 0 0 40px rgba(41, 98, 255, 0.2);
            animation: cairEQuicar 1s ease forwards;
            background: #000;
        }
        
        .video-home-frame video { width: 100%; height: 100%; object-fit: contain; display: block; border: none; }

        .dashboard-grid {
            display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; width: 100%; max-width: 1000px; z-index: 2;
            opacity: 0; animation: fadeInUp 1s ease 0.5s forwards;
        }
        
        .card-home {
            background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(10px);
            border: 1px solid #333; border-radius: 15px; padding: 25px;
            text-align: left; transition: 0.3s; cursor: pointer; position: relative; overflow: hidden;
            display: flex; flex-direction: column; justify-content: space-between; height: 180px;
        }
        .card-home:hover { transform: translateY(-5px); border-color: var(--destaque); background: rgba(40, 40, 40, 0.8); }
        .card-home h3 { font-size: 0.9rem; color: #aaa; text-transform: uppercase; margin-bottom: 10px; }
        .card-home .big-text { font-size: 1.8rem; font-weight: bold; margin-bottom: 10px; }
        .card-home .icon-bg { position: absolute; right: -10px; bottom: -10px; font-size: 6rem; opacity: 0.05; color: white; }
        .progresso-container { width: 100%; height: 8px; background: #333; border-radius: 4px; overflow: hidden; margin-top: auto; }
        .progresso-bar { height: 100%; background: linear-gradient(90deg, var(--azul-samsung), var(--destaque)); width: 0%; transition: width 1s; }
        .btn-card-action {
            margin-top: auto; padding: 12px; text-align: center; border-radius: 8px;
            font-weight: bold; font-size: 0.9rem; width: 100%; display: block; cursor: pointer; transition: 0.2s;
        }
        .btn-card-action:hover { opacity: 0.9; transform: scale(1.02); }
        .btn-master { background: linear-gradient(45deg, #FFD700, #FFA500); color: black; border: none; }
        .btn-ativ { background: linear-gradient(45deg, var(--azul-samsung), var(--destaque)); color: white; border: none; }

        /* --- HERO HEADER --- */
        .hero-atividades {
            background: linear-gradient(90deg, #0a0a2a 0%, #000 100%);
            padding: 30px;
            border-radius: 20px;
            border-left: 5px solid var(--azul-samsung);
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            z-index: 2;
        }
        .hero-atividades h2 { font-size: 2.5rem; margin-bottom: 10px; z-index: 2; position: relative; color: white; }
        .hero-atividades p { color: #aaa; max-width: 600px; z-index: 2; position: relative; }
        .hero-bg-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 8rem; opacity: 0.1; color: var(--azul-samsung); }

        /* --- CARDS --- */
        .grid-unificado {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 25px;
            position: relative;
            z-index: 2;
        }

        .card-premium {
            background: var(--degrade-trilha);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 25px;
            position: relative;
            overflow: hidden;
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            display: flex;
            flex-direction: column;
            min-height: 220px;
        }

        .card-premium:hover {
            transform: translateY(-8px);
            border-color: var(--destaque);
            box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
        }

        .card-premium .icone-box {
            width: 50px; height: 50px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 15px;
            color: var(--destaque);
        }

        /* --- ABA ATIVIDADES --- */
        .hub-container {
            max-width: 1200px; margin: 0 auto;
        }

        .hub-header {
            text-align: left; margin-bottom: 40px; border-bottom: 1px solid #333; padding-bottom: 20px;
            display: flex; justify-content: space-between; align-items: end;
        }
        .hub-header h2 { font-size: 2rem; background: linear-gradient(90deg, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px;}
        .hub-header p { color: #666; font-size: 0.9rem; }

        /* GRID DE MISSÕES */
        .hub-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px;
        }

        .mission-card {
            background: linear-gradient(145deg, rgba(20,20,20,0.6) 0%, rgba(10,10,10,0.9) 100%);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 25px;
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
            cursor: pointer;
            display: flex; flex-direction: column;
            min-height: 200px;
        }

        .mission-card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
            background: var(--azul-samsung); opacity: 0.5; transition: 0.3s;
        }

        .mission-card:hover {
            transform: translateY(-5px);
            border-color: var(--azul-brilhante);
            box-shadow: 0 10px 30px rgba(41, 98, 255, 0.15);
        }

        .mission-card:hover::before { opacity: 1; box-shadow: 0 0 10px var(--azul-brilhante); }

        .mission-icon {
            width: 50px; height: 50px; background: rgba(41, 98, 255, 0.1);
            border-radius: 12px; display: flex; align-items: center; justify-content: center;
            color: var(--azul-brilhante); margin-bottom: 20px; font-size: 2rem;
        }

        .mission-info h3 { font-size: 1.3rem; margin-bottom: 8px; color: white; }
        .mission-info p { font-size: 0.85rem; color: #888; line-height: 1.4; margin-bottom: 20px; }

        .mission-action {
            margin-top: auto; display: flex; align-items: center; justify-content: space-between;
            font-size: 0.8rem; color: #aaa; font-weight: bold;
        }
        .btn-start {
            background: transparent; border: 1px solid #444; color: white;
            padding: 8px 16px; border-radius: 20px; transition: 0.3s;
        }
        .mission-card:hover .btn-start { background: var(--azul-samsung); border-color: var(--azul-samsung); }

        /* QUIZ INTERFACE (REFINADA) */
        .quiz-hud {
            background: rgba(15, 15, 15, 0.95); border: 1px solid #333; border-radius: 20px;
            padding: 40px; max-width: 800px; margin: 20px auto; position: relative;
            box-shadow: 0 0 50px rgba(0,0,0,0.5); backdrop-filter: blur(20px);
        }
        .quiz-progress { height: 4px; background: #333; margin-bottom: 30px; border-radius: 2px; }
        .quiz-bar { height: 100%; background: var(--verde-sucesso); width: 0%; transition: width 0.5s; }

        /* CAPAS */
        .img-container {
            width: 100%;
            aspect-ratio: 16 / 9;
            height: auto;
            margin-bottom: 15px;
            background-color: #000;
            border-radius: 10px;
            border: 1px solid #333;
            overflow: hidden;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-premium .capa-img {
            width: 100%;
            height: 100%;
            object-fit: contain; 
            display: block;
        }
        
        .card-premium:hover .capa-img { opacity: 0.9; }

        .card-premium h3 { font-size: 1.1rem; margin-bottom: 5px; line-height: 1.3; }
        .card-premium p { font-size: 0.8rem; color: #aaa; margin-bottom: 20px; flex-grow: 1; }
        
        .badge-topo {
            position: absolute; top: 15px; right: 15px;
            background: #000; padding: 4px 10px; border-radius: 20px;
            font-size: 0.7rem; font-weight: bold; color: var(--ouro-master);
            border: 1px solid #333;
            z-index: 5;
        }

        .btn-acao-card {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.2);
            color: white;
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            font-weight: bold;
            transition: 0.3s;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 1px;
            margin-top: auto;
        }
        
        .card-premium:hover .btn-acao-card {
            background: var(--azul-samsung);
            border-color: var(--azul-samsung);
        }

        /* --- PLAYER DE VÍDEO --- */
        #area-cinema { 
            width: 100%; height: 0; overflow: hidden; background: #000; 
            margin-bottom: 30px; border-radius: 15px; transition: height 0.5s ease; 
            position: relative; z-index: 2; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
        }
        #area-cinema.ativo { height: 500px; border: 1px solid var(--azul-samsung); }
        #titulo-video-ativo { padding: 15px; background: linear-gradient(90deg, var(--azul-samsung), #000); font-weight: bold; color: white; border-bottom: 1px solid #333; }
        #container-do-player { width: 100%; height: calc(100% - 50px); }
        iframe, video { width: 100%; height: 100%; border: none; }

        /* --- OUTROS --- */
        #interface-quiz { max-width: 800px; margin: 0 auto; background: #1a1a1a; padding: 40px; border-radius: 15px; border: 1px solid #333; display: none; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 10; }
        .quiz-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 20px; margin-bottom: 30px; }
        .quiz-info-left { display: flex; flex-direction: column; }
        .quiz-title { color: var(--destaque); font-weight: bold; font-size: 1.1rem; }
        .quiz-counter { color: #666; font-size: 0.9rem; }
        .timer-badge { background: #222; padding: 8px 20px; border-radius: 20px; border: 1px solid #444; font-weight: bold; color: var(--ouro-master); font-size: 1.2rem; min-width: 80px; text-align: center; }
        .btn-sair-quiz { background: transparent; border: 1px solid #ff4444; color: #ff4444; padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; transition: 0.2s; display: flex; align-items: center; gap: 5px; }
        .btn-sair-quiz:hover { background: #ff4444; color: white; }
        .pergunta-texto { font-size: 1.5rem; line-height: 1.4; margin-bottom: 30px; }
        .opcao-btn { background: #252525; border: 1px solid #333; padding: 18px; border-radius: 10px; color: #ddd; width: 100%; text-align: left; cursor: pointer; transition: 0.2s; margin-bottom: 12px; font-size: 1rem; }
        .opcao-btn:hover { background: #333; border-color: var(--destaque); }
        .opcao-btn.correta { background: rgba(0, 200, 83, 0.15); border-color: var(--verde-sucesso); color: var(--verde-sucesso); }
        .opcao-btn.errada { background: rgba(211, 47, 47, 0.15); border-color: var(--vermelho-erro); color: var(--vermelho-erro); }
        .btn-proxima { background: var(--destaque); color: white; padding: 12px 30px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; display: none; float: right; margin-top: 10px; }
        
        .btn-voltar-topo { background: transparent; color: #888; border: 1px solid #444; padding: 8px 15px; border-radius: 20px; cursor: pointer; margin-bottom: 20px; position: relative; z-index: 10; display: inline-flex; align-items: center; gap: 5px; }
        .btn-voltar-topo:hover { color: white; border-color: white; }
        
        .cartao-download.baixando .btn-acao-card { background: var(--verde-sucesso); border-color: var(--verde-sucesso); }
        
        @keyframes cairEQuicar { 0% { transform: translateY(-500px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .aparecer-suave { animation: fadeInUp 0.5s ease; }
        .resultado-tela { text-align: center; display: none; }

       /* --- VERSÃO MOBILE --- */
        #btn-mobile { display: none; }


        @media (max-width: 768px) {
            
            /* para o site não quebrar */
            body {
                display: block !important;
                padding: 0 !important;
                background-color: #000;
                overflow-x: hidden;
            }

            /* Esconde a barra lateral */
            #barra-lateral-container {
                position: fixed !important;
                top: 0; 
                left: -300px; /* mestre dos magos */
                width: 280px !important;
                height: 100vh !important;
                background: #000 !important;
                z-index: 9998;
                border-right: 1px solid #333;
                transition: left 0.3s ease; 
                
                /* Organiza o conteúdo dentro da barra */
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                padding-top: 80px !important;
            }

            /* ----- ----- ----- */
            #barra-lateral-container.aberto {
                left: 0 !important;
            }

            /* 3. Estica o conteúdo principal */
            #conteudo-principal {
                margin-left: 0 !important; 
                width: 100% !important;
                padding: 80px 20px 20px 20px !important;
            }

            /* 4. Mostra o botão do menu */
            #btn-mobile {
                display: flex;
                align-items: center; justify-content: center;
                position: fixed; top: 15px; left: 15px;
                width: 45px; height: 45px;
                z-index: 99999;
                background: var(--destaque);
                border: none; border-radius: 50%;
                box-shadow: 0 4px 10px rgba(0,0,0,0.5);
            }

            /* Ajustes visuais */
            #container-home { display: flex !important; flex-direction: column !important; width: 100% !important; }
            .header-video-home { width: 100% !important; height: 220px !important; margin-bottom: 20px !important; }
            .dashboard-grid { display: flex !important; flex-direction: column !important; width: 100% !important; }
            #barra-lateral-container h1 { font-size: 1.5rem !important; margin-bottom: 10px !important; }
            #barra-lateral-container nav { width: 100% !important; border: none !important; }
            #barra-lateral-container nav button { width: 100% !important; border-bottom: 1px solid #222; }
        }


        /* --- EFEITOS DE CHECK-IN (ROTA) --- */

/* O card quando está concluído */
.card-premium.concluido {
    background-color: rgba(0, 50, 0, 0.8) !important; /* Fundo esverdeado escuro */
    border-color: var(--verde-sucesso) !important;
    opacity: 0.7;
    filter: grayscale(0.5); /* Um pouco cinza, mas ainda verde */
    transition: all 0.5s ease;
    pointer-events: none; /* Evita clicar de novo */
}

.card-premium.concluido h3 {
    text-decoration: line-through;
    color: #aaa;
}

/* A animação do feixe de luz (Scan) */
.card-premium.animando-check::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: scanSucesso 0.8s ease-in-out forwards;
    pointer-events: none;
}

@keyframes scanSucesso {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* --- PERFIL E DASHBOARD DETALHADO --- */

.layout-perfil {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .layout-perfil { grid-template-columns: 1fr; }
}

/* Coluna da Esquerda (Foto e Info Básica) */
.perfil-sidebar {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--cinza-borda);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.avatar-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--destaque);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.avatar-container:hover { transform: scale(1.05); border-color: var(--ouro-master); }
.avatar-container:hover::after {
    content: "ALTERAR";
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.7); color: white; font-size: 0.8rem; padding: 5px;
}

.avatar-img { width: 100%; height: 100%; object-fit: cover; }

/* Coluna da Direita (Estatísticas) */
.stats-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, #111, #1a1a1a);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--destaque);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.stat-card h4 { color: #888; font-size: 0.9rem; margin-bottom: 5px; font-weight: normal; }
.stat-card .numero { font-size: 2rem; font-weight: bold; color: white; }

/* Lista de Histórico */
.historico-lista {
    background: rgba(20, 20, 20, 0.6);
    border-radius: 15px;
    padding: 20px;
}
.item-historico {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}
.item-historico:hover { background: rgba(255,255,255,0.05); }
.item-historico:last-child { border-bottom: none; }

/* --- NOVO DASHBOARD IMERSIVO --- */

/* Container principal que segura tudo */
.dashboard-hero-container {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #333;
    background: radial-gradient(circle at 30% 50%, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 100%);
}

/* CAMADA 1: A FOTO DO INSTRUTOR (Fundo) */
.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Ocupa metade da tela */
    height: 100%;
    z-index: 1;
    pointer-events: none; /* O clique passa através dela */
}

/* O truque do "recorte" suave */
.hero-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Máscara que faz a imagem desaparecer nas bordas */
    -webkit-mask-image: linear-gradient(to right, black 40%, transparent 100%), linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to right, black 40%, transparent 100%), linear-gradient(to bottom, black 70%, transparent 100%);
    opacity: 0.8;
    filter: contrast(1.1) saturate(1.1); /* Deixa mais dramático */
    transition: opacity 0.3s;
}

/* Botão de alterar foto flutuante */
.btn-alterar-foto-hero {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--destaque);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

/* CAMADA 2: OS DADOS E GRÁFICOS (Frente) */
.hero-data-layer {
    position: relative;
    z-index: 5;
    width: 60%; /* Ocupa um pouco mais da metade */
    margin-left: auto; /* Empurra para a direita */
    padding: 40px;
    background: linear-gradient(to left, rgba(0,0,0,0.9) 50%, transparent 100%); /* Fundo gradiente para ler o texto */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Identidade do Instrutor */
.hero-identity h1 {
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-role-badge {
    display: inline-block;
    background: var(--destaque);
    color: black;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

/* Grid dos Números Gigantes */
.big-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.big-stat-box .label { color: #888; font-size: 0.9rem; text-transform: uppercase; }
.big-stat-box .value { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.big-stat-box .sub-value { font-size: 1rem; color: #666; }

/* Container dos Gráficos */
.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.chart-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #333;
}

/* Responsividade para celular */
@media (max-width: 900px) {
    .dashboard-hero-container { flex-direction: column; }
    .hero-image-layer { width: 100%; height: 40vh; position: relative; }
    .hero-image-layer img { -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%); }
    .hero-data-layer { width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,1) 80%, transparent 100%); }
    .hero-identity h1 { font-size: 2rem; }
    .big-stat-box .value { font-size: 2.5rem; }
    .charts-container { grid-template-columns: 1fr; }
}

/* --- DASHBOARD ESTILO "CAPA DE REVISTA" (SEM IA) --- */

.dashboard-hero-container {
    display: grid;
    grid-template-columns: 400px 1fr; /* Coluna da foto fixa, resto flexível */
    background: #111;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #333;
    min-height: 70vh;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ÁREA DA FOTO (Lado Esquerdo) */
.hero-image-area {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.hero-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a foto preencha tudo sem esticar */
    object-position: center top;
    opacity: 0.9;
    transition: opacity 0.3s;
}

/* O "Truque" do Degradê: Faz a foto fundir com o fundo escuro */
.hero-image-area::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to right, transparent 50%, #111 100%), 
                linear-gradient(to top, #111 0%, transparent 40%);
    pointer-events: none;
}

/* Botão de Upload (Discreto no canto) */
.btn-upload-flutuante {
    position: absolute;
    bottom: 20px; left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.btn-upload-flutuante:hover { background: white; color: black; }

/* ÁREA DE DADOS (Lado Direito) */
.hero-data-area {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-header { margin-bottom: 40px; }
.hero-tag { 
    display: inline-block; padding: 4px 12px; border-radius: 4px; 
    font-size: 0.75rem; font-weight: bold; text-transform: uppercase; margin-bottom: 10px;
}
.hero-name { font-size: 3.5rem; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: -1px; }
.hero-id { color: #666; margin-top: 5px; font-size: 1rem; }

/* Grid de Estatísticas */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
}
.stat-box h4 { color: #888; font-size: 0.8rem; margin-bottom: 5px; text-transform: uppercase; }
.stat-box .num { font-size: 2rem; font-weight: bold; color: white; }

/* Container do Gráfico */
.chart-wrapper {
    height: 200px;
    width: 100%;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 15px;
}

/* Responsivo (Celular) */
@media (max-width: 900px) {
    .dashboard-hero-container { grid-template-columns: 1fr; min-height: auto; }
    .hero-image-area { height: 400px; }
    /* No celular, o degradê é de baixo pra cima */
    .hero-image-area::after { background: linear-gradient(to top, #111 10%, transparent 100%); }
    .hero-data-area { padding: 30px 20px; }
    .hero-stats-grid { grid-template-columns: 1fr; }
    .hero-name { font-size: 2.5rem; }
}