/* ═══════════════════════════════════════════════════════════════════
   Dossiê dos Games — Estilos Visuais Noir
   v3.0 — Mobile-first, efeitos aprimorados, chat responsivo
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────
   VARIÁVEIS E RESET BASE
   ───────────────────────────────────────────────────────────────────── */
:root {
    --color-bg:           #0d0d0d;
    --color-accent:       #D97706;
    --color-accent-hover: #B45309;
    --color-accent-glow:  rgba(217, 119, 6, 0.35);
    --color-accent-dim:   rgba(217, 119, 6, 0.12);
    --color-red:          #b91c1c;
    --color-red-glow:     rgba(185, 28, 28, 0.3);
    --color-text-main:    #EAEAEA;
    --color-text-muted:   #A3A3A3;
    --color-surface-1:    #1a1a1a;
    --color-surface-2:    #0f0f0f;
    --color-border:       #2a2a2a;
    --font-typewriter:    'Courier Prime', 'Courier New', monospace;
    --font-terminal:      'Roboto Mono', monospace;
    --chat-height-mobile: calc(100svh - 140px);
    --chat-height-tablet: 620px;
    --chat-height-desktop: 780px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    cursor: default;
}

/* Seleção de texto temática */
::selection {
    background-color: rgba(217, 119, 6, 0.3);
    color: #fff;
    text-shadow: 0 0 5px var(--color-accent);
}

/* Foco via teclado — acessibilidade */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

[x-cloak] { display: none !important; }

button, a, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}


/* ─────────────────────────────────────────────────────────────────────
   ATMOSFERA — Backgrounds, Vinheta, Film Grain, Scan Lines
   ───────────────────────────────────────────────────────────────────── */

.parallax-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('/imgs/fundo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
    opacity: 0.12;
    filter: sepia(25%) contrast(125%);
}

/* Vinheta — bordas escurecidas para foco */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.95);
    pointer-events: none;
    z-index: 99;
}

/* Film Grain */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 110vw; height: 110vh;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.045;
    pointer-events: none;
    z-index: 100;
    will-change: transform;
    animation: grain-dance 8s steps(10) infinite;
}

@keyframes grain-dance {
    0%, 100% { transform: translate(0,    0   ); }
    10%       { transform: translate(-5%,  -5% ); }
    20%       { transform: translate(-10%, 5%  ); }
    30%       { transform: translate(5%,  -10% ); }
    40%       { transform: translate(-5%,  15% ); }
    50%       { transform: translate(-10%, 5%  ); }
    60%       { transform: translate(15%,  0   ); }
    70%       { transform: translate(0,    10% ); }
    80%       { transform: translate(-15%, 0   ); }
    90%       { transform: translate(10%,  5%  ); }
}

@media (prefers-reduced-motion: reduce) {
    body::after { animation: none; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ─────────────────────────────────────────────────────────────────────
   HEADER APRIMORADO
   ───────────────────────────────────────────────────────────────────── */
header {
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 100%);
    border-bottom: 1px solid rgba(217, 119, 6, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(217, 119, 6, 0.1);
}

header a.font-title {
    position: relative;
    text-shadow: 0 0 20px rgba(217, 119, 6, 0.5), 0 0 40px rgba(217, 119, 6, 0.2);
    transition: text-shadow 0.3s ease;
}

header a.font-title:hover {
    text-shadow: 0 0 25px rgba(217, 119, 6, 0.8), 0 0 50px rgba(217, 119, 6, 0.35);
}

/* Linha de status tipo terminal no topo do header */
header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent) 20%,
        var(--color-accent) 80%,
        transparent 100%
    );
    opacity: 0.7;
    animation: header-line-scan 6s ease-in-out infinite;
}

@keyframes header-line-scan {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}


/* ─────────────────────────────────────────────────────────────────────
   TIPOGRAFIA E UTILITÁRIOS
   ───────────────────────────────────────────────────────────────────── */
.font-title {
    font-family: var(--font-typewriter);
    text-shadow: 0 0 12px rgba(217, 119, 6, 0.45);
    letter-spacing: -0.05em;
}

.font-typewriter { font-family: var(--font-typewriter); }
.font-mono       { font-family: var(--font-terminal); }
.text-accent     { color: var(--color-accent); }
.bg-accent       { background-color: var(--color-accent); }
.border-accent   { border-color: var(--color-accent); }

.section-divider {
    border-bottom: 1px solid rgba(217, 119, 6, 0.12);
    padding-bottom: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: -1px; right: 0;
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
    box-shadow: 0 0 15px var(--color-accent);
}

.section-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.012) 3px,
        rgba(0, 0, 0, 0.012) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* H2 section titles glow */
.section-divider h2 {
    position: relative;
}
.section-divider h2::after {
    content: '';
    position: absolute;
    bottom: -4px; left: -1rem;
    width: 4px; height: 100%;
    background: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent), 0 0 25px rgba(217,119,6,0.4);
    border-radius: 2px;
}


/* ─────────────────────────────────────────────────────────────────────
   GAVETA DE ARQUIVOS — File Drawer
   ───────────────────────────────────────────────────────────────────── */
.file-drawer-container {
    width: 100%;
    padding: 5.5rem 0 3rem 0 !important;
    overflow-y: visible !important;
    overflow-x: auto;
    position: relative;
    scroll-behavior: smooth;
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.file-drawer-container:active { cursor: grabbing; }

.file-drawer-track {
    display: flex;
    align-items: flex-end;
    width: max-content;
    padding: 1rem 5rem;
}


/* ─────────────────────────────────────────────────────────────────────
   PASTA INDIVIDUAL
   ───────────────────────────────────────────────────────────────────── */
.file-folder {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    position: relative;
    margin-right: -100px;
    will-change: transform;
    transition:
        transform    0.5s cubic-bezier(0.16, 1, 0.3, 1),
        margin       0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow   0.4s ease,
        filter       0.4s ease;
    transform-origin: center bottom;
    z-index: 1;
    transform: rotate(-4deg);
}

.file-folder:hover,
.file-folder:focus-within {
    transform: translateY(-65px) rotate(0deg) scale(1.1);
    z-index: 100;
    margin-right: 20px;
    margin-left: 60px;
    filter: brightness(1.08) contrast(1.12);
    box-shadow:
        0 40px 70px -10px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(217, 119, 6, 0.25),
        0 0 30px rgba(217, 119, 6, 0.08);
}

.file-folder:active {
    filter: brightness(1.12) contrast(1.15);
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .file-folder {
        flex: 0 0 220px;
        width: 220px;
        min-width: 220px;
        margin-right: -60px;
    }
    .file-folder:hover,
    .file-folder:focus-within {
        transform: translateY(-45px) rotate(0deg) scale(1.08);
        margin-right: 10px;
        margin-left: 40px;
    }
}

.file-folder .folder-tab {
    position: absolute;
    top: -12px; left: 15px;
    width: 45%; height: 25px;
    background-color: #d2b48c;
    color: black;
    border: 1px solid #8c735a;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-tab span { color: #000 !important; font-weight: 900; }

.file-folder:hover .manila-folder,
.file-folder:hover .folder-tab {
    filter: brightness(1.08);
    border-color: var(--color-accent);
}


/* ─────────────────────────────────────────────────────────────────────
   PASTA MANILA
   ───────────────────────────────────────────────────────────────────── */
.manila-folder {
    background-color: #d2b48c;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    background-blend-mode: multiply;
    border: 1px solid #a0866a;
    border-top: none;
    box-shadow: inset 0 0 20px rgba(61, 47, 35, 0.2);
    position: relative;
    overflow: hidden;
}

.manila-folder::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.25;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 0;
}

.manila-folder > * { position: relative; z-index: 1; }


/* ─────────────────────────────────────────────────────────────────────
   ELEMENTOS REALISTAS — Clips, Carimbos, Fotos
   ───────────────────────────────────────────────────────────────────── */
.paper-clip-overlay::after {
    content: '';
    position: absolute;
    top: -12px; left: 10px;
    width: 40px; height: 55px;
    z-index: 20;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.3));
    transform: rotate(-5deg);
}

.ink-stamp {
    font-family: var(--font-typewriter);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: #b91c1c;
    border: 3px solid #b91c1c;
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    display: inline-block;
    opacity: 0.85;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    -webkit-mask-size: 150px;
    mask-size: 150px;
    filter: blur(0.2px);
    transform: rotate(-3deg);
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.2);
    mix-blend-mode: multiply;
}

.stamp-grey {
    color: #4a4a4a;
    border-color: #4a4a4a;
    font-size: 0.7rem;
    border-width: 2px;
    opacity: 0.65;
    mix-blend-mode: multiply;
}

.photo-container {
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #000;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s ease;
}

.photo-container img { height: auto !important; display: block; width: 100%; }
.file-folder:hover .photo-container { transform: scale(1.02); }

.tape-effect {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* ─────────────────────────────────────────────────────────────────────
   BIBLIOTECA 3D — Livros / Revistas
   ───────────────────────────────────────────────────────────────────── */
.book-scene {
    width: 200px;
    height: 280px;
    perspective: 1200px;
    position: relative;
    margin-bottom: 16px;
}

.book-3d {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-25deg);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.book-scene:hover .book-3d,
.book-scene:focus-within .book-3d {
    transform: rotateY(-10deg) translateY(-22px);
    filter: drop-shadow(0 25px 25px rgba(0,0,0,0.8));
}

.book-face { position: absolute; }

.book-front {
    width: 200px; height: 280px;
    transform: translateZ(15px);
    background-color: #111;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.5);
}

.book-spine {
    width: 30px; height: 280px;
    transform: rotateY(-90deg) translateZ(15px);
    background: #1a1a1a;
    background-image: url('https://www.transparenttextures.com/patterns/leather.png');
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.book-pages-right {
    width: 28px; height: 276px;
    top: 2px;
    transform: rotateY(90deg) translateZ(184px);
    background-image: repeating-linear-gradient(to right, #e3dccb 0px, #e3dccb 1px, #d1c7b1 2px);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.book-pages-top {
    width: 196px; height: 28px;
    top: 2px; left: 2px;
    transform: rotateX(90deg) translateZ(15px);
    background-image: repeating-linear-gradient(to bottom, #e3dccb 0px, #e3dccb 1px, #d1c7b1 2px);
}

.book-shadow {
    position: absolute;
    bottom: -10px; left: 20px;
    width: 180px; height: 20px;
    background: rgba(0, 0, 0, 0.6);
    filter: blur(10px);
    transform: rotateX(90deg) rotateZ(-25deg);
    transition: all 0.4s ease;
    z-index: -1;
}

@media (max-width: 768px) {
    .book-scene,
    .book-front   { width: 140px; height: 200px; }
    .book-spine   { height: 200px; }
    .book-pages-right {
        height: 196px;
        transform: rotateY(90deg) translateZ(126px);
    }
    .book-pages-top { width: 136px; }
    .book-3d { transform: rotateY(-12deg); }
    .book-scene:hover .book-3d {
        transform: rotateY(-5deg) translateY(-15px);
    }
}


/* ─────────────────────────────────────────────────────────────────────
   BARRA DE PESQUISA
   ───────────────────────────────────────────────────────────────────── */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.search-input {
    width: 100%;
    background-color: #080808;
    border: 1px solid #2a2a2a;
    border-left: 4px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-terminal);
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow:
        0 0 20px var(--color-accent-glow),
        0 0 40px rgba(217, 119, 6, 0.1),
        inset 0 0 15px rgba(0, 0, 0, 0.95);
}

.search-icon {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: #555;
    transition: color 0.3s;
    pointer-events: none;
}

.search-input:focus ~ .search-icon,
.search-input:not(:placeholder-shown) ~ .search-icon {
    color: var(--color-accent);
    filter: drop-shadow(0 0 4px var(--color-accent));
}

.search-badge {
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-terminal);
    font-size: 0.7rem;
    color: #666;
    background: #0f0f0f;
    padding: 2px 8px;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────────
   BOTÃO MUTE
   ───────────────────────────────────────────────────────────────────── */
.mute-btn {
    position: relative;
    overflow: hidden;
    transition: color 0.2s;
}

.mute-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 2px;
    background: #ef4444;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: width 0.2s ease;
    border-radius: 1px;
}

.mute-btn.muted::after { width: 80%; }


/* ─────────────────────────────────────────────────────────────────────
   LUPA DE INVESTIGAÇÃO
   ───────────────────────────────────────────────────────────────────── */
.magnifying-glass {
    position: fixed;
    top: 0; left: 0;
    width: 130px; height: 130px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    border: 5px solid #1c1c1c;
    box-shadow:
        0 0 0 1.5px #3a3a3a,
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: brightness(1.18) contrast(1.08) saturate(1.15);
    -webkit-backdrop-filter: brightness(1.18) contrast(1.08) saturate(1.15);
    background: radial-gradient(
        circle at 32% 32%,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.04) 25%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magnifying-glass::after {
    content: '';
    position: absolute;
    top: 15%; left: 15%;
    width: 20%; height: 10%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    filter: blur(2px);
    transform: rotate(-45deg);
}

body:hover .magnifying-glass { opacity: 1; }

@media (hover: none), (pointer: coarse) {
    .magnifying-glass { display: none !important; }

    /* BUG FIX #2: Em dispositivos touch, o overlay "INICIAR CASO" nunca
       aparecia porque depende de :hover (group-hover:opacity-100).
       No mobile não existe estado hover antes de tocar — o botão ficava
       sempre invisível (opacity-0), deixando os cards sem nenhum CTA visível. */
    .game-card-touch-overlay {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.25) !important;
    }
}


/* ─────────────────────────────────────────────────────────────────────
   TYPEWRITER CURSOR
   ───────────────────────────────────────────────────────────────────── */
.typewriter-cursor {
    display: inline-block;
    width: 10px;
    height: 1em;
    background-color: var(--color-accent);
    animation: blink-caret 0.8s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
    box-shadow: 0 0 10px var(--color-accent-glow);
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50%       { opacity: 1; }
}


/* ─────────────────────────────────────────────────────────────────────
   CARDS DE VÍDEO — Aprimorados
   ───────────────────────────────────────────────────────────────────── */
.video-card {
    background-color: var(--color-surface-2);
    border: 1px solid #222;
    border-radius: 2px;
    overflow: hidden;
    will-change: transform;
    transition:
        transform    0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        box-shadow   0.35s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(217, 119, 6, 0.12),
        0 0 25px rgba(217, 119, 6, 0.06);
}

.video-card:active {
    transform: scale(0.98);
    border-color: rgba(217, 119, 6, 0.5);
    -webkit-tap-highlight-color: transparent;
}


/* ─────────────────────────────────────────────────────────────────────
   CARDS DE MEMBERSHIP — Aprimorados
   ───────────────────────────────────────────────────────────────────── */
.member-card {
    background: linear-gradient(160deg, #181818 0%, #0a0a0a 100%);
    border: 1px solid #2a2a2a;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(217, 119, 6, 0.08),
        inset 0 1px 0 rgba(217, 119, 6, 0.08);
}

.member-card::before {
    content: '';
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 30px;
    background: repeating-linear-gradient(45deg, #2a2a2a, #2a2a2a 2px, #363636 2px, #363636 4px);
    border-radius: 3px;
    opacity: 0.5;
    pointer-events: none;
}

/* Linha de brilho no topo do card ao hover */
.member-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover::after { opacity: 0.6; }


/* ─────────────────────────────────────────────────────────────────────
   TEXTAREA DE ANOTAÇÕES
   ───────────────────────────────────────────────────────────────────── */
.notes-textarea {
    background-color: #0e0e0e;
    background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 100% 2rem;
    line-height: 2rem;
    border: 1px solid #222;
    font-family: var(--font-typewriter);
    color: #ccc;
    resize: none;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.7);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow:
        inset 0 0 35px rgba(0, 0, 0, 0.95),
        0 0 15px rgba(217, 119, 6, 0.12);
}


/* ═══════════════════════════════════════════════════════════════════════════
   CENTRAL DE INTELIGÊNCIA — CHAT TOTALMENTE RESPONSIVO
   Redesenhado para mobile-first, altura dinâmica, layout Discord-like
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container principal do chat */
.chat-container {
    display: flex;
    flex-direction: column;
    background: #090909;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(217, 119, 6, 0.06),
        0 30px 80px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;

    /* MOBILE: ocupa toda a tela disponível */
    height: var(--chat-height-mobile);
    min-height: 480px;
    max-height: 95svh;
}

/* TABLET */
@media (min-width: 640px) {
    .chat-container {
        height: var(--chat-height-tablet);
        max-height: 85svh;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .chat-container {
        flex-direction: row;
        height: var(--chat-height-desktop);
        max-height: 90svh;
    }
}

/* Linha de glow superior do chat */
.chat-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(217, 119, 6, 0.5) 30%,
        rgba(185, 28, 28, 0.4) 70%,
        transparent 100%
    );
    z-index: 10;
}


/* ── SIDEBAR DE CANAIS ── */
.chat-sidebar {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border-color: #1e1e1e;
    flex-shrink: 0;
    transition: max-height 0.3s ease;
}

/* Mobile: sidebar horizontal, collapsable, altura fixa */
@media (max-width: 1023px) {
    .chat-sidebar {
        width: 100%;
        border-bottom: 1px solid #1e1e1e;
        max-height: 100px; /* Apenas a barra de canais */
        overflow: hidden;
    }

    .chat-sidebar .sidebar-header {
        display: none; /* Oculta o cabeçalho "Diretório" em mobile */
    }

    .chat-sidebar .channel-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 6px 8px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .chat-sidebar .channel-list::-webkit-scrollbar { display: none; }

    .chat-sidebar .channel-group-label {
        display: none; /* Remove labels de grupo em mobile */
    }

    .chat-sidebar .channel-filter {
        display: none; /* Remove filtro de tópico em mobile */
    }
}

/* Desktop: sidebar vertical, largura fixa */
@media (min-width: 1024px) {
    .chat-sidebar {
        width: 220px;
        border-right: 1px solid #1e1e1e;
        flex-direction: column;
        overflow: hidden;
    }
}


/* Botão de canal — estilo refinado */
.channel-btn {
    font-family: var(--font-terminal);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 7px 12px;
    border-radius: 3px;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
    color: #555;
    background: transparent;
}

.channel-btn:hover {
    background: rgba(255,255,255,0.04);
    color: #888;
}

.channel-btn.active {
    background: rgba(217, 119, 6, 0.08);
    color: var(--color-accent);
    border-color: rgba(217, 119, 6, 0.2);
    border-left: 2px solid var(--color-accent);
    text-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
}

.channel-btn.active-vault {
    background: rgba(185, 28, 28, 0.08);
    color: #ef4444;
    border-color: rgba(185, 28, 28, 0.2);
    border-left: 2px solid #b91c1c;
    text-shadow: 0 0 8px rgba(185, 28, 28, 0.4);
}

/* Mobile: canais como pills */
@media (max-width: 1023px) {
    .channel-btn {
        flex-shrink: 0;
        padding: 5px 10px;
        border-radius: 12px;
        font-size: 10px;
        border: 1px solid #2a2a2a;
    }

    .channel-btn.active,
    .channel-btn.active-vault {
        border-left: 1px solid transparent;
        border-color: rgba(217, 119, 6, 0.4);
        padding: 5px 10px;
    }

    .channel-btn.active-vault {
        border-color: rgba(185, 28, 28, 0.4);
    }
}


/* ── ÁREA PRINCIPAL DO CHAT ── */
.chat-main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}


/* ── CABEÇALHO DO CANAL ── */
.chat-channel-header {
    flex-shrink: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #1a1a1a;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
    .chat-channel-header { padding: 12px 20px; }
}


/* ── JANELA DE MENSAGENS ── */
.chat-messages-window {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .chat-messages-window { padding: 16px 24px; }
}

/* Scrollbar personalizada */
.chat-messages-window::-webkit-scrollbar { width: 4px; }
.chat-messages-window::-webkit-scrollbar-track { background: transparent; }
.chat-messages-window::-webkit-scrollbar-thumb {
    background: #242424;
    border-radius: 2px;
    transition: background 0.2s;
}
.chat-messages-window::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}


/* ── INPUT DO CHAT ── */
.chat-input-area {
    flex-shrink: 0;
    padding: 10px 12px;
    background: #070707;
    border-top: 1px solid #1a1a1a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .chat-input-area { padding: 12px 16px; }
}

/* Textarea do chat — responsiva */
.chat-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #252525;
    padding: 10px 12px;
    font-size: 13px;
    font-family: var(--font-terminal);
    color: #ddd;
    resize: none;
    border-radius: 3px;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
    /* CRÍTICO: evita zoom no iOS */
    font-size: max(16px, 13px);
}

@media (min-width: 768px) {
    .chat-textarea { font-size: 13px; }
}

.chat-textarea:focus {
    outline: none;
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.chat-textarea::placeholder { color: #444; }


/* ── MENSAGEM DO CHAT ── */
.chat-message {
    animation: slideInChat 0.22s ease-out both;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    padding-bottom: 14px;
    margin-bottom: 2px;
}

.chat-message:last-child { border-bottom: none; }

@keyframes slideInChat {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0);    }
}

/* Avatar */
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    flex-shrink: 0;
    filter: grayscale(1);
    transition: filter 0.3s;
    object-fit: cover;
}

@media (min-width: 768px) {
    .chat-avatar { width: 40px; height: 40px; }
}

.chat-message:hover .chat-avatar { filter: grayscale(0); }

/* Borda dourada para membros */
.chat-avatar.member-border {
    border: 1px solid rgba(217, 119, 6, 0.6);
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.15);
}

/* Borda vermelha para admin */
.chat-avatar.admin-border {
    border: 1px solid rgba(185, 28, 28, 0.6);
    box-shadow: 0 0 8px rgba(185, 28, 28, 0.2);
}

/* Efeito hover na mensagem */
.chat-message:hover {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
}


/* ── INDICADOR DE DIGITAÇÃO ── */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 6px; height: 6px;
    background: #444;
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-4px); opacity: 1; }
}


/* ── PLAYER DE ÁUDIO NOIR ── */
.noir-audio-player {
    background: #080808;
    border: 1px solid #1e1e1e;
    border-left: 3px solid var(--color-red);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 2px;
}

.custom-audio-noir {
    height: 32px;
    width: 100%;
    max-width: 260px;
    border-radius: 3px;
    filter: sepia(80%) contrast(1.15) brightness(0.85) hue-rotate(330deg);
    flex-shrink: 0;
}

.audio-preview-box {
    background: linear-gradient(90deg, rgba(185, 28, 28, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-left: 3px solid var(--color-red);
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    border-radius: 2px;
}

@media (max-width: 640px) {
    .custom-audio-noir  { max-width: 150px; }
    .audio-preview-box  { padding: 6px 10px; gap: 8px; }
}


/* ─────────────────────────────────────────────────────────────────────
   LEITOR DE PDF
   ───────────────────────────────────────────────────────────────────── */
#pdf-canvas {
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.98);
    border: 1px solid #1a1a1a;
    max-width: none !important;
    width: auto;
    height: auto;
}


/* ─────────────────────────────────────────────────────────────────────
   MODAIS
   ───────────────────────────────────────────────────────────────────── */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    animation: modalDocOpen 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalDocOpen {
    from { opacity: 0; transform: translateY(20px) scaleY(0.94) rotateX(3deg); }
    to   { opacity: 1; transform: translateY(0)    scaleY(1)    rotateX(0deg); }
}


/* ─────────────────────────────────────────────────────────────────────
   SCROLLBAR GLOBAL
   ───────────────────────────────────────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar        { width: 5px; height: 5px; }
.custom-scrollbar::-webkit-scrollbar-track  { background: #080808; border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb  { background: #222; border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }


/* ─────────────────────────────────────────────────────────────────────
   FORUM / MASONRY (legado)
   ───────────────────────────────────────────────────────────────────── */
.forum-card {
    background-color: #161616;
    border-left: 3px solid #222;
    break-inside: avoid-column;
    transition: border-color 0.2s, background-color 0.2s;
}

.forum-card:hover {
    border-left-color: var(--color-accent);
    background-color: #1c1c1c;
}

.masonry-container                                    { column-count: 1; column-gap: 1.5rem; }
@media (min-width: 768px)  { .masonry-container { column-count: 2; } }
@media (min-width: 1024px) { .masonry-container { column-count: 3; } }


/* ─────────────────────────────────────────────────────────────────────
   EFEITOS GLOBAIS APRIMORADOS
   ───────────────────────────────────────────────────────────────────── */

/* Glow nos nomes de membros */
.text-accent.font-bold {
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

/* Indicador de status */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50%       { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.status-dot-live {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Glitch effect para o título principal */
@keyframes glitch-flicker {
    0%, 94%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(217, 119, 6, 0.5); }
    95%           { opacity: 0.85; text-shadow: -2px 0 rgba(185, 28, 28, 0.7), 2px 0 rgba(217, 119, 6, 0.7); }
    97%           { opacity: 1; }
}

h1.font-title {
    animation: glitch-flicker 12s ease-in-out infinite;
}

/* Scan line overlay para o hero */
#sala-de-guerra::before {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.018) 2px,
        rgba(0, 0, 0, 0.018) 3px
    );
}

/* Hover effect nos links do footer */
footer a:hover svg {
    filter: drop-shadow(0 0 6px var(--color-accent));
}

/* Badge NOVO REGISTRO com glow */
.video-card [class*="bg-red-800"] {
    box-shadow: 0 0 10px rgba(185, 28, 28, 0.5);
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(185, 28, 28, 0.4); }
    50%       { box-shadow: 0 0 14px rgba(185, 28, 28, 0.7); }
}

/* Botão SEJA MEMBRO hover effect */
.member-card a:hover {
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.25), inset 0 0 20px rgba(217, 119, 6, 0.05);
}

/* Estilo botão login aprimorado */
header button[class*="border-accent"] {
    position: relative;
    overflow: hidden;
}

header button[class*="border-accent"]::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

header button[class*="border-accent"]:hover::before { opacity: 1; }

/* Efeito de linha vermelha pulsante para canais do Cofre */
.vault-indicator {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--color-red);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-red-glow);
    animation: vault-pulse 2s ease-in-out infinite;
}

@keyframes vault-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--color-red-glow); }
    50%       { opacity: 0.5; box-shadow: 0 0 12px var(--color-red-glow); }
}

/* Enquete no chat — melhorada */
.poll-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(217,119,6,0.12), rgba(217,119,6,0.05));
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Imagem no chat */
#chat-window img, .chat-messages-window img {
    max-width: 100%;
    border-radius: 2px;
}

/* Toast aprimorado */
.toast-enter {
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────────────────────────────────────────────────────────────────
   EFEITO LINHA HORIZONTAL DE SCANNER (decorativo, hero)
   ───────────────────────────────────────────────────────────────────── */
@keyframes scanner-line {
    0%   { top: 0%; opacity: 0; }
    5%   { opacity: 0.3; }
    95%  { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

.scanner-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217,119,6,0.5), transparent);
    pointer-events: none;
    will-change: transform;
    animation: scanner-line 8s linear infinite;
    z-index: 2;
}


/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVIDADE GLOBAL EXTRA
   ───────────────────────────────────────────────────────────────────── */

/* Evita overflow em mobile */
@media (max-width: 640px) {
    main { padding-left: 1rem; padding-right: 1rem; }

    .section-divider {
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
    }

    /* Modais ocupam mais espaço em mobile */
    .modal-content {
        max-height: 92svh;
        overflow-y: auto;
    }

    /* Chat busca mais espaço */
    #community-forum {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Força fonte mínima para evitar zoom no iOS */
input, textarea, select {
    font-size: max(16px, 1rem) !important;
}

@media (min-width: 768px) {
    input, textarea, select {
        font-size: inherit !important;
    }
}


/* ─────────────────────────────────────────────────────────────────────
   POSTS DA COMUNIDADE YOUTUBE
   ───────────────────────────────────────────────────────────────────── */
.yt-post-card {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Badge de nível de membro no chat — glow proporcional ao nível */
.member-level-badge-1 { box-shadow: 0 0 4px rgba(217,119,6,0.2); }
.member-level-badge-2 { box-shadow: 0 0 6px rgba(217,119,6,0.3); }
.member-level-badge-3 { box-shadow: 0 0 8px rgba(217,119,6,0.4); }
.member-level-badge-4 { box-shadow: 0 0 10px rgba(217,119,6,0.5); color: #f59e0b; }
.member-level-badge-5 {
    box-shadow: 0 0 14px rgba(217,119,6,0.7), 0 0 4px rgba(245,158,11,0.4);
    color: #fbbf24;
    border-color: rgba(245,158,11,0.6) !important;
    animation: badge-elite-pulse 3s ease-in-out infinite;
}

@keyframes badge-elite-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(217,119,6,0.5); }
    50%       { box-shadow: 0 0 18px rgba(217,119,6,0.8), 0 0 6px rgba(245,158,11,0.5); }
}

/* Efeito de Carteira de Couro — aprimorado */
.agent-wallet {
    background-image: 
        radial-gradient(circle at center, #1e1e1e 0%, #0d0d0d 100%),
        url('https://www.transparenttextures.com/patterns/leather.png');
    background-blend-mode: multiply;
    box-shadow: 
        inset 0 0 40px rgba(0,0,0,0.9),
        inset 0 2px 4px rgba(255,255,255,0.04),
        0 25px 50px -12px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255,255,255,0.04);
}

.wallet-stitching {
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    pointer-events: none;
}

/* Papel de Cartão de ID */
.agent-card {
    background-image: 
        repeating-linear-gradient(rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 20px),
        linear-gradient(to right, #dcdcdc, #e2e2e2);
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.1),
        3px 3px 10px rgba(0,0,0,0.5);
}

/* Fonte de Máquina de Escrever para os Dados */
.font-typewriter {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Efeito de Brilho no Emblema */
.badge-glow {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    animation: badgePulse 4s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)); }
}

/* O Cartão de ID Aprimorado */
.agent-card-v4 {
    background: linear-gradient(160deg, #ebebeb 0%, #c8c8c8 100%);
    box-shadow: 
        4px 4px 0px rgba(0,0,0,0.25),
        12px 12px 30px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.7),
        inset 0 0 15px rgba(255,255,255,0.35);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

/* Holographic shimmer on the card */
.agent-card-v4::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        transparent 30%, 
        rgba(255,255,255,0.15) 50%, 
        transparent 70%
    );
    pointer-events: none;
}

/* O Cofre Digital */
.vault-box {
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 0, 0, 0.03) 1px, rgba(255, 0, 0, 0.03) 2px),
        linear-gradient(180deg, #050505 0%, #000 100%);
    position: relative;
}

.vault-box::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,0,0,0) 0%, rgba(255,0,0,0.05) 50%, rgba(255,0,0,0) 100%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: vaultScan 8s linear infinite;
}

@keyframes vaultScan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* ═══════════════════════════════════════════════════
   CHAT FULLSCREEN — mobile/tablet apenas
   z-index ABAIXO do header (z-40 = 40) para não cobrir
   ═══════════════════════════════════════════════════ */

/* Botão fullscreen — escondido em desktop */
.chat-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(217, 119, 6, 0.07);
    border: 1px solid rgba(217, 119, 6, 0.22);
    color: rgba(217, 119, 6, 0.7);
    font-family: var(--font-terminal);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.chat-fullscreen-btn:hover {
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(217, 119, 6, 0.45);
    color: var(--color-accent);
}
@media (min-width: 1024px) {
    .chat-fullscreen-btn { display: none !important; }
}

/* Ícones toggle */
.chat-fullscreen-btn .icon-expand  { display: block; }
.chat-fullscreen-btn .icon-compress { display: none; }
.chat-container.is-fullscreen .chat-fullscreen-btn .icon-expand  { display: none; }
.chat-container.is-fullscreen .chat-fullscreen-btn .icon-compress { display: block; }

/* Estado fullscreen — fica ABAIXO do header sticky (z-40) */
.chat-container.is-fullscreen {
    position: fixed !important;
    top: 64px !important;   /* altura do header — ajustar se mudar */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: calc(100dvh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    z-index: 39 !important; /* abaixo do header z-40 */
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.chat-container.is-fullscreen .chat-input-area {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

body.chat-is-fullscreen {
    overflow: hidden !important;
}

/* ═══════════════════════════════════════════════════════════════════
   MENU LATERAL INVESTIGATIVO — Nav Sidebar
   Mobile-first, desliza da esquerda, todos os breakpoints
   ═══════════════════════════════════════════════════════════════════ */

/* Sidebar container */
.nav-sidebar {
    width: 280px;
    background: #0d0d0d;
    border-right: 1px solid #252525;
    box-shadow:
        4px 0 40px rgba(0, 0, 0, 0.9),
        inset -1px 0 0 rgba(217, 119, 6, 0.06);
    transform: translateX(0);
}

/* Tablet: sidebar um pouco mais larga */
@media (min-width: 640px) {
    .nav-sidebar { width: 300px; }
}

/* Desktop: sidebar mais larga ainda */
@media (min-width: 1024px) {
    .nav-sidebar { width: 320px; }
}

/* Linha de glow topo da sidebar */
.nav-sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--color-accent) 0%,
        rgba(185, 28, 28, 0.6) 60%,
        transparent 100%
    );
    z-index: 1;
}

/* Cabeçalho da sidebar */
.nav-sidebar-header {
    flex-shrink: 0;
    padding: 18px 16px 14px;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: max(18px, env(safe-area-inset-top, 18px));
}

/* Linha de scanner animada dentro da nav */
.nav-scanner-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217,119,6,0.3), transparent);
    pointer-events: none;
    animation: scanner-line 10s linear infinite;
    z-index: 0;
}

/* Grupo de itens */
.nav-group {
    padding: 8px 0 4px;
    position: relative;
    z-index: 1;
}

/* Label do grupo */
.nav-group-label {
    display: block;
    font-family: var(--font-terminal);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #666;
    padding: 6px 16px 4px;
}

/* Divisor entre grupos */
.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, #111, #1e1e1e 50%, #111);
    margin: 4px 12px;
}

/* Item de navegação */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-family: var(--font-terminal);
    font-size: 12px;
    color: #888;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    position: relative;
    cursor: pointer;
    letter-spacing: 0.04em;
}

.nav-item:hover {
    color: var(--color-accent);
    background: rgba(217, 119, 6, 0.05);
    border-left-color: rgba(217, 119, 6, 0.4);
    padding-left: 20px;
}

.nav-item:active {
    background: rgba(217, 119, 6, 0.1);
}

/* Ícone do item */
.nav-item-icon {
    font-size: 12px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.nav-item:hover .nav-item-icon {
    opacity: 1;
}

/* Tag de status do item (ex: INÍCIO, MEMBRO) */
.nav-item-tag {
    margin-left: auto;
    font-size: 7px;
    padding: 1px 5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #666;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.nav-item-tag--gold {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.3);
    color: var(--color-accent);
    animation: badge-elite-pulse 3s ease-in-out infinite;
}

/* Tag vermelha — usada em itens como Casos Digitais, Mural Ativo, RPG */
.nav-item-tag--red {
    background: rgba(185, 28, 28, 0.12);
    border-color: rgba(185, 28, 28, 0.35);
    color: #f87171;
}

/* Ponto de status ao vivo */
.nav-item-dot {
    margin-left: auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Rodapé da sidebar */
.nav-sidebar-footer {
    flex-shrink: 0;
    padding: 12px 16px;
    border-top: 1px solid #1a1a1a;
    background: #0a0a0a;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
}

/* Botão toggle do menu no header */
.nav-menu-toggle {
    position: relative;
}

.nav-menu-toggle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 4px;
    background: transparent;
    transition: background 0.2s;
}

.nav-menu-toggle:hover::after {
    background: rgba(217, 119, 6, 0.08);
}


/* ═══════════════════════════════════════════════════════════════════
   CHAT MESSAGES — Layout estilo WhatsApp
   Minhas mensagens: direita | Mensagens alheias: esquerda
   ═══════════════════════════════════════════════════════════════════ */

/* Wrapper de mensagem individual */
.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

/* Mensagens de outros — alinhado à esquerda */
.chat-message.msg-other {
    flex-direction: row;
    justify-content: flex-start;
}

/* Minhas mensagens — alinhado à direita */
.chat-message.msg-mine {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Bubble da mensagem */
.chat-bubble {
    max-width: 72%;
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
    word-break: break-word;
}

@media (min-width: 640px) {
    .chat-bubble { max-width: 60%; }
}

/* Bubble — outro usuário */
.msg-other .chat-bubble {
    background: #161616;
    border: 1px solid #222;
    border-bottom-left-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Bubble — eu (minha mensagem) */
.msg-mine .chat-bubble {
    background: linear-gradient(135deg, #2a1800 0%, #1e1200 100%);
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-bottom-right-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 12px rgba(217,119,6,0.05);
}

/* Header da mensagem (nome + badges + hora) */
.chat-bubble-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

/* Nome do autor — outro usuário */
.msg-other .chat-bubble-author {
    font-family: var(--font-terminal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Nome — eu (minha mensagem): alinhado à direita, oculto por padrão */
.msg-mine .chat-bubble-header {
    flex-direction: row-reverse;
}

/* Hora da mensagem */
.chat-bubble-time {
    font-family: var(--font-terminal);
    font-size: 9px;
    color: #444;
    margin-left: auto;
    white-space: nowrap;
}

.msg-mine .chat-bubble-time {
    margin-left: 0;
    margin-right: auto;
}

/* Avatar nas mensagens */
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #222;
    background: #111;
}

.chat-avatar.admin-border  { border-color: rgba(185, 28, 28, 0.6); }
.chat-avatar.member-border { border-color: rgba(217, 119, 6, 0.5); }

/* Conteúdo de texto da mensagem */
.chat-bubble-text {
    font-family: var(--font-terminal);
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-words;
    color: #ccc;
}

.msg-mine .chat-bubble-text {
    color: #d4a45a;
}

/* Botão excluir */
.chat-delete-btn {
    font-family: var(--font-terminal);
    font-size: 9px;
    color: #2a2a2a;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    margin-top: 2px;
    transition: color 0.2s;
    text-align: right;
}

.chat-delete-btn:hover { color: #c0392b; }
.msg-other .chat-delete-btn { text-align: left; }


/* ═══════════════════════════════════════════════════════════════════
   MURAL DE INVESTIGAÇÃO — Quadro de Cortiça
   ═══════════════════════════════════════════════════════════════════ */

/* Linha de lã SVG — animação de desenho */
.wool-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawWool 0.6s ease-out forwards;
    filter: drop-shadow(0 0 3px rgba(185, 28, 28, 0.5));
}

@keyframes drawWool {
    to { stroke-dashoffset: 0; }
}

/* Polaroid / evidence card */
.evidence-container {
    transition: transform 0.2s ease, z-index 0s;
}

.evidence-container:hover {
    z-index: 50;
}

/* Estado selecionado para ligar com outra evidência */
.evidence-container.selected-for-link .evidence-inner {
    outline: 3px solid #b91c1c;
    outline-offset: 4px;
    animation: pulse-selection 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(185, 28, 28, 0.7), 0 0 40px rgba(185, 28, 28, 0.3);
}

@keyframes pulse-selection {
    0%, 100% { box-shadow: 0 0 20px rgba(185,28,28,0.7), 0 20px 50px rgba(0,0,0,0.5); }
    50%       { box-shadow: 0 0 35px rgba(185,28,28,0.9), 0 20px 50px rgba(0,0,0,0.5); }
}

/* Pin tachinha no topo das polaroids */
.evidence-pin {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e53e3e, #7f1d1d);
    box-shadow: 0 3px 6px rgba(0,0,0,0.7), inset 0 1px 2px rgba(255,255,255,0.3), 0 0 8px rgba(185,28,28,0.4);
    z-index: 10;
}

/* Sticky note vazio — estado sem evidências */
.mural-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px;
    border: 2px dashed rgba(185, 28, 28, 0.2);
    border-radius: 4px;
}

/* Painel do Caso Mestre */
.master-case-card {
    background: 
        url('https://www.transparenttextures.com/patterns/natural-paper.png'),
        linear-gradient(to bottom, #fefefe 0%, #f5f3ec 100%);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.65),
        0 0 0 1px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Modal de Perícia — overlay — visual de documento real */
.pericia-modal-paper {
    background: 
        url('https://www.transparenttextures.com/patterns/natural-paper.png'),
        linear-gradient(to bottom, #f7f6f0 0%, #efede4 100%);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.85),
        0 0 0 1px rgba(0,0,0,0.12),
        4px 4px 0 rgba(0,0,0,0.08),
        0 1px 0 rgba(255,255,255,0.9) inset;
    animation: paperUnfold 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paperUnfold {
    from { opacity: 0; transform: translateY(24px) rotate(2deg) scaleY(0.9); }
    to   { opacity: 1; transform: translateY(0)    rotate(1deg) scaleY(1);   }
}

/* Linha de conexão — estado "aguardando segunda evidência" */
.mural-linking-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #7f1d1d;
    color: #fca5a5;
    font-family: var(--font-terminal);
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 8px 20px;
    border: 1px solid #b91c1c;
    box-shadow: 0 0 20px rgba(185,28,28,0.4);
    z-index: 300;
    animation: hint-in 0.3s ease;
}

@keyframes hint-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Admin — modal de Caso Mestre */
.admin-case-modal {
    background: #0a0a0a;
    border: 1px solid #222;
}
/* ─────────────────────────────────────────────────────────────────────
   SISTEMA DE PRÉVIA GRATUITA — PAYWALL
   ───────────────────────────────────────────────────────────────────── */

/* Efeito de desfoque gradual na última página visível — sugere mais conteúdo */
.pdf-preview-fade {
    position: relative;
}
.pdf-preview-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.95));
    pointer-events: none;
    z-index: 5;
}

/* Animação de entrada do paywall */
@keyframes paywall-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Botão principal do paywall — pulsa suavemente para chamar atenção */
@keyframes paywall-cta-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    50%       { box-shadow: 0 0 35px rgba(245, 158, 11, 0.55); }
}

/* Bolinhas de progresso da prévia na barra superior */
.preview-progress-dot {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────────
   LEITOR DE MATÉRIAS — artigo renderizado (HTML completo)
   ───────────────────────────────────────────────────────────────────── */
.article-content {
    font-family: 'Lato', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #d1d5db;
}
.article-content p          { margin-bottom: 1rem; }
.article-content h1,
.article-content h2         { font-family: 'Courier Prime', monospace; font-size: 1.15rem; color: #f3f4f6; margin: 1.5rem 0 0.5rem; font-weight: 700; }
.article-content h3,
.article-content h4         { font-family: 'Courier Prime', monospace; font-size: 1rem; color: #e5e7eb; margin: 1.25rem 0 0.4rem; font-weight: 700; }
.article-content a          { color: #d97706; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.article-content a:hover    { color: #fbbf24; }
.article-content strong,
.article-content b          { color: #f9fafb; }
.article-content em,
.article-content i          { color: #d1d5db; font-style: italic; }
.article-content img        { max-width: 100%; height: auto; border-radius: 4px; margin: 1rem 0; display: block; }
.article-content figure     { margin: 1.25rem 0; }
.article-content figcaption { font-size: 0.75rem; color: #6b7280; font-family: 'Roboto Mono', monospace; margin-top: 0.4rem; text-align: center; font-style: italic; }
.article-content iframe     { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 4px; margin: 1rem 0; display: block; background: #000; }
.article-content video      { max-width: 100%; border-radius: 4px; margin: 1rem 0; display: block; }
.article-content blockquote { border-left: 3px solid #374151; padding: 0.75rem 1rem; margin: 1rem 0; color: #9ca3af; font-style: italic; background: #0f0f0f; }
.article-content ul,
.article-content ol         { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li         { margin-bottom: 0.4rem; }
.article-content table      { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.8rem; }
.article-content th,
.article-content td         { border: 1px solid #374151; padding: 0.5rem 0.75rem; text-align: left; }
.article-content th         { background: #1f2937; color: #e5e7eb; }
/* Twitter/X embed */
.article-content .twitter-tweet { margin: 1rem auto !important; }
/* Remove elementos de ruído que Readability não filtrou */
.article-content [class*="ad-"],
.article-content [class*="-ad"],
.article-content [id*="google_ad"],
.article-content [class*="newsletter"],
.article-content [class*="subscribe"],
.article-content [class*="related"],
.article-content [class*="popup"],
.article-content nav,
.article-content .nav        { display: none !important; }

/* Mobile: iframes menores, imagens 100% */
@media (max-width: 640px) {
    .article-content iframe  { min-height: 200px; }
    .article-content img     { max-height: 280px; object-fit: cover; }
    .article-content h1,
    .article-content h2      { font-size: 1rem; }
    .article-content p,
    .article-content li      { font-size: 0.875rem; }
}


/* ─────────────────────────────────────────────────────────────────────
   NEWS READER — Sheet modal
   ───────────────────────────────────────────────────────────────────── */
.news-reader-sheet {
    will-change: transform, opacity;
}


/* ─────────────────────────────────────────────────────────────────────
   SCROLL REVEAL — fade-up ao entrar na viewport
   ───────────────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay em cascata para filhos com .reveal-child */
.reveal-child:nth-child(1)  { transition-delay: 0.05s; }
.reveal-child:nth-child(2)  { transition-delay: 0.10s; }
.reveal-child:nth-child(3)  { transition-delay: 0.15s; }
.reveal-child:nth-child(4)  { transition-delay: 0.20s; }
.reveal-child:nth-child(5)  { transition-delay: 0.25s; }
.reveal-child:nth-child(6)  { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}


/* ─────────────────────────────────────────────────────────────────────
   NEWS CARD — hover aprimorado
   ───────────────────────────────────────────────────────────────────── */
.news-card {
    background: #0a0a0a;
    transition:
        transform     0.32s cubic-bezier(0.22, 1, 0.36, 1),
        border-color  0.25s ease,
        box-shadow    0.32s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 119, 6, 0.35) !important;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.7),
        0 0  20px rgba(217, 119, 6, 0.06);
}
.news-card:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* Thumbnails dos news cards */
.news-card .card-thumb {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                filter    0.5s ease,
                opacity   0.4s ease;
    transform-origin: center;
}
.news-card:hover .card-thumb {
    transform: scale(1.06);
    filter: sepia(0) !important;
    opacity: 0.95 !important;
}

/* Título dos cards */
.news-card h3 {
    transition: color 0.2s ease;
}


/* ─────────────────────────────────────────────────────────────────────
   FEATURED NEWS CARD — animação de entrada + hover
   ───────────────────────────────────────────────────────────────────── */
.featured-card {
    transition:
        border-color 0.3s ease,
        box-shadow   0.4s ease;
}
.featured-card:hover {
    border-color: rgba(217, 119, 6, 0.5) !important;
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.08);
}
.featured-card .featured-thumb {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.6s ease, opacity 0.5s ease;
}
.featured-card:hover .featured-thumb {
    transform: scale(1.04);
}


/* ─────────────────────────────────────────────────────────────────────
   BOTÕES — micro-interações de press
   ───────────────────────────────────────────────────────────────────── */
button:not(:disabled):active,
[role="button"]:active {
    transform: scale(0.96);
    transition: transform 0.08s ease;
}

/* Exceção: não aplica em containers grandes */
.video-card:active,
.news-card:active,
.file-folder:active {
    transform: scale(0.97);
}


/* ─────────────────────────────────────────────────────────────────────
   HEADER — glassmorphism melhorado
   ───────────────────────────────────────────────────────────────────── */
header.sticky {
    background: linear-gradient(
        180deg,
        rgba(8, 8, 8, 0.97) 0%,
        rgba(8, 8, 8, 0.88) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(217, 119, 6, 0.12);
}


/* ─────────────────────────────────────────────────────────────────────
   MOBILE GERAL — ajustes de toque e layout
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {

    /* Aumenta alvos de toque */
    .nav-item,
    .channel-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Header mais compacto */
    header nav {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
    }

    /* Logo menor no mobile pequeno */
    header a.font-title {
        font-size: 1.25rem;
    }

    /* Seções: menos padding vertical */
    main.container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .section-divider {
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
    }

    /* Intel Global header: stack melhor */
    #intel-global .flex.flex-col {
        gap: 0.75rem;
    }

    /* News card: texto menor mas legível */
    .news-card h3 {
        font-size: 0.6875rem;
        line-height: 1.4;
    }
    .news-card .p-3 {
        padding: 0.625rem;
    }

    /* Modal de artigo: quase full-height */
    .news-reader-sheet {
        max-height: 97dvh;
        border-radius: 16px 16px 0 0;
    }
}


/* ─────────────────────────────────────────────────────────────────────
   SKELETON LOADER — pulso mais orgânico
   ───────────────────────────────────────────────────────────────────── */
@keyframes skeleton-wave {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-wave {
    background: linear-gradient(
        90deg,
        #1a1a1a 25%,
        #242424 50%,
        #1a1a1a 75%
    );
    background-size: 800px 100%;
    animation: skeleton-wave 1.4s ease-in-out infinite;
}

/* Substitui animate-pulse nos skeletons de notícia */
#intel-global .animate-pulse {
    animation: skeleton-wave 1.4s ease-in-out infinite;
    background: linear-gradient(90deg, #111 25%, #1c1c1c 50%, #111 75%);
    background-size: 800px 100%;
}


/* ─────────────────────────────────────────────────────────────────────
   SCROLL PERSONALIZADO — mais fino e elegante
   ───────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar               { width: 5px; height: 5px; }
::-webkit-scrollbar-track         { background: #0a0a0a; }
::-webkit-scrollbar-thumb         { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover   { background: #3a3a3a; }


/* ─────────────────────────────────────────────────────────────────────
   TOAST — animação entrada/saída
   ───────────────────────────────────────────────────────────────────── */
[x-data] .toast-enter {
    animation: toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}