/* Área logada — shell + topbar (padrão adm-topbar cassino-chines, cores --memb-ui-*) */

body.memb-app-page {
    --memb-ui-background-base: #1a2340;
    --memb-ui-accent: #8eb4ff;
    --memb-auth-side-w: 248px;
    --memb-auth-side-w-mini: 76px;
    --memb-side-expand-duration: 0.58s;
    --memb-side-expand-ease: cubic-bezier(0.33, 1.12, 0.52, 1);
    /* Coluna fixa do logo/seta na topbar — independente da largura da sidebar fechada */
    --memb-app-topbar-brand-w: 144px;
    --memb-app-side-toggle-size: 1.85rem;
    --memb-app-side-logo-h: 3.25rem;
    --memb-app-side-logo-max-w: 4.25rem;
    --memb-app-shell-header-h: 80px;
    --memb-app-side-w: var(--memb-auth-side-w);
    --memb-app-side-gap: 12px;
    --memb-app-border: color-mix(in srgb, var(--memb-ui-accent) 25%, transparent);
    --memb-app-border-strong: color-mix(in srgb, var(--memb-ui-accent) 35%, transparent);
    --memb-app-muted: #fff;
    --memb-app-text: #fff;
    /* Cor canônica: sidebar, topbar e restante da área logada */
    --memb-app-side-bg: color-mix(in srgb, var(--memb-ui-background-base) 88%, #0d1020);
    --memb-app-main-bg: color-mix(in srgb, var(--memb-ui-background-base) 94%, #050810);
    --memb-app-side-rail-w: calc(2rem + 0.75rem + 17ch + 1rem);
    --memb-app-side-rail-label-ch: 17;
    --memb-app-side-icon-col-w: var(--memb-auth-side-w-mini);
    --memb-ui-background: var(--memb-app-side-bg);
    /* Topbar — altura um pouco acima da versão compacta */
    --memb-app-topbar-min-h: 80px;
    --memb-app-topbar-pad-y: 12px;
    --memb-app-topbar-pad-x: 18px;
    --memb-app-topbar-radius: 14px;
    --memb-app-topbar-control: 48px;
    --memb-app-topbar-gap: 12px;
    --memb-app-bottom-nav-h: 58px;
    /* Largura do bloco principal — igual .adm-main (cassino-chines) */
    --memb-app-main-max-w: 1320px;
    --memb-app-main-pad-x: 12px;
    /* Topbar liquid glass — sempre baseado na cor da sidebar */
    --memb-app-topbar-glass-bg: var(--memb-app-side-bg);
    --memb-app-topbar-glass-bg-scrolled: color-mix(in srgb, var(--memb-app-side-bg) 82%, transparent);
    --memb-app-topbar-glass-blur: 22px;
    --memb-app-topbar-glass-blur-scrolled: 26px;
    --memb-app-topbar-glass-saturate: 165%;
    /* Anéis de story (mesmas cores do rail do feed) */
    --memb-story-ring-promo: conic-gradient(
        from 220deg at 50% 50%,
        #2563eb 0deg,
        #3b82f6 48deg,
        #60a5fa 96deg,
        #8eb4ff 144deg,
        #5a7fd4 192deg,
        #4a6fc9 240deg,
        #38bdf8 288deg,
        #2563eb 336deg,
        #2563eb 360deg
    );
    --memb-story-ring-seen: conic-gradient(
        from 200deg at 50% 50%,
        #c5cad6 0deg,
        #9ca3af 120deg,
        #d1d5db 240deg,
        #c5cad6 360deg
    );
    --memb-story-ring-me: conic-gradient(
        from 200deg at 50% 50%,
        #9ca3af 0deg,
        #6b7280 180deg,
        #d1d5db 270deg,
        #9ca3af 360deg
    );
}

.memb-app-sidebar-logo {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1310;
    width: var(--memb-app-side-icon-col-w, 76px);
    max-width: var(--memb-app-side-icon-col-w, 76px);
    height: var(--memb-app-shell-header-h, 80px);
    padding: 8px 6px 8px 10px;
    box-sizing: border-box;
    pointer-events: auto;
    transition: none;
}

.memb-app-sidebar-logo a {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.memb-app-sidebar-logo img,
.memb-app-sidebar-logo .memb-auth-side-brand-logo {
    display: block;
    height: var(--memb-app-side-logo-h, 3.25rem);
    width: auto;
    max-width: var(--memb-app-side-logo-max-w, 4.25rem);
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 1180px) {
    /* Topbar reserva espaço; imagem vem só da sidebar-logo fixa */
    body.memb-app-page--with-side .memb-app-topbar__side-brand .memb-auth-side-brand-logo {
        visibility: hidden;
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand {
        transition:
            width var(--memb-side-expand-duration) var(--memb-side-expand-ease),
            max-width var(--memb-side-expand-duration) var(--memb-side-expand-ease),
            min-width var(--memb-side-expand-duration) var(--memb-side-expand-ease);
    }
}

body.memb-app-page {
    background: var(--memb-app-side-bg);
    color: var(--memb-app-text);
    font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mesma cor da sidebar em todo o canvas da área logada */
body.memb-app-page .memb-app-page-frame,
body.memb-app-page .memb-app-main,
body.memb-app-page .main-content,
body.memb-app-page .memb-dash-main,
body.memb-app-page .memb-profile-main,
body.memb-app-page .memb-dash,
body.memb-app-page .memb-dash-feed,
body.memb-app-page .memb-profile-grid {
    background-color: var(--memb-app-side-bg);
}

body.memb-app-page .memb-dash-post.memb-dash-post--ig,
body.memb-app-page .memb-dash-widget,
body.memb-app-page .memb-dash-carousel-empty {
    background-color: var(--memb-app-side-bg);
}

body.memb-app-page .memb-profile-avatar--default {
    background: color-mix(in srgb, var(--memb-app-side-bg) 92%, #000);
}

/* Textos brancos; ícones / SVG (Bootstrap Icons) permanecem azuis */
body.memb-app-page .memb-app-main,
body.memb-app-page .main-content,
body.memb-app-page .memb-dash-main,
body.memb-app-page .memb-profile-main,
body.memb-app-page .memb-dash,
body.memb-app-page .memb-profile-grid,
body.memb-app-page .memb-auth-side-panel,
body.memb-app-page .memb-app-topbar,
body.memb-app-page .memb-app-profile-dropdown-item,
body.memb-app-page .memb-app-profile-dropdown-user-text strong,
body.memb-app-page .memb-app-profile-dropdown-user-text small {
    color: #fff;
}

body.memb-app-page .memb-auth-side-section-title,
body.memb-app-page .memb-auth-side-link,
body.memb-app-page .memb-auth-side-link-label,
body.memb-app-page .memb-auth-side-foot,
body.memb-app-page .memb-auth-side-foot small {
    color: #fff;
}

/* Sidebar — só título nos itens (sem subtítulo/descrição) */
body.memb-app-page .memb-auth-side-link-desc {
    display: none !important;
}

body.memb-app-page .memb-auth-side-link-copy {
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

body.memb-app-page .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-link-copy {
    overflow: visible;
}

body.memb-app-page .memb-auth-side-link-label {
    white-space: nowrap;
}

body.memb-app-page .memb-auth-side-link {
    align-items: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.2s ease;
}

/* Sidebar aberta: ativo/hover só na cor — sem shell */
body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) a.memb-auth-side-link:hover,
body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) .memb-auth-side-link.is-active,
body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) .memb-auth-side-link--static:hover {
    background: transparent;
    border-color: transparent;
}

body.memb-app-page .memb-auth-side-link-label {
    color: #fff;
    display: inline-block;
    transition: color 0.2s ease;
}

body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) a.memb-auth-side-link:hover .memb-auth-side-link-label,
body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) .memb-auth-side-link.is-active .memb-auth-side-link-label {
    color: var(--memb-ui-accent);
}

body.memb-app-page .memb-auth-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    color: #fff;
    background: transparent;
    transition: color 0.2s ease;
}

body.memb-app-page .memb-auth-side-icon i.bi,
body.memb-app-page .memb-auth-side-icon .memb-lucide-icon {
    color: inherit;
}

body.memb-app-page .memb-auth-side-icon .memb-lucide-icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) a.memb-auth-side-link:hover .memb-auth-side-icon,
body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) .memb-auth-side-link.is-active .memb-auth-side-icon {
    color: var(--memb-ui-accent);
    background: transparent;
}

body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) a.memb-auth-side-link:hover .memb-auth-side-arrow,
body.memb-app-page .memb-app-page-frame:not(.is-side-collapsed) .memb-auth-side-link.is-active .memb-auth-side-arrow {
    color: var(--memb-ui-accent);
}

/* Sidebar fechada: destaque só no ícone */
body.memb-app-page .memb-app-page-frame.is-side-collapsed a.memb-auth-side-link:hover,
body.memb-app-page .memb-app-page-frame.is-side-collapsed .memb-auth-side-link.is-active,
body.memb-app-page .memb-app-page-frame.is-side-collapsed .memb-auth-side-link--static:hover {
    background: transparent;
    border-color: transparent;
}

body.memb-app-page .memb-app-page-frame.is-side-collapsed a.memb-auth-side-link:hover .memb-auth-side-icon,
body.memb-app-page .memb-app-page-frame.is-side-collapsed .memb-auth-side-link.is-active .memb-auth-side-icon {
    color: var(--memb-ui-accent);
    background: transparent;
}

/* Criar — mesmo visual dos itens, sem shell */
body.memb-app-page .memb-auth-side-create-btn {
    gap: 8px;
    width: 100%;
    min-height: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

body.memb-app-page .memb-auth-side-create-btn:hover {
    border: none;
    background: transparent;
    color: var(--memb-ui-accent);
}

body.memb-app-page .memb-auth-side-create-btn .memb-auth-side-icon,
body.memb-app-page .memb-auth-side-create-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
}

body.memb-app-page .memb-auth-side-arrow {
    color: rgba(255, 255, 255, 0.45);
}

body.memb-app-page .memb-app-topbar-welcome-card strong,
body.memb-app-page .memb-app-topbar-welcome-card small,
body.memb-app-page .memb-app-topbar-search__input {
    color: #fff;
}

body.memb-app-page input::placeholder,
body.memb-app-page textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.memb-app-page .memb-app-top-icon,
body.memb-app-page .memb-app-top-icon__svg,
body.memb-app-page .memb-app-topbar-mobile-notify,
body.memb-app-page .memb-app-topbar-mobile-notify .memb-app-top-icon__svg {
    color: #fff;
}

body.memb-app-page .memb-app-topbar-search__field i.bi,
body.memb-app-page .memb-app-profile-dropdown-item i.bi,
body.memb-app-page .memb-dash-post-avatar--fallback .bi-patch-check-fill {
    color: var(--memb-ui-accent);
}

/* Selo verificado: badge azul + check branco (SVG; o ícone Bootstrap é recorte monocromático) */
body.memb-app-page {
    --memb-verified-badge-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill%3D%22%233897F0%22%20d%3D%22M10.067.87a2.89%202.89%200%200%200-4.134%200l-.622.638-.89-.011a2.89%202.89%200%200%200-2.924%202.924l.01.89-.636.622a2.89%202.89%200%200%200%200%204.134l.637.622-.011.89a2.89%202.89%200%200%200%202.924%202.924l.89-.01.622.636a2.89%202.89%200%200%200%204.134%200l.622-.637.89.011a2.89%202.89%200%200%200%202.924-2.924l-.01-.89.636-.622a2.89%202.89%200%200%200%200-4.134l-.637-.622.011-.89a2.89%202.89%200%200%200-2.924-2.924l-.89.01z%22%2F%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M10.354%206.854l-3%203a.5.5%200%200%201-.708%200l-1.5-1.5a.5.5%200%201%201%20.708-.708L7%208.793l2.646-2.647a.5.5%200%200%201%20.708.708z%22%2F%3E%3C%2Fsvg%3E");
}

body.memb-app-page .memb-verified-badge,
body.memb-app-page .memb-profile-ig-verified,
body.memb-app-page .memb-dash-post-verified,
body.memb-app-page .memb-dash-story-verified,
body.memb-app-page .memb-story-viewer__verified,
body.memb-app-page .memb-feed-comment__verified,
body.memb-app-page .memb-profile-post-modal__verified,
body.memb-app-page .memb-story-activity-panel__reply-verified,
body.memb-app-page .memb-story-activity-panel__viewer-verified,
body.memb-app-page .memb-app-profile-dropdown-verified,
body.memb-app-page .memb-app-topbar-search-result__verified {
    display: inline-block;
    width: 1em;
    height: 1em;
    aspect-ratio: 1;
    line-height: 1;
    flex-shrink: 0;
    vertical-align: middle;
    font-style: normal;
    font-size: inherit;
    color: transparent !important;
    background: var(--memb-verified-badge-svg) center / 100% 100% no-repeat;
}

body.memb-app-page .memb-verified-badge::before,
body.memb-app-page .memb-profile-ig-verified::before,
body.memb-app-page .memb-dash-post-verified::before,
body.memb-app-page .memb-dash-story-verified::before,
body.memb-app-page .memb-story-viewer__verified::before,
body.memb-app-page .memb-feed-comment__verified::before,
body.memb-app-page .memb-profile-post-modal__verified::before,
body.memb-app-page .memb-story-activity-panel__reply-verified::before,
body.memb-app-page .memb-story-activity-panel__viewer-verified::before,
body.memb-app-page .memb-app-profile-dropdown-verified::before,
body.memb-app-page .memb-app-topbar-search-result__verified::before {
    content: '' !important;
    display: none !important;
}

/* Menu inferior: ícones e rótulos brancos; só o item ativo fica azul */
body.memb-app-page .memb-app-bottom-nav__link,
body.memb-app-page .memb-app-bottom-nav__link > i.bi,
body.memb-app-page .memb-app-bottom-nav__link > .memb-lucide-icon,
body.memb-app-page .memb-app-bottom-nav__label {
    color: #fff;
}

body.memb-app-page .memb-app-bottom-nav__link.is-active,
body.memb-app-page .memb-app-bottom-nav__link.is-active > i.bi,
body.memb-app-page .memb-app-bottom-nav__link.is-active > .memb-lucide-icon,
body.memb-app-page .memb-app-bottom-nav__link.is-active .memb-app-bottom-nav__label {
    color: var(--memb-ui-accent, #8eb4ff);
}

body.memb-app-page .memb-app-bottom-nav__link > .memb-lucide-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

body.memb-app-page .memb-app-profile-dropdown-item--logout,
body.memb-app-page .memb-app-profile-dropdown-item--logout i.bi {
    color: #ff8a96;
}

body.memb-app-page .memb-profile-kpi strong,
body.memb-app-page .memb-profile-kpi small,
body.memb-app-page .memb-profile-ig-user,
body.memb-app-page .memb-profile-ig-handle,
body.memb-app-page .memb-profile-ig-stat strong,
body.memb-app-page .memb-profile-ig-stat small,
body.memb-app-page .memb-profile-ig-bio,
body.memb-app-page .memb-profile-ig-bio-extra,
body.memb-app-page .memb-profile-ig-realname,
body.memb-app-page .memb-profile-ig-about,
body.memb-app-page .memb-profile-field label,
body.memb-app-page .memb-profile-field input,
body.memb-app-page .memb-profile-field textarea,
body.memb-app-page .memb-profile-tabs button,
body.memb-app-page .memb-profile-posts-empty,
body.memb-app-page .memb-profile-modal__title,
body.memb-app-page .memb-profile-modal__body,
body.memb-app-page .memb-profile-card__foot,
body.memb-app-page .memb-profile-actions .btn {
    color: #fff;
}

body.memb-app-page .memb-profile-tabs button.is-active i.bi,
body.memb-app-page .memb-profile-actions .btn i.bi,
body.memb-app-page .memb-profile-link i.bi {
    color: var(--memb-ui-accent);
}

.memb-app-page-frame {
    width: 100%;
    min-height: 100vh;
    min-width: 0;
}

.memb-app-main {
    display: grid;
    grid-template-rows: auto auto;
    flex: 0 1 auto;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    /* Largura capada + centralizada na coluna principal (como .adm-main no cassino) */
    --memb-app-avail-w: calc(100vw - var(--memb-app-side-w) - var(--memb-app-side-gap) * 4);
    --memb-app-main-w: min(var(--memb-app-main-max-w), var(--memb-app-avail-w));
    --memb-app-main-side-pad: max(
        0px,
        (var(--memb-app-avail-w) - var(--memb-app-main-w)) / 2
    );
    width: var(--memb-app-main-w);
    max-width: var(--memb-app-main-max-w);
    margin-top: 0;
    margin-bottom: 0;
    margin-left: var(--memb-app-main-side-pad);
    margin-right: calc(var(--memb-app-side-gap) + var(--memb-app-main-side-pad));
    padding: 0 var(--memb-app-main-pad-x);
}

body.memb-app-page .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-grow: unset !important;
    padding: 0.5rem 0 0;
    min-height: 0;
    box-sizing: border-box;
}

.memb-app-main > .main-content {
    grid-row: 2;
    min-height: 0;
    overflow-y: auto;
}

/* CSS legado inline das páginas — sidebar antiga não existe mais */
body.memb-app-page .sidebar {
    display: none !important;
}

body.memb-app-page {
    display: block !important;
}

/* Topbar — mobile-first (Instagram); desktop em @media (min-width: 1180px) */
.memb-app-topbar {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    --memb-app-topbar-min-h: 52px;
    min-height: var(--memb-app-topbar-min-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 0;
    border-radius: 0;
    border: none;
    background: var(--memb-app-side-bg);
    overflow: visible;
    position: relative;
    z-index: 200;
    box-shadow: none;
}

.memb-app-topbar-left,
.memb-app-topbar-right {
    display: flex;
    align-items: center;
    gap: var(--memb-app-topbar-gap);
    overflow: visible;
    min-width: 0;
}

/* Mobile-first: topo Instagram por padrão; desktop só a partir de 1180px */
.memb-app-topbar__view--mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.memb-app-topbar__view--desktop {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--memb-app-topbar-gap);
    width: 100%;
    min-width: 0;
}

.memb-app-topbar-left {
    flex: 1 1 auto;
}

.memb-app-topbar-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.memb-app-topbar-mobile-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.memb-app-topbar-mobile-logo img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 88px;
    object-fit: contain;
    object-position: left center;
}

.memb-app-topbar-mobile-create {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 28%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 12%, rgba(8, 11, 24, 0.6));
    color: #f4f0e8;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.memb-app-topbar-mobile-create:hover,
.memb-app-topbar-mobile-create:focus-visible {
    border-color: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 48%, transparent);
    background: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 22%, rgba(8, 11, 24, 0.5));
    color: #fff;
    outline: none;
}

.memb-app-topbar-mobile-create__icon {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.memb-app-topbar-mobile-create-wrap {
    position: relative;
    flex: 0 0 auto;
    z-index: 6;
}

.memb-app-topbar-mobile-create-sheet {
    position: absolute;
    top: 0;
    left: 0;
    height: 36px;
    width: 0;
    max-width: var(--memb-mobile-create-sheet-w, 0px);
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 28%, transparent);
    background: var(--memb-app-side-bg, #1a2340);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 4;
    transition:
        max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease,
        visibility 0.34s ease;
}

.memb-app-topbar-mobile-create-sheet__inner {
    display: flex;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 8px 0 44px;
    box-sizing: border-box;
    transform: translateX(-16px);
    opacity: 0;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.26s ease 0.06s;
}

.memb-app-topbar-mobile-create-wrap.is-open .memb-app-topbar-mobile-create-sheet {
    width: var(--memb-mobile-create-sheet-w, 240px);
    max-width: var(--memb-mobile-create-sheet-w, 240px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.memb-app-topbar-mobile-create-wrap.is-open .memb-app-topbar-mobile-create-sheet__inner {
    transform: translateX(0);
    opacity: 1;
}

.memb-app-topbar-mobile-create-wrap.is-open .memb-app-topbar-mobile-create {
    border-color: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 48%, transparent);
    background: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 22%, rgba(8, 11, 24, 0.5));
}

.memb-app-topbar-mobile-create-wrap.is-open .memb-app-topbar-mobile-create__icon {
    transform: rotate(45deg);
}

.memb-app-topbar-mobile-create-option {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    margin: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.memb-app-topbar-mobile-create-option i {
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--memb-ui-accent, #8eb4ff);
}

.memb-app-topbar-mobile-create-option:hover,
.memb-app-topbar-mobile-create-option:focus-visible {
    background: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 16%, transparent);
    outline: none;
}

.memb-app-topbar__view--mobile .memb-app-topbar-search {
    transition: opacity 0.24s ease;
}

.memb-app-topbar__view--mobile.is-create-menu-open .memb-app-topbar-search {
    opacity: 0;
    pointer-events: none;
}

.memb-app-topbar-search {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    position: relative;
}

.memb-app-topbar-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: color-mix(in srgb, #fff 8%, rgba(0, 0, 0, 0.35));
    border: none;
    box-sizing: border-box;
    cursor: text;
}

.memb-app-topbar-search__field i {
    flex-shrink: 0;
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--memb-app-muted) 90%, #fff 10%);
}

.memb-app-topbar-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    padding: 0;
    outline: none;
}

.memb-app-topbar-search__input::placeholder {
    color: color-mix(in srgb, var(--memb-app-muted) 88%, #fff 12%);
}

.memb-app-topbar-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 320;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 28%, transparent);
    background: color-mix(in srgb, var(--memb-app-side-bg) 94%, #000);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.memb-app-topbar-search-results[hidden] {
    display: none !important;
}

.memb-app-topbar-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 18%, transparent);
}

.memb-app-topbar-search-result:last-child {
    border-bottom: none;
}

.memb-app-topbar-search-result:hover,
.memb-app-topbar-search-result:focus-visible {
    background: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 18%, transparent);
}

.memb-app-topbar-search-result__avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 30%, transparent);
}

.memb-app-topbar-search-result__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.memb-app-topbar-search-result__username {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    font-size: 0.88rem;
    font-weight: 600;
}

.memb-app-topbar-search-result__username-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.memb-app-topbar-search-result__verified {
    width: 0.85em;
    height: 0.85em;
}

.memb-app-topbar-search-result__name {
    font-size: 0.79rem;
    color: color-mix(in srgb, var(--memb-app-muted) 82%, #fff 18%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.memb-app-topbar-search-empty {
    margin: 0;
    padding: 10px 12px;
    color: color-mix(in srgb, var(--memb-app-muted) 84%, #fff 16%);
    font-size: 0.82rem;
}

.memb-app-topbar-search-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 6px;
}

.memb-app-topbar-search-history__title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--memb-app-muted) 78%, #fff 22%);
}

.memb-app-topbar-search-history__clear {
    border: none;
    background: transparent;
    color: var(--memb-ui-accent, #8eb4ff);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
}

.memb-app-topbar-search-history__clear:hover,
.memb-app-topbar-search-history__clear:focus-visible {
    text-decoration: underline;
}

.memb-app-topbar-search-history__list {
    display: flex;
    flex-direction: column;
}

.memb-app-topbar-search-history-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 18%, transparent);
}

.memb-app-topbar-search-history-row:last-child {
    border-bottom: none;
}

.memb-app-topbar-search-history-row > .memb-app-topbar-search-result,
.memb-app-topbar-search-history-row > .memb-app-topbar-search-history-query {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: none;
}

.memb-app-topbar-search-history-remove {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    padding: 0;
    border: none;
    border-left: 1px solid color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 14%, transparent);
    background: transparent;
    color: color-mix(in srgb, var(--memb-app-muted) 70%, #fff 30%);
    font-size: 0.82rem;
    cursor: pointer;
}

.memb-app-topbar-search-history-remove:hover,
.memb-app-topbar-search-history-remove:focus-visible {
    color: #fff;
    background: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 14%, transparent);
}

.memb-app-topbar-search-history-query {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.memb-app-topbar-search-history-query:hover,
.memb-app-topbar-search-history-query:focus-visible {
    background: color-mix(in srgb, var(--memb-ui-accent, #8eb4ff) 18%, transparent);
}

.memb-app-topbar-search-history-query i {
    flex-shrink: 0;
    font-size: 1rem;
    color: color-mix(in srgb, var(--memb-app-muted) 82%, #fff 18%);
}

.memb-app-topbar-search-history-query__label {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.memb-app-topbar-mobile-notify {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.memb-app-topbar-mobile-notify .memb-app-top-icon__svg {
    width: 24px;
    height: 24px;
}

@keyframes memb-app-bell-swing {
    0% {
        transform: rotate(0deg);
    }
    12% {
        transform: rotate(16deg);
    }
    24% {
        transform: rotate(-14deg);
    }
    36% {
        transform: rotate(11deg);
    }
    48% {
        transform: rotate(-9deg);
    }
    60% {
        transform: rotate(6deg);
    }
    72% {
        transform: rotate(-4deg);
    }
    84% {
        transform: rotate(2deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Um balanço ao carregar a página (classe is-notify-shake-once via JS) */
.memb-app-top-icon-bell.is-notify-shake-once .memb-app-top-icon__svg,
.memb-app-topbar-mobile-notify.is-notify-shake-once .memb-app-top-icon__svg,
.memb-app-top-icon-bell.is-notify-shaking .memb-app-top-icon__svg,
.memb-app-topbar-mobile-notify.is-notify-shaking .memb-app-top-icon__svg {
    transform-origin: 50% 8%;
    animation: memb-app-bell-swing 0.85s ease-in-out 1;
}

.memb-app-notify-wrap {
    overflow: visible;
}

.memb-app-top-icon-bell,
.memb-app-topbar-mobile-notify {
    overflow: visible;
}

.memb-app-bell-anchor {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 0;
    flex-shrink: 0;
}

.memb-app-bell-anchor .memb-app-top-icon__svg {
    display: block;
    width: 24px;
    height: 24px;
}

.memb-app-notify-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 7px;
    background: #ff0000;
    color: #fff;
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
    box-sizing: border-box;
}

/* Estilo YouTube (ytSpecIconBadgeShapeBadge): ombro superior direito do sino */
.memb-app-bell-anchor > .memb-app-notify-badge {
    top: 0;
    right: -8px;
    left: auto;
    transform: none;
}

.memb-app-notify-badge--wide {
    min-width: 24px;
    padding: 0 7px;
}

.memb-app-notify-badge[hidden] {
    display: none !important;
}

.memb-app-top-icon-bell.has-notifications .memb-app-notify-badge,
.memb-app-topbar-mobile-notify.has-notifications .memb-app-notify-badge {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .memb-app-top-icon-bell.is-notify-shake-once .memb-app-top-icon__svg,
    .memb-app-topbar-mobile-notify.is-notify-shake-once .memb-app-top-icon__svg,
    .memb-app-top-icon-bell.is-notify-shaking .memb-app-top-icon__svg,
    .memb-app-topbar-mobile-notify.is-notify-shaking .memb-app-top-icon__svg {
        animation: none;
    }
}

.memb-app-menu-toggle {
    width: var(--memb-app-topbar-control);
    height: var(--memb-app-topbar-control);
    border: 1px solid var(--memb-app-border-strong);
    border-radius: 50%;
    background: color-mix(in srgb, var(--memb-ui-accent) 8%, rgba(0, 0, 0, 0.2));
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0;
}

.memb-app-menu-toggle span {
    width: 15px;
    height: 2px;
    background: color-mix(in srgb, var(--memb-ui-accent) 78%, #fff 22%);
    border-radius: 2px;
}

.memb-app-topbar-welcome-card {
    border: 1px solid var(--memb-app-border);
    border-radius: 11px;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--memb-ui-accent) 9%, rgba(0, 0, 0, 0.22));
    min-width: 0;
    max-width: min(420px, 52vw);
}

.memb-app-topbar-welcome-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.memb-app-topbar-welcome-card small {
    color: var(--memb-app-muted);
    display: block;
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.3;
}

.memb-app-top-icon {
    width: auto;
    min-width: 2rem;
    height: var(--memb-app-topbar-control);
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.memb-app-top-icon:hover {
    opacity: 0.85;
}

.memb-app-topbar-balance {
    display: inline-flex;
    align-items: stretch;
    flex-shrink: 0;
    min-height: 34px;
    border: 1px solid var(--memb-app-border);
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--memb-app-side-bg, #111827) 88%, transparent);
}

.memb-app-topbar-balance__value {
    display: inline-flex;
    align-items: center;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
}

.memb-app-topbar-balance__deposit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 0.85rem;
    border: 0;
    border-left: 1px solid color-mix(in srgb, #fff 12%, transparent);
    border-radius: 0;
    background: var(--memb-ui-accent, #8eb4ff);
    color: #fff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    cursor: not-allowed;
    opacity: 0.88;
    white-space: nowrap;
}

.memb-app-topbar-balance__deposit:disabled {
    opacity: 0.72;
}

@media (max-width: 420px) {
    .memb-app-topbar-balance__value {
        padding: 0 0.55rem;
        font-size: 0.75rem;
    }

    .memb-app-topbar-balance__deposit {
        padding: 0 0.65rem;
        font-size: 0.72rem;
    }
}

.memb-app-top-icon__svg {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    pointer-events: none;
}

.memb-app-avatar-btn {
    width: var(--memb-app-topbar-control);
    height: var(--memb-app-topbar-control);
    border-radius: 50%;
    border: 1px solid var(--memb-app-border-strong);
    background: color-mix(in srgb, var(--memb-ui-accent) 12%, rgba(0, 0, 0, 0.2));
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.memb-app-avatar-btn .memb-profile-avatar--img,
.memb-app-avatar-btn .memb-app-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.memb-app-avatar-btn .memb-profile-avatar--initials,
.memb-app-avatar-btn .memb-app-avatar.memb-profile-avatar--initials {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--memb-app-text);
}

.memb-app-profile-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 1201;
}

.memb-app-profile-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 240px;
    margin: 0;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--memb-app-border-strong);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--memb-ui-background) 92%, #000) 0%,
        color-mix(in srgb, var(--memb-ui-background) 98%, #000) 100%
    );
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 1202;
}

.memb-app-profile-wrap.is-open .memb-app-profile-panel {
    display: block;
}

.memb-app-profile-dropdown-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--memb-ui-accent) 8%, rgba(0, 0, 0, 0.15));
    margin-bottom: 4px;
}

.memb-app-profile-dropdown-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--memb-app-border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: color-mix(in srgb, var(--memb-ui-accent) 18%, rgba(0, 0, 0, 0.25));
    color: var(--memb-app-text);
    overflow: hidden;
}

.memb-app-profile-dropdown-user-avatar.memb-profile-avatar--img {
    object-fit: cover;
    display: block;
    padding: 0;
    background: transparent;
}

.memb-app-profile-dropdown-user-text {
    min-width: 0;
    flex: 1;
}

.memb-app-profile-dropdown-user-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
}

.memb-app-profile-dropdown-user-name strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--memb-app-text);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.memb-app-profile-dropdown-verified {
    flex-shrink: 0;
    width: 0.9em;
    height: 0.9em;
}

.memb-app-profile-dropdown-user-text small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--memb-app-muted);
    line-height: 1.3;
}

.memb-app-profile-dropdown-divider {
    height: 1px;
    margin: 4px 0 6px;
    background: rgba(255, 255, 255, 0.08);
}

.memb-app-profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: color-mix(in srgb, var(--memb-ui-accent) 70%, #fff);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.memb-app-profile-dropdown-item:hover {
    background: color-mix(in srgb, var(--memb-ui-accent) 14%, transparent);
    color: #fff;
}

.memb-app-profile-dropdown-item--logout {
    color: #ffb4bc;
}

.memb-app-profile-dropdown-item--logout:hover {
    background: rgba(220, 53, 69, 0.12);
    color: #ff8a96;
}

.memb-app-profile-dropdown-item i {
    font-size: 16px;
}

.memb-app-profile-dropdown-item--mobile-extra {
    display: none;
}

/* Menu inferior (mobile) — mesmos itens do sidebar principal */
.memb-app-bottom-nav {
    display: none;
}

.memb-app-bottom-nav__list {
    list-style: none;
    margin: 0;
    padding: 0 4px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    min-height: var(--memb-app-bottom-nav-h);
}

.memb-app-bottom-nav__item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 72px;
}

.memb-app-bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: var(--memb-app-bottom-nav-h);
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
    border: none;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.memb-app-bottom-nav__link i {
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
}

.memb-app-bottom-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.memb-app-bottom-nav__link.is-active,
.memb-app-bottom-nav__link.is-active i,
.memb-app-bottom-nav__link.is-active .memb-app-bottom-nav__label {
    color: var(--memb-ui-accent, #8eb4ff);
}

.memb-app-bottom-nav__link--profile {
    gap: 4px;
    justify-content: flex-end;
}

.memb-app-bottom-nav__profile-elevated {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.memb-app-bottom-nav__link--profile .memb-app-bottom-nav__avatar,
.memb-app-bottom-nav__link--profile .memb-profile-avatar--img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.memb-app-bottom-nav__link--profile .memb-profile-avatar--initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid var(--memb-app-border-strong);
    background: color-mix(in srgb, var(--memb-app-side-bg) 88%, #fff 4%);
}

.memb-app-bottom-nav__link--profile.is-active .memb-profile-avatar--initials,
.memb-app-bottom-nav__link--profile.is-active .memb-profile-avatar--img {
    box-shadow: 0 0 0 2px var(--memb-ui-accent, #8eb4ff);
}

/* Esconde hambúrguer flutuante legado — toggle fica na topbar */
body.memb-app-page .menu-toggle {
    display: none !important;
}

/* Sidebar logada — coluna fixa delimitada + flyout de rótulos, min-width 1180px */
@media (min-width: 1180px) {
    body.memb-app-page--with-side {
        background: var(--memb-app-main-bg);
        --memb-app-side-offset: var(--memb-app-side-icon-col-w);
    }

    body.memb-app-page--with-side.is-side-flyout-active,
    body.memb-app-page--with-side:has(.memb-app-page-frame.is-side-flyout-active) {
        --memb-app-side-offset: var(--memb-app-side-rail-w);
    }

    /* Trilho — estreito (só ícones); expande no hover para caber os rótulos */
    body.memb-app-page--with-side::before {
        content: '';
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: var(--memb-app-side-icon-col-w);
        background: var(--memb-app-side-bg);
        box-sizing: border-box;
        z-index: 90;
        pointer-events: none;
        transition: width var(--memb-side-expand-duration) var(--memb-side-expand-ease);
    }

    body.memb-app-page--with-side:has(.memb-app-page-frame.is-side-flyout-active)::before {
        width: var(--memb-app-side-rail-w);
    }

    body.memb-app-page--with-side .memb-app-page-frame,
    body.memb-app-page--with-side .memb-app-main,
    body.memb-app-page--with-side .main-content,
    body.memb-app-page--with-side .memb-dash-main,
    body.memb-app-page--with-side .memb-profile-main,
    body.memb-app-page--with-side .memb-dash,
    body.memb-app-page--with-side .memb-dash-feed,
    body.memb-app-page--with-side .memb-profile-grid,
    body.memb-app-page--with-side .memb-dash-post.memb-dash-post--ig,
    body.memb-app-page--with-side .memb-dash-widget,
    body.memb-app-page--with-side .memb-dash-carousel-empty {
        background-color: var(--memb-app-main-bg);
    }

    body.memb-app-page--with-side,
    body.memb-app-page--with-side.memb-app-page--bottom-nav {
        padding: 0 !important;
        margin: 0;
        min-height: 100vh;
    }

    body.memb-app-page--with-side .memb-app-page-frame {
        min-height: 100vh;
        min-height: 100dvh;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    body.memb-app-page--with-side .memb-app-page-frame.has-marketing-side {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
    }

    body.memb-app-page--with-side .memb-app-page-frame > .memb-auth-side-panel {
        display: flex;
        flex-direction: column;
        grid-area: side;
        flex-shrink: 0;
        width: var(--memb-app-side-icon-col-w);
        min-width: var(--memb-app-side-icon-col-w);
        max-width: var(--memb-app-side-icon-col-w);
        margin: 0;
        padding: 0;
        align-self: stretch;
        position: fixed;
        left: 0;
        top: var(--memb-app-shell-header-h);
        bottom: 0;
        height: calc(100dvh - var(--memb-app-shell-header-h));
        max-height: calc(100dvh - var(--memb-app-shell-header-h));
        min-height: calc(100dvh - var(--memb-app-shell-header-h));
        box-sizing: border-box;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        overflow: hidden;
        z-index: 140;
        transition:
            width var(--memb-side-expand-duration) var(--memb-side-expand-ease),
            min-width var(--memb-side-expand-duration) var(--memb-side-expand-ease),
            max-width var(--memb-side-expand-duration) var(--memb-side-expand-ease);
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-active > .memb-auth-side-panel {
        width: var(--memb-app-side-rail-w);
        min-width: var(--memb-app-side-rail-w);
        max-width: var(--memb-app-side-rail-w);
    }

    /* Brand (logo) — fixo no canto, acompanha a largura do trilho */
    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar .memb-app-topbar__side-brand {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 260;
        flex: none;
        width: var(--memb-app-side-icon-col-w);
        max-width: var(--memb-app-side-icon-col-w);
        min-width: var(--memb-app-side-icon-col-w);
        height: var(--memb-app-shell-header-h);
        display: flex;
        align-items: center;
        box-sizing: border-box;
        padding: 0 4px var(--memb-app-topbar-pad-y) 2px;
        background: transparent;
        transition:
            width var(--memb-side-expand-duration) var(--memb-side-expand-ease),
            max-width var(--memb-side-expand-duration) var(--memb-side-expand-ease),
            min-width var(--memb-side-expand-duration) var(--memb-side-expand-ease);
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-active .memb-app-main > .memb-app-topbar .memb-app-topbar__side-brand {
        width: var(--memb-app-side-rail-w);
        max-width: var(--memb-app-side-rail-w);
        min-width: var(--memb-app-side-rail-w);
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand .memb-auth-side-brand-head {
        flex-shrink: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: none;
        box-sizing: border-box;
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand .memb-auth-side-brand-box {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        width: 100%;
        min-height: 3.5rem;
        padding: 8px 0 0 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-sizing: border-box;
        justify-content: flex-start;
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand .memb-auth-side-toggle {
        display: none !important;
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand .memb-auth-side-brand {
        flex: 0 0 auto;
        flex-shrink: 0;
        min-width: auto;
        min-height: 0;
        padding: 0;
        order: 0;
        justify-content: flex-start;
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand .memb-auth-side-brand-open {
        gap: 0;
        flex: 0 0 auto;
        flex-shrink: 0;
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand .memb-auth-side-brand-text-wrap {
        display: none !important;
        max-width: 0 !important;
        opacity: 0 !important;
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand .memb-auth-side-brand-logo {
        flex-shrink: 0;
        display: block;
        max-width: var(--memb-app-side-logo-max-w);
        width: auto;
        height: var(--memb-app-side-logo-h);
        min-height: var(--memb-app-side-logo-h);
        object-fit: contain;
        object-position: left center;
        transition: transform var(--memb-side-expand-duration) var(--memb-side-expand-ease);
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-main > .memb-app-topbar .memb-app-topbar__side-brand,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-topbar__side-brand .memb-auth-side-brand-head,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-topbar__side-brand .memb-auth-side-brand-box,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-topbar__side-brand .memb-auth-side-brand,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-topbar__side-brand .memb-auth-side-brand-open {
        overflow: visible;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-topbar__side-brand .memb-auth-side-brand-box {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 8px 0 0;
        min-height: 3.5rem;
        box-sizing: border-box;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-topbar__side-brand .memb-auth-side-brand {
        order: 0;
        flex: 0 0 auto;
        min-width: auto;
        width: auto;
        max-width: none;
        padding: 0;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-topbar__side-brand .memb-auth-side-brand-mini {
        display: none !important;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-app-topbar__side-brand .memb-auth-side-brand-open {
        display: flex !important;
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        opacity: 1;
        pointer-events: auto;
        justify-content: flex-start;
        flex: 0 0 auto;
        min-width: auto;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-auth-side-link {
        justify-content: center;
        padding: 7px 2px;
        gap: 0;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-auth-side-icon {
        margin: 0 auto;
        width: 2rem;
        height: 2rem;
        font-size: 1.15rem;
        border-radius: 10px;
        transition: color 0.2s ease;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-auth-side-create-btn {
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        min-height: 0;
        padding: 7px 10px;
        margin: 0;
        border: none;
        background: transparent;
        border-radius: 10px;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-auth-side-create-btn .memb-auth-side-icon,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-auth-side-create-btn i {
        margin: 0 auto;
        width: 2rem;
        height: 2rem;
        font-size: 1.15rem;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-collapsed .memb-auth-side-divider {
        display: none !important;
    }

    /* Separadores: linha sólida ponta a ponta só com sidebar aberta */
    body.memb-app-page--with-side .memb-app-page-frame:not(.is-side-collapsed) > .memb-auth-side-panel .memb-auth-side-scroll .memb-auth-side-divider {
        display: block;
        height: 0;
        border: none;
        border-top: 1px solid color-mix(in srgb, var(--memb-ui-accent) 32%, transparent);
        margin: 10px -10px;
        padding: 0;
        width: auto;
        box-sizing: border-box;
    }

    body.memb-app-page--with-side .memb-app-page-frame:not(.is-side-flyout-mode) > .memb-auth-side-panel .memb-auth-side-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 4px;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode > .memb-auth-side-panel .memb-auth-side-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 8px 6px;
    }

    body.memb-app-page--with-side .memb-app-page-frame > .memb-auth-side-panel .memb-auth-side-foot {
        flex-shrink: 0;
        margin-top: auto;
        padding: 8px 10px 10px;
    }

    body.memb-app-page--with-side .memb-app-page-frame.has-marketing-side {
        padding-left: 0;
    }

    body.memb-app-page--with-side .memb-app-main {
        grid-area: main;
        align-self: stretch;
        min-width: 0;
        margin-left: var(--memb-app-side-offset, var(--memb-app-side-icon-col-w));
        width: calc(100% - var(--memb-app-side-offset, var(--memb-app-side-icon-col-w)));
        max-width: none;
        min-height: 100vh;
        height: auto;
        transition:
            margin-left var(--memb-side-expand-duration) var(--memb-side-expand-ease),
            width var(--memb-side-expand-duration) var(--memb-side-expand-ease);
        padding: 0 0 1.5rem;
        box-sizing: border-box;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 0;
        --memb-app-avail-w: 100%;
        --memb-app-main-w: 100%;
        --memb-app-main-side-pad: 0;
    }

    /* Scroll na janela — feed passa por baixo da topbar glass */
    body.memb-app-page--with-side .memb-app-main > .main-content,
    body.memb-app-page--with-side .memb-app-main > .memb-profile-main {
        overflow: visible;
        overflow-y: visible;
    }

    body.memb-app-page--with-side .memb-app-main > .main-content {
        max-width: var(--memb-app-main-max-w);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding: 1rem 1.25rem 0;
        box-sizing: border-box;
        flex: 1 1 auto;
        min-width: 0;
    }

    body.memb-app-page--with-side .memb-app-main > .memb-profile-main {
        padding: 1rem 1.25rem 0;
        box-sizing: border-box;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: var(--memb-app-main-max-w);
        margin-inline: auto;
    }

    /* Topbar — header sem blur; glass só na faixa de ações (não no logo/seta) */
    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar {
        position: sticky;
        top: 0;
        z-index: 250;
        flex: 0 0 auto;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: var(--memb-app-shell-header-h);
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        overflow: visible;
        box-sizing: border-box;
    }

    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar .memb-app-topbar__glass {
        flex: 1 1 auto;
        display: flex;
        align-items: stretch;
        min-width: 0;
        min-height: var(--memb-app-shell-header-h);
        padding: 0 var(--memb-app-topbar-pad-x) 0;
        box-sizing: border-box;
        background: var(--memb-app-topbar-glass-bg);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        transition:
            background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            -webkit-backdrop-filter 0.4s ease,
            backdrop-filter 0.4s ease;
    }

    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar.is-glass-scrolled .memb-app-topbar__glass {
        background: var(--memb-app-topbar-glass-bg-scrolled);
        -webkit-backdrop-filter: blur(var(--memb-app-topbar-glass-blur-scrolled))
            saturate(var(--memb-app-topbar-glass-saturate));
        backdrop-filter: blur(var(--memb-app-topbar-glass-blur-scrolled)) saturate(var(--memb-app-topbar-glass-saturate));
    }

    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        body.memb-app-page--with-side .memb-app-main > .memb-app-topbar.is-glass-scrolled .memb-app-topbar__glass {
            background: color-mix(in srgb, var(--memb-app-side-bg) 94%, transparent);
        }
    }

    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar .memb-app-topbar__view--desktop {
        display: flex !important;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        min-width: 0;
        min-height: var(--memb-app-shell-header-h);
        box-sizing: border-box;
    }

    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar .memb-app-topbar__content {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
        width: 100%;
        min-width: 0;
        padding-bottom: var(--memb-app-topbar-pad-y);
        box-sizing: border-box;
        position: relative;
    }

    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar .memb-app-topbar__content--actions {
        justify-content: flex-end;
    }

    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar .memb-app-topbar__content--actions .memb-app-topbar-search {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: none;
        width: clamp(280px, 42vw, 620px);
        min-width: 280px;
        max-width: 620px;
        margin: 0;
    }

    body.memb-app-page--with-side .memb-app-main > .memb-app-topbar .memb-app-topbar-right {
        flex: 0 0 auto;
        flex-shrink: 0;
        gap: var(--memb-app-topbar-gap);
    }

    /* Flyout — ícones fixos na coluna; rótulos deslizam dentro do trilho */
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode > .memb-auth-side-panel {
        overflow: hidden;
        z-index: 140;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-nav,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-create {
        overflow: hidden;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-create {
        padding: 0;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-link,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-create-btn {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start !important;
        gap: 8px;
        padding: 7px 10px !important;
        overflow: hidden;
        z-index: 1;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-icon,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-create-btn .memb-auth-side-icon,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-create-btn i {
        margin: 0 !important;
        flex: 0 0 2rem;
        width: 2rem;
        height: 2rem;
        position: relative;
        z-index: 2;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-collapsed .memb-auth-side-link,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-collapsed .memb-auth-side-create-btn {
        justify-content: flex-start !important;
        padding: 7px 10px !important;
        gap: 8px;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-collapsed .memb-auth-side-icon,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-collapsed .memb-auth-side-create-btn .memb-auth-side-icon,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-collapsed .memb-auth-side-create-btn i {
        margin: 0 !important;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-arrow,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-badge,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-foot {
        display: none !important;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-divider {
        display: none !important;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-link-copy {
        display: block !important;
        position: static;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        white-space: nowrap;
        overflow: hidden;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transition:
            opacity 0.22s var(--memb-side-expand-ease),
            width 0.28s var(--memb-side-expand-ease),
            visibility 0s linear 0.22s;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode .memb-auth-side-link-label {
        white-space: nowrap;
        display: inline-block;
        color: #fff;
        transform: translateX(-8px);
        transition:
            color 0.2s ease,
            transform 0.32s var(--memb-side-expand-ease),
            opacity 0.22s var(--memb-side-expand-ease);
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode:not(.is-side-flyout-active) .memb-auth-side-link-copy {
        flex: 0 0 0 !important;
        width: 0 !important;
        max-width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode:not(.is-side-flyout-active) .memb-auth-side-link-label {
        opacity: 0;
        transform: translateX(-8px);
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active .memb-auth-side-link-copy {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        overflow: visible;
        transition:
            opacity 0.24s var(--memb-side-expand-ease) 0.02s,
            width 0.32s var(--memb-side-expand-ease),
            visibility 0s linear 0s;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active .memb-auth-side-link-label {
        opacity: 1;
        transform: translateX(0);
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active .memb-auth-side-create-btn .memb-auth-side-link-copy {
        display: block !important;
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active .memb-auth-side-link.is-active .memb-auth-side-link-label,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active a.memb-auth-side-link:hover .memb-auth-side-link-label,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active .memb-auth-side-create-btn:hover .memb-auth-side-link-label {
        color: var(--memb-ui-accent);
    }

    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active .memb-auth-side-link.is-active .memb-auth-side-icon,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active a.memb-auth-side-link:hover .memb-auth-side-icon,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active .memb-auth-side-create-btn:hover .memb-auth-side-icon,
    body.memb-app-page--with-side .memb-app-page-frame.is-side-flyout-mode.is-side-flyout-active .memb-auth-side-create-btn:hover i {
        color: var(--memb-ui-accent);
    }

    body.memb-app-page--with-side .memb-app-page-frame.has-marketing-side > .memb-auth-side-panel {
        display: flex !important;
    }

    /* Desktop: ignora estado mobile sidebar-open (overlay / slide-in) */
    body.memb-app-page.sidebar-open::after {
        display: none !important;
        content: none !important;
    }

    body.memb-app-page .memb-app-page-frame > .memb-auth-side-panel {
        transform: none !important;
    }
}

@media (max-width: 1179.98px) {
    .memb-auth-side-create {
        display: none !important;
    }

    .memb-app-topbar-search__input {
        font-size: 16px;
    }

    /* Mobile: header só com + (logo fixo da sidebar fica no drawer) */
    .memb-app-sidebar-logo {
        display: none !important;
    }

    body.memb-app-page--with-side .memb-app-topbar__side-brand {
        display: none !important;
    }

    body.memb-app-page--with-side {
        padding: 0;
        box-sizing: border-box;
    }

    body.memb-app-page--with-side .main-content.memb-dash-main {
        padding-top: 0 !important;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    body.memb-app-page--with-side .memb-app-page-frame {
        min-height: calc(100vh - 2rem);
    }

    body.memb-app-page--with-side .memb-app-page-frame > .memb-auth-side-panel {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(280px, 88vw);
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100dvh;
        margin: 0;
        border-radius: 0 14px 14px 0;
        z-index: 1300;
        transform: translateX(-100%);
        transition: transform 0.32s ease;
        box-sizing: border-box;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    body.memb-app-page.sidebar-open .memb-app-page-frame > .memb-auth-side-panel {
        transform: translateX(0);
    }

    body.memb-app-page.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(4, 8, 22, 0.55);
        z-index: 1290;
        backdrop-filter: blur(2px);
    }

    body.memb-app-page.sidebar-open .memb-app-bottom-nav {
        z-index: 1100;
        pointer-events: none;
    }

    body.memb-app-page--with-side .memb-app-main {
        --memb-app-avail-w: calc(100vw - var(--memb-app-side-gap) * 2);
        --memb-app-main-side-pad: 0px;
    }

    body.memb-app-page .main-content {
        padding-top: 0 !important;
    }
}

@media (max-width: 1179.98px) {
    .memb-app-topbar-welcome-extra {
        display: none !important;
    }

    body.memb-app-page--bottom-nav {
        --memb-app-topbar-min-h: 48px;
        --memb-app-topbar-sticky-offset: env(safe-area-inset-top, 0px);
        --memb-app-topbar-content-gap: 4px;
        padding-top: calc(
            var(--memb-app-topbar-min-h) + var(--memb-app-topbar-sticky-offset) - var(--memb-app-topbar-content-gap)
        );
        padding-bottom: calc(var(--memb-app-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    }

    body.memb-app-page--bottom-nav .memb-app-topbar {
        min-height: var(--memb-app-topbar-min-h);
        padding: 6px 12px;
        position: fixed;
        top: var(--memb-app-topbar-sticky-offset);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        z-index: 1150;
        background: var(--memb-app-side-bg);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        transition:
            background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            -webkit-backdrop-filter 0.4s ease,
            backdrop-filter 0.4s ease;
    }

    body.memb-app-page--bottom-nav .memb-app-topbar.is-glass-scrolled {
        background: var(--memb-app-topbar-glass-bg-scrolled);
        -webkit-backdrop-filter: blur(var(--memb-app-topbar-glass-blur-scrolled))
            saturate(var(--memb-app-topbar-glass-saturate));
        backdrop-filter: blur(var(--memb-app-topbar-glass-blur-scrolled)) saturate(var(--memb-app-topbar-glass-saturate));
        box-shadow: none;
    }

    body.memb-app-page--bottom-nav .memb-app-main {
        min-height: 0;
        padding-top: 0;
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        overflow: visible;
        border-top: 1px solid color-mix(in srgb, var(--memb-ui-accent) 14%, transparent);
        background: var(--memb-app-side-bg);
        box-shadow: none;
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__list {
        align-items: flex-end;
        overflow: visible;
    }

    /* Perfil “levantado” acima da barra (estilo Instagram) */
    body.memb-app-page--bottom-nav .memb-app-bottom-nav__item--profile {
        position: relative;
        z-index: 3;
        align-self: stretch;
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile {
        padding-top: 0;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        min-height: var(--memb-app-bottom-nav-h);
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__profile-elevated {
        transform: translateY(-11px);
        padding: 3px;
        border-radius: 50%;
        background: var(--memb-story-ring-me);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile[data-has-story="1"] .memb-app-bottom-nav__profile-elevated {
        background: var(--memb-story-ring-promo);
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile[data-has-story="1"][data-story-all-viewed="1"] .memb-app-bottom-nav__profile-elevated {
        background: var(--memb-story-ring-seen);
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile .memb-app-bottom-nav__avatar,
    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile .memb-profile-avatar--img,
    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile .memb-profile-avatar--initials {
        width: 32px;
        height: 32px;
        border: 2px solid var(--memb-app-side-bg);
        box-sizing: border-box;
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile.is-active:not([data-has-story="1"]) .memb-app-bottom-nav__profile-elevated {
        box-shadow:
            0 4px 14px rgba(0, 0, 0, 0.38),
            0 0 0 2px var(--memb-ui-accent, #8eb4ff);
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile.is-active .memb-profile-avatar--initials,
    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile.is-active .memb-profile-avatar--img {
        box-shadow: none;
    }

    body.memb-app-page--bottom-nav .memb-app-bottom-nav__link--profile .memb-app-bottom-nav__label {
        margin-top: -6px;
    }

    body.memb-app-page--bottom-nav .main-content {
        padding-top: 0 !important;
        padding-bottom: calc(1rem + var(--memb-app-bottom-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.memb-app-page--bottom-nav .memb-app-profile-dropdown-item--mobile-extra {
        display: flex;
    }

    body.memb-app-page.sidebar-open .memb-app-bottom-nav__link--more:not(.is-active) {
        color: #fff;
    }

    body.memb-app-page.sidebar-open .memb-app-bottom-nav__link--more:not(.is-active) > i.bi,
    body.memb-app-page.sidebar-open .memb-app-bottom-nav__link--more:not(.is-active) > .memb-lucide-icon {
        color: #fff;
    }
}

/* PWA / “Adicionar à tela de início” — afasta o menu das bordas e da barra do sistema */
@media (max-width: 1179.98px) {
    html.memb-standalone,
    body.memb-app-page.memb-standalone {
        --memb-app-bottom-nav-h: 62px;
        --memb-app-standalone-nav-pad-b: max(10px, env(safe-area-inset-bottom, 0px));
    }

    body.memb-app-page--bottom-nav.memb-standalone {
        padding-bottom: calc(
            var(--memb-app-bottom-nav-h) + var(--memb-app-standalone-nav-pad-b) + 6px
        );
    }

    body.memb-app-page--bottom-nav.memb-standalone .memb-app-bottom-nav {
        left: 0;
        right: 0;
        bottom: 0;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        padding-bottom: var(--memb-app-standalone-nav-pad-b);
        box-sizing: border-box;
    }

    body.memb-app-page--bottom-nav.memb-standalone .memb-app-bottom-nav__list {
        padding: 0 6px;
        gap: 4px;
        justify-content: space-between;
    }

    body.memb-app-page--bottom-nav.memb-standalone .memb-app-bottom-nav__item {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    body.memb-app-page--bottom-nav.memb-standalone .memb-app-bottom-nav__link {
        padding: 8px 4px 6px;
    }

    body.memb-app-page--bottom-nav.memb-standalone .memb-app-bottom-nav__label {
        font-size: 10px;
        padding: 0 2px;
    }

    body.memb-app-page--bottom-nav.memb-standalone .main-content {
        padding-bottom: calc(
            1rem + var(--memb-app-bottom-nav-h) + var(--memb-app-standalone-nav-pad-b) + 6px
        ) !important;
    }

    body.memb-app-page--bottom-nav.memb-standalone .memb-app-topbar {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }
}

@media (display-mode: standalone) and (max-width: 1179.98px) {
    body.memb-app-page--bottom-nav:not(.memb-standalone) {
        padding-bottom: calc(var(--memb-app-bottom-nav-h) + max(env(safe-area-inset-bottom, 0px), 10px) + 6px);
    }

    body.memb-app-page--bottom-nav:not(.memb-standalone) .memb-app-bottom-nav {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    body.memb-app-page--bottom-nav:not(.memb-standalone) .memb-app-bottom-nav__item {
        max-width: none;
    }

    body.memb-app-page--bottom-nav:not(.memb-standalone) .memb-app-bottom-nav__list {
        padding: 0 8px;
    }
}

@media (max-width: 768px) {
    body.memb-app-page--with-side .memb-app-main {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    body.memb-app-page--with-side .memb-app-topbar {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.memb-app-page .main-content {
        padding: 0 0 1.25rem;
        width: 100%;
    }
}

@media (min-width: 1180px) {
    body.memb-app-page .memb-app-menu-toggle {
        display: none;
    }

    body.memb-app-page--with-side .memb-app-topbar {
        --memb-app-topbar-min-h: var(--memb-app-shell-header-h);
    }

    /* Páginas sem sidebar: topbar continua como card centralizado */
    body.memb-app-page:not(.memb-app-page--with-side) .memb-app-topbar {
        position: sticky;
        top: 0;
        z-index: 250;
        width: 100%;
        max-width: var(--memb-app-main-max-w);
        margin-left: auto;
        margin-right: auto;
        --memb-app-topbar-min-h: var(--memb-app-shell-header-h, 80px);
        min-height: var(--memb-app-topbar-min-h);
        padding: var(--memb-app-topbar-pad-y) var(--memb-app-topbar-pad-x);
        gap: var(--memb-app-topbar-gap);
        border-radius: var(--memb-app-topbar-radius);
        border: 1px solid var(--memb-app-border-strong);
        border-bottom: 1px solid var(--memb-app-border);
        background: linear-gradient(
            180deg,
            color-mix(in srgb, var(--memb-ui-background) 96%, #fff 2%) 0%,
            color-mix(in srgb, var(--memb-ui-background) 98%, #000) 100%
        );
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--memb-ui-accent) 8%, transparent),
            0 8px 24px rgba(0, 0, 0, 0.22);
    }

    body.memb-app-page--bottom-nav .memb-app-main {
        padding-top: 0;
    }

    .memb-app-topbar__view--mobile {
        display: none !important;
    }

    .memb-app-topbar__view--desktop {
        display: flex !important;
    }

    body.memb-app-page--bottom-nav {
        padding-top: 0;
        padding-bottom: 0;
    }
}
