
/* ==================================================
   ENGCOMP - SYNC CSS (Global Animations, RT Modal, WhatsApp) 
   ================================================== */
   
/* 1. CSS DE BLINDAGEM DO MODAL E LAYOUT SIMÉTRICO */
#global-rt-modal {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    align-items: center; justify-content: center;
}
#global-rt-modal.active { display: flex; }
.rt-modal-container {
    position: relative; max-width: 1000px; width: 95%;
    background: #0d1117; border: 1px solid var(--modal-theme-color, #00F3FF);
    border-radius: 8px; padding: 30px; box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}
.rt-header {
    display: flex; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px; margin-bottom: 20px;
}
.rt-top-section {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 20px;
}
.rt-terminal-box {
    background: #050505; border-radius: 6px; padding: 20px;
    display: flex; flex-direction: column; justify-content: center;
}
.rt-glow-text {
    color: var(--modal-theme-color, #00F3FF);
    text-shadow: 0 0 5px var(--modal-theme-color), 0 0 10px var(--modal-theme-color);
}
.rt-middle-section {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 20px;
}
.rt-bottom-section { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.rt-pill {
    background: #161b22; border: 1px solid rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 20px; 
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #c9d1d9;
}
.rt-tag {
    background: transparent; border: 1px solid var(--modal-theme-color, #00F3FF); padding: 6px 12px; border-radius: 4px; 
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--modal-theme-color, #00F3FF);
}

/* 2. PADRONIZAÇÃO DE UI (CTA e Animações) */
.gateway-section .cta-text {
    color: #FFFFFF; font-weight: bold; animation: textPulseWhite 2s ease-in-out infinite;
}
.gateway-section .cta-cursor {
    color: var(--card-theme); margin-left: 4px; animation: terminalBlink 1s step-end infinite;
}
@keyframes textPulseWhite {
    0%, 100% { opacity: 0.85; text-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px #FFFFFF; }
}
@keyframes terminalBlink {
    0%, 100% { opacity: 1; text-shadow: 0 0 5px var(--card-theme); }
    50% { opacity: 0; text-shadow: none; }
}

/* 3. LOGICA DO WHATSAPP (Visibility Toggle CSS) */
.whatsapp-frame-btn {
    position: fixed !important; bottom: 30px !important; right: 30px !important; z-index: 9999 !important;
    background-color: #0d1117 !important; border: 1px solid #25D366 !important; color: #25D366 !important;
    padding: 12px 24px; border-radius: 8px; font-family: 'JetBrains Mono', monospace, sans-serif;
    font-weight: bold; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.1); cursor: pointer;
}
.whatsapp-frame-btn:hover, .whatsapp-frame-btn:focus {
    background-color: rgba(37, 211, 102, 0.1) !important;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6), inset 0 0 10px rgba(37, 211, 102, 0.2) !important;
    text-shadow: 0 0 8px #25D366; transform: translateY(-3px);
}
@media (max-width: 900px) {
    .whatsapp-frame-btn.hidden-by-scroll { opacity: 0 !important; transform: translateY(30px) !important; pointer-events: none !important; }
}

/* 4. RADAR DE TELA (Intersection Observer CSS for Mobile) */
.mobile-active .card-fx-canvas { opacity: 0.15; }
.mobile-active.gateway-section {
    opacity: 1 !important; transform: scale(1.03) !important; filter: grayscale(0%) !important;
}

/* 5. SYSTEM CLOSING */
body.system-closing .gateway-section {
    transform: scaleY(0.01) scaleX(0.8); opacity: 0; filter: blur(8px) brightness(2);
    transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}
body.system-closing { background-color: #000; transition: background-color 0.4s ease; }
