
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid var(--accent-xp);
    padding-bottom: 15px;
}

.header-title h1 {
    font-size: 24px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.7);
}

.header-title p {
    font-size: 9px;
    color: var(--text-secondary);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--accent-xp);
    background: transparent;
    color: var(--text-primary);
    font-size: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--accent-xp);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

/* =============================================================================
           3. PAINEL DE STATUS DO PERSONAGEM (INTEGRADO)
============================================================================= */


/* PRV Section */
.prv-section {
    background: var(--bg-card);
    border: 3px solid var(--accent-xp);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.prv-section::before {
    content: "MISSION STATUS";
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--bg-primary);
    padding: 0 10px;
    font-size: 10px;
    color: var(--accent-warning);
    letter-spacing: 2px;
}

.prv-header h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--accent-warning);
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
}

.prv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.prv-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-xp);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.prv-value {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
    color: var(--accent-success);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.7);
}

.prv-label {
    font-size: 8px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.xp-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid var(--accent-level);
}

.xp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 10px;
    color: var(--accent-level);
}

.xp-bar-container-full {
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--accent-xp);
}

.xp-bar-full {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-xp), var(--accent-level));
    transition: width 0.5s ease;
    position: relative;
}

.xp-bar-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 5px,
            rgba(255, 255, 255, 0.1) 5px,
            rgba(255, 255, 255, 0.1) 10px);
}

.multiplier-status {
    text-align: center;
    padding: 12px;
    margin-top: 15px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 6px;
    letter-spacing: 1px;
}

.multiplier-inactive {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid var(--accent-danger);
    color: var(--accent-danger);
}

.multiplier-active {
    background: rgba(0, 255, 157, 0.2);
    border: 1px solid var(--accent-success);
    color: var(--accent-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

/* KPIs */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.kpi-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.kpi-value {
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0;
    color: var(--accent-xp);
}

.kpi-label {
    font-size: 7px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Módulos */
.modules-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 2px solid var(--border);
}

.modules-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--accent-warning);
    letter-spacing: 1px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.module-card {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    font-size: 9px;
    letter-spacing: 0.5px;
}

.module-card:hover {
    border-color: var(--accent-xp);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.module-card h3 {
    font-size: 12px;
    margin-bottom: 10px;
    color: var(--accent-warning);
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 7px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    letter-spacing: 1px;
}

/* Responsividade */
@media (max-width: 768px) {
    .profile-size {
        position: static;
        transform: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 25px;
        align-items: center;
    }

    .user-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }

    .level-badge {
        right: 45%;
    }

    .prv-cards,
    .kpi-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    body {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 18px;
    }

    .prv-value {
        font-size: 22px;
    }

    .kpi-value {
        font-size: 18px;
    }

    .profile-size {
        width: 280px;
    }

    .level-badge {
        width: 2.5em;
        height: 2.5em;
        font-size: 0.5em;
    }
}