/* ==========================================
   Hub Core — Design System Foundation
   Tokens: var(--hub-*) como fonte da verdade
   Retrocompatibilidade: var(--hub-*) mantido via aliases em :root
   ========================================== */

/* --- :root — Tokens Fundamentais + Retrocompatibilidade --- */
:root {
    color-scheme: dark;

    /* ==========================================
       1. TOKENS FUNDAMENTAIS HUB (Fonte da Verdade)
       ========================================== */
    /* Cores Base */
    --hub-bg: #0f1012;
    --hub-surface: #18191c;
    --hub-surface-raised: #1e2024;
    --hub-surface-hover: rgba(255, 255, 255, 0.03);
    --hub-border: rgba(255, 255, 255, 0.08);
    --hub-border-strong: rgba(255, 255, 255, 0.14);
    --hub-glass-bg: rgba(30, 32, 36, 0.75);
    --hub-glass-border: rgba(255, 255, 255, 0.08);
    --hub-skeleton-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04) 20%, rgba(255, 255, 255, 0.08) 60%, transparent);

    /* Texto */
    --hub-text: #ffffff;
    --hub-text-muted: #a6a6a6;
    --hub-text-inverse: var(--hub-bg);
    --hub-text-rgb: 255, 255, 255;

    /* Ação e Estados */
    --hub-primary: #cb7b37;
    --hub-primary-hover: #e09a5c;
    --hub-success: #4f9768;
    --hub-warning: #c19138;
    --hub-danger: #be524b;
    --hub-info: #447acb;
    --hub-profit: var(--hub-success);
    --hub-primary-rgb: 203, 123, 55;
    --hub-success-rgb: 79, 151, 104;
    --hub-warning-rgb: 193, 145, 56;
    --hub-danger-rgb: 190, 82, 75;
    --hub-info-rgb: 68, 122, 203;

    /* Cores das Estratégias (Dark Theme) */
    --hub-strategy-color-amber: #f59e0b;
    --hub-strategy-color-amber-rgb: 245, 158, 11;
    --hub-strategy-color-emerald: #10b981;
    --hub-strategy-color-emerald-rgb: 16, 185, 129;
    --hub-strategy-color-sapphire: #3b82f6;
    --hub-strategy-color-sapphire-rgb: 59, 130, 246;
    --hub-strategy-color-amethyst: #a78bfa;
    --hub-strategy-color-amethyst-rgb: 167, 139, 250;
    --hub-strategy-color-ruby: #ef4444;
    --hub-strategy-color-ruby-rgb: 239, 68, 68;
    --hub-strategy-color-turquoise: #06b6d4;
    --hub-strategy-color-turquoise-rgb: 6, 182, 212;

    /* Tipografia — Tamanhos (escala Carbon-inspired) */
    --hub-text-micro:        9px;   /* micro-anotações, indicadores de timeline */
    --hub-text-overline:    11px;   /* cabeçalhos de seção uppercase, versão no rail */
    --hub-text-label:       12px;   /* labels de formulário e descrições compactas */
    --hub-text-body-compact: 12px;  /* células de tabela, dados tabulares */
    --hub-text-body:        14px;   /* texto corrido, inputs, descrições */
    --hub-text-heading-sm:  16px;   /* títulos de card, KPIs secundários */
    --hub-text-heading:     20px;   /* títulos de drawer, KPIs principais, valores monetários */
    --hub-text-title:       26px;   /* h1 principal das views, cabeçalho de página */
    --hub-text-display:     28px;   /* KPIs grandes, números de destaque */
    --hub-text-hero:        34px;   /* avatar placeholder, hero de drawer */

    /* Tipografia — Pesos */
    --hub-weight-extralight: 200;
    --hub-weight-light: 300;
    --hub-weight-regular: 400;
    --hub-weight-medium: 500;
    --hub-weight-semibold: 600;
    --hub-weight-bold: 700;
    --hub-weight-chip: var(--hub-weight-semibold);        /* chips, badges, labels — bold suave */

    /* Transições canônicas */
    --hub-transition-fast:   120ms ease;   /* micro: cor, opacidade */
    --hub-transition-base:   160ms ease;   /* controles: botões, inputs */
    --hub-transition-slow:   220ms ease;   /* elementos maiores: cards, linhas */
    --hub-transition-move:   300ms ease;   /* painéis, view transitions */
    --hub-transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --hub-transition-spring: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Tipografia — Line-height */
    --hub-leading-tight: 1.12;
    --hub-leading-heading: 1.18;   /* line-height canônico para h1 de views */
    --hub-leading-snug: 1.25;
    --hub-leading-normal: 1.45;

    /* Tipografia — Letter-spacing */
    --hub-tracking-tight: 0;           /* texto corrido, títulos de heading */
    --hub-tracking-normal: 0.02em;     /* labels e body contextual */
    --hub-tracking-snug: 0.04em;       /* chips, badges e elementos compactos */
    --hub-tracking-base: 0.05em;       /* tags e labels de navegação */
    --hub-tracking-wide: 0.06em;       /* botões e ações uppercase */
    --hub-tracking-widest: 0.08em;     /* eyebrows e cabeçalhos de seção uppercase */
    --hub-tracking-ultra: 0.12em;      /* labels de seção em drawers e cards de destaque */

    /* Tipografia — Case (Text Transform) */
    --hub-case-eyebrow: uppercase;     /* cabeçalhos de coluna, labels, tags */
    --hub-case-chip: uppercase;        /* badges, status chips, semantic tags */

    /* Cores de texto sobre fundo semântico */
    --hub-text-on-success: #d9f3df;
    --hub-text-on-warning: #f3d89c;
    --hub-text-on-danger: #ffd5d1;
    --hub-text-on-info: #a9c3f4;
    --hub-text-on-primary: #140c06;
    --hub-text-on-color: rgba(255, 255, 255, 0.88);  /* texto sobre célula colorida (calendário) */

    /* Cores de texto na Navegação Lateral (Rail) */
    --hub-rail-text-ghost: rgba(255, 255, 255, 0.38);   /* versão apagada na rail */
    --hub-rail-text-dim: rgba(255, 255, 255, 0.42);     /* tabs inativos */
    --hub-rail-text-mid: rgba(255, 255, 255, 0.62);     /* contexto médio */
    --hub-rail-text-bright: rgba(255, 255, 255, 0.78);  /* hover/ativo na rail */

    /* Forma e Densidade */
    --hub-radius: 8px;
    --hub-control-height: 38px;
    --hub-button-height: 38px;
    --hub-view-section-gap: var(--hub-space-5);
    /* Tokens de Suporte (Fase 1) */
    --hub-input-bg: #050505;
    --hub-icon-filter: invert(1);
    --hub-overlay-bg: rgba(0, 0, 0, 0.58);
    --hub-shell-header-height: 68px;
    --hub-surface-soft: #17181b;
    --hub-overlay-veil: rgba(8, 10, 14, 0.26);
    --hub-overlay-panel: rgba(18, 18, 18, 0.95);
    --hub-overlay-panel-strong: rgba(18, 18, 18, 0.96);
    --hub-overlay-glass: rgba(18, 18, 18, 0.72);
    --hub-surface-elevated-soft: rgba(255, 255, 255, 0.012);
    --hub-surface-elevated: rgba(255, 255, 255, 0.015);
    --hub-surface-elevated-hover: rgba(255, 255, 255, 0.035);
    --hub-white-alpha-2: rgba(255, 255, 255, 0.025);
    --hub-white-alpha-3: rgba(255, 255, 255, 0.04);
    --hub-white-alpha-5: rgba(255, 255, 255, 0.05);
    --hub-white-alpha-8: rgba(255, 255, 255, 0.08);
    --hub-white-alpha-12: rgba(255, 255, 255, 0.12);
    --hub-white-alpha-15: rgba(255, 255, 255, 0.15);
    --hub-white-alpha-18: rgba(255, 255, 255, 0.18);
    --hub-border-subtle: rgba(255, 255, 255, 0.04);
    --hub-border-translucent: rgba(255, 255, 255, 0.08);
    --hub-highlight-context-bg: rgba(var(--hub-primary-rgb), 0.1);
    --hub-highlight-context-border: rgba(var(--hub-primary-rgb), 0.42);
    --hub-highlight-market-bg: rgba(var(--hub-warning-rgb), 0.08);
    --hub-highlight-market-border: rgba(var(--hub-warning-rgb), 0.22);

    /* Escala de espaçamento canônica */
    --hub-space-1:   4px;
    --hub-space-2:   8px;
    --hub-space-3:  12px;
    --hub-space-4:  16px;
    --hub-space-5:  20px;
    --hub-space-6:  24px;
    --hub-space-8:  32px;
    --hub-space-10: 40px;
    --hub-space-16: 64px;

    /* Tokens de escala e espaçamento complementares */
    --hub-radius-sm: 3px;          /* raio menor para elementos compactos dentro de containers */
    --hub-view-gutter: var(--hub-space-5);  /* padding lateral canônico das views */
    --hub-leading-loose: 1.65;     /* line-height para textos longos e descrições em mobile */

    /* Tokens de espaçamento interno de componentes */
    --hub-row-height:            50px;  /* alvo universal para linhas de tabela */
    --hub-cell-padding-y:        17px;  /* texto 15px → 17+17+15 = 49px ≈ 50px */
    --hub-cell-padding-y-action: 13px;  /* com botão 24px → 13+13+24 = 50px */
    --hub-cell-padding-y-dense:   7px;  /* Tarefas — sem alteração de altura */
    --hub-cell-padding-x: 12px;    /* padding horizontal de células th/td */
    --hub-section-head-padding: 10px 14px; /* padding de cabeçalhos de seção dentro de painéis */
    --hub-card-padding: 12px 14px; /* padding interno de cards e KPI blocks */
    --hub-panel-padding: 16px;     /* padding do container de painel (hub-table-panel) */
    --hub-empty-state-padding: 16px 14px; /* padding de estados vazios */

    /* Tokens semânticos complementares */
    --hub-accent: var(--hub-primary);                          /* alias de destaque genérico — aponta para primária */
    --hub-accent-border: rgba(var(--hub-primary-rgb), 0.35);   /* borda de destaque sobre accent */
    --hub-primary-soft: rgba(var(--hub-primary-rgb), 0.15);    /* fundo suave para chips/badges de contexto primário */
    --hub-surface-ground: rgba(255, 255, 255, 0.02);           /* superfície de fundo rebaixada dentro de painéis */
    --hub-warning-text: var(--hub-warning);                    /* cor de texto em contexto de aviso */
    --hub-text-caption: var(--hub-text-overline);               /* alias para textos caption */
    --hub-analytics-filter-block-height: 52px;                 /* altura mínima de bloco de filtros na Análise */
    --hub-toggle-thumb: #ffffff;   /* bolinha do toggle switch — branca fixa em ambos os temas */

    /* Tokens de contraste para texto sobre backgrounds semânticos no tema claro */
    --hub-cal-text-reserved: #8c4e1b;   /* âmbar escuro — texto de reserva sobre fundo laranja suave */
    --hub-cal-text-blocked: #832722;    /* vermelho escuro — texto de bloqueio sobre fundo danger suave */
    --hub-cal-text-free: #164223;       /* verde escuro — texto de disponível sobre fundo success suave */

    /* Sistema de Sombras */
    --hub-shadow-xs:    0 1px 3px rgba(0, 0, 0, 0.24);           /* cards compactos, popovers */
    --hub-shadow-sm:    0 4px 12px rgba(0, 0, 0, 0.28);          /* drawers leves, dropdowns */
    --hub-shadow-md:    0 12px 32px rgba(0, 0, 0, 0.42);         /* modais, painéis flutuantes */
    --hub-shadow-lg:    0 24px 64px rgba(0, 0, 0, 0.64);         /* modal de tela cheia, overlays */
    --hub-shadow-focus: 0 0 0 3px rgba(var(--hub-primary-rgb), 0.16); /* focus ring canônico */

    /* Escala de Camadas (z-index) */
    --hub-z-base:           1;      /* sticky interno, overlay local */
    --hub-z-raised:         10;     /* th sticky, labels flutuantes */
    --hub-z-sticky:         20;     /* barras sticky de view e filtros */
    --hub-z-app:            9999;   /* FSE: hub-app acima do WordPress */
    --hub-z-tooltip:        99999;  /* tooltips e menu mobile */
    --hub-z-overlay:        100000; /* modals, drawers, system menu, toast */
    --hub-z-overlay-raised: 100200; /* modals aninhados e layers sobre overlay */
    --hub-z-overlay-top:    100300; /* modals criticos */
    --hub-z-audit:          101000; /* modal de auditoria - topo absoluto */

    /* Casca de Modal / Drawer (Canônico v2) */
    --hub-modal-bg: var(--hub-surface);
    --hub-modal-shadow: var(--hub-shadow-md);
    --hub-modal-head-padding: 16px var(--hub-space-m);
    --hub-modal-body-padding: var(--hub-space-m);
    --hub-modal-footer-padding: 12px var(--hub-space-m);
    --hub-modal-width-sm: 480px;
    --hub-modal-width-md: 760px;
    --hub-modal-width-lg: 920px;
    --hub-drawer-width-narrow: 460px;
    --hub-drawer-width-record: clamp(640px, 48vw, 760px);
    --hub-drawer-width-wide: clamp(720px, 54vw, 880px);

    /* ==========================================
       2. TOKENS ESTRUTURAIS E DE APOIO
       ========================================== */
    /* Aliases T-shirt → escala numérica (retrocompatibilidade) */
    --hub-space-xs: var(--hub-space-2);   /*  8px */
    --hub-space-s:  var(--hub-space-4);   /* 16px */
    --hub-space-m:  var(--hub-space-6);   /* 24px */
    --hub-space-l:  var(--hub-space-10);  /* 40px */
    --hub-space-xl: var(--hub-space-16);  /* 64px */

    --hub-rose: #ba4a78;
    --hub-rose-rgb: 186, 74, 120;
    --hub-surface-3: #202020;
    --hub-rail-width: 52px;
    --hub-sidebar-width: 268px;
    --hub-strategy-sidebar-width: 366px;
    --hub-chart-height: 280px;
    --hub-table-primary-col-width: 280px;
    --hub-matrix-unit-col-width: 320px;
    --hub-matrix-value-col-width: 104px;
    --hub-font: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hub-font-mono: ui-monospace, "Cascadia Code", "Fira Code", Consolas, monospace;

    /* Aliases de retrocompatibilidade ativos (Categoria 3: Estruturais) */
    /* removed circular reference */
    --hub-card-bg: var(--hub-surface-raised);
    --hub-card-bg-soft: var(--hub-surface);
    --hub-card-border: var(--hub-border);
    --hub-top-block-height: var(--hub-shell-header-height);
}

/* --- Reset & Base --- */
html:has(.hub-app) {
    margin-top: 0 !important; /* FSE */
    padding-top: 0 !important; /* FSE */
}

html:has(.hub-app) #wpadminbar {
    display: none !important; /* FSE */
}

body:has(.hub-app) {
    overflow: hidden !important; /* FSE */
    padding: 0 !important; /* FSE */
    margin: 0 !important; /* FSE */
}

/* Achatamento universal de todos os contêineres ancestrais do Hub */
body:has(.hub-app) :has(.hub-app) {
    display: block !important; /* FSE */
    position: static !important; /* FSE */
    max-width: none !important; /* FSE */
    width: auto !important; /* FSE */
    height: auto !important; /* FSE */
    padding: 0 !important; /* FSE */
    margin: 0 !important; /* FSE */
    transform: none !important; /* FSE */
    perspective: none !important; /* FSE */
    filter: none !important; /* FSE */
    container-type: normal !important; /* FSE */
    contain: none !important; /* FSE */
    will-change: auto !important; /* FSE */
    box-shadow: none !important; /* FSE */
}

/* Ocultação cirúrgica de cabeçalhos, rodapés e títulos de página do tema */
body:has(.hub-app) header:not(.hub-app *),
body:has(.hub-app) footer:not(.hub-app *),
body:has(.hub-app) .wp-block-template-part:not(.hub-app *),
body:has(.hub-app) h1.wp-block-post-title,
body:has(.hub-app) .wp-block-post-title {
    display: none !important; /* FSE */
}


.hub-app,
.hub-app * {
    box-sizing: border-box;
}

/* --- Scrollbar --- */
.hub-app *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.hub-app *::-webkit-scrollbar-track {
    background: transparent;
}

.hub-app *::-webkit-scrollbar-thumb {
    border-radius: 8px; /* exceção intencional — scrollbar thumb, não é componente UI */
    background: rgba(255, 255, 255, 0.15);
}

.hub-app *::-webkit-scrollbar-thumb:hover {
    background: var(--hub-highlight-context-border);
}

/* --- Skeleton Loading --- */
.hub-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--hub-surface-soft);
    border-radius: var(--hub-radius);
    color: transparent !important;
}
.hub-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: var(--hub-skeleton-shimmer);
    animation: hub-shimmer 1.6s infinite;
}

/* --- Login --- */
.hub-app.hub-login-wrapper {
    align-items: center;
    justify-content: center;
    padding: var(--hub-space-m);
    background:
        radial-gradient(circle at 85% 0, rgba(var(--hub-primary-rgb), 0.12), transparent 30%),
        radial-gradient(circle at 0 100%, rgba(var(--hub-rose-rgb), 0.12), transparent 34%),
        var(--hub-bg);
}

.hub-login-box {
    width: min(100%, 430px);
    padding: var(--hub-space-l);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-sm);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
        var(--hub-surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(203, 123, 55, 0.08);
}

.hub-login-brand {
    margin-bottom: var(--hub-space-m);
    padding-bottom: var(--hub-space-m);
    border-bottom: 1px solid var(--hub-border);
    font-family: var(--hub-font);
    text-align: left;
}

.hub-login-desc {
    margin: 0 0 var(--hub-space-m);
    color: var(--hub-text-muted);
    font-size: var(--hub-text-body);
    line-height: var(--hub-leading-normal);
}

.hub-login-box form {
    display: grid;
    gap: var(--hub-space-s);
    margin: 0;
}

.hub-login-box p {
    margin: 0;
}

.hub-login-box label {
    display: grid;
    gap: var(--hub-space-2);
    color: var(--hub-text-muted);
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-bold);
    text-transform: var(--hub-case-eyebrow);
    letter-spacing: var(--hub-tracking-widest);
}

.hub-login-box input[type="text"],
.hub-login-box input[type="password"] {
    width: 100%;
    min-height: 42px;
    padding: 0 var(--hub-space-4);
    border: 1px solid var(--hub-border-strong);
    border-radius: var(--hub-radius-sm);
    outline: none;
    background: var(--hub-input-bg);
    color: var(--hub-text);
    font-family: var(--hub-font);
    font-size: var(--hub-text-card-title);
}

.hub-login-box input[type="text"]:focus,
.hub-login-box input[type="password"]:focus {
    border-color: rgba(203, 123, 55, 0.72);
    box-shadow: 0 0 0 3px rgba(203, 123, 55, 0.16);
}

.hub-login-box .login-remember label {
    display: flex;
    align-items: center;
    gap: var(--hub-space-3);
    text-transform: none;
    letter-spacing: var(--hub-tracking-tight);
    font-size: var(--hub-text-body-compact);
    font-weight: var(--hub-weight-semibold);
}

.hub-login-box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--hub-primary);
}

.hub-login-box .login-submit {
    margin-top: var(--hub-space-xs);
}

.hub-login-box input[type="submit"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(203, 123, 55, 0.55);
    border-radius: var(--hub-radius-sm);
    background: linear-gradient(180deg, var(--hub-primary-hover), var(--hub-primary));
    color: var(--hub-text-on-primary);
    cursor: pointer;
    font-family: var(--hub-font);
    font-size: var(--hub-text-body);
    font-weight: var(--hub-weight-bold);
    text-transform: var(--hub-case-eyebrow);
    letter-spacing: var(--hub-tracking-widest);
    transition: transform var(--hub-transition-base), box-shadow var(--hub-transition-base);
}

.hub-login-box input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(203, 123, 55, 0.18);
}

/* --- SPA Shell --- */
.hub-app {
    position: fixed !important; /* FSE */
    top: 0 !important; /* FSE */
    left: 0 !important; /* FSE */
    width: 100vw !important; /* FSE */
    height: 100vh !important; /* FSE */
    max-width: none !important; /* FSE */
    max-height: none !important; /* FSE */
    z-index: var(--hub-z-app) !important; /* FSE */
    display: flex;
    overflow: hidden;
    margin: 0 !important; /* FSE */
    border-radius: 0 !important; /* FSE */
    background:
        radial-gradient(circle at 85% 0, rgba(203, 123, 55, 0.12), transparent 30%),
        radial-gradient(circle at 0 100%, rgba(186, 74, 120, 0.12), transparent 34%),
        var(--hub-bg);
    color: var(--hub-text);
    font-family: var(--hub-font);
    font-weight: var(--hub-weight-extralight);
    line-height: var(--hub-leading-snug);
    letter-spacing: var(--hub-tracking-tight);
}

/* --- Tipografia Universal (Hub Design System §2) --- */
.hub-app,
.hub-app *,
.hub-app *::before,
.hub-app *::after {
    font-family: var(--hub-font);
}

/* --- Rail (Navegação Principal) --- */
.hub-rail {
    flex: 0 0 var(--hub-rail-width);
    width: var(--hub-rail-width);
    min-width: var(--hub-rail-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: var(--hub-space-3) 0;
    overflow: visible;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--hub-bg);
}

.hub-rail__brand {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hub-border-translucent);
    border-radius: 10px; /* exceção intencional — logo container da rail, tratamento de marca */
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    flex-shrink: 0;
}

.hub-rail__brand img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.hub-rail .hub-tabs {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0;
    margin: 0;
    padding-top: var(--hub-space-s);
    padding-bottom: var(--hub-space-s);
    overflow: visible;
}

.hub-rail .hub-tab {
    position: relative;
    height: 51px;
    min-height: 51px;
    display: grid;
    place-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.42);
    transition: color var(--hub-transition-fast);
}

/* Home — maior distância da logo */
.hub-rail .hub-tab[data-view-target="home"] {
    margin-top: 19px;
}

/* Separadores de grupo — linha fina acima */
.hub-rail .hub-tab[data-view-target="calendario"],
.hub-rail .hub-tab[data-view-target="estrategia"],
.hub-rail .hub-tab[data-view-target="relatorios"],
.hub-rail .hub-tab[aria-label="Tarefas"] {
    margin-top: var(--hub-space-1);
}

.hub-rail .hub-tab[data-view-target="calendario"]::before,
.hub-rail .hub-tab[data-view-target="estrategia"]::before,
.hub-rail .hub-tab[data-view-target="relatorios"]::before,
.hub-rail .hub-tab[aria-label="Tarefas"]::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

/* Tarefas — destaque especial: abre em qualquer tela */
.hub-rail .hub-tab[aria-label="Tarefas"] {
    color: rgba(255, 255, 255, 0.62);
}

.hub-rail .hub-tab[aria-label="Tarefas"] .hub-rail__icon {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--hub-radius-sm);
}

.hub-rail .hub-tab[aria-label="Tarefas"]:hover .hub-rail__icon {
    background: rgba(255, 255, 255, 0.12);
}

/* ── Identidade visual por módulo — cor no active, cinza no hover ── */

/* Hover genérico já existe em .hub-rail .hub-tab:hover .hub-rail__icon (rgba 255,255,255,0.07)
   — as regras abaixo apenas sobrescrevem o active com a cor do módulo */

.hub-rail .hub-tab[data-view-target="home"].is-active .hub-rail__icon      { background: rgba(156, 163, 175, 0.22); }
.hub-rail .hub-tab[data-view-target="home"].is-active                      { color: #9CA3AF; }

.hub-rail .hub-tab[data-view-target="calendario"].is-active .hub-rail__icon { background: rgba(52, 211, 153, 0.22); }
.hub-rail .hub-tab[data-view-target="calendario"].is-active                { color: #34D399; }

.hub-rail .hub-tab[data-view-target="unidades"].is-active .hub-rail__icon  { background: rgba(96, 165, 250, 0.22); }
.hub-rail .hub-tab[data-view-target="unidades"].is-active                  { color: #60A5FA; }

.hub-rail .hub-tab[data-view-target="reservas"].is-active .hub-rail__icon  { background: rgba(203, 123, 55, 0.22); }
.hub-rail .hub-tab[data-view-target="reservas"].is-active                  { color: #CB7B37; }

.hub-rail .hub-tab[data-view-target="estrategia"].is-active .hub-rail__icon { background: rgba(167, 139, 250, 0.22); }
.hub-rail .hub-tab[data-view-target="estrategia"].is-active                { color: #A78BFA; }

.hub-rail .hub-tab[data-view-target="simulador"].is-active .hub-rail__icon  { background: rgba(244, 114, 182, 0.22); }
.hub-rail .hub-tab[data-view-target="simulador"].is-active                  { color: #F472B6; }

.hub-rail .hub-tab[data-view-target="market"].is-active .hub-rail__icon    { background: rgba(251, 146, 60, 0.22); }
.hub-rail .hub-tab[data-view-target="market"].is-active                    { color: #FB923C; }

.hub-rail .hub-tab[data-view-target="relatorios"].is-active .hub-rail__icon { background: rgba(74, 222, 128, 0.22); }
.hub-rail .hub-tab[data-view-target="relatorios"].is-active                { color: #4ADE80; }

.hub-rail .hub-tab[data-view-target="analysis"].is-active .hub-rail__icon  { background: rgba(129, 140, 248, 0.22); }
.hub-rail .hub-tab[data-view-target="analysis"].is-active                  { color: #818CF8; }

.hub-rail .hub-tab[data-view-target="admin"].is-active .hub-rail__icon     { background: rgba(248, 113, 113, 0.22); }
.hub-rail .hub-tab[data-view-target="admin"].is-active                     { color: #F87171; }

.hub-rail .hub-tab:hover {
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.78);
}

.hub-rail .hub-tab:hover .hub-rail__icon {
    background: rgba(255, 255, 255, 0.07);
}

/* Tooltip ao hover */
.hub-rail .hub-tab::after,
.hub-rail-system-tab::after,
.hub-rail-settings-button::after {
    content: attr(aria-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: fit-content;
    transform: translateX(-4px);
    background: var(--hub-surface-raised);
    color: var(--hub-text);
    font-size: var(--hub-text-label);
    font-weight: var(--hub-weight-semibold);
    font-family: var(--hub-font);
    white-space: nowrap;
    padding: 5px var(--hub-space-3);
    border-radius: var(--hub-radius-sm);
    border: 1px solid var(--hub-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--hub-transition-fast), transform var(--hub-transition-fast);
    z-index: var(--hub-z-tooltip);
}

.hub-rail .hub-tab:hover::after,
.hub-rail-system-tab:hover::after,
.hub-rail-settings-button:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.hub-rail .hub-tab.is-active {
    background: transparent;
    border-color: transparent;
    color: var(--hub-primary);
}

.hub-rail .hub-tab.is-active .hub-rail__icon {
    background: transparent;
}

.hub-rail__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--hub-radius-sm);
    background: transparent;
    color: currentColor;
    line-height: 1;
    transition: background var(--hub-transition-fast);
}

.hub-rail__icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.0;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(6.5px);
}

/* Sistema (Integrações + Configurações) — footer do rail */
.hub-system-menu--rail {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: var(--hub-space-2) 0 var(--hub-space-1);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Tab de sistema (Integrações) — mesmo estilo dos tabs do nav */
.hub-system-menu--rail .hub-tab,
.hub-rail-system-tab {
    position: relative;
    height: 51px;
    min-height: 51px;
    width: 100%;
    display: grid;
    place-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: color var(--hub-transition-fast);
}

.hub-system-menu--rail .hub-tab:hover,
.hub-rail-system-tab:hover {
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.78);
}

.hub-system-menu--rail .hub-tab:hover .hub-rail__icon,
.hub-rail-system-tab:hover .hub-rail__icon {
    background: rgba(255, 255, 255, 0.07);
}

.hub-system-menu--rail .hub-tab.is-active,
.hub-rail-system-tab.is-active {
    background: transparent;
    border-color: transparent;
    color: var(--hub-primary);
}

.hub-system-menu--rail .hub-tab.is-active .hub-rail__icon,
.hub-rail-system-tab.is-active .hub-rail__icon {
    background: rgba(var(--hub-primary-rgb), 0.14);
}

.hub-rail-settings-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    padding: 0;
    border: 0;
    border-radius: var(--hub-radius-sm);
    background: transparent;
    box-shadow: none;
    justify-content: center;
    align-items: center;
    align-self: center;
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: color var(--hub-transition-fast), background var(--hub-transition-fast);
}

.hub-rail-settings-button:hover {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.07);
}

.hub-rail-settings-button svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.0;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Rail light — usa tokens canônicos via --hub-text-rgb e --hub-primary */

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab,
.hub-app[data-theme="light"] .hub-rail .hub-tab {
    color: rgba(var(--hub-text-rgb), 0.66);
}

html[data-hub-theme="light"] .hub-app .hub-rail,
.hub-app[data-theme="light"] .hub-rail {
    border-right: 1px solid rgba(var(--hub-text-rgb), 0.10);
    box-shadow: none;
}

html[data-hub-theme="light"] .hub-app .hub-rail__brand,
.hub-app[data-theme="light"] .hub-rail__brand {
    border-color: rgba(var(--hub-text-rgb), 0.10);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 18px rgba(var(--hub-text-rgb), 0.08);
}

html[data-hub-theme="light"] .hub-app .hub-rail__version,
.hub-app[data-theme="light"] .hub-rail__version {
    color: rgba(var(--hub-text-rgb), 0.52) !important;
}

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab,
.hub-app[data-theme="light"] .hub-rail .hub-tab,
html[data-hub-theme="light"] .hub-app .hub-rail-system-tab,
.hub-app[data-theme="light"] .hub-rail-system-tab {
    color: rgba(var(--hub-text-rgb), 0.55);
}

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab:hover,
.hub-app[data-theme="light"] .hub-rail .hub-tab:hover {
    background: transparent;
    color: var(--hub-text);
}

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab:hover .hub-rail__icon,
.hub-app[data-theme="light"] .hub-rail .hub-tab:hover .hub-rail__icon {
    background: rgba(var(--hub-primary-rgb), 0.10);
}

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab.is-active,
.hub-app[data-theme="light"] .hub-rail .hub-tab.is-active {
    background: transparent;
    color: var(--hub-primary);
}

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab.is-active .hub-rail__icon,
.hub-app[data-theme="light"] .hub-rail .hub-tab.is-active .hub-rail__icon {
    background: rgba(var(--hub-primary-rgb), 0.14);
}

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab[aria-label="Tarefas"],
.hub-app[data-theme="light"] .hub-rail .hub-tab[aria-label="Tarefas"] {
    color: rgba(var(--hub-text-rgb), 0.72);
}

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab[aria-label="Tarefas"] .hub-rail__icon,
.hub-app[data-theme="light"] .hub-rail .hub-tab[aria-label="Tarefas"] .hub-rail__icon {
    background: rgba(var(--hub-text-rgb), 0.06);
}

html[data-hub-theme="light"] .hub-app .hub-rail-settings-button,
.hub-app[data-theme="light"] .hub-rail-settings-button {
    color: rgba(var(--hub-text-rgb), 0.55);
    background: transparent;
    border: 0;
}

html[data-hub-theme="light"] .hub-app .hub-rail-settings-button:hover,
.hub-app[data-theme="light"] .hub-rail-settings-button:hover {
    color: var(--hub-text);
    background: rgba(var(--hub-primary-rgb), 0.10);
}

html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab[data-view-target="calendario"]::before,
html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab[data-view-target="estrategia"]::before,
html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab[data-view-target="relatorios"]::before,
html[data-hub-theme="light"] .hub-app .hub-rail .hub-tab[aria-label="Tarefas"]::before,
.hub-app[data-theme="light"] .hub-rail .hub-tab[data-view-target="calendario"]::before,
.hub-app[data-theme="light"] .hub-rail .hub-tab[data-view-target="estrategia"]::before,
.hub-app[data-theme="light"] .hub-rail .hub-tab[data-view-target="relatorios"]::before,
.hub-app[data-theme="light"] .hub-rail .hub-tab[aria-label="Tarefas"]::before {
    background: rgba(var(--hub-text-rgb), 0.12);
}

html[data-hub-theme="light"] .hub-app .hub-system-menu--rail,
.hub-app[data-theme="light"] .hub-system-menu--rail {
    border-top-color: rgba(var(--hub-text-rgb), 0.10);
}

.hub-rail .hub-notification-badge {
    top: 7px;
    right: 8px;
}

.hub-rail .hub-system-menu {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    margin-top: auto;
}

.hub-rail .hub-system-menu__panel {
    right: auto;
    bottom: 0;
    left: calc(100% + var(--hub-space-xs));
}

/* Neutraliza tints por view no tab inteiro — ativação via ícone container apenas */
.hub-app[data-view] .hub-rail .hub-tab.is-active {
    background: transparent;
}

.hub-app[data-view] .hub-rail .hub-tab.is-active::before {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Sidebar (Painel Contextual) --- */
.hub-sidebar {
    flex: 0 0 var(--hub-sidebar-width);
    width: var(--hub-sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--hub-space-s);
    padding: var(--hub-space-s);
    overflow-y: auto;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
        radial-gradient(circle at 0 100%, rgba(186, 74, 120, 0.13), transparent 34%),
        var(--hub-bg);
    border-right: 1px solid var(--hub-border);
    transition: flex-basis var(--hub-transition-slow), width var(--hub-transition-slow), padding var(--hub-transition-slow), border-color var(--hub-transition-slow);
}

.hub-app.is-context-collapsed .hub-sidebar {
    flex-basis: 0;
    width: 0;
    padding-right: 0;
    padding-left: 0;
    border-right-color: transparent;
}

.hub-app.is-context-collapsed .hub-context-toggle {
    left: calc(var(--hub-rail-width) - 15px);
}

.hub-app.is-context-collapsed .hub-context-toggle span {
    transform: rotate(180deg) translateX(1px);
}

.hub-context-toggle {
    position: fixed;
    top: 50%;
    left: calc(var(--hub-rail-width) + var(--hub-sidebar-width) - 15px);
    z-index: var(--hub-z-overlay);
    width: 30px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--hub-primary-rgb), 0.38);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(var(--hub-primary-rgb), 0.15), rgba(255, 255, 255, 0.025)),
        var(--hub-bg);
    color: var(--hub-primary-hover);
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48);
    transition: left var(--hub-transition-slow), background var(--hub-transition-base), border-color var(--hub-transition-base), color var(--hub-transition-base);
}

@media (min-width: 861px) {
    .hub-context-toggle {
        display: none;
    }

    .hub-app:not([data-view="estrategia"]):not([data-view="simulador"]) .hub-sidebar {
        flex-basis: 0;
        width: 0;
        padding-right: 0;
        padding-left: 0;
        border-right-color: transparent;
    }

    .hub-app[data-view="estrategia"] .hub-sidebar,
    .hub-app[data-view="simulador"] .hub-sidebar,
    .hub-app.is-context-collapsed[data-view="estrategia"] .hub-sidebar,
    .hub-app.is-context-collapsed[data-view="simulador"] .hub-sidebar {
        flex-basis: 0;
        width: 0;
        padding-right: 0;
        padding-left: 0;
        border-right-color: transparent;
    }
}

.hub-app[data-view="estrategia"] .hub-sidebar,
.hub-app[data-view="simulador"] .hub-sidebar,
.hub-app[data-view="estrategia"] .hub-context-toggle,
.hub-app[data-view="simulador"] .hub-context-toggle {
    display: none;
}

.hub-context-toggle span {
    display: block;
    font-size: var(--hub-text-page);
    line-height: 1;
    transform: translateX(-1px);
}

.hub-context-toggle:hover {
    border-color: rgba(var(--hub-primary-rgb), 0.72);
    background: rgba(var(--hub-primary-rgb), 0.18);
    color: var(--hub-text);
}

.hub-app.is-context-collapsed .hub-context-toggle {
    left: calc(var(--hub-rail-width) + 6px);
}

.hub-app.is-context-collapsed .hub-context-toggle span {
    transform: translateX(1px) rotate(180deg);
}

.hub-sidebar-divider {
    margin: var(--hub-space-xs) 0 0;
    padding-bottom: var(--hub-space-1);
    border-bottom: 1px solid var(--hub-border);
    color: var(--hub-text-muted);
    font-size: var(--hub-text-eyebrow);
    line-height: 1.2;
    font-weight: var(--hub-weight-semibold);
    letter-spacing: var(--hub-tracking-ultra);
    text-transform: var(--hub-case-eyebrow);
}

/* --- Main Content Area --- */
.hub-app .hub-main {
    flex: 1 !important; /* FSE */
    min-width: 0 !important; /* FSE */
    height: 100vh !important; /* FSE */
    overflow-y: auto !important; /* FSE */
    overflow-x: hidden !important; /* FSE */
    padding: var(--hub-view-section-gap) !important; /* FSE */
    background: transparent !important; /* FSE */
    max-width: none !important; /* FSE */
    margin: 0 !important; /* FSE */
    width: auto !important; /* FSE */
}


/* ==========================================
   Hub Details List — Canônico de Chave-Valor
   ========================================== */
.hub-details-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hub-details-list div,
.hub-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--hub-space-2) 0;
    border-bottom: 1px dashed var(--hub-border);
}

.hub-details-list div:last-child,
.hub-details-list li:last-child {
    border-bottom: none;
}

.hub-details-list dt,
.hub-details-list .hub-details-label {
    color: var(--hub-text-muted);
    font-size: var(--hub-text-label);
    margin: 0;
}

.hub-details-list dd,
.hub-details-list .hub-details-value {
    color: var(--hub-text);
    font-weight: var(--hub-weight-extralight);
    font-size: var(--hub-text-body-compact);
    margin: 0;
}

.hub-muted-note {
    color: var(--hub-text-muted);
    font-size: var(--hub-text-body);
    font-weight: var(--hub-weight-extralight);
    line-height: var(--hub-leading-snug);
    margin: var(--hub-space-xs) 0;
}

/* --- TEMA CLARO (Light Mode) --- */
html[data-hub-theme="light"],
.hub-app[data-theme="light"] {
    color-scheme: light;
    -webkit-font-smoothing: antialiased;
    /* Superfícies */
    --hub-bg: #f0ede8;
    --hub-surface: #fafaf8;
    --hub-surface-raised: #ffffff;
    --hub-surface-soft: #f5f2ed;
    --hub-surface-3: #ececea;
    --hub-surface-hover: rgba(0, 0, 0, 0.03);
    --hub-glass-bg: rgba(255, 255, 255, 0.75);
    --hub-glass-border: rgba(0, 0, 0, 0.06);
    --hub-skeleton-shimmer: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03) 20%, rgba(0, 0, 0, 0.06) 60%, transparent);
    --hub-surface-elevated-soft: rgba(0, 0, 0, 0.012);
    --hub-surface-elevated: rgba(0, 0, 0, 0.015);
    --hub-surface-elevated-hover: rgba(0, 0, 0, 0.035);
    --hub-surface-ground: rgba(0, 0, 0, 0.025);

    /* Bordas */
    --hub-border: rgba(0, 0, 0, 0.08);
    --hub-border-strong: rgba(0, 0, 0, 0.14);
    --hub-border-subtle: rgba(0, 0, 0, 0.04);
    --hub-border-translucent: rgba(0, 0, 0, 0.07);

    /* Texto */
    --hub-text: #1a1918;
    --hub-text-rgb: 26, 25, 24;
    --hub-text-muted: #6b6560;
    --hub-text-inverse: #ffffff;

    /* Ação e Estados semânticos do tema claro */
    --hub-success: #047857;
    --hub-success-rgb: 4, 120, 87;
    --hub-danger: #b91c1c;
    --hub-danger-rgb: 185, 28, 28;
    --hub-info: #1d4ed8;
    --hub-info-rgb: 29, 79, 216;

    /* Inputs */
    --hub-input-bg: #ffffff;
    --hub-icon-filter: none;

    /* Overlays */
    --hub-overlay-bg: rgba(0, 0, 0, 0.42);
    --hub-overlay-veil: rgba(32, 27, 22, 0.12);
    --hub-overlay-panel: rgba(250, 250, 248, 0.97);
    --hub-overlay-panel-strong: rgba(250, 250, 248, 0.98);
    --hub-overlay-glass: rgba(250, 250, 248, 0.84);
    --hub-modal-bg: var(--hub-surface);
    --hub-modal-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);

    /* Sombras adaptadas ao tema claro */
    --hub-shadow-xs:    0 1px 3px rgba(0, 0, 0, 0.07);
    --hub-shadow-sm:    0 4px 12px rgba(0, 0, 0, 0.09);
    --hub-shadow-md:    0 12px 32px rgba(0, 0, 0, 0.11);
    --hub-shadow-lg:    0 24px 64px rgba(0, 0, 0, 0.14);
    --hub-shadow-focus: 0 0 0 3px rgba(var(--hub-primary-rgb), 0.22);

    /* Tokens white-alpha → equivalentes black-alpha no tema claro */
    --hub-white-alpha-2: rgba(0, 0, 0, 0.025);
    --hub-white-alpha-3: rgba(0, 0, 0, 0.04);
    --hub-white-alpha-5: rgba(0, 0, 0, 0.06);
    --hub-white-alpha-8: rgba(0, 0, 0, 0.09);
    --hub-white-alpha-12: rgba(0, 0, 0, 0.13);
    --hub-white-alpha-15: rgba(0, 0, 0, 0.16);
    --hub-white-alpha-18: rgba(0, 0, 0, 0.20);

    /* Texto sobre fundos semânticos (badges, chips) no tema claro */
    --hub-text-on-success: #164223;
    --hub-text-on-warning: #614407;
    --hub-text-on-danger: #631711;
    --hub-text-on-info: #142d5e;
    --hub-text-on-primary: #ffffff;

    /* Cores das Estratégias (Light Theme) */
    --hub-strategy-color-amber: #b45309;
    --hub-strategy-color-amber-rgb: 180, 83, 9;
    --hub-strategy-color-emerald: #047857;
    --hub-strategy-color-emerald-rgb: 4, 120, 87;
    --hub-strategy-color-sapphire: #1d4ed8;
    --hub-strategy-color-sapphire-rgb: 29, 78, 216;
    --hub-strategy-color-amethyst: #6d28d9;
    --hub-strategy-color-amethyst-rgb: 109, 40, 217;
    --hub-strategy-color-ruby: #b91c1c;
    --hub-strategy-color-ruby-rgb: 185, 28, 28;
    --hub-strategy-color-turquoise: #0f766e;
    --hub-strategy-color-turquoise-rgb: 15, 118, 110;

    /* Cores de texto na Navegação Lateral (Rail) Claro */
    --hub-rail-text-ghost: rgba(0, 0, 0, 0.38);
    --hub-rail-text-dim: rgba(0, 0, 0, 0.42);
    --hub-rail-text-mid: rgba(0, 0, 0, 0.62);
    --hub-rail-text-bright: rgba(0, 0, 0, 0.78);

    /* Redeclaração de aliases em risco para garantir recalculo */
    --hub-accent: var(--hub-primary);
    --hub-accent-border: rgba(var(--hub-primary-rgb), 0.35);
    --hub-warning-text: var(--hub-warning);
    --hub-card-bg: var(--hub-surface-raised);
    --hub-card-bg-soft: var(--hub-surface);
    --hub-card-border: var(--hub-border);
}

/* --- Classes Utilitárias para Cores de Estratégias --- */
.hub-strategy-color-amber { color: var(--hub-strategy-color-amber) !important; }
.hub-strategy-color-emerald { color: var(--hub-strategy-color-emerald) !important; }
.hub-strategy-color-sapphire { color: var(--hub-strategy-color-sapphire) !important; }
.hub-strategy-color-amethyst { color: var(--hub-strategy-color-amethyst) !important; }
.hub-strategy-color-ruby { color: var(--hub-strategy-color-ruby) !important; }
.hub-strategy-color-turquoise { color: var(--hub-strategy-color-turquoise) !important; }

.hub-strategy-bg-amber { background-color: var(--hub-strategy-color-amber) !important; }
.hub-strategy-bg-emerald { background-color: var(--hub-strategy-color-emerald) !important; }
.hub-strategy-bg-sapphire { background-color: var(--hub-strategy-color-sapphire) !important; }
.hub-strategy-bg-amethyst { background-color: var(--hub-strategy-color-amethyst) !important; }
.hub-strategy-bg-ruby { background-color: var(--hub-strategy-color-ruby) !important; }
.hub-strategy-bg-turquoise { background-color: var(--hub-strategy-color-turquoise) !important; }

/* --- Animações Globais Premium --- */
@keyframes hub-shimmer {
    100% { transform: translateX(100%); }
}
@keyframes hub-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--hub-success-rgb), 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(var(--hub-success-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--hub-success-rgb), 0); }
}
@keyframes hub-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hub-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

