:root {
    --portal-header-bg: var(--card, #fff);
    --portal-header-surface: var(--card, #fff);
    --portal-header-text: var(--foreground, #101936);
    --portal-header-muted: var(--muted, #5d6980);
    --portal-header-border: var(--border, #e5eaf2);
    --portal-header-soft: var(--muted-bg, #f5f7fb);
    --portal-blue: #0d6efd;
}

html[data-theme="dark"],
[data-bs-theme="dark"] {
    --portal-header-bg: var(--card, #111827);
    --portal-header-surface: var(--card, #111827);
    --portal-header-text: var(--foreground, #f8fafc);
    --portal-header-muted: var(--muted, #94a3b8);
    --portal-header-border: var(--border, #283548);
    --portal-header-soft: var(--muted-bg, #172033);
}

.portal-header {
    position: relative;
    z-index: 1040;
    width: 100%;
    padding: 0 12px;
    background: var(--portal-header-bg);
    border-bottom: 1px solid var(--portal-header-border);
    transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}

.portal-header-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.portal-header-row {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0;
    transition: min-height .25s ease, padding .25s ease;
}

.portal-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--portal-header-text);
    text-decoration: none;
}

.portal-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 70, 190, .18);
    transition: width .25s ease, height .25s ease, border-radius .25s ease;
}

.portal-brand-name {
    display: flex;
    flex-direction: column;
    color: var(--portal-header-text);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.18;
    white-space: nowrap;
}

.portal-brand-name span:last-child {
    color: var(--portal-blue);
}

.portal-brand-divider {
    align-self: stretch;
    width: 1px;
    margin: 8px 1px;
    background: var(--portal-header-border);
}

.portal-desktop-nav {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 4px;
}

.portal-nav-item {
    position: relative;
    min-width: 66px;
    min-height: 50px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 14px;
    color: var(--portal-header-text);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-nav-label {
    white-space: nowrap;
    text-align: center;
    line-height: 1.1;
}

.portal-nav-item::after {
    display: none;
}

.portal-nav-icon {
    display: grid;
    place-items: center;
    color: #52627a;
    font-size: 1.05rem;
    transition: color .2s ease;
}

.portal-nav-item:hover:not(.active) {
    color: var(--portal-blue, #0062ff);
    background: #f1f5f9;
}

.portal-nav-item:hover:not(.active) .portal-nav-icon {
    color: var(--portal-blue, #0062ff);
}

/* ─── Estado Ativo no Desktop (Cápsula Suave Azul) ─────────────────────── */
.portal-nav-item.active {
    color: #0062ff !important;
    background: #edf3ff !important;
    font-weight: 700 !important;
}

.portal-nav-item.active .portal-nav-icon,
.portal-nav-item.active .portal-nav-icon i,
.portal-nav-item.active .portal-nav-label {
    color: #0062ff !important;
    font-weight: 700;
}

.portal-nav-home,
.portal-nav-stores,
.portal-nav-real-estate,
.portal-nav-vehicles,
.portal-nav-products,
.portal-nav-services,
.portal-nav-jobs,
.portal-nav-agro,
.portal-nav-culture,
.portal-nav-community,
.portal-nav-plans {
    --portal-icon-color: var(--portal-blue, #0d6efd);
}

.portal-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-location-active {
    min-height: 28px;
    max-width: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid #fca5a5;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.portal-location-active i.fa-location-dot {
    color: #dc3545 !important;
}

.portal-location-active span {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap;
}

.portal-location-active:hover {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

.portal-location-active:disabled {
    opacity: .65;
}

.portal-location-close {
    font-size: .65rem;
    color: #dc3545;
}

/* Modo Escuro - Cor Verde */
html[data-theme="dark"] .portal-location-active,
[data-bs-theme="dark"] .portal-location-active,
[data-theme="dark"] .portal-location-active {
    border-color: #10b981 !important;
    background: #064e3b !important;
    color: #a7f3d0 !important;
}

html[data-theme="dark"] .portal-location-active i,
[data-bs-theme="dark"] .portal-location-active i,
[data-theme="dark"] .portal-location-active i {
    color: #34d399 !important;
}

.portal-search-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--portal-header-text);
    background: var(--portal-header-soft);
    border: 1px solid var(--portal-header-border);
    font-size: 1rem;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.portal-search-button:hover {
    color: var(--portal-blue);
    background: color-mix(in srgb, var(--portal-blue) 10%, transparent);
    border-color: color-mix(in srgb, var(--portal-blue) 35%, var(--portal-header-border));
}

.portal-account-button,
.portal-announce-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.portal-account-button {
    min-height: 40px;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px 3px 3px !important;
    gap: 8px !important;
    overflow: visible !important;
    position: relative !important;
    color: var(--portal-header-text);
    background: var(--portal-header-bg);
    border: 1px solid var(--portal-header-border);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
}

.portal-account-badge {
    position: absolute;
    top: -3px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.4), 0 0 0 2px var(--portal-header-bg, #ffffff);
    z-index: 5;
    pointer-events: none;
}

html[data-theme="dark"] .portal-account-badge,
[data-bs-theme="dark"] .portal-account-badge {
    background: #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5), 0 0 0 2px #0f172a;
}

@keyframes badgePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.badge-pop-animate {
    animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-account-button.dropdown-toggle::after {
    display: none !important;
}

.portal-account-chevron {
    font-size: 0.65rem;
    color: var(--portal-header-muted, #64748b);
    transition: transform 0.2s ease;
}

.portal-account-dropdown.show .portal-account-chevron,
.portal-account-button[aria-expanded="true"] .portal-account-chevron {
    transform: rotate(180deg);
}

.portal-user-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--portal-header-text);
    white-space: nowrap;
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-user-avatar,
.portal-account-avatar,
.portal-account-fallback {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 12px !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.portal-user-avatar img,
.portal-account-avatar {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
    display: block !important;
    border: 1px solid var(--portal-header-border);
}

.portal-account-fallback {
    display: grid !important;
    place-items: center !important;
    color: var(--portal-header-muted);
    background: var(--portal-header-soft);
    font-size: .85rem;
    border-radius: 12px !important;
}

.portal-account-button span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-account-button:hover {
    color: var(--portal-blue);
    border-color: color-mix(in srgb, var(--portal-blue) 45%, var(--portal-header-border));
}

/* ── Menu do Usuário Dropdown Estilizado ── */
.portal-account-menu {
    min-width: 250px !important;
    padding: 12px 10px !important;
    margin-top: 8px !important;
    background: #ffffff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="dark"] .portal-account-menu,
[data-bs-theme="dark"] .portal-account-menu {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
}

.portal-user-menu-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 4px 8px 12px !important;
}

.portal-user-menu-avatar-wrap {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    border-radius: 15px !important;
    border: 2.5px solid #3b82f6 !important;
    padding: 1.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.portal-user-menu-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

.portal-user-menu-fallback {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    background: #eff6ff !important;
    color: #3b82f6 !important;
    font-size: 1.1rem !important;
}

.portal-user-menu-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.portal-user-menu-name {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
}

html[data-theme="dark"] .portal-user-menu-name,
[data-bs-theme="dark"] .portal-user-menu-name {
    color: #f8fafc !important;
}

.portal-user-menu-status {
    font-size: 0.76rem !important;
    color: #64748b !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
}

.portal-user-menu-email {
    font-size: 0.76rem !important;
    color: #64748b !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
    margin-bottom: 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html[data-theme="dark"] .portal-user-menu-email,
[data-bs-theme="dark"] .portal-user-menu-email {
    color: #94a3b8 !important;
}

/* ==========================================================================
   Account Plan Badge (Gratuita, Start, Pro, Premium)
   ========================================================================== */
.account-plan-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    user-select: none !important;
    width: fit-content !important;
    text-decoration: none !important;
}

.account-plan-badge.badge-sm {
    padding: 3px 9px !important;
    font-size: 0.72rem !important;
}

.account-plan-badge.badge-md {
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
}

.account-plan-badge-prefix {
    font-weight: 500 !important;
    opacity: 0.85 !important;
    font-size: 0.9em !important;
}

/* Plano Gratuita */
.account-plan-badge.plan-badge-free {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme="dark"] .account-plan-badge.plan-badge-free,
[data-bs-theme="dark"] .account-plan-badge.plan-badge-free {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* Plano Start */
.account-plan-badge.plan-badge-start {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

html[data-theme="dark"] .account-plan-badge.plan-badge-start,
[data-bs-theme="dark"] .account-plan-badge.plan-badge-start {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25) !important;
}

/* Plano Pro (Design idêntico ao modelo da imagem enviada pelo usuário) */
.account-plan-badge.plan-badge-pro {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd !important;
}

html[data-theme="dark"] .account-plan-badge.plan-badge-pro,
[data-bs-theme="dark"] .account-plan-badge.plan-badge-pro {
    background: #142442 !important;
    color: #ffffff !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5) !important;
}

/* Plano Premium */
.account-plan-badge.plan-badge-premium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    color: #b45309 !important;
    border: 1px solid #fcd34d !important;
}

html[data-theme="dark"] .account-plan-badge.plan-badge-premium,
[data-bs-theme="dark"] .account-plan-badge.plan-badge-premium {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.28) 0%, rgba(180, 83, 9, 0.38) 100%) !important;
    color: #fef08a !important;
    border: 1px solid rgba(250, 204, 21, 0.5) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4) !important;
}

.portal-menu-divider {
    height: 1px !important;
    background: #f1f5f9 !important;
    margin: 6px 0 !important;
    list-style: none !important;
}

html[data-theme="dark"] .portal-menu-divider,
[data-bs-theme="dark"] .portal-menu-divider {
    background: #1e293b !important;
}

.portal-account-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: transparent !important;
    border: 0 !important;
    width: 100% !important;
    text-align: left !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

html[data-theme="dark"] .portal-account-menu .dropdown-item,
[data-bs-theme="dark"] .portal-account-menu .dropdown-item {
    color: #cbd5e1 !important;
}

.portal-account-menu .dropdown-item:hover,
.portal-account-menu .dropdown-item:focus {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="dark"] .portal-account-menu .dropdown-item:hover,
html[data-theme="dark"] .portal-account-menu .dropdown-item:focus,
[data-bs-theme="dark"] .portal-account-menu .dropdown-item:hover,
[data-bs-theme="dark"] .portal-account-menu .dropdown-item:focus {
    background: #1e293b !important;
    color: #f8fafc !important;
}

.portal-account-menu .dropdown-item i {
    font-size: 0.95rem !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.portal-announce-button {
    color: #fff;
    border: 1px solid #075be8;
    background: linear-gradient(135deg, #075be8, #0649c9);
    box-shadow: 0 7px 18px rgba(7, 91, 232, .22);
}

.portal-announce-button:hover {
    color: #fff;
    background: linear-gradient(135deg, #0649c9, #043da9);
}

.portal-account-menu {
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--portal-header-border);
    border-radius: 14px;
    background: var(--portal-header-bg);
    box-shadow: 0 16px 35px rgba(15, 23, 42, .14);
}

.portal-account-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--portal-header-text);
    font-size: .86rem;
    font-weight: 600;
}

.portal-notification-badge {
    min-width: 22px;
    padding: 4px 6px;
    color: #fff;
    font-size: .65rem;
    line-height: 1;
}

.portal-mobile-toggle,
.portal-mobile-menu,
.portal-mobile-actions {
    display: none;
}

@media (max-width: 1199.98px) {
    .portal-header-row {
        gap: 10px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .portal-brand-name {
        font-size: .9rem;
    }

    .portal-brand-logo {
        width: 46px;
        height: 46px;
    }

    .portal-nav-item {
        min-width: 54px;
        padding-right: 5px;
        padding-left: 5px;
        font-size: .68rem;
    }

    .portal-header-actions {
        gap: 7px;
    }

    .portal-account-button {
        max-width: 132px;
    }
}

@media (min-width: 992px) {
    .portal-header {
        padding-top: 0;
        padding-bottom: 0;
    }

    .portal-header-shell {
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 12px;
    }

    .portal-header-row {
        display: grid;
        grid-template-columns: minmax(max-content, auto) minmax(0, 1fr) minmax(max-content, auto);
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 3px 0;
    }

    .portal-brand {
        gap: 8px;
        flex-shrink: 0;
    }

    .portal-brand-logo {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .portal-brand-name {
        font-size: .8rem;
    }

    .portal-brand-divider {
        display: none !important;
    }

    .portal-desktop-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 0;
    }

    .portal-nav-item {
        min-width: auto;
        min-height: 36px;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        font-size: .82rem;
        font-weight: 600;
        border-radius: 999px;
    }

    .portal-nav-icon {
        display: inline-grid;
        place-items: center;
        font-size: .92rem;
    }

    .portal-nav-item::after {
        display: none;
    }

    .portal-header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-shrink: 0;
    }

    .portal-search-button {
        width: 32px;
        height: 32px;
    }

    .portal-account-button,
    .portal-announce-button {
        min-height: 32px;
        padding: 4px 12px;
        font-size: 0.78rem;
    }

    .portal-account-button {
        min-height: 30px;
        max-width: 160px;
    }

    .portal-account-button span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {
    .portal-header-shell {
        max-width: 1140px;
    }
    .portal-header-row {
        gap: 16px;
    }
    .portal-desktop-nav {
        gap: 8px;
    }
    .portal-nav-item {
        gap: 6px;
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .portal-header-actions {
        gap: 12px;
    }
    .portal-account-button {
        max-width: 175px;
    }
}

@media (min-width: 1400px) {
    .portal-header-shell {
        max-width: 1320px;
    }
    .portal-desktop-nav {
        gap: 12px;
    }
    .portal-nav-icon {
        font-size: .92rem;
    }
    .portal-nav-item {
        padding: 5px 12px;
        font-size: 0.82rem;
    }
    .portal-header-actions {
        gap: 14px;
    }
    .portal-account-button {
        max-width: 200px;
    }
}

@media (max-width: 991.98px) {
    .portal-location-active {
        width: 36px;
        min-height: 36px;
        padding: 0;
        justify-content: center;
    }

    .portal-location-active span,
    .portal-location-active .portal-location-close {
        display: none;
    }

    .portal-mobile-location {
        width: 100%;
        border: 1px solid #86efac;
        background: #f0fdf4;
        color: #166534;
        text-align: left;
    }

    .portal-top-announce {
        display: none;
    }

    .portal-header-guest .portal-guest-login {
        width: auto;
        max-width: none;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 14px;
        color: #ffffff !important;
        background: #0d6efd !important;
        background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
        border: 1px solid #0d6efd !important;
        box-shadow: 0 2px 6px rgba(13, 110, 253, 0.28);
    }

    .portal-header-guest .portal-guest-login span {
        display: inline !important;
        color: #ffffff !important;
    }

    .portal-header-guest .portal-guest-login i {
        color: #ffffff !important;
    }

    .portal-mobile-user-card {
        width: 100% !important;
        background: var(--portal-header-soft, #f8fafc) !important;
        border: 1px solid var(--portal-header-border, #e2e8f0) !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .portal-mobile-actions-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .portal-mobile-btn-panel,
    .portal-mobile-btn-create {
        min-height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 8px 14px !important;
        border-radius: 12px !important;
        font-size: 0.84rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .portal-mobile-btn-panel {
        background: var(--portal-header-bg, #ffffff) !important;
        color: var(--portal-header-text, #1e293b) !important;
        border: 1px solid var(--portal-header-border, #cbd5e1) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }

    .portal-mobile-btn-panel:hover {
        background: #f1f5f9 !important;
        color: var(--portal-blue, #0d6efd) !important;
    }

    .portal-mobile-btn-create {
        background: linear-gradient(135deg, #0d6efd, #0052cc) !important;
        color: #ffffff !important;
        border: 1px solid transparent !important;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25) !important;
    }

    .portal-mobile-btn-create:hover {
        background: linear-gradient(135deg, #0b5ed7, #0043a8) !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
    }

    .portal-mobile-location-btn {
        min-height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 6px 14px !important;
        border-radius: 10px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        background: rgba(220, 38, 38, 0.08) !important;
        color: #dc2626 !important;
        border: 1px solid rgba(220, 38, 38, 0.2) !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .portal-mobile-location-btn:hover {
        background: rgba(220, 38, 38, 0.14) !important;
    }
}

/* Botão Flutuante de Encolher/Abrir Cabeçalho Vertical: NUNCA visível no mobile/tablet */
.portal-vertical-toggle,
#portalVerticalToggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (min-width: 992px) {
    body.site-header-layout-vertical > main,
    body.site-header-layout-vertical > footer,
    body.site-header-layout-vertical main,
    body.site-header-layout-vertical footer {
        margin-left: 220px !important;
        width: calc(100% - 220px) !important;
        max-width: calc(100% - 220px) !important;
        transition: margin-left 0.25s ease, width 0.25s ease, max-width 0.25s ease;
    }

    .portal-header-layout-vertical {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 220px;
        padding: 0;
        border-right: 1px solid var(--portal-header-border);
        border-bottom: 0;
        z-index: 1040;
        transition: width 0.25s ease;
    }

    /* Botão Flutuante de Encolher/Abrir no Cabeçalho Vertical (Exclusivo Desktop) */
    .portal-header-layout-vertical .portal-vertical-toggle,
    .portal-header-layout-vertical #portalVerticalToggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: absolute;
        top: 22px;
        right: -12px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: #0d6efd;
        color: #ffffff;
        border: 2px solid #ffffff;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
        z-index: 1060;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0.65rem;
        transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    }

    .portal-header-layout-vertical .portal-vertical-toggle:hover,
    .portal-header-layout-vertical #portalVerticalToggle:hover {
        background-color: #0b5ed7;
        transform: scale(1.15);
        box-shadow: 0 6px 16px rgba(13, 110, 253, 0.5);
    }

    /* Estado Recolhido / Collapsed do Cabeçalho Vertical */
    body.site-header-layout-vertical.header-vertical-collapsed main,
    body.site-header-layout-vertical.header-vertical-collapsed footer,
    body.site-header-layout-vertical.header-vertical-collapsed > main,
    body.site-header-layout-vertical.header-vertical-collapsed > footer,
    body.header-vertical-collapsed .site-header-layout-vertical > main,
    body.header-vertical-collapsed .site-header-layout-vertical > footer {
        margin-left: 70px !important;
        width: calc(100% - 70px) !important;
        max-width: calc(100% - 70px) !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical,
    body.site-header-layout-vertical.header-vertical-collapsed .portal-header-layout-vertical {
        width: 70px !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-brand-name,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-nav-label,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-account-button > .portal-user-name,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-announce-button > span,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-search-button span,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-location-active span {
        display: none !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-account-menu span {
        display: inline-block !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-search-button::after {
        display: none !important;
        content: "" !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-nav-item {
        justify-content: center !important;
        padding: 10px 0 !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-nav-icon {
        margin: 0 !important;
        font-size: 1.1rem !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-brand {
        justify-content: center !important;
        padding: 0 0 8px !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-brand-logo {
        width: 38px !important;
        height: 38px !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-announce-button,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-account-button,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-search-button,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-location-active {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-search-button i,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-account-button i,
    body.header-vertical-collapsed .portal-header-layout-vertical .portal-announce-button i {
        margin: 0 !important;
        font-size: 1.15rem !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-header-actions {
        align-items: center !important;
    }

    /* Dropdown do Usuário Flutuando à Direita no Menu Vertical */
    .portal-header-layout-vertical .portal-account-dropdown {
        position: relative;
    }

    .portal-header-layout-vertical .portal-account-menu {
        position: fixed !important;
        left: 230px !important;
        bottom: 20px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        z-index: 1080 !important;
        min-width: 220px !important;
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35) !important;
    }

    body.header-vertical-collapsed .portal-header-layout-vertical .portal-account-menu,
    body.site-header-layout-vertical.header-vertical-collapsed .portal-account-menu {
        left: 80px !important;
        bottom: 20px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .portal-header-layout-vertical .portal-header-shell {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .portal-header-layout-vertical .portal-header-row {
        display: flex !important;
        min-height: 100vh;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
        padding: 16px 12px;
        overflow-y: auto;
    }

    .portal-header-layout-vertical .portal-brand {
        width: 100%;
        padding: 0 5px 8px;
    }

    .portal-header-layout-vertical .portal-brand-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
        margin: 0 0 5px;
    }

    .portal-header-layout-vertical .portal-desktop-nav {
        width: 100%;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
    }

    .portal-header-layout-vertical .portal-nav-item {
        width: 100%;
        min-width: 0;
        min-height: 43px;
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 8px 12px;
        font-size: .78rem;
    }

    .portal-header-layout-vertical .portal-nav-item::after {
        top: 8px;
        right: auto;
        bottom: 8px;
        left: 0;
        width: 3px;
        height: auto;
    }

    .portal-header-layout-vertical .portal-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid var(--portal-header-border);
    }

    .portal-header-layout-vertical .portal-search-button {
        width: 100%;
        height: 38px;
        display: flex;
        justify-content: flex-start;
        gap: 11px;
        padding: 0 13px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .portal-header-layout-vertical .portal-search-button::after {
        content: "Buscar";
        font-size: .78rem;
        font-weight: 700;
    }

    .portal-header-layout-vertical .portal-header-actions > .dropdown {
        width: 100%;
    }

    .portal-header-layout-vertical .portal-account-button,
    .portal-header-layout-vertical .portal-announce-button {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .portal-header {
        padding: 0;
        background: var(--portal-header-bg);
        border-bottom-color: var(--portal-header-border);
    }

    .portal-header-shell {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
    }

    .portal-header-row {
        min-height: 48px;
        gap: 8px;
        padding: 4px 10px;
    }

    .portal-mobile-toggle {
        order: 0;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: grid;
        place-items: center;
        padding: 0;
        color: var(--portal-header-text);
        background: transparent;
        border: 0;
        border-radius: 8px;
        font-size: 1.25rem;
    }

    .portal-mobile-toggle:hover,
    .portal-mobile-toggle:focus-visible {
        color: var(--portal-blue);
        background: var(--portal-header-soft);
    }

    .portal-brand {
        order: 1;
        gap: 8px;
    }

    .portal-brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .portal-brand-name {
        font-size: .82rem;
    }

    .portal-brand-divider,
    .portal-desktop-nav {
        display: none;
    }

    .portal-header-actions {
        order: 2;
        margin-left: auto;
        gap: 6px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .portal-account-dropdown {
        display: flex;
        align-items: center;
    }

    .portal-search-button {
        width: 34px;
        height: 34px;
        min-height: 34px;
        font-size: .95rem;
    }

    .portal-account-button:not(.portal-guest-login) {
        width: auto !important;
        max-width: 160px !important;
        height: 37px !important;
        min-height: 37px !important;
        max-height: 37px !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2px 10px 2px 3px !important;
        border-radius: 999px !important;
        overflow: hidden !important;
        border: 1px solid var(--portal-header-border, #e2e8f0) !important;
        background: var(--portal-header-bg, #ffffff) !important;
        color: var(--portal-header-text, #1e293b) !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
        margin: 0 !important;
        position: relative !important;
        gap: 6px !important;
        text-decoration: none !important;
        cursor: pointer !important;
    }

    .portal-account-button:not(.portal-guest-login) .portal-user-name {
        display: inline-block !important;
        font-size: 0.80rem !important;
        font-weight: 700 !important;
        color: var(--portal-header-text, #1e293b) !important;
        max-width: clamp(65px, 22vw, 100px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    .portal-account-button:not(.portal-guest-login) .portal-account-chevron {
        display: inline-block !important;
        font-size: 0.58rem !important;
        color: var(--portal-header-muted, #64748b) !important;
        margin-right: 1px !important;
    }

    .portal-account-button:not(.portal-guest-login)::after {
        display: none !important;
    }

    .portal-account-button:not(.portal-guest-login) .portal-user-avatar,
    .portal-account-button:not(.portal-guest-login) .portal-account-avatar,
    .portal-account-button:not(.portal-guest-login) .portal-account-fallback {
        display: flex !important;
        width: 31px !important;
        height: 31px !important;
        min-width: 31px !important;
        min-height: 31px !important;
        max-width: 31px !important;
        max-height: 31px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0.78rem !important;
    }

    .portal-account-button:not(.portal-guest-login) .portal-account-fallback {
        background: rgba(13, 110, 253, 0.1) !important;
        color: var(--portal-blue, #0d6efd) !important;
        border-radius: 10px !important;
    }

    .portal-account-button:not(.portal-guest-login) .portal-user-avatar img,
    .portal-account-button:not(.portal-guest-login) img.portal-account-avatar {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 10px !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .portal-account-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        margin-top: 6px !important;
    }

    .portal-guest-login {
        width: auto !important;
        max-width: none !important;
        height: 32px !important;
        min-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 4px 12px !important;
        border-radius: 999px !important;
        color: #ffffff !important;
        background: #0d6efd !important;
        background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
        border: 1px solid #0d6efd !important;
        font-size: .78rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        box-shadow: 0 2px 6px rgba(13, 110, 253, 0.28) !important;
        transition: all 0.2s ease !important;
    }

    .portal-guest-login:hover,
    .portal-guest-login:focus-visible {
        color: #ffffff !important;
        background: #0b5ed7 !important;
        border-color: #0a58ca !important;
        box-shadow: 0 3px 8px rgba(13, 110, 253, 0.38) !important;
    }

    .portal-guest-login span {
        display: inline !important;
        color: #ffffff !important;
        font-size: .78rem !important;
        font-weight: 700 !important;
    }

    .portal-guest-login i {
        display: inline-block !important;
        color: #ffffff !important;
        font-size: .78rem !important;
    }

    .portal-mobile-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        border-top: 1px solid transparent;
        transition: max-height .32s ease, opacity .2s ease, visibility .2s ease, border-color .2s ease;
    }

    .portal-header.mobile-menu-open .portal-mobile-menu {
        max-height: 480px;
        visibility: visible;
        opacity: 1;
        border-top-color: var(--portal-header-border);
    }

    .portal-mobile-categories {
        display: grid;
        grid-template-columns: repeat(7, minmax(78px, 1fr));
        padding: 16px 18px 13px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .portal-mobile-item {
        min-height: 76px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 8px 5px;
        color: var(--portal-header-text);
        border-radius: 10px;
        font-size: .72rem;
        font-weight: 600;
        text-decoration: none;
    }

    .portal-mobile-item .portal-nav-icon {
        font-size: 1.25rem;
    }

    .portal-mobile-item.active {
        color: var(--portal-blue);
        background: color-mix(in srgb, var(--portal-blue) 8%, transparent);
        box-shadow: inset 0 -3px var(--portal-blue);
    }

    .portal-mobile-benefits {
        margin: 0 18px 16px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 14px;
        border-radius: 13px;
        background: var(--portal-header-soft);
    }

    .portal-mobile-benefits > div {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 3px 12px;
        color: var(--portal-header-text);
        border-right: 1px solid var(--portal-header-border);
        font-size: .72rem;
        font-weight: 600;
    }

    .portal-mobile-benefits > div:last-child {
        border-right: 0;
    }

    .portal-mobile-benefits i {
        flex: 0 0 auto;
        color: var(--portal-header-muted);
        font-size: 1.45rem;
    }
}

@media (max-width: 680px) {
    .portal-header-row {
        gap: 6px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .portal-brand-logo {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    .portal-brand-name {
        font-size: .78rem;
    }

    .portal-announce-button {
        padding-right: 10px;
        padding-left: 10px;
        font-size: .75rem;
    }

    .portal-mobile-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        padding: 8px;
    }

    .portal-mobile-benefits > div {
        justify-content: flex-start;
        padding: 9px;
        border-right: 0;
        border-bottom: 1px solid var(--portal-header-border);
    }

    .portal-mobile-benefits > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 760px) {
    .portal-header-row {
        gap: 5px;
    }

    .portal-header-actions {
        min-width: 0;
        gap: 5px;
    }

    .portal-location-active {
        width: 32px;
        min-height: 32px;
    }

    .portal-search-button {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 430px) {
    .portal-mobile-toggle {
        width: 32px;
        font-size: 1.15rem;
    }

    .portal-brand-name {
        max-width: 90px;
        font-size: .72rem;
    }

    .portal-search-button {
        width: 32px;
        height: 32px;
    }

    .portal-header-actions {
        gap: 4px;
    }

    .portal-account-button:not(.portal-guest-login) {
        height: 37px !important;
        min-height: 37px !important;
        max-height: 37px !important;
        padding: 2px 8px 2px 3px !important;
        gap: 5px !important;
    }

    .portal-account-button:not(.portal-guest-login) .portal-user-avatar,
    .portal-account-button:not(.portal-guest-login) .portal-account-avatar,
    .portal-account-button:not(.portal-guest-login) .portal-account-fallback {
        width: 31px !important;
        height: 31px !important;
        min-width: 31px !important;
        min-height: 31px !important;
        max-width: 31px !important;
        max-height: 31px !important;
        font-size: 0.78rem !important;
    }

    .portal-account-button:not(.portal-guest-login) .portal-user-name {
        font-size: 0.78rem !important;
        max-width: 75px !important;
    }

    .portal-guest-login {
        height: 30px !important;
        min-height: 30px !important;
        padding: 3px 10px !important;
        font-size: .74rem !important;
    }

    .portal-guest-login span {
        font-size: .74rem !important;
    }

    .portal-announce-button {
        min-height: 32px;
        padding: 4px 8px;
    }

    .portal-mobile-categories {
        grid-template-columns: repeat(4, minmax(70px, 1fr));
        overflow: visible;
        padding: 12px 10px;
    }

    .portal-mobile-item {
        min-height: 64px;
    }

    .portal-mobile-actions {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* ─── Suporte ao Modo Escuro (Dark Mode) para o Header ───────────────────── */
html[data-theme="dark"] .portal-header,
[data-bs-theme="dark"] .portal-header {
    background: var(--header-bg, #0c1014) !important;
    border-bottom-color: var(--border, #202a36) !important;
}

html[data-theme="dark"] .portal-account-button,
[data-bs-theme="dark"] .portal-account-button {
    background: #12171e !important;
    border-color: #202a36 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .portal-account-button .portal-user-name,
[data-bs-theme="dark"] .portal-account-button .portal-user-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .portal-account-button .portal-account-chevron,
[data-bs-theme="dark"] .portal-account-button .portal-account-chevron {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .portal-account-button .portal-account-fallback,
[data-bs-theme="dark"] .portal-account-button .portal-account-fallback {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .portal-account-button:hover,
[data-bs-theme="dark"] .portal-account-button:hover {
    background: #171f28 !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .portal-mobile-menu,
[data-bs-theme="dark"] .portal-mobile-menu {
    background: #0b1120 !important;
    border-top-color: #283548 !important;
}

html[data-theme="dark"] .portal-mobile-user-card,
[data-bs-theme="dark"] .portal-mobile-user-card {
    background: #111827 !important;
    border-color: #283548 !important;
}

html[data-theme="dark"] .portal-mobile-btn-panel,
[data-bs-theme="dark"] .portal-mobile-btn-panel {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .portal-mobile-btn-panel:hover,
[data-bs-theme="dark"] .portal-mobile-btn-panel:hover {
    background: #334155 !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .portal-mobile-benefits,
[data-bs-theme="dark"] .portal-mobile-benefits {
    background: #111827 !important;
}

html[data-theme="dark"] .portal-mobile-benefits > div,
[data-bs-theme="dark"] .portal-mobile-benefits > div {
    color: #94a3b8 !important;
    border-color: #283548 !important;
}

html[data-theme="dark"] .portal-nav-icon,
html[data-theme="dark"] .portal-mobile-item .portal-nav-icon,
html[data-theme="dark"] .header-category-menu a i {
    color: #adaeb0 !important;
}

html[data-theme="dark"] .portal-nav-item,
html[data-theme="dark"] .portal-mobile-item {
    color: #94a3b8;
}

html[data-theme="dark"] .portal-nav-item:hover:not(.active) {
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .portal-nav-item:hover:not(.active) .portal-nav-icon {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .portal-nav-item.active,
html[data-theme="dark"] .portal-mobile-item.active {
    color: #60a5fa !important;
    background: rgba(13, 110, 253, 0.22) !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .portal-nav-item.active .portal-nav-icon,
html[data-theme="dark"] .portal-nav-item.active .portal-nav-icon i,
html[data-theme="dark"] .portal-nav-item.active .portal-nav-label,
html[data-theme="dark"] .portal-mobile-item.active .portal-nav-icon {
    color: #60a5fa !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .portal-nav-item.active::after {
    display: none;
}

/* ─── Painel Flutuante de Notificações (Estilo Facebook / App) ───────────── */
.portal-notifications-dropdown {
    position: relative;
}

.portal-header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--portal-header-soft, #f1f5f9);
    border: 1px solid var(--portal-header-border, #e2e8f0);
    color: var(--portal-header-text, #1e293b);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
    padding: 0;
    line-height: 1;
}

.portal-header-icon-btn:hover,
.portal-header-icon-btn:focus {
    background: #e2e8f0;
    color: var(--portal-blue, #0d6efd);
}

html[data-theme="dark"] .portal-header-icon-btn,
[data-bs-theme="dark"] .portal-header-icon-btn {
    background: #1e2530;
    border-color: #2b3544;
    color: #e2e8f0;
}

html[data-theme="dark"] .portal-header-icon-btn:hover,
html[data-theme="dark"] .portal-header-icon-btn:focus,
[data-bs-theme="dark"] .portal-header-icon-btn:hover,
[data-bs-theme="dark"] .portal-header-icon-btn:focus {
    background: #283344;
    color: #60a5fa;
}

.portal-header-icon-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--portal-header-bg, #fff);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

html[data-theme="dark"] .portal-header-icon-badge,
[data-bs-theme="dark"] .portal-header-icon-badge {
    border-color: #0b1120;
}

/* Painel de Notificações */
.portal-notifications-dropdown-menu {
    width: 380px !important;
    max-width: calc(100vw - 20px) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
    z-index: 1070 !important;
}

html[data-theme="dark"] .portal-notifications-dropdown-menu,
[data-bs-theme="dark"] .portal-notifications-dropdown-menu {
    background: #242526 !important;
    border: 1px solid #3a3b3c !important;
    color: #e4e6eb !important;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.4), 0 2px 4px 0 rgba(0, 0, 0, 0.2) !important;
}

.portal-notifications-panel {
    display: flex;
    flex-direction: column;
    max-height: 540px;
}

.portal-notif-header {
    padding: 14px 16px 10px;
}

.portal-notif-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: inherit;
}

.portal-notif-more-btn {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #64748b;
    transition: background 0.15s ease;
}

.portal-notif-more-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

html[data-theme="dark"] .portal-notif-more-btn {
    color: #b0b3b8;
}

html[data-theme="dark"] .portal-notif-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e6eb;
}

.portal-notif-subdropdown {
    border-radius: 12px !important;
    min-width: 220px !important;
    padding: 6px !important;
}

html[data-theme="dark"] .portal-notif-subdropdown {
    background: #242526 !important;
    border-color: #3a3b3c !important;
}

html[data-theme="dark"] .portal-notif-subdropdown .dropdown-item {
    color: #e4e6eb !important;
}

html[data-theme="dark"] .portal-notif-subdropdown .dropdown-item:hover {
    background: #3a3b3c !important;
}

/* Filtros em Pílulas */
.portal-notif-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-notif-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.portal-notif-filter-pill:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.portal-notif-filter-pill.active {
    background: #e7f3ff;
    color: #1877f2;
}

html[data-theme="dark"] .portal-notif-filter-pill {
    color: #b0b3b8;
}

html[data-theme="dark"] .portal-notif-filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e4e6eb;
}

html[data-theme="dark"] .portal-notif-filter-pill.active {
    background: #253b5c;
    color: #4599ff;
}

.portal-notif-filter-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 6px;
    line-height: 1.2;
}

/* Subcabeçalho */
.portal-notif-subheader {
    font-size: 0.95rem;
}

.portal-notif-see-all {
    font-size: 0.86rem;
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
}

.portal-notif-see-all:hover {
    text-decoration: underline;
}

html[data-theme="dark"] .portal-notif-see-all {
    color: #4599ff;
}

/* Lista de Notificações */
.portal-notif-body {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 380px;
    padding: 4px 6px;
}

.portal-notif-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s ease;
    position: relative;
    margin-bottom: 2px;
}

.portal-notif-row:hover {
    background: #f2f3f5;
}

html[data-theme="dark"] .portal-notif-row:hover {
    background: #303031;
}

/* Avatar e Sub-ícone */
.portal-notif-avatar-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.portal-notif-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
}

.portal-notif-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-notif-subicon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #ffffff;
    border: 2px solid #ffffff;
}

html[data-theme="dark"] .portal-notif-subicon {
    border-color: #242526;
}

.portal-notif-subicon.icon-chat {
    background: #1877f2;
}

.portal-notif-subicon.icon-review {
    background: #f59e0b;
}

.portal-notif-subicon.icon-order {
    background: #10b981;
}

.portal-notif-subicon.icon-community {
    background: #8b5cf6;
}

.portal-notif-subicon.icon-booking {
    background: #0d9488;
}

.portal-notif-subicon.icon-alert {
    background: #ef4444;
}

.portal-notif-subicon.icon-star {
    background: #0284c7;
}

/* Conteúdo */
.portal-notif-content {
    flex: 1 1 auto;
    min-width: 0;
}

.portal-notif-text {
    font-size: 0.88rem;
    line-height: 1.35;
    color: #1c1e21;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="dark"] .portal-notif-text {
    color: #e4e6eb;
}

.portal-notif-text strong {
    font-weight: 700;
}

.portal-notif-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: #65676b;
    margin-top: 3px;
}

.portal-notif-row.is-unread .portal-notif-time {
    color: #1877f2;
}

html[data-theme="dark"] .portal-notif-time {
    color: #b0b3b8;
}

html[data-theme="dark"] .portal-notif-row.is-unread .portal-notif-time {
    color: #4599ff;
}

/* Ponto Azul */
.portal-notif-blue-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1877f2;
    flex-shrink: 0;
    margin-left: auto;
}

html[data-theme="dark"] .portal-notif-blue-dot {
    background: #4599ff;
}

/* Rodapé */
.portal-notif-footer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

html[data-theme="dark"] .portal-notif-footer {
    border-top: 1px solid #3a3b3c;
    background: #1f2021;
}

.portal-notif-footer-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #e4e6eb;
    color: #050505;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.portal-notif-footer-btn:hover {
    background: #d8dadf;
    color: #050505;
}

html[data-theme="dark"] .portal-notif-footer-btn {
    background: #3a3b3c;
    color: #e4e6eb;
}

html[data-theme="dark"] .portal-notif-footer-btn:hover {
    background: #4e4f50;
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .portal-notifications-dropdown-menu {
        position: fixed !important;
        top: 56px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
    }
}
