/* 🔥 ANTI-FLICKER (SÓ PERFIL) */
body.page-perfil {
    visibility: hidden;
}
body.page-perfil.ready {
    visibility: visible;
}

/* =========================
   RESTO DO SEU CSS
========================= */

html, body { 
    background: #09090b !important; 
    color: #e4e4e7; 
    margin: 0; 
    padding: 0; 
    font-family: sans-serif; 
}

.xp-bg { width: 100%; height: 8px; background: #18181b; border-radius: 4px; margin-top: 5px; overflow: hidden; border: 1px solid #27272a; }
#xp-bar { height: 100%; background: linear-gradient(90deg, #facc15, #eab308) !important; width: 0%; transition: width 0.3s ease; }

.stats-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; padding: 0 10px; }

.box { 
    flex: 1; 
    background: #111113; 
    border: 1px solid #27272a; 
    padding: 10px 4px; 
    border-radius: 8px; 
    text-align: center; 
    font-size: 10px; 
    font-weight: bold; 
    color: #f4f4f5; 
}

/* personagem */
.character-area { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin: 15px 0; 
}

.character-layout { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
}

.character-display { 
    width: 180px; 
    height: 230px; 
}

.left-slots, .right-slots { 
    display: flex; 
    flex-direction: column; 
    height: 230px; 
    justify-content: space-between; 
}

.slot-square { 
    width: 44px; 
    height: 44px; 
    background: #111113; 
    border: 1px solid #27272a; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
}

/* menu compacto */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 15px 90px 15px;
}

.menu-category {
    font-size: 10px;
    color: #71717a;
    margin: 12px 0 4px 5px;
    font-weight: 800;
}

.menu-item {
    background: #111113;
    border: 1px solid #27272a;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    min-height: 46px;
}

.menu-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    white-space: nowrap;
}

.menu-icon {
    width: 28px;
    height: 28px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow {
    font-size: 12px;
    opacity: 0.4;
}

/* 🔥 CORREÇÃO LINK (SÓ PERFIL) */
.menu-item {
    color: inherit;
    text-decoration: none;
}

.menu-item:visited,
.menu-item:hover,
.menu-item:active {
    color: inherit;
}


/* =========================
   🔥 FIX PODER TOTAL (SEM QUEBRAR LAYOUT)
========================= */

.poder-box {
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: #facc15;
    font-size: 15px;
    margin-bottom: 8px;
}

/* garante que fique acima e não do lado */
.character-area {
    display: block !important;
}

