@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: #0A0A0B;
    --text-light: #F5F5F7;
    --text-muted: #A1A1A6;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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: 1.5rem 0; /* Reduzido a altura excessiva da navbar */
    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 2%;
    width: 100%;
    margin: 0 auto;
    gap: 0.8rem; /* Reduzido para dar respiro aos 3 módulos */
}

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


.logo-img {
    height: 80px; /* Reduzido ainda mais para acomodar 3 módulos */
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
    transition: var(--transition);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem; /* Reduzido levemente para otimizar espaço */
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* Console Central SIAT 3.0 */
.command-side {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    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.4rem 0.6rem;
    gap: 0.8rem;
    margin: 0;
}
.nav-center-console .module-btn {
    padding: 0.6rem 1.4rem; /* Mais compacto para acomodar 3 botões */
    gap: 1rem;
}
.nav-center-console .module-btn i {
    font-size: 1.45rem;
}
.nav-center-console .module-info strong {
    font-size: 1rem;
}
.nav-center-console .module-info span {
    font-size: 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);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

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

.command-side {
    display: flex;
    gap: 1.2rem;
}

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

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

.btn-ai-active {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.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.1); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.3; }
}

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

.btn-main-text {
    font-size: 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; }

/* 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(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.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);
}

.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;
}

/* 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;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    transform: scale(1.03);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(139, 0, 0, 0.05);
    transform: scale(1.05);
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.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);
}
.contact-btn i { color: var(--gold); }

/* FLOATING NAVIGATION (FAB) */
.floating-nav-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2500;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
    pointer-events: none;
    transition: bottom 0.4s ease; /* Transição suave caso mudemos no futuro */
}

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

.fab-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--gold);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    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 {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.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);
}

.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.6rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.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 STYLES */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 4rem;
}

.audit-interface {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.drop-container {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.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: 60px;
    height: 60px;
    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 20px var(--gold);
    z-index: 10;
}

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

/* RESULTS REPORT */
.report-paper {
    background: white;
    color: #1a1a1a;
    padding: 3rem;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.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 {
    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;
}

.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: 500px;
    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; }
}

.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;
}

/* 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 {
    /* 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: 15mm !important; 
        box-shadow: none !important;
        background: white !important;
        border: none !important;
    }

    .report-paper * {
        color: #000 !important;
    }
    
    .signature-footer {
        display: flex !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: none; /* Escondido na web, aparece no print via selector acima */
     flex-direction: column;
     align-items: center;
     text-align: center;
     page-break-inside: avoid;
     break-inside: avoid;
}

.sig-line {
    width: 300px;
    height: 1px;
    background: #000;
    margin-bottom: 1rem;
}

.sig-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #000;
}

.sig-date {
    font-size: 0.9rem;
    color: #666;
}

.report-footer-actions {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* =========================================
   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;
}

/* Scrollbar Customizada para o Menu Esquerdo */
.draft-controls::-webkit-scrollbar {
    width: 6px;
}
.draft-controls::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.custom-select, .custom-textarea {
    width: 100%;
    background: rgba(10, 10, 11, 0.8);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    resize: vertical;
}

.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 */
.draft-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 800px;
}

.paper-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    border: 1px solid #333;
    border-bottom: none;
}

.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: #121212;
    padding: 1rem;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 12px 12px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.paper-sheet {
    background: #fff;
    width: 100%;
    max-width: 850px;
    min-height: 1000px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 3rem 3rem;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
    outline: none;
}

/* Garante margem elegante em parágrafos e listas */
.paper-sheet 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;
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: rgba(15, 20, 30, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(25px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    animation: slideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.4s ease;
    position: sticky;
    bottom: 30px;
    z-index: 3100; /* Agora acima do FAB (2500) e do JusBot (3000) */
}

.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 {
    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;
    max-height: 150px;
    line-height: 1.5;
    overflow-y: auto;
}

#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 {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.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);
}

/* BANNER DE SEGURANÇA JURÍDICA */
.safety-banner-elite {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.safety-banner-elite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #dc3545;
}

.safety-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ff4d4d;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.safety-content {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.safety-content strong {
    color: var(--gold);
}
/* REGRA DE OURO: Sobe a Bússola se o Co-Piloto estiver na sala de rascunhos */
body[data-active-module="draft-room"] .floating-nav-container {
    bottom: 140px !important;
}

/* 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;
}

.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 ALPHA - JUSEXPERT.AI */
#alpha-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #000000 0%, #1a1a1c 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter : blur(15px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.alpha-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 3rem;
    border-radius: 24px;
    width: 420px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(212, 175, 55, 0.05);
    text-align: center;
    backdrop-filter: blur(20px);
    animation: alpha-float 3s ease-in-out infinite;
}

@keyframes alpha-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.alpha-header img {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

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

.alpha-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.alpha-input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.alpha-input-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.alpha-input-group input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 4px;
    transition: all 0.3s;
}

.alpha-input-group input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
    outline: none;
    box-shadow: 0 0 20px rgba(212,175,55,0.1);
}

.alpha-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
    font-weight: 600;
}
