@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;500;700;900&family=Share+Tech+Mono&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Rajdhani', sans-serif; background: #03060a; color: #e2e8f0; padding: 40px 20px; overflow-x: hidden; }

.font-mono { font-family: 'Share Tech Mono', monospace; }
.tlg { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.neon-purple { color: #fff; text-shadow: 0 0 5px #c084fc, 0 0 15px #818cf8, 0 0 30px #818cf8; }

.emovision-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.scanner-box { position: relative; width: 100%; height: 400px; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(0, 255, 213, 0.1); }
#video-feed { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%) contrast(1.1) brightness(0.8); transform: scaleX(-1); }
#overlay-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; transform: scaleX(-1); }

#heatmap-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; transform: scaleX(-1); }
.heat-dot { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 0, 0.5) 0%, rgba(255, 69, 0, 0.4) 30%, transparent 70%); transform: translate(-50%, -50%); transition: opacity 1.5s ease-out; mix-blend-mode: screen; pointer-events: none; }

.live-terminal { position: absolute; bottom: 20px; left: 20px; background: rgba(0, 0, 0, 0.85); border-left: 3px solid #00ffd5; padding: 15px; font-family: 'Share Tech Mono', monospace; font-size: 13px; color: #00ffd5; z-index: 10; backdrop-filter: blur(5px); }

.emotions-panel { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; }
.emo-row { display: flex; flex-direction: column; gap: 4px; }
.emo-label { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: #cbd5e1; display: flex; justify-content: space-between;}
.emo-bar-bg { width: 100%; height: 3px; background: rgba(255,255,255,0.1); overflow: hidden; }
.emo-bar-fill { height: 100%; background: #00ffd5; transition: width 0.2s ease; box-shadow: 0 0 10px #00ffd5; }

.graph-box { border: 1px solid rgba(0, 255, 213, 0.2); border-radius: 12px; padding: 20px; height: 220px; margin-top: 30px; background: rgba(10, 15, 25, 0.4);}
.graph-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: 'Share Tech Mono', monospace; font-size: 13px; color: #00ffd5; }
.dot-glow { width: 8px; height: 8px; background: #00ffd5; border-radius: 50%; box-shadow: 0 0 10px #00ffd5; }

#relatorio-final { margin-top: 30px; background: rgba(10,15,25,0.9); padding: 30px; border-radius: 12px; border: 1px solid #c084fc; display: none; box-shadow: 0 0 30px rgba(192, 132, 252, 0.1); grid-column: 1 / -1; }
.laudo-box { background: rgba(0,0,0,0.5); padding: 25px; border-left: 4px solid #00ffd5; margin-bottom: 25px; border-radius: 0 8px 8px 0;}
.laudo-title { font-family: 'Share Tech Mono', monospace; font-size: 18px; color: #fff; margin-bottom: 15px; letter-spacing: 1px;}
.laudo-text { color: #cbd5e1; font-size: 16px; line-height: 1.6; margin-bottom: 15px; }
.laudo-text strong { color: #fff; }

.frames-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;}
.frame-card { background: #000; border-radius: 6px; overflow: hidden; border: 1px solid #333; }
.frame-card img { width: 100%; display: block; }
.frame-card .frame-info { padding: 10px; font-family: 'Share Tech Mono', monospace; font-size: 11px; line-height: 1.4; }

.btn-tech { display: inline-block; background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%); color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; padding: 20px 30px; border: 1px solid #c084fc; border-radius: 4px; cursor: pointer; transition: all 0.3s; margin-top: 20px; width: 100%; text-align: center;}
.btn-tech:hover { box-shadow: 0 0 40px rgba(192, 132, 252, 0.6); background: #c084fc; color: #000; }

@media (max-width: 768px) { .emovision-wrap { grid-template-columns: 1fr; } .scanner-box { height: 300px; } }

/* ========================================== */
/* ESTILOS DA LGPD & BIOMETRIA                */
/* ========================================== */

#consent-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 800px; background: rgba(10, 15, 25, 0.95); border: 1px solid #00ffd5;
    padding: 25px; border-radius: 8px; z-index: 1000; box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    display: flex; flex-direction: column; gap: 15px; backdrop-filter: blur(10px);
}

.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000; overflow-y: auto; padding: 40px 20px; backdrop-filter: blur(5px);
}

.modal-content { 
    max-width: 800px; margin: auto; background: rgba(10, 15, 25, 1); 
    padding: 40px; border: 1px solid #c084fc; border-radius: 8px; box-shadow: 0 0 40px rgba(192, 132, 252, 0.2);
}

/* Botões específicos do Banner LGPD */
.btn-lgpd-outline { background: transparent; color: #cbd5e1; border: 1px solid #333; padding: 12px 20px; font-family: 'Share Tech Mono', monospace; font-size: 12px; cursor: pointer; transition: 0.3s; border-radius: 4px; }
.btn-lgpd-outline:hover { border-color: #c084fc; color: #fff; }

.btn-lgpd-solid { background: #00ffd5; color: #000; border: none; padding: 12px 20px; font-family: 'Share Tech Mono', monospace; font-size: 12px; font-weight: bold; cursor: pointer; transition: 0.3s; border-radius: 4px; box-shadow: 0 0 15px rgba(0, 255, 213, 0.4); }
.btn-lgpd-solid:hover { background: #fff; box-shadow: 0 0 25px rgba(255, 255, 255, 0.6); }

.btn-revogar { 
    border: 1px solid #ff4444; color: #ff4444; font-size: 12px; font-family: 'Share Tech Mono', monospace;
    background: transparent; cursor: pointer; padding: 12px 24px; border-radius: 4px; transition: 0.3s;
}
.btn-revogar:hover { background: #ff4444; color: #fff; box-shadow: 0 0 15px rgba(255, 68, 68, 0.4); }

.hidden { display: none !important; }