/* * ================================================================================================
 * [SECTOR 20] ACCOUNT VIEW STYLES (CORREÇÃO DE ANIMAÇÃO)
 * ================================================================================================
 */

/* 1. DEFINIÇÃO DA ANIMAÇÃO (Agora com início e fim explícitos) */
@keyframes smoothEntry {
    0% { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 2. O WRAPPER PRINCIPAL */
.nexus-container {
    /* Layout & Centralização */
    width: 90%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px; 
    margin-bottom: 120px;
    
    display: flex;
    flex-direction: column;
    gap: 20px;

    /* CORREÇÃO CRÍTICA: 
       Removemos 'opacity: 0' e 'animation' daqui.
       Por padrão, ele deve ser visível para evitar o bug da tela preta.
    */
    opacity: 1; 
}

/* 3. O GATILHO DA ANIMAÇÃO */
/* A animação só roda quando a view ganha a classe 'active-view' */
#view-account.active-view .nexus-container {
    animation: smoothEntry 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    /* Garante que os elementos são clicáveis durante a animação */
    pointer-events: auto !important;
    will-change: transform, opacity;
}

/* ... O resto do CSS (painéis, inputs, botões) mantém-se igual ... */
/* 2. OS PAINÉIS (VIDRO) */
.nexus-panel {
    background: transparent;
    border: none;
    border-radius: 24px;
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
}

.panel-label {
    font-size: 0.7rem; 
    font-weight: 700; 
    letter-spacing: 2px;
    color: var(--accent); 
    text-transform: uppercase;
    margin-bottom: 20px; 
    text-align: center; 
    opacity: 0.9;
}

/* 3. A ÁREA DO AVATAR */
.identity-core { display: flex; flex-direction: column; align-items: center; }

#avatar-area {
    width: 100px; 
    height: 100px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.1); 
    border: 2px solid var(--accent);
    position: relative; 
    cursor: pointer; 
    overflow: hidden;
    margin-bottom: 25px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: transform 0.3s ease;
}

#avatar-area svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent);
}

#avatar-preview { width: 100%; height: 100%; object-fit: cover; display: none; }

/* 4. INPUTS (CORRIGINDO O FUNDO BRANCO) */
.kinetic-group { width: 100%; margin-bottom: 15px; }

.kinetic-label { 
    font-size: 0.8rem; 
    color: var(--text); 
    opacity: 0.6;
    font-weight: 600; 
    margin-bottom: 8px; 
    display: block; 
    margin-left: 5px;
}

.kinetic-input {
    width: 100%; 
    box-sizing: border-box; /* Importante para não sair da caixa */
    
    /* ESTILO VISUAL ESCURO */
    background: rgba(0, 0, 0, 0.3) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text) !important; /* Texto claro */
    
    font-family: inherit; 
    font-size: 0.95rem;
    outline: none; 
    transition: all 0.3s ease;
}

.kinetic-input:focus { 
    border-color: var(--accent) !important; 
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.1);
}

.kinetic-input:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    border-style: dashed; 
}

textarea.kinetic-input { 
    min-height: 100px; 
    resize: none; 
}

/* 5. BOTÕES */
.btn-save {
    width: 100%; 
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer;
    margin-top: 10px; 
    transition: 0.3s;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.8rem;
}
.btn-save:hover { 
    background: var(--accent); 
    color: #000; 
    box-shadow: 0 0 25px var(--accent); 
}

.btn-settings {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    /* Mobile touch optimization */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.btn-settings svg {
    stroke: var(--accent);
}

.btn-logout {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #ff6666;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}