/* ==========================================================================
   HEALTH ONE CO. | PLATAFORMA EXECUTIVA (VANESSA GOLTZMAN)
   DESIGN SYSTEM LUXURY DUAL-THEME (DARK / LIGHT) COM DOURADO & BRONZE
   Implementação #3
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & DUAL-THEME VARIABLES (DOURADO & BRONZE NOBRE)
   -------------------------------------------------------------------------- */
:root {
    /* Tipografia Oficial */
    --font-sans: 'Plus Jakarta Sans', 'IBM Plex Sans', -apple-system, sans-serif;
    --font-serif: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* =======================================================================
       PALETA DARK OFICIAL: vanessagoltzman.com.br + Dourado & Bronze
       ======================================================================= */
    --bg-base: #13100E;
    --bg-gradient: radial-gradient(circle at 50% 12%, rgba(55, 38, 28, 0.45) 0%, transparent 35rem),
                   linear-gradient(180deg, #181412 0%, #110E0C 100%);
    
    --bg-surface: rgba(28, 24, 22, 0.88);
    --bg-surface-elevated: #231E1B;
    --bg-surface-glass: rgba(28, 24, 22, 0.78);
    
    /* Bordas & Acentos Dourado/Bronze */
    --border-subtle: rgba(197, 160, 89, 0.16);
    --border-strong: rgba(197, 160, 89, 0.35);
    --border-card: rgba(205, 127, 50, 0.22);
    --border-focus: #D4AF37;

    --text-primary: #FAF8F5;
    --text-secondary: #A8A39A;
    --text-muted: #78736B;

    /* Acentos Nobres Dourado & Bronze */
    --gold: #C5A059;
    --gold-light: #DFC282;
    --gold-dark: #A37E36;
    --gold-glow: rgba(197, 160, 89, 0.28);

    --bronze: #B87333;
    --bronze-light: #CD7F32;
    --bronze-dark: #8C532B;
    --bronze-glow: rgba(184, 115, 51, 0.25);

    /* 12 Status Colors Oficiais do vgadmin */
    --c-lead: #3B82F6;
    --c-contato-feito: #D97706;
    --c-contato-respondido: #A855F7;
    --c-ligacao-agendada: #0284C7;
    --c-ligacao: #EA580C;
    --c-remarketing: #6366F1;
    --c-reuniao: #06B6D4;
    --c-nao-convertido: #EF4444;
    --c-convertido: #10B981;
    --c-evento-select-setembro: #0284C7;
    --c-sem-perfil: #94A3B8;
    --c-evento-select-outubro: #B87333;

    --card-shadow: 0 14px 38px -10px rgba(0, 0, 0, 0.75);
    --card-shadow-hover: 0 20px 48px -8px rgba(0, 0, 0, 0.9);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --transition-smooth: all 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===========================================================================
   PALETA LIGHT OFICIAL: vgadmin.healthoneco.com.br + Dourado & Bronze
   =========================================================================== */
[data-theme="light"] {
    --bg-base: #F4F3EF;
    --bg-gradient: radial-gradient(85% 70% at 50% -8%, rgba(197, 160, 89, 0.18) 0%, transparent 58%),
                   radial-gradient(95% 90% at 6% 88%, rgba(216, 212, 201, 0.4) 0%, transparent 57%),
                   radial-gradient(65% 70% at 96% 58%, rgba(184, 115, 51, 0.14) 0%, transparent 62%),
                   linear-gradient(180deg, #F9F8F5 0%, #EFECE6 58%, #E5E1D8 100%);
    
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FAF9F6;
    --bg-surface-glass: rgba(255, 255, 255, 0.92);
    
    --border-subtle: rgba(216, 212, 201, 0.7);
    --border-strong: rgba(197, 160, 89, 0.38);
    --border-card: #E5E2D9;
    --border-focus: #B38F4D;

    --text-primary: #282526;
    --text-secondary: rgba(40, 37, 38, 0.75);
    --text-muted: rgba(40, 37, 38, 0.48);

    --gold: #C5A059;
    --gold-light: #DFC282;
    --gold-dark: #A37E36;
    --gold-glow: rgba(197, 160, 89, 0.22);

    --bronze: #8C532B;
    --bronze-light: #A36F3D;
    --bronze-dark: #6C3B1E;
    --bronze-glow: rgba(140, 83, 43, 0.20);

    /* 12 Status Colors Oficiais do vgadmin */
    --c-lead: #2563EB;
    --c-contato-feito: #D97706;
    --c-contato-respondido: #9333EA;
    --c-ligacao-agendada: #0284C7;
    --c-ligacao: #EA580C;
    --c-remarketing: #4F46E5;
    --c-reuniao: #0891B2;
    --c-nao-convertido: #DC2626;
    --c-convertido: #059669;
    --c-evento-select-setembro: #0284C7;
    --c-sem-perfil: #64748B;
    --c-evento-select-outubro: #854D0E;

    --card-shadow: 0 3px 12px rgba(40, 37, 38, 0.06), 0 1px 0 #FFFFFF inset;
    --card-shadow-hover: 0 12px 28px -5px rgba(40, 37, 38, 0.15), 0 0 0 1px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Visible Luxury Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(28, 24, 22, 0.3);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--bronze));
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #EAE8E1;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: var(--gold);
    border: 2px solid #EAE8E1;
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--bronze);
}

/* --------------------------------------------------------------------------
   3. EXECUTIVE NAVBAR & BRAND LOGO
   -------------------------------------------------------------------------- */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.main-navbar {
    height: 72px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-strong);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 100;
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Official Logo Frame */
.brand-badge {
    display: flex;
    align-items: center;
}

.brand-logo-frame {
    background: #181412;
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 12px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px var(--gold-glow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-frame:hover {
    transform: translateY(-1px);
    border-color: var(--gold-light);
    box-shadow: 0 6px 24px var(--gold-glow);
}

.brand-logo-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* App Body Container (Main Content + Right Sidebar) */
.app-body-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.main-viewport {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    position: relative;
    padding: 1.75rem 2.25rem;
    display: flex;
    flex-direction: column;
}

/* Right Sidebar Navigation */
.right-sidebar {
    width: 275px;
    flex-shrink: 0;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    overflow-y: auto;
    z-index: 90;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] .right-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-left-color: var(--border-card);
    box-shadow: -3px 0 15px rgba(40, 37, 38, 0.05);
}

.sidebar-profile-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

.sidebar-avatar-frame {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #110E0C;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--gold-glow);
    flex-shrink: 0;
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.68rem;
    color: var(--gold);
    font-weight: 600;
}

.sidebar-sync-badge {
    font-size: 0.62rem;
    color: #10B981;
    font-family: var(--font-mono);
}

.sidebar-nav-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0.5rem 0.5rem 0.5rem;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: left;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .nav-tab:hover {
    background: rgba(0, 0, 0, 0.03);
}

.nav-tab.active {
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.16) 0%, rgba(197, 160, 89, 0.04) 100%);
    border: 1px solid var(--border-strong);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .nav-tab.active {
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.2) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(197, 160, 89, 0.5);
}

.nav-tab.active svg {
    color: var(--gold);
}

.security-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.tab-vault-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.vault-mini-badge {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.sidebar-footer-info {
    margin-top: 1rem;
    padding: 0.75rem 0.5rem 0 0.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sys-version-row {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sys-dot {
    color: var(--gold);
    font-size: 0.5rem;
}

.sys-corp-row {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.btn-sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
}

/* Navbar Right */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.top-kpi-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kpi-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.kpi-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.kpi-value {
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-mono);
}

.kpi-pill.highlight .kpi-value {
    color: var(--c-convertido);
}

.kpi-pill.pill-gold .kpi-value {
    color: var(--gold);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.toggle-track {
    width: 56px;
    height: 30px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    color: var(--gold);
    transition: var(--transition-smooth);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    border-radius: var(--radius-full);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .toggle-thumb {
    transform: translateX(25px);
    background: var(--gold);
}

/* Buttons with Bronze & Gold Gradients */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold), var(--bronze-light));
    color: #110E0C;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--gold-glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px var(--gold-glow);
    filter: brightness(1.08);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--gold);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #DC2626;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-danger-outline:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: #DC2626;
}

.btn-danger {
    background: #DC2626;
    border: none;
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-danger:hover {
    background: #B91C1C;
}

/* --------------------------------------------------------------------------
   4. MAIN VIEWPORT & MODULE PANES
   -------------------------------------------------------------------------- */
.main-viewport {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.module-pane {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeInPane 0.32s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.module-pane.active {
    display: flex;
}

@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-header {
    margin-bottom: 1.75rem;
}

.section-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.35rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 0.45rem;
}

.section-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. CRM CONTROLS & DUAL-PIPELINE KANBAN (MENTORIA & EVENTOS)
   -------------------------------------------------------------------------- */
.crm-pipeline-selector-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 1.15rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
}

.pipeline-tab-btn-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
}

.btn-pipeline-tab {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    flex: 1;
    text-align: left;
    transition: var(--transition-smooth);
}

[data-theme="light"] .btn-pipeline-tab {
    background: #FFFFFF;
}

.btn-pipeline-tab:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-pipeline-tab.active {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2) 0%, rgba(184, 115, 51, 0.15) 100%);
    border: 1.5px solid var(--gold);
    color: var(--text-primary);
    box-shadow: 0 4px 20px -5px var(--gold-glow);
}

.btn-pipeline-tab .pipeline-icon {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.3);
    flex-shrink: 0;
}

.btn-pipeline-tab.active .pipeline-icon {
    background: var(--gold);
    color: #110E0C;
    box-shadow: 0 0 12px var(--gold-glow);
}

.pipeline-btn-text {
    display: flex;
    flex-direction: column;
}

.pipeline-btn-text strong {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 700;
}

.pipeline-subtitle {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.btn-pipeline-tab.active .pipeline-subtitle {
    color: var(--gold-light);
}

.controls-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.search-field-wrap {
    position: relative;
    flex: 1;
    max-width: 440px;
}

.search-field-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-field-wrap input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}

.search-field-wrap input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.filters-actions-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.filter-select {
    padding: 0.58rem 1.1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
}

.view-mode-toggles {
    display: flex;
    align-items: center;
    background: var(--bg-surface-elevated);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.btn-view-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-view-toggle:hover {
    color: var(--text-primary);
}

.btn-view-toggle.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Kanban Sub-Views */
.sub-view {
    display: none;
    flex: 1;
}

.sub-view.active {
    display: flex;
    flex-direction: column;
}

/* Kanban Board Track (12 Columns Horizontal Scroll) */
.kanban-scroll-track {
    display: flex;
    gap: 1.15rem;
    overflow-x: auto;
    padding-bottom: 1.25rem;
    flex: 1;
    align-items: flex-start;
}

.kanban-col-box {
    width: 310px;
    min-width: 310px;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 205px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.kanban-col-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.col-tag-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.col-status-dot {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
}

.col-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.col-counter-pill {
    padding: 0.15rem 0.55rem;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-secondary);
}

/* 12 Status Column Colors (vgadmin aligned) */
.col-lead .col-status-dot { background: var(--c-lead); box-shadow: 0 0 8px rgba(37, 99, 235, 0.4); }
.col-contato-feito .col-status-dot { background: var(--c-contato-feito); box-shadow: 0 0 8px rgba(217, 119, 6, 0.4); }
.col-contato-respondido .col-status-dot { background: var(--c-contato-respondido); box-shadow: 0 0 8px rgba(147, 51, 234, 0.4); }
.col-ligacao-agendada .col-status-dot { background: var(--c-ligacao-agendada); box-shadow: 0 0 8px rgba(2, 132, 199, 0.4); }
.col-ligacao-feita .col-status-dot { background: var(--c-ligacao); box-shadow: 0 0 8px rgba(234, 88, 12, 0.4); }
.col-remarketing .col-status-dot { background: var(--c-remarketing); box-shadow: 0 0 8px rgba(79, 70, 229, 0.4); }
.col-reuniao-agendada .col-status-dot { background: var(--c-reuniao); box-shadow: 0 0 8px rgba(8, 145, 178, 0.4); }
.col-nao-convertido .col-status-dot { background: var(--c-nao-convertido); box-shadow: 0 0 8px rgba(220, 38, 38, 0.4); }
.col-convertido .col-status-dot { background: var(--c-convertido); box-shadow: 0 0 8px rgba(5, 150, 105, 0.4); }
.col-evento-setembro .col-status-dot { background: var(--c-evento-select-setembro); box-shadow: 0 0 8px rgba(2, 132, 199, 0.4); }
.col-sem-perfil .col-status-dot { background: var(--c-sem-perfil); box-shadow: 0 0 8px rgba(100, 116, 139, 0.4); }
.col-evento-outubro .col-status-dot { background: var(--bronze-light); box-shadow: 0 0 8px var(--bronze-glow); }

/* Coluna Especial EVENTO SELECT SETEMBRO */
.kanban-col-box[data-status="EVENTO SELECT SETEMBRO"] {
    background: rgba(2, 132, 199, 0.05);
    border-color: rgba(2, 132, 199, 0.35);
}
.kanban-col-box[data-status="EVENTO SELECT SETEMBRO"] .col-title {
    color: #0284C7;
}

/* Coluna Especial EVENTO SELECT OUTUBRO (Bronze Nobre) */
.kanban-col-box[data-status="EVENTO SELECT OUTUBRO"] {
    background: rgba(184, 115, 51, 0.08);
    border-color: rgba(184, 115, 51, 0.45);
}
.kanban-col-box[data-status="EVENTO SELECT OUTUBRO"] .col-title {
    color: var(--bronze-light);
}

/* Column Cards List Container */
.kanban-cards-stack {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow-y: auto;
    flex: 1;
}

/* Individual Lead Card */
.lead-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: var(--card-shadow);
}

.lead-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: var(--card-shadow-hover);
}

.lead-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.lead-card-name {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.lead-badge-schedule {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(184, 115, 51, 0.15);
    color: var(--bronze-light);
    border: 1px solid rgba(184, 115, 51, 0.35);
    white-space: nowrap;
}

.lead-card-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lead-card-revenue {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-mono);
}

.lead-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.2rem;
}

.btn-card-wpp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(39, 174, 96, 0.12);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.25);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-card-wpp:hover {
    background: #27AE60;
    color: #FFFFFF;
}

.lead-date-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. TABLE VIEW & LUXURY TABLE
   -------------------------------------------------------------------------- */
.table-responsive-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.luxury-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.luxury-table th {
    background: var(--bg-surface-elevated);
    padding: 0.85rem 1.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-strong);
}

.luxury-table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.luxury-table tr:hover td {
    background: var(--bg-surface-elevated);
}

/* --------------------------------------------------------------------------
   7. CALENDAR VIEW MATRIX & AGENDA
   -------------------------------------------------------------------------- */
.calendar-module-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    flex: 1;
}

.cal-main-panel {
    display: flex;
    flex-direction: column;
}

.cal-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
}

.cal-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cal-current-month {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cal-weekdays-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 0.6rem 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.cal-days-matrix {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    flex: 1;
}

.cal-day-cell {
    min-height: 80px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cal-day-cell:hover {
    border-color: var(--gold);
    background: var(--bg-surface);
}

.cal-day-cell.other-month {
    opacity: 0.35;
}

.cal-day-cell.today {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.08);
}

.cal-day-cell.selected {
    border: 2px solid var(--gold);
    box-shadow: 0 0 14px var(--gold-glow);
}

.cal-day-num {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.cal-day-badge-count {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: var(--bronze-light);
    color: #FFFFFF;
    font-weight: 700;
    align-self: flex-start;
}

/* Agenda Panel */
.cal-agenda-panel {
    display: flex;
    flex-direction: column;
}

.agenda-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
}

.agenda-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
}

.agenda-title-wrap h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.agenda-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
}

.agenda-item-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   8. ENGINES & CALCULATORS (GLASS CARDS & SLIDERS)
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--card-shadow);
}

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

.card-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--gold);
}

.card-title-wrap h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Grid Layouts for Modules */
.pricing-grid-layout,
.events-grid-layout,
.saas-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.engine-inputs-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.preset-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.btn-preset {
    padding: 0.45rem 0.85rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-preset:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-preset.active {
    background: var(--bg-surface);
    border-color: var(--gold);
    color: var(--gold);
}

.slider-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.slider-val-display {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--gold);
}

.luxury-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    outline: none;
    border: 1px solid var(--border-subtle);
}

.luxury-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    cursor: pointer;
    box-shadow: 0 0 12px var(--gold-glow);
    transition: transform 0.2s ease;
}

.luxury-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.grid-3-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.grid-2-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.input-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.luxury-input,
.luxury-select,
.luxury-textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.luxury-input:focus,
.luxury-select:focus,
.luxury-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Results KPI Grid */
.results-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.result-kpi-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.result-kpi-box.full {
    grid-column: span 2;
}

.result-kpi-box.highlight-gold {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(184, 115, 51, 0.08));
    border-color: rgba(197, 160, 89, 0.45);
}

.result-kpi-box.highlight-green,
.result-kpi-box.highlight-pos {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.14), rgba(39, 174, 96, 0.04));
    border-color: rgba(39, 174, 96, 0.35);
}

.res-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.res-num {
    font-size: 1.65rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.res-num-neg {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #DC2626;
}

.res-num-pos {
    font-size: 1.65rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #059669;
}

.res-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.break-even-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
}

.be-icon {
    color: var(--gold);
}

.be-info {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.be-info strong {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   9. SAAS AUDIT & DRE TABLES
   -------------------------------------------------------------------------- */
.saas-list-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.saas-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.saas-item-row:hover {
    border-color: var(--gold);
}

.saas-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
    margin-right: 0.85rem;
}

.saas-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.saas-info strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.saas-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.saas-price {
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #DC2626;
}

.benefits-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.benefit-item svg {
    color: #059669;
    flex-shrink: 0;
}

/* Luxury DRE Table */
.dre-table-wrap {
    overflow-x: auto;
}

.luxury-dre-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.luxury-dre-table th {
    padding: 0.85rem 1.25rem;
    background: var(--bg-surface-elevated);
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-strong);
    text-align: left;
}

.luxury-dre-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.luxury-dre-table .dre-row-header td {
    background: var(--bg-surface-elevated);
    font-weight: 700;
    font-size: 0.95rem;
}

.luxury-dre-table .dre-row-sub td {
    font-weight: 600;
    background: rgba(220, 38, 38, 0.04);
}

.luxury-dre-table .dre-row-highlight td {
    font-weight: 700;
    background: var(--bg-surface-elevated);
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
}

.luxury-dre-table .dre-row-final td {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(5, 150, 105, 0.05));
    font-weight: 800;
    font-size: 1.05rem;
    border-top: 2px solid #059669;
}

.num-gold { font-family: var(--font-mono); font-weight: 700; color: var(--gold); }
.num-neg { font-family: var(--font-mono); font-weight: 600; color: #DC2626; }
.num-pos-bold { font-family: var(--font-mono); font-weight: 800; color: #059669; }
.num-bold { font-family: var(--font-mono); font-weight: 700; color: var(--text-primary); }

/* --------------------------------------------------------------------------
   10. MODALS (LUXURY EXECUTIVE OVERLAYS)
   -------------------------------------------------------------------------- */
.luxury-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
    animation: modalFadeIn 0.25s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.luxury-modal-box {
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.modal-box-sm {
    max-width: 480px;
}

@keyframes modalSlideUp {
    from { transform: translateY(16px) scale(0.98); }
    to { transform: translateY(0) scale(1); }
}

.modal-header-bar {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
}

.modal-title-group h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-badge-date {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-modal-close:hover {
    color: var(--text-primary);
}

.modal-content-scroll {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-action-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    background: var(--bg-surface-elevated);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.status-selector-box.full-width {
    grid-column: span 3;
}

.modal-info-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.info-cell {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-cell.span-2 { grid-column: span 2; }
.info-cell.full-span { grid-column: span 4; }

.info-cell.highlight-cell {
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.35);
}

.cell-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.cell-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cell-val-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.btn-chat-wpp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #059669;
    color: #FFFFFF;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-chat-wpp:hover {
    filter: brightness(1.1);
}

.gold-text { color: var(--gold); font-family: var(--font-mono); }

.cell-paragraph {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.modal-notes-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.luxury-textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-footer-bar {
    padding: 1.15rem 1.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
}

.footer-right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-body-pad {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.warning-alert-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    color: #DC2626;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Badges */
.badge-gold {
    padding: 0.25rem 0.65rem;
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-subtle {
    padding: 0.25rem 0.65rem;
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE DESIGN (MOBILE FIRST OVERFLOW SHIELD)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .main-navbar {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .navbar-left {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .nav-modules {
        width: 100%;
        overflow-x: auto;
    }

    .navbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .pricing-grid-layout,
    .events-grid-layout,
    .saas-grid-layout,
    .calendar-module-grid,
    .mentory-two-col-grid,
    .materials-download-grid {
        grid-template-columns: 1fr;
    }

    .mentory-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-action-toolbar {
        grid-template-columns: 1fr;
    }

    .modal-info-matrix {
        grid-template-columns: 1fr 1fr;
    }

    .info-cell.span-2,
    .info-cell.full-span {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .mentory-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   14. HUB DE MENTORIAS, AULAS & CRONOGRAMA DE APRESENTAÇÕES
   -------------------------------------------------------------------------- */
.mentory-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.stat-icon-wrap.gold-glow {
    box-shadow: 0 0 16px var(--gold-glow);
    background: rgba(197, 160, 89, 0.14);
    border-color: rgba(197, 160, 89, 0.4);
}

.stat-icon-wrap.bronze-glow {
    box-shadow: 0 0 16px var(--bronze-glow);
    color: var(--bronze-light);
    background: rgba(184, 115, 51, 0.14);
    border-color: rgba(184, 115, 51, 0.4);
}

.mentory-two-col-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.mentory-panel {
    display: flex;
    flex-direction: column;
}

/* Live Classes Cards */
.live-classes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.live-class-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

[data-theme="light"] .live-class-card {
    background: rgba(244, 243, 239, 0.6);
    border-color: var(--border-card);
}

.live-class-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.live-class-card.featured {
    border-color: rgba(197, 160, 89, 0.45);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
}

[data-theme="light"] .live-class-card.featured {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(197, 160, 89, 0.5);
}

.class-time-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 0.4rem;
}

.time-day {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    font-family: var(--font-mono);
}

.time-month {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 0.15rem;
}

.time-hour {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 0.15rem;
}

.class-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.class-badge-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.badge-status-confirmed {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-status-scheduled {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(2, 132, 199, 0.15);
    color: #0284C7;
    border: 1px solid rgba(2, 132, 199, 0.35);
}

.badge-modality {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.class-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.class-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.class-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.host-pill {
    font-size: 0.72rem;
    color: var(--gold-light);
    font-weight: 500;
}

.btn-live-access {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: var(--transition-smooth);
}

.btn-live-access:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.badge-zoom-ready {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Immersion Banner */
.immersion-banner-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
    border: 1px solid var(--border-card);
    margin-bottom: 1.5rem;
}

[data-theme="light"] .immersion-banner-card {
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.12) 0%, rgba(244, 243, 239, 0.9) 100%);
    border-color: rgba(184, 115, 51, 0.35);
}

.banner-badge-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.event-tag-gold {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    border: 1px solid var(--border-strong);
}

.event-tag-dark {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.event-banner-heading {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.event-banner-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Timeline Layout */
.immersion-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 1rem;
}

.immersion-timeline::before {
    content: '';
    position: absolute;
    left: 2.85rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--bronze) 100%);
    opacity: 0.35;
}

.timeline-step {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    width: 52px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-strong);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-step.highlight-step .timeline-marker {
    background: var(--gold);
    color: #13100E;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.timeline-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0.15rem;
}

.timeline-body strong {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-body span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Mentee Tracking Table */
.mentory-mentees-card {
    margin-bottom: 2rem;
}

.mentee-profile-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mentee-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #13100E;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--gold-glow);
}

.mentee-sub {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.asset-chip {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.asset-chip.chip-done {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.asset-chip.chip-progress {
    background: rgba(197, 160, 89, 0.12);
    color: var(--gold);
    border: 1px solid rgba(197, 160, 89, 0.35);
}

.asset-chip.chip-todo {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Playbooks & Materials Downloads */
.materials-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.material-download-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

[data-theme="light"] .material-download-box {
    background: rgba(244, 243, 239, 0.6);
    border-color: var(--border-card);
}

.material-download-box:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.mat-icon-frame {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--border-subtle);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mat-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mat-info-block strong {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.mat-info-block span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.mat-meta-tag {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--gold-light);
}

.btn-mat-download {
    align-self: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   15. PÁGINA INICIAL (MASTER HERO COM LOGO DA VANESSA & BRILHO LUXURY)
   -------------------------------------------------------------------------- */

/* Master Hero Container */
.home-master-hero {
    position: relative;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 30%, rgba(55, 38, 28, 0.6) 0%, rgba(24, 20, 18, 0.95) 75%);
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(197, 160, 89, 0.12);
    overflow: hidden;
    margin-bottom: 2.25rem;
    text-align: center;
}

[data-theme="light"] .home-master-hero {
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.98) 0%, rgba(244, 243, 239, 0.92) 80%);
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 15px 35px -10px rgba(40, 37, 38, 0.1), 0 0 30px rgba(197, 160, 89, 0.18);
}

/* Ambient Radial Glows (Pulsing Lights) */
.hero-ambient-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(65px);
    opacity: 0.55;
    animation: ambientFloat 8s ease-in-out infinite alternate;
}

.gold-glow-left {
    top: -40px;
    left: 10%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.45) 0%, transparent 70%);
}

.bronze-glow-right {
    bottom: -40px;
    right: 10%;
    background: radial-gradient(circle, rgba(184, 115, 51, 0.4) 0%, transparent 70%);
    animation-delay: -4s;
}

@keyframes ambientFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.45;
    }
    50% {
        transform: translateY(20px) scale(1.15);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-15px) scale(0.95);
        opacity: 0.5;
    }
}

/* Hero Center Wrapper */
.hero-center-wrapper {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid var(--border-strong);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    box-shadow: 0 0 15px var(--gold-glow);
}

.sparkle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px #DFC282;
    animation: sparklePulse 2s infinite alternate;
}

@keyframes sparklePulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 12px #FFFFFF;
    }
}

/* Vanessa Goltzman Main Logo with Glowing Frame */
.hero-logo-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2.5rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(15, 12, 10, 0.65);
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 0 35px rgba(197, 160, 89, 0.25), 0 8px 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

[data-theme="light"] .hero-logo-frame {
    background: #13100E;
    border-color: rgba(197, 160, 89, 0.55);
    box-shadow: 0 0 35px rgba(197, 160, 89, 0.3), 0 8px 24px rgba(40, 37, 38, 0.2);
}

.hero-main-logo-img {
    max-width: 520px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(197, 160, 89, 0.35));
    display: block;
}

/* Shimmer Sweep Animation Across Logo */
.logo-shimmer-sweep {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(223, 194, 130, 0.0) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(223, 194, 130, 0.0) 80%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: shimmerSweep 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@keyframes shimmerSweep {
    0% {
        left: -120%;
    }
    30% {
        left: 180%;
    }
    100% {
        left: 180%;
    }
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 2rem;
}

.hero-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.btn-hero-action {
    padding: 0.65rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-hero-action:hover {
    transform: translateY(-2px);
}

/* Home Global KPI Highlights */
.home-global-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.75rem;
}

.home-kpi-card {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.35rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.home-kpi-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.kpi-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.kpi-icon-badge.gold-glow {
    box-shadow: 0 0 16px var(--gold-glow);
    background: rgba(197, 160, 89, 0.14);
    border-color: rgba(197, 160, 89, 0.4);
}

.kpi-icon-badge.bronze-glow {
    box-shadow: 0 0 16px var(--bronze-glow);
    color: var(--bronze-light);
    background: rgba(184, 115, 51, 0.14);
    border-color: rgba(184, 115, 51, 0.4);
}

.kpi-data-block {
    display: flex;
    flex-direction: column;
}

.kpi-block-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.kpi-block-value {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.kpi-block-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Panoramic Section Header */
.panoramic-section-header {
    margin-bottom: 1.5rem;
}

/* Panoramic Showcase Modules Grid */
.home-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.module-hub-card {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid var(--border-subtle);
}

.module-hub-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
}

[data-theme="light"] .module-hub-card:hover {
    box-shadow: 0 16px 32px -8px rgba(40, 37, 38, 0.15), 0 0 20px rgba(197, 160, 89, 0.25);
}

.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.mod-icon-frame {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--border-subtle);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod-icon-frame.gold-glow {
    box-shadow: 0 0 16px var(--gold-glow);
    background: rgba(197, 160, 89, 0.16);
    border-color: rgba(197, 160, 89, 0.4);
}

.mod-icon-frame.bronze-glow {
    box-shadow: 0 0 16px var(--bronze-glow);
    color: var(--bronze-light);
    background: rgba(184, 115, 51, 0.16);
    border-color: rgba(184, 115, 51, 0.4);
}

.mod-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.mod-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.mod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.mod-status-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.mod-arrow-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    transition: var(--transition-smooth);
}

.module-hub-card:hover .mod-arrow-btn {
    color: var(--gold-light);
    transform: translateX(3px);
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .home-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-global-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-modules-grid {
        grid-template-columns: 1fr;
    }
    .home-global-kpi-grid {
        grid-template-columns: 1fr;
    }
    .hero-main-logo-img {
        max-width: 100%;
    }
    .home-master-hero {
        padding: 2rem 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   16. COFRE CRIPTOGRAFADO DE SENHAS (BITWARDEN ZERO-KNOWLEDGE)
   -------------------------------------------------------------------------- */
.vault-security-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(24, 20, 18, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 1.75rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

[data-theme="light"] .vault-security-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(16, 185, 129, 0.35);
}

.vault-sec-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.vault-sec-icon-frame {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.vault-sec-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.vault-sec-title-row h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-vault-status {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.vault-sec-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-bitwarden-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #175DDC;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(23, 93, 220, 0.35);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-bitwarden-link:hover {
    background: #124ec0;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(23, 93, 220, 0.5);
}

.vault-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.vault-kpi-item {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.v-kpi-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.v-kpi-val {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.v-kpi-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.text-success {
    color: #10B981 !important;
}

/* Vault Tools Grid (Generator + Filters) */
.vault-tools-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.vault-generator-box,
.vault-filter-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.gen-output-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.gen-password-input {
    flex: 1;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-strong);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.btn-copy-gen {
    padding: 0.65rem 1rem;
    white-space: nowrap;
}

.btn-refresh-gen {
    padding: 0.65rem 0.85rem;
}

.gen-controls-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-control-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.slider-label-val {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.slider-label-val strong {
    color: var(--gold);
    font-family: var(--font-mono);
}

.gen-options-checks {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gen-check-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.vault-search-input-wrap {
    margin: 1rem 0 0.85rem 0;
}

.vault-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.v-cat-pill {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.v-cat-pill:hover {
    color: var(--text-primary);
    border-color: var(--gold);
}

.v-cat-pill.active {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    border-color: var(--gold);
}

/* Credentials Grid */
.vault-credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.vault-cred-card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.vault-cred-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.cred-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.cred-service-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.cred-service-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.cred-category-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.badge-exclusive-vanessa {
    font-size: 0.60rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2) 0%, rgba(139, 90, 43, 0.25) 100%);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.15);
}

.cred-card-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.cred-header-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.cred-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.btn-icon-mini.btn-danger-hover:hover {
    color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}

.badge-vault-status.mode-team {
    color: #38BDF8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.cred-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cred-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cred-field-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cred-field-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.65rem;
}

.cred-field-val {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cred-actions-mini {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-icon-mini {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-mini:hover {
    color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
}

.cred-footer-meta {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.cred-2fa-tag {
    color: #10B981;
    font-weight: 600;
}

/* Toast Notification for Safe Copy */
.vault-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #110E0C;
    border: 1px solid var(--gold);
    color: #FFFFFF;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--gold-glow);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10000;
    animation: fadeInToast 0.25s ease-out;
}

@keyframes fadeInToast {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   17. AUDIT LOG & HISTÓRICO DE ACESSOS (EXCLUSIVO VANESSA)
   -------------------------------------------------------------------------- */
.vault-audit-section {
    padding: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 160, 89, 0.25);
    background: linear-gradient(180deg, rgba(24, 20, 18, 0.95) 0%, rgba(17, 14, 12, 0.98) 100%);
}

[data-theme="light"] .vault-audit-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 240, 0.95) 100%);
    border-color: rgba(197, 160, 89, 0.35);
}

.vault-audit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.vault-audit-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vault-audit-icon-frame {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vault-audit-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.vault-audit-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.vault-audit-stats-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.audit-stat-chip {
    display: flex;
    flex-direction: column;
    padding: 0.45rem 0.85rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
}

.audit-stat-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.audit-stat-chip strong {
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.vault-audit-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.vault-audit-search-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 420px;
}

.vault-audit-search-wrap svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.vault-audit-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.audit-filter-pill {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.audit-filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--gold);
}

.audit-filter-pill.active {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    border-color: var(--gold);
}

.vault-audit-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
}

.luxury-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: left;
}

.luxury-audit-table th {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

[data-theme="light"] .luxury-audit-table th {
    background: rgba(0, 0, 0, 0.03);
}

.luxury-audit-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.luxury-audit-table tr:last-child td {
    border-bottom: none;
}

.luxury-audit-table tr:hover td {
    background: rgba(197, 160, 89, 0.04);
}

.audit-badge-user {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.audit-badge-user.user-vanessa {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold-light);
    border: 1px solid var(--gold);
}

.audit-badge-user.user-team {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.audit-action-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.74rem;
}

.audit-action-tag.action-view { color: #F59E0B; }
.audit-action-tag.action-copy { color: #38BDF8; }
.audit-action-tag.action-modify { color: #10B981; }
.audit-action-tag.action-delete { color: #EF4444; }
.audit-action-tag.action-auth { color: var(--gold); }

.audit-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
}

.audit-status-badge.status-ok {
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
}

.audit-status-badge.status-warn {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   MOBILE BACKDROP OVERLAY & BOTTOM APP-BAR
   ========================================================================== */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(17, 14, 12, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
}

[data-theme="light"] .mobile-bottom-bar {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: var(--border-card);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-btn svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.mobile-bottom-btn:hover {
    color: var(--text-primary);
}

.mobile-bottom-btn.active {
    color: var(--gold);
}

.mobile-bottom-btn.active svg {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

/* ==========================================================================
   RESPONSIVE OVERRIDES (TABLET & DESKTOP NARROW: <= 1280px & <= 1024px)
   ========================================================================== */
@media (max-width: 1280px) {
    .vault-credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .btn-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    .main-viewport {
        padding: 1.25rem 1.25rem calc(80px + env(safe-area-inset-bottom)) 1.25rem;
    }

    .right-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        z-index: 2000;
        transform: translateX(100%);
        box-shadow: -15px 0 45px rgba(0, 0, 0, 0.75);
        border-left: 1px solid var(--border-strong);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .right-sidebar.open {
        transform: translateX(0);
    }

    .vault-tools-grid {
        grid-template-columns: 1fr;
    }

    .vault-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE OVERRIDES (SMARTPHONES: <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .main-navbar {
        padding: 0.65rem 1rem;
        height: auto;
        min-height: 60px;
    }

    .brand-logo-frame {
        height: 38px;
    }

    .brand-logo-img {
        max-height: 38px;
    }

    .top-kpi-group {
        display: none;
    }

    .navbar-right {
        gap: 0.65rem;
    }

    .btn-primary {
        padding: 0.48rem 0.85rem;
        font-size: 0.75rem;
    }

    .main-viewport {
        padding: 1rem 0.85rem calc(80px + env(safe-area-inset-bottom)) 0.85rem;
    }

    /* Home Hero Master */
    .home-master-hero {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-center-wrapper {
        padding: 0.5rem 0;
    }

    .hero-badge-pill {
        font-size: 0.62rem;
        padding: 0.3rem 0.75rem;
        letter-spacing: 0.08em;
    }

    .hero-main-logo-img {
        max-width: min(290px, 85vw);
    }

    .hero-headline {
        font-size: 1.45rem;
    }

    .hero-subheadline {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .hero-pillars-row {
        gap: 0.5rem;
    }

    .pillar-badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.65rem;
    }

    .home-kpi-band {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .home-kpi-tile {
        padding: 0.85rem;
    }

    .kpi-tile-value {
        font-size: 1.25rem;
    }

    .home-modules-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .module-hub-card {
        padding: 1.25rem;
    }

    /* CRM Toolbar & Kanban Mobile */
    .controls-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .search-field-wrap {
        min-width: 100%;
    }

    .filters-actions-wrap {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }

    .filter-dropdown-wrap {
        flex: 1;
        min-width: 150px;
    }

    .filter-select {
        width: 100%;
    }

    .view-mode-toggles {
        width: 100%;
        overflow-x: auto;
        display: flex;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .view-mode-toggles::-webkit-scrollbar {
        display: none;
    }

    .btn-view-toggle {
        flex: 1;
        justify-content: center;
        padding: 0.45rem 0.65rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    #btn-export-crm-csv {
        width: 100%;
        justify-content: center;
    }

    .kanban-scroll-track {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.85rem;
        padding-bottom: 1.25rem;
    }

    .kanban-column {
        width: 85vw;
        max-width: 330px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* Hub de Mentorias Mobile */
    .mentory-header-banner {
        padding: 1.25rem 1rem;
    }

    .banner-content-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .mentory-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .mentory-kpi-card {
        padding: 0.85rem;
    }

    .live-classes-grid {
        grid-template-columns: 1fr;
    }

    .immersion-card {
        padding: 1.25rem;
    }

    .immersion-timeline::before {
        left: 2.15rem;
    }

    .timeline-marker {
        width: 44px;
        font-size: 0.68rem;
    }

    .materials-download-grid {
        grid-template-columns: 1fr;
    }

    /* Engines & Calculators Mobile */
    .pricing-grid,
    .events-grid,
    .saas-grid,
    .finance-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .slider-container input[type="range"] {
        height: 8px;
    }

    .slider-container input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    /* Bitwarden Vault Mobile */
    .vault-header-hero {
        padding: 1.25rem 1rem;
    }

    .vault-filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.4rem;
        scrollbar-width: none;
    }

    .vault-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .vault-filter-pill {
        flex-shrink: 0;
    }

    .vault-credentials-grid {
        grid-template-columns: 1fr;
    }

    .vault-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vault-toast {
        left: 1rem;
        right: 1rem;
        bottom: calc(75px + env(safe-area-inset-bottom));
        justify-content: center;
    }

    /* Luxury Modals Mobile (Bottom Sheet Presentation) */
    .luxury-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .luxury-modal-box {
        max-width: 100%;
        width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh;
        max-height: 90dvh;
        padding: 1.25rem 1rem;
        border-bottom: none;
        animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideUpModal {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .modal-info-matrix {
        grid-template-columns: 1fr;
    }

    .info-cell.span-2,
    .info-cell.highlight-cell {
        grid-column: span 1;
    }

    .modal-action-toolbar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-footer-bar {
        flex-direction: column-reverse;
        gap: 0.6rem;
    }

    .modal-footer-bar button,
    .footer-right-actions,
    .footer-right-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   RESPONSIVE OVERRIDES (ULTRA COMPACT PHONES: <= 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .home-kpi-band {
        grid-template-columns: 1fr;
    }

    .mentory-kpis-grid {
        grid-template-columns: 1fr;
    }

    .vault-kpis-grid {
        grid-template-columns: 1fr;
    }

    .brand-logo-frame {
        height: 32px;
    }

    .brand-logo-img {
        max-height: 32px;
    }

    .hero-headline {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   IMPLEMENTAÇÃO #15: ACOMPANHAMENTO DOS MENTORADOS & GAMIFICAÇÃO LUXO
   ========================================================================== */

/* Mentee Selector Strip */
.mentee-selector-container {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.selector-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selector-title-group h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.mentee-cards-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.mentee-select-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mentee-select-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--gold-glow);
}

.mentee-select-card.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(20, 20, 25, 0.85) 100%);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

.mentee-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mentee-avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #b38728 100%);
    color: #0b0c10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.mentee-info-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mentee-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mentee-card-specialty {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mentee-card-tier-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.mentee-card-revenue-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.5rem;
}

.card-rev-label {
    color: var(--text-muted);
}

.card-rev-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold);
}

/* Mentee Profile Banner */
.mentee-profile-banner {
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, var(--card-bg) 60%);
    border: 1px solid var(--border-subtle);
}

.profile-banner-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.mentee-avatar-big {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #b38728 100%);
    color: #0b0c10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-details-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-name-tier {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.mentee-doctor-name {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.tier-pill-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold);
    border: 1px solid var(--gold);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
    animation: pulseGlow 2.5s infinite alternate;
}

.profile-meta-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.meta-tag.tag-gold {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.3);
    font-weight: 600;
}

.profile-banner-right {
    display: flex;
    flex-direction: column;
    min-width: 280px;
    gap: 0.5rem;
}

.cycle-progress-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cycle-head,
.cycle-foot {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.cycle-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.cycle-percent {
    font-weight: 700;
    color: var(--gold);
}

.cycle-foot {
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* Growth Curve Chart & Gauge Grid */
.growth-chart-gauge-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .growth-chart-gauge-grid {
        grid-template-columns: 1fr;
    }
}

.growth-chart-card,
.growth-gauge-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.chart-legend-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.gold {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

.legend-dot.dashed {
    background: rgba(255, 255, 255, 0.4);
}

.svg-chart-wrapper {
    width: 100%;
    height: 280px;
    position: relative;
    margin: 1rem 0;
}

.svg-chart-wrapper svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-foot-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.foot-metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* SVG Chart Elements */
.growth-svg-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: dashStroke 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dashStroke {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-point-pulse {
    animation: pulseNode 2s infinite ease-in-out;
}

@keyframes pulseNode {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 6px var(--gold)); }
    100% { transform: scale(1); opacity: 0.9; }
}

/* Speedometer / Gauge Card */
.gauge-display-box {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12) 0%, rgba(15, 15, 20, 0.6) 70%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.gauge-tier-icon {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
}

.gauge-tier-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    margin-bottom: 0.35rem;
}

.gauge-revenue-highlight {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gauge-next-tier-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.gauge-bar-wrapper {
    width: 100%;
}

.gauge-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.gauge-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #22c55e 100%);
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Simulation Slider Box */
.simulation-slider-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sim-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.sim-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
}

.sim-value-badge {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #0b0c10;
    background: var(--gold);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.luxury-range-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-subtle);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.luxury-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
    cursor: grab;
    border: 2px solid #ffffff;
}

.slider-tiers-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.sim-help-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.3;
}

/* 3 Ativos Triad Grid */
.mentory-assets-diagnostic-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.assets-triad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .assets-triad-grid {
        grid-template-columns: 1fr;
    }
}

.asset-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.25s ease;
}

.asset-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.asset-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.asset-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.asset-titles {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.asset-titles h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.asset-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.asset-score-badge {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold);
}

.asset-desc-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Hall of Awards & Plaques */
.mentory-awards-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.plaques-awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plaque-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    position: relative;
    transition: all 0.25s ease;
}

.plaque-card.unlocked {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(20, 20, 25, 0.9) 100%);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.plaque-card.locked {
    opacity: 0.45;
    filter: grayscale(0.8);
}

.plaque-icon-frame {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.plaque-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plaque-milestone {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
}

.plaque-status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.plaque-card.unlocked .plaque-status-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.plaque-card.locked .plaque-status-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

/* Action Plan Checklist */
.checklist-intro {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.action-plan-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.action-plan-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-plan-item:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: var(--gold-border);
}

.action-plan-item.done {
    opacity: 0.7;
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.action-plan-item.done .action-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.action-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
    margin-top: 2px;
}

.action-text {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

.add-task-quick-box {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

/* Event Passport */
.passport-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.passport-event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.passport-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.passport-event-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.passport-status-tag {
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.passport-event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Keyframes */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    100% { box-shadow: 0 0 18px rgba(212, 175, 55, 0.6); }
}

/* ==========================================================================
   HEALTH ONE CO. | CENTRAL DE CONTRATOS & GERADOR DE PDF TIMBRADO
   Implementação #17
   ========================================================================== */

/* Contracts KPI Summary Grid */
.contracts-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.contract-kpi-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.contract-kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.kpi-icon-frame {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

.kpi-icon-frame.gold-glow {
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.35);
    color: var(--gold);
}

.kpi-icon-frame.bronze-glow {
    background: rgba(184, 115, 51, 0.12);
    border-color: rgba(184, 115, 51, 0.35);
    color: var(--bronze-light);
}

.contract-kpi-card .kpi-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contract-kpi-card .kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.contract-kpi-card .kpi-number {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.2;
}

.contract-kpi-card .kpi-number.gold-text {
    color: var(--gold-light);
}

.contract-kpi-card .kpi-subtext {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Contracts Section Header */
.contracts-section-header {
    margin-bottom: 1.1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.section-subdesc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Templates Launchpad Grid */
.contracts-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
    margin-bottom: 2.2rem;
}

.contract-tpl-card {
    padding: 1.4rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contract-tpl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold) 0%, var(--bronze) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.contract-tpl-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 16px var(--gold-glow);
}

.contract-tpl-card:hover::before {
    opacity: 1;
}

.tpl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.tpl-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.tpl-badge.gold {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
    border-color: rgba(197, 160, 89, 0.35);
}

.tpl-badge.bronze {
    background: rgba(184, 115, 51, 0.15);
    color: var(--bronze-light);
    border-color: rgba(184, 115, 51, 0.35);
}

.tpl-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tpl-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.tpl-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

.tpl-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
}

.tpl-preset-val {
    font-weight: 600;
    color: var(--gold);
    font-family: var(--font-mono);
}

.tpl-btn-use {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-smooth);
}

.contract-tpl-card:hover .tpl-btn-use {
    color: var(--gold-light);
    transform: translateX(3px);
}

/* Contracts Repository List & Table */
.contracts-list-section {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.contracts-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.3rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.badge-subtle {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.contracts-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    min-width: 240px;
}

[data-theme="light"] .contracts-search-box {
    background: #FFFFFF;
}

.contracts-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font-sans);
    width: 100%;
}

.compact-select {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
}

.contracts-table-wrapper {
    overflow-x: auto;
}

.contracts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.contracts-table th {
    padding: 0.85rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-strong);
    background: rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.contracts-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.contracts-table tbody tr {
    transition: var(--transition-smooth);
}

.contracts-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.contract-code-tag {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.76rem;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 160, 89, 0.25);
    white-space: nowrap;
}

.contract-title-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contract-title-text {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.contract-cat-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.contract-party-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contract-party-name {
    font-weight: 600;
    color: var(--text-primary);
}

.contract-party-doc {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.contract-value-cell {
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.contract-terms-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.contract-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.contract-status-badge.vigente {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.contract-status-badge.assinado {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.contract-status-badge.rascunho {
    background: rgba(217, 119, 6, 0.15);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.contract-status-badge.cancelado {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.contract-action-btn-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.btn-contract-action {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-contract-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-contract-action.action-print:hover {
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold-light);
    border-color: var(--gold);
}

.btn-contract-action.action-delete:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #EF4444;
    border-color: #EF4444;
}

/* ==========================================================================
   CONTRACT EDITOR SPLIT-SCREEN MODAL
   ========================================================================== */
.contract-modal-wide {
    max-width: 1380px;
    width: 95vw;
    height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.8rem;
    overflow: hidden;
}

.contract-split-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 1.5rem;
    flex-grow: 1;
    min-height: 0;
    margin-top: 1rem;
}

.contract-form-column {
    overflow-y: auto;
    padding-right: 0.8rem;
    border-right: 1px solid var(--border-subtle);
}

.form-section-title {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
    text-transform: uppercase;
    margin: 1.2rem 0 0.8rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.contract-preview-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

[data-theme="light"] .contract-preview-column {
    background: #EDEAE1;
}

.preview-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.2rem;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.preview-zoom-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.preview-dot {
    color: #10B981;
    font-size: 0.65rem;
}

.btn-print-pdf {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #110E0C;
    font-weight: 700;
    box-shadow: 0 4px 14px var(--gold-glow);
}

.letterhead-paper-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.8rem;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   OFFICIAL LETTERHEAD TIMBRADO PAPER RENDERING (A4 LUXURY EDITORIAL)
   ========================================================================== */
.letterhead-paper {
    width: 100%;
    max-width: 780px;
    background: #FFFFFF;
    color: #1A1A1A;
    padding: 2.8rem 3.2rem;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', -apple-system, sans-serif;
    font-size: 0.86rem;
    line-height: 1.65;
    position: relative;
    box-sizing: border-box;
}

.doc-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(197, 160, 89, 0.04);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.4rem;
    border-bottom: 2px solid #C5A059;
    margin-bottom: 1.8rem;
}

.doc-header-logo-frame {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.doc-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.doc-brand-text {
    display: flex;
    flex-direction: column;
}

.doc-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #110E0C;
    letter-spacing: -0.02em;
}

.doc-brand-subtitle {
    font-size: 0.72rem;
    color: #78736B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.doc-header-meta {
    text-align: right;
    font-size: 0.72rem;
    color: #555555;
    line-height: 1.4;
}

.doc-meta-code {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    color: #A37E36;
    font-size: 0.8rem;
}

.doc-title-container {
    text-align: center;
    margin-bottom: 1.8rem;
}

.doc-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #110E0C;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.doc-status-stamp {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border: 1px solid #C5A059;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #A37E36;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-preamble {
    background: #FAF8F5;
    border: 1px solid #EAE5DC;
    border-left: 3px solid #C5A059;
    padding: 1.1rem 1.3rem;
    border-radius: 4px;
    margin-bottom: 1.8rem;
    font-size: 0.82rem;
    text-align: justify;
    color: #2D2825;
}

.doc-clause-block {
    margin-bottom: 1.4rem;
}

.doc-clause-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #110E0C;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.45rem;
    border-bottom: 1px solid #EFECE6;
    padding-bottom: 0.25rem;
}

.doc-clause-body {
    text-align: justify;
    color: #333333;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.doc-clause-list {
    margin: 0.4rem 0 0.6rem 1.4rem;
    padding: 0;
    color: #333333;
    font-size: 0.82rem;
}

.doc-clause-list li {
    margin-bottom: 0.3rem;
}

.doc-highlight-box {
    background: #F5EFE6;
    border: 1px dashed #C5A059;
    padding: 0.9rem 1.2rem;
    border-radius: 4px;
    margin: 0.8rem 0;
    font-size: 0.82rem;
    color: #110E0C;
}

.doc-signatures-section {
    margin-top: 2.6rem;
    page-break-inside: avoid;
}

.doc-date-location {
    text-align: right;
    font-size: 0.82rem;
    color: #444444;
    margin-bottom: 2.2rem;
}

.doc-signatures-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    margin-top: 1.8rem;
}

.doc-sig-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.doc-sig-line {
    width: 88%;
    border-top: 1px solid #222222;
    margin-bottom: 0.45rem;
}

.doc-sig-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: #110E0C;
}

.doc-sig-role {
    font-size: 0.72rem;
    color: #666666;
}

.doc-footer-legal {
    margin-top: 2.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid #E0DCD3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: #888888;
}

/* ==========================================================================
   PRINT / PDF MEDIA QUERY (@media print)
   Geração limpa de A4 oficial sem elementos de tela
   ========================================================================== */
@media print {
    /* Hide all application chrome, navbar, sidebar and modals backdrops */
    body, html {
        background: #FFFFFF !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .main-navbar,
    .right-sidebar,
    .mobile-bottom-nav,
    .preview-actions-bar,
    .contract-form-column,
    .modal-header-bar,
    .modal-close-btn,
    .toast-container,
    .pane-header,
    .contracts-kpi-grid,
    .contracts-templates-grid,
    .contracts-list-section {
        display: none !important;
    }

    .modal-backdrop {
        position: static !important;
        background: transparent !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .contract-split-layout {
        display: block !important;
        margin: 0 !important;
    }

    .contract-preview-column {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .letterhead-paper-scroll {
        padding: 0 !important;
        overflow: visible !important;
    }

    .letterhead-paper {
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        font-size: 10pt !important;
        line-height: 1.5 !important;
    }

    .doc-preamble,
    .doc-highlight-box {
        background: #F8F8F8 !important;
        border-color: #CCCCCC !important;
    }

    .doc-signatures-section {
        page-break-inside: avoid !important;
    }

    @page {
        size: A4 portrait;
        margin: 15mm 15mm 15mm 15mm;
    }
}

/* Responsive adjustments for Contracts */
@media (max-width: 1100px) {
    .contract-split-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .contract-modal-wide {
        height: 96vh;
        overflow-y: auto;
    }
    
    .contract-form-column {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 1.5rem;
    }
}

/* ==========================================================================
   AGENDA EXECUTIVA DE CONTATOS (IMPLEMENTAÇÃO #20 & #25)
   ========================================================================== */

/* Contacts KPI Grid & Interactive Filter Cards (Implementação #25) */
.contacts-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .contacts-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contacts-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.contact-kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
}

.contact-kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px var(--gold-glow);
}

.contact-kpi-card.active {
    border-color: var(--gold) !important;
    background: rgba(197, 160, 89, 0.12) !important;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.25) !important;
}

.contact-kpi-card.active::after {
    content: '✓ ATIVO';
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    font-size: 0.62rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--gold);
    background: rgba(197, 160, 89, 0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(197, 160, 89, 0.4);
}

.contacts-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.4rem;
    margin-bottom: 1.8rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.contacts-search-box-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    flex-grow: 1;
    max-width: 480px;
}

[data-theme="light"] .contacts-search-box-main {
    background: #FFFFFF;
}

.contacts-search-box-main input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    width: 100%;
}

.contacts-filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contacts-view-toggle {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.2rem;
    gap: 0.2rem;
}

.btn-icon-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon-toggle.active {
    background: var(--gold);
    color: #110E0C;
    font-weight: 700;
}

/* Contacts Cards Grid View */
.contacts-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.contact-person-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.contact-person-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 16px var(--gold-glow);
}

.contact-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.contact-avatar-frame {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.25) 0%, rgba(184, 115, 51, 0.25) 100%);
    border: 1.5px solid var(--gold);
    color: var(--gold-light);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-title-group {
    flex-grow: 1;
    min-width: 0;
}

.contact-person-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-person-spec {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.contact-category-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.35rem;
    white-space: nowrap;
}

.contact-category-pill.mentorado {
    background: rgba(197, 160, 89, 0.18);
    color: var(--gold-light);
    border: 1px solid rgba(197, 160, 89, 0.4);
}

.contact-category-pill.lead {
    background: rgba(197, 160, 89, 0.14);
    color: var(--gold-light);
    border: 1px solid rgba(197, 160, 89, 0.35);
}

.contact-category-pill.medico-assistente {
    background: rgba(184, 115, 51, 0.16);
    color: var(--bronze-light);
    border: 1px solid rgba(184, 115, 51, 0.35);
}

.contact-category-pill.parceiro {
    background: rgba(184, 115, 51, 0.18);
    color: var(--bronze-light);
    border: 1px solid rgba(184, 115, 51, 0.4);
}

.contact-category-pill.outro {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* Contact Info Items & Luxury Color Scheme (Implementação #21) */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.1rem;
    font-size: 0.8rem;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    text-decoration: none !important;
    transition: var(--transition-smooth);
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
}

.contact-info-row:hover {
    color: var(--text-primary);
}

.contact-person-card a,
.contracts-table a {
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

/* WhatsApp Link - Emerald Green */
.contact-link-wa {
    color: #10B981 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-family: var(--font-mono, inherit);
    display: inline-block;
}

.contact-link-wa:hover {
    color: #34D399 !important;
    text-decoration: underline !important;
}

/* Email Link - Champagne Luxury Gold */
.contact-link-email {
    color: #DFC282 !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    word-break: break-all;
    display: inline-block;
}

.contact-link-email:hover {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

/* Instagram Link - Warm Rose/Magenta */
.contact-link-ig {
    color: #F472B6 !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.contact-link-ig:hover {
    color: #EC4899 !important;
    text-decoration: underline !important;
}

.contact-info-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon.wpp {
    color: #10B981;
}

.contact-info-icon.insta {
    color: #E1306C;
}

.contact-info-icon.mail {
    color: var(--gold);
}

.contact-info-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-info-row.wpp-link:hover .contact-info-text {
    color: #10B981;
    text-decoration: underline !important;
}

.contact-info-row.insta-link:hover .contact-info-text {
    color: #E1306C;
    text-decoration: underline !important;
}

/* Contact Action Buttons */
.contact-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.btn-wpp-direct {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.btn-wpp-direct:hover {
    background: #10B981;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.contact-secondary-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Table View for Contacts */
.contacts-table-view-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    overflow-x: auto;
}

/* ========================================================================= */
/* IMPLEMENTAÇÃO #24: CRM SPEED-TO-LEAD (SLA) & LINHA DO TEMPO               */
/* ========================================================================= */

/* CRM Executive KPI Summary Grid */
.crm-kpi-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 1024px) {
    .crm-kpi-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .crm-kpi-summary-grid {
        grid-template-columns: 1fr;
    }
}

.crm-kpi-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.crm-kpi-item:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.crm-kpi-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crm-kpi-icon-box.speed-glow {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.crm-kpi-icon-box.alert-glow {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #F59E0B;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.crm-kpi-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.crm-kpi-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.crm-kpi-value {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.2;
}

.crm-kpi-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* SLA Badges on Kanban Cards */
.lead-card-sla-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-top: 0.45rem;
    width: fit-content;
}

.lead-card-sla-badge.sla-fast {
    background: rgba(16, 185, 129, 0.14);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.lead-card-sla-badge.sla-waiting {
    background: rgba(245, 158, 11, 0.14);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: slaPulse 2.5s infinite;
}

.lead-card-sla-badge.sla-critical {
    background: rgba(239, 68, 68, 0.16);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: slaPulse 1.5s infinite;
}

.lead-card-sla-badge.sla-normal {
    background: rgba(197, 160, 89, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(197, 160, 89, 0.25);
}

@keyframes slaPulse {
    0% { opacity: 1; }
    50% { opacity: 0.65; }
    100% { opacity: 1; }
}

/* Modal SLA Banner */
.modal-sla-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    background: rgba(197, 160, 89, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .modal-sla-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.sla-banner-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sla-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    width: fit-content;
}

.sla-status-pill.fast {
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.sla-status-pill.waiting {
    background: rgba(245, 158, 11, 0.18);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.sla-status-pill.critical {
    background: rgba(239, 68, 68, 0.18);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.sla-status-pill.normal {
    background: rgba(197, 160, 89, 0.16);
    color: var(--gold-light);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.sla-audit-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.btn-action-wpp-direct {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: var(--transition-smooth);
}

.btn-action-wpp-direct:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Modal Timeline Section */
.modal-timeline-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.timeline-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.timeline-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.timeline-icon {
    font-size: 1.2rem;
}

.timeline-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.timeline-section-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Timeline Quick Add Box */
.timeline-quick-add-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    margin-bottom: 1.15rem;
}

.timeline-add-inputs {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

@media (max-width: 768px) {
    .timeline-add-inputs {
        flex-direction: column;
        align-items: stretch;
    }
}

.timeline-type-select {
    min-width: 220px;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
}

.timeline-text-input {
    flex: 1;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
}

/* Timeline Stream & Items */
.timeline-stream {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    padding-left: 1.2rem;
    margin-left: 0.6rem;
    border-left: 2px solid var(--border-subtle);
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    transition: var(--transition-smooth);
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
}

.timeline-item-dot {
    position: absolute;
    left: -1.75rem;
    top: 0.75rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg-surface);
}

.timeline-item-dot.wpp {
    background: #10B981;
}

.timeline-item-dot.call {
    background: #3B82F6;
}

.timeline-item-dot.created {
    background: var(--gold);
}

.timeline-item-dot.meeting {
    background: #8B5CF6;
}

.timeline-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.timeline-item-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.timeline-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.timeline-item-meta {
    font-size: 0.68rem;
    color: var(--gold);
    font-style: italic;
}


