/* ================= GLOBAL VARIABLES & RESET ================= */
:root {
    --primary-red: #e11d48;    
    --secondary-red: #be123c;  
    --dark-bg: #0f172a;        
    --panel-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #64748b;
    --bg-light: #f8fafc;       
    --bg-dash: #f1f5f9;        
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --border-color: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--dark-bg); letter-spacing: -0.5px; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
section { padding: 100px 5%; position: relative; }

/* ================= UTILITIES ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border-radius: 8px; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; cursor: pointer; transition: all 0.3s ease; border: none; letter-spacing: 0.5px; }
.btn-red { background: linear-gradient(135deg, var(--primary-red), var(--secondary-red)); color: white; box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4); }
.btn-dark { background-color: var(--dark-bg); color: white; }
.btn-dark:hover { background-color: #000; transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-dark); background: white; }
.btn-outline:hover { border-color: var(--primary-red); color: var(--primary-red); }
.btn-small { padding: 8px 15px; font-size: 0.75rem; } 

.red-text { color: var(--primary-red); }
.badge { padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; }
.badge-green { background: #d1fae5; color: #047857; }
.badge-red { background: #ffe4e6; color: #be123c; }
.badge-orange { background: #fef3c7; color: #b45309; }
.badge-dark { background: rgba(15, 23, 42, 0.8); color: white; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px); }

.help-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #cbd5e1; color: white; font-size: 0.8rem; cursor: pointer; transition: 0.3s; margin-left: 8px; vertical-align: middle; }
.help-icon:hover { background: var(--primary-red); transform: scale(1.1); box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3); }

.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 15px; } 
.section-header p { color: var(--text-gray); font-size: 1rem; max-width: 700px; margin: auto; } 

/* ================= TICKER ================= */
.ticker-wrap { position: fixed; top: 0; width: 100%; height: 40px; background-color: var(--primary-red); z-index: 1100; overflow: hidden; white-space: nowrap; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ticker { display: inline-block; animation: ticker 35s linear infinite; padding-left: 100%; }
.ticker-item { display: inline-block; padding: 0 30px; font-size: 0.8rem; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 500; }
.ticker-item span { font-weight: 800; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* ================= HEADER PÚBLICO ================= */
header { background-color: #ffffff; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 40px; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.logo { font-family: 'Montserrat', sans-serif; color: var(--dark-bg); font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 12px; letter-spacing: -1px; } 
nav ul { display: flex; gap: 40px; align-items: center; }
nav a { color: var(--text-dark); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
nav a:hover { color: var(--primary-red); }

/* ================= HERO SECTION ================= */
.hero { height: 100vh; position: relative; background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; justify-content: center; padding: 0 5%; padding-top: 60px; }
.hero-content { text-align: center; max-width: 900px; z-index: 2; animation: fadeUp 1s ease-out; }
.hero h1 { color: var(--text-light); font-size: 3.2rem; line-height: 1.2; margin-bottom: 25px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); } 
.hero p { color: #e2e8f0; font-size: 1.1rem; margin-bottom: 45px; max-width: 800px; margin-inline: auto; font-weight: 400; line-height: 1.7; } 
.hero-floating-badge { margin-bottom: 30px; display: inline-block; animation: float 3s ease-in-out infinite; font-size: 0.8rem; } 
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* ================= BANNER VERMELHO (PILARES) ================= */
.pillars-banner { background: linear-gradient(135deg, var(--primary-red), var(--secondary-red)); padding: 80px 5%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; color: var(--text-light); margin-top: -100px; position: relative; z-index: 10; width: 90%; margin-left: auto; margin-right: auto; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(225, 29, 72, 0.35); }
.pillar-card { background: rgba(255,255,255,0.08); padding: 40px 30px; border-radius: 12px; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); transition: 0.3s; }
.pillar-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.12); }
.pillar-card i { font-size: 2.2rem; margin-bottom: 15px; color: #fff; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); } 
.pillar-card h3 { color: #fff; margin-bottom: 12px; font-size: 1.1rem; } 
.pillar-card p { font-size: 0.85rem; opacity: 0.9; line-height: 1.5; } 

/* ================= CARDS OPORTUNIDADES E PARCEIROS ================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.opp-card { background: white; border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; cursor: pointer; }
.opp-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-color: var(--primary-red); }
.opp-img-wrap { position: relative; width: 100%; height: 180px; }
.opp-img { width: 100%; height: 100%; object-fit: cover; border-bottom: 1px solid var(--border-color); }
.opp-img-blurred { filter: blur(10px) brightness(0.7); }
.opp-locked-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: rgba(0,0,0,0.4); }
.opp-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.opp-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: var(--dark-bg); }
.opp-leiloeiro { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }
.opp-price-box { background: var(--bg-dash); padding: 12px; border-radius: 8px; margin-bottom: 15px; }
.opp-price-box span { display: block; font-size: 0.8rem; color: var(--text-gray); }
.opp-price-box strong { font-size: 1.2rem; color: var(--dark-bg); }

/* Parceiros */
.partner-box { background: var(--bg-dash); border-radius: 12px; padding: 30px; text-align: center; border: 1px solid var(--border-color); transition: 0.3s; }
.partner-box:hover { border-color: var(--primary-red); background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.partner-box i { font-size: 2.5rem; color: var(--primary-red); margin-bottom: 15px; }
.lawyer-list-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; text-align: left; transition: 0.3s; cursor: pointer; }
.lawyer-list-item:hover { border-color: var(--primary-red); background: #fff1f2; }

/* ================= PLANOS (SAAS) ================= */
#planos { background: linear-gradient(to bottom, var(--bg-light) 0%, #ffffff 100%); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1200px; margin: auto; align-items: center; }
.plan-card { background: white; border-radius: 16px; padding: 45px 35px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); transition: 0.4s; border: 1px solid #e2e8f0; position: relative; }
.plan-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.plan-card.featured { border: 2px solid var(--primary-red); transform: scale(1.05); box-shadow: 0 20px 50px rgba(225, 29, 72, 0.15); background: #fff; }
.plan-card.featured:hover { transform: scale(1.05) translateY(-5px); }
.plan-card.featured .badge-plan { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary-red); color: white; padding: 6px 20px; border-radius: 30px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; }
.plan-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; } 
.plan-card .price { font-size: 1.8rem; font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--dark-bg); margin-bottom: 20px; } 
.plan-card ul { margin: 25px 0 35px; }
.plan-card ul li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-dark); } 
.plan-card ul li i { color: var(--success-green); margin-top: 4px; font-size: 0.9rem; }

/* ================= FOOTER ================= */
footer { background: var(--dark-bg); color: #94a3b8; padding: 80px 5% 40px; text-align: center; border-top: 6px solid var(--primary-red); }
.footer-logo { margin-bottom: 30px; font-size: 1.5rem; color: white; font-family: 'Montserrat', sans-serif; font-weight: 800; } 
.copyright { font-size: 0.85rem; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; } 

/* ================= DASHBOARD LAYOUT ================= */
#dashboard-area { display: none; min-height: 100vh; background-color: var(--bg-dash); }
.dash-container { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }

.sidebar { background-color: #ffffff; border-right: 1px solid var(--border-color); padding: 30px 25px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 100; }
.dash-logo-side { margin-bottom: 50px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; gap: 12px; color: var(--dark-bg); }
.sidebar-menu { display: flex; flex-direction: column; gap: 10px; }
.sidebar-btn { display: flex; align-items: center; gap: 15px; color: var(--text-gray); padding: 14px 18px; border-radius: 10px; transition: 0.2s; cursor: pointer; font-weight: 600; border: none; background: transparent; width: 100%; text-align: left; font-size: 0.95rem; }
.sidebar-btn i { font-size: 1.2rem; width: 24px; text-align: center; }
.sidebar-btn:hover { background-color: var(--bg-dash); color: var(--dark-bg); }
.sidebar-btn.active { background-color: #fff1f2; color: var(--primary-red); border-right: 4px solid var(--primary-red); border-radius: 10px 0 0 10px; }

.main-content { padding: 50px 60px; height: 100vh; overflow-y: auto; position: relative; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.dash-header h2 { font-size: 2rem; margin-bottom: 8px; }
.view-section { display: none; animation: fadeIn 0.4s ease-out; }
.view-section.active-view { display: block; }

.dash-card { background: var(--panel-bg); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.02); margin-bottom: 30px; transition: 0.3s; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Filtros Oportunidades & Nova Interface Customizada */
.filter-bar { display: flex; gap: 15px; background: white; padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 30px; align-items: flex-end; flex-wrap: wrap; }
.filter-group { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.filter-group label { font-weight: 600; font-size: 0.85rem; color: var(--text-gray); text-transform: uppercase; }
.filter-group select, .filter-group input, .filter-group textarea { padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 0.95rem; outline: none; }

/* Gráfico de Tendência (Barra) */
.trend-bar-wrapper { width: 100%; height: 12px; background: #e2e8f0; border-radius: 6px; margin: 15px 0; overflow: hidden; display: flex; }
.trend-bar-fill { height: 100%; transition: width 1s ease; }

/* Tabs para a Abinha do Score */
.tab-container { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 25px; }
.tab-btn { padding: 10px 20px; cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--text-gray); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: 0.3s; text-transform: uppercase; }
.tab-btn.active { color: var(--primary-red); border-bottom-color: var(--primary-red); }
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }

.score-widget { display: flex; align-items: center; gap: 40px; }
.score-circle-wrapper { position: relative; width: 160px; height: 160px; }
.score-circle { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(var(--success-green) 82%, #e2e8f0 0); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 25px rgba(16, 185, 129, 0.25); transition: background 0.5s ease; }
.score-inner { width: 130px; height: 130px; background: white; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-inner h2 { font-size: 3.2rem; margin: 0; line-height: 1; color: var(--dark-bg); }
.score-inner span { font-size: 0.8rem; font-weight: 700; color: var(--text-gray); letter-spacing: 1.5px; }

.upload-zone { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 50px 30px; text-align: center; background: #f8fafc; cursor: pointer; transition: 0.3s; margin-bottom: 30px; }
.upload-zone:hover { border-color: var(--primary-red); background: #fff1f2; }
.upload-zone i { font-size: 3rem; color: var(--text-gray); margin-bottom: 15px; transition: 0.3s; }
.upload-zone:hover i { color: var(--primary-red); }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th { background: #f8fafc; padding: 15px 20px; text-align: left; color: var(--text-gray); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; border-bottom: 2px solid var(--border-color); }
.data-table td { padding: 20px; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; font-weight: 500; color: var(--text-dark); }
.data-table tr:hover td { background-color: #f8fafc; }

.property-header { display: flex; gap: 30px; padding: 30px; background: white; border-radius: 16px; border: 1px solid var(--border-color); margin-bottom: 30px; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.property-img { width: 140px; height: 140px; border-radius: 10px; object-fit: cover; }
.info-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-dash); padding: 8px 15px; border-radius: 8px; font-size: 0.85rem; color: var(--text-gray); font-weight: 600; margin-right: 12px; margin-top: 15px; }

/* CLASSES PARA O MODO PÚBLICO DE DETALHES */
.public-mode .sidebar { display: none !important; }
.public-mode .dash-container { display: block !important; } 
.public-mode .main-content { height: auto !important; overflow-y: visible !important; padding-top: 140px !important; padding-bottom: 60px !important; }
.public-mode .dash-header-tools { display: none !important; }
.public-mode .blur-content { filter: blur(10px); user-select: none; pointer-events: none; }
.public-banner { display: none; background: var(--dark-bg); color: white; padding: 15px 30px; border-radius: 12px; align-items: center; justify-content: space-between; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.public-mode .public-banner { display: flex; }

/* ================= CHATBOT IA ================= */
.chat-fab { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: var(--primary-red); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(225,29,72,0.4); cursor: pointer; z-index: 3000; transition: 0.3s; border: none; }
.chat-fab:hover { transform: scale(1.1); }
.chat-window { position: fixed; bottom: 100px; right: 30px; width: 350px; height: 500px; background: white; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); z-index: 3000; display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color); animation: fadeIn 0.3s; }
.chat-window.active { display: flex; }
.chat-header { background: var(--dark-bg); color: white; padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-header i.robot-icon { font-size: 1.5rem; color: var(--primary-red); background: white; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; background: var(--bg-dash); display: flex; flex-direction: column; gap: 15px; }
.msg-bot, .msg-user { max-width: 80%; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; color: var(--dark-bg, #0f172a); }
.msg-bot { background: #f1f5f9; border: 1px solid var(--border-color); align-self: flex-start; border-bottom-left-radius: 0; }
.msg-user { background: #e2e8f0; align-self: flex-end; border-bottom-right-radius: 0; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-suggestion {
    font-size: 0.72rem; padding: 5px 10px; border-radius: 999px;
    border: 1px solid var(--lt-gold-dim, #c9a227); background: transparent;
    color: var(--lt-gold, #c9a227); cursor: pointer; font-family: inherit;
}
.chat-input-area { padding: 15px; background: white; border-top: 1px solid var(--border-color); display: flex; gap: 10px; }
.chat-input-area input { flex: 1; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 20px; outline: none; }
.chat-input-area button { background: var(--dark-bg); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.3s; }

/* MODAIS COMUNS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); display: none; justify-content: center; align-items: center; z-index: 4000; backdrop-filter: blur(5px); overflow-y: auto;}
.modal-overlay.active { display: flex; animation: fadeIn 0.3s; }
.modal-box { background: white; padding: 40px; border-radius: 16px; width: 100%; max-width: 600px; text-align: center; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); margin: auto; }
.close-modal { position:absolute; top:25px; right:25px; cursor:pointer; font-weight: bold; font-size: 1.5rem; color: #cbd5e1; transition: 0.3s; }
.close-modal:hover { color: var(--primary-red); }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 0.90rem; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; transition: 0.3s; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--primary-red); outline: none; box-shadow: 0 0 0 3px rgba(225,29,72,0.1); }

.lawyer-list-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; text-align: left; transition: 0.3s; cursor: pointer; }
.lawyer-list-item:hover { border-color: var(--primary-red); background: #fff1f2; }

/* Video Tooltip Modal Styles */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; margin-bottom: 20px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

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