/* =========================================================================
   EMULADOR DO MODO BISBILHOTEIRO 🕵️‍♂️ (ISOLADO E RESPONSIVO)
   ========================================================================= */

.bisbilhoteiro-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.bisbilhoteiro-overlay.open {
    display: flex;
    opacity: 1;
}

/* Chassi do Celular */
.bisbilhoteiro-celular {
    position: relative;
    width: 395px;
    max-width: 95vw;
    height: 820px;
    max-height: 94vh;
    background: #0f172a;
    border-radius: 44px;
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.8),
        0 0 0 10px #1e293b,
        0 0 0 12px #334155;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bisbilhoteiro-overlay.open .bisbilhoteiro-celular {
    transform: scale(1);
}

/* Barra Superior / Notch */
.bisbilhoteiro-topo {
    background: #090d16;
    padding: 12px 18px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    user-select: none;
}

.bisbilhoteiro-identificador {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.bisbilhoteiro-identificador .icone {
    font-size: 16px;
    line-height: 1;
}

.bisbilhoteiro-identificador .titulo {
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.bisbilhoteiro-acoes {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bisbilhoteiro-btn-acao {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.bisbilhoteiro-btn-acao:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.bisbilhoteiro-btn-fechar {
    color: #ef4444;
    font-size: 20px;
    line-height: 1;
}

.bisbilhoteiro-btn-fechar:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Tela / Iframe */
.bisbilhoteiro-corpo {
    flex: 1;
    position: relative;
    background: #0b0f19;
}

.bisbilhoteiro-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0b0f19;
    color: #94a3b8;
    font-size: 13px;
    gap: 12px;
    z-index: 2;
    transition: opacity 0.2s ease-out;
}

.bisbilhoteiro-loader .icone-loading {
    font-size: 32px;
    animation: bisbilhoteiroPulse 1.4s ease-in-out infinite;
}

.bisbilhoteiro-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Barra de Navegação Inferior (Home Bar) */
.bisbilhoteiro-rodape {
    background: #090d16;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bisbilhoteiro-home-bar {
    width: 130px;
    height: 4px;
    background: #475569;
    border-radius: 4px;
}

@keyframes bisbilhoteiroPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}
/* Transição suave do modal do Bisbilhoteiro */
.bisbilhoteiro-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-out;
}

.bisbilhoteiro-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.bisbilhoteiro-overlay.saindo {
    opacity: 0;
    pointer-events: none;
}