main[role="main"] {
    position: relative;
}


/* =========================================================
   BOTÃO DE LOGIN INTERNO DA BIO
   ========================================================= */

.bio-account-login-trigger-wrap {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 24;

    width:
        min(
            calc(100% - 28px),
            var(--maxw, 720px)
        );

    height: 44px;

    transform: translateX(-50%);

    pointer-events: none;
}

.bio-account-login-trigger {
    position: absolute;
    top: 0;
    right: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    padding: 0;

    color:
        var(
            --text,
            #ffffff
        );

    background:
        rgba(8, 15, 29, 0.68);

    border:
        1px solid
        rgba(255, 255, 255, 0.26);

    border-radius: 50%;

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.32);

    -webkit-backdrop-filter:
        blur(12px);

    backdrop-filter:
        blur(12px);

    cursor: pointer;

    pointer-events: auto;

    transition:
        transform 160ms ease,
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.bio-account-login-trigger:hover,
.bio-account-login-trigger:focus-visible,
.bio-account-login-trigger.is-active,
.bio-account-login-trigger.is-authenticated {
    color:
        var(
            --account-login-accent-text,
            #ffffff
        );

    background:
        var(
            --account-login-accent,
            var(--accent, #6366f1)
        );

    border-color:
        var(
            --account-login-accent,
            var(--accent, #6366f1)
        );

    transform: translateY(-1px);

    outline: none;
}

.bio-account-login-trigger svg {
    width: 1.05em;
    height: 1.05em;

    fill: currentColor;
    stroke: none;

    flex: 0 0 auto;
}

.public-visually-hidden {
    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;
}


/* =========================================================
   PÁGINA DE LOGIN
   ========================================================= */

.account-login-section {
    width:
        min(
            100%,
            520px
        );

    margin: 0 auto;
}

.account-login-section[hidden] {
    display: none !important;
}

.account-login-card {
    width: 100%;
    padding: 24px;

    color:
        var(
            --account-login-text,
            #ffffff
        );

    background:
        var(
            --account-login-card-bg,
            rgba(8, 16, 29, 0.88)
        );

    border:
        1px solid
        var(
            --account-login-card-border,
            rgba(255, 255, 255, 0.18)
        );

    border-radius:
        var(
            --account-login-card-radius,
            16px
        );

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, 0.42);

    -webkit-backdrop-filter:
        blur(
            var(
                --account-login-card-blur,
                18px
            )
        );

    backdrop-filter:
        blur(
            var(
                --account-login-card-blur,
                18px
            )
        );

    box-sizing: border-box;
}

.member-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 24px;

    text-align: center;
}

.account-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin-bottom: 16px;

    color:
        var(
            --account-login-accent-text,
            #ffffff
        );

    background:
        var(
            --account-login-accent,
            #6366f1
        );

    border:
        3px solid
        rgba(255, 255, 255, 0.72);

    border-radius: 50%;

    box-shadow:
        0 14px 34px
        rgba(0, 0, 0, 0.32);
}

.account-login-icon svg {
    width: 32px;
    height: 32px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-profile-title {
    margin: 0;

    color:
        var(
            --account-login-text,
            #ffffff
        );

    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.member-profile-description {
    max-width: 390px;

    margin: 9px auto 0;

    color:
        var(
            --account-login-muted,
            #b9c0cb
        );

    font-size: 0.88rem;
    line-height: 1.5;
}

.member-profile-form {
    display: flex;
    flex-direction: column;
    gap: 17px;

    width: 100%;
}

.member-profile-field {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.member-profile-label {
    margin-bottom: 7px;

    color:
        var(
            --account-login-label,
            var(--account-login-text, #ffffff)
        );

    font-size: 0.82rem;
    font-weight: 700;
}

.member-profile-input {
    width: 100%;
    min-width: 0;
    height: 48px;

    padding: 0 14px;

    color:
        var(
            --account-login-input-text,
            #ffffff
        );

    background:
        var(
            --account-login-input-bg,
            rgba(255, 255, 255, 0.07)
        );

    border:
        1px solid
        var(
            --account-login-input-border,
            rgba(255, 255, 255, 0.18)
        );

    border-radius:
        calc(
            var(
                --account-login-card-radius,
                16px
            ) - 5px
        );

    outline: none;

    font: inherit;
    font-size: 0.94rem;

    box-sizing: border-box;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.member-profile-input::placeholder {
    color:
        rgba(255, 255, 255, 0.42);
}

.account-login-card
.member-profile-input:hover:not(:focus) {
    border-color:
        var(
            --account-login-input-border-hover,
            rgba(255, 255, 255, 0.3)
        );
}

.member-profile-input:focus {
    border-color:
        var(
            --account-login-input-focus,
            var(--account-login-accent, #6366f1)
        );

    background:
        rgba(255, 255, 255, 0.1);

    box-shadow:
        0 0 0 3px
        rgba(99, 102, 241, 0.2);
}

.member-profile-input:read-only {
    opacity: 0.72;
}

.member-profile-password-control {
    position: relative;

    width: 100%;
    min-width: 0;
}

.member-profile-password-control
.member-profile-input {
    padding-right: 56px;
}

.member-profile-password-toggle {
    position: absolute;
    z-index: 2;

    top: 50%;
    right: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    color:
        var(
            --account-login-muted,
            rgba(255, 255, 255, 0.7)
        );

    background: transparent;
    border: 0;
    border-radius: 10px;

    cursor: pointer;
    touch-action: manipulation;

    transform:
        translateY(-50%);

    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.member-profile-password-toggle:hover {
    color:
        var(
            --account-login-text,
            #ffffff
        );

    background:
        rgba(255, 255, 255, 0.08);
}

.member-profile-password-toggle:focus-visible {
    color:
        var(
            --account-login-text,
            #ffffff
        );

    outline:
        2px solid
        var(
            --account-login-input-focus,
            var(--account-login-accent, #6366f1)
        );

    outline-offset: -3px;
}

.member-profile-password-toggle:disabled {
    cursor: default;
    opacity: 0.5;
}

.member-profile-password-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;

    pointer-events: none;
}

.member-profile-password-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-profile-password-icon-hide {
    display: none;
}

.member-profile-password-toggle[aria-pressed="true"]
.member-profile-password-icon-show {
    display: none;
}

.member-profile-password-toggle[aria-pressed="true"]
.member-profile-password-icon-hide {
    display: flex;
}

.member-profile-field-message {
    display: none;

    margin-top: 6px;

    color: #fb7185;

    font-size: 0.74rem;
    line-height: 1.4;
}

.member-profile-field.has-error
.member-profile-field-message {
    display: block;
}

.member-profile-field.has-error
.member-profile-input {
    border-color: #fb7185;
}


/* =========================================================
   BOTÕES E FEEDBACK
   ========================================================= */

.member-profile-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    margin-top: 5px;
    padding: 13px 18px;

    color:
        var(
            --account-login-accent-text,
            #ffffff
        );

    background:
        var(
            --account-login-accent,
            #6366f1
        );

    border: 0;

    border-radius:
        calc(
            var(
                --account-login-card-radius,
                16px
            ) - 4px
        );

    box-shadow:
        0 12px 30px
        rgba(99, 102, 241, 0.3);

    cursor: pointer;

    font: inherit;
    font-size: 0.94rem;
    font-weight: 800;

    transition:
        transform 150ms ease,
        filter 150ms ease;
}

.member-profile-submit:hover:not(:disabled) {
    filter: brightness(1.08);

    transform:
        translateY(-1px);
}

.member-profile-submit:disabled {
    cursor: not-allowed;

    opacity: 0.7;
}

.member-profile-submit-text,
.member-profile-submit-loading {
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.member-profile-submit-text {
    display: inline-flex;
}

.member-profile-submit-text svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-profile-submit-loading {
    display: none;
}

.member-profile-submit.is-loading
.member-profile-submit-text {
    display: none;
}

.member-profile-submit.is-loading
.member-profile-submit-loading {
    display: inline-flex;
}

.member-profile-spinner {
    width: 17px;
    height: 17px;

    border:
        2px solid
        rgba(255, 255, 255, 0.3);

    border-top-color:
        currentColor;

    border-radius: 50%;

    animation:
        member-profile-spin
        700ms
        linear
        infinite;
}

@keyframes member-profile-spin {
    to {
        transform: rotate(360deg);
    }
}

.account-login-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 46px;

    padding: 11px 16px;

    color:
        var(
            --account-login-text,
            #ffffff
        );

    background: transparent;

    border:
        1px solid
        var(
            --account-login-input-border,
            rgba(255, 255, 255, 0.18)
        );

    border-radius:
        calc(
            var(
                --account-login-card-radius,
                16px
            ) - 4px
        );

    cursor: pointer;

    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.account-login-back:hover,
.account-login-back:focus-visible {
    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        var(
            --account-login-accent,
            #6366f1
        );

    transform:
        translateY(-1px);

    outline: none;
}

.account-login-preview-notice {
    margin: 0;

    color:
        var(
            --account-login-muted,
            #b9c0cb
        );

    font-size: 0.72rem;
    line-height: 1.45;
    text-align: center;
}

.member-profile-feedback {
    display: none;

    padding: 11px 13px;

    border-radius: 10px;

    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

.member-profile-feedback.is-visible {
    display: block;
}

.member-profile-feedback.is-error {
    color: #fecdd3;

    background:
        rgba(244, 63, 94, 0.13);

    border:
        1px solid
        rgba(251, 113, 133, 0.32);
}

.member-profile-feedback.is-success {
    color: #bbf7d0;

    background:
        rgba(34, 197, 94, 0.13);

    border:
        1px solid
        rgba(74, 222, 128, 0.3);
}


/* =========================================================
   ESTADO DE NAVEGAÇÃO DA PÁGINA
   ========================================================= */

/*
 * Enquanto o login estiver aberto, identidade, rodapé,
 * seletor de idioma e demais filhos diretos deixam de
 * participar do layout. previewSections continua visível.
 */
main[role="main"].is-account-login >
*:not(#previewSections):not(.site-footer),

main[role="main"].is-checkout-account-required >
*:not(#previewSections):not(.site-footer),

main[role="main"].is-account-recovery >
*:not(#previewSections):not(.site-footer) {
    display: none !important;
}

main[role="main"].is-account-login,
main[role="main"].is-checkout-account-required {
    padding-top: 82px;
}

main[role="main"].is-account-login
#previewSections,
main[role="main"].is-checkout-account-required
#previewSections {
    width:
        min(
            100%,
            var(--maxw, 720px)
        );

    margin: 0 auto;
}

body.is-private-area
.bio-account-login-trigger-wrap {
    display: none;
}


/* =========================================================
   LOGOUT DA ÁREA PRIVADA
   ========================================================= */

.private-area-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.private-area-logout {
    min-height: 36px;

    padding: 7px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        rgba(255, 255, 255, 0.88);

    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;

    cursor: pointer;
}

.private-area-logout:hover {
    background:
        rgba(239, 68, 68, 0.18);

    border-color:
        rgba(248, 113, 113, 0.32);

    color: #ffffff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .bio-account-login-trigger-wrap {
        top: 12px;

        width:
            calc(100% - 24px);

        height: 42px;
    }

    .bio-account-login-trigger {
        width: 42px;
        height: 42px;
    }

    .account-login-card {
        padding: 20px 17px;
    }

    .member-profile-title {
        font-size: 1.25rem;
    }

    .member-profile-description {
        font-size: 0.82rem;
    }

    .member-profile-input {
        height: 47px;

        font-size: 0.9rem;
    }

    main[role="main"].is-account-login,
    main[role="main"].is-checkout-account-required {
        padding-top: 72px;
    }
}


/* PUBLIC BIO PASSWORD RESET */

.account-login-view[hidden] {
    display: none !important;
}

.account-login-link {
    align-self: center;

    margin: -4px 0 0;
    padding: 4px 8px;

    color:
        var(
            --account-login-muted,
            #b9c0cb
        );

    background: transparent;
    border: 0;

    cursor: pointer;

    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;

    transition:
        color 150ms ease,
        opacity 150ms ease;
}

.account-login-link:hover,
.account-login-link:focus-visible {
    color:
        var(
            --account-login-text,
            #ffffff
        );

    outline: none;
}

.account-password-reset-identity {
    margin: 0;
    padding: 10px 12px;

    color:
        var(
            --account-login-muted,
            #b9c0cb
        );

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid
        var(
            --account-login-input-border,
            rgba(255, 255, 255, 0.18)
        );

    border-radius: 10px;

    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
}

.account-password-reset-identity[hidden] {
    display: none !important;
}

/* PERFIL PRIVADO - ESPACO ENTRE ACOES */
#privateProfilePanel .account-login-back {
    margin-top: 12px;
}

/* PERFIL PRIVADO - AVATAR EDITÁVEL */
#privateProfilePanel .private-profile-avatar {
    position: relative;

    width: 76px;
    height: 76px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 16px;
    padding: 0;

    overflow: visible;

    color:
        var(
            --account-login-accent-text,
            #ffffff
        );

    background:
        var(
            --account-login-accent,
            #6366f1
        );

    border:
        3px solid
        rgba(255, 255, 255, 0.75);

    border-radius: 50%;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.32);

    cursor: pointer;

    font: inherit;
    font-size: 1.75rem;
    font-weight: 800;
}

#privateProfilePanel
.private-profile-avatar > img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    border-radius: 50%;
}

#privateProfilePanel
.private-profile-avatar > img[hidden] {
    display: none !important;
}

#privateProfilePanel
.private-profile-avatar-camera {
    position: absolute;
    right: -4px;
    bottom: -3px;

    width: 29px;
    height: 29px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: rgba(8, 15, 29, 0.96);

    border:
        2px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 50%;

    box-shadow:
        0 5px 14px
        rgba(0, 0, 0, 0.34);
}

#privateProfilePanel
.private-profile-avatar-camera svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#privateProfilePanel
.private-profile-avatar:hover {
    filter: brightness(1.08);
}

#privateProfilePanel
.private-profile-avatar.is-loading {
    cursor: wait;
    opacity: 0.62;
}

#privateProfilePanel
.private-profile-avatar[aria-disabled="true"] {
    cursor: not-allowed;
}

/* =========================================================
 * PERFIL PRIVADO - MENU HAMBURGUER
 * ========================================================= */

[data-private-panel="account"]
.member-profile-header,

#privateProfilePanel
.member-profile-header {
    position: relative;
}

#privateAccountMenuButton,
#privateProfileMenuButton {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border-radius: 50%;

    font-size: 1.05rem;
    line-height: 1;
}

#privateAccountMenuButton:hover,
#privateProfileMenuButton:hover {
    background:
        rgba(255, 255, 255, 0.14);
}


/*
 * Minha conta e Meu perfil mantêm seus cards standalone,
 * mas podem abrir o mesmo menu lateral utilizado pelo Canal.
 */
.private-area-shell.is-account-view
.private-area-sidebar {
    display: block !important;
    z-index: 50;
}


/* =========================================================
 * ÁREA PRIVADA - FLAGS REAIS
 * ========================================================= */

#privateCurrentLanguageFlag,
.private-language-option
[data-private-language-flag] {
    width: 20px;
    height: 15px;

    display: block;
    flex: 0 0 20px;

    object-fit: cover;

    border-radius: 2px;

    box-shadow:
        0 0 0 1px
        rgba(255, 255, 255, 0.18);
}

.private-language-option {
    align-items: center;
}

.private-language-option.is-current {
    opacity: 0.58;
    cursor: default;
}

.private-language-option.is-current:hover {
    transform: none;
}

/* =========================================================
   PUBLIC PRIVATE THEME BRIDGE — PHASE 1
   Login, perfil e Minha conta
   ========================================================= */

/* LOGIN */
.account-login-section .member-profile-input {
    border-radius: var(--account-login-input-radius, 12px);
}

.account-login-section .member-profile-input::placeholder {
    color: var(--account-login-input-placeholder, rgba(255, 255, 255, 0.42));
    opacity: 1;
}

.account-login-section .member-profile-input:focus {
    border-color: var(--account-login-input-focus, var(--account-login-accent, #6366f1));
    box-shadow: 0 0 0 3px color-mix(
        in srgb,
        var(--account-login-input-focus, var(--account-login-accent, #6366f1)) 24%,
        transparent
    );
}

.account-login-section .account-login-icon {
    color: var(--account-login-icon-text, var(--account-login-accent-text, #ffffff));
    background: var(--account-login-icon-bg, var(--account-login-accent, #6366f1));
    border-color: var(--account-login-icon-border, rgba(255, 255, 255, 0.72));
}

.account-login-section .member-profile-submit {
    color: var(--account-login-primary-text, var(--account-login-accent-text, #ffffff));
    background: var(--account-login-primary-bg, var(--account-login-accent, #6366f1));
    border: 1px solid var(--account-login-primary-bg, var(--account-login-accent, #6366f1));
    border-radius: var(--account-login-primary-radius, 12px);
}

.account-login-section .member-profile-submit:hover:not(:disabled),
.account-login-section .member-profile-submit:focus-visible:not(:disabled) {
    color: var(--account-login-primary-text, var(--account-login-accent-text, #ffffff));
    background: var(--account-login-primary-hover, var(--account-login-accent, #6366f1));
    border-color: var(--account-login-primary-hover, var(--account-login-accent, #6366f1));
}

.account-login-section .account-login-back {
    color: var(--account-login-secondary-text, var(--account-login-text, #ffffff));
    border-color: var(--account-login-secondary-border, var(--account-login-input-border, rgba(255, 255, 255, 0.18)));
    border-radius: var(--account-login-secondary-radius, 12px);
}

.account-login-section .account-login-back:hover,
.account-login-section .account-login-back:focus-visible {
    color: var(--account-login-secondary-text, var(--account-login-text, #ffffff));
    background: var(--account-login-secondary-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--account-login-secondary-border, var(--account-login-accent, #6366f1));
}

/* CRIAR / EDITAR PERFIL */
#privateProfilePanel .member-profile-input {
    border-radius: var(--member-profile-input-radius, 12px);
}

#privateProfilePanel .member-profile-input::placeholder {
    color: var(--member-profile-input-placeholder, rgba(255, 255, 255, 0.42));
    opacity: 1;
}

#privateProfilePanel .member-profile-input:focus {
    border-color: var(--member-profile-input-focus, var(--account-private-accent, #6366f1));
    box-shadow: 0 0 0 3px color-mix(
        in srgb,
        var(--member-profile-input-focus, var(--account-private-accent, #6366f1)) 24%,
        transparent
    );
}

#privateProfilePanel .member-profile-submit {
    color: var(--member-profile-primary-text, var(--account-private-accent-text, #ffffff));
    background: var(--member-profile-primary-bg, var(--account-private-accent, #6366f1));
    border: 1px solid var(--member-profile-primary-bg, var(--account-private-accent, #6366f1));
    border-radius: var(--member-profile-primary-radius, 12px);
}

#privateProfilePanel .member-profile-submit:hover:not(:disabled),
#privateProfilePanel .member-profile-submit:focus-visible:not(:disabled) {
    color: var(--member-profile-primary-text, var(--account-private-accent-text, #ffffff));
    background: var(--member-profile-primary-hover, var(--account-private-accent, #6366f1));
    border-color: var(--member-profile-primary-hover, var(--account-private-accent, #6366f1));
}

#privateProfilePanel .account-login-back {
    color: var(--member-profile-secondary-text, var(--account-private-text, #ffffff));
    background: var(--member-profile-secondary-bg, transparent);
    border-color: var(--member-profile-secondary-border, var(--account-private-panel-border, rgba(255, 255, 255, 0.18)));
    border-radius: var(--member-profile-secondary-radius, 12px);
}

#privateProfilePanel .account-login-back:hover,
#privateProfilePanel .account-login-back:focus-visible {
    color: var(--member-profile-secondary-text, var(--account-private-text, #ffffff));
    background: var(--member-profile-secondary-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--member-profile-secondary-border, var(--account-private-accent, #6366f1));
}

/* AVATAR GRANDE COMPARTILHADO */
.private-account-preview-card .member-profile-avatar,
#privateProfilePanel .private-profile-avatar {
    width: var(--web-account-avatar-size, 76px);
    height: var(--web-account-avatar-size, 76px);
    flex: 0 0 var(--web-account-avatar-size, 76px);
    background: var(--web-account-avatar-bg, var(--account-private-accent, #6366f1));
    border-width: var(--web-account-avatar-border-width, 3px);
    border-style: solid;
    border-color: var(--web-account-avatar-border, rgba(255, 255, 255, 0.75));
    border-radius: var(--web-account-avatar-radius, 50%);
    box-shadow:
        0 12px var(--web-account-avatar-shadow-blur, 30px)
        var(--web-account-avatar-shadow-color, rgba(0, 0, 0, 0.32));
}

.private-account-preview-card .member-profile-avatar img,
#privateProfilePanel .private-profile-avatar > img {
    border-radius: inherit;
}

.private-account-preview-card .account-private-photo-camera,
#privateProfilePanel .private-profile-avatar-camera {
    width: var(--web-account-camera-size, 25px);
    height: var(--web-account-camera-size, 25px);
    color: var(--web-account-camera-text, #ffffff);
    background: var(--web-account-camera-bg, rgba(5, 12, 26, 0.88));
    border-color: var(--web-account-camera-border, rgba(255, 255, 255, 0.9));
}

.private-account-preview-card .account-private-photo-camera svg,
#privateProfilePanel .private-profile-avatar-camera svg {
    width: 54%;
    height: 54%;
    display: block;
    fill: none;
    stroke: currentColor;
}

/* MINHA CONTA */
.private-account-preview-card .account-private-welcome,
.private-account-preview-card .account-private-member-panel {
    border-radius: var(--account-private-panel-radius, 13px);
    -webkit-backdrop-filter: blur(var(--account-private-panel-blur, 0px));
    backdrop-filter: blur(var(--account-private-panel-blur, 0px));
}

.private-account-preview-card .account-private-summary-row,
.private-account-preview-card .account-private-subscription-row {
    background: var(--account-private-row-bg, var(--account-private-panel-bg, rgba(255, 255, 255, 0.06)));
    border-color: var(--account-private-row-border, var(--account-private-panel-border, rgba(255, 255, 255, 0.16)));
    border-radius: var(--account-private-row-radius, 11px);
}

.private-account-preview-card .private-account-primary-action,
.private-account-preview-card .member-profile-submit {
    color: var(--account-private-primary-text, var(--account-private-accent-text, #ffffff));
    background: var(--account-private-primary-bg, var(--account-private-accent, #6366f1));
    border-color: var(--account-private-primary-bg, var(--account-private-accent, #6366f1));
    border-radius: var(--account-private-button-radius, 12px);
}

.private-account-preview-card .private-account-primary-action:hover,
.private-account-preview-card .private-account-primary-action:focus-visible,
.private-account-preview-card .member-profile-submit:hover,
.private-account-preview-card .member-profile-submit:focus-visible {
    color: var(--account-private-primary-text, var(--account-private-accent-text, #ffffff));
    background: var(--account-private-primary-hover, var(--account-private-accent, #6366f1));
    border-color: var(--account-private-primary-hover, var(--account-private-accent, #6366f1));
}

.private-account-preview-card .private-account-outline-action,
.private-account-preview-card .account-private-logout {
    color: var(--account-private-secondary-text, var(--account-private-logout-text, #ffffff));
    border-color: var(--account-private-secondary-border, var(--account-private-logout-border, rgba(255, 255, 255, 0.25)));
    border-radius: var(--account-private-button-radius, 12px);
}

.private-account-preview-card .private-account-outline-action:hover,
.private-account-preview-card .private-account-outline-action:focus-visible,
.private-account-preview-card .account-private-logout:hover,
.private-account-preview-card .account-private-logout:focus-visible {
    color: var(--account-private-secondary-text, var(--account-private-logout-text, #ffffff));
    background: var(--account-private-secondary-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--account-private-secondary-border, var(--account-private-logout-border, rgba(255, 255, 255, 0.25)));
}

/* CHECKOUT ACCOUNT REQUIRED */
.checkout-account-section[hidden],
.checkout-account-form[hidden] {
    display: none !important;
}

.checkout-account-card {
    max-width: 560px;
}

.checkout-account-description {
    max-width: 460px;
    margin-inline: auto;
}

.checkout-account-lock-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(251, 191, 36, .42);
    border-radius: 12px;
    background: rgba(120, 53, 15, .22);
    color: var(--account-login-text, #ffffff);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.checkout-account-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 18px 0 14px;
    padding: 4px;
    border: 1px solid var(
        --account-login-input-border,
        rgba(255, 255, 255, .18)
    );
    border-radius: 14px;
    background: rgba(15, 23, 42, .18);
}

.checkout-account-tab {
    appearance: none;
    min-width: 0;
    padding: 10px 12px;
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(
        --account-login-muted,
        rgba(255, 255, 255, .70)
    );
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
}

.checkout-account-tab.is-active {
    background: var(
        --account-login-accent,
        #6366f1
    );
    color: var(
        --account-login-accent-text,
        #ffffff
    );
}

.checkout-account-tab:focus-visible {
    outline: 2px solid var(
        --account-login-input-focus,
        var(--account-login-accent, #6366f1)
    );
    outline-offset: 2px;
}

.checkout-account-existing-hint,
.checkout-account-persistence-notice {
    width: 100%;
    margin: 0 0 14px;
    color: var(
        --account-login-muted,
        rgba(255, 255, 255, .68)
    );
    font-size: .86rem;
    line-height: 1.45;
    text-align: center;
}

.checkout-account-persistence-notice {
    margin: 16px 0 0;
}

.checkout-account-feedback {
    width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: center;
}

.checkout-account-feedback:empty,
.checkout-account-feedback[hidden] {
    display: none;
}

.checkout-account-feedback.is-error {
    border: 1px solid rgba(248, 113, 113, .50);
    background: rgba(127, 29, 29, .26);
}

.checkout-account-feedback.is-success {
    border: 1px solid rgba(74, 222, 128, .50);
    background: rgba(20, 83, 45, .26);
}

.checkout-account-submit .member-profile-submit-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

main[role="main"].is-checkout-account-required
.bio-account-login-trigger-wrap {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 520px) {
    .checkout-account-tabs {
        grid-template-columns: 1fr;
    }

    .checkout-account-tab {
        min-height: 44px;
    }
}

/* PUBLIC MEMBER PROFILE VISUAL PARITY — CENTRAL CONTRACT */

/*
 * Meu Perfil possui um contrato visual próprio.
 *
 * Não herda aparência de account-login-card/input.
 * As variáveis --member-profile-* são a autoridade.
 *
 * O bloco é propositalmente posterior à media query global:
 * a largura do viewport não deve criar uma segunda aparência
 * diferente daquela apresentada no Preview administrativo.
 */

#privateProfilePanel .account-login-section {
    width: min(
        100%,
        520px
    );

    margin: 0 auto;
}


#privateProfilePanel .account-login-card {
    width: 100%;

    padding: 24px;

    color:
        var(
            --member-profile-text,
            #ffffff
        );

    background:
        var(
            --member-profile-card-bg,
            rgba(8, 15, 29, 0.88)
        );

    border:
        1px solid
        var(
            --member-profile-card-border,
            rgba(255, 255, 255, 0.16)
        );

    border-radius:
        var(
            --member-profile-card-radius,
            16px
        );

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, 0.42);

    -webkit-backdrop-filter:
        blur(
            var(
                --member-profile-card-blur,
                18px
            )
        );

    backdrop-filter:
        blur(
            var(
                --member-profile-card-blur,
                18px
            )
        );

    /*
     * O Preview CENTRAL atualmente utiliza esta família.
     * Explicitamos no PUBLIC para não herdar Inter da página.
     */
    font-family:
        Arial,
        sans-serif;

    box-sizing: border-box;
}


#privateProfilePanel
.member-profile-header {
    margin-bottom: 24px;
}


#privateProfilePanel
.member-profile-title {
    margin: 0;

    color:
        var(
            --member-profile-text,
            #ffffff
        );

    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}


#privateProfilePanel
.member-profile-description {
    max-width: 390px;

    margin: 9px auto 0;

    color:
        var(
            --member-profile-muted,
            rgba(255, 255, 255, 0.7)
        );

    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.5;
}


#privateProfilePanel
.member-profile-form {
    gap: 17px;
}


#privateProfilePanel
.member-profile-label {
    margin-bottom: 7px;

    color:
        var(
            --member-profile-label,
            var(
                --member-profile-text,
                #ffffff
            )
        );

    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}


/* CAMPOS */

#privateProfilePanel
.member-profile-input {
    width: 100%;
    min-width: 0;

    height: 48px;

    padding:
        0
        14px;

    color:
        var(
            --member-profile-input-text,
            #ffffff
        );

    background:
        var(
            --member-profile-input-bg,
            rgba(255, 255, 255, 0.07)
        );

    border:
        1px solid
        var(
            --member-profile-input-border,
            rgba(255, 255, 255, 0.18)
        );

    border-radius:
        var(
            --member-profile-input-radius,
            12px
        );

    outline: none;

    box-shadow: none;

    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.5;

    box-sizing: border-box;
}


#privateProfilePanel
.member-profile-input::placeholder {
    color:
        var(
            --member-profile-input-placeholder,
            rgba(255, 255, 255, 0.42)
        );

    opacity: 1;
}


#privateProfilePanel
.member-profile-input:hover {
    border-color:
        rgba(
            255,
            255,
            255,
            0.3
        );
}


#privateProfilePanel
.member-profile-input:focus {
    color:
        var(
            --member-profile-input-text,
            #ffffff
        );

    background:
        rgba(
            255,
            255,
            255,
            0.1
        );

    border-color:
        var(
            --member-profile-input-focus,
            #22c55e
        );

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(
                --member-profile-input-focus,
                #22c55e
            ) 22%,
            transparent
        );
}


/* USERNAME [ @ ][ username ] */

#privateProfilePanel
.member-profile-input-group {
    display: flex;
    align-items: stretch;

    width: 100%;
    height: 48px;
}


#privateProfilePanel
.member-profile-input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    min-width: 46px;
    height: 48px;

    padding: 0;

    color:
        var(
            --member-profile-muted,
            rgba(255, 255, 255, 0.7)
        );

    background:
        var(
            --member-profile-input-bg,
            rgba(255, 255, 255, 0.07)
        );

    border:
        1px solid
        var(
            --member-profile-input-border,
            rgba(255, 255, 255, 0.18)
        );

    border-right: 0;

    border-radius:
        var(
            --member-profile-input-radius,
            12px
        )
        0
        0
        var(
            --member-profile-input-radius,
            12px
        );

    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;

    box-sizing: border-box;
}


#privateProfilePanel
.member-profile-input--grouped {
    border-radius:
        0
        var(
            --member-profile-input-radius,
            12px
        )
        var(
            --member-profile-input-radius,
            12px
        )
        0;
}


#privateProfilePanel
.member-profile-input-group:focus-within
.member-profile-input-prefix {
    color:
        var(
            --member-profile-input-focus,
            #22c55e
        );

    border-color:
        var(
            --member-profile-input-focus,
            #22c55e
        );
}


/* TEXTOS AUXILIARES */

#privateProfilePanel
.member-profile-help {
    margin:
        6px
        0
        0;

    color:
        var(
            --member-profile-muted,
            rgba(255, 255, 255, 0.7)
        );

    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 400;
    line-height: 1.4;
}


/* SALVAR */

#privateProfilePanel
.member-profile-submit {
    min-height: 50px;

    margin-top: 5px;

    padding:
        13px
        18px;

    color:
        var(
            --member-profile-primary-text,
            #ffffff
        );

    background:
        var(
            --member-profile-primary-bg,
            #6366f1
        );

    border: 0;

    border-radius:
        var(
            --member-profile-primary-radius,
            12px
        );

    box-shadow: none;

    filter: none;

    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.5;
}


#privateProfilePanel
.member-profile-submit:hover:not(:disabled),
#privateProfilePanel
.member-profile-submit:focus-visible:not(:disabled) {
    color:
        var(
            --member-profile-primary-text,
            #ffffff
        );

    background:
        var(
            --member-profile-primary-hover,
            #4f46e5
        );

    border: 0;

    box-shadow: none;

    filter: none;
}


/* VOLTAR */

#privateProfilePanel
.account-login-back {
    -webkit-appearance: none;
    appearance: none;

    width: 100%;
    height: 48px;
    min-height: 48px;

    padding:
        14px
        16px;

    color:
        var(
            --member-profile-secondary-text,
            #ffffff
        );

    background:
        var(
            --member-profile-secondary-bg,
            transparent
        );

    border:
        1px solid
        var(
            --member-profile-secondary-border,
            #ffffff
        );

    border-radius:
        var(
            --member-profile-secondary-radius,
            12px
        );

    box-shadow: none;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;

    box-sizing: border-box;
}


#privateProfilePanel
.account-login-back:hover,
#privateProfilePanel
.account-login-back:focus-visible {
    color:
        var(
            --member-profile-secondary-text,
            #ffffff
        );

    background:
        var(
            --member-profile-secondary-hover,
            #243b70
        );

    border-color:
        var(
            --member-profile-secondary-border,
            #ffffff
        );

    box-shadow: none;
}


/* END PUBLIC MEMBER PROFILE VISUAL PARITY */

/* PUBLIC MEMBER PROFILE PARITY FINAL — MATRIX 2 */


/* MENU — mesmo contrato do Preview CENTRAL */

#privateProfilePanel
#privateProfileMenuButton {
    color:
        var(
            --private-nav-toggle-text,
            #ffffff
        );

    background:
        var(
            --private-nav-toggle-bg,
            rgba(255, 255, 255, 0.08)
        );

    border-color:
        var(
            --private-nav-toggle-border,
            #ffffff
        );

    border-radius:
        var(
            --private-nav-toggle-radius,
            13px
        );
}


#privateProfilePanel
#privateProfileMenuButton:hover,
#privateProfilePanel
#privateProfileMenuButton:focus-visible {
    color:
        var(
            --private-nav-toggle-text,
            #ffffff
        );

    background:
        var(
            --private-nav-toggle-hover,
            rgba(255, 255, 255, 0.14)
        );
}


/* AVATAR — autoridade: --web-account-* */

#privateProfilePanel
.private-profile-avatar {
    width:
        var(
            --web-account-avatar-size,
            76px
        );

    height:
        var(
            --web-account-avatar-size,
            76px
        );

    margin:
        0
        0
        15px;

    color:
        var(
            --member-profile-accent-text,
            #06150b
        );

    background:
        var(
            --web-account-avatar-bg,
            #6366f1
        );

    border-width:
        var(
            --web-account-avatar-border-width,
            3px
        );

    border-style:
        solid;

    border-color:
        var(
            --web-account-avatar-border,
            #ffffff
        );

    border-radius:
        var(
            --web-account-avatar-radius,
            50%
        );

    box-shadow:
        0
        12px
        var(
            --web-account-avatar-shadow-blur,
            30px
        )
        var(
            --web-account-avatar-shadow-color,
            rgba(0, 0, 0, 0.32)
        );
}


#privateProfilePanel
.private-profile-avatar > img {
    border-radius: inherit;
}


/* CÂMERA — mesmo componente visual do CENTRAL */

#privateProfilePanel
.private-profile-avatar-camera {
    right: -4px;
    bottom: -4px;

    width:
        var(
            --web-account-camera-size,
            25px
        );

    height:
        var(
            --web-account-camera-size,
            25px
        );

    color:
        var(
            --web-account-camera-text,
            #ffffff
        );

    background:
        var(
            --web-account-camera-bg,
            #050c1a
        );

    border:
        2px solid
        var(
            --web-account-camera-border,
            #ffffff
        );

    border-radius: 999px;

    box-shadow:
        0
        6px
        16px
        rgba(0, 0, 0, 0.28);
}


/* PROPRIEDADES INVISÍVEIS, MAS NORMALIZADAS PARA A MATRIZ */

#privateProfilePanel
.member-profile-input-prefix {
    border-right-color:
        var(
            --member-profile-input-border,
            rgba(255, 255, 255, 0.18)
        );
}


#privateProfilePanel
.member-profile-submit {
    border-color:
        var(
            --member-profile-primary-bg,
            #6366f1
        );
}


/*
 * O JS público pode normalizar o conteúdo textual do botão.
 * A seta visual fica garantida por CSS.
 */

#privateProfilePanel
.account-login-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


#privateProfilePanel
.account-login-back
.private-profile-back-icon {
    display: none;
}


#privateProfilePanel
.account-login-back::before {
    content: "←";

    display: inline-block;
    flex: 0 0 auto;

    font: inherit;
}


/* END PUBLIC MEMBER PROFILE PARITY FINAL */

/* PUBLIC CONVERSATIONS VISUAL PARITY — CENTRAL CONTRACT */

/*
 * O Preview administrativo é a referência canônica.
 *
 * O PUBLIC pode estar em viewport mobile, mas Conversas não deve
 * receber uma segunda identidade visual por causa disso.
 *
 * Não fixamos a largura absoluta do shell: ela continua responsiva.
 * Igualamos espaçamentos, tipografia e geometria interna.
 */

#publicPrivateSection
.private-area-shell:not(.is-account-view) {
    width: 100%;
    max-width: none;
    min-height: 680px;

    border-width: 1px;
    border-style: solid;
    border-color:
        rgba(
            255,
            255,
            255,
            0.16
        );

    font-family:
        Arial,
        sans-serif;
}


/* HEADER */

#publicPrivateSection
.private-area-header {
    gap: 14px;

    padding:
        20px
        22px;
}


/* IDENTIDADE */

#publicPrivateSection
.private-area-identity {
    gap: 13px;
}


#publicPrivateSection
.private-area-user > strong,
#publicPrivateSection
.private-area-user strong {
    font-family:
        Arial,
        sans-serif;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}


/* BADGE */

#publicPrivateSection
.private-area-role {
    padding:
        4px
        10px;

    font-family:
        Arial,
        sans-serif;

    font-weight: 800;
    line-height: 1.5;

    background:
        var(
            --private-nav-role-bg,
            rgba(
                99,
                102,
                241,
                0.28
            )
        );

    border-color:
        var(
            --private-nav-role-border,
            #6366f1
        );
}


/* BOTÃO MENU */

#publicPrivateSection
.private-area-header-menu-button {
    gap: normal;
}


/* CONTEÚDO */

#publicPrivateSection
.private-area-content {
    width: 100%;
    min-width: 0;
    min-height: 570px;

    padding:
        22px;
}


/*
 * Conversas usa o mesmo componente estrutural do Canal.
 * Este escopo impede alterar outros painéis fora de Conversas.
 */

#publicPrivateSection
.private-area-panel[
    data-private-panel="conversations"
] {
    min-width: auto;
    min-height: auto;
}


/* TÍTULO */

#publicPrivateSection
.private-area-panel[
    data-private-panel="conversations"
]
.private-channel-heading strong {
    display: block;

    font-family:
        Arial,
        sans-serif;

    font-size: 27px;
    font-weight: 850;
    line-height: 1.18;
}


/* DESCRIÇÃO */

#publicPrivateSection
.private-area-panel[
    data-private-panel="conversations"
]
.private-channel-description {
    margin-top: 8px;

    font-family:
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.5;
}


/* EMPTY STATE */

#publicPrivateSection
.private-area-panel[
    data-private-panel="conversations"
]
.private-empty-state {
    padding:
        45px
        18px;

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.55;
}


#publicPrivateSection
.private-area-panel[
    data-private-panel="conversations"
]
.private-empty-state strong {
    display: block;

    margin-bottom: 8px;

    color:
        rgba(
            255,
            255,
            255,
            0.94
        );

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}


/* END PUBLIC CONVERSATIONS VISUAL PARITY */

/* PUBLIC CONVERSATIONS PARITY — MATRIX GAP FIX */

/*
 * MATRIX:
 *
 * conversations_region.gap_after_header
 * CENTRAL = 22px
 * PUBLIC  = 0px
 *
 * Aplicamos o espaçamento no próprio painel para não depender
 * das diferenças estruturais/responsivas do container pai.
 */
#publicPrivateSection
.private-area-panel[
    data-private-panel="conversations"
] {
    margin-top: 22px;
}


/*
 * MATRIX:
 *
 * shell.borderColor
 * CENTRAL = rgba(255,255,255,.25)
 * PUBLIC  = rgba(255,255,255,.16)
 */
#publicPrivateSection
.private-area-shell {
    border-color:
        rgba(
            255,
            255,
            255,
            0.25
        );
}


/* END PUBLIC CONVERSATIONS PARITY — MATRIX GAP FIX */

/* PUBLIC CONVERSATIONS PARITY — SEMANTIC FINAL */

/*
 * Conversas continua compartilhando o shell do Canal,
 * mas possui geometria própria.
 *
 * Isso neutraliza somente as regras channel-view que
 * indevidamente comprimiam Conversas.
 */

#publicPrivateSection
.private-area-shell.is-conversations-view
.private-area-content {
    display: flex;

    flex-direction: column;

    padding:
        22px !important;
}


/*
 * O primeiro patch compensava o padding-top perdido
 * adicionando margin-top no próprio painel.
 *
 * Agora o padding canônico está restaurado no local correto,
 * portanto a compensação precisa voltar a zero.
 */
#publicPrivateSection
.private-area-shell.is-conversations-view
.private-area-panel[
    data-private-panel="conversations"
] {
    margin-top: 0;
}


/*
 * MATRIX V3:
 *
 * description_to_empty_state
 *
 * CENTRAL = 20px
 * PUBLIC  = 16px
 */
#publicPrivateSection
.private-area-shell.is-conversations-view
.private-area-panel[
    data-private-panel="conversations"
]
.private-channel-header {
    margin-bottom: 20px;
}


/*
 * Preview canônico:
 * sombra superior = 26px.
 *
 * A media query PUBLIC reduzia para 22px somente pelo
 * viewport físico.
 */
#publicPrivateSection
.private-area-shell.is-conversations-view
.private-area-content::before {
    height: 26px;
}


/* END PUBLIC CONVERSATIONS PARITY — SEMANTIC FINAL */

/* PUBLIC MY ACCOUNT VISUAL PARITY — MATRIX V2 */

/*
 * Equivalência estrutural:
 *
 * CENTRAL:
 * #accountPrivateAccountPanel
 *
 * PUBLIC:
 * #privateAccountPreviewCard
 *
 * Não criar uma segunda camada glass no wrapper PUBLIC.
 */


/* CARD — MATRIX: CENTRAL 24px / PUBLIC 20px 17px */
#publicPrivateSection
.private-area-shell.is-account-view
#privateAccountPreviewCard {
    padding: 24px !important;
}


/* AVATAR COMPARTILHADO */
#publicPrivateSection
.private-area-shell.is-account-view
#accountPrivateAvatar {
    background:
        var(
            --web-account-avatar-bg,
            #6366f1
        ) !important;
}


/* TÍTULO */
#publicPrivateSection
.private-area-shell.is-account-view
#accountPrivateTitle {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
}


/* DESCRIÇÃO */
#publicPrivateSection
.private-area-shell.is-account-view
#accountPrivateDescription {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
}


/*
 * RESUMO
 *
 * MATRIX V2:
 *
 * CENTRAL
 * row
 * center
 * gap 14px
 *
 * PUBLIC
 * column
 * flex-start
 * gap 5px
 */
#publicPrivateSection
.private-area-shell.is-account-view
#privateAccountPreviewCard
.account-private-summary-row {
    flex-direction: row !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 14px !important;

    background:
        var(
            --account-private-row-bg,
            rgba(42, 46, 85, 0.16)
        ) !important;

    border-color:
        var(
            --account-private-row-border,
            #242e54
        ) !important;
}


/* LABEL */
#publicPrivateSection
.private-area-shell.is-account-view
#privateAccountPreviewCard
.account-private-summary-row > span {
    line-height: 1.2 !important;
    text-align: start !important;
}


/* VALUE */
#publicPrivateSection
.private-area-shell.is-account-view
#privateAccountPreviewCard
.account-private-summary-row > strong {
    line-height: 1.2 !important;
    text-align: right !important;

    min-width: 0;
}


/*
 * MEU PERFIL
 *
 * O CENTRAL usa member-profile-submit.
 * A aparência principal vem do Tema & Layout.
 */
#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateProfile {
    border: 0 !important;
    gap: normal !important;
}


/*
 * ACESSAR CANAL
 *
 * MATRIX V2:
 * CENTRAL wrap + gap 3px.
 */
#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateChannel {
    flex-wrap: wrap !important;
    gap: 3px !important;
}


/* END PUBLIC MY ACCOUNT VISUAL PARITY — MATRIX V2 */

/* PUBLIC MY ACCOUNT PARITY — V3 RESIDUAL */

/*
 * ACCOUNT V3 comprovou que as duas linhas PUBLIC
 * ainda estavam usando outra superfície.
 *
 * CENTRAL:
 * background rgba(42,46,85,.16)
 * border     #242e54
 */
#publicPrivateSection
.private-area-shell.is-account-view
#privateAccountPreviewCard
.account-private-summary-row {
    background:
        rgba(42, 46, 85, 0.16) !important;

    border-color:
        #242e54 !important;
}


/*
 * CENTRAL = 19.2px com fonte atual.
 * O contrato é line-height 1.5.
 */
#publicPrivateSection
.private-area-shell.is-account-view
#privateAccountPreviewCard
.account-private-summary-row > span,

#publicPrivateSection
.private-area-shell.is-account-view
#privateAccountPreviewCard
.account-private-summary-row > strong {
    line-height: 1.5 !important;
}


/*
 * Badge:
 * CENTRAL line-height = 18.24px.
 */
#publicPrivateSection
.private-area-shell.is-account-view
#accountPrivateBadge {
    line-height: 1.5 !important;
}


/*
 * Meu perfil
 *
 * CENTRAL V3:
 * columnGap = 10px
 * lineHeight = 1.5
 *
 * A cor da border não importa porque a largura
 * canônica já está zerada.
 */
#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateProfile {
    column-gap: 10px !important;

    line-height: 1.5 !important;

}


/*
 * Acessar canal privado
 *
 * CENTRAL:
 * rowGap    = 3px
 * columnGap = 10px
 */
#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateChannel {
    row-gap: 3px !important;
    column-gap: 10px !important;

    line-height: 1.5 !important;

}


/* END PUBLIC MY ACCOUNT PARITY — V3 RESIDUAL */

/* PUBLIC MY ACCOUNT — REMOVE OUTER SHELL BORDER */

/*
 * O shell geral da Área Privada possui uma moldura própria.
 *
 * Em Minha Conta isso cria um segundo contorno externo ao card
 * e reduz desnecessariamente a área útil no viewport estreito.
 *
 * Canal e Conversas permanecem intocados.
 */
#publicPrivateSection
.private-area-shell.is-account-view {
    border: 0 !important;
}

/* END PUBLIC MY ACCOUNT — REMOVE OUTER SHELL BORDER */

/* PUBLIC MY ACCOUNT — RECOVER CONTENT WIDTH */

/*
 * Minha Conta já possui padding interno próprio no card.
 *
 * O padding horizontal de 22px da camada geral
 * .private-area-content reduzia a largura útil:
 *
 * shell: 340px
 * card : 296px
 *
 * Removemos apenas o recuo horizontal nesta view.
 * O espaçamento vertical permanece intacto.
 */
#publicPrivateSection
.private-area-shell.is-account-view
.private-area-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* END PUBLIC MY ACCOUNT — RECOVER CONTENT WIDTH */

/* PUBLIC CHANNEL MEDIA — NATURAL FEED RATIO */

/*
 * O feed não deve impor uma altura horizontal fixa à mídia.
 *
 * Imagens e vídeos respeitam sua proporção intrínseca.
 *
 * Isso evita cortes de conteúdo vertical e, no caso de vídeos,
 * mantém os controles nativos dentro da área visível.
 */
.private-channel-post-media.private-channel-post-media--natural {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    aspect-ratio: auto !important;

    overflow: hidden;
}

.private-channel-post-media.private-channel-post-media--natural
> img.private-channel-post-image,

.private-channel-post-media.private-channel-post-media--natural
> video.private-channel-post-video {
    display: block;

    width: 100% !important;
    height: auto !important;

    min-height: 0 !important;
    max-width: 100%;
    max-height: none !important;

    object-fit: contain;
}

/* END PUBLIC CHANNEL MEDIA — NATURAL FEED RATIO */


/*
 * PERFIL DO USUARIO - BORDA REMOVIVEL V1
 *
 * O Perfil possui variaveis proprias de borda/hover/foco.
 * O Login continua usando suas regras mais especificas.
 */
.member-profile-card
.member-profile-input:hover:not(:focus) {
    border-color:
        var(
            --member-profile-input-border-hover,
            rgba(255, 255, 255, 0.3)
        );
}

.member-profile-card
.member-profile-input:focus {
    border-color:
        var(
            --member-profile-input-focus,
            #38bdf8
        );
}

/*
 * PUBLIC MY ACCOUNT ACTIONS — THEME PARITY V1
 *
 * Ações primárias não carregam glow decorativo.
 * Mudar Plano obedece ao tema secundário da CENTRAL.
 */

/* Ações principais */
#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateChannel,

#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateProfile {
    box-shadow: none !important;

    border-radius:
        var(
            --account-private-button-radius,
            12px
        ) !important;
}

/* Ação secundária */
#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateChoosePlan {
    color:
        var(
            --account-private-secondary-text,
            #ffffff
        ) !important;

    background:
        transparent !important;

    border:
        1px solid
        var(
            --account-private-secondary-border,
            #ffffff
        ) !important;

    border-radius:
        var(
            --account-private-button-radius,
            12px
        ) !important;

    box-shadow:
        none !important;
}

#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateChoosePlan:hover,

#publicPrivateSection
.private-area-shell.is-account-view
#btnAccountPrivateChoosePlan:focus-visible {
    color:
        var(
            --account-private-secondary-text,
            #ffffff
        ) !important;

    background:
        var(
            --account-private-secondary-hover,
            #243b70
        ) !important;

    border-color:
        var(
            --account-private-secondary-border,
            #ffffff
        ) !important;
}
