@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;700&display=swap');

:root {
    --primary: #8B0000;
    --primary-light: #B22222;
    --accent: #FF3B30;
    --gold: #d4af37;
    --silver: #C0C0C0;
    --bg-dark: #060f1d; /* Azul profundo premium */
    --text-light: #F5F5F7;
    --text-muted: #A1A1A6;
    --glass: rgba(255, 255, 255, 0.05); /* Mais presente para vidro */
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
    --scanner-color: var(--gold);
}

/* TEMA TRT / TST (MODO SUPERIOR) */
.trt-mode {
    --primary: #0A0F1E;
    --primary-light: #1E293B;
    --accent: #d4af37;
    --gold: #d4af37;
    --scanner-color: #3b82f6;
}

/* TEMA EMBARGOS (MODO ESMERALDA) */
.ed-mode {
    --primary: #064e3b;
    --primary-light: #065f46;
    --accent: #10b981;
    --gold: #fbbf24;
    --scanner-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top center, #0B1930 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar Elite */
.navbar-elite {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(25px);
    border-bottom: 2px solid var(--glass-border);
    z-index: 2000;
    padding: 0.3rem 0; /* Espaçamento mínimo para subir o conteúdo */
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1%; /* Reduzido de 2% */
    width: 100%;
    margin: 0 auto;
    gap: 0.4rem;
    max-width: 1400px;
}

.logo-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: start;
    flex-shrink: 0;
}


.logo-img {
    height: 42px; /* Reduzido de 55px para ganhar mais espaço vertical */
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
    transition: var(--transition);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem; /* Reduzido de 1.8rem para acompanhar o logo */
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* Console Central SIAT 3.0 */
.command-side {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-self: end;
    flex-shrink: 0;
}

.nav-center-console {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.siat-motor-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(212, 175, 55, 0.05);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
    animation: pulse-gold 2s infinite;
}

.motor-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    opacity: 0.9;
}

/* Redimensionamento seguro do Master Module Selector quando estiver na Navbar */
.nav-center-console .master-module-selector {
    padding: 0.2rem 0.4rem; /* Ultra compacto */
    gap: 0.4rem;
    margin: 0;
}
.nav-center-console .module-btn {
    padding: 0.25rem 0.6rem; /* Ultra-enxuto */
    gap: 0.6rem;
}
.nav-center-console .module-btn i {
    font-size: 1.1rem; /* Reduzido de 1.45rem */
}
.nav-center-console .module-info strong {
    font-size: 0.85rem; /* Reduzido de 1rem */
}
.nav-center-console .module-info span {
    font-size: 0.65rem; /* Reduzido de 0.75rem */
}

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

.phase-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.8rem;
    transition: var(--transition);
    position: relative;
    opacity: 0.6;
}

.phase-btn:hover {
    color: var(--text-light);
    opacity: 1;
}

.phase-btn.active {
    color: var(--gold);
    opacity: 1;
    transform: scale(1.1);
}

.phase-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

/* Cores Ativas por Modo na Sala de Auditoria */
.tab-btn.active[data-tab="embargos"] { color: #10b981 !important; border-color: #10b981 !important; }
.tab-btn.active[data-tab="trt"] { color: #3b82f6 !important; border-color: #3b82f6 !important; }
.tab-btn.active[data-tab="tst"] { color: var(--gold) !important; border-color: var(--gold) !important; }


.divider {
    background: none;
    border: none;
    color: var(--glass-border);
    font-weight: 300;
    cursor: default;
}

/* Ouro com brilho intenso */
.gold-shine {
    background: linear-gradient(
        to right, 
        #bf953f, 
        #fcf6ba, 
        #b38728, 
        #fcf6ba, 
        #bf953f
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Efeito de Cursor de Escrita (Streaming) */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--gold);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Botão Stop Elite (Emergência) */
.btn-stop-elite {
    background: #dc3545;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Inicia escondido */
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}

.btn-stop-elite:hover {
    transform: scale(1.15);
    background: #c82333;
    box-shadow: 0 0 25px rgba(220, 53, 69, 0.8);
}

.btn-stop-elite i {
    font-size: 1.2rem;
}

.btn-stop-elite.active {
    display: flex; /* Mostra quando ativo */
    animation: stop-pulse 2s infinite;
}

@keyframes stop-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Realce de Texto Co-Piloto */
.new-text-highlight {
    background-color: rgba(212, 175, 55, 0.4); /* Amarelo JusElite */
    animation: fade-highlight 20s forwards;
    padding: 2px 4px;
    border-radius: 4px;
}

@keyframes fade-highlight {
    0% { background-color: rgba(212, 175, 55, 0.4); }
    80% { background-color: rgba(212, 175, 55, 0.2); }
    100% { background-color: transparent; }
}

/* Elite Form Labels */
.elite-label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.elite-label.augmented {
    font-size: 1.3rem;
    filter: brightness(1.2);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
}


/* 📐 GEOMETRIA ELITE V15.9 - Densidade Vertical Máxima */
.module-section, .draft-form-container, .audit-interface, .main-container, .drafting-interface {
    padding-top: 100px !important; /* Ajustado para a altura da navbar (100px) para eliminar vão livre */
    padding-bottom: 120px !important; /* Espaço para o rodapé */
    scroll-margin-top: 40px; 
}

/* Proteção absoluta de Documentos: Título, folha branca e barras de ferramentas */
#audit-results, .reader-container, .paper-sheet-container, .draft-editor-area, .draft-preview {
    position: relative;
    overflow-anchor: none; /* [ELITE FIX] Prevents browser tremor during AI updates */
    margin-top: 65px !important; /* Mais compacto para alinhar com o novo header de 42px (+ padding) */
    padding-top: 20px !important;
    padding-bottom: 60px !important;
    scroll-margin-top: 130px;
}

/* 🧪 THINKING STATE - Padrão Elite (Centro Real) */
/* .thinking-state unificado movido para o final do arquivo para precedência real */

.logo-text span {
    color: var(--gold);
    -webkit-text-fill-color: initial;
    background: none;
}

.command-side {
    display: flex;
    gap: 0.6rem; /* Mais apertadinho (1.2rem era muito) */
}

.cmd-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    height: fit-content;
}

.btn-paste-audit {
    margin: 1rem auto 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.btn-paste-audit:hover {
    background: var(--gold);
    color: #000;
}

.drop-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cmd-btn span {
    white-space: nowrap;
}

.cmd-btn i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn-ai-active {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.15), inset 0 0 15px rgba(139, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    padding: 0.6rem 2.2rem;
}

.btn-ai-active::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    animation: gold-pulse 4s infinite;
}

@keyframes gold-pulse {
    0%   { transform: scale(1);   opacity: 0.3; }
    50%  { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1);   opacity: 0.3; }
}

/* Select com valor escolhido: dourado + maior */
.custom-select.select-chosen {
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.btn-label-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.btn-main-text {
    font-size: 0.9rem; /* Reduzido (1.1rem) */
    font-weight: 800;
}

.btn-sub-text {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mascot-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.wa-btn {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
}

.wa-btn i { color: #25D366; }

.logout-compact {
    background: rgba(220, 53, 69, 0.05) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
    color: #ff6b6b !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    transition: 0.3s;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.2), 0 0 30px rgba(220, 53, 69, 0.1);
}

.logout-compact:hover {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    transform: scale(1.05);
}

/* Hero Adjustments */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 3.5rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, var(--silver) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (max-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Toggle Tribunal (Perícia de Acórdãos) */
.acordao-tribunal-btn {
    transition: all 0.3s ease !important;
}
.acordao-tribunal-btn.active[data-tribunal="TRT"] {
    background: rgba(59,130,246,0.2) !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    box-shadow: 0 0 15px rgba(59,130,246,0.3);
}
.acordao-tribunal-btn.active[data-tribunal="TST"] {
    background: rgba(212,175,55,0.2) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    box-shadow: 0 0 15px rgba(212,175,55,0.3);
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Master Card - Unified Flow */
.card-master {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(10, 10, 11, 0.8) 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
    padding: 3.5rem;
    text-align: center;
    border-radius: 30px;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card-master:hover {
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.card-master h2 {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.card-master p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Workflow Timeline */
.workflow-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--gold);
}

/* PORTAL DE ACESSO INDIVIDUAL (SaaS Guard) */
#alpha-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(30, 35, 45, 0.95) 0%, rgba(10, 12, 18, 1) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(30px);
    transition: all 0.5s ease;
}

.alpha-card {
    background: rgba(20, 25, 35, 0.85);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.1);
    text-align: center;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
    animation: portalFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes portalFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.alpha-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.alpha-header img {
    width: 90px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.alpha-header h2 {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    font-family: 'Outfit', sans-serif;
}

.alpha-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.saas-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 2rem;
}

#saas-login-btn {
    background: linear-gradient(135deg, #8b0000 0%, #4a0000 100%);
    color: white !important;
    border: 1px solid var(--gold);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.4);
    font-family: 'Outfit', sans-serif;
}

#saas-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
    filter: brightness(1.2);
}

#saas-login-btn:active {
    transform: translateY(0);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
}

.connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}


.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, var(--primary) 0%, #dc3545 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(220, 53, 69, 0.5);
}

.btn:disabled {
    background: var(--glass);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

/* READER LOADING BOX: Agora controlado via .global-loading-overlay (removido estilo antigo por ID) */

.reader-room-container {
    max-width: 1600px !important;
}

.reader-container {
    background: var(--bg-dark) !important;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

.paper-sheet.reader-paper-content {
    width: 850px !important;
    max-width: 850px !important;
    min-width: 850px !important;
    margin: 40px auto !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    background: white;
    color: #333;
    padding: 50px 60px; /* Reduzido padding superior */
    position: relative;
    box-sizing: border-box;
    font-size: 11.5pt !important; /* Ligeiramente menor para caber melhor */
    line-height: 1.5;
}

.reader-room-header {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.paper-sheet-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
}

/* Mascot Section */
.mascot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6rem;
    padding: 4rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    gap: 4rem;
    backdrop-filter: blur(10px);
}

.mascot-image img {
    max-width: 300px;
    filter: drop-shadow(0 0 20px rgba(139, 0, 0, 0.3));
}

.mascot-text {
    max-width: 500px;
}

.mascot-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary-light);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* .thinking-state redundante removido */
/* Pricing Table */
.pricing-section {
    padding: 8rem 0;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(10, 10, 11, 0.8) 100%);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.07) translateY(-10px);
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    margin: 2rem 0;
    color: var(--gold);
    height: 5rem; /* Altura fixa para alinhar os itens abaixo */
}

.price .currency {
    font-size: 1.8rem;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.price .amount {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price.consultation {
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing-features li i {
    color: var(--gold);
}

/* Speech Bubble */
.bubble {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: var(--glass-border) transparent;
    display: block;
    width: 0;
}

/* Floating WhatsApp */
/* Contact Button in Header */
.contact-btn {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.15);
}
.contact-btn i { color: var(--gold); }

/* FLOATING NAVIGATION (FAB) - AGORA NO FOOTER */
.floating-nav-container {
    position: relative; /* Integrado organicamente ao footer-left */
    display: flex;
    align-items: center;
    border-radius: 30px;
}

.fab-btn, .fab-item {
    pointer-events: auto;
}

.fab-btn {
    width: 38px; /* Combinando com os ícones de footer */
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b0000 0%, #4a0000 100%);
    border: 2px solid var(--gold);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(45deg);
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--gold);
}

.fab-menu {
    position: absolute;
    bottom: 50px; /* Flutua ACIMA da barra do footer */
    left: 0;
    display: flex;
    flex-direction: column; /* Menu sobe */
    gap: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 10000; /* Previne clipagem se houver overlap */
}

.floating-nav-container:hover .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--gold);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-item:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--gold);
}

/* Contact Modal & Form */
.contact-card {
    max-width: 600px;
    background: rgba(10, 10, 11, 0.98);
    border: 1px solid var(--gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
}

.branding-card {
    max-width: 950px !important;
    width: 95% !important;
    background: rgba(10, 10, 11, 0.98);
    border: 1px solid var(--gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
}

.modal-body textarea {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    transition: 0.3s;
}

.modal-body textarea:focus {
    border-color: var(--gold);
}


/* MODAL SYSTEM (MATRIX) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--dark-blue);
    margin: 2vh auto;
    padding: 1.2rem;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-height: 95vh;
    overflow-y: auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-header i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

.modal-header p {
    margin: 0;
    font-size: 0.85rem;
}

.modal-body .input-group {
    margin: 0.6rem 0;
}

.modal-body label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.modal-body input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(10, 10, 11, 0.95); /* Força fundo escuro */
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white !important; /* Força texto branco */
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
}

.modal-body input:focus {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--gold);
}

/* MARKDOWN STYLES FOR REPORT */
#report-content h1, #report-content h2, #report-content h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

#report-content p {
    margin: 1rem 0;
    line-height: 1.6;
}

#report-content ul, #report-content ol {
    margin-left: 1.5rem;
}

#report-content strong {
    color: var(--primary);
    font-weight: 700;
}

#report-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
    color: #555;
    font-style: italic;
    background: #f9f9f9;
    padding: 1rem;
    margin: 1rem 0;
}

.text-preview {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    width: 80%;
    max-height: 50px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: none; /* Initially hidden */
}

/* PREMIUM LOCK SYSTEM */
.audit-room-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
}

.lock-content {
    max-width: 400px;
    animation: fadeInUp 0.6s ease-out;
}

.lock-content i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--gold));
}

.lock-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.lock-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

#audit-room.container, #comparator-room.container {
    max-width: 1600px !important;
}

/* Perícia de Confronto: subir as janelas rente ao texto */
#comparator-room .section-header {
    margin-bottom: 0 !important;
}
#comparator-room .audit-interface {
    margin-top: 0.5rem !important;
}

/* AUDIT ROOM STYLES */
.section-header {
    text-align: center;
    margin-bottom: 1rem; /* Reduzido */
    margin-top: 0; /* Zerado para subir ao máximo */
}

.audit-interface {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem; 
    margin: 1.5rem 0; /* REDUZIDO de 5rem: Trazendo botões para mais perto das janelas */
    position: relative;
    max-width: 1600px; 
    margin-left: auto;
    margin-right: auto;
}

.drop-container {
    flex: 1;
    min-width: 500px; /* MASTER: Aumentado para dominar a tela */
    max-width: 700px; /* MASTER IMPACT: Mais que o dobro dos botões do topo */
    min-height: 320px; /* MASTER HEIGHT: Altura imponente, mas que cabe na tela sem quebrar layout */
    width: 48%;
    position: relative;
}

.drop-zone {
    height: 250px;
    background: var(--glass);
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    color: var(--text-light);
}

.drop-zone.file-ready {
    border-style: solid;
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.drop-zone i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.audit-vs {
    width: 70px; /* Aumentado levemente para acompanhar as janelas */
    height: 70px;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--gold);
    box-shadow: 0 0 30px var(--gold);
    z-index: 10;
    flex-shrink: 0; /* IMPEDE QUE SEJA ESMAGADO (AIR-LOCK) */
}

.audit-vs i {
    font-size: 0.8rem;
}

/* RESULTS REPORT */
.paper-sheet-container {
    background: #fdfdfd !important; /* Forçar branco puro de folha */
    min-height: 1100px;
    padding: 60px 80px 300px 80px; 
    position: relative;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: visible !important; 
    height: auto !important; 
    display: block !important;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.report-title h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.report-title span {
    color: #888;
    font-size: 0.9rem;
}

#report-content {
    line-height: 1.8;
}

.audit-finding {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fdfdfd;
    border-left: 4px solid var(--gold);
}

.audit-finding h4 {
    margin: 0 0 0.5rem 0;
    color: #000;
}

.legal-foundation {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
}

.report-footer {
    border-top: 2px solid #eee;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: right;
}

@media print {
    @page { size: A4; margin: 25mm 20mm 25mm 30mm; }
    header, .hero, #dashboard, .section-header, .audit-interface, .audit-actions, .pricing-section, .mascot-container, footer, .whatsapp-btn {
        display: none !important;
    }
    body { background: white !important; }
    .container { max-width: 100% !important; margin: 0 !important; }
    .report-paper { box-shadow: none !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; }
    .report-footer button { display: none !important; }
}
/* TABS SYSTEM */
.audit-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.tab-btn i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.tab-btn:hover {
    color: var(--text-light);
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold);
    border-radius: 10px;
}

.trt-mode .audit-vs {
    border-color: var(--gold);
    box-shadow: 0 0 25px var(--gold);
    background: #0f172a;
}/* HISTORY SYSTEM */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.history-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.history-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.history-card h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-card .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-card .badge-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1rem;
    width: fit-content;
}

.badge-vara { background: rgba(139, 0, 0, 0.2); color: #ff6b6b; border: 1px solid #8B0000; }
.badge-trt { background: rgba(212, 175, 55, 0.2); color: #d4af37; border: 1px solid #d4af37; }

.btn-delete-item {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.history-card:hover .btn-delete-item {
    opacity: 1;
}
.input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5000 !important; /* Garantir que esteja acima de tudo */
}

.drop-zone {
    position: relative; /* Garantir que o overlay funcione */
    overflow: hidden;
}
.btn-delete-item:hover {
    color: #ff3b30;
}

/* JUSBOT CHAT SYSTEM */
.jusbot-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: var(--transition);
    font-weight: 600;
}

.jusbot-btn:hover {
    transform: scale(1.05);
    background: var(--gold);
}

.jusbot-panel {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    height: 420px; /* Reduzido de 500px (-80px/2cm) para o modo flutuante */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

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

.paper-toolbar {
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    scroll-margin-top: 100px; /* Garante que ao rolar ao topo, o toolbar apareça abaixo do header */
}

.jusbot-header {
    background: var(--accent);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.jusbot-header h4 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00ff00;
}

.jusbot-header p {
    font-size: 0.75rem;
    opacity: 0.8;
}

#jusbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.jusbot-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.1);
    border-top-left-radius: 2px;
}

.msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-top-right-radius: 2px;
}

.jusbot-footer {
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.jusbot-footer input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: white;
    outline: none;
}

#jusbot-send {
    cursor: pointer !important;
    transition: 0.3s;
}

#jusbot-send:hover {
    background: var(--gold) !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.jusbot-body::-webkit-scrollbar {
    width: 6px;
}

.jusbot-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.msg.typing {
    font-style: italic;
    opacity: 0.7;
    background: none;
    padding-left: 0;
}

.msg i {
    margin-right: 5px;
}

/* --- NEW ELITE FOOTER --- */
.elite-footer {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    z-index: 9999; /* Aumentado para ficar acima de tudo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(to top, rgba(6, 15, 29, 0.98) 30%, transparent 100%);
    pointer-events: none;
}

.footer-left, .footer-right {
    pointer-events: auto; /* Reativa cliques nos botões */
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-btn {
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.footer-btn.primary {
    background: rgba(139, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.3);
}

.footer-btn.logout {
    background: rgba(220, 53, 69, 0.1); /* Brilho leve */
    border-color: rgba(220, 53, 69, 0.4);
    color: #ff6b6b; /* Vermelho mais vivo */
}

.footer-btn.logout:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
}

.user-badge-footer {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* SIDEBAR MODE */
.jusbot-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    height: 100vh;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    display: none; /* Inicia escondido */
    flex-direction: column;
    z-index: 3000;
    box-shadow: -10px 0 50px rgba(0,0,0,0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.jusbot-panel.active {
    display: flex;
    transform: translateX(0);
}

@keyframes slideSidebar {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Typing Indicator Animation */
.msg.typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    margin-right: 3px;
    opacity: 0.4;
    animation: typing 1s infinite;
}

.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.jusbot-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.jusbot-header .mascot-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    background: var(--bg-dark);
}

.jusbot-header h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

/* Botão Limpar Chat */
#jusbot-clear {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
    padding: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#jusbot-clear:hover {
    color: var(--gold) !important;
    transform: scale(1.1);
}

/* ==========================================================================
   REGRAS DE IMPRESSÃO (PDF DE ELITE)
   ========================================================================== */
@media print {
    @page {
        size: A4;
        margin: 25mm 20mm 25mm 30mm; /* ABNT NBR 14724 */
    }

    /* Esconde absolutamente tudo o que não for o laudo */
    .navbar-elite,
    .hero-elite,
    #audit-room,
    #history-section,
    .pricing-section,
    .footer-elite,
    .jusbot-panel,
    .chat-btn,
    .no-print,
    .reveal,
    button,
    .badge {
        display: none !important;
    }

    /* Reseta o corpo para fundo branco e texto preto */
    body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-family: 'Inter', Arial, sans-serif !important;
    }

    /* Expande o laudo para ocupar a página toda */
    #audit-results {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .report-paper {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important; /* Margens controladas pela regra @page */
        box-shadow: none !important;
        background: white !important;
        border: none !important;
    }
}

/* Painel Flutuante do Selo (Centralizado sobre o laudo) */
.seal-floating-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 380px;
    background: rgba(20, 25, 35, 0.98);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.seal-floating-card.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--gold);
}

.panel-header h4 {
    margin: 0;
    font-size: 1rem;
}

.panel-inputs-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.panel-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
}

/* Rodapé do Laudo */
.signature-footer {
     margin-top: 80px;
     display: flex; /* Visível na tela para que o advogado veja a assinatura */
     flex-direction: column;
     align-items: center;
     text-align: center;
     page-break-inside: avoid;
     break-inside: avoid;
}

.sig-line {
    width: 300px;
    height: 1px;
    background: var(--gold) !important; /* Dourado na tela */
    margin: 0 auto 1.5rem auto;
}

.sig-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF !important; /* BRANCO PURO NA TELA (NÍTIDO) */
    letter-spacing: 0.05em;
    text-align: center !important;
}

.sig-oab, .sig-date {
    font-size: 1rem;
    color: #FFFFFF !important; /* BRANCO PURO TAMBÉM NAS SUBS */
    opacity: 0.85;
    text-align: center !important;
}

/* Garante cor PRETA apenas no documento (impressão ou papel branco) */
.paper-sheet .sig-name, 
.report-paper .sig-name,
.reader-container .sig-name { color: #000 !important; }

.paper-sheet .sig-oab, 
.report-paper .sig-oab,
.reader-container .sig-oab { color: #333 !important; }

.paper-sheet .sig-date, 
.report-paper .sig-date,
.reader-container .sig-date { color: #333 !important; }

.paper-sheet .sig-line,
.report-paper .sig-line,
.reader-container .sig-line { background: #000 !important; }

.report-footer-actions {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 250px !important; /* SUPER RESPIRAR PARA NÃO ESCONDER ATRÁS DO RODAPÉ */
}

/* =========================================
   MÓDULO: SELETOR MESTRE DE FERRAMENTAS
   ========================================= */
.master-module-selector {
    display: flex;
    gap: 1.5rem;
    background: var(--glass);
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    max-width: fit-content;
    margin: 0 auto;
}

.module-btn {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: transparent;
    border: 1px solid transparent;
    padding: 1.2rem 2.2rem;
    border-radius: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.module-btn i {
    font-size: 2.2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.module-info {
    display: flex;
    flex-direction: column;
}

.module-info strong {
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
}

.module-info span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-btn:hover {
    background: rgba(255,255,255,0.05);
}

.module-btn.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.module-btn.active i {
    color: var(--gold);
    opacity: 1;
}

.module-btn.active .module-info strong {
    color: var(--gold);
}

/* =========================================
   MÓDULO: GERADOR DE PEÇAS (DRAFT ROOM)
   ========================================= */
.draft-container {
    max-width: 1600px;
}

.draft-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.draft-controls {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.2rem;
    border-radius: 20px;
    position: sticky;
    top: 140px;
    /* Removida a barra lateral interna conforme solicitado */
    height: fit-content;
}

/* Configurações básicas de módulo harmonizadas (v15.18h) */

/* [V15.18] ORIENTAÇÃO VERTICAL TRAVADA: Garante que o mascote NUNCA fique 'deitado' ou sideways */
.mascot-thinking, .mascot-img, .fa-spin-slow, .fa-spin {
    transform: rotate(0deg) !important;
}

/* [V15.19] DESOBSTRUÇÃO TOTAL: Retornando info do usuário ao rodapé natural */
.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-badge-footer {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Removendo margens individuais redundantes da V15.14 */
/* [V15.19] DESOBSTRUÇÃO TOTAL: Containers agora crescem livremente e empurram o conteúdo abaixo */
.reader-container, 
#audit-results,
.draft-preview,
.paper-sheet-container {
    margin-top: 0 !important;
    height: auto !important;
    min-height: 200px;
    overflow: visible !important;
    display: block; /* Removido !important para não quebrar módulos */
}

/* Regras de Módulo: Sem !important para que o JS (display: none) funcione */
.module-section,
.reader-view-wrapper, 
.draft-layout {
    margin-top: 0;
    height: auto;
}

.reader-view-wrapper, .draft-layout {
    display: grid; /* Removido !important */
    height: auto;
    overflow: visible;
    align-items: flex-start;
}

/* Padding principal unificado no início do arquivo (V15.9) */

/* [V15.18] PULSAÇÃO JUSBOT: Estética viva mas estática (Sem rotação de engrenagem) */
.jusbot-pulse {
    animation: jusbot-glow 2s ease-in-out infinite;
}
@keyframes jusbot-glow {
    0% { filter: drop-shadow(0 0 5px rgba(212,175,55,0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 20px rgba(212,175,55,0.8)); transform: scale(1.05); }
    100% { filter: drop-shadow(0 0 5px rgba(212,175,55,0.4)); transform: scale(1); }
}

.paper-sheet-container::-webkit-scrollbar {
    width: 6px;
}
.paper-sheet-container::-webkit-scrollbar-track {
    background: transparent;
}
.paper-sheet-container::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.2);
    border-radius: 10px;
}
.paper-sheet-container::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.custom-select, .custom-textarea {
    width: 100%;
    background: rgba(10, 10, 11, 0.8);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1.2rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem; /* Aumentado para mais destaque */
    line-height: 1.6;  /* Melhor legibilidade */
    transition: var(--transition);
    resize: vertical;
    overflow-y: auto;
    min-height: 100px;
    max-height: 400px;
}

/* Select dropdown: mais destaque visual no texto */
.custom-select {
    font-size: 1.05rem;
    font-weight: 600;
    min-height: auto;
    resize: none;
    overflow-y: hidden;
    cursor: pointer;
}

.custom-select:focus, .custom-textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.custom-select option {
    background: var(--bg-dark);
}

/* Editor Lateral — Padrão Visual "Folha Flutuante" (idêntico ao Reader) */
.draft-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-height: 800px;
}

.paper-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151f32;
    padding: 1rem 2rem; /* Aumentado um pouco para equilibrar com o papel */
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--glass-border);
    border-bottom: none;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
}

.doc-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.paper-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-icon:hover {
    background: #333;
    color: #fff;
}

.btn-icon.solid {
    background: #2b5797;
    border-color: #2b5797;
    color: white;
}

.btn-icon.solid:hover {
    background: #366ac0;
}

.paper-sheet-container {
    background: var(--bg-dark); /* Fundo escuro atrás da folha */
    padding: 50px 0 150px 0; /* Padding superior fixo para evitar corte no topo */
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 12px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column; 
    align-items: center; /* Centraliza a folha horizontalmente */
    justify-content: flex-start; /* GARANTE QUE COMEÇE NO TOPO, SEM CORTAR */
    /* REMOVIDO: max-height e overflow-y para fluxo natural */
}

/* ✨ ESTILO ELITE: LINHAS DOURADAS PARA JURISPRUDÊNCIA */
.juris-placeholder {
    display: block;
    width: 100%;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 8px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.juris-placeholder:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.juris-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 100%;
    margin: 0.8rem 0;
    opacity: 0.5;
}

.juris-placeholder i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.paper-sheet, .report-paper {
    background: #fff;
    width: 100%;
    max-width: 850px;
    min-height: 1000px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    padding: 4rem 5rem; /* Padding luxuoso */
    color: #050505;
    font-family: 'Times New Roman', Times, serif;
    position: relative; /* [ELITE FIX] Anti-tremor core */
    overflow-anchor: none; /* [ELITE FIX] Anti-tremor core */
    font-size: 13pt;
    line-height: 1.6;
    outline: none;
    text-align: justify;
    box-sizing: border-box; /* Essencial para o alinhamento */
    margin: 0 auto;
}

/* Garante margem elegante em parágrafos e listas */
.paper-sheet p, .report-paper p { margin-bottom: 12pt; text-align: justify; }
.paper-sheet ul, .paper-sheet ol { padding-left: 2rem; margin-bottom: 12pt; }
.paper-sheet li { margin-bottom: 6pt; text-align: justify; }

/* Neutraliza os títulos gigantes (Markdown Headers #) que a IA gera */
.paper-sheet h1, .paper-sheet h2, .paper-sheet h3, 
.paper-sheet h4, .paper-sheet h5, .paper-sheet h6 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;  /* Mantém tamanho padrão 12 */
    font-weight: bold;
    color: #000;
    margin-top: 24pt;
    margin-bottom: 12pt;
    line-height: 1.5;
}

/* Opcional: Centraliza h1 e h2 que geralmente são títulos/endereçamentos */
.paper-sheet h1, .paper-sheet h2 {
    text-align: center;
    text-transform: uppercase;
}

/* Evita que URLs longas vazem, mas sem cortar palavras normais */
.paper-sheet a { word-break: break-word; }

/* Blinda a Folha contra elementos de Código que o Markdown gere acidentalmente */
.paper-sheet pre, .paper-sheet code {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: normal;
    font-family: inherit;
    background: transparent;
    padding: 0;
    margin: 0 0 12pt 0;
}
/* BARRA DE AÇÕES CENTRALIZADA DO ASSISTENTE */
.draft-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn-elite-generate {
    padding: 1.4rem 4.5rem !important;
    font-size: 1.25rem !important;
    background: linear-gradient(135deg, var(--gold) 0%, #b38728 100%) !important;
    color: var(--bg-dark) !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-elite-generate:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5) !important;
}

.btn-elite-reset {
    padding: 1.4rem 2.5rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

.btn-elite-reset:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
    color: #ff6b6b !important;
}

/* BARRA DE REFINAMENTO (CO-PILOTO IA) */
.draft-refine-bar {
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0 auto;
    display: block !important;
    padding: 24px;
    background: rgba(15, 20, 30, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(25px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1000;
}

.draft-refine-bar:focus-within {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.15), 0 15px 45px rgba(0,0,0,0.6);
    transform: translateY(-2px);
}

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

.refine-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 0 8px;
    min-height: 48px;
}

#refine-input, #reader-refine-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    font-family: 'Outfit', sans-serif;
    resize: none;
    padding: 12px 10px;
    min-height: 100px;
    max-height: 160px;
    line-height: 1.5;
    overflow-y: hidden;
}

#refine-input::placeholder, #reader-refine-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.refine-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-refine-go {
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-refine-go:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-undo, .btn-clear-refine, .btn-stop-refine {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-stop-refine {
    background: rgba(220, 38, 38, 0.1) !important;
    color: #ef4444 !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
}

.btn-stop-refine:hover {
    background: #dc2626 !important;
    color: white !important;
    transform: scale(1.1);
}

.btn-undo:hover, .btn-clear-refine:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-clear-refine {
    font-size: 0.9rem;
    display: none; /* Occult by default */
}

.juris-placeholder {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px dashed var(--gold);
    color: var(--gold);
    padding: 0.3rem 0.6rem;
    font-weight: 700;
    border-radius: 6px;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.juris-placeholder:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

/* MARCADORES DO DOCUMENTO: [CAMPOS PARA PREENCHER] — vermelho + negrito */
.paper-sheet strong[style*="DC2626"],
.paper-sheet strong[style*="color:#DC2626"] {
    color: #DC2626 !important;
    font-weight: 700;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 3px;
    padding: 0 2px;
    cursor: text;
}

/* PAINEL DE JURISPRUDÊNCIA SUGERIDA (SIAT 3.0) */
.juris-suggest-panel {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.juris-suggest-panel:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.08);
}

.juris-suggest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: rgba(212, 175, 55, 0.06);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    gap: 1rem;
}

.juris-suggest-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
    min-width: 0;
    flex-shrink: 1;
}

.juris-suggest-title i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.juris-suggest-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    overflow: visible;
}

.juris-suggest-count {
    background: var(--gold);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.juris-external-link {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: 0.3s;
    text-decoration: none;
    padding: 0.2rem;
}

.juris-external-link:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.juris-suggest-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.juris-suggest-body::-webkit-scrollbar { width: 4px; }
.juris-suggest-body::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 4px; }

.juris-suggest-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.juris-suggest-empty i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.25;
    display: block;
}

.juris-suggest-empty p {
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 260px;
    margin: 0 auto;
}

/* Cards de Jurisprudência Sugerida */
.juris-suggest-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.5rem;
    transition: all 0.25s ease;
    cursor: default;
    animation: jurisFadeIn 0.4s ease-out backwards;
}

.juris-suggest-card:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(3px);
}

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

.juris-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.juris-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.juris-card-badge.sumula {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.juris-card-badge.oj {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.juris-card-status {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.juris-card-status.ativa { color: #10b981; }
.juris-card-status.cancelada { color: #ef4444; text-decoration: line-through; }

.juris-card-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.35;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.juris-card-excerpt {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.juris-card-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.btn-juris-insert {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Inter', sans-serif;
}

.btn-juris-insert:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.btn-juris-insert.inserted {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    pointer-events: none;
}

.btn-juris-view {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-juris-view:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

/* Barra de Busca do Painel */
.juris-suggest-search-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.juris-suggest-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
}

.juris-suggest-search-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.juris-suggest-search-wrapper i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.juris-suggest-search-wrapper input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.juris-suggest-search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-juris-search {
    background: var(--gold);
    border: none;
    color: var(--bg-dark);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-juris-search:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.3);
}

.btn-juris-search i {
    font-size: 0.7rem;
}

/* Botão Falcão Jurisprudência (Barra Azul) */
.btn-falcao-juris {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 10px;
    color: #60a5fa;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-falcao-juris:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #60a5fa;
    color: #93bbfc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.btn-falcao-juris i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* BOTÃO RADAR JURISPRUDENCIAL (Google Search Grounding) */
.btn-juris-grounding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-top-color: rgba(212, 175, 55, 0.4);
    color: #93bbfc;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-juris-grounding:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8) 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3), 0 8px 25px rgba(212, 175, 55, 0.2);
}

.btn-juris-grounding:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-juris-grounding i {
    font-size: 1.1rem;
    color: var(--gold);
    filter: drop-shadow(0 0 4px rgba(212,175,55,0.6));
}

.btn-juris-grounding:hover:not(:disabled) i {
    color: white;
    filter: none;
}

/* RESULTADOS DE GROUNDING (Google Search) */
.juris-grounding-result {
    padding: 0.8rem;
    animation: jurisFadeIn 0.5s ease-out;
}

.juris-grounding-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.6rem;
}

.juris-grounding-badge i {
    font-size: 0.65rem;
}

.juris-grounding-text {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.55;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.6rem;
}

.juris-grounding-text h1,
.juris-grounding-text h2,
.juris-grounding-text h3 {
    font-size: 0.85rem;
    color: var(--gold);
    margin: 0.5rem 0 0.3rem;
    font-weight: 700;
}

.juris-grounding-text strong {
    color: var(--gold);
    font-weight: 700;
}

.juris-grounding-text ul,
.juris-grounding-text ol {
    padding-left: 1.2rem;
    margin: 0.3rem 0;
}

.juris-grounding-text li {
    margin-bottom: 0.3rem;
}

.juris-grounding-text li::before {
    content: none !important;
}

/* FONTES VERIFICÁVEIS */
.juris-grounding-sources {
    margin-bottom: 0.6rem;
}

.juris-sources-title {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.juris-sources-title i {
    font-size: 0.65rem;
}

.juris-source-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    margin-bottom: 0.25rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 6px;
    color: #93bbfc;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

.juris-source-link:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    transform: translateX(3px);
}

.juris-source-link i {
    font-size: 0.6rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.juris-source-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* AÇÕES DO GROUNDING (Inserir na Peça) */
.juris-grounding-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* REGRA DE OURO: Sobe a Bússola se o Co-Piloto estiver na sala de rascunhos */
/* A Bússola agora vive no rodapé de forma elegante, não precisamos subir via classe */
body[data-active-module="draft-room"] .floating-nav-container { }

/* Garante que o Co-Piloto seja a camada suprema quando ativo */
.draft-refine-bar {
    z-index: 4000 !important;
}

/* LEGAL DESIGN: Estilo de Listas Profissional (Padrão Escritórios) */
.jusbot-body ul, 
.report-content ul, 
.editor-content ul, 
.draft-result ul,
.paper-sheet ul,
#draft-editor ul,
#draft-content ul,
#draft-result ul,
.history-list ul {
    list-style: none !important;
    padding-left: 1.5rem !important;
}

.jusbot-body li, 
.report-content li, 
.editor-content li, 
.draft-result li,
.paper-sheet li,
#draft-editor li,
#draft-content li,
#draft-result li,
.history-list li {
    position: relative;
    margin-bottom: 0.8rem;
    list-style-type: none !important;
}

.jusbot-body li::marker, 
.report-content li::marker, 
.editor-content li::marker, 
.draft-result li::marker,
.paper-sheet li::marker,
#draft-editor li::marker,
#draft-content li::marker,
#draft-result li::marker {
    content: none !important;
}

.jusbot-body li::before, 
.report-content li::before, 
.editor-content li::before, 
.draft-result li::before,
.paper-sheet li::before,
#draft-editor li::before,
#draft-content li::before,
#draft-result li::before,
.history-list li::before {
    content: "- ";
    position: absolute;
    left: -1.2rem;
    font-weight: bold;
    color: inherit;
}

/* ==========================================================================
   BIBLIOTECA DE JURISPRUDÊNCIA (SIAT 3.0)
   ========================================================================== */

.juris-search-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.search-input-wrapper {
    display: flex;
    gap: 1rem;
    position: relative;
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.search-input-wrapper i.fa-search {
    color: var(--gold);
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 1rem 0;
    font-size: 1.1rem;
    outline: none;
}

.juris-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.drop-zone {
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* GARANTE QUE PREENCHA O CONTAINER LARGO */
}

.filter-tag {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.juris-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.juris-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.juris-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.juris-badge {
    background: var(--gold);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    width: fit-content;
    text-transform: uppercase;
}

.juris-card h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.4;
}

.juris-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.juris-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.juris-tags span {
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.6);
    font-weight: 500;
}

.btn-copy-juris {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-copy-juris:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* Botões de Controle Refinados */
.btn-secondary {
    background: rgba(212, 175, 55, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: var(--gold) !important;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-secondary:hover {
    background: var(--gold) !important;
    color: var(--bg-dark) !important;
    transform: translateY(-2px);
}

/* 🛡️ PORTAL DE ACESSO SAAS - JUSELITE.AI */
#alpha-portal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    transition: all 0.5s ease;
    backdrop-filter: blur(15px);
}

.alpha-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid var(--gold);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
    text-align: center;
}

.alpha-header h2 {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 🎨 CUSTOMIZAÇÃO NUCLEAR DO NETLIFY IDENTITY WIDGET */
#netlify-identity-widget {
    z-index: 9999 !important;
}

iframe#netlify-identity-widget {
    filter: invert(0.9) hue-rotate(180deg) brightness(1.2); /* Truque para escurecer o widget branco */
}

/* Estilos para o nosso próprio botão de login e labels */
.netlify-identity-button {
    background: var(--primary) !important;
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 12px !important;
}
/* 👤 GESTÃO DE CONTA SAAS (NAVBAR) */
.user-control-elite {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.user-identity i {
    color: var(--gold);
}

.user-credits-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 134, 11, 0.2) 100%);
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: help;
    white-space: nowrap;
}

.user-credits-badge i {
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.logout-btn {
    border-color: rgba(220, 53, 69, 0.2) !important;
    color: #ff4d4d !important;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: #ff4d4d !important;
    transform: translateY(-2px);
}

/* 💻 OTIMIZAÇÃO PARA NOTEBOOK (Resoluções < 1440px) */
@media (max-width: 1440px) {
    .navbar-elite { padding: 0.4rem 0; }
    .logo-side { scale: 0.85; transform-origin: left; }
    .nav-center-console { scale: 0.85; }
    
    .btn-label-group { display: none !important; }
    
    .user-control-elite { gap: 0.4rem !important; }
    .user-credits-badge { padding: 0.3rem 0.8rem !important; }
    .logout-btn span { display: none; } /* Mantém apenas o ícone de Sair */
}

/* 👤 AJUSTE DE IDENTIDADE (E-mails longos) */
#user-email-display {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================================
   ELITE VISUAL REFINEMENTS (sprint 5)
   ============================================================ */

/* 1. Elite Scanner Effect */
.scanner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scanner-container.active {
    opacity: 1;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, var(--scanner-color), transparent);
    box-shadow: 0 0 15px var(--scanner-color), 0 0 30px var(--scanner-color);
    animation: scan-vertical 2s infinite ease-in-out;
}

@keyframes scan-vertical {
    0% { top: 0%; opacity: 0.2; }
    50% { top: 100%; opacity: 1; }
    100% { top: 0%; opacity: 0.2; }
}

/* 2. Quick Action Chips (Refine Co-Pilot) */
.refine-chips-container {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    animation: fadeIn 0.5s ease-out;
}

.refine-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refine-chip i {
    font-size: 0.9rem;
    color: var(--gold);
}

.refine-chip:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: white;
    transform: translateY(-2px);
}

.refine-chip:active {
    transform: translateY(0);
}

/* Consultar Chip - Destaque especial */
.refine-chip.consult-chip {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold);
}
.refine-chip.consult-chip:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Área de Consulta Contextual - Integrada ao Command Center */
.consult-response-area {
    margin: 0 auto 40px auto;
    max-width: 900px;
    background: rgba(10, 14, 22, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-top: none;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
    backdrop-filter: blur(25px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
}

/* Quando consulta está visível, refine-bar perde o border-radius inferior */
.draft-refine-bar:has(+ .consult-response-area[style*="display: block"]),
.draft-refine-bar:has(+ .consult-response-area:not([style*="display: none"])) {
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
    border-bottom-color: rgba(212, 175, 55, 0.15);
}

.consult-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(212, 175, 55, 0.06);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
}

.consult-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: 0.2s;
}
.consult-close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.consult-body {
    padding: 1rem 1.2rem;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.consult-placeholder {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    text-align: center;
    padding: 1.5rem 0;
}
.consult-placeholder i {
    margin-right: 0.4rem;
    color: var(--gold);
    opacity: 0.5;
}

/* Chat Input do Consultor */
.consult-footer {
    display: flex;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.5rem;
}

.consult-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
}
.consult-footer input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.consult-send-btn {
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.consult-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.consult-user-msg {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #3b82f6;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #cbd5e1;
}

/* 3. JusBot Thinking Animation */
.thinking-dots {
    display: inline-flex;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 10px;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: thinking 1.4s infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* 4. Audit Box Enhancements */
.drop-zone {
    position: relative; /* Para o scanner */
}

.drop-zone::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.drop-zone.file-ready::after {
    opacity: 1;
}

/* 5. Navbar Logout Sync */
.logout-btn:hover {
    background: rgba(139, 0, 0, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* ============================================
   JUSBOT CHAT SYSTEM (Elite Sidebar)
   ============================================ */
.btn-label-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-main-text {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.btn-sub-text {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
    text-transform: uppercase;
}

.btn-ai-active {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%) !important;
    border-color: var(--gold) !important;
    color: #fff !important;
}

.contact-btn {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.jusbot-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 80px; /* Sobe a base em ~2 cm */
    width: 420px;
    height: auto; /* Deixa ser definido pelo top:0 e bottom:80px */
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    display: none;
    flex-direction: column;
    z-index: 3000;
    box-shadow: -10px 0 50px rgba(0,0,0,0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.jusbot-panel.active {
    display: flex;
    transform: translateX(0);
}

.jusbot-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.jusbot-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.jusbot-header p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00ff00;
}

.jusbot-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jusbot-body::-webkit-scrollbar { width: 6px; }
.jusbot-body::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

.msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.1);
    border-top-left-radius: 2px;
}

.msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-top-right-radius: 2px;
}

/* Typing indicator */
.thinking-dots { display: flex; gap: 4px; padding: 0.2rem 0; }
.thinking-dots span {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: typing 1s infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
}

#jusbot-send:hover {
    background: var(--gold) !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

#jusbot-clear:hover { color: var(--gold) !important; transform: scale(1.1); }

/* ==============================================
   IMPRESSÃO DE ELITE — CENTRALIZADA VIA BrandingCore.exportPDF()
   Cobre: Auditoria 360 + Leitor de Processos + Assistente de Peças + Futuros
   ============================================== */
@media print {

    /* [PADRONIZAÇÃO ABNT] Margens de página */
    @page {
        size: A4;
        margin: 25mm 20mm 25mm 30mm; /* top right bottom left - ABNT NBR 14724 */
    }

    /* Elemento raiz: fundo branco */
    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ═══════════════════════════════════════════
       MODO 1: BrandingCore.exportPDF() (Centralizado)
       Esconde TODA a página, mostra SÓ o container de impressão
       ═══════════════════════════════════════════ */
    body.branding-print-mode > *:not(#branding-print-container) {
        display: none !important;
    }

    #branding-print-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        font-family: 'Times New Roman', serif !important;
        font-size: 12pt !important;
        line-height: 1.6 !important;
        color: #000 !important;
    }

    #branding-print-container * {
        color: #000 !important;
    }

    #branding-print-container img {
        max-width: 180px !important;
        max-height: 70px !important;
    }

    /* ═══════════════════════════════════════════
       MODO 2: Auditoria 360 (Legacy window.print())
       Mantido para compatibilidade retroativa
       ═══════════════════════════════════════════ */
    body:not(.branding-print-mode) header, 
    body:not(.branding-print-mode) nav, 
    body:not(.branding-print-mode) footer, 
    body:not(.branding-print-mode) .no-print,
    body:not(.branding-print-mode) .navbar-elite, 
    body:not(.branding-print-mode) .draft-controls, 
    body:not(.branding-print-mode) .draft-actions,
    body:not(.branding-print-mode) .paper-toolbar, 
    body:not(.branding-print-mode) .draft-refine-bar,
    body:not(.branding-print-mode) .audit-tabs, 
    body:not(.branding-print-mode) .audit-interface, 
    body:not(.branding-print-mode) .audit-actions,
    body:not(.branding-print-mode) .report-footer-actions, 
    body:not(.branding-print-mode) .floating-nav-container,
    body:not(.branding-print-mode) .jusbot-panel, 
    body:not(.branding-print-mode) .seal-floating-card,
    body:not(.branding-print-mode) #history-section, 
    body:not(.branding-print-mode) button, 
    body:not(.branding-print-mode) .badge,
    body:not(.branding-print-mode) #nav-btn-jusbot, 
    body:not(.branding-print-mode) #nav-btn-contact, 
    body:not(.branding-print-mode) #modal-matrix, 
    body:not(.branding-print-mode) #modal-contact {
        display: none !important;
    }

    /* Expande a área de impressão — margens reais são via @page */
    .report-paper, #draft-editor {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: white !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Mostra os resultados da auditoria */
    #audit-results {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Todo texto do relatório em preto */
    .report-paper * {
        color: #000 !important;
    }

    /* ═══════════════════════════════════════════
       REGRAS COMPARTILHADAS (Ambos modos)
       ═══════════════════════════════════════════ */

    /* ANTI-ÓRFÃO: Assinatura sempre acompanha o último parágrafo */
    .signature-footer {
        display: block !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        break-before: avoid !important;
        page-break-before: avoid !important;
        margin-top: 60px !important;
        position: relative !important;
    }

    .signature-footer * {
        break-inside: avoid !important;
    }

    /* Faz o último parágrafo do conteúdo "arrastar" a assinatura consigo */
    #audit-result p:last-of-type,
    #draft-editor p:last-of-type,
    #reader-result p:last-of-type,
    #branding-print-container p:last-of-type,
    #audit-result li:last-of-type,
    #draft-editor li:last-of-type,
    #reader-result li:last-of-type,
    #branding-print-container li:last-of-type {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    /* Cria um bloco indivisível: último conteúdo + assinatura */
    .report-paper, .paper-sheet, #branding-print-container {
        break-inside: auto !important;
    }
    
    /* Garante que o container de resultado + assinatura formem um grupo anti-órfão */
    #audit-result ~ .signature-footer,
    .paper-sheet .signature-footer,
    #reader-result ~ .signature-footer,
    #branding-print-container .signature-footer {
        break-before: avoid !important;
        page-break-before: avoid !important;
    }

    /* Controle de linhas órfãs/viúvas em parágrafos normais */
    #audit-result p,
    #draft-editor p,
    #reader-result p,
    #branding-print-container p {
        orphans: 3;
        widows: 3;
    }

    /* Estilo da assinatura */
    .sig-line {
        width: 300px;
        height: 1px;
        background: #000 !important;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .sig-name {
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        color: #000 !important;
        text-align: center;
    }

    .sig-oab, .sig-date {
        font-size: 1rem;
        color: #333 !important;
        text-align: center;
    }
}

/* ✨ CO-PILOTO: DESTAQUE DOURADO NAS ALTERAÇÕES */
@keyframes copilotFlash {
    0%   { background: rgba(212, 175, 55, 0.35); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4); }
    60%  { background: rgba(212, 175, 55, 0.15); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2); }
    100% { background: transparent; box-shadow: none; }
}

.copilot-highlight {
    animation: copilotFlash 10s ease-out forwards;
    border-radius: 4px;
}

/* BOTÕES DE COLAR (AUDITORIA 360) */
.btn-paste-audit {
    margin-top: 1.2rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.btn-paste-audit:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.paste-area-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0b;
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    box-sizing: border-box;
    border-radius: 24px;
    z-index: 6000 !important; /* Deve estar acima do .input-overlay (5000) */
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.paste-area-container.active {
    display: flex;
}

.paste-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 1.2rem;
    resize: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    outline: none;
}

.paste-textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.paste-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 🧪 GLOBAL LOADING OVERLAY - Proteção de Fundo */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark); /* Fundo 100% sólido */
    z-index: 9998; /* Logo abaixo do thinking-state */
    display: none; /* Controlado via JS */
}

/* 🧪 THINKING STATE - Padrão Elite (Centro Real e Estável) */
.thinking-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 3rem;
    background: rgba(10, 15, 25, 0.98);
    border: 1px solid var(--gold);
    border-radius: 30px;
    box-shadow: 0 40px 120px rgba(0,0,0,1), inset 0 0 50px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(30px);
    width: 600px;
    max-width: 92%;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 10000;
    animation: fadeInScale 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.thinking-dots {
    display: flex;
    gap: 8px;
    margin: 1.5rem 0;
}

.thinking-dots span {
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: bounce 1.4s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1.0); opacity: 1; }
}

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.95); /* GARANTE O CENTRO EM CADA FRAME */
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

/* 📄 LEITOR DE PROCESSOS & MINUTAS - Alinhamento de Papel */
/* Reader Container: Permite que a folha branca e a barra de ferramentas apareçam corretamente */
.reader-container {
    background: transparent;
    box-shadow: none;
    border: none;
}

.paper-toolbar {
    background: #1a1c23;
    border: 1px solid var(--glass-border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

/* .paper-sheet já está definido acima, aqui garantimos apenas o alinhamento específico no reader */
.reader-room-container .paper-sheet {
    background: white;
    width: 100%;
    max-width: 850px;
    min-height: 1100px;
    margin: 50px auto;
    padding: 80px 70px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    color: #1a1c23;
    position: relative;
    overflow-anchor: none; /* [ELITE FIX] Anti-tremor */
    z-index: 10;
}

.reader-paper-content {
    width: 100% !important;
}

.doc-title {
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.paper-actions {
    display: flex;
    gap: 0.6rem;
}
/* 🏛️ ELITE DESIGN: FORMATAÇÃO DE SÚMULAS E JURISPRUDÊNCIA */
.juris-placeholder {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff9e6; /* Creme suave como o print */
    border: 1.5px dashed var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    user-select: none;
    transition: var(--transition);
}

.juris-placeholder:hover {
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.juris-placeholder i {
    font-size: 2.2rem;
    color: var(--gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.juris-placeholder span {
    color: #DC2626; /* Vermelho forte conforme o print */
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    background: rgba(220, 38, 38, 0.05); /* Fundo sutil vermelho no texto */
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* 📡 ANIMATION: SCANNER HORIZONTAL JUSBOT */
.refine-input-wrapper {
    position: relative;
    overflow: hidden;
}

.refine-input-wrapper .scanner-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.4) 50%, 
        transparent 100%);
    z-index: 5;
    pointer-events: none;
    display: none;
}

.refine-input-wrapper.thinking .scanner-line {
    display: block;
    animation: scan-horizontal 2s infinite linear;
}

@keyframes scan-horizontal {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* 📄 ROLAGEM E REALCE PÓS-ALTERAÇÃO */
.new-content-focus {
    animation: content-pulse 3s ease-out forwards;
    scroll-margin-top: 150px;
}

@keyframes content-pulse {
    0% { background: rgba(212, 175, 55, 0.3); }
    100% { background: transparent; }
}

/* Ajustes finos no typewriter para scroll mais estável */
#draft-editor, #reader-result, #jusbot-messages {
    scroll-behavior: smooth;
    overflow-anchor: none; /* Previne pulos de scroll do navegador */
}

/* =========================================
   PROJETOR ELITE: BLOCO DE JURISPRUDÊNCIA
   ========================================= */
.elite-juris-block {
    margin: 25px 0;
    padding: 20px 25px;
    background: rgba(212, 175, 55, 0.04);
    border-left: 4px solid var(--gold);
    border-radius: 4px 12px 12px 4px;
    position: relative;
    font-family: 'Times New Roman', serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.elite-juris-block:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateX(5px);
}

.elite-juris-block::before {
    content: '\f24e'; /* FontAwesome Balance Scale */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--gold);
    opacity: 0.2;
    font-size: 1.8rem;
}

.juris-header-elite {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 10px;
}

.juris-badge-elite {
    background: var(--gold);
    color: #000;
    padding: 3px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.juris-title-elite {
    font-weight: 700;
    color: #1a1c23;
    font-size: 1.1rem;
    margin: 0;
}

.paper-sheet .elite-juris-block {
    color: #333;
}

.paper-sheet .juris-title-elite {
    color: #000;
}

/* ==========================================================================
   JUSELITE.AI - TYPEWRITER CURSOR
   ========================================================================== */
.typing-cursor {
    display: inline-block;
    width: 6px;
    height: 1.1em;
    background-color: var(--gold, #d4af37);
    vertical-align: text-bottom;
    margin-left: 4px;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   JUSELITE V5.0 - REFINAMENTO VISUAL (PRODUÇÃO)
   ========================================================================== */

.module-section { margin-top: 1.5rem !important; padding-top: 0 !important; }
.section-header { margin-bottom: 1.5rem !important; }

.jusbot-panel { border: 1px solid rgba(212, 175, 55, 0.3) !important; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1) !important; }
.jusbot-header { background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(10, 10, 11, 0.9) 100%) !important; backdrop-filter: blur(15px) !important; border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important; }
.msg.bot { background: rgba(212, 175, 55, 0.08) !important; border: 1px solid rgba(212, 175, 55, 0.2) !important; color: #fff !important; }
.msg.user { background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }

#dev-bypass-btn { display: none !important; }

/* ==========================================================================
   JUSELITE — LAUDO PERICIAL PREMIUM (Perícia de Acórdãos / Motor SIAT)
   Estilização on-screen do relatório: Badges, Tabelas, Divisores, Selo
   ========================================================================== */

/* ── SIAT STATUS BADGES (on-screen rendering) ── */
.siat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.6;
}

.siat-badge-conforme {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.siat-badge-atencao {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.siat-badge-nao-conforme {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.siat-badge-erro {
    background: rgba(220, 38, 38, 0.18);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.5);
    font-weight: 800;
}

.siat-badge-contradicao {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
    font-weight: 800;
}

.siat-badge-alerta {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.siat-badge-referencia {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

/* ── PREMIUM ON-SCREEN TABLE STYLING (dentro do paper-sheet) ── */
.paper-sheet.reader-paper-content table,
#acordao-result table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    border: 1px solid #d4af37;
    table-layout: fixed;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 9.5pt;
}

.paper-sheet.reader-paper-content th,
#acordao-result th {
    background: linear-gradient(180deg, #2C3E50 0%, #1a252f 100%);
    color: #f0e6c0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 7.5pt;
    letter-spacing: 0.3px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #d4af37;
    vertical-align: middle;
}

.paper-sheet.reader-paper-content td,
#acordao-result td {
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 7px 8px;
    vertical-align: top;
    text-align: left;
    font-size: 9pt;
    line-height: 1.45;
    color: #222;
}

.paper-sheet.reader-paper-content tr:nth-child(even),
#acordao-result tr:nth-child(even) {
    background: rgba(212, 175, 55, 0.03);
}

.paper-sheet.reader-paper-content tr:hover,
#acordao-result tr:hover {
    background: rgba(212, 175, 55, 0.07);
}

/* ── ELEGANT SECTION DIVIDERS ── */
#acordao-result hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 20%, #d4af37 80%, transparent 100%);
    margin: 28px 0;
    position: relative;
}

#acordao-result hr::after {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #d4af37;
    font-size: 10px;
    padding: 0 12px;
}

/* ── ON-SCREEN HEADING STYLING ── */
#acordao-result h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13pt;
    color: #1a1a1a;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 6px;
    margin-top: 28px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

#acordao-result h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11.5pt;
    color: #2C3E50;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    border-left: 3px solid #d4af37;
    padding-left: 10px;
}

/* ── ON-SCREEN BODY TYPOGRAPHY ── */
#acordao-result {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.65;
    color: #222;
}

#acordao-result p {
    margin-bottom: 10px;
    text-align: justify;
}

#acordao-result ul {
    background: #fafaf6;
    padding: 12px 15px 12px 38px;
    border-left: 3px solid #d4af37;
    margin: 12px 0;
    border-radius: 0 4px 4px 0;
}

#acordao-result li {
    margin-bottom: 6px;
    line-height: 1.55;
    font-size: 10.5pt;
}

#acordao-result strong {
    color: #000;
    font-weight: 700;
}

/* ── LAUDO SEAL FOOTER (on-screen) ── */
.siat-seal-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #d4af37;
    font-family: 'Inter', sans-serif;
    font-size: 8pt;
    color: #888;
    letter-spacing: 0.5px;
}

.siat-seal-footer .seal-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0.02) 100%);
    border: 1px solid rgba(212,175,55,0.25);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    color: #b8960b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 7.5pt;
    margin-bottom: 6px;
}

/* ── DASHBOARD FIXES ── */
.hub-card h3 {
    color: #ef4444 !important; /* Mantém o vermelho JusElite fixo, ignorando alterações no --accent-color */
}

