/* ==========================================================================
   LiciMaster — App CSS
   Estrutura em camadas (CSS Cascade Layers)
   Ordem: reset, tokens, base, legacy, editorial, components, overrides
   - "legacy" envolve TODO o CSS pré-existente (tokens, componentes, páginas)
   - "tokens" adiciona variáveis editoriais novas (não sobrescreve as antigas)
   - "editorial" entra depois de legacy e ganha por cascata sem !important
   - "overrides" para correções pontuais que precisam vencer tudo
   ========================================================================== */
@layer reset, tokens, base, legacy, editorial, components, overrides;

/* ============ Tokens — Design System LiciMaster (Convergência Soberana) ============ */
@layer tokens {
    :root {
        /* Escada de Superfícies Escuras (Hero, Mapa, Monitoramento, Auth Brand) */
        --lm-canvas-dark: #090D16;
        --lm-surface-dark: #0F172A;
        --lm-surface-dark-2: #162033;
        --lm-border-dark: rgba(255, 255, 255, 0.08);
        --lm-border-dark-strong: rgba(255, 255, 255, 0.14);

        /* Escada de Superfícies Claras (Corpo, Tabelas, Formulários) */
        --lm-canvas-light: #FFFFFF;
        --lm-canvas-mineral: #F4F6F9;
        --lm-surface-subtle: #F8FAFC;
        --lm-border-light: #E2E8F0;
        --lm-border-strong: #CBD5E1;

        /* Hierarquia de Tinta (Tipografia) */
        --lm-ink-primary: #090D16;
        --lm-ink-secondary: #334155;
        --lm-ink-muted: #64748B;
        --lm-ink-on-dark: #F8FAFC;
        --lm-ink-on-dark-muted: #94A3B8;

        /* Acento Cromático Único (Signal Cobalt) */
        --lm-accent: #2563EB;
        --lm-accent-hover: #1D4ED8;
        --lm-accent-bright: #3B82F6;
        --lm-accent-cyan: #38BDF8;
        --lm-accent-soft: rgba(37, 99, 235, 0.08);

        /* Indicadores Semânticos de Sistema */
        --lm-status-ok: #10B981;
        --lm-status-warn: #1D4ED8;
        --lm-status-danger: #EF4444;

        /* Mapeamento de compatibilidade para páginas internas */
        --color-ink: #090D16;
        --color-ink-soft: #1E293B;
        --color-paper: #F8FAFC;
        --color-paper-2: #F1F5F9;
        --color-paper-3: #E2E8F0;
        --color-rule: #E2E8F0;
        --color-rule-strong: #CBD5E1;
        --color-copper: #2563EB;
        --color-copper-hover: #1D4ED8;
        --color-amber-bright: #3B82F6;
        --color-amber-soft: #DBEAFE;
        --color-emerald: #059669;
        --color-emerald-bright: #10B981;
        --color-emerald-soft: #D1FAE5;

        /* Sistema Tipográfico (Neo-Grotesco & Tabular Técnico — Zero Serifas Clichês) */
        --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
        --font-serif: var(--font-display);

        /* Escala Tipográfica */
        --fs-display-xl: clamp(2.35rem, 4.1vw, 3.55rem);
        --fs-display-lg: clamp(1.85rem, 3.1vw, 2.65rem);
        --fs-h2: clamp(1.65rem, 2.6vw, 2.25rem);
        --fs-h3: 1.25rem;
        --fs-body: 1rem;
        --fs-small: 0.875rem;
        --fs-caption: 0.75rem;

        /* Entrelinhas & Tracking */
        --lh-tight: 1.08;
        --lh-snug: 1.2;
        --lh-body: 1.6;
        --tracking-display: -0.035em;
        --tracking-heading: -0.025em;
        --tracking-eyebrow: 0.06em;
        --tracking-nav: -0.01em;

        /* Grid & Espaçamento (Sistema 8pt) */
        --space-1: 4px;
        --space-2: 8px;
        --space-3: 12px;
        --space-4: 16px;
        --space-5: 24px;
        --space-6: 32px;
        --space-8: 48px;
        --space-10: 64px;
        --space-12: 96px;

        --radius-editorial: 8px;
        --radius-card: 12px;
        --measure: 66ch;
        --grid-max: 1240px;
        --grid-gutter: clamp(1.25rem, 3.5vw, 2.5rem);

        /* Transições */
        --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
        --dur-fast: 150ms;
        --dur-base: 240ms;
        --dur-slow: 450ms;
    }
}

/* ==========================================================================
   LEGACY — todo o CSS pré-existente (não tocar no conteúdo).
   Páginas internas dependem destes seletores; o layer "editorial" abaixo
   sobrescreve o que precisa via cascata de camadas, sem !important.
   ========================================================================== */
@layer legacy {

/* ============ Design Tokens ============ */
:root {
    --color-primary: #0f172a;
    --color-primary-600: #1e293b;
    --color-primary-700: #334155;
    --color-primary-800: #0f172a;
    --color-primary-50: #f1f5f9;
    --color-primary-100: #e2e8f0;
    --color-primary-200: #cbd5e1;

    --color-accent: #1D4ED8;
    --color-accent-600: #1E40AF;
    --color-accent-50: #F2F7FF;

    --color-bg: #F5F7FA;
    --color-surface: #ffffff;
    --color-border: #DDE3EA;
    --color-border-strong: #C3CCD8;

    --color-text: #0F1B2D;
    --color-text-muted: #5B6B82;
    --color-text-subtle: #8A97AB;

    --color-danger: #991b1b;
    --color-danger-bg: #fef2f2;
    --color-danger-border: #fecaca;
    --color-success: #14532d;
    --color-success-bg: #f0fdf4;
    --color-success-border: #bbf7d0;
    --color-warning-bg: #F2F7FF;
    --color-warning: #1E40AF;

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 10px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px -4px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.08), 0 16px 32px -12px rgba(15, 23, 42, 0.12);

    --transition: 140ms cubic-bezier(0.2, 0, 0, 1);

    --gradient-primary: none;
    --gradient-subtle: none;

    --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

a { color: var(--color-primary-600); }

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============ Top Nav ============ */

/* Versão não-clicável do nav-user (operadores) */

/* ── Nav user dropdown (admin only) ── */

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

/* ============ Buttons ============ */

/* ============ Forms / Cards ============ */

/* ============ Results Table ============ */

/* ============ Pagination ============ */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: #F8FAFC;
    gap: 1rem;
}
.pagination-info {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.btn-pagination, .btn-pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--color-text);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    line-height: 1;
    gap: 0.3rem;
    white-space: nowrap;
}
.btn-pagination { padding: 0 0.65rem; }
.btn-pagination:hover:not(:disabled), .btn-pagination-num:hover {
    background: var(--color-primary-50);
    border-color: var(--color-primary-300, #7dd3fc);
    color: var(--color-primary-700, #0369a1);
}
.btn-pagination:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    background: var(--color-bg);
}
.btn-pagination-num.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* ============ States ============ */

.loading {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--color-text-muted);
}

/* ============ Auth pages ============ */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ============ Verify Email page ============ */

.verify-email-addr {
    color: var(--color-primary);
    font-weight: 600;
    word-break: break-all;
}

.verify-code-input {
    width: 100%;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.55rem;
    padding: 1rem 1.25rem !important;
    border-radius: var(--radius) !important;
    border: 2px solid var(--color-primary-100) !important;
    background: var(--color-primary-50) !important;
    color: var(--color-primary) !important;
    font-family: 'Courier New', Courier, monospace;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.verify-code-input:focus {
    outline: none;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.verify-code-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--color-text-subtle);
}

.verify-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-verify 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin-verify {
    to { transform: rotate(360deg); }
}

.verify-resend-block {
    margin-top: 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.verify-resend-label {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.verify-timer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.verify-timer-track {
    width: 180px;
    height: 4px;
    background: var(--color-primary-100);
    border-radius: 999px;
    overflow: hidden;
}

.verify-timer-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 999px;
    transition: width 1s linear;
}

.verify-timer-text {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
}

.verify-resend-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-600);
    padding: 0.25rem 0.5rem;
}

/* Reset-password success state */

/* Team invite hint */

/* ============ Acesso Negado (403) ============ */

/* ============ Alerts ============ */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

/* ============ Landing / Hero ============ */

/* ============ Dashboard ============ */

/* ============ Page headers ============ */

/* Segmented control (period tabs) */

/* ============ Dashboard stats ============ */

/* Multi-select chips */

.chip {
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    line-height: 1.2;
}
.chip:hover { border-color: var(--color-text); }

/* ============ Profile page ============ */

/* ============ Form validation ============ */

/* ============ Global loading overlay ============ */

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ Toast notifications ============ */

.toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: all;
    animation: toast-slide-in 0.2s ease;
}

@keyframes toast-slide-in {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ============ Notification Bell ============ */
.notif-bell-wrapper {
    position: relative;
    display: inline-flex;
}

.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

.notif-bell--active {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-danger);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

.notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
}

/* ============ Blazor error ============ */
#blazor-error-ui {
    background: #E7F0FF;
    color: #1E40AF;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #BFD3F5;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.7rem;
}

/* ============ Home cards ============ */

/* ============ Responsive ============ */
@media (max-width: 640px) {
    
    
    .main { padding: 1.25rem 1rem; }
    
    
    
}

/* ============ Home Page ============ */

/* Hero */

/* Stats Strip */

/* Main grid */

/* Sidebar */

/* Feed */

/* Tag verde para filtro "Meu perfil" */

/* Link inline usado no empty-state */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
}
.btn-link:hover { opacity: 0.75; }

/* Tabela com larguras fixas para evitar colapso de colunas */

/* Célula Objeto: usa inner-flex para alinhar o dot sem quebrar display de td */

/* Home responsive */

/* ============ Register — Plan Cards ============ */

/* Spinner inline no campo */

/* Plan Cards */

/* ============ Team Page ============ */
/* ============ Team Page ============ */

@keyframes spin { to { transform: rotate(360deg); } }

/* Subscription card */

@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.65; } }

/* Seats card */

/* Pending upgrade banner */

/* Members section */

/* ============ Modais ============ */

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translate(-50%,-46%); opacity:.7; } to { transform: translate(-50%,-50%); opacity:1; } }

/* Upgrade wizard */

/* Reset senha */

/* ── CNAE section in Register form ──────────────────────────────────────── */

/* ============ Activity Hub (Home Sidebar) ============ */

/* Wrapper for all hub segments */

/* Individual segment: title + list grouped together */

/* Segment label row — same horizontal rhythm as hub-items */

/* Empty state tips */

/* Admin "Visão Master" callout */

/* ── Vistos Recentemente (Home sidebar) ─────────────────────────────────── */

/* ── Home CTA card (Ver licitações) ─────────────────────────────────────── */

/* ── Team: upgrade link, last login, favorites ───────────────────────────── */

/* ── Profile: plan section ──────────────────────────────────────────────── */

/* ── Dashboard improved charts ──────────────────────────────────────────── */

} /* ===== fim de @layer legacy ===== */

/* ==========================================================================
   DESIGN SYSTEM LICIMASTER — DIREÇÃO "CONVERGÊNCIA SOBERANA"
   Arquitetura: Dual-Canvas (Obsidian Slate #090D16 + Pure Surface #FFFFFF / Mineral #F4F6F9)
   Acento Único: Signal Cobalt (#2563EB)
   Tipografia: Plus Jakarta Sans + Inter + IBM Plex Mono (tabular-nums)
   ========================================================================== */
@layer editorial {

/* ── 1. IDENTIDADE VISUAL & LOGOTIPO (BrandLogo.razor) ── */
.lm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    user-select: none;
    transition: opacity var(--dur-fast) var(--ease-editorial);
}
.lm-brand:hover {
    opacity: 0.88;
}
.lm-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.lm-brand--sm .lm-brand__mark { width: 28px; height: 28px; }
.lm-brand--lg .lm-brand__mark { width: 38px; height: 38px; }

.lm-brand__mark svg {
    width: 100%;
    height: 100%;
    display: block;
}
.lm-brand__mark-bg     { fill: #090D16; }
.lm-brand__mark-border { stroke: #1E293B; }
.lm-brand__mark-axis   { stroke: #F8FAFC; }
.lm-brand__mark-vector { stroke: #3B82F6; }
.lm-brand__mark-node   { fill: #60A5FA; }

.lm-brand--inverted .lm-brand__mark-bg     { fill: #111827; }
.lm-brand--inverted .lm-brand__mark-border { stroke: rgba(255, 255, 255, 0.14); }

.lm-brand__wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: -0.035em;
    color: var(--lm-ink-primary);
    line-height: 1;
}
.lm-brand--sm .lm-brand__wordmark { font-size: 1.05rem; }
.lm-brand--lg .lm-brand__wordmark { font-size: 1.35rem; }
.lm-brand--inverted .lm-brand__wordmark { color: #F8FAFC; }

/* ── 2. NAVEGAÇÃO PRINCIPAL E HEADER (MainLayout.razor) ── */

/* Links da área logada */

/* Hamburger & Drawer Mobile */

/* ── 3. SISTEMA DE BOTÕES E UTILITÁRIOS GLOBAIS ── */

/* ── 4. HERO E PALCO TERRITORIAL (Landing.razor) ── */

/* Faixa horizontal de métricas na base do Hero (sem caixas, estilo Linear/Mercury) */

/* ── 5. CONSOLE DE INTELIGÊNCIA TERRITORIAL (BrazilRadarMap.razor) ── */
.lm-map-console {
    background: #0B101B;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    box-shadow:
        0 28px 60px -15px rgba(2, 6, 23, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lm-map-console__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.65);
    border-bottom: 1px solid var(--lm-border-dark);
}
.lm-map-console__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.lm-map-console__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lm-status-ok);
    box-shadow: 0 0 8px var(--lm-status-ok);
}
.lm-map-console__title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: #E2E8F0;
    letter-spacing: 0.02em;
}

.lm-map-console__sectors {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.lm-map-console__sectors::-webkit-scrollbar { display: none; }

.lm-map-console__sector-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #94A3B8;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--dur-fast);
}
.lm-map-console__sector-tab:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.04);
}
.lm-map-console__sector-tab.is-active {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(59, 130, 246, 0.45);
    color: #FFFFFF;
}
.lm-map-console__sector-code {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: #60A5FA;
}

.lm-map-console__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    background: #090D16;
}
.lm-map-console__canvas {
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lm-map-svg {
    width: 100%;
    max-height: 390px;
    height: auto;
    display: block;
}
.lm-map-svg__grid line {
    stroke: rgba(148, 163, 184, 0.07);
    stroke-width: 1;
}
.lm-map-svg__grid text {
    fill: rgba(148, 163, 184, 0.35);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
}
.lm-map-svg__land {
    stroke: rgba(96, 165, 250, 0.38);
    stroke-width: 1.25;
}
.lm-map-svg__regions path {
    fill: none;
    stroke: rgba(148, 163, 184, 0.12);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}
.lm-map-svg__focus-ring {
    fill: none;
    stroke: rgba(59, 130, 246, 0.22);
    stroke-width: 1;
    transition: all 0.45s var(--ease-editorial);
}
.lm-map-svg__focus-ring--outer {
    stroke-dasharray: 3 5;
    stroke: rgba(56, 189, 248, 0.14);
}
.lm-map-svg__arc-base {
    fill: none;
    stroke: rgba(148, 163, 184, 0.14);
    stroke-width: 1;
}
.lm-map-svg__arc-base.is-active {
    stroke: rgba(59, 130, 246, 0.55);
    stroke-width: 1.5;
}
.lm-map-svg__arc-pulse {
    fill: none;
    stroke: #60A5FA;
    stroke-width: 1.6;
    stroke-dasharray: 8 140;
    animation: lmArcFlow 3.6s linear infinite;
    opacity: 0.55;
}
.lm-map-svg__arc-pulse.is-active {
    stroke: #38BDF8;
    stroke-width: 2.1;
    opacity: 1;
}
@keyframes lmArcFlow {
    from { stroke-dashoffset: 148; }
    to   { stroke-dashoffset: 0; }
}

.lm-map-svg__node {
    cursor: pointer;
}
.lm-map-svg__node-sonar {
    fill: rgba(59, 130, 246, 0.16);
    animation: lmNodePulse 2.6s ease-out infinite;
}
.lm-map-svg__node.is-selected .lm-map-svg__node-sonar {
    fill: rgba(56, 189, 248, 0.28);
}
@keyframes lmNodePulse {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.55); opacity: 0; }
}
.lm-map-svg__node-halo {
    fill: rgba(15, 23, 42, 0.9);
    stroke: rgba(96, 165, 250, 0.55);
    stroke-width: 1.2;
}
.lm-map-svg__node.is-selected .lm-map-svg__node-halo {
    stroke: #38BDF8;
    stroke-width: 1.8;
}
.lm-map-svg__node-core {
    fill: #60A5FA;
}
.lm-map-svg__node.is-selected .lm-map-svg__node-core {
    fill: #FFFFFF;
}

.lm-map-svg__tag {
    opacity: 0.72;
    transition: opacity var(--dur-fast);
}
.lm-map-svg__node:hover .lm-map-svg__tag,
.lm-map-svg__node.is-selected .lm-map-svg__tag {
    opacity: 1;
}
.lm-map-svg__tag-bg {
    fill: rgba(9, 13, 22, 0.92);
    stroke: rgba(148, 163, 184, 0.25);
    stroke-width: 1;
}
.lm-map-svg__node.is-selected .lm-map-svg__tag-bg {
    stroke: #3B82F6;
    fill: #0F172A;
}
.lm-map-svg__tag-uf {
    fill: #F8FAFC;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
}
.lm-map-svg__tag-val {
    fill: #94A3B8;
    font-family: var(--font-mono);
    font-size: 9px;
}
.lm-map-svg__node.is-selected .lm-map-svg__tag-val {
    fill: #60A5FA;
}

/* Barra lateral de volume por UF */
.lm-map-console__sidebar {
    border-left: 1px solid var(--lm-border-dark);
    background: rgba(15, 23, 42, 0.35);
    padding: 0.75rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.lm-map-console__sidebar-head {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: none;
    letter-spacing: 0.05em;
    color: #64748B;
    padding: 0 0.35rem 0.35rem;
    border-bottom: 1px solid var(--lm-border-dark);
}
.lm-map-console__uf-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.lm-map-console__uf-row {
    display: grid;
    grid-template-columns: 24px 1fr 38px;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.4rem;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #94A3B8;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: pointer;
    text-align: left;
    transition: all var(--dur-fast);
}
.lm-map-console__uf-row:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #F8FAFC;
}
.lm-map-console__uf-row.is-active {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(59, 130, 246, 0.38);
    color: #FFFFFF;
}
.lm-map-console__uf-code {
    font-weight: 600;
    color: #E2E8F0;
}
.lm-map-console__uf-bar-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}
.lm-map-console__uf-bar {
    display: block;
    height: 100%;
    background: #3B82F6;
    border-radius: 999px;
}
.lm-map-console__uf-row.is-active .lm-map-console__uf-bar {
    background: #38BDF8;
}
.lm-map-console__uf-count {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 0.66rem;
}

/* Rodapé de inspeção do edital selecionado */
.lm-map-console__inspector {
    border-top: 1px solid var(--lm-border-dark);
    background: rgba(15, 23, 42, 0.75);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lm-map-console__inspector-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #94A3B8;
}
.lm-map-meta-item--source {
    color: #60A5FA;
    font-weight: 500;
}
.lm-map-meta-item--capag {
    color: #34D399;
    font-weight: 500;
}
.lm-map-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #475569;
}
.lm-map-console__inspector-time {
    margin-left: auto;
    color: #64748B;
}

.lm-map-console__inspector-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.lm-map-console__inspector-copy {
    min-width: 0;
    flex: 1;
}
.lm-map-console__agency {
    display: block;
    font-size: 0.74rem;
    color: #94A3B8;
    margin-bottom: 0.15rem;
}
.lm-map-console__object {
    font-size: 0.84rem;
    font-weight: 500;
    color: #F8FAFC;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lm-map-console__inspector-val {
    text-align: right;
    flex-shrink: 0;
}
.lm-map-console__val-label {
    display: block;
    font-size: 0.68rem;
    color: #64748B;
    margin-bottom: 0.1rem;
}
.lm-map-console__val-amount {
    font-family: var(--font-mono);
    font-size: 0.98rem;
    font-weight: 600;
    color: #F8FAFC;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 680px) {
    .lm-map-console__body {
        grid-template-columns: 1fr;
    }
    .lm-map-console__sidebar {
        border-left: 0;
        border-top: 1px solid var(--lm-border-dark);
    }
    .lm-map-console__uf-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }
    .lm-map-console__inspector-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .lm-map-console__inspector-val {
        text-align: left;
    }
}

/* ── 6. SEÇÕES DA LANDING PAGE (COMPOSICÕES VARIADAS, ZERO EXCESSO DE CARDS) ── */

/* Cabeçalho dividido em 2 colunas (estilo Stripe/Mercury) */

/* Seção 2: Simulador Interativo de Triagem por CNPJ (Workbench) */

/* Seção 3: Benefícios Comerciais (Editorial Assimétrico com Linhas Capilares) */

/* Seção 4: Matriz Tabular de Cobertura de Fontes */

/* Seção 5: Monitoramento Ativo & Diff de Edital (Palco Escuro) */

/* Seção 6: Planos e Preços */

/* Seção 7: FAQ Minimalista */

/* Seção 8 & 9: CTA Final e Rodapé */

/* ── 7. AUTENTICAÇÃO, FORMULÁRIOS E VALIDAÇÕES (AuthSplitShell, Login, Register) ── */
.auth-layout {
    min-height: 100vh;
    width: 100%;
    background: #FFFFFF;
    color: var(--lm-ink-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    min-height: 100vh;
    align-items: start;
}
.auth-split--wide {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.32fr);
}

.auth-split__brand {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    background: var(--lm-canvas-dark);
    color: #F8FAFC;
    padding: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
    border-right: 1px solid var(--lm-border-dark);
}
.auth-split__brand > * { position: relative; z-index: 1; }

.auth-split__brand-mid {
    margin-top: auto;
    margin-bottom: 2rem;
    max-width: 28rem;
}
.auth-split__brand-headline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: var(--tracking-heading);
    color: #F8FAFC;
    margin: 0 0 1rem;
}
.auth-split__brand-metrics {
    font-size: 0.92rem;
    color: var(--lm-ink-on-dark-muted);
    line-height: 1.55;
    margin: 0;
}
.auth-split__brand-footer {
    font-size: 0.75rem;
    color: #475569;
}

.brazil-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.48;
    pointer-events: none;
}
.brazil-svg__shape {
    fill: #0F172A;
    stroke: rgba(59, 130, 246, 0.35);
    stroke-width: 1.2;
}
.brazil-svg__pin {
    fill: #3B82F6;
}

.auth-split__form {
    background: var(--lm-canvas-mineral);
    color: var(--lm-ink-primary);
    padding: 2rem clamp(1.25rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.auth-split__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.auth-split__back {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lm-ink-secondary);
    text-decoration: none;
}
.auth-split__back:hover {
    color: var(--lm-accent);
}

.auth-split__inner {
    margin: auto 0;
    width: 100%;
    max-width: 26rem;
    padding: 1.5rem 0;
    align-self: center;
}
.auth-split--wide .auth-split__inner {
    max-width: 38rem;
}
.auth-split__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.65rem, 2.5vw, 2.05rem);
    letter-spacing: var(--tracking-heading);
    color: var(--lm-ink-primary);
    margin: 0 0 0.45rem;
}
.auth-split__subtitle {
    font-size: 0.92rem;
    color: var(--lm-ink-muted);
    line-height: 1.55;
    margin: 0 0 1.75rem;
}

.lm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.lm-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
    min-width: 0;
}

.lm-field:last-child { margin-bottom: 0; }

.auth-split__form-slot label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--lm-ink-secondary);
}
.auth-split__form-slot input:not([type="checkbox"]):not([type="radio"]),
.auth-split__form-slot select,
.auth-split__form-slot textarea {
    width: 100%;
    padding: 0.68rem 0.85rem;
    border: 1px solid var(--lm-border-strong);
    border-radius: 7px;
    background: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--lm-ink-primary);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.auth-split__form-slot input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-split__form-slot select:focus {
    outline: none;
    border-color: var(--lm-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.lm-input-action-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lm-input-action-wrap input {
    padding-right: 4.5rem !important;
}
.lm-input-toggle-btn {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--lm-canvas-mineral);
    border: 1px solid var(--lm-border-light);
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--lm-ink-secondary);
    cursor: pointer;
}
.lm-input-toggle-btn:hover {
    color: var(--lm-ink-primary);
    border-color: var(--lm-border-strong);
}

.auth-split__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.82rem 1.25rem;
    background: var(--lm-accent);
    color: #FFFFFF;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--dur-fast);
}
.auth-split__btn:hover:not(:disabled) {
    background: var(--lm-accent-hover);
}
.auth-split__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.auth-split__divider {
    height: 1px;
    background: var(--lm-border-light);
    margin: 1.5rem 0;
    border: 0;
}
.auth-split__hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--lm-ink-muted);
    margin: 0;
}
.auth-split__hint a {
    color: var(--lm-accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-split__alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #B91C1C;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .auth-split, .auth-split--wide {
        grid-template-columns: 1fr;
    }
    .auth-split__brand {
        position: relative;
        height: auto;
        max-height: none;
        padding: 2rem 1.5rem;
        min-height: 240px;
    }
    .auth-split__brand-mid {
        margin-top: 2rem;
        margin-bottom: 0;
    }
    .auth-split__brand-footer { display: none; }
}

/* ── 8. BOOT SCREEN & GLOBAL HTTP LOADING HANDLER ── */
.lm-boot-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lm-canvas-dark);
    color: #F8FAFC;
    padding: 1.5rem;
}
.lm-boot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 300px;
    width: 100%;
}
.lm-boot-emblem {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}
.lm-boot-emblem svg {
    width: 100%;
    height: 100%;
}
.lm-boot-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #F8FAFC;
}
.lm-boot-status {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0.35rem 0 1.15rem;
}
.lm-boot-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.lm-boot-bar-fill {
    width: 40%;
    height: 100%;
    background: var(--lm-accent-bright);
    animation: lmProgressSweep 1.25s ease-in-out infinite;
}

@keyframes lmProgressSweep {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

} /* ===== fim de @layer editorial ===== */

@layer overrides {
    html { overflow-x: clip; scroll-behavior: smooth; }
    
}
