/* ====== NAMESPACE: PERFIL USUÁRIO (isolado) ====== */
.perfilusuario-root {
    --pu-rosa: #ff007f;
    --pu-texto: #1f1f1f;
    --pu-texto-2: #555;
    --pu-bg: #f7f7f8;
    --pu-white: #fff;
    --pu-borda: #e8e8ec;
    --pu-badge: #ff2e77;
    --pu-danger: #d72638;
    --pu-shadow: 0 8px 24px rgba(0,0,0,.08);
    --pu-shadow-soft: 0 4px 14px rgba(0,0,0,.06);
    --pu-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

    .perfilusuario-root, .perfilusuario-root * {
        box-sizing: border-box;
    }

.perfilusuario-root {
    background: transparent;
    font-family: var(--pu-font);
    color: var(--pu-texto);
}

/* Backdrop + Drawer */
.perfilusuario-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.perfilusuario-backdrop--open {
    opacity: 1;
    pointer-events: auto;
}

.perfilusuario-launcher {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(480px,92vw);
    background: #fff;
    z-index: 10001;
    transform: translateX(110%);
    box-shadow: -8px 0 24px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease;
}

.perfilusuario-launcher--open {
    transform: none;
}

.perfilusuario-launcher__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pu-borda);
}

.perfilusuario-brand-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.perfilusuario-brand-mini__mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--pu-rosa);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
}

.perfilusuario-close-x {
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

.perfilusuario-launcher__body {
    padding: 16px;
    overflow: auto;
    flex: 1;
}

/* Card/Tag */
.perfilusuario-card {
    background: #fff;
    border: 1px solid var(--pu-borda);
    border-radius: 12px;
    box-shadow: var(--pu-shadow-soft);
}

.perfilusuario-card__body {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.perfilusuario-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--pu-borda);
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
}

/* Tabs/Panels */
.perfilusuario-tabs {
    display: flex;
    gap: 6px;
    margin: 16px 0 10px;
    flex-wrap: wrap;
}

.perfilusuario-tab-btn {
    border: 1px solid var(--pu-borda);
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.perfilusuario-tab-btn--active {
    background: var(--pu-rosa);
    border-color: var(--pu-rosa);
    color: #fff;
}

.perfilusuario-panel {
    display: none;
}

.perfilusuario-panel--active {
    display: block;
}

/* Grid / Tiles */
.perfilusuario-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3,1fr);
}

@media (max-width:640px) {
    .perfilusuario-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

.perfilusuario-tile {
    position: relative;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid var(--pu-borda);
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: .15s ease;
    text-align: center;
}

    .perfilusuario-tile:hover {
        transform: translateY(-2px);
        box-shadow: var(--pu-shadow-soft);
    }

.perfilusuario-tile__ico {
    font-size: 18px;
}

.perfilusuario-tile__text {
    font-size: 13px;
}

.perfilusuario-tile__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--pu-badge);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    font-weight: 800;
    display: none;
}

.perfilusuario-tile[data-count]:not([data-count="0"]) .perfilusuario-tile__badge {
    display: inline-block;
}

.perfilusuario-tile--exit {
    border-color: #ffd7dc;
    color: var(--pu-danger);
}

    .perfilusuario-tile--exit:hover {
        box-shadow: 0 6px 16px rgba(215,38,56,.15);
    }
