/* Hub da comunidade (/community/page/view/) — alinhado à listagem: tokens, cartões, tipografia */

body.modal-open {
    overflow: hidden;
}

/* Design tokens — alinhados à listagem de comunidades (community/page/index) */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page {
    --ppsm-hub-font-min: 1.375rem;
    --ppsm-hub-text: #0a0a0a;
    --ppsm-hub-muted: #52525b;
    --ppsm-hub-soft: #71717a;
    --ppsm-hub-border: #e7e7e7;
    --ppsm-hub-surface: #ffffff;
    --ppsm-hub-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(0, 0, 0, 0.04);
    --ppsm-hub-shadow-hover: 0 18px 48px rgba(0, 0, 0, 0.1), 0 4px 14px rgba(0, 0, 0, 0.06);
    --ppsm-hub-radius-card: 24px;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page * {
    box-sizing: border-box !important;
}

/* ——— Hub social: hierarquia, badges, edição inline, sr-only ——— */
.ppsm-hub-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.ppsm-social-scope .ppsm-hub-hero-card {
    border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
    box-shadow: var(--ppsm-hub-shadow, 0 10px 40px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(0, 0, 0, 0.04)) !important;
    background: var(--ppsm-hub-surface, #ffffff) !important;
    overflow: visible !important;
    padding-top: 10px !important;
    height: auto !important;
    min-height: 0 !important;
}

body.ppsm-social-scope .ppsm-hub-hero__body {
    gap: 1.5rem !important;
    padding: 1.5rem 1.5rem 1.65rem !important;
}

@media (min-width: 768px) {
    body.ppsm-social-scope .ppsm-hub-hero__body {
        padding: 1.65rem 1.85rem 1.85rem !important;
        gap: 1.75rem !important;
    }
}

body.ppsm-social-scope #ppsm-container.ppsm-hub-page .ppsm-hub-profile-layout__main .ppsm-hub-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.55rem 0.8rem !important;
    row-gap: 0.55rem !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
    margin: 0.85rem 0 0.6rem !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.ppsm-social-scope .ppsm-badge--hub {
    font-weight: 800 !important;
    font-size: var(--ppsm-hub-font-min, 1.375rem) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    gap: 0.45rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    max-width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    line-height: 1.3 !important;
    white-space: normal !important;
}

body.ppsm-social-scope .ppsm-badge--hub-public {
    background: rgba(22, 101, 52, 0.08) !important;
    color: #166534 !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

body.ppsm-social-scope .ppsm-badge--hub-public i {
    color: #15803d !important;
}

body.ppsm-social-scope .ppsm-badge--hub-private {
    background: #fafafa !important;
    color: #3f3f46 !important;
    border-color: #e4e4e7 !important;
}

body.ppsm-social-scope .ppsm-badge--hub-season {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
    text-transform: none !important;
    font-size: var(--ppsm-hub-font-min, 1.375rem) !important;
    letter-spacing: 0.02em !important;
    white-space: normal !important;
    max-width: 100% !important;
    line-height: 1.4 !important;
    text-align: left !important;
    word-break: break-word !important;
    hyphens: auto;
}

body.ppsm-social-scope .ppsm-badge--hub-season i {
    color: #b45309 !important;
}

/* Visibilidade da página (dono) + respiro entre label, switch e texto */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-privacy {
    margin: 1.35rem 0 0.85rem !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-privacy__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.85rem 1.15rem !important;
    margin: 0 0 0.85rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-privacy__label {
    font-size: max(1rem, var(--ppsm-hub-font-min, 1.375rem)) !important;
    font-weight: 700 !important;
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    margin: 0 0.35rem 0 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-privacy__state {
    font-size: max(1rem, var(--ppsm-hub-font-min, 1.375rem)) !important;
    font-weight: 700 !important;
    color: var(--ppsm-hub-muted, #52525b) !important;
    margin: 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-privacy__hint {
    margin: 0.45rem 0 0 !important;
    padding: 0 !important;
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
    color: var(--ppsm-hub-soft, #71717a) !important;
    max-width: 38rem !important;
}

/* Switch de privacidade: estilos em ppsm-hub-profile-header.css (evitar duplicar / conflitar) */

body.ppsm-social-scope .ppsm-hub-followers-row {
    margin-top: 1.35rem !important;
    margin-bottom: 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.ppsm-social-scope .ppsm-hub-followers-link {
    display: inline-flex !important;
    max-width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}

body.ppsm-social-scope .ppsm-hub-followers-link:hover .ppsm-badge--hub-followers {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
}

body.ppsm-social-scope .ppsm-badge--hub-followers {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #eef2ff !important;
    text-transform: none !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.02em !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

body.ppsm-social-scope .ppsm-badge--hub-followers i {
    color: #e0e7ff !important;
}

body.ppsm-social-scope .ppsm-hero__title--hub {
    font-size: clamp(1.75rem, 5vw, 2.35rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.1 !important;
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    margin: 0 !important;
}

body.ppsm-social-scope .ppsm-hero__subtitle--hub {
    font-size: max(1.0625rem, var(--ppsm-hub-font-min, 1.375rem)) !important;
    font-weight: 600 !important;
    color: var(--ppsm-hub-soft, #71717a) !important;
    margin-top: 0.85rem !important;
    margin-bottom: 0.65rem !important;
}

body.ppsm-social-scope #ppsm-container.ppsm-hub-page .ppsm-hub-profile-layout__main .ppsm-hero__social {
    justify-content: flex-start;
    margin-top: 0.65rem;
}

body.ppsm-social-scope .ppsm-hub-field__view {
    width: 100%;
    min-width: 0;
}

body.ppsm-social-scope .ppsm-hub-title-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

body.ppsm-social-scope .ppsm-hub-title-row .ppsm-hero__title--hub {
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.ppsm-social-scope .ppsm-hub-title-row .ppsm-hub-edit-btn {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 0.15rem;
}

body.ppsm-social-scope .ppsm-hub-bio-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.7rem !important;
    margin-top: 0.9rem !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.ppsm-social-scope .ppsm-hub-bio-row .ppsm-hero__bio--hub {
    flex: 1 1 0%;
    min-width: 0;
    margin: 0 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.ppsm-social-scope .ppsm-hub-bio-row .ppsm-hub-edit-btn {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 0.1rem;
}

/* Ícone editar: span (evita estilo global de <button> do tema) — branco + contorno */
body.ppsm-social-scope .ppsm-hub-edit-btn {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #0f172a;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.ppsm-social-scope .ppsm-hub-edit-btn i {
    color: inherit;
    font-size: var(--ppsm-hub-font-min, 1.375rem);
    pointer-events: none;
}

body.ppsm-social-scope .ppsm-hub-edit-btn:hover {
    background: #f8fafc;
    border-color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.ppsm-social-scope .ppsm-hub-edit-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

body.ppsm-social-scope .ppsm-hero__bio--hub {
    font-size: max(1.0625rem, var(--ppsm-hub-font-min, 1.375rem)) !important;
    line-height: 1.65 !important;
    color: var(--ppsm-hub-muted, #52525b) !important;
    white-space: pre-wrap;
}

body.ppsm-social-scope .ppsm-hero__bio--placeholder {
    color: #94a3b8 !important;
    font-style: italic;
}

body.ppsm-social-scope #ppsm-content {
    margin-top: 1.25rem;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    body.ppsm-social-scope #ppsm-content {
        margin-top: 1.5rem;
    }
}

/*
 * Hub header: o dashboard define #ppsm-container .ppsm-hero { overflow: hidden !important; }
 * — isso corta sombra do avatar, hints e badges. Forçar visible só no hub.
 */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hero.ppsm-hero--hub-profile {
    overflow: visible !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hero.ppsm-hero--hub-profile .ppsm-hero__body {
    overflow: visible !important;
    max-width: 100% !important;
}

/* Linha tipo Instagram: [avatar] | [coluna: título, badges, slug, bio] — flexbox */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hero__body.ppsm-hub-hero__body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    min-height: 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout {
        gap: 1.5rem;
    }
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout__avatar {
    flex: 0 0 auto;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    overflow: visible;
    padding-top: 4px;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout__main {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout__avatar .ppsm-hero__avatar-block {
    width: 128px;
    max-width: 100%;
    margin: 0;
    overflow: visible;
}

/* Avatar hub: tamanho social + overlay centrado (câmara + Alterar) */
body.ppsm-social-scope .ppsm-hub-avatar {
    width: 128px;
}

body.ppsm-social-scope .ppsm-hub-avatar .ppsm-hero__avatar-hit {
    width: 128px;
    height: 128px;
}

body.ppsm-social-scope .ppsm-hub-avatar .ppsm-hero__avatar-ring {
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

body.ppsm-social-scope .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar-img,
body.ppsm-social-scope .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar--fallback {
    width: 128px;
    height: 128px;
}

/* Avatar: upload cobre toda a área circular (clique na foto) */
body.ppsm-social-scope .ppsm-hero__avatar-block {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    body.ppsm-social-scope .ppsm-hero__avatar-block {
        margin: 0;
    }
}

body.ppsm-social-scope .ppsm-hero__avatar-hit {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
}

@media (min-width: 768px) {
    body.ppsm-social-scope .ppsm-hero__avatar-hit {
        margin: 0;
    }
}

/* File input fora do ecrã — evita o botão nativo "Escolher arquivo" sobre o avatar */
#ppsm-container.ppsm-hub-page .ppsm-hub-avatar-file-hidden,
body.ppsm-social-scope #ppsm-container.ppsm-hub-page .ppsm-hub-avatar-file-hidden {
    position: fixed !important;
    left: -10000px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.ppsm-social-scope .ppsm-hero__avatar-ring {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--ppsm-uber-border, #e8e8e8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

body.ppsm-social-scope .ppsm-hero__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: none;
    box-shadow: none;
}

body.ppsm-social-scope .ppsm-hero__avatar--fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
}

body.ppsm-social-scope .ppsm-hero__avatar-veil {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    z-index: 1;
}

body.ppsm-social-scope .ppsm-hero__avatar-veil-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
}

body.ppsm-social-scope .ppsm-hero__avatar-veil-inner .fa-camera {
    font-size: 1.35rem;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

body.ppsm-social-scope .ppsm-hero__avatar-veil-text {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.2;
}

body.ppsm-social-scope .ppsm-hero__avatar-hit:hover .ppsm-hero__avatar-veil,
body.ppsm-social-scope .ppsm-hero__avatar-hit:focus .ppsm-hero__avatar-veil,
body.ppsm-social-scope .ppsm-hero__avatar-hit:focus-within .ppsm-hero__avatar-veil {
    opacity: 1;
}

body.ppsm-social-scope .ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar-img,
body.ppsm-social-scope .ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar--fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 3px solid var(--ppsm-uber-border, #e8e8e8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

body.ppsm-social-scope .ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 2.25rem;
    font-weight: 800;
}

body.ppsm-social-scope .ppsm-hero__avatar-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #b91c1c;
    text-align: center;
    max-width: 120px;
}

@media (min-width: 768px) {
    body.ppsm-social-scope .ppsm-hero__avatar-hint {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 0.35rem;
        max-width: none;
    }
}

body.ppsm-social-scope #ppsm-container.ppsm-hub-page .ppsm-hero__info {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

body.ppsm-social-scope .ppsm-hero__actions {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    body.ppsm-social-scope .ppsm-hero__actions {
        flex: 0 0 auto;
        margin-left: auto;
        justify-content: flex-end;
    }
}

/* Cartão das stats: #ppsm-grid (2× id) para vencer ppsm-dashboard-layout.css */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub.ppsm-stats--hub-clickable:not(.ppsm-hub-cgrid--uber),
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page nav#ppsm-grid.ppsm-stats--hub:not(.ppsm-hub-cgrid--uber) {
    background: var(--ppsm-hub-surface, #ffffff) !important;
    border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
    box-shadow: var(--ppsm-hub-shadow, 0 10px 40px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(0, 0, 0, 0.04)) !important;
    gap: 1rem !important;
    padding: 1.15rem 1.2rem 1.25rem !important;
    border-radius: var(--ppsm-hub-radius-card, 24px) !important;
    overflow: visible !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub.ppsm-stats--hub-social:not(.ppsm-hub-cgrid--uber),
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page nav#ppsm-grid.ppsm-stats--hub:not(.ppsm-hub-cgrid--uber) {
        grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)) !important;
        gap: 1.15rem !important;
        padding: 1.35rem 1.4rem 1.45rem !important;
    }
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable .ppsm-stat,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable button.ppsm-stat,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat {
    cursor: pointer;
    background: var(--ppsm-hub-surface, #ffffff) !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    -webkit-text-fill-color: var(--ppsm-hub-text, #0a0a0a) !important;
    border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
    border-radius: var(--ppsm-hub-radius-card, 24px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable .ppsm-stat:hover,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable button.ppsm-stat:hover,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat:hover,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat:hover {
    transform: translateY(-3px) !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #d4d4d8 !important;
    box-shadow: var(--ppsm-hub-shadow-hover, 0 18px 48px rgba(0, 0, 0, 0.1), 0 4px 14px rgba(0, 0, 0, 0.06)) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable .ppsm-stat:active,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat:active,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat:active {
    transform: translateY(0) !important;
    background: #fafafa !important;
    background-color: #fafafa !important;
    border-color: var(--ppsm-hub-border, #e7e7e7) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable .ppsm-stat:focus-visible,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat:focus-visible,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat:focus-visible {
    outline: 3px solid rgba(10, 10, 10, 0.35) !important;
    outline-offset: 2px !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable .ppsm-stat__icon,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub .ppsm-stat__icon {
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.4rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable .ppsm-stat__val,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub .ppsm-stat__val {
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    font-size: clamp(1.75rem, 4.5vw, 2.15rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-stats--hub-clickable .ppsm-stat__label,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub .ppsm-stat__label {
    color: var(--ppsm-hub-muted, #52525b) !important;
    font-weight: 800 !important;
    font-size: var(--ppsm-hub-font-min, 1.375rem) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    line-height: 1.25 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat--no-counter {
    justify-content: center !important;
    gap: 0.35rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat--no-counter .ppsm-stat__icon {
    margin-bottom: 0 !important;
    font-size: 1.35rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat--no-counter .ppsm-stat__label {
    font-size: var(--ppsm-hub-font-min, 1.375rem) !important;
    margin-top: 0.15rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub button.ppsm-stat--btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    font: inherit !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
}

/*
 * Mobile (ppsm-mobile.css): .ppsm-stats vira flex row e button herda estilo do tema (ex.: preto).
 * Reaplicar grelha + cartões claros só no hub.
 */
@media (max-width: 991px) {
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub.ppsm-stats--hub-clickable:not(.ppsm-hub-cgrid--uber),
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page nav#ppsm-grid.ppsm-stats--hub:not(.ppsm-hub-cgrid--uber) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.85rem !important;
        padding: 1rem 1rem 1.1rem !important;
        margin: 0 !important;
        background: var(--ppsm-hub-surface, #ffffff) !important;
        border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
        border-radius: var(--ppsm-hub-radius-card, 24px) !important;
        box-shadow: var(--ppsm-hub-shadow, 0 10px 40px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(0, 0, 0, 0.04)) !important;
        overflow: visible !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        justify-content: unset !important;
        align-items: unset !important;
        max-width: 100% !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub:not(.ppsm-hub-cgrid--uber) > button.ppsm-stat,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub:not(.ppsm-hub-cgrid--uber) > a.ppsm-stat {
        flex: unset !important;
        min-width: 0 !important;
        position: relative !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        color: var(--ppsm-hub-text, #0a0a0a) !important;
        -webkit-text-fill-color: var(--ppsm-hub-text, #0a0a0a) !important;
        border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
        border-radius: 18px !important;
        padding: 0.85rem 0.65rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub:not(.ppsm-hub-cgrid--uber) > .ppsm-stat:not(:last-child)::after {
        display: none !important;
        content: none !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub:not(.ppsm-hub-cgrid--uber) > button.ppsm-stat:hover,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub:not(.ppsm-hub-cgrid--uber) > a.ppsm-stat:hover {
        background: #fafafa !important;
        background-color: #fafafa !important;
    }
}

/* Tabs no hub — alinhado à listagem (tab ativa preta, texto branco) */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-tabs__btn:not(.is-active) {
    background-color: #f4f4f5 !important;
    color: #18181b !important;
    border: 1px solid #e4e4e7 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-tabs__btn:not(.is-active) .ppsm-tabs__count {
    background-color: #ffffff !important;
    color: #0a0a0a !important;
    border: 1px solid #d4d4d8 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-tabs__btn.is-active {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    border-color: #0a0a0a !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-tabs__btn.is-active,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-tabs__btn.is-active span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-tabs__btn.is-active i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-tabs__btn.is-active .ppsm-tabs__count {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

/* Modal seguidores */
body.ppsm-social-scope .ppsm-followers-modal-overlay.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
}

body.ppsm-social-scope .ppsm-followers-modal-overlay.modal-overlay[style*='flex'] {
    display: flex !important;
}

body.ppsm-social-scope .ppsm-followers-modal__panel {
    max-width: 420px;
    width: 100%;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: min(88vh, 560px);
    display: flex;
    flex-direction: column;
}

body.ppsm-social-scope .ppsm-followers-modal__panel .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

body.ppsm-social-scope .ppsm-followers-modal__panel .modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

body.ppsm-social-scope .ppsm-followers-modal__panel .modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f4f4f5;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: #374151;
}

body.ppsm-social-scope .ppsm-followers-modal__panel .modal-body {
    padding: 14px 18px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

body.ppsm-social-scope .ppsm-followers-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.ppsm-social-scope .ppsm-followers-modal__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.35rem;
    border-radius: 10px;
    border: 1px solid #f4f4f5;
    background: #fafafa;
}

body.ppsm-social-scope .ppsm-followers-modal__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.ppsm-social-scope .ppsm-followers-modal__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #18181b;
    word-break: break-word;
}

body.ppsm-social-scope .ppsm-followers-modal__empty {
    text-align: center;
    color: #71717a;
    font-size: 0.9rem;
    margin: 1rem 0;
}

body.ppsm-social-scope .ppsm-followers-modal__more-wrap {
    margin-top: 1rem;
    text-align: center;
}

body.ppsm-social-scope .ppsm-followers-modal__more-wrap .ppsm-btn {
    width: 100%;
}

/* Mobile / tablet: anular hero centrado + avatar com margin negativo (ppsm-mobile) — manter linha Instagram */
@media (max-width: 991px) {
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hero--hub-profile {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08) !important;
        border-left: 1px solid rgba(15, 23, 42, 0.06) !important;
        border-right: 1px solid rgba(15, 23, 42, 0.06) !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-hero__body,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hero--hub-profile .ppsm-hero__body {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
        gap: 1.15rem !important;
        padding: 12px 16px 18px !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout__main .ppsm-hero__bio--hub {
        text-align: left !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hero__title--hub,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hero__subtitle--hub {
        text-align: left !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout__avatar .ppsm-hero__avatar-block {
        width: 88px !important;
        margin: 0 !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar .ppsm-hero__avatar-hit {
        width: 88px !important;
        height: 88px !important;
        margin: 0 !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar .ppsm-hero__avatar--fallback,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar .ppsm-hero__avatar-img {
        width: 88px !important;
        height: 88px !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        font-size: 1.35rem !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar-img,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar--fallback {
        width: 88px !important;
        height: 88px !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hero__actions {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 4px !important;
    }
}

@media (max-width: 480px) {
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-profile-layout__avatar .ppsm-hero__avatar-block,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar .ppsm-hero__avatar-hit {
        width: 80px !important;
        height: 80px !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar .ppsm-hero__avatar--fallback,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar .ppsm-hero__avatar-img,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar-img,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar--fallback {
        width: 80px !important;
        height: 80px !important;
        font-size: 1.2rem !important;
    }
}

/* Última palavra: tema Luma aplica <button> primário / largura total — forçar no hub */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-hero-card {
    overflow: visible !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-edit-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #0a0a0a !important;
    color: #0a0a0a !important;
    -webkit-text-fill-color: #0a0a0a !important;
    box-shadow: none !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-edit-btn i {
    color: #0a0a0a !important;
    -webkit-text-fill-color: #0a0a0a !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page .ppsm-hub-edit-btn:hover {
    background: #f4f4f5 !important;
    background-color: #f4f4f5 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat.ppsm-stat--btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    -webkit-text-fill-color: var(--ppsm-hub-text, #0a0a0a) !important;
    border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    min-height: 0 !important;
    padding: 0.85rem 0.65rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat.ppsm-stat--btn .ppsm-stat__icon {
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    -webkit-text-fill-color: var(--ppsm-hub-text, #0a0a0a) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat.ppsm-stat--btn .ppsm-stat__val {
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    -webkit-text-fill-color: var(--ppsm-hub-text, #0a0a0a) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat.ppsm-stat--btn .ppsm-stat__label {
    color: var(--ppsm-hub-muted, #52525b) !important;
    -webkit-text-fill-color: var(--ppsm-hub-muted, #52525b) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat {
    border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat.ppsm-stat--btn:hover,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #d4d4d8 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > button.ppsm-stat.ppsm-stat--btn:active,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub > a.ppsm-stat:active {
    background: #fafafa !important;
    background-color: #fafafa !important;
}

/* Seguidores: alguns temas aplicam estilo ao primeiro <button> da grelha — reforço extra */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub.ppsm-dash-grid > button.ppsm-stat:first-of-type,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub.ppsm-dash-grid > button.ppsm-stat--btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--ppsm-hub-text, #0a0a0a) !important;
    -webkit-text-fill-color: var(--ppsm-hub-text, #0a0a0a) !important;
    border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub.ppsm-dash-grid > button.ppsm-stat:first-of-type .ppsm-stat__label,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-grid.ppsm-stats--hub.ppsm-dash-grid > button.ppsm-stat--btn .ppsm-stat__label {
    color: var(--ppsm-hub-muted, #52525b) !important;
    -webkit-text-fill-color: var(--ppsm-hub-muted, #52525b) !important;
}

/* =============================================================================
 * HUB — CABEÇALHO PREMIUM (mobile first, só /community/page/view/)
 * Identidade: branco dominante, preto em CTAs/hover, badges suaves, !important
 * ============================================================================= */

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header {
    margin-bottom: 1.5rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-hero-card {
    background: #ffffff !important;
    border: 1px solid var(--ppsm-hub-border, #e7e7e7) !important;
    border-radius: var(--ppsm-hub-radius-card, 24px) !important;
    padding: 0 !important;
    box-shadow: var(--ppsm-hub-shadow, 0 10px 40px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(0, 0, 0, 0.04)) !important;
    overflow: visible !important;
    position: relative !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-hero-card::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    background: #0a0a0a !important;
    border-radius: var(--ppsm-hub-radius-card, 24px) 0 0 var(--ppsm-hub-radius-card, 24px) !important;
    opacity: 0.85 !important;
    pointer-events: none !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-hero__body,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__body.ppsm-hub-hero__body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.35rem !important;
    padding: 1.25rem 1.1rem 1.35rem !important;
    background: transparent !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.1rem !important;
    width: 100% !important;
    min-width: 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout__avatar {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    padding-top: 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout__main {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    align-items: center !important;
    gap: 1.05rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout__main .ppsm-hub-badges {
    justify-content: center !important;
    margin: 0.85rem 0 0.65rem !important;
    gap: 0.55rem 0.8rem !important;
    row-gap: 0.55rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout__avatar .ppsm-hero__avatar-block {
    width: 144px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar .ppsm-hero__avatar-hit {
    width: 144px !important;
    height: 144px !important;
    margin: 0 auto !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__avatar-ring {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 4px solid #ffffff !important;
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__avatar-hit:hover .ppsm-hero__avatar-ring,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__avatar-hit:focus .ppsm-hero__avatar-ring {
    transform: scale(1.03) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar-img,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar--fallback {
    width: 144px !important;
    height: 144px !important;
}

/* Overlay “Alterar” — faixa inferior sobre a foto (dono) */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar.ppsm-hero__avatar-block--editable .ppsm-hero__avatar-veil {
    inset: auto 0 0 0 !important;
    top: auto !important;
    height: 38% !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 0 0.45rem !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%) !important;
    opacity: 1 !important;
    pointer-events: none !important;
    transition: background 0.2s ease, opacity 0.2s ease !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__avatar-veil-inner {
    flex-direction: row !important;
    gap: 0.4rem !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__avatar-veil-inner .fa-camera {
    font-size: 0.95rem !important;
    color: #ffffff !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__avatar-hit:hover .ppsm-hero__avatar-veil,
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__avatar-hit:focus .ppsm-hero__avatar-veil {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%) !important;
}

/* Título + editar */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-title-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 0.65rem !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__title--hub {
    margin: 0 !important;
    font-size: clamp(1.85rem, 6.5vw, 2.65rem) !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-align: center !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-title-row .ppsm-hero__title--hub {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-edit-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    background: #f4f4f5 !important;
    background-color: #f4f4f5 !important;
    border: 1px solid #e4e4e7 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-edit-btn:hover {
    background: #000000 !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-edit-btn:hover i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Badges — soft / premium (sem gradientes pesados) */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-badge--hub {
    min-height: 2.75rem !important;
    padding: 0.5rem 0.95rem !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: var(--ppsm-hub-font-min, 1.375rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    border: 1px solid transparent !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    white-space: normal !important;
    max-width: 100% !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-badge--hub-public {
    background: rgba(22, 101, 52, 0.08) !important;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-badge--hub-public i {
    color: #15803d !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-badge--hub-private {
    background: #fafafa !important;
    color: #3f3f46 !important;
    border-color: #e4e4e7 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-badge--hub-season {
    background: #fffbeb !important;
    color: #92400e !important;
    -webkit-text-fill-color: #92400e !important;
    border-color: #fde68a !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-badge--hub-season i {
    color: #b45309 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-badge--hub-followers {
    background: #f4f4f5 !important;
    color: #18181b !important;
    -webkit-text-fill-color: #18181b !important;
    border: 1px solid #e4e4e7 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-followers-row {
    margin: 1rem 0 0.65rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-followers-link:hover .ppsm-badge--hub-followers {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Slug + bio */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__subtitle--hub {
    margin: 1rem 0 1.1rem !important;
    font-size: max(1.0625rem, var(--ppsm-hub-font-min, 1.375rem)) !important;
    font-weight: 600 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    color: var(--ppsm-hub-soft, #71717a) !important;
    -webkit-text-fill-color: var(--ppsm-hub-soft, #71717a) !important;
    letter-spacing: -0.01em !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-bio-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0.55rem !important;
    width: 100% !important;
    min-width: 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-bio-row .ppsm-hero__bio--hub {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__bio--hub {
    margin: 0 !important;
    font-size: max(1.0625rem, var(--ppsm-hub-font-min, 1.375rem)) !important;
    line-height: 1.65 !important;
    font-weight: 500 !important;
    color: var(--ppsm-hub-muted, #52525b) !important;
    -webkit-text-fill-color: var(--ppsm-hub-muted, #52525b) !important;
    max-width: none !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__bio--placeholder {
    color: #a1a1aa !important;
    font-style: normal !important;
}

/* Ações: seguir + Minhas páginas */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    margin: 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__actions form {
    width: 100% !important;
    margin: 0 !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__actions .ppsm-btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 50px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: var(--ppsm-hub-font-min, 1.375rem) !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-btn--nav-back {
    min-height: 52px !important;
    padding: 0 1.15rem !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-btn--nav-back:hover {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14) !important;
}

/* Tablet/desktop ≥900px — linha Instagram + “Minhas páginas” visível no hub */
@media (min-width: 900px) {
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-desktop-only {
        display: inline-flex !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-hero-card {
        border-radius: 28px !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-hero__body,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__body.ppsm-hub-hero__body {
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 1.75rem !important;
        padding: 1.85rem 2rem 2rem !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout {
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 1.75rem !important;
        flex: 1 1 auto !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout__avatar {
        width: auto !important;
        justify-content: flex-start !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout__main {
        text-align: left !important;
        align-items: flex-start !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout__main .ppsm-hub-badges {
        justify-content: flex-start !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-followers-row {
        justify-content: flex-start !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-title-row {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__title--hub {
        text-align: left !important;
        font-size: clamp(2.4rem, 3.6vw, 3.35rem) !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-bio-row {
        justify-content: flex-start !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-profile-layout__avatar .ppsm-hero__avatar-block {
        width: 168px !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar .ppsm-hero__avatar-hit {
        width: 168px !important;
        height: 168px !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar-img,
    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hub-avatar.ppsm-hero__avatar-block:not(.ppsm-hero__avatar-block--editable) .ppsm-hero__avatar--fallback {
        width: 168px !important;
        height: 168px !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__actions {
        width: auto !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        gap: 0.55rem !important;
    }

    html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-hub-page #ppsm-header .ppsm-hero__actions .ppsm-btn {
        width: auto !important;
        min-width: 10.5rem !important;
    }
}

/* Atalhos do hub (grelha moderna): ver <style id="ppsm-hub-quicknav-scoped"> em hub.phtml */
