/**
 * Empreende Maricá - Design System UI/UX Pro Max
 * Arquitetura Mobile-First, Bento Grid, Pipeline Kanban e Acessibilidade WCAG AA
 */

:root {
    --primary: #1e3a8a;
    --primary-dark: #0f172a;
    --primary-light: #3b82f6;
    --secondary: #d97706;
    --secondary-hover: #b45309;
    --secondary-light: #fef3c7;
    --accent-mumbuca: #e11d48;
    --accent-mumbuca-bg: #ffe4e6;
    
    --bg-page: #f8fafc;
    --surface: #ffffff;
    --surface-subtle: #f1f5f9;
    --border: #e2e8f0;
    --border-focus: #3b82f6;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --info: #0284c7;
    --info-bg: #e0f2fe;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.08);

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

section[id], div[id^="secao-"], #public-main-container, #public-vitrine-view {
    scroll-margin-top: 88px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------
 * HEADER EM 2 LINHAS INSPIRADO NA ARQUITETURA DE NAVEGAÇÃO DA AWS
 * Linha 1: Utility Bar Superior (Vermelho Nobre #6d1212)
 * Linha 2: Main Navigation Bar (Fundo Branco #ffffff) com Logo Ampliado
 * ------------------------------------------------------------- */
.aws-style-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.header-container-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- LINHA 1: BARRA UTILITÁRIA SUPERIOR (#6d1212) --- */
.header-top-utility-bar {
    background: #6d1212;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0;
    font-size: 0.82rem;
    color: #f1f5f9;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-util-item {
    font-weight: 600;
    color: #fef2f2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.top-util-divider {
    color: rgba(255, 255, 255, 0.3);
}

.top-util-link {
    color: #fecaca;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.top-util-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.top-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
}

.top-util-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    padding: 0.32rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.top-util-login-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

.top-auth-slot {
    display: flex;
    align-items: center;
}

/* Indicador Discreto de Versão no Topo (ao lado do Menu Suspenso) */
.top-util-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(254, 202, 202, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.12rem 0.5rem;
    border-radius: var(--radius-pill);
    user-select: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: default;
}

.top-util-version:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.dropdown-version-footer {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: #94a3b8;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.top-auth-slot .btn-mobilo-cta {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.top-auth-slot .btn-mobilo-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
}

/* --- LINHA 2: BARRA PRINCIPAL DE NAVEGAÇÃO & LOGO AMPLIADO (#ffffff) --- */
.header-main-nav-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.main-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.main-header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}

.main-header-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    display: block;
}

.main-header-brand:hover .main-header-logo-img {
    transform: scale(1.06);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.main-brand-title {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: #0f172a;
    line-height: 1.15;
}

.main-brand-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.main-desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.85rem;
}

.main-nav-link {
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav-link:hover {
    color: #6d1212;
    transform: translateY(-1px);
}

.main-nav-link::after {
    content: '' ;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: #6d1212;
    transition: width 0.25s ease;
    border-radius: 2px;
}

.main-nav-link:hover::after,
.main-nav-link.active::after {
    width: 100%;
}

.main-nav-link-highlight {
    color: #0284c7;
    font-weight: 700;
}

.main-nav-link-highlight:hover {
    color: #0369a1;
}

.main-nav-link-highlight::after {
    background: #0284c7;
}

/* Botão Hambúrguer Mobile */
.mobilo-burger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.mobilo-burger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.mobilo-burger-btn:hover span {
    background: #fecaca;
}
.mobilo-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
}

.mobilo-drawer.active {
    display: block;
}

.mobilo-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobilo-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mobilo-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    gap: 0.75rem;
}

.mobilo-drawer-header .mobilo-brand,
.mobilo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    min-width: 0;
    flex: 1;
}

.mobilo-drawer-header .mobilo-logo-img,
.mobilo-logo-img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mobilo-drawer-header .mobilo-brand-name,
.mobilo-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.mobilo-drawer-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.mobilo-drawer-close:hover {
    color: #ffffff;
}

.mobilo-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobilo-drawer-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobilo-drawer-link:hover {
    color: #f59e0b;
}

.mobilo-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.mobilo-drawer-actions .btn {
    width: 100%;
    justify-content: center;
}
@media (max-width: 1140px) {
    .main-nav-flex {
        gap: 1rem;
    }
    .main-header-logo-img {
        width: 44px;
        height: 44px;
    }
    .main-brand-title {
        font-size: 1.1rem;
    }
    .main-brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
    }
    .main-desktop-nav {
        gap: 0.95rem;
    }
    .main-nav-link {
        font-size: 0.86rem;
    }
}

@media (max-width: 992px) {
    .main-desktop-nav {
        display: none;
    }
    .mobilo-burger-btn {
        display: flex;
    }
}

/* Reorganização do Header em 2 Linhas no Mobile (Smartphones e Tablets) */
@media (max-width: 768px) {
    .header-container-inner {
        padding: 0 0.85rem;
    }

    /* Linha 1: Vermelho Nobre (#6d1212) -> Utilitários à esquerda + Sanduíche à direita */
    .header-top-utility-bar {
        padding: 0.4rem 0;
    }

    .top-bar-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header-top-left {
        gap: 0.5rem;
    }

    .top-util-item.location-tag {
        font-size: 0.72rem;
    }

    .top-util-link {
        font-size: 0.72rem;
    }

    .top-badge {
        display: none !important;
    }

    .header-top-right {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    /* Linha 2: Fundo Branco (#ffffff) -> Logo Ampliado e Linha de Botões Abaixo */
    .header-main-nav-bar {
        padding: 0.5rem 0 0.6rem 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
    }

    .main-nav-flex {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .main-header-brand {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    .main-header-logo-img {
        width: 44px;
        height: 44px;
    }

    .main-brand-title {
        font-size: 1.15rem;
    }

    .main-brand-subtitle {
        font-size: 0.68rem;
    }

    /* Linha de Botões Dedicados no Mobile (Login e Solicitar Convite lado a lado) */
    .mobile-header-actions-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: stretch;
        gap: 0.5rem;
        width: 100%;
        padding-top: 0.35rem;
        border-top: 1px solid #f1f5f9;
    }

    .mobile-header-actions-row .top-util-login-btn {
        display: inline-flex;
        flex: 1 1 45%;
        justify-content: center;
        text-align: center;
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        color: #1e293b;
        padding: 0.42rem 0.5rem;
        font-size: 0.78rem;
        font-weight: 700;
        border-radius: var(--radius-pill);
    }

    .mobile-header-actions-row .top-auth-slot {
        flex: 1 1 55%;
        display: flex;
        width: 100%;
    }

    .mobile-header-actions-row .top-auth-slot .btn-mobilo-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.45rem 0.6rem;
        font-size: 0.78rem;
    }

    /* Oculta os botões de visitante na linha 1 quando no mobile */
    .header-top-right .top-util-login-btn {
        display: none !important;
    }

    .header-top-right .top-auth-slot {
        display: none;
    }

    /* Usuário Logado: exibe avatar compacto ao lado do hambúrguer e oculta botões de visitante */
    body.user-logged-in .header-top-right .top-auth-slot {
        display: inline-flex !important;
        align-items: center;
    }

    .mobile-header-actions-row .mobile-version-badge {
        font-size: 0.7rem;
        color: #64748b;
        background: #f1f5f9;
        border-color: #e2e8f0;
        padding: 0.25rem 0.5rem;
    }

    body.user-logged-in .mobile-header-actions-row {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-header-actions-row {
        display: none !important;
    }
}
.network-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.network-badge.online {
    color: #a7f3d0;
}

.network-badge.online .indicator-dot {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.network-badge.offline {
    color: #fecaca;
    background-color: rgba(239, 68, 68, 0.3);
}

.network-badge.offline .indicator-dot {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.btn-portal-toggle {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-portal-toggle:hover {
    background-color: #ffffff;
    color: var(--primary-dark);
}

/* -------------------------------------------------------------
   MENU SUSPENSO DO USUÁRIO LOGADO (HEADER DROPDOWN)
   ------------------------------------------------------------- */
.user-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    padding: 1px 7px 1px 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    box-sizing: border-box;
    flex-shrink: 0;
}

.user-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.45);
}

.user-avatar-circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.76rem;
    overflow: hidden;
    line-height: 1;
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-chevron {
    font-size: 0.55rem;
    color: #fecaca;
    transition: transform 0.2s ease;
    line-height: 1;
}

.user-dropdown-trigger[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 250px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 2600;
    display: none;
    animation: fadeInMenu 0.15s ease-out;
}

.user-dropdown-menu.active {
    display: block;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-user-header {
    padding: 0.75rem 1.15rem;
    text-align: left;
}

.dropdown-user-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.dropdown-user-role {
    display: block;
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 600;
    margin-top: 0.2rem;
}

.dropdown-user-email {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.35rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.15rem;
    font-size: 0.88rem;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* -------------------------------------------------------------
 * HERO SECTION & BUSCA
 * ------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 70%, var(--bg-page) 100%);
    color: var(--text-inverse);
    padding: 2rem 1.25rem 3.5rem;
    text-align: center;
}

.hero-content {
    max-width: 840px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.search-container {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.2rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    font-size: 0.98rem;
    background-color: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-xl);
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--secondary);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Filtros da Vitrine */
.vitrine-filter-bar {
    max-width: 800px;
    margin: 1rem auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.filter-select {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
}

.filter-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-mumbuca);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------
 * CONTAINER PRINCIPAL & CARDS DA VITRINE
 * ------------------------------------------------------------- */
.main-container {
    max-width: 1280px;
    margin: -1.5rem auto 0;
    padding: 0 1.25rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Categorias Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.category-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--surface-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.category-title {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Empreendimentos Grid */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.business-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.business-card.featured {
    border-top: 4px solid var(--secondary);
}

.business-card-top h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.35rem 0;
}

.category-name-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.business-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-badges-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.district-badge {
    background-color: var(--info-bg);
    color: var(--info);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mumbuca-pill {
    background-color: var(--accent-mumbuca-bg);
    color: var(--accent-mumbuca);
    border: 1px solid #fecdd3;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-products-count {
    background-color: var(--surface-subtle);
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.business-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.business-hours {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
 * FORMATO DE ANÚNCIO SIMPLES (CARDS EMPRESARIAIS & DESTAQUES)
 * Perfil Institucional, Redes Sociais Públicas & Contatos Restritos
 * ------------------------------------------------------------- */
.ad-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    gap: 0.85rem;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.ad-card.featured {
    border: 1.5px solid #fde68a;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
}

.ad-card.featured:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.12);
}

/* Ícone de Destaque no Canto Superior Direito */
.ad-featured-icon {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.2);
    z-index: 2;
    cursor: default;
}

.badge-featured-subtle {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ad-ribbon-featured {
    display: none;
}

.ad-header-badges,
.ad-bottom-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.category-name-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.district-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mumbuca-pill-subtle {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #ffe4e6;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ad-title-box {
    margin-top: 0;
    padding-right: 2rem;
}

.ad-biz-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.ad-biz-corp {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ad-profile-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0.45rem 0 0.65rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: transparent;
    border: none;
    padding: 0;
}

.ad-social-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.ad-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ad-social-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.ad-social-pill.instagram {
    color: #be185d;
    background: #fdf2f8;
    border-color: #fbcfe8;
}

.ad-social-pill.instagram:hover {
    background: #fce7f3;
    border-color: #f472b6;
}

.ad-social-pill.website {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.ad-social-pill.website:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
}

.ad-social-pill.linkedin {
    color: #0369a1;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ad-social-pill.linkedin:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}

.ad-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}

.ad-privacy-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.ad-privacy-hint.unlocked {
    color: #059669;
}

.ad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ad-footer-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* -------------------------------------------------------------
 * PORTAL DA COMUNIDADE EXECUTIVA (LAYOUT & SIDEBAR)
 * ------------------------------------------------------------- */
#portal-view-container {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.portal-container {
    width: 100%;
    max-width: 1380px;
    margin: 1.5rem auto 4rem auto;
    padding: 0 1.25rem 2.5rem 1.25rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
}

.portal-sidebar {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    margin-bottom: 2.5rem;
}

.portal-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.portal-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.portal-nav-item:hover {
    background-color: var(--surface-subtle);
    color: var(--primary);
}

.portal-nav-item.active {
    background-color: var(--primary);
    color: #ffffff;
}

.portal-content {
    min-width: 0;
    max-width: 100%;
    min-height: 600px;
    padding-bottom: 2.5rem;
}

/* =============================================================
 * PORTAL EXECUTIVO — ESTILIZAÇÃO COMPLETA DOS MÓDULOS INTERNOS
 * Diretório, Fóruns, Conexões, Reuniões 1:1, Agenda, Mural, Meu Negócio
 * ============================================================= */

/* 1. Barras de Título e Filtros Globais do Portal */
.section-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.section-top-bar h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.25;
}

.section-top-bar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.filter-controls-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* 2. Diretório de Membros Executivos (/portal/membros) */
.members-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.member-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: var(--primary-light);
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.member-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}

.member-info-top h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.15rem 0;
    line-height: 1.2;
}

.member-company-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.member-headline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background: var(--surface-subtle);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border);
    margin: 0;
}

.member-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge-district {
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-sector {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.member-offer-block {
    font-size: 0.82rem;
    color: #78350f;
    line-height: 1.45;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
}

.member-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: auto;
}

/* 3. Fóruns de Confiança & Núcleos (/portal/foruns) */
.forums-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.forum-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.forum-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: var(--primary-light);
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.forum-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.35rem 0 0 0;
}

.forum-actions-row {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.forum-members-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.forum-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.forum-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.session-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.15rem;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    gap: 1rem;
}

.forum-actions-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* 4. Conexões & Relacionamentos (/portal/conexoes) */
.pending-requests-card {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.pending-requests-card h4 {
    margin: 0 0 0.85rem 0;
    color: #92400e;
    font-size: 1rem;
}

.pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid #fef3c7;
    gap: 1rem;
}

.request-message {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.pending-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.active-connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.connection-item-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.connection-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.connection-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* 5. Reuniões Executivas 1:1 (/portal/reunioes) */
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meeting-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease;
}

.meeting-card.completed {
    border-left: 4px solid var(--success);
}

.meeting-card.scheduled {
    border-left: 4px solid var(--info);
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.65rem;
    gap: 1rem;
}

.meeting-header h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.meeting-body {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.meeting-notes {
    background: var(--surface-subtle);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    border-left: 3px solid var(--primary);
    font-size: 0.84rem;
    color: var(--text-primary);
}

.meeting-footer {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

/* 6. Agenda & Eventos (/portal/eventos) */
.events-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    background: #e0e7ff;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    width: fit-content;
    white-space: nowrap;
}

.event-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.25rem 0;
    color: var(--text-primary);
}

.event-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.event-meta-box {
    background: var(--surface-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font-size: 0.85rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.event-card-actions {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}

/* 7. Mural da Comunidade & Feed (/portal/feed) */
.new-post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.new-post-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.feed-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feed-post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.65rem;
}

.feed-post-body {
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0.25rem 0;
}

.post-comments-section {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-item {
    background: var(--surface-subtle);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    line-height: 1.4;
}

.add-comment-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* 8. Meu Negócio & Vitrine (/portal/meu-negocio) */
.my-business-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
}

.my-business-products-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-top: 1.75rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.products-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.products-section-title-box h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.product-item-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.product-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.product-card-top-tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.product-type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.product-status-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.product-card-body h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.product-item-desc {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
}

.product-price-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.product-origin-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.products-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    background: var(--surface-subtle);
}

.products-empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.products-empty-state h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--success);
    margin-top: 0.5rem;
    border-top: 1px dashed var(--border);
    padding-top: 0.4rem;
    white-space: nowrap;
}

/* 9. Pílulas de Status Semafóricas & Empty States */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: var(--surface-subtle);
    color: var(--text-secondary);
    white-space: nowrap;
}

.status-pill.active,
.status-pill.completed {
    background-color: var(--success-bg);
    color: var(--success);
}

.status-pill.pending,
.status-pill.scheduled {
    background-color: var(--info-bg);
    color: var(--info);
}

.status-pill.warning {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.status-pill.cancelled {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background-color: #cbd5e1;
}

.status-indicator.pending {
    background-color: var(--warning);
}

.status-indicator.completed {
    background-color: var(--success);
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

.empty-state h4 {
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

/* -------------------------------------------------------------
 * BENTO GRIDS (DASHBOARD & KPIS NORTH STAR)
 * ------------------------------------------------------------- */
.dashboard-header-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}

.dash-welcome {
    flex: 1 1 320px;
}

.dash-welcome h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.45rem 0;
    line-height: 1.25;
}

.dash-welcome p.text-muted {
    color: #94a3b8 !important;
    font-size: 0.92rem;
    margin: 0 0 0.85rem 0;
    line-height: 1.4;
}

.dash-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-header-card .btn-outline,
.dashboard-header-card .btn-outline-white,
.dash-quick-actions .btn-outline,
.dash-quick-actions .btn-outline-white {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.dashboard-header-card .btn-outline:hover,
.dashboard-header-card .btn-outline-white:hover,
.dash-quick-actions .btn-outline:hover,
.dash-quick-actions .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.badge-role-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.role-badge {
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.role-badge.active {
    background-color: var(--success-bg);
    color: var(--success);
}

.role-badge.warning {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.onboarding-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.onboarding-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
}

.onboarding-header p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.onboarding-percent-badge {
    background-color: var(--info-bg);
    color: var(--info);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--success) 100%);
    transition: width 0.4s ease;
}

.onboarding-steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.onboarding-step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background-color: var(--surface-subtle);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.onboarding-step-item .step-check {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
}

.onboarding-step-item.done {
    color: var(--success);
    background-color: var(--success-bg);
}

/* Bento Grid Atalhos */
.bento-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.bento-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.bento-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.bento-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}

.bento-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Bento Grid Admin KPIs */
.bento-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.bento-kpi-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.bento-kpi-grid.bento-kpi-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.bento-kpi-grid.bento-kpi-grid-5 .bento-kpi-item {
    padding: 1.1rem 1rem;
    min-width: 0;
}

.bento-kpi-grid.bento-kpi-grid-5 .kpi-label {
    display: block;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bento-kpi-grid.bento-kpi-grid-5 .kpi-big-number {
    font-size: clamp(1.6rem, 2.2vw, 2.05rem);
    margin: 0.3rem 0;
}

.bento-kpi-grid.bento-kpi-grid-5 .kpi-subtext {
    font-size: 0.76rem;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .bento-kpi-grid.bento-kpi-grid-5 {
        grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    }
}

.bento-kpi-item.north-star-box {
    border-left: 6px solid var(--secondary);
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.kpi-big-number {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0.4rem 0;
    color: var(--primary-dark);
}

.kpi-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
 * KANBAN PIPELINE DE INDICAÇÕES B2B
 * ------------------------------------------------------------- */
.kanban-pipeline-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    -webkit-overflow-scrolling: touch;
}

.kanban-pipeline-container::-webkit-scrollbar {
    height: 8px;
}

.kanban-pipeline-container::-webkit-scrollbar-track {
    background: var(--surface-subtle);
    border-radius: var(--radius-pill);
}

.kanban-pipeline-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-pill);
}

.kanban-pipeline-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.kanban-column {
    flex: 0 0 260px;
    background-color: var(--surface-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
}

.kanban-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-top: 3px solid transparent;
    padding-top: 0.35rem;
    margin-bottom: 0.75rem;
}

.kanban-count {
    background-color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
}

.kanban-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 120px;
}

.kanban-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kanban-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.4rem 0;
}

.kanban-value-pill {
    background-color: var(--success-bg);
    color: var(--success);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    padding-top: 0.4rem;
}

/* -------------------------------------------------------------
 * MATCHING CARDS & SLIDERS MATRIZ 0-100
 * ------------------------------------------------------------- */
.matching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.matching-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.matching-score-badge {
    background: linear-gradient(135deg, var(--secondary) 0%, #b45309 100%);
    color: #ffffff;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
}

.matching-reasons-box {
    background-color: var(--surface-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.82rem;
    margin: 1rem 0;
}

.matching-reasons-box ul {
    margin-left: 1.25rem;
    margin-top: 0.3rem;
}

/* Sliders da Matriz de Avaliação */
.slider-row {
    margin-bottom: 1rem;
}

.slider-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.slider-row input[type="range"] {
    width: 100%;
}

.score-badge-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.score-badge-table.high {
    background-color: #dcfce7;
    color: #15803d;
}
.score-badge-table.medium {
    background-color: #fef9c3;
    color: #854d0e;
}
.score-badge-table.low {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Tabela de Candidaturas do Comitê de Admissão - Otimização de Espaço e Quebras */
.applications-table-card {
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.85rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.applications-table {
    table-layout: auto;
    width: 100%;
    min-width: 0;
}
.applications-table th,
.applications-table td {
    padding: 0.7rem 0.55rem;
    vertical-align: middle;
}
.applications-table .col-candidate,
.applications-table .col-company,
.applications-table .col-district {
    min-width: 110px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.applications-table .col-district .contact-phone {
    white-space: nowrap;
    display: inline-block;
}
.applications-table .col-score {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}
.applications-table .col-status {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}
.applications-table .col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    padding-left: 0.55rem;
}
.applications-table .col-actions .btn-action-icon:last-child[data-tooltip]::after,
.applications-table .col-actions .btn-action-icon:nth-last-child(2)[data-tooltip]::after {
    right: 0;
    transform: translateX(0) translateY(4px);
}
.applications-table .col-actions .btn-action-icon:last-child[data-tooltip]:hover::after,
.applications-table .col-actions .btn-action-icon:last-child[data-tooltip]:focus-visible::after,
.applications-table .col-actions .btn-action-icon:nth-last-child(2)[data-tooltip]:hover::after,
.applications-table .col-actions .btn-action-icon:nth-last-child(2)[data-tooltip]:focus-visible::after {
    transform: translateX(0) translateY(0);
}
.applications-table tbody tr:first-child .btn-action-icon[data-tooltip]::after {
    bottom: auto;
    top: 115%;
}

@media (min-width: 769px) and (max-width: 1140px) {
    .portal-container {
        grid-template-columns: 210px 1fr;
        gap: 1rem;
        padding: 0 0.85rem 2.5rem 0.85rem;
    }
    .applications-table th,
    .applications-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.83rem;
    }
    .applications-table .col-candidate,
    .applications-table .col-company,
    .applications-table .col-district {
        min-width: 0;
    }
    .applications-table .btn-action-icon {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
}

/* Botões de Ação Somente Ícone com Tooltip */
.btn-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    position: relative;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1;
    user-select: none;
}

.btn-action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-action-icon:active {
    transform: translateY(0);
}

.btn-action-icon.btn-action-primary {
    background-color: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}
.btn-action-icon.btn-action-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-action-icon.btn-action-outline {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
.btn-action-icon.btn-action-outline:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-action-icon.btn-action-secondary {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.btn-action-icon.btn-action-secondary:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

/* Tooltip Flutuante CSS */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    right: 50%;
    transform: translateX(50%) translateY(4px);
    background-color: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.total-score-box {
    background-color: var(--info-bg);
    color: var(--info);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 1rem 0;
}

/* -------------------------------------------------------------
 * ATALHOS RÁPIDOS DE PERSONAS (MODAL DE LOGIN)
 * ------------------------------------------------------------- */
.demo-personas-box {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

/* Blindagem de Segurança para Ambiente de Produção */
.env-production .demo-personas-box,
.env-production .login-personas-box,
body.env-production .demo-personas-box,
body.env-production .login-personas-box {
    display: none !important;
}

.demo-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.05em;
}

.persona-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.btn-persona {
    background-color: #ffffff;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.btn-persona:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary);
}

.btn-persona strong {
    font-size: 0.82rem;
    color: var(--primary-dark);
}

.btn-persona span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
 * FORMULÁRIOS, BOTÕES & TABELAS
 * ------------------------------------------------------------- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--border-focus);
}

textarea.form-control {
    resize: vertical;
}

.textarea-institutional {
    min-height: 200px;
    line-height: 1.6;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    min-height: 36px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--surface-subtle);
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background-color: var(--success);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.btn-whatsapp-direct {
    background-color: #25d366;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.styled-table th, .styled-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.styled-table th {
    background-color: var(--surface-subtle);
    font-weight: 700;
}

/* -------------------------------------------------------------
 * MODAIS & TOASTS
 * ------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-box.modal-lg {
    max-width: 780px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 1.5rem;
}

.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast-notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.success {
    border-left: 4px solid var(--success);
}

.toast-notification.warning {
    border-left: 4px solid var(--warning);
}

/* -------------------------------------------------------------
 * SEÇÃO DEDICADA DE CATEGORIAS (SEM ROLAGEM / WRAP FLEXÍVEL)
 * ------------------------------------------------------------- */
.categories-pills-container {
    margin: 1.5rem 0 2rem 0;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.categories-pills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.categories-pills-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.categories-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
    overflow: visible;
}

.category-filter-card,
.category-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background-color: var(--surface);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.category-filter-card:hover,
.category-pill-btn:hover {
    background-color: var(--surface-subtle);
    border-color: #cbd5e1;
    color: var(--text-primary);
    transform: translateY(-1px);
}

.category-filter-card.active,
.category-pill-btn.active {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #2563eb;
    font-weight: 600;
}

.category-filter-card.filter-card-all.active,
.category-pill-btn.pill-btn-all.active {
    background-color: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

.category-filter-card .filter-card-icon,
.category-pill-btn .pill-icon {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-filter-card .filter-card-label {
    line-height: 1.2;
}

.category-filter-card .filter-card-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 0.25rem;
    line-height: 1;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.15s ease;
}

.category-filter-card.active:not(.filter-card-all) .filter-card-check {
    opacity: 1;
    transform: scale(1);
}

.category-pill-btn .pill-count {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
}

.category-pill-btn.active .pill-count {
    background: rgba(37, 99, 235, 0.2);
    color: #1e40af;
}

/* -------------------------------------------------------------
 * LANDING PAGE INSTITUCIONAL & SEÇÕES
 * ------------------------------------------------------------- */
.landing-nav-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.landing-nav-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.landing-hero {
    background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 40%),
                linear-gradient(135deg, var(--primary-dark) 0%, #172554 60%, var(--primary) 100%);
    color: #ffffff;
    padding: 4.5rem 1.5rem 3.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fef3c7;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.landing-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.landing-hero-title span {
    background: linear-gradient(90deg, #fef3c7, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 auto 2.25rem auto;
}

.landing-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.landing-hero-microcopy {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* -------------------------------------------------------------
 * SEÇÃO: EMPRESAS & NEGÓCIOS EM DESTAQUE NA LANDING PAGE
 * ------------------------------------------------------------- */
.featured-showcase-section {
    padding: 4rem 1.5rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
}

.section-header-centered {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem auto;
}

.section-tag {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-heading-lg {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtext {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-biz-card {
    background: var(--surface);
    border: 2px solid #fef3c7;
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-biz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(217, 119, 6, 0.16);
}

.featured-admin-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.featured-biz-header {
    margin-bottom: 1rem;
}

.featured-biz-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.featured-biz-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.featured-biz-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.featured-biz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* -------------------------------------------------------------
 * CARDS DO PROPÓSITO, PARA QUEM É E PILARES
 * ------------------------------------------------------------- */
.landing-content-section {
    padding: 4.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.three-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .three-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pillar-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pillar-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background-color: var(--surface-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem auto;
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.pillar-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

/* Para Quem É - Grid de Perfis */
.profile-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.profile-pill-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.profile-pill-item span.icon {
    font-size: 1.5rem;
}

/* Timeline do Processo de Admissão */
.timeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
}

.step-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Acordeão de FAQ */
.faq-accordion {
    max-width: 860px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Formulário de Solicitação de Convite */
.invitation-wizard-card {
    max-width: 780px;
    margin: 2rem auto 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.wizard-steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.wizard-step.active {
    color: var(--primary);
}

.wizard-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--surface-subtle);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.wizard-step.active .wizard-circle {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Caixa de Aviso de Privacidade (Visitante vs Membro) */
.member-only-notice {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1.25rem 0;
    text-align: center;
}

.member-only-notice h5 {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.member-only-notice p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.member-only-notice .notice-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* Modal de Termos e Privacidade */
.legal-modal-box {
    max-width: 820px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.legal-content-scroll {
    overflow-y: auto;
    padding: 1.5rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.legal-content-scroll h3 {
    color: var(--primary-dark);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.15rem;
}

.legal-content-scroll h4 {
    color: var(--text-primary);
    margin: 1.2rem 0 0.4rem 0;
    font-size: 1rem;
}

.legal-content-scroll p, .legal-content-scroll ul {
    margin-bottom: 0.85rem;
}

.legal-content-scroll ul {
    padding-left: 1.5rem;
}

/* -------------------------------------------------------------
 * RESPONSIVIDADE & AJUSTES MOBILE DEFENSIVOS (ANTI-OVERFLOW)
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Prevenção global de vazamentos laterais */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Container e Espaçamento de Seções no Celular */
    .landing-hero {
        padding: 2.75rem 1rem 2.25rem 1rem;
    }

    .landing-hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .landing-hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        word-break: break-word;
    }

    .landing-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .landing-hero-actions .btn,
    .landing-hero-actions a {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        padding: 0.75rem 1rem;
    }

    .landing-content-section {
        padding: 2.75rem 1rem;
    }

    .section-heading-lg {
        font-size: 1.6rem;
        word-break: break-word;
    }

    .section-subtext {
        font-size: 0.92rem;
    }

    /* Grids fluidos para caber na tela de qualquer celular sem vazamento */
    .three-pillars-grid,
    .featured-grid,
    .profile-pill-grid,
    .timeline-steps,
    .categories-grid,
    .bento-grid-dashboard,
    .persona-buttons-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100%;
    }

    /* Linhas de formulário no mobile (Evita quebra de inputs lado a lado) */
    .invitation-wizard-card div[style*="display:grid; grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .invitation-wizard-card {
        padding: 1.25rem 1rem;
        width: 100%;
    }

    .wizard-steps-indicator {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .wizard-step {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    /* Tabelas e elementos com dados extensos ganham rolagem horizontal segura */
    .table-governance-matrix,
    .styled-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .portal-container {
        grid-template-columns: 1fr;
        padding: 0 0.75rem;
    }

    .portal-sidebar {
        position: sticky;
        top: calc(var(--header-height, 56px) + 2px);
        z-index: 90;
        background: #ffffff;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        padding: 0.5rem 0.6rem;
        margin-bottom: 1.25rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        overflow: hidden;
    }

    .portal-nav-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.5rem;
        padding: 0.2rem 0.15rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .portal-nav-list::-webkit-scrollbar {
        display: none;
    }

    .portal-nav-item {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.5rem 0.95rem;
        border-radius: var(--radius-pill);
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #334155;
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
        scroll-snap-align: start;
        text-align: left;
        justify-content: flex-start;
        transition: all 0.2s ease;
    }

    .portal-nav-item:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: var(--primary);
    }

    .portal-nav-item.active {
        background: var(--primary);
        color: #ffffff;
        border-color: var(--primary);
        box-shadow: 0 2px 8px rgba(30, 58, 138, 0.28);
    }

    .portal-nav-item span {
        font-size: 0.95rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .landing-nav-bar {
        display: none;
    }

    .hero-title {
        font-size: 1.45rem;
        word-break: break-word;
    }
}

/* -------------------------------------------------------------
   MATRIZ DE GOVERNANÇA, EXCLUSIVIDADE & PRIVACIDADE DA COMUNIDADE
   ------------------------------------------------------------- */
.table-governance-matrix {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.88rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-governance-matrix th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.table-governance-matrix td {
    padding: 9px 14px;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.table-governance-matrix tr:nth-child(even) {
    background: #f8fafc;
}

.governance-lock-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    margin: 1rem 0;
}

.governance-lock-card .gov-lock-icon {
    font-size: 1.4rem;
    background: #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.governance-lock-card .gov-lock-info strong {
    display: block;
    color: var(--text-main);
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

.governance-lock-card .gov-lock-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.executive-spotlight-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.executive-spotlight-box .exec-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.executive-spotlight-box .exec-avatar {
    width: 44px;
    height: 44px;
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.executive-spotlight-box .exec-details .exec-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #166534;
}

.executive-spotlight-box .exec-details h4 {
    margin: 0.15rem 0 0.1rem 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.executive-spotlight-box .exec-details p {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
}

.biz-seeking-banner {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.15rem;
    margin: 1.25rem 0;
}

.biz-seeking-banner h5 {
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.biz-seeking-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.45;
}

.member-contacts-unlocked-grid {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin: 1.25rem 0;
}

.contact-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #334155;
}

/* -------------------------------------------------------------
   CARDS MINIMALISTAS: EMPRESAS & NEGÓCIOS EM DESTAQUE (HOME)
   ------------------------------------------------------------- */
.featured-biz-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-align: left;
}

.featured-biz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.featured-biz-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.featured-biz-corp {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.featured-biz-desc-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-left: 3px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #334155;
}

.featured-biz-desc-text {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.55em * 4);
}

.featured-biz-desc-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.featured-biz-more-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.featured-biz-more-link:hover,
.featured-biz-card:hover .featured-biz-more-link {
    color: var(--primary, #1e3a8a);
    text-decoration: underline;
}

.featured-biz-channels {
    margin-top: auto;
    padding-top: 0.35rem;
}

.business-modal-desc {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.65;
    color: var(--text-secondary, #334155);
    margin: 0 0 1.25rem 0;
}

.featured-channels-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.featured-channels-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pill-channel:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pill-instagram {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    color: #db2777;
}

.pill-website {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

.pill-linkedin {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0077b5;
}

/* -------------------------------------------------------------
   CARD DISCRETO & MODAL DE COOKIES (LGPD)
   ------------------------------------------------------------- */
.cookie-consent-card {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    animation: slideUpCookie 0.3s ease;
}

@keyframes slideUpCookie {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cookie-card-header .cookie-icon {
    font-size: 1.25rem;
}

.cookie-card-header strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.cookie-card-text {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.cookie-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.cookie-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cookie-cat-info {
    max-width: 80%;
}

.cookie-cat-info strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.cookie-cat-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.badge-always-active {
    font-size: 0.72rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #1e3a8a;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .cookie-consent-card {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* =============================================================
 * UTILITÁRIOS DEFENSIVOS — NOWRAP PARA TAGS, BADGES E CONTADORES
 * Garante que ícones, emojis e números nunca quebrem do texto
 * ============================================================= */
.tag-nowrap,
.badge-nowrap,
.pill-nowrap,
.counter-pill,
.metric-pill,
.kanban-count,
.kanban-value-pill,
.onboarding-percent-badge {
    white-space: nowrap !important;
}

/* =============================================================
 * CRIAÇÃO SEGURA DE SENHA (PÓS-APROVAÇÃO)
 * ============================================================= */
.cp-member-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md, 8px);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.cp-member-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #166534;
    background: #dcfce7;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    margin-bottom: 0.4rem;
}

.cp-member-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.cp-member-email {
    font-size: 0.82rem;
    color: #64748b;
}

.password-strength-meter {
    height: 6px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.25s ease, background-color 0.25s ease;
    border-radius: 9999px;
}

.password-strength-bar.weak { background-color: #ef4444; }
.password-strength-bar.medium { background-color: #f59e0b; }
.password-strength-bar.strong { background-color: #10b981; }

.password-checklist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.78rem;
    color: #64748b;
}

.password-checklist li::before {
    content: "○ ";
    color: #94a3b8;
    font-weight: 700;
}

.password-checklist li.valid {
    color: #15803d;
    font-weight: 600;
}

.password-checklist li.valid::before {
    content: "✓ ";
    color: #16a34a;
}

/* ==============================================================
   MÓDULO GESTÃO DE MEMBROS & ACESSOS (RBAC, CICLO DE VIDA & SESSÕES)
   ============================================================== */
.access-filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.9rem;
}

.access-filter-bar .form-control {
    min-height: 44px;
}

.btn-nowrap {
    white-space: nowrap;
    flex-shrink: 0;
}

.rbac-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.rbac-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 600;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.rbac-role-chip.privileged {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.user-account-pill {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.user-account-pill.ativo { background: #dcfce7; color: #166534; }
.user-account-pill.pendente { background: #fef3c7; color: #92400e; }
.user-account-pill.inativo { background: #f1f5f9; color: #475569; }
.user-account-pill.bloqueado { background: #fee2e2; color: #991b1b; }

.status-pill {
    white-space: nowrap;
}

.status-pill.suspended { background: #fef3c7; color: #92400e; }
.status-pill.resigned,
.status-pill.expelled,
.status-pill.archived { background: #fee2e2; color: #991b1b; }
.status-pill.approved_pending_onboarding,
.status-pill.under_review { background: #e0f2fe; color: #075985; }

/* Tabela Membros & Acessos com Subdivisões Horizontais */
.districts-summary-table-card,
.members-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.members-access-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

.members-access-table thead th {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.member-row-group {
    border-bottom: 2px solid #e2e8f0;
    transition: background-color 0.15s ease;
}

.member-row-group:last-of-type {
    border-bottom: none;
}

.member-row-group:hover {
    background-color: #f8fafc;
}

.member-row-group td {
    border-bottom: none;
}

.member-row-primary td {
    padding: 0.85rem 1rem 0.55rem;
    vertical-align: middle;
}

.member-identity-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.member-identity-cell strong {
    font-size: 0.94rem;
    color: var(--text-primary);
    line-height: 1.25;
}

.member-email-line {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.member-status-pair {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.member-status-pair .user-account-pill {
    margin-bottom: 0;
}

.member-access-compact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.member-access-compact strong {
    color: var(--text-primary);
    font-weight: 600;
}

.member-row-sub td {
    padding: 0 1rem 0.85rem;
}

.member-subdivisions {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(240px, 1.8fr);
    gap: 0.75rem 1.15rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    align-items: start;
}

.member-row-group:hover .member-subdivisions {
    background: #ffffff;
}

.member-sub-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.sub-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
}

.sub-value {
    font-size: 0.82rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.member-sub-roles .rbac-chips-wrap {
    margin-top: 0.1rem;
}

.manage-tabs-bar {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.manage-tab-btn {
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.manage-tab-btn:hover {
    background: #eff6ff;
    color: #1e3a8a;
}

.manage-tab-btn.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

.rbac-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.rbac-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
    cursor: pointer;
    min-height: 44px;
}

.rbac-assignment-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr auto;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.rbac-assignment-row .form-control,
.rbac-assignment-row .btn {
    min-height: 44px;
}

.membership-history-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 240px;
    overflow-y: auto;
}

.history-item {
    border-left: 3px solid #1e3a8a;
    padding: 0.5rem 0.85rem;
    background: #f8fafc;
    border-radius: 0 0.45rem 0.45rem 0;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

@media (max-width: 900px) {
    .access-filter-bar {
        grid-template-columns: 1fr;
    }
    .rbac-assignment-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .member-subdivisions {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .member-status-pair {
        flex-wrap: wrap;
    }
}

/* =====================================================================
   ESTILOS DE DETECÇÃO E RESOLUÇÃO DE DUPLICIDADES DE SOLICITAÇÕES
   ===================================================================== */
.badge-duplicate {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.duplicate-alert-banner {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.duplicate-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.duplicate-card-selectable:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.modal-email-recipient-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-email-recipient-box:hover {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

/* =====================================================================
   MENU SUSPENSO DE AÇÕES NA TABELA DE LEADS / SOLICITAÇÕES
   ===================================================================== */
.table-action-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.table-action-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    white-space: nowrap;
}

.table-action-caret {
    font-size: 0.7rem;
    opacity: 0.75;
    transition: transform 0.15s ease;
}

.table-action-trigger[aria-expanded="true"] .table-action-caret {
    transform: rotate(180deg);
}

.table-action-menu {
    position: fixed;
    min-width: 205px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.2), 0 4px 10px -4px rgba(15, 23, 42, 0.08);
    padding: 0.35rem 0;
    z-index: 3200;
    display: none;
    animation: fadeInTableMenu 0.12s ease-out;
}

.table-action-menu.active {
    display: block;
}

.table-action-menu .dropdown-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes fadeInTableMenu {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =============================================================
 * MÍDIA, AVATARES, LOGOTIPOS, CATÁLOGO VISUAL & EDITOR CANVAS
 * ============================================================= */
.member-avatar,
.chip-avatar,
.executive-spotlight-box .exec-avatar {
    overflow: hidden;
}

.member-avatar img,
.chip-avatar img,
.executive-spotlight-box .exec-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-photo-editor-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 8px);
    flex-wrap: wrap;
}

.biz-logo-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
}

.biz-logo-badge.biz-logo-lg {
    width: 56px;
    height: 56px;
    min-width: 56px;
}

.biz-logo-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.ad-title-box.has-logo,
.featured-biz-header.has-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ad-title-text {
    min-width: 0;
    flex: 1;
}

.ad-card-cover {
    position: relative;
    width: 100%;
    height: 165px;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    margin-bottom: 0.85rem;
    background: #f1f5f9;
}

.ad-card-cover img,
.featured-biz-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-biz-cover {
    width: 100%;
    height: 145px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    background: #f1f5f9;
}

.ad-cover-count {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(15, 23, 42, 0.76);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

/* Galeria / Carrossel do Modal de Detalhes do Negócio */
.biz-gallery-block {
    margin-bottom: 1.25rem;
}

.biz-gallery-stage {
    position: relative;
    width: 100%;
    max-height: 360px;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    background: #0f172a;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.biz-gallery-zoom-hint {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.biz-gallery-caption {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 0.45rem;
    font-style: italic;
}

.biz-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.biz-gallery-thumb {
    width: 72px;
    height: 54px;
    min-width: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f1f5f9;
}

.biz-gallery-thumb.active {
    border-color: var(--primary, #1e3a8a);
}

.biz-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox em Tela Cheia */
.biz-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.biz-lightbox-content {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.biz-lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.biz-lightbox-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #e2e8f0;
    font-size: 0.9rem;
    gap: 1rem;
}

.biz-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.biz-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
}

.biz-lightbox-nav.prev { left: 1rem; }
.biz-lightbox-nav.next { right: 1rem; }

/* Painel Gerenciador de Logotipo e Catálogo (Meu Negócio & Admin) */
.checker-bg {
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.biz-logo-editor-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 10px);
    flex-wrap: wrap;
}

.biz-logo-preview-frame {
    width: 112px;
    height: 112px;
    min-width: 112px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.biz-logo-preview-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.biz-logo-editor-info {
    flex: 1;
    min-width: 220px;
}

.catalog-dropzone {
    border: 2px dashed #93c5fd;
    background: #eff6ff;
    border-radius: var(--radius-md, 10px);
    padding: 1.15rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.catalog-dropzone.drag-active {
    border-color: var(--primary, #1e3a8a);
    background: #dbeafe;
}

.catalog-dropzone-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.catalog-upload-progress {
    margin-top: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.catalog-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.15rem;
}

.catalog-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: grab;
}

.catalog-item-card.dragging {
    opacity: 0.45;
}

.catalog-item-card.drag-over {
    border-color: var(--primary, #1e3a8a);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.catalog-item-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}

.catalog-item-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-pos-badge {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.catalog-cover-badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    background: #d97706;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.catalog-item-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.catalog-title-input {
    font-size: 0.82rem;
    padding: 0.35rem 0.55rem;
    min-height: 34px;
}

.catalog-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* Produtos com Foto */
.product-card-media {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #f1f5f9;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-row-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
    border: 1px solid #e2e8f0;
}

.product-editor-preview {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-editor-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Editor Visual Canvas (ImageMediaEditor) */
.img-editor-modal {
    max-width: 680px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.img-editor-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
}

.img-editor-stage-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #0f172a;
}

.img-editor-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
}

.img-editor-canvas:active {
    cursor: grabbing;
}

.img-editor-hint {
    position: absolute;
    bottom: 0.45rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-editor-controls {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.img-editor-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.img-editor-zoom-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.img-editor-slider {
    flex: 1;
    min-height: 44px;
    cursor: pointer;
}

.img-editor-zoom-badge {
    min-width: 48px;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary, #1e3a8a);
}

.img-editor-actions-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.img-editor-footer {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--border, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

